diff options
author | tomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net> | 2012-04-08 15:04:59 -0700 |
---|---|---|
committer | tomtom84 <63dc41d76451@ba77e90e49a6.anonbox.net> | 2012-04-08 15:04:59 -0700 |
commit | 06c04473420c8f44f224a96a311397c5624ab53a (patch) | |
tree | 7af1f6069d867f31443316f676de6ed5ca6902ff /view/theme/diabook/theme.php | |
parent | 5c0446975516f2b52b6cf51618e0b75af56de71b (diff) | |
parent | 7d018f651d5f5b21a650d81ab5ea16a224585da6 (diff) | |
download | volse-hubzilla-06c04473420c8f44f224a96a311397c5624ab53a.tar.gz volse-hubzilla-06c04473420c8f44f224a96a311397c5624ab53a.tar.bz2 volse-hubzilla-06c04473420c8f44f224a96a311397c5624ab53a.zip |
Merge pull request #215 from tomtom84/master
fixes in diabook-themes
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-x | view/theme/diabook/theme.php | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php index fbe42a304..924639625 100755 --- a/view/theme/diabook/theme.php +++ b/view/theme/diabook/theme.php @@ -3,13 +3,13 @@ /* * Name: Diabook * Description: Diabook: report bugs and request here: http://pad.toktan.org/p/diabook or contact me : thomas_bierey@friendica.eu - * Version: (Version: 1.014) + * Version: (Version: 1.015) * Author: */ //print diabook-version for debugging -$diabook_version = "Diabook (Version: 1.014)"; +$diabook_version = "Diabook (Version: 1.015)"; $a->page['htmlhead'] .= sprintf('<script "%s" ></script>', $diabook_version); //change css on network and profilepages @@ -376,11 +376,12 @@ $a->page['htmlhead'] .= ' </script>'; + $a->page['htmlhead'] .= ' <script> $(document).ready(function() { - $(".embed_yt iframe").each(function(){ + $("iframe").each(function(){ var ifr_source = $(this).attr("src"); var wmode = "wmode=transparent"; if(ifr_source.indexOf("?") != -1) { @@ -391,7 +392,18 @@ $(document).ready(function() { } else $(this).attr("src",ifr_source+"?"+wmode); }); + + }); + +function yt_iframe() { + + $("iframe").load(function() { + var ifr_src = $(this).contents().find("body iframe").attr("src"); + $("iframe").contents().find("body iframe").attr("src", ifr_src+"&wmode=transparent"); + }); + + }; </script>'; @@ -403,7 +415,12 @@ $a->page['htmlhead'] .= ' $(function() { $(".oembed.photo img").aeImageResize({height: 400, width: 400}); }); +</script>'; + + if($ccCookie != "8") { +$a->page['htmlhead'] .= ' +<script> $("right_aside").ready(function(){ if($.cookie("close_pages") == "1") @@ -487,9 +504,10 @@ 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: "/" }); @@ -500,5 +518,5 @@ function restore_boxes(){ $.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>';}
\ No newline at end of file |