addon should be commited as well

This commit is contained in:
Tobias Diekershoff 2018-03-11 18:54:01 +01:00
parent 5c64ee11cf
commit b0e0821d07

View File

@ -48,14 +48,12 @@ function pageheader_addon_settings(&$a,&$s) {
if(! $words)
$words = '';
$s .= '<div class="settings-block">';
$s .= '<h3>' . L10n::t('"pageheader" Settings') . '</h3>';
$s .= '<div id="pageheader-wrapper">';
$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>';
$s .= '<textarea id="pageheader-words" type="text" name="pageheader-words">' . $words . '</textarea>';
$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>';
$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;