function wp_lightbox_anchor_text_mp4_video_display($link, $poster, $width, $height, $text)
{
    $browser = new WP_LIGHTBOX_CHECK_BROWSER();
    $platform_name = $browser->getPlatform();
    $wp_lightbox_output = '';
    $anchor_type = "text";
    if ($platform_name == "iPad" || $platform_name == "iPhone") {
        $wp_lightbox_output .= get_html5_video_embed_code($link, $poster, $width, $height, $text, $anchor_type);
    } else {
        $wp_lightbox_output .= wp_lightbox_flowplayer_anchor_text_video_display($link, $width, $height, $text);
    }
    return $wp_lightbox_output;
}
Esempio n. 2
0
function wp_lightbox_flowplayer_anchor_text_video_handler($atts)
{
    global $wp_lightbox_config;
    if ($wp_lightbox_config->getValue('wp_lightbox_flowplayer_checkbox') == '') {
        $wp_lightbox_output .= '<div class="wp_lightbox_error_message">';
        $wp_lightbox_output .= 'You do not have flowplayer checkbox enabled in the settings';
        $wp_lightbox_output .= '</div>';
        return $wp_lightbox_output;
    }
    extract(shortcode_atts(array('link' => '', 'width' => '', 'height' => '', 'text' => 'Click Me'), $atts));
    return wp_lightbox_flowplayer_anchor_text_video_display($link, $width, $height, $text);
}