widget_cssclass = 'woocommerce dgwt-wcas-widget'; $this->widget_description = __( 'AJAX (live) search form for WooCommerce', 'ajax-search-for-woocommerce' ); $this->widget_id = 'dgwt_wcas_ajax_search'; $this->widget_name = __( 'Woo AJAX Search', 'ajax-search-for-woocommerce' ); $this->settings = array( 'title' => array( 'type' => 'text', 'std' => '', 'label' => __( 'Title', 'ajax-search-for-woocommerce' ) ) ); parent::__construct(); } /** * Outputs the content of the widget * * @param array $args * @param array $instance */ public function widget( $args, $instance ) { $this->widget_start( $args, $instance ); echo \DgoraWcas\Shortcode::getForm($args); $this->widget_end( $args ); } } }