function wp_lightbox_anchor_text_protected_s3_video_display($name, $bucket, $poster, $width, $height, $text)
{
    $browser = new WP_LIGHTBOX_CHECK_BROWSER();
    $platform_name = $browser->getPlatform();
    $wp_lightbox_output = '';
    if ($platform_name == "iPad" || $platform_name == "iPhone") {
        $wp_lightbox_output .= wp_lightbox_html5_anchor_text_protected_s3_video_display($name, $bucket, $poster, $width, $height, $text);
    } else {
        $wp_lightbox_output .= wp_lightbox_flowplayer_anchor_text_protected_s3_video_display($name, $bucket, $width, $height, $text);
    }
    return $wp_lightbox_output;
}
Exemple #2
0
function wp_lightbox_flowplayer_anchor_text_protected_s3_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('name' => '', 'bucket' => '', 'width' => '', 'height' => '', 'text' => 'Click Me'), $atts));
    return wp_lightbox_flowplayer_anchor_text_protected_s3_video_display($name, $bucket, $width, $height, $text);
}