mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 00:45:14 +02:00
replace macros
implement new replaceMacros function
This commit is contained in:
parent
f6c86649c2
commit
91facd2d0a
91 changed files with 335 additions and 249 deletions
|
@ -18,6 +18,7 @@ use Friendica\Core\L10n;
|
|||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Group;
|
||||
|
@ -201,7 +202,7 @@ function saved_searches($search)
|
|||
}
|
||||
|
||||
$tpl = get_markup_template('saved_searches_aside.tpl');
|
||||
$o = replace_macros($tpl, [
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Saved Searches'),
|
||||
'$add' => L10n::t('add'),
|
||||
'$searchbox' => search($search, 'netsearch-box', $srchurl, true),
|
||||
|
@ -653,7 +654,7 @@ function networkThreadedView(App $a, $update, $parent)
|
|||
info(L10n::t('Group is empty'));
|
||||
}
|
||||
|
||||
$o = replace_macros(get_markup_template('section_title.tpl'), [
|
||||
$o = Renderer::replaceMacros(get_markup_template('section_title.tpl'), [
|
||||
'$title' => L10n::t('Group: %s', $group['name'])
|
||||
]) . $o;
|
||||
} elseif ($cid) {
|
||||
|
@ -674,7 +675,7 @@ function networkThreadedView(App $a, $update, $parent)
|
|||
|
||||
$entries[0]['account_type'] = Contact::getAccountType($contact);
|
||||
|
||||
$o = replace_macros(get_markup_template('viewcontact_template.tpl'), [
|
||||
$o = Renderer::replaceMacros(get_markup_template('viewcontact_template.tpl'), [
|
||||
'contacts' => $entries,
|
||||
'id' => 'network',
|
||||
]) . $o;
|
||||
|
@ -1034,7 +1035,7 @@ function network_tabs(App $a)
|
|||
|
||||
$tpl = get_markup_template('common_tabs.tpl');
|
||||
|
||||
return replace_macros($tpl, ['$tabs' => $arr['tabs']]);
|
||||
return Renderer::replaceMacros($tpl, ['$tabs' => $arr['tabs']]);
|
||||
|
||||
// --- end item filter tabs
|
||||
}
|
||||
|
@ -1059,7 +1060,7 @@ function network_infinite_scroll_head(App $a, &$htmlhead)
|
|||
&& defaults($_GET, 'mode', '') != 'minimal'
|
||||
) {
|
||||
$tpl = get_markup_template('infinite_scroll_head.tpl');
|
||||
$htmlhead .= replace_macros($tpl, [
|
||||
$htmlhead .= Renderer::replaceMacros($tpl, [
|
||||
'$pageno' => $pager->getPage(),
|
||||
'$reload_uri' => $pager->getBaseQueryString()
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue