X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=c674a99d99ad848bb250c72667a8372860f80c97;hb=45ebeba643a6d600e8778475f70f827f32bf3146;hp=5b87dcd420db89037ef6cacff02290a56da09fd7;hpb=40f2ec189e9e23377791d3d4f63e1dce0d807f91;p=friendica.git
diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php
index 5b87dcd420..c674a99d99 100644
--- a/view/theme/duepuntozero/theme.php
+++ b/view/theme/duepuntozero/theme.php
@@ -1,95 +1,107 @@
theme_info = array();
-function duepuntozero_init(&$a) {
+function duepuntozero_init(App $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
EOT;
}