replace macros
implement new replaceMacros function
This commit is contained in:
parent
f6c86649c2
commit
91facd2d0a
91 changed files with 335 additions and 249 deletions
|
|
@ -11,6 +11,7 @@ use Friendica\Core\Cache;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Item;
|
||||
|
|
@ -45,7 +46,7 @@ function search_saved_searches() {
|
|||
|
||||
$tpl = get_markup_template("saved_searches_aside.tpl");
|
||||
|
||||
$o .= replace_macros($tpl, [
|
||||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Saved Searches'),
|
||||
'$add' => '',
|
||||
'$searchbox' => '',
|
||||
|
|
@ -158,7 +159,7 @@ function search_content(App $a) {
|
|||
}
|
||||
|
||||
// contruct a wrapper for the search header
|
||||
$o = replace_macros(get_markup_template("content_wrapper.tpl"),[
|
||||
$o = Renderer::replaceMacros(get_markup_template("content_wrapper.tpl"),[
|
||||
'name' => "search-header",
|
||||
'$title' => L10n::t("Search"),
|
||||
'$title_size' => 3,
|
||||
|
|
@ -251,7 +252,7 @@ function search_content(App $a) {
|
|||
$title = L10n::t('Results for: %s', $search);
|
||||
}
|
||||
|
||||
$o .= replace_macros(get_markup_template("section_title.tpl"),[
|
||||
$o .= Renderer::replaceMacros(get_markup_template("section_title.tpl"),[
|
||||
'$title' => $title
|
||||
]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue