addon should be commited as well

pull/541/head
Tobias Diekershoff 2018-03-11 18:54:01 +01:00
parent 5c64ee11cf
commit b0e0821d07
1 changed files with 6 additions and 8 deletions

View File

@ -48,14 +48,12 @@ function pageheader_addon_settings(&$a,&$s) {
if(! $words) if(! $words)
$words = ''; $words = '';
$s .= '<div class="settings-block">'; $t = get_markup_template("settings.tpl", "addon/pageheader/");
$s .= '<h3>' . L10n::t('"pageheader" Settings') . '</h3>'; $s .= replace_macros($t, [
$s .= '<div id="pageheader-wrapper">'; '$title' => L10n::t('"pageheader" Settings'),
$s .= '<label id="pageheader-label" for="pageheader-words">' . L10n::t('Message to display on every page on this server (or put a pageheader.html file in your docroot)') . ' </label>'; '$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)')],
$s .= '<textarea id="pageheader-words" type="text" name="pageheader-words">' . $words . '</textarea>'; '$submit' => L10n::t('Save Settings')
$s .= '</div><div class="clear"></div>'; ]);
$s .= '<div class="settings-submit-wrapper" ><input type="submit" id="pageheader-submit" name="pageheader-submit" class="settings-submit" value="' . L10n::t('Save Settings') . '" /></div></div>';
return; return;