';
switch ($j->type) {
case "video":
if (isset($j->thumbnail_url)) {
@@ -173,7 +174,7 @@ class OEmbed
$th = 120;
$tw = $th * $tr;
$tpl = get_markup_template('oembed_video.tpl');
- $ret.=replace_macros($tpl, array(
+ $ret .= replace_macros($tpl, array(
'$baseurl' => System::baseUrl(),
'$embedurl' => $embedurl,
'$escapedhtml' => base64_encode($jhtml),
@@ -184,33 +185,32 @@ class OEmbed
} else {
$ret = $jhtml;
}
- //$ret.="
";
break;
case "photo":
- $ret.= "
";
+ $ret .= '
';
break;
case "link":
break;
case "rich":
- // not so safe..
if (self::isAllowedURL($embedurl)) {
$ret .= proxy_parse_html($jhtml);
}
break;
}
+ $ret .= '
';
// add link to source if not present in "rich" type
if ($j->type != 'rich' || !strpos($j->html, $embedurl)) {
- $ret .= "