'widget_text', 'description' => __('Arbitrary text or HTML', 'allow-javascript-in-text-widgets')); $control_ops = array('width' => 400, 'height' => 350); parent::__construct('text', __('Text', 'allow-javascript-in-text-widgets'), $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( 'widget_text', $instance['text'], $instance ); echo $before_widget; if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?>
'', 'text' => '' ) ); $title = strip_tags($instance['title']); $text = esc_textarea($instance['text']); ?>
/>