芝麻web文件管理V1.00
编辑当前文件:/home4/randall/public_html/sl/wp-content/plugins/advanced-woo-search/includes/widget.php
__('Advanced WooCommerce search widget', 'advanced-woo-search' ) ); $control_ops = array( 'width' => 400 ); parent::__construct( false, __( '» AWS Widget', 'advanced-woo-search' ), $widget_ops, $control_ops ); } /* * Display widget */ 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; echo $title; echo $after_title; } // Generate search form markup echo AWS()->markup(); echo $after_widget; } /* * Update widget settings */ function update( $new_instance, $old_instance ) { $instance = $old_instance; $params = array( 'title' ); foreach ( $params as $k ) { $instance[$k] = strip_tags( $new_instance[$k] ); } return $instance; } /* * Widget settings form */ function form( $instance ) { global $shortname; $defaults = array( 'title' => __( 'Search...', 'advanced-woo-search' ) ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>