X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fquattro%2Fconfig.php;h=cdef0eeaacfe039d7080fb0658ea9a83bc140b18;hb=b06fc578804fdc0073631e7c97eccd25543e769e;hp=47210012caa8f7ce95ae89640781a60ce78502c1;hpb=8f253f6c1288534c50fac34f05afb1a2c07c9335;p=friendica.git diff --git a/view/theme/quattro/config.php b/view/theme/quattro/config.php index 47210012ca..cdef0eeaac 100644 --- a/view/theme/quattro/config.php +++ b/view/theme/quattro/config.php @@ -1,20 +1,24 @@ "Quattro", "lilac" => "Lilac", "green" => "Green", - ); + ]; if ($tfs === false) { $tfs = "20"; @@ -65,15 +69,15 @@ function quattro_form(App $a, $align, $color, $tfs, $pfs) { $pfs = "12"; } - $t = get_markup_template("theme_settings.tpl" ); - $o .= replace_macros($t, array( - '$submit' => t('Submit'), - '$baseurl' => App::get_baseurl(), - '$title' => t("Theme settings"), - '$align' => array('quattro_align', t('Alignment'), $align, '', array('left'=>t('Left'), 'center'=>t('Center'))), - '$color' => array('quattro_color', t('Color scheme'), $color, '', $colors), - '$pfs' => array('quattro_pfs', t('Posts font size'), $pfs), - '$tfs' => array('quattro_tfs', t('Textareas font size'), $tfs), - )); + $t = Renderer::getMarkupTemplate("theme_settings.tpl" ); + $o = Renderer::replaceMacros($t, [ + '$submit' => L10n::t('Submit'), + '$baseurl' => System::baseUrl(), + '$title' => L10n::t("Theme settings"), + '$align' => ['quattro_align', L10n::t('Alignment'), $align, '', ['left' => L10n::t('Left'), 'center' => L10n::t('Center')]], + '$color' => ['quattro_color', L10n::t('Color scheme'), $color, '', $colors], + '$pfs' => ['quattro_pfs', L10n::t('Posts font size'), $pfs], + '$tfs' => ['quattro_tfs', L10n::t('Textareas font size'), $tfs], + ]); return $o; }