mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 18:04:26 +02:00
move to Renderer class
update functions calls for new Renderer class.
This commit is contained in:
parent
43f7ea1e16
commit
9079480d4a
30 changed files with 108 additions and 78 deletions
|
@ -10,6 +10,7 @@
|
|||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
|
||||
function pageheader_install() {
|
||||
Addon::registerHook('page_content_top', 'addon/pageheader/pageheader.php', 'pageheader_fetch');
|
||||
|
@ -48,8 +49,8 @@ function pageheader_addon_settings(&$a,&$s) {
|
|||
if(! $words)
|
||||
$words = '';
|
||||
|
||||
$t = get_markup_template("settings.tpl", "addon/pageheader/");
|
||||
$s .= replace_macros($t, [
|
||||
$t = Renderer::getMarkupTemplate("settings.tpl", "addon/pageheader/");
|
||||
$s .= Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('"pageheader" Settings'),
|
||||
'$phwords' => ['pageheader-words', L10n::t('Message'), $words, L10n::t('Message to display on every page on this server (or put a pageheader.html file in your docroot)')],
|
||||
'$submit' => L10n::t('Save Settings')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue