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