Merge pull request #7154 from MrPetovan/task/refactor-widgets
Refactor widgets
This commit is contained in:
commit
a758671a1b
38 changed files with 260 additions and 309 deletions
|
@ -59,7 +59,7 @@ function cal_init(App $a)
|
|||
|
||||
$account_type = Contact::getAccountType($profile);
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate("vcard-widget.tpl");
|
||||
$tpl = Renderer::getMarkupTemplate("widget/vcard.tpl");
|
||||
|
||||
$vcard_widget = Renderer::replaceMacros($tpl, [
|
||||
'$name' => $profile['name'],
|
||||
|
|
|
@ -47,7 +47,7 @@ function common_content(App $a)
|
|||
$contact = DBA::selectFirst('contact', ['name', 'url', 'photo', 'uid', 'id'], ['self' => true, 'uid' => $uid]);
|
||||
|
||||
if (DBA::isResult($contact)) {
|
||||
$vcard_widget = Renderer::replaceMacros(Renderer::getMarkupTemplate("vcard-widget.tpl"), [
|
||||
$vcard_widget = Renderer::replaceMacros(Renderer::getMarkupTemplate("widget/vcard.tpl"), [
|
||||
'$name' => $contact['name'],
|
||||
'$photo' => $contact['photo'],
|
||||
'url' => 'contact/' . $cid
|
||||
|
|
|
@ -61,7 +61,7 @@ function photos_init(App $a) {
|
|||
|
||||
$account_type = Contact::getAccountType($profile);
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate("vcard-widget.tpl");
|
||||
$tpl = Renderer::getMarkupTemplate("widget/vcard.tpl");
|
||||
|
||||
$vcard_widget = Renderer::replaceMacros($tpl, [
|
||||
'$name' => $profile['name'],
|
||||
|
|
|
@ -49,7 +49,7 @@ function videos_init(App $a)
|
|||
|
||||
$account_type = Contact::getAccountType($profile);
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate("vcard-widget.tpl");
|
||||
$tpl = Renderer::getMarkupTemplate("widget/vcard.tpl");
|
||||
|
||||
$vcard_widget = Renderer::replaceMacros($tpl, [
|
||||
'$name' => $profile['name'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue