aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/theme.php
diff options
context:
space:
mode:
authortommy tomson <thomas.bierey@gmx.de>2012-04-20 17:16:42 +0200
committertommy tomson <thomas.bierey@gmx.de>2012-04-20 17:16:42 +0200
commite052be606c9c2c4e615cb557572a68af2181cc17 (patch)
tree38d32c36924f1c049703d75aad1306f15e9a6e78 /view/theme/diabook/theme.php
parent30bbbf32e53594f4ebada6acc1313333aabe8561 (diff)
downloadvolse-hubzilla-e052be606c9c2c4e615cb557572a68af2181cc17.tar.gz
volse-hubzilla-e052be606c9c2c4e615cb557572a68af2181cc17.tar.bz2
volse-hubzilla-e052be606c9c2c4e615cb557572a68af2181cc17.zip
diabook-themes: add diabook-green and some minor css/bug-fixes
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-xview/theme/diabook/theme.php34
1 files changed, 18 insertions, 16 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
index 9ad378b21..29e71c611 100755
--- a/view/theme/diabook/theme.php
+++ b/view/theme/diabook/theme.php
@@ -25,6 +25,7 @@ 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/";
+if ($color=="green") $color_path = "/diabook-green/";
/**
@@ -368,6 +369,22 @@ function yt_iframe() {
</script>';
+if($a->argv[0] === "settings" && local_user()) {
+$a->page['htmlhead'] .= '
+<script>
+function restore_boxes(){
+ $.cookie("close_pages","2", { expires: 365, path: "/" });
+ $.cookie("close_helpers","2", { expires: 365, path: "/" });
+ $.cookie("close_services","2", { expires: 365, path: "/" });
+ $.cookie("close_friends","2", { expires: 365, path: "/" });
+ $.cookie("close_lastusers","2", { expires: 365, path: "/" });
+ $.cookie("close_lastphotos","2", { expires: 365, path: "/" });
+ $.cookie("close_lastlikes","2", { expires: 365, path: "/" });
+ alert("Right-hand column was restored. Please refresh your browser");
+ }
+</script>';}
+
+
if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname'] or $a->argv[0] === "network" && local_user()){
$a->page['htmlhead'] .= '
@@ -457,22 +474,7 @@ function close_lastlikes(){
document.getElementById( "close_lastlikes" ).style.display = "none";
$.cookie("close_lastlikes","1", { expires: 365, path: "/" });
};
-</script>';}
-
-$a->page['htmlhead'] .= '
-<script>
-function restore_boxes(){
- $.cookie("close_pages","2", { expires: 365, path: "/" });
- $.cookie("close_helpers","2", { expires: 365, path: "/" });
- $.cookie("close_services","2", { expires: 365, path: "/" });
- $.cookie("close_friends","2", { expires: 365, path: "/" });
- $.cookie("close_lastusers","2", { expires: 365, path: "/" });
- $.cookie("close_lastphotos","2", { expires: 365, path: "/" });
- $.cookie("close_lastlikes","2", { expires: 365, path: "/" });
- alert("Right-hand column was restored. Please refresh your browser");
- }
-</script>';}
-
+</script>';}}
$a->page['htmlhead'] .= '