flickr

The Jetpack by WordPress.com flickr shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[flickr]'); 
  1. // variable usage 
  2. $result = do_shortcode('[flickr]'); 
  3. echo $result;  

Defined (1)

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

/modules/shortcodes/flickr.php  
  1. return <<<EOD 
  2. <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> 
  3. EOD; 
  4.  
  5. add_shortcode( 'flickr', 'flickr_shortcode_handler' ); 
  6.  
  7. // Override core's Flickr support because Flickr oEmbed doesn't support web embeds 
  8. wp_embed_register_handler( 'flickr', '#https?://(www\.)?flickr\.com/.*#i', 'jetpack_flickr_oembed_handler' ); 
  9.  
  10. function jetpack_flickr_oembed_handler( $matches, $attr, $url ) {