X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=015e8090fc7c655dc182590c7e0ef0028988f632;hb=642f9409a77e839cd23a6aec7de5965d617f3e68;hp=d3378e49b8ac8dee1a78ce7c881346c9430d765c;hpb=d9c22c7f3e6a4bfff5814b59b266e2d72f0f71be;p=friendica.git
diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php
index d3378e49b8..015e8090fc 100644
--- a/view/theme/duepuntozero/theme.php
+++ b/view/theme/duepuntozero/theme.php
@@ -1,33 +1,31 @@
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";
- }
-}
+ $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