src/View/Shortcodes/EmbedShortcodeProvider.php
protected static function videoEmbed($arguments, $content)
    {
        // Ensure outer div has given width (but leave height auto)
        if (!empty($arguments['width'])) {
            $arguments['style'] = 'width: ' . intval($arguments['width']) . 'px;';
        }

        // Convert caption to <p>
        if (!empty($arguments['caption'])) {
            $xmlCaption = Convert::raw2xml($arguments['caption']);
            $content .= "\n<p class=\"caption\">{$xmlCaption}</p>";
        }
        unset($arguments['width']);
        unset($arguments['height']);
        unset($arguments['url']);
        unset($arguments['caption']);
        return HTML::createTag('div', $arguments, $content);
    }
protected static function videoEmbed($arguments, $content)
    {
        // Ensure outer div has given width (but leave height auto)
        if (!empty($arguments['width'])) {
            $arguments['style'] = 'width: ' . intval($arguments['width']) . 'px;';
        }

        // Convert caption to <p>
        if (!empty($arguments['caption'])) {
            $xmlCaption = Convert::raw2xml($arguments['caption']);
            $content .= "\n<p class=\"caption\">{$xmlCaption}</p>";
        }
        unset($arguments['width']);
        unset($arguments['height']);
        unset($arguments['url']);
        unset($arguments['caption']);
        return HTML::createTag('div', $arguments, $content);
    }
protected static function videoEmbed ( $ arguments , $ content ) { // Ensure outer div has given width (but leave height auto) if ( ! empty ( $ arguments [ 'width' ] ) ) { $ arguments [ 'style' ] = 'width: ' . intval ( $ arguments [ 'width' ] ) . 'px;' ; } // Convert caption to <p> if ( ! empty ( $ arguments [ 'caption' ] ) ) { $ xmlCaption = Convert :: raw2xml ( $ arguments [ 'caption' ] ) ; $ content .= "\n<p class=\"caption\">{$xmlCaption}</p>" ; } unset ( $ arguments [ 'width' ] ) ; unset ( $ arguments [ 'height' ] ) ; unset ( $ arguments [ 'url' ] ) ; unset ( $ arguments [ 'caption' ] ) ; return HTML :: createTag ( 'div' , $ arguments , $ content ) ; }
Build video embed tag

@param array $arguments
@param string $content Raw HTML content
@return string
Build video embed tag