X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=02882ca943ca91afe73c03c96a77e0f6d3e916e5;hb=29b73877a9c78221a37ba559c8045c07890dac0d;hp=d3378e49b8ac8dee1a78ce7c881346c9430d765c;hpb=09851331a9dc8601919cd0c9200686b92843d235;p=friendica.git diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index d3378e49b8..02882ca943 100644 --- a/view/theme/duepuntozero/theme.php +++ b/view/theme/duepuntozero/theme.php @@ -1,33 +1,30 @@ set_template_engine('smarty3'); -$colorset = get_pconfig( local_user(), 'duepuntozero','colorset'); -if (!$colorset) { - $colorset = get_config('duepuntozero', 'colorset'); // user setting have priority, then node settings -} -if ($colorset) { - if ($colorset == 'greenzero') { - $a->page['htmlhead'] .= ''."\n"; - } - if ($colorset == 'purplezero') { - $a->page['htmlhead'] .= ''."\n"; - } - if ($colorset == 'easterbunny') { - $a->page['htmlhead'] .= ''."\n"; - } - if ($colorset == 'darkzero') { - $a->page['htmlhead'] .= ''."\n"; - } - if ($colorset == 'comix') { - $a->page['htmlhead'] .= ''."\n"; - } - if ($colorset == 'slackr') { - $a->page['htmlhead'] .= ''."\n"; - } -} + $colorset = PConfig::get( local_user(), 'duepuntozero','colorset'); + if (!$colorset) + $colorset = Config::get('duepuntozero', 'colorset'); // user setting have priority, then node settings + if ($colorset) { + if ($colorset == 'greenzero') + $a->page['htmlhead'] .= ''."\n"; + if ($colorset == 'purplezero') + $a->page['htmlhead'] .= ''."\n"; + if ($colorset == 'easterbunny') + $a->page['htmlhead'] .= ''."\n"; + if ($colorset == 'darkzero') + $a->page['htmlhead'] .= ''."\n"; + if ($colorset == 'comix') + $a->page['htmlhead'] .= ''."\n"; + if ($colorset == 'slackr') + $a->page['htmlhead'] .= ''."\n"; + } $a->page['htmlhead'] .= <<< EOT