Commit 59c98482 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Hide external videos on view layout page when a block is being configured

parent 9a0604c4
......@@ -66,7 +66,7 @@ class PluginBlocktypeExternalvideo extends SystemBlocktype {
$height = (!empty($configdata['height'])) ? hsc($configdata['height']) : self::$default_height;
if (isset($configdata['videoid'])) {
$result = '<div class="center">';
$result .= '<div class="mediaplayer-container center"><div class="mediaplayer">';
$result .= '<object width="' . $width . '" height="' . $height . '">';
$result .= '<param name="movie" value="' . $url . '"></param>';
$result .= '<param name="wmode" value="transparent"></param>';
......@@ -74,7 +74,7 @@ class PluginBlocktypeExternalvideo extends SystemBlocktype {
$result .= '<embed src="' . $url . '" ';
$result .= 'type="application/x-shockwave-flash" wmode="transparent" width="' . $width . '" ';
$result .= 'height="' . $height . '" allowscriptaccess="never"></embed></object>';
$result .= '</div>';
$result .= '</div></div>';
}
return $result;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment