get markup template
implement getMarkupTemplate function
This commit is contained in:
@@ -201,7 +201,7 @@ function saved_searches($search)
|
||||
];
|
||||
}
|
||||
|
||||
$tpl = get_markup_template('saved_searches_aside.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('saved_searches_aside.tpl');
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Saved Searches'),
|
||||
'$add' => L10n::t('add'),
|
||||
@@ -654,7 +654,7 @@ function networkThreadedView(App $a, $update, $parent)
|
||||
info(L10n::t('Group is empty'));
|
||||
}
|
||||
|
||||
$o = Renderer::replaceMacros(get_markup_template('section_title.tpl'), [
|
||||
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('section_title.tpl'), [
|
||||
'$title' => L10n::t('Group: %s', $group['name'])
|
||||
]) . $o;
|
||||
} elseif ($cid) {
|
||||
@@ -675,7 +675,7 @@ function networkThreadedView(App $a, $update, $parent)
|
||||
|
||||
$entries[0]['account_type'] = Contact::getAccountType($contact);
|
||||
|
||||
$o = Renderer::replaceMacros(get_markup_template('viewcontact_template.tpl'), [
|
||||
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('viewcontact_template.tpl'), [
|
||||
'contacts' => $entries,
|
||||
'id' => 'network',
|
||||
]) . $o;
|
||||
@@ -1033,7 +1033,7 @@ function network_tabs(App $a)
|
||||
$arr = ['tabs' => $tabs];
|
||||
Addon::callHooks('network_tabs', $arr);
|
||||
|
||||
$tpl = get_markup_template('common_tabs.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('common_tabs.tpl');
|
||||
|
||||
return Renderer::replaceMacros($tpl, ['$tabs' => $arr['tabs']]);
|
||||
|
||||
@@ -1059,7 +1059,7 @@ function network_infinite_scroll_head(App $a, &$htmlhead)
|
||||
if (PConfig::get(local_user(), 'system', 'infinite_scroll')
|
||||
&& defaults($_GET, 'mode', '') != 'minimal'
|
||||
) {
|
||||
$tpl = get_markup_template('infinite_scroll_head.tpl');
|
||||
$tpl = Renderer::getMarkupTemplate('infinite_scroll_head.tpl');
|
||||
$htmlhead .= Renderer::replaceMacros($tpl, [
|
||||
'$pageno' => $pager->getPage(),
|
||||
'$reload_uri' => $pager->getBaseQueryString()
|
||||
|
||||
Reference in New Issue
Block a user