diff --git a/fp-plugins/bbcode/plugin.bbcode.php b/fp-plugins/bbcode/plugin.bbcode.php index cef360f..8669a39 100644 --- a/fp-plugins/bbcode/plugin.bbcode.php +++ b/fp-plugins/bbcode/plugin.bbcode.php @@ -346,7 +346,7 @@ function do_bbcode_video($action, $attr, $content, $params, $node_object) { // Check the [video] element's attributes width, height and float $width = isset($attr ['width']) ? $attr ['width'] : '560'; $height = isset($attr ['height']) ? $attr ['height'] : '315'; - $float = isset($attr ['float']) ? 'align="' . $attr ['float'] . '" ' : 'style="margin: 0 auto; display:block;" '; + $float = isset($attr ['float']) ? 'id="' . $attr ['float'] . '" ' : 'style="margin: 0 auto; display:block;" '; $query = utils_kexplode($vurl ['query'], '=&'); $output = null; @@ -355,19 +355,19 @@ function do_bbcode_video($action, $attr, $content, $params, $node_object) { switch ($type) { // YouTube case 'youtube': - $output = ''; + $output = ''; break; // Vimeo case 'vimeo': $vid = isset($query ['sec']) ? $query ['sec'] : str_replace('/', '', $vurl ['path']); - $output = ''; + $output = ''; break; // Facebook case 'facebook': $vid = isset($query ['sec']) ? $query ['sec'] : str_replace('/video/', '', $vurl ['path']); $output = '
-
'; +
'; break; // Any video file that can be played with HTML5