X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=02882ca943ca91afe73c03c96a77e0f6d3e916e5;hb=f0c2b771570ba27cd1ee782fefc061cfe216b5cf;hp=ba3f25d3e26e002b461e8d97ac433d3ddca286e4;hpb=a9782251e5a56a5897e0ca050d85c2c98aaa1b69;p=friendica.git diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index ba3f25d3e2..02882ca943 100644 --- a/view/theme/duepuntozero/theme.php +++ b/view/theme/duepuntozero/theme.php @@ -1,13 +1,16 @@ theme_info = array(); -set_template_engine($a, 'smarty3'); +function duepuntozero_init(App $a) { - $colorset = get_pconfig( local_user(), 'duepuntozero','colorset'); +$a->set_template_engine('smarty3'); + + $colorset = PConfig::get( local_user(), 'duepuntozero','colorset'); if (!$colorset) - $colorset = get_config('duepuntozero', 'colorset'); // user setting have priority, then node settings + $colorset = Config::get('duepuntozero', 'colorset'); // user setting have priority, then node settings if ($colorset) { if ($colorset == 'greenzero') $a->page['htmlhead'] .= ''."\n"; @@ -24,92 +27,77 @@ set_template_engine($a, 'smarty3'); } $a->page['htmlhead'] .= <<< EOT EOT; }