'accelerate_tagcloud_widget', 'description' => __( 'Custom Tag Cloud', 'accelerate' ), 'customize_selective_refresh' => true, ); $control_ops = array( 'width' => 200, 'height' => 250 ); parent::__construct( false, $name = __( 'TG: Custom Tag Cloud', 'accelerate' ) , $widget_ops, $control_ops ); } function widget( $args, $instance ) { extract( $args ); extract( $instance ); $title = empty( $instance[ 'title' ] ) ? 'Tags' : $instance[ 'title' ]; echo $before_widget; if ( $title ): echo $before_title . $title . $after_title; endif; wp_tag_cloud( 'smallest=13&largest=13px&unit=px' ); echo $after_widget; } function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); return $instance; } function form($instance) { $instance = wp_parse_args( ( array ) $instance, array( 'title'=>'Tags' ) ); $title = esc_attr( $instance[ 'title' ] ); ?>