/**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'nm_widget nm_widget_color_filter woocommerce widget_layered_nav';
     $this->widget_description = __('Shows "color" attributes in a widget which lets you narrow down the list of products when viewing products. ', 'woocommerce');
     $this->widget_id = 'nm_woocommerce_color_filter';
     $this->widget_name = __('WooCommerce Color Filter', 'woocommerce');
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_all_products';
     $this->widget_description = __('Display a list of your products, grouped by categories on your site.', 'woocommerce');
     $this->widget_id = 'woocommerce_all_products';
     $this->widget_name = __('WooCommerce All Products', 'woocommerce');
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'nm_widget nm_widget_price_filter woocommerce widget_price_filter';
     $this->widget_description = __('Shows a price filter list in a widget which lets you narrow down the list of shown products when viewing product categories.', 'woocommerce');
     $this->widget_id = 'nm_woocommerce_price_filter';
     $this->widget_name = __('WooCommerce Price Filter List', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Filter by price', 'woocommerce'), 'label' => __('Title', 'woocommerce')), 'price_range_size' => array('type' => 'number', 'step' => 1, 'min' => 1, 'max' => '', 'std' => 50, 'label' => __('Price range size', 'nm-framework-admin')), 'max_price_ranges' => array('type' => 'number', 'step' => 1, 'min' => 1, 'max' => '', 'std' => 10, 'label' => __('Max price ranges', 'nm-framework-admin')), 'hide_empty_ranges' => array('type' => 'checkbox', 'std' => 1, 'label' => __('Hide empty price ranges', 'nm-framework-admin')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_top_rated_products';
     $this->widget_description = __('Display a list of your top rated products on your site.', 'woocommerce');
     $this->widget_id = 'woocommerce_top_rated_products';
     $this->widget_name = __('WooCommerce Top Rated Products', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Top Rated Products', 'woocommerce'), 'label' => __('Title', 'woocommerce')), 'number' => array('type' => 'number', 'step' => 1, 'min' => 1, 'max' => '', 'std' => 5, 'label' => __('Number of products to show', 'woocommerce')));
     parent::__construct();
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_recent_reviews';
     $this->widget_description = __('Display a list of your most recent reviews on your site.', 'woocommerce');
     $this->widget_id = 'woocommerce_recent_reviews';
     $this->widget_name = __('WooCommerce recent reviews', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Recent reviews', 'woocommerce'), 'label' => __('Title', 'woocommerce')), 'number' => array('type' => 'number', 'step' => 1, 'min' => 1, 'max' => '', 'std' => 10, 'label' => __('Number of reviews to show', 'woocommerce')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'nm_widget nm_widget_product_sorting woocommerce';
     $this->widget_description = __('Display a product sorting list.', 'nm-framework');
     $this->widget_id = 'nm_woocommerce_widget_product_sorting';
     $this->widget_name = __('WooCommerce Product Sorting', 'nm-framework');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Sort By', 'nm-framework'), 'label' => __('Title', 'nm-framework')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_product_search';
     $this->widget_description = __('A Search box for products only.', 'woocommerce');
     $this->widget_id = 'woocommerce_product_search';
     $this->widget_name = __('WooCommerce Product Search', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title', 'woocommerce')));
     parent::__construct();
 }
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce woocommerce_gzd widget_trusted_shops_reviews';
     $this->widget_description = _x("Display your Trusted Shops Reviews as graphic.", 'trusted-shops', 'woocommerce-germanized');
     $this->widget_id = 'woocommerce_gzd_widget_trusted_shops_reviews';
     $this->widget_name = _x('Trusted Shops Reviews', 'trusted-shops', 'woocommerce-germanized');
     $this->settings = array('title' => array('type' => 'text', 'std' => _x('Trusted Shops Reviews', 'trusted-shops', 'woocommerce-germanized'), 'label' => __('Title', 'woocommerce')));
     parent::__construct();
 }
 /**
  * constructor
  *
  * @see WC_Widget_Product_Categories
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_product_categories widget_category_diagram';
     $this->widget_description = __('A list or dropdown of product categories with a diagram image and legend.', 'woocommerce-category-diagram-widget');
     $this->widget_id = 'woocommerce_product_category_diagram';
     $this->widget_name = __('WooCommerce Categories w/ Diagram', 'woocommerce-category-diagram-widget');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Product Categories', 'woocommerce'), 'label' => __('Title', 'woocommerce')), 'orderby' => array('type' => 'select', 'std' => 'name', 'label' => __('Order by', 'woocommerce'), 'options' => array('order' => __('Category Order', 'woocommerce'), 'name' => __('Name', 'woocommerce'))), 'diagram_position' => array('type' => 'select', 'std' => 'below', 'label' => __('Diagram Position', 'woocommerce-category-diagram-widget'), 'options' => array('above' => __('Above Filter', 'woocommerce-category-diagram-widget'), 'below' => __('Below Filter', 'woocommerce-category-diagram-widget'))), 'dropdown' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Show as dropdown', 'woocommerce')), 'count' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Show product counts', 'woocommerce')), 'hierarchical' => array('type' => 'checkbox', 'std' => 1, 'label' => __('Show hierarchy', 'woocommerce')), 'show_children_only' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Only show children of the current category', 'woocommerce')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_brands_filter';
     $this->widget_description = __('Shows brands in a widget which lets you narrow down the list of products when viewing product categories.', 'media_center');
     $this->widget_id = 'mc_brands_filter';
     $this->widget_name = __('MediaCenter Brands Filter', 'media_center');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Filter by', 'media_center'), 'label' => __('Title', 'media_center')), 'display_type' => array('type' => 'select', 'std' => 'list', 'label' => __('Display type', 'media_center'), 'options' => array('list' => __('List', 'media_center'), 'dropdown' => __('Dropdown', 'media_center'))), 'query_type' => array('type' => 'select', 'std' => 'and', 'label' => __('Query type', 'media_center'), 'options' => array('and' => __('AND', 'media_center'), 'or' => __('OR', 'media_center'))));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'stm_widget_top_rated_products';
     $this->widget_description = __('Display a list of your top rated products on your site with course expert.', STM_DOMAIN);
     $this->widget_id = 'stm_widget_top_rated_products';
     $this->widget_name = __('STM WooCommerce Top Rated Products', STM_DOMAIN);
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Popular courses', STM_DOMAIN), 'label' => __('Title', STM_DOMAIN)), 'style' => array('type' => 'select', 'std' => __('style_1', STM_DOMAIN), 'options' => array('style_1' => 'Style 1', 'style_2' => 'Style 2'), 'label' => __('Style', STM_DOMAIN)), 'number' => array('type' => 'number', 'step' => 1, 'min' => 1, 'max' => '', 'std' => 5, 'label' => __('Number of products to show', STM_DOMAIN)));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_products';
     $this->widget_description = __('Display a list of recommended products for the current user on your site.', 'wc-graphflow');
     $this->widget_id = 'graphflow_recommendations_widget';
     $this->widget_name = __('WooCommerce Graphflow Recommended Products', 'wc-graphflow');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Recommended For You', 'wc-graphflow'), 'label' => __('Title', 'wc-graphflow')), 'number' => array('type' => 'number', 'step' => 1, 'min' => 1, 'max' => 10, 'std' => 5, 'label' => __('Number of products to show', 'wc-graphflow')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_composite_summary composite_summary cp-no-js';
     $this->widget_description = __("Display a Composite Product configuration summary in the sidebar. The widget will be displayed only with Composite products that use the Stepped layout.", 'woocommerce-composite-products');
     $this->widget_id = 'woocommerce_widget_composite_summary';
     $this->widget_name = __('WooCommerce Composite Product Summary', 'woocommerce-composite-products');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Your Configuration', 'woocommerce-composite-products'), 'label' => __('Title', 'woocommerce')));
     parent::__construct();
 }
示例#14
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_cruxstore_price_filter';
     $this->widget_description = esc_html__('Shows a price filter slider in a widget which lets you narrow down the list of shown products when viewing product categories.', 'woocommerce');
     $this->widget_id = 'wc_cruxstore_price_filter';
     $this->widget_name = esc_html__('KT: WooCommerce Price Filter', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => esc_html__('Filter by price', 'woocommerce'), 'label' => esc_html__('Title', 'woocommerce')), 'range_size' => array('type' => 'number', 'min' => 1, 'max' => '', 'step' => 1, 'std' => 50, 'label' => esc_html__('Price range size', 'cruxstore')), 'max_ranges' => array('type' => 'number', 'min' => 1, 'max' => '', 'step' => 1, 'std' => 5, 'label' => esc_html__('Max price ranges', 'cruxstore')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'vertical-menu';
     $this->widget_description = __('Home Page like vertical menu.', 'media_center');
     $this->widget_id = 'media_center_vertical_menu';
     $this->widget_name = __('Media Center Vertical Menu', 'media_center');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Shop By Departments', 'media_center'), 'label' => __('Title for vertical menu', 'media_center')), 'icon_class' => array('type' => 'text', 'std' => 'fa-list', 'label' => sprintf(__('Fontawesome Icon Class. Default icon is <em>fa-list</em>. For complete list of icon classes %s', 'media_center'), '<a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank">' . __('Click here', 'media_center') . '</a>')), 'menu' => array('type' => 'text', 'std' => '', 'label' => __('Menu ID, slug, or name. Leave it empty to pull all product categories.', 'media_center')), 'dropdown_trigger' => array('type' => 'select', 'std' => 'click', 'label' => __('Dropdown Trigger', 'media_center'), 'options' => array('click' => __('Click', 'media_center'), 'hover' => __('Hover', 'media_center'))), 'dropdown_animation' => array('type' => 'select', 'std' => 'none', 'label' => __('Dropdown Animation', 'media_center'), 'options' => array('none' => __('No Animation', 'media_center'), 'bounceIn' => __('BounceIn', 'media_center'), 'bounceInDown' => __('BounceInDown', 'media_center'), 'bounceInLeft' => __('BounceInLeft', 'media_center'), 'bounceInRight' => __('BounceInRight', 'media_center'), 'bounceInUp' => __('BounceInUp', 'media_center'), 'fadeIn' => __('FadeIn', 'media_center'), 'fadeInDown' => __('FadeInDown', 'media_center'), 'fadeInDownBig' => __('FadeInDown Big', 'media_center'), 'fadeInLeft' => __('FadeInLeft', 'media_center'), 'fadeInLeftBig' => __('FadeInLeft Big', 'media_center'), 'fadeInRight' => __('FadeInRight', 'media_center'), 'fadeInRightBig' => __('FadeInRight Big', 'media_center'), 'fadeInUp' => __('FadeInUp', 'media_center'), 'fadeInUpBig' => __('FadeInUp Big', 'media_center'), 'flipInX' => __('FlipInX', 'media_center'), 'flipInY' => __('FlipInY', 'media_center'), 'lightSpeedIn' => __('Light SpeedIn', 'media_center'), 'rotateIn' => __('RotateIn', 'media_center'), 'rotateInDownLeft' => __('RotateInDown Left', 'media_center'), 'rotateInDownRight' => __('RotateInDown Right', 'media_center'), 'rotateInUpLeft' => __('RotateInUp Left', 'media_center'), 'rotateInUpRight' => __('RotateInUp Right', 'media_center'), 'roleIn' => __('RoleIn', 'media_center'), 'zoomIn' => __('ZoomIn', 'media_center'), 'zoomInDown' => __('ZoomInDown', 'media_center'), 'zoomInLeft' => __('ZoomInLeft', 'media_center'), 'zoomInRight' => __('ZoomInRight', 'media_center'), 'zoomInUp' => __('ZoomInUp', 'media_center'))), 'el_class' => array('type' => 'text', 'std' => '', 'label' => __('Extra Class', 'media_center')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'tab-holder';
     $this->widget_description = __('A list or dropdown of product categories.', 'media_center');
     $this->widget_id = 'media_center_home_tabs';
     $this->widget_name = __('Media Center Home Tabs', 'media_center');
     $this->settings = array('title_tab_1' => array('type' => 'text', 'std' => __('Featured', 'media_center'), 'label' => __('Tab #1 Title', 'media_center')), 'content_tab_1' => array('type' => 'select', 'std' => 'featured_products', 'label' => __('Show', 'media_center'), 'options' => array('featured_products' => __('Featured Products', 'media_center'), 'sale_products' => __('On Sale Products', 'media_center'), 'top_rated_products' => __('Top Rated Products', 'media_center'), 'recent_products' => __('Recent Products', 'media_center'), 'best_selling_products' => __('Best Selling Products', 'media_center'))), 'title_tab_2' => array('type' => 'text', 'std' => __('New Arrivals', 'media_center'), 'label' => __('Tab #2 Title', 'media_center')), 'content_tab_2' => array('type' => 'select', 'std' => 'recent_products', 'label' => __('Show', 'media_center'), 'options' => array('featured_products' => __('Featured Products', 'media_center'), 'sale_products' => __('On Sale Products', 'media_center'), 'top_rated_products' => __('Top Rated Products', 'media_center'), 'recent_products' => __('Recent Products', 'media_center'), 'best_selling_products' => __('Best Selling Products', 'media_center'))), 'title_tab_3' => array('type' => 'text', 'std' => __('Top Sales', 'media_center'), 'label' => __('Tab #3 Title', 'media_center')), 'content_tab_3' => array('type' => 'select', 'std' => 'best_selling_products', 'label' => __('Show', 'media_center'), 'options' => array('featured_products' => __('Featured Products', 'media_center'), 'sale_products' => __('On Sale Products', 'media_center'), 'top_rated_products' => __('Top Rated Products', 'media_center'), 'recent_products' => __('Recent Products', 'media_center'), 'best_selling_products' => __('Best Selling Products', 'media_center'))), 'product_item_size' => array('type' => 'select', 'std' => 'size-medium', 'label' => __('Product Item Size', 'media_center'), 'options' => array('size-big' => __('Size Big', 'media_center'), 'size-medium' => __('Size Medium', 'media_center'), 'size-small' => __('Size Small', 'media_center'))), 'screen_width' => array('type' => 'select', 'std' => '100', 'label' => __('Layout Type', 'media_center'), 'options' => array('100' => __('Full Width', 'media_center'), '75' => __('Has Sidebar', 'media_center'))));
     parent::__construct();
 }
示例#17
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_product_categories';
     $this->widget_description = 'Перечень главных категорий каталога';
     $this->widget_id = 'wpm_categs';
     $this->widget_name = 'Разделы товаров';
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Product Categories', 'woocommerce'), 'label' => __('Title', 'woocommerce')), 'orderby' => array('type' => 'select', 'std' => 'name', 'label' => __('Order by', 'woocommerce'), 'options' => array('order' => __('Category Order', 'woocommerce'), 'name' => __('Name', 'woocommerce'))), 'hide_empty' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Hide empty categories', 'woocommerce')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_price_filter';
     $this->widget_description = esc_html__('Shows a price filter slider in a widget which lets you narrow down the list of shown products when viewing product categories.', 'woocommerce');
     $this->widget_id = 'woocommerce_price_filter';
     $this->widget_name = esc_html__('WooCommerce Price Filter', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => esc_html__('Filter by price', 'woocommerce'), 'label' => esc_html__('Title', 'woocommerce')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_product_tag_cloud';
     $this->widget_description = __('Your most used product tags in cloud format.', 'woocommerce');
     $this->widget_id = 'woocommerce_product_tag_cloud';
     $this->widget_name = __('WooCommerce Product Tags', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Product Tags', 'woocommerce'), 'label' => __('Title', 'woocommerce')));
     parent::__construct();
 }
示例#20
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_cruxstore_orderby';
     $this->widget_description = esc_html__('Display a product sorting list.', 'cruxstore');
     $this->widget_id = 'wc_cruxstore_orderby';
     $this->widget_name = esc_html__('KT: WooCommerce Product Sorting', 'cruxstore');
     $this->settings = array('title' => array('type' => 'text', 'std' => esc_html__('Sort By', 'cruxstore'), 'label' => esc_html__('Title', 'woocommerce')));
     parent::__construct();
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_recently_viewed_products';
     $this->widget_description = __('Display a list of recently viewed products.', 'woocommerce');
     $this->widget_id = 'woocommerce_recently_viewed_products';
     $this->widget_name = __('WooCommerce Recently Viewed', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Recently Viewed Products', 'woocommerce'), 'label' => __('Title', 'woocommerce')), 'number' => array('type' => 'number', 'step' => 1, 'min' => 1, 'max' => '', 'std' => 10, 'label' => __('Number of products to show', 'woocommerce')));
     parent::__construct();
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_rating_filter';
     $this->widget_description = __('Filter products by rating when viewing product archives and categories.', 'woocommerce');
     $this->widget_id = 'woocommerce_rating_filter';
     $this->widget_name = __('WooCommerce average rating filter', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Average rating', 'woocommerce'), 'label' => __('Title', 'woocommerce')));
     parent::__construct();
 }
示例#23
0
 /**
  * Constructor
  */
 function __construct()
 {
     $this->widget_cssclass = 'woocommerce ro_widget_mini_cart';
     $this->widget_description = __("Display the user's Cart in the sidebar.", 'woocommerce');
     $this->widget_id = 'ro_widget_mini_cart';
     $this->widget_name = __('Mini Cart', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Cart', 'woocommerce'), 'label' => __('Title', 'woocommerce')), 'hide_if_empty' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Hide if cart is empty', 'woocommerce')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_product_categories';
     $this->widget_description = __('A list or dropdown of product categories.', 'woocommerce');
     $this->widget_id = 'woocommerce_product_categories';
     $this->widget_name = __('WooCommerce Product Categories', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Product Categories', 'woocommerce'), 'label' => __('Title', 'woocommerce')), 'orderby' => array('type' => 'select', 'std' => 'name', 'label' => __('Order by', 'woocommerce'), 'options' => array('order' => __('Category Order', 'woocommerce'), 'name' => __('Name', 'woocommerce'))), 'dropdown' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Show as dropdown', 'woocommerce')), 'count' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Show product counts', 'woocommerce')), 'hierarchical' => array('type' => 'checkbox', 'std' => 1, 'label' => __('Show hierarchy', 'woocommerce')), 'show_children_only' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Only show children of the current category', 'woocommerce')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_layered_nav_filters';
     $this->widget_description = __('Shows active layered nav filters so users can see and deactivate them.', 'woocommerce');
     $this->widget_id = 'woocommerce_layered_nav_filters';
     $this->widget_name = __('WooCommerce Layered Nav Filters', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Active Filters', 'woocommerce'), 'label' => __('Title', 'woocommerce')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_products';
     $this->widget_description = __('Display a list of your products on your site.', 'woocommerce');
     $this->widget_id = 'woocommerce_products';
     $this->widget_name = __('WooCommerce Products', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Products', 'woocommerce'), 'label' => __('Title', 'woocommerce')), 'number' => array('type' => 'number', 'step' => 1, 'min' => 1, 'max' => '', 'std' => 5, 'label' => __('Number of products to show', 'woocommerce')), 'show' => array('type' => 'select', 'std' => '', 'label' => __('Show', 'woocommerce'), 'options' => array('' => __('All Products', 'woocommerce'), 'featured' => __('Featured Products', 'woocommerce'), 'onsale' => __('On-sale Products', 'woocommerce'))), 'orderby' => array('type' => 'select', 'std' => 'date', 'label' => __('Order by', 'woocommerce'), 'options' => array('date' => __('Date', 'woocommerce'), 'price' => __('Price', 'woocommerce'), 'rand' => __('Random', 'woocommerce'), 'sales' => __('Sales', 'woocommerce'))), 'order' => array('type' => 'select', 'std' => 'desc', 'label' => _x('Order', 'Sorting order', 'woocommerce'), 'options' => array('asc' => __('ASC', 'woocommerce'), 'desc' => __('DESC', 'woocommerce'))), 'hide_free' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Hide free products', 'woocommerce')), 'show_hidden' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Show hidden products', 'woocommerce')));
     parent::__construct();
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     $this->widget_cssclass = 'woocommerce widget_price_filter';
     $this->widget_description = __('Shows a price filter slider in a widget which lets you narrow down the list of shown products when viewing product categories.', 'woocommerce');
     $this->widget_id = 'woocommerce_price_filter';
     $this->widget_name = __('WooCommerce price filter', 'woocommerce');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Filter by price', 'woocommerce'), 'label' => __('Title', 'woocommerce')));
     $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
     wp_register_script('wc-jquery-ui-touchpunch', WC()->plugin_url() . '/assets/js/jquery-ui-touch-punch/jquery-ui-touch-punch' . $suffix . '.js', array('jquery-ui-slider'), WC_VERSION, true);
     wp_register_script('wc-price-slider', WC()->plugin_url() . '/assets/js/frontend/price-slider' . $suffix . '.js', array('jquery-ui-slider', 'wc-jquery-ui-touchpunch'), WC_VERSION, true);
     wp_localize_script('wc-price-slider', 'woocommerce_price_slider_params', array('currency_symbol' => get_woocommerce_currency_symbol(), 'currency_pos' => get_option('woocommerce_currency_pos'), 'min_price' => isset($_GET['min_price']) ? esc_attr($_GET['min_price']) : '', 'max_price' => isset($_GET['max_price']) ? esc_attr($_GET['max_price']) : ''));
     parent::__construct();
 }
 /**
  * Outputs the settings update form.
  *
  * @see WP_Widget->form
  *
  * @param array $instance
  */
 public function form($instance)
 {
     $this->init_settings();
     parent::form($instance);
 }