Merge pull request #7154 from MrPetovan/task/refactor-widgets

Refactor widgets
This commit is contained in:
Philipp 2019-05-19 20:52:00 +02:00 committed by GitHub
commit a758671a1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 260 additions and 309 deletions

View file

@ -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'],

View file

@ -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

View file

@ -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'],

View file

@ -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'],