From 5b407b5ee7268cce3a3dbb659a5b33dc62ab93d7 Mon Sep 17 00:00:00 2001 From: tommy tomson Date: Tue, 17 Apr 2012 19:45:53 +0200 Subject: diabook-themes: theme-settings: "wide"-option and new screenshots --- view/theme/diabook-aerith/theme.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'view/theme/diabook-aerith/theme.php') diff --git a/view/theme/diabook-aerith/theme.php b/view/theme/diabook-aerith/theme.php index 358d28498..1518d7e8e 100644 --- a/view/theme/diabook-aerith/theme.php +++ b/view/theme/diabook-aerith/theme.php @@ -15,7 +15,9 @@ $a->page['htmlhead'] .= sprintf('', $diabook_version); //change css on network and profilepages $cssFile = null; - +$resolution=false; +$resolution = get_pconfig(local_user(), "diabook-aerith", "resolution"); +if ($resolution===false) $resolution="normal"; /** * prints last community activity @@ -249,7 +251,8 @@ if ($a->argv[0] === "network" && local_user()){ diabook_aerith_community_info(); // CUSTOM CSS - $cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-aerith/style-network.css"; + if($resolution == "normal") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-aerith/style-network.css";} + if($resolution == "wide") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-aerith/style-network-wide.css";} } } @@ -262,7 +265,8 @@ if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname']){ diabook_aerith_community_info(); // CUSTOM CSS - $cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-aerith/style-profile.css"; + if($resolution == "normal") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-aerith/style-profile.css";} + if($resolution == "wide") {$cssFile = $a->get_baseurl($ssl_state)."/view/theme/diabook-aerith/style-profile-wide.css";} } } -- cgit v1.2.3