From b0e0821d072db0156db55541ab502d0caa80bff1 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 11 Mar 2018 18:54:01 +0100 Subject: [PATCH] addon should be commited as well --- pageheader/pageheader.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pageheader/pageheader.php b/pageheader/pageheader.php index 7b692416..eb121fb5 100644 --- a/pageheader/pageheader.php +++ b/pageheader/pageheader.php @@ -48,14 +48,12 @@ function pageheader_addon_settings(&$a,&$s) { if(! $words) $words = ''; - $s .= '
'; - $s .= '

' . L10n::t('"pageheader" Settings') . '

'; - $s .= '
'; - - $s .= '
'; + $t = get_markup_template("settings.tpl", "addon/pageheader/"); + $s .= replace_macros($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') + ]); return; -- 2.39.5