aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/theme.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-04-27 08:10:04 +0200
committerzottel <github@zottel.net>2012-04-27 08:10:04 +0200
commit17aba3033ff050a031ae578f0351db3da29ecbb7 (patch)
treeee1e97a2374a104ad966507a315a8947b5adb715 /view/theme/diabook/theme.php
parent0116426a0eccc81382a670989032b0a095a65a20 (diff)
parenta1f94ac59f677c61e97facb2835883191a9e48af (diff)
downloadvolse-hubzilla-17aba3033ff050a031ae578f0351db3da29ecbb7.tar.gz
volse-hubzilla-17aba3033ff050a031ae578f0351db3da29ecbb7.tar.bz2
volse-hubzilla-17aba3033ff050a031ae578f0351db3da29ecbb7.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-xview/theme/diabook/theme.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
index 073e270ef..c45db9884 100755
--- a/view/theme/diabook/theme.php
+++ b/view/theme/diabook/theme.php
@@ -14,12 +14,17 @@ $a->page['htmlhead'] .= sprintf('<script "%s" ></script>', $diabook_version);
//change css on network and profilepages
$cssFile = null;
+
$resolution=false;
$resolution = get_pconfig(local_user(), "diabook", "resolution");
if ($resolution===false) $resolution="normal";
+
$color = false;
-$color = get_pconfig(local_user(), "diabook", "color");
+$site_color = get_config("diabook", "color" );
+if (local_user()) {$color = get_pconfig(local_user(), "diabook", "color");}
+if ($color===false) $color=$site_color;
if ($color===false) $color="diabook";
+
if ($color=="diabook") $color_path = "/";
if ($color=="aerith") $color_path = "/diabook-aerith/";
if ($color=="blue") $color_path = "/diabook-blue/";