}
function tryoembed($match){
- //$url = ((count($match)==2)?$match[1]:$match[2]);
$url = $match[1];
// Always embed the SSL version
$url = str_replace(array("http://www.youtube.com/", "http://player.vimeo.com/"),
array("https://www.youtube.com/", "https://player.vimeo.com/"), $url);
- //logger("tryoembed: $url");
$o = oembed_fetch_url($url);
if ($o->type=="error") return $match[0];
$html = oembed_format_object($o);
- return $html; //oembed_iframe($html,$o->width,$o->height);
+ return $html;
}
<?php
function oembed_replacecb($matches){
-// logger('oembedcb');
$embedurl=$matches[1];
$j = oembed_fetch_url($embedurl);
$s = oembed_format_object($j);
- return $s;//oembed_iframe($s,$j->width,$j->height);
-
-
+ return $s;
}
} else {
$ret=$jhtml;
}
- $ret.="<br>";
+ //$ret.="<br>";
}; break;
case "photo": {
$ret.= "<img width='".$j->width."' src='".proxy_url($j->url)."'>";
- //$ret.= "<img width='".$j->width."' height='".$j->height."' src='".proxy_url($j->url)."'>";
- $ret.="<br>";
}; break;
case "link": {
- //$ret = "<a href='".$embedurl."'>".$j->title."</a>";
}; break;
case "rich": {
// not so safe..
} else {
// add <a> for html2bbcode conversion
$ret .= "<a href='$embedurl' rel='oembed'>$embedurl</a>";
- $ret .= "<br style='clear:left'>";
}
$ret.="</span>";
- return mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret));
+ $ret = str_replace("\n","",$ret);
+ return mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret));
}
function oembed_iframe($src,$width,$height) {
-
<a class="embed_video" href='{{$embedurl}}' onclick='this.innerHTML=Base64.decode("{{$escapedhtml}}"); return false;'>
<img width='{{$tw}}' height='{{$th}}' src='{{$turl}}' >
- <div style='position: absolute; top: 0px; left: 0px; width: {{$tw}}px; height: {{$th}}px; background: url({{$baseurl}}/images/icons/48/play.png) no-repeat center center;'></div>
+ <div style='width: {{$tw}}px; height: {{$th}}px;'></div>
</a>
}
.type-link .oembed {
}
+.oembed.video .embed_video > div {
+ position: absolute; top: 0px; left: 0px;
+ background: rgba(0, 0, 0, 0.5) url(shiny.png) no-repeat scroll center center;
+}
.shared_header {
height: 32px;
text-decoration: underline;
}
blockquote {
- background: #ffffff;
+ background: #FFFFFF;
padding: 1em;
margin-left: 1em;
border-left: 1em solid #e6e6e6;
margin: 0;
padding: 0;
/*width: 100%; height: 12px; */
-
z-index: 110;
color: #ffffff;
}
overflow: auto;
height: auto;
/*.contact-block-div { width:60px; height: 60px; }*/
-
}
#contact-block .contact-block-h4 {
float: left;
margin-bottom: 2em;
/*.action .s10 { width: 10px; overflow: hidden; padding: 0;}
.action .s16 { width: 16px; overflow: hidden; padding: 0;}*/
-
}
.widget h3 {
padding: 0;
height: 32px;
margin-left: 16px;
/*background: url(../../../images/icons/22/user.png) no-repeat center center;*/
-
}
.comment-edit-preview .contact-photo-menu-button {
top: 15px !important;
}
.oembed.video > a.embed_video {
display: block;
- float: none;
+ float: left;
+ position: relative;
}
.oembed.video > a.embed_video > div {
+ position: absolute;
+ top: 0px;
+ left: 0px;
background: rgba(255, 255, 255, 0.36) url(../../../images/icons/48/play.png) no-repeat center center !important;
}
/* threaded comments */
min-height: 22px;
padding-top: 6px;
/* a { display: block;}*/
-
}
#photo-caption {
display: block;
text-decoration: underline;
}
blockquote {
- background: #ffffff;
+ background: #FFFFFF;
padding: 1em;
margin-left: 1em;
border-left: 1em solid #e6e6e6;
margin: 0;
padding: 0;
/*width: 100%; height: 12px; */
-
z-index: 110;
color: #ffffff;
}
overflow: auto;
height: auto;
/*.contact-block-div { width:60px; height: 60px; }*/
-
}
#contact-block .contact-block-h4 {
float: left;
margin-bottom: 2em;
/*.action .s10 { width: 10px; overflow: hidden; padding: 0;}
.action .s16 { width: 16px; overflow: hidden; padding: 0;}*/
-
}
.widget h3 {
padding: 0;
height: 32px;
margin-left: 16px;
/*background: url(../../../images/icons/22/user.png) no-repeat center center;*/
-
}
.comment-edit-preview .contact-photo-menu-button {
top: 15px !important;
}
.oembed.video > a.embed_video {
display: block;
- float: none;
+ float: left;
+ position: relative;
}
.oembed.video > a.embed_video > div {
+ position: absolute;
+ top: 0px;
+ left: 0px;
background: rgba(255, 255, 255, 0.36) url(../../../images/icons/48/play.png) no-repeat center center !important;
}
/* threaded comments */
min-height: 22px;
padding-top: 6px;
/* a { display: block;}*/
-
}
#photo-caption {
display: block;
body {
font-family: Liberation Sans, helvetica, arial, clean, sans-serif;
font-size: 11px;
- background-color: #f6ecf9;
+ background-color: #F6ECF9;
color: #2d2d2d;
margin: 50px 0 0 0;
display: table;
text-decoration: underline;
}
blockquote {
- background: #ffffff;
+ background: #FFFFFF;
padding: 1em;
margin-left: 1em;
border-left: 1em solid #e6e6e6;
margin: 0;
padding: 0;
/*width: 100%; height: 12px; */
-
z-index: 110;
color: #ffffff;
}
overflow: auto;
height: auto;
/*.contact-block-div { width:60px; height: 60px; }*/
-
}
#contact-block .contact-block-h4 {
float: left;
margin-bottom: 2em;
/*.action .s10 { width: 10px; overflow: hidden; padding: 0;}
.action .s16 { width: 16px; overflow: hidden; padding: 0;}*/
-
}
.widget h3 {
padding: 0;
height: 32px;
margin-left: 16px;
/*background: url(../../../images/icons/22/user.png) no-repeat center center;*/
-
}
.comment-edit-preview .contact-photo-menu-button {
top: 15px !important;
}
.oembed.video > a.embed_video {
display: block;
- float: none;
+ float: left;
+ position: relative;
}
.oembed.video > a.embed_video > div {
+ position: absolute;
+ top: 0px;
+ left: 0px;
background: rgba(255, 255, 255, 0.36) url(../../../images/icons/48/play.png) no-repeat center center !important;
}
/* threaded comments */
height: 20px;
width: 500px;
font-weight: bold;
- border: 1px solid #f6ecf9;
+ border: 1px solid #F6ECF9;
}
#jot #jot-title:-webkit-input-placeholder {
font-weight: normal;
margin: 0;
height: 20px;
width: 200px;
- border: 1px solid #f6ecf9;
+ border: 1px solid #F6ECF9;
}
#jot #jot-category:hover {
border: 1px solid #999999;
min-height: 22px;
padding-top: 6px;
/* a { display: block;}*/
-
}
#photo-caption {
display: block;
margin: 1em 0;
max-height: 160px;
overflow: hidden;
- padding-left: 1em;
+ padding-left: 1em;
}
.oembed {}
}
.oembed.video {
> a.embed_video {
display: block;
- float: none;
+ float: left;
+ position: relative;
> div {
+ position: absolute; top: 0px; left: 0px;
background:
rgba(255, 255, 255, 0.36)
url(../../../images/icons/48/play.png)
display: block;
}
+.oembed.video .embed_video > div {
+ position: absolute; top: 0px; left: 0px;
+ background-color: rgba(0,0,0,0.5);
+}
+.oembed.video .embed_video > div::before {
+ font-family: FontAwesome;
+ font-weight: normal;
+ font-style: normal;
+ display: inline-block;
+ text-decoration: inherit;
+ vertical-align: top;
+ font-size: 3em;
+ content: "\f01d"; /* icon-play-circle */
+ color: #fff;
+ bottom: 10px;
+ right: 10px;
+ position: absolute;
+}
+
/* ================== */
/* = Contacts Block = */
/* ================== */