You appear to be a bot. Output may be restricted
Description
Implements [bw_video] shortcode to display a video for attachments or other post types
Usage
bw_video( $atts );
Parameters
- $atts
- ( array ) optional – shortcode parameters
Returns
voidSource
File name: oik-video/oik-video.incLines:
1 to 20 of 20
function bw_video( $atts=null ) { $url = bw_array_get( $atts, "url", null ); $width = bw_array_get( $atts, "width", null ); $height = bw_array_get( $atts, "height", null ); $class = bw_array_get( $atts, "class", "bw_video" ); $atts['rel'] = bw_array_get ( $atts, "rel", 0 ); if ( $url ) { if ( false === strpos( $url, "rel=" ) ) { $url = esc_url( add_query_arg( "rel", $atts['rel'], $url ) ); } $url = _bw_improve_url( $url ); sdiv( $class ); bw_movie( $url, $width, $height ); ediv(); } else { bw_attached_videos( $atts, $width, $height ); } return( bw_ret() ); }