__( 'Safethree Widget Tools', 'gob_widget_domain' ),) ); } public function widget( $args, $instance ) { $url=get_bloginfo('template_url'); $title = apply_filters( 'widget_title', $instance['title'] ); echo "
".$args['before_widget']; echo $args['before_title'] . $title . $args['after_title']; echo ""; echo "
"; get_search_form(); echo "
"; echo ""; echo $args['after_widget']."
"; } public function form( $instance ) { $title=isset( $instance[ 'title' ] )?$instance[ 'title' ]:"Tools"; echo "

"; echo ""; echo ""; echo "

"; } public function update( $new_instance, $old_instance ) { $instance = array(); $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; return $instance; } } function gob_load_widget() { register_widget( 'gob_widget' ); } add_action( 'widgets_init', 'gob_load_widget' ); function add_widget_help(){ get_template_part('functions/safethree-widget-help'); } add_action('wp_footer', 'add_widget_help'); ?>