aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/theme.php
diff options
context:
space:
mode:
authortommy tomson <thomas.bierey@gmx.de>2012-04-02 17:17:14 +0200
committertommy tomson <thomas.bierey@gmx.de>2012-04-02 17:17:14 +0200
commitb5d57d5313b61842a72f0e2ad002cf633aa72dd7 (patch)
tree4ffebdb810c5839b4906044114100c829a06e48f /view/theme/diabook/theme.php
parent9faa940f044dd47687a008272c727f8f8dac9fec (diff)
downloadvolse-hubzilla-b5d57d5313b61842a72f0e2ad002cf633aa72dd7.tar.gz
volse-hubzilla-b5d57d5313b61842a72f0e2ad002cf633aa72dd7.tar.bz2
volse-hubzilla-b5d57d5313b61842a72f0e2ad002cf633aa72dd7.zip
diabook-themes: fixed pageheader
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-xview/theme/diabook/theme.php68
1 files changed, 33 insertions, 35 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
index a535ed07e..34e5535de 100755
--- a/view/theme/diabook/theme.php
+++ b/view/theme/diabook/theme.php
@@ -265,7 +265,7 @@ if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname']){
}
}
-//tabs at right_aside on settings page
+//tabs at aside on settings page
if ($a->argv[0] === "settings"){
$tabs = array(
@@ -324,55 +324,58 @@ $a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></scrip
//js scripts
-$a->page['htmlhead'] .= <<< EOT
+$a->page['htmlhead'] .= '
<script>
$(function() {
- $('a.lightbox').fancybox(); // Select all links with lightbox class
+ $("a.lightbox").fancybox(); // Select all links with lightbox class
});
- </script>
+ </script>';
+
+if ($a->argv[0].$a->argv[1] === "profile".$a->user['nickname'] or $a->argv[0] === "network" && local_user()){
+$a->page['htmlhead'] .= '
<script>
$("right_aside").ready(function(){
- if($.cookie('close_pages') == '1')
+ if($.cookie("close_pages") == "1")
{
document.getElementById( "close_pages" ).style.display = "none";
};
- if($.cookie('close_helpers') == '1')
+ if($.cookie("close_helpers") == "1")
{
document.getElementById( "close_helpers" ).style.display = "none";
};
- if($.cookie('close_services') == '1')
+ if($.cookie("close_services") == "1")
{
document.getElementById( "close_services" ).style.display = "none";
};
- if($.cookie('close_friends') == '1')
+ if($.cookie("close_friends") == "1")
{
document.getElementById( "close_friends" ).style.display = "none";
};
- if($.cookie('close_postit') == '1')
+ if($.cookie("close_postit") == "1")
{
document.getElementById( "close_postit" ).style.display = "none";
};
- if($.cookie('close_lastusers') == '1')
+ if($.cookie("close_lastusers") == "1")
{
document.getElementById( "close_lastusers" ).style.display = "none";
};
- if($.cookie('close_lastphotos') == '1')
+ if($.cookie("close_lastphotos") == "1")
{
document.getElementById( "close_lastphotos" ).style.display = "none";
};
- if($.cookie('close_lastlikes') == '1')
+ if($.cookie("close_lastlikes") == "1")
{
document.getElementById( "close_lastlikes" ).style.display = "none";
};}
@@ -381,60 +384,55 @@ $("right_aside").ready(function(){
function close_pages(){
document.getElementById( "close_pages" ).style.display = "none";
- $.cookie('close_pages','1', { expires: 365, path: '/' });
+ $.cookie("close_pages","1", { expires: 365, path: "/" });
};
function close_helpers(){
document.getElementById( "close_helpers" ).style.display = "none";
- $.cookie('close_helpers','1', { expires: 365, path: '/' });
+ $.cookie("close_helpers","1", { expires: 365, path: "/" });
};
function close_services(){
document.getElementById( "close_services" ).style.display = "none";
- $.cookie('close_services','1', { expires: 365, path: '/' });
+ $.cookie("close_services","1", { expires: 365, path: "/" });
};
function close_friends(){
document.getElementById( "close_friends" ).style.display = "none";
- $.cookie('close_friends','1', { expires: 365, path: '/' });
+ $.cookie("close_friends","1", { expires: 365, path: "/" });
};
function close_postit(){
document.getElementById( "close_postit" ).style.display = "none";
- $.cookie('close_postit','1', { expires: 365, path: '/' });
+ $.cookie("close_postit","1", { expires: 365, path: "/" });
};
function close_lastusers(){
document.getElementById( "close_lastusers" ).style.display = "none";
- $.cookie('close_lastusers','1', { expires: 365, path: '/' });
+ $.cookie("close_lastusers","1", { expires: 365, path: "/" });
};
function close_lastphotos(){
document.getElementById( "close_lastphotos" ).style.display = "none";
- $.cookie('close_lastphotos','1', { expires: 365, path: '/' });
+ $.cookie("close_lastphotos","1", { expires: 365, path: "/" });
};
function close_lastlikes(){
document.getElementById( "close_lastlikes" ).style.display = "none";
- $.cookie('close_lastlikes','1', { expires: 365, path: '/' });
+ $.cookie("close_lastlikes","1", { expires: 365, path: "/" });
};
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_postit','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');
+ $.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_postit","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>
-
-
-EOT;
+</script>';} \ No newline at end of file