replace macros

implement new replaceMacros function
This commit is contained in:
Adam Magness
2018-10-31 10:35:50 -04:00
parent f6c86649c2
commit 91facd2d0a
91 changed files with 335 additions and 249 deletions

View File

@@ -7,6 +7,7 @@ use Friendica\Content\Feature;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendcia\Model\FileTag;
use Friendica\Model\Item;
@@ -40,12 +41,12 @@ function editpost_content(App $a)
$geotag = '';
$o .= replace_macros(get_markup_template("section_title.tpl"), [
$o .= Renderer::replaceMacros(get_markup_template("section_title.tpl"), [
'$title' => L10n::t('Edit post')
]);
$tpl = get_markup_template('jot-header.tpl');
$a->page['htmlhead'] .= replace_macros($tpl, [
$a->page['htmlhead'] .= Renderer::replaceMacros($tpl, [
'$baseurl' => System::baseUrl(),
'$ispublic' => '&nbsp;', // L10n::t('Visible to <strong>everybody</strong>'),
'$geotag' => $geotag,
@@ -85,7 +86,7 @@ function editpost_content(App $a)
Addon::callHooks('jot_tool', $jotplugins);
//Addon::callHooks('jot_networks', $jotnets);
$o .= replace_macros($tpl, [
$o .= Renderer::replaceMacros($tpl, [
'$is_edit' => true,
'$return_path' => '/display/' . $item['guid'],
'$action' => 'item',