]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/quattro/config.php
Merge pull request #6704 from tobiasd/20190220-credits
[friendica.git] / view / theme / quattro / config.php
index 6bd04ae7d43e95551db62469e9321f11cc7045a5..cdef0eeaacfe039d7080fb0658ea9a83bc140b18 100644 (file)
@@ -1,12 +1,13 @@
 <?php
-
 /**
  * Theme settings
  */
 
 use Friendica\App;
 use Friendica\Core\Config;
+use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
+use Friendica\Core\Renderer;
 use Friendica\Core\System;
 
 function theme_content(App $a) {
@@ -68,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, [
-               '$submit'  => t('Submit'),
+       $t = Renderer::getMarkupTemplate("theme_settings.tpl" );
+       $o = Renderer::replaceMacros($t, [
+               '$submit'  => L10n::t('Submit'),
                '$baseurl' => System::baseUrl(),
-               '$title'   => t("Theme settings"),
-               '$align'   => ['quattro_align', t('Alignment'), $align, '', ['left'=>t('Left'), 'center'=>t('Center')]],
-               '$color'   => ['quattro_color', t('Color scheme'), $color, '', $colors],
-               '$pfs'     => ['quattro_pfs', t('Posts font size'), $pfs],
-               '$tfs'     => ['quattro_tfs', t('Textareas font size'), $tfs],
+               '$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;
 }