mirror of
https://github.com/friendica/friendica
synced 2025-04-21 11:50:15 +00:00
get markup template
implement getMarkupTemplate function
This commit is contained in:
parent
91facd2d0a
commit
35abc4bb64
89 changed files with 243 additions and 243 deletions
|
@ -83,7 +83,7 @@ class Contact extends BaseModule
|
|||
}
|
||||
|
||||
/// @TODO Add nice spaces
|
||||
$vcard_widget = Renderer::replaceMacros(get_markup_template('vcard-widget.tpl'), [
|
||||
$vcard_widget = Renderer::replaceMacros(Renderer::getMarkupTemplate('vcard-widget.tpl'), [
|
||||
'$name' => htmlentities($contact['name']),
|
||||
'$photo' => $contact['photo'],
|
||||
'$url' => Model\Contact::MagicLink($contact['url']),
|
||||
|
@ -114,7 +114,7 @@ class Contact extends BaseModule
|
|||
$groups_widget = null;
|
||||
}
|
||||
|
||||
$a->page['aside'] .= Renderer::replaceMacros(get_markup_template('contacts-widget-sidebar.tpl'), [
|
||||
$a->page['aside'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('contacts-widget-sidebar.tpl'), [
|
||||
'$vcard_widget' => $vcard_widget,
|
||||
'$findpeople_widget' => $findpeople_widget,
|
||||
'$follow_widget' => $follow_widget,
|
||||
|
@ -123,7 +123,7 @@ class Contact extends BaseModule
|
|||
]);
|
||||
|
||||
$base = $a->getBaseURL();
|
||||
$tpl = get_markup_template('contacts-head.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('contacts-head.tpl');
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros($tpl, [
|
||||
'$baseurl' => System::baseUrl(true),
|
||||
'$base' => $base
|
||||
|
@ -439,7 +439,7 @@ class Contact extends BaseModule
|
|||
|
||||
$a->page['aside'] = '';
|
||||
|
||||
return Renderer::replaceMacros(get_markup_template('contact_drop_confirm.tpl'), [
|
||||
return Renderer::replaceMacros(Renderer::getMarkupTemplate('contact_drop_confirm.tpl'), [
|
||||
'$header' => L10n::t('Drop contact'),
|
||||
'$contact' => self::getContactTemplateVars($orig_record),
|
||||
'$method' => 'get',
|
||||
|
@ -476,7 +476,7 @@ class Contact extends BaseModule
|
|||
$contact_id = $a->data['contact']['id'];
|
||||
$contact = $a->data['contact'];
|
||||
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros(get_markup_template('contact_head.tpl'), [
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('contact_head.tpl'), [
|
||||
'$baseurl' => $a->getBaseURL(true),
|
||||
]);
|
||||
|
||||
|
@ -592,7 +592,7 @@ class Contact extends BaseModule
|
|||
$contact_settings_label = null;
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('contact_edit.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('contact_edit.tpl');
|
||||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$header' => L10n::t('Contact'),
|
||||
'$tab_str' => $tab_str,
|
||||
|
@ -756,7 +756,7 @@ class Contact extends BaseModule
|
|||
],
|
||||
];
|
||||
|
||||
$tab_tpl = get_markup_template('common_tabs.tpl');
|
||||
$tab_tpl = Renderer::getMarkupTemplate('common_tabs.tpl');
|
||||
$t = Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs]);
|
||||
|
||||
$total = 0;
|
||||
|
@ -801,7 +801,7 @@ class Contact extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('contacts-template.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('contacts-template.tpl');
|
||||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$baseurl' => System::baseUrl(),
|
||||
'$header' => L10n::t('Contacts') . (($nets) ? ' - ' . ContactSelector::networkToName($nets) : ''),
|
||||
|
@ -904,7 +904,7 @@ class Contact extends BaseModule
|
|||
];
|
||||
}
|
||||
|
||||
$tab_tpl = get_markup_template('common_tabs.tpl');
|
||||
$tab_tpl = Renderer::getMarkupTemplate('common_tabs.tpl');
|
||||
$tab_str = Renderer::replaceMacros($tab_tpl, ['$tabs' => $tabs]);
|
||||
|
||||
return $tab_str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue