aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/theme.php
diff options
context:
space:
mode:
authortomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net>2012-04-19 16:55:24 -0700
committertomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net>2012-04-19 16:55:24 -0700
commitc88dd1485f31a129f6e00bf92afee241708e7da9 (patch)
treeec970c671a945a6f64543b62ebdd37647abc89d6 /view/theme/diabook/theme.php
parent4a292e41378df8a89a809a2e1472727ca7b4b5c0 (diff)
parentf5f1956e8b855ab5aeab531fc44a1a773427bf64 (diff)
downloadvolse-hubzilla-c88dd1485f31a129f6e00bf92afee241708e7da9.tar.gz
volse-hubzilla-c88dd1485f31a129f6e00bf92afee241708e7da9.tar.bz2
volse-hubzilla-c88dd1485f31a129f6e00bf92afee241708e7da9.zip
Merge pull request #252 from tomtom84/master
diabook-themes: theme-settings: add "colour scheme"-option, add diabook-pink and some bug/css-fixes
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-xview/theme/diabook/theme.php21
1 files changed, 15 insertions, 6 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
index 3ce0cc39d..9ad378b21 100755
--- a/view/theme/diabook/theme.php
+++ b/view/theme/diabook/theme.php
@@ -3,13 +3,13 @@
/*
* Name: Diabook
* Description: Diabook: report bugs and request here: http://pad.toktan.org/p/diabook or contact me : thomas_bierey@friendica.eu
- * Version: (Version: 1.020)
+ * Version: (Version: 1.021)
* Author:
*/
//print diabook-version for debugging
-$diabook_version = "Diabook (Version: 1.020)";
+$diabook_version = "Diabook (Version: 1.021)";
$a->page['htmlhead'] .= sprintf('<script "%s" ></script>', $diabook_version);
//change css on network and profilepages
@@ -17,6 +17,15 @@ $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");
+if ($color===false) $color="diabook";
+if ($color=="diabook") $color_path = "/";
+if ($color=="aerith") $color_path = "/diabook-aerith/";
+if ($color=="blue") $color_path = "/diabook-blue/";
+if ($color=="red") $color_path = "/diabook-red/";
+if ($color=="pink") $color_path = "/diabook-pink/";
+
/**
* prints last community activity
@@ -258,8 +267,8 @@ if ($a->argv[0] === "network" && local_user()){
diabook_community_info();
// CUSTOM CSS
- if($resolution == "normal") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook/style-network.css";}
- if($resolution == "wide") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook/style-network-wide.css";}
+ if($resolution == "normal") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook".$color_path."style-network.css";}
+ if($resolution == "wide") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook".$color_path."style-network-wide.css";}
}
}
@@ -272,8 +281,8 @@ if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname']){
diabook_community_info();
// CUSTOM CSS
- if($resolution == "normal") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook/style-profile.css";}
- if($resolution == "wide") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook/style-profile-wide.css";}
+ if($resolution == "normal") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook".$color_path."style-profile.css";}
+ if($resolution == "wide") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook".$color_path."style-profile-wide.css";}
}
}