diff options
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-x | view/theme/diabook/theme.php | 34 |
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'] .= ' |