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;