Slideshare WordPress Embed Shortcode

I’m cleaning house in bSuite, and I’ve decided that this shortcode function for embedding Slideshare items in WordPress needs to go. Rather than totally toss it away, however, I’m posting it here in case somebody else finds it useful.

	function shortcode_slideshare( $arg ){
		// [slideshare id=211578&doc=misty-holland-1198496990903941-2&w=425]
 
		$arg = shortcode_atts( array(
			'id' => FALSE,
		), $arg );
 
		if( ! $arg['id'] )
			return( FALSE );
 
		return( str_replace( '%%id%%', $arg['id'], '
<div id="slideshare-%%id%%" class="embed slideshare"><object width="425" height="348" data="https://s3.amazonaws.com:443/slideshare/ssplayer.swf?id=%%id%%" type="application/x-shockwave-flash"><param name="wmode" value="transparent" /><param name="src" value="https://s3.amazonaws.com:443/slideshare/ssplayer.swf?id=%%id%%" /></object></div>
' ));
	}
 
	add_shortcode('slideshare', array(&amp;$this, 'shortcode_slideshare'));