flickr_shortcode_video_markup

The Jetpack by WordPress.com flickr shortcode video markup function.

Description

flickr_shortcode_video_markup( $atts ); 

Parameters (1)

0. $atts
The atts.

Usage

  1. if ( !function_exists( 'flickr_shortcode_video_markup' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/shortcodes/flickr.php'; 
  3.  
  4. // The atts. 
  5. $atts = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = flickr_shortcode_video_markup($atts); 
  9.  

Defined (1)

The function is defined in the following location(s).

/modules/shortcodes/flickr.php  
  1. function flickr_shortcode_video_markup( $atts ) { 
  2. $atts = array_map( 'esc_attr', $atts ); 
  3. $http = ( is_ssl() ) ? 'https://' : 'http://'; 
  4.  
  5. $photo_vars = "photo_id=$atts[photo_id]"; 
  6. if ( isset( $atts['secret'] ) ) 
  7. $photo_vars .= "&photo_secret=$atts[secret]"; 
  8.  
  9. return <<<EOD 
  10. <object type="application/x-shockwave-flash" width="$atts[w]" height="$atts[h]" data="{$http}www.flickr.com/apps/video/stewart.swf?v=1.161" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="$photo_vars&flickr_show_info_box=$atts[show_info]"></param><param name="movie" value="{$http}www.flickr.com/apps/video/stewart.swf?v=1.161"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></param><embed type="application/x-shockwave-flash" src="{$http}www.flickr.com/apps/video/stewart.swf?v=1.161" bgcolor="#000000" allowfullscreen="true" flashvars="$photo_vars&flickr_show_info_box=$atts[show_info]" wmode="opaque" height="$atts[h]" width="$atts[w]"></embed></object> 
  11. EOD;