mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +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
|
@ -17,6 +17,7 @@ use Friendica\App;
|
|||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
|
@ -160,7 +161,7 @@ function poke_content(App $a)
|
|||
$base = System::baseUrl();
|
||||
|
||||
$head_tpl = get_markup_template('poke_head.tpl');
|
||||
$a->page['htmlhead'] .= replace_macros($head_tpl,[
|
||||
$a->page['htmlhead'] .= Renderer::replaceMacros($head_tpl,[
|
||||
'$baseurl' => System::baseUrl(true),
|
||||
'$base' => $base
|
||||
]);
|
||||
|
@ -180,7 +181,7 @@ function poke_content(App $a)
|
|||
|
||||
$tpl = get_markup_template('poke_content.tpl');
|
||||
|
||||
$o = replace_macros($tpl,[
|
||||
$o = Renderer::replaceMacros($tpl,[
|
||||
'$title' => L10n::t('Poke/Prod'),
|
||||
'$desc' => L10n::t('poke, prod or do other things to somebody'),
|
||||
'$clabel' => L10n::t('Recipient'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue