aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook
diff options
context:
space:
mode:
authortommy tomson <thomas.bierey@gmx.de>2012-04-09 00:02:48 +0200
committertommy tomson <thomas.bierey@gmx.de>2012-04-09 00:02:48 +0200
commit7d018f651d5f5b21a650d81ab5ea16a224585da6 (patch)
tree7af1f6069d867f31443316f676de6ed5ca6902ff /view/theme/diabook
parent5c0446975516f2b52b6cf51618e0b75af56de71b (diff)
downloadvolse-hubzilla-7d018f651d5f5b21a650d81ab5ea16a224585da6.tar.gz
volse-hubzilla-7d018f651d5f5b21a650d81ab5ea16a224585da6.tar.bz2
volse-hubzilla-7d018f651d5f5b21a650d81ab5ea16a224585da6.zip
fixed z-index of youtube-vids
fixed bug to hide right_side
Diffstat (limited to 'view/theme/diabook')
-rw-r--r--view/theme/diabook/oembed_video.tpl2
-rw-r--r--view/theme/diabook/style-network.css3
-rw-r--r--view/theme/diabook/style-profile.css3
-rw-r--r--view/theme/diabook/style-settings.css2
-rw-r--r--view/theme/diabook/style.css5
-rwxr-xr-xview/theme/diabook/theme.php30
6 files changed, 30 insertions, 15 deletions
diff --git a/view/theme/diabook/oembed_video.tpl b/view/theme/diabook/oembed_video.tpl
index 026007271..d6d29f724 100644
--- a/view/theme/diabook/oembed_video.tpl
+++ b/view/theme/diabook/oembed_video.tpl
@@ -1,4 +1,4 @@
-<a class="embed_yt" href='$embedurl' onclick='this.innerHTML=Base64.decode("$escapedhtml"); return false;' style='float:left; margin: 1em; position: relative;'>
+<a class="embed_yt" href='$embedurl' onclick='this.innerHTML=Base64.decode("$escapedhtml"); yt_iframe(); return false;' style='float:left; margin: 1em; position: relative;'>
<img width='$tw' height='$th' src='$turl' >
<div style='position: absolute; top: 0px; left: 0px; width: $twpx; height: $thpx; background: url(images/icons/48/play.png) no-repeat center center;'></div>
</a>
diff --git a/view/theme/diabook/style-network.css b/view/theme/diabook/style-network.css
index af6e4027a..9e57c17d2 100644
--- a/view/theme/diabook/style-network.css
+++ b/view/theme/diabook/style-network.css
@@ -2103,7 +2103,6 @@ blockquote {
color: #777;
}
.oembed {
- font-size: large;
font-weight: bold;
}
.aprofile dt{
@@ -2549,4 +2548,4 @@ list-style-type: disc;
#photos-upload-newalbum-div {
float: left;
width: 175px;
-}
+} \ No newline at end of file
diff --git a/view/theme/diabook/style-profile.css b/view/theme/diabook/style-profile.css
index 6b05903d3..95e9061ba 100644
--- a/view/theme/diabook/style-profile.css
+++ b/view/theme/diabook/style-profile.css
@@ -2100,7 +2100,6 @@ blockquote {
color: #777;
}
.oembed {
- font-size: large;
font-weight: bold;
}
.aprofile dt{
@@ -2546,4 +2545,4 @@ list-style-type: disc;
#photos-upload-newalbum-div {
float: left;
width: 175px;
-}
+} \ No newline at end of file
diff --git a/view/theme/diabook/style-settings.css b/view/theme/diabook/style-settings.css
index 60e2f336b..fdb4f24c7 100644
--- a/view/theme/diabook/style-settings.css
+++ b/view/theme/diabook/style-settings.css
@@ -2526,4 +2526,4 @@ list-style-type: disc;
#photos-upload-newalbum-div {
float: left;
width: 175px;
-}
+} \ No newline at end of file
diff --git a/view/theme/diabook/style.css b/view/theme/diabook/style.css
index e99aa5644..d11e3191a 100644
--- a/view/theme/diabook/style.css
+++ b/view/theme/diabook/style.css
@@ -1219,7 +1219,7 @@ body .pageheader{
font-size: 20px;
margin-bottom: 20px;
margin-top: 0px;
- max-width: 575px;
+ max-width: 775px;
}
.qcomment{
max-width: 122px;
@@ -2246,7 +2246,6 @@ blockquote {
color: #777;
}
.oembed {
- font-size: large;
font-weight: bold;
}
.aprofile dt{
@@ -2687,4 +2686,4 @@ list-style-type: disc;
#photos-upload-newalbum-div {
float: left;
width: 175px;
-}
+} \ No newline at end of file
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