'fusion-soundcloud', 'id' => '', 'auto_play' => 'true', 'color' => 'ff7700', 'comments' => 'true', 'height' => 81, 'url' => '', 'width' => '100%' ), $args ); extract( $defaults ); self::$args = $defaults; if( $comments == 'yes' ) { $comments = 'true'; } elseif( $comments == 'no' ) { $comments = 'false'; } if( $auto_play == 'yes' ) { $autoplay = 'true'; } else { $autoplay = 'false'; } if( $color ) { $color = str_replace( '#', '', $color ); } $html = sprintf( '
', FusionCore_Plugin::attributes( 'soundcloud-shortcode' ), $width, $height, $url, $comments, $autoplay, $color ); return $html; } function attr() { $attr = array(); if( self::$args['class'] ) { $attr['class'] = self::$args['class']; } if( self::$args['id'] ) { $attr['id'] = self::$args['id']; } return $attr; } } new FusionSC_Soundcloud();