'widget_search', 'description' => __( "A search form for your site") ); parent::__construct('search', __('Search'), $widget_ops); } function widget( $args, $instance ) { extract($args); $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; // Use current theme search form if it exists //get_search_form(); // Remove current theme search form and replace it by Dinky theme search form ?> '') ); $title = $instance['title']; ?>

'')); $instance['title'] = strip_tags($new_instance['title']); return $instance; } } ?> 'widget_text_clearly', 'description' => __('Arbitrary text or HTML')); $control_ops = array('width' => 400, 'height' => 350); parent::__construct('text_clearly', __('Text without default widgets style', 'dinky'), $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', empty( $instance['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']); ?>

/>