aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook-red/theme.php
diff options
context:
space:
mode:
authortommy tomson <thomas.bierey@gmx.de>2012-04-17 19:45:53 +0200
committertommy tomson <thomas.bierey@gmx.de>2012-04-17 19:45:53 +0200
commit5b407b5ee7268cce3a3dbb659a5b33dc62ab93d7 (patch)
treea0d99585db56d471881176fec43e9b8aa90f07a9 /view/theme/diabook-red/theme.php
parent97c50a0924127a50016aecf06af8f10e4db95a9d (diff)
downloadvolse-hubzilla-5b407b5ee7268cce3a3dbb659a5b33dc62ab93d7.tar.gz
volse-hubzilla-5b407b5ee7268cce3a3dbb659a5b33dc62ab93d7.tar.bz2
volse-hubzilla-5b407b5ee7268cce3a3dbb659a5b33dc62ab93d7.zip
diabook-themes: theme-settings: "wide"-option and new screenshots
Diffstat (limited to 'view/theme/diabook-red/theme.php')
-rw-r--r--view/theme/diabook-red/theme.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/view/theme/diabook-red/theme.php b/view/theme/diabook-red/theme.php
index 02b6ee5a4..bb3e20ad7 100644
--- a/view/theme/diabook-red/theme.php
+++ b/view/theme/diabook-red/theme.php
@@ -14,7 +14,9 @@ $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-red", "resolution");
+if ($resolution===false) $resolution="normal";
/**
* prints last community activity
@@ -247,7 +249,8 @@ if ($a->argv[0] === "network" && local_user()){
diabook_red_community_info();
// CUSTOM CSS
- $cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/style-network.css";
+ if($resolution == "normal") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/style-network.css";}
+ if($resolution == "wide") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/style-network-wide.css";}
}
}
@@ -260,7 +263,8 @@ if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname']){
diabook_red_community_info();
// CUSTOM CSS
- $cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/style-profile.css";
+ if($resolution == "normal") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/style-profile.css";}
+ if($resolution == "wide") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-red/style-profile-wide.css";}
}
}