X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=02882ca943ca91afe73c03c96a77e0f6d3e916e5;hb=f0c2b771570ba27cd1ee782fefc061cfe216b5cf;hp=6c9048ad7e3257a517e383e66c33aac30393edb1;hpb=1d6dd1666f4fc5da64447a48e158f8755d1d2a1b;p=friendica.git
diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php
index 6c9048ad7e..02882ca943 100644
--- a/view/theme/duepuntozero/theme.php
+++ b/view/theme/duepuntozero/theme.php
@@ -1,96 +1,103 @@
theme_info = array();
-$a->theme['template_engine'] = 'smarty3';
-function duepuntozero_init(&$a) {
+use Friendica\App;
+use Friendica\Core\Config;
+use Friendica\Core\PConfig;
+
+function duepuntozero_init(App $a) {
+
+$a->set_template_engine('smarty3');
+
+ $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
EOT;
}