'weaver_widget_text', 'description' => __('Text Widget with Two Columns - with HTML and shortcode support. Also adds shortcodes to standard Text widget.')); $control_ops = array('width' => 400, 'height' => 350); $this->WP_Widget('weaver_text', __('Weaver Text 2'), $widget_ops, $control_ops); } function widget( $args, $instance ) { extract($args); $title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); $text = apply_filters( 'weaver_text', $instance['text'], $instance ); $text2 = apply_filters( 'weaver_text', $instance['text2'], $instance ); echo $before_widget; if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?>
'); echo(wpautop($text2)); echo('
'); } else { echo($text); echo('
'); echo($text2); echo('
'); } ?>
'', 'text' => '' ) ); $title = strip_tags($instance['title']); $text = format_to_edit($instance['text']); $text2 = format_to_edit($instance['text2']); ?>

/>