X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=50d57f91e5759041f463284537ddcfcc1495ad9d;hb=27905cc21a523d052a0148c9802a64d6dfd9d0d2;hp=189628b0287acb06e1b7e1949a177b80d303b64a;hpb=d3699498ac8fdbbce2883ac07c8a3aac9b11a8e4;p=friendica.git diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index 189628b028..50d57f91e5 100644 --- a/view/theme/duepuntozero/theme.php +++ b/view/theme/duepuntozero/theme.php @@ -1,7 +1,26 @@ theme_info = array(); function duepuntozero_init(&$a) { + +set_template_engine($a, '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"; + } $a->page['htmlhead'] .= <<< EOT