/**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the booking form for the linked bookable product.', 'listify');
     $this->widget_id = 'listify_widget_panel_listing_bookings';
     $this->widget_name = __('Listify - Listing: Bookings', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'icon' => array('type' => 'select', 'std' => '', 'label' => __('Icon:', 'listify'), 'options' => $this->get_icon_list()));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the business hours of the listing.', 'listify');
     $this->widget_id = 'listify_widget_panel_listing_business_hours';
     $this->widget_name = __('Listify - Listing: Business Hours', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'icon' => array('type' => 'select', 'std' => 'clock', 'label' => __('Icon:', 'listify'), 'options' => $this->get_icon_list()));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the listing location and contact details.', 'listify');
     $this->widget_id = 'listify_widget_panel_listing_map';
     $this->widget_name = __('Listify - Listing: Map & Contact Details', 'listify');
     $this->settings = array('map' => array('type' => 'checkbox', 'std' => 1, 'label' => __('Display map', 'listify')), 'address' => array('type' => 'checkbox', 'std' => 1, 'label' => __('Display address', 'listify')), 'phone' => array('type' => 'checkbox', 'std' => 1, 'label' => __('Display phone number', 'listify')), 'web' => array('type' => 'checkbox', 'std' => 1, 'label' => __('Display website', 'listify')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the listing\'s author', 'listify');
     $this->widget_id = 'listify_widget_panel_listing_auhtor';
     $this->widget_name = __('Listify - Listing: Author', 'listify');
     $this->settings = array('descriptor' => array('type' => 'text', 'std' => 'Listing Owner', 'label' => __('Descriptor:', 'listify')), 'biography' => array('type' => 'checkbox', 'std' => 1, 'label' => __('Show biography', 'listify')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the listing photo gallery.', 'listify');
     $this->widget_id = 'listify_widget_panel_listing_gallery';
     $this->widget_name = __('Listify - Listing: Photo Gallery', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => 'Photo Gallery', 'label' => __('Title:', 'listify')), 'icon' => array('type' => 'select', 'std' => 'camera', 'label' => __('Icon:', 'listify'), 'options' => $this->get_icon_list()), 'limit' => array('type' => 'number', 'std' => 8, 'label' => __('Number to show:', 'listify'), 'min' => 1, 'max' => 100, 'step' => 1));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display an advertisement', 'listify');
     $this->widget_id = 'listify_widget_ad';
     $this->widget_name = __('Listify - Standard: Advertisement', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'icon' => array('type' => 'select', 'std' => '', 'label' => __('Icon:', 'listify'), 'options' => $this->get_icon_list()), 'code' => array('type' => 'textarea', 'std' => '', 'label' => __('Ad Code:', 'listify')), 'style' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Remove box around widget', 'listify')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the listing comments.', 'listify');
     $this->widget_id = 'listify_widget_panel_listing_comments';
     $this->widget_name = __('Listify - Listing: Reviews', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'icon' => array('type' => 'select', 'std' => '', 'label' => __('Icon:', 'listify'), 'options' => $this->get_icon_list()));
     parent::__construct();
 }
 public function __construct()
 {
     $this->widget_description = __('Display a grid of images for a certain taxonomy', 'listify');
     $this->widget_id = 'listify_widget_taxonomy_image_grid';
     $this->widget_name = __('Listify - Page: Image Grid', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'description' => array('type' => 'text', 'std' => '', 'label' => __('Description:', 'listify')), 'taxonomy' => array('label' => __('Taxonomy:', 'listify'), 'type' => 'select', 'std' => '', 'options' => $this->get_taxonomies_simple()), 'limit' => array('type' => 'number', 'std' => 5, 'min' => 1, 'max' => 999, 'step' => 1, 'label' => __('Number of terms to show:', 'listify')), 'terms' => array('type' => 'text', 'std' => '', 'label' => __('Term IDs: (optional)', 'listify')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the social profiles of the listing author', 'listify');
     $this->widget_id = 'listify_widget_panel_listing_social_profiles';
     $this->widget_name = __('Listify - Listing: Social Profiles', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'icon' => array('type' => 'select', 'std' => '', 'label' => __('Icon:', 'listify'), 'options' => $this->get_icon_list()));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the listings products (sidebar)', 'listify');
     $this->widget_id = 'listify_widget_panel_listing_products';
     $this->widget_name = __('Listify - Listing: Products (Sidebar)', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => 'Related Products', 'label' => __('Title:', 'listify')), 'icon' => array('type' => 'select', 'std' => 'bag', 'label' => __('Icon:', 'listify'), 'options' => $this->get_icon_list()));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display a grid of recent or featured listings', 'listify');
     $this->widget_id = 'listify_widget_recent_listings';
     $this->widget_name = __('Listify - Home: Recent Listings', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => 'Recent Listings', 'label' => __('Title:', 'listify')), 'description' => array('type' => 'text', 'std' => 'Discover some of our best listings', 'label' => __('Description:', 'listify')), 'featured' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Show only featured listings', 'listify')), 'limit' => array('type' => 'number', 'std' => 3, 'min' => 3, 'max' => 30, 'step' => 3, 'label' => __('Number to show:', 'listify')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the listings products (main content)', 'listify');
     $this->widget_id = 'listify_widget_panel_listing_products_main';
     $this->widget_name = __('Listify - Listing: Products (Content)', 'listify');
     $this->settings = array();
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the pricing packages available for listings', 'listify');
     $this->widget_id = 'listify_widget_panel_wcpl_pricing_table';
     $this->widget_name = __('Listify - Home: Pricing Table', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'description' => array('type' => 'text', 'std' => '', 'label' => __('Description:', 'listify')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display a full-width "feature" callout', 'listify');
     $this->widget_id = 'listify_widget_feature_callout';
     $this->widget_name = __('Listify - Home: Feature Callout', 'listify');
     $this->control_ops = array('width' => 400);
     $this->settings = array('text_align' => array('type' => 'select', 'std' => 'left', 'label' => __('Text Align:', 'listify'), 'options' => array('left' => __('Left', 'listify'), 'right' => __('Right', 'listify'), 'center' => __('Center (cover only)', 'listify'))), 'background' => array('type' => 'select', 'std' => 'pull', 'label' => __('Image Style:', 'listify'), 'options' => array('cover' => __('Cover', 'listify'), 'pull' => __('Pull Out', 'listify'))), 'background_position' => array('type' => 'select', 'std' => 'center center', 'label' => __('Image Position:', 'listify'), 'options' => array('left top' => __('Left Top', 'listify'), 'left center' => __('Left Center', 'listify'), 'left bottom' => __('Left Bottom', 'listify'), 'right top' => __('Right Top', 'listify'), 'right center' => __('Right Center', 'listify'), 'right bottom' => __('Right Bottom', 'listify'), 'center top' => __('Center Top', 'listify'), 'center center' => __('Center Center', 'listify'), 'center bottom' => __('Center Bottom', 'listify'), 'center top' => __('Center Top', 'listify'))), 'cover_overlay' => array('type' => 'checkbox', 'std' => 1, 'label' => __('Use transparent overlay', 'listify')), 'margin' => array('type' => 'checkbox', 'std' => 1, 'label' => __('Add standard spacing above/below widget', 'listify')), 'text_color' => array('type' => 'colorpicker', 'std' => '#717A8F', 'label' => __('Text Color:', 'listify')), 'background_color' => array('type' => 'colorpicker', 'std' => '#ffffff', 'label' => __('Background Color:', 'listify')), 'title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'content' => array('type' => 'textarea', 'std' => '', 'label' => __('Content:', 'listify'), 'rows' => 5), 'image' => array('type' => 'image', 'std' => '', 'label' => __('Image:', 'listify')));
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     if (!$this->widget_id) {
         $this->widget_description = __('Display lists of listings associated with terms of a given taxonomy.', 'listify');
         $this->widget_id = 'listify_widget_taxonomy_term_lists';
         $this->widget_name = __('Listify - Page: Term Lists', 'listify');
         $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'description' => array('type' => 'text', 'std' => '', 'label' => __('Description:', 'listify')), 'limit' => array('type' => 'number', 'std' => 5, 'min' => 1, 'max' => 30, 'step' => 1, 'label' => __('Number per list', 'listify')), 'orderby' => array('label' => __('Order By:', 'listify'), 'type' => 'select', 'std' => 'date', 'options' => array('date' => __('Date', 'listify'), 'featured' => __('Featured', 'listify'), 'title' => __('Title', 'listify'), 'ID' => __('ID', 'listify'))), 'taxonomy' => array('label' => __('Taxonomy:', 'listify'), 'type' => 'select', 'std' => '', 'options' => $this->get_taxonomies_simple()), 'featured' => array('type' => 'checkbox', 'std' => 0, 'label' => __('Use only featured listings', 'listify')));
     }
     parent::__construct();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the booking form for the linked bookable product.', 'listify');
     $this->widget_id = 'listify_widget_panel_listing_bookings';
     $this->widget_name = __('Listify - Listing: Bookings', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'icon' => array('type' => 'select', 'std' => '', 'label' => __('Icon:', 'listify'), 'options' => $this->get_icon_list()));
     parent::__construct();
     if (is_active_widget(false, false, $this->widget_id, true)) {
         add_action('listify_single_job_listing_actions_after', array($this, 'output_button'));
     }
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display a map and results of listings', 'listify');
     $this->widget_id = 'listify_widget_map_listings';
     $this->widget_name = __('Listify - Home: Map', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => 'Recent Listings', 'label' => __('Title:', 'listify')), 'description' => array('type' => 'text', 'std' => 'Discover some of our best listings', 'label' => __('Description:', 'listify')), 'results' => array('type' => 'checkbox', 'std' => 1, 'label' => __('Display results', 'listify')), 'limit' => array('type' => 'number', 'std' => 3, 'min' => 1, 'max' => 30, 'step' => 1, 'label' => __('Number of listings per page:', 'listify')));
     parent::__construct();
     if (is_active_widget(false, false, $this->widget_id, true) && is_page_template('page-templates/template-home.php')) {
         add_filter('listify_page_needs_map', '__return_true');
     }
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     global $listify_facetwp;
     $this->widget_description = __('Display a search form to search listings', 'listify');
     $this->widget_id = 'listify_widget_search_listings';
     $this->widget_name = __('Listify - Page: Search Listings', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'description' => array('type' => 'text', 'std' => '', 'label' => __('Description:', 'listify')));
     if (listify_has_integration('facetwp')) {
         $this->settings['facets'] = array('type' => 'text', 'std' => listify_theme_mod('listing-archive-facetwp-defaults'), 'label' => __('Facets:', 'listify'));
     }
     parent::__construct();
     add_filter('facetwp_load_assets', '__return_true');
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display the listing description.', 'listify');
     $this->widget_id = 'listify_widget_panel_listing_content';
     $this->widget_name = __('Listify - Listing: Description', 'listify');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'icon' => array('type' => 'select', 'std' => '', 'label' => __('Icon:', 'listify'), 'options' => $this->get_icon_list()));
     parent::__construct();
     add_filter('the_job_description', 'wptexturize');
     add_filter('the_job_description', 'convert_smilies');
     add_filter('the_job_description', 'convert_chars');
     add_filter('the_job_description', 'wpautop');
     add_filter('the_job_description', 'shortcode_unautop');
     add_filter('the_job_description', 'prepend_attachment');
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->widget_description = __('Display top features about your site', 'listify');
     $this->widget_id = 'listify_widget_features';
     $this->widget_name = __('Listify - Home: Features', 'listify');
     $this->control_ops = array('width' => 400);
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title:', 'listify')), 'description' => array('type' => 'text', 'std' => '', 'label' => __('Description:', 'listify')), 'features' => array('type' => 'features', 'std' => array(), 'label' => ''));
     parent::__construct();
     add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
     add_action('listify_widget_type_features', array($this, 'output'), 10, 4);
     add_action('listify_widget_update_type_features', array($this, '_update'), 10, 3);
     add_filter('listify_feature_description', 'wptexturize');
     add_filter('listify_feature_description', 'convert_smilies');
     add_filter('listify_feature_description', 'convert_chars');
     add_filter('listify_feature_description', 'wpautop');
     add_filter('listify_feature_description', 'shortcode_unautop');
     add_filter('listify_feature_description', 'prepend_attachment');
 }