'shortcodes-ultimate', 'description' => __( 'Shortcodes Ultimate widget', 'shortcodes-ultimate' ) ); $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'shortcodes-ultimate' ); parent::__construct( 'shortcodes-ultimate', __( 'Shortcodes Ultimate', 'shortcodes-ultimate' ), $widget_ops, $control_ops ); } public static function register() { register_widget( 'Su_Widget' ); } function widget( $args, $instance ) { extract( $args ); $title = apply_filters( 'widget_title', $instance['title'] ); $content = $instance['content']; echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; echo '
'; echo $after_widget; } function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = strip_tags( $new_instance['title'] ); $instance['content'] = $new_instance['content']; return $instance; } function form( $instance ) { $defaults = array( 'title' => __( 'Shortcodes Ultimate', 'shortcodes-ultimate' ), 'content' => '' ); $instance = wp_parse_args( ( array ) $instance, $defaults ); ?>
$this->get_field_id( 'content' ) ) ); ?>