function widget($args, $instance)
 {
     $defaults = epl_search_get_defaults();
     $instance = wp_parse_args((array) $instance, $defaults);
     extract($args);
     echo $before_widget;
     $title = apply_filters('widget_title', $instance['title']);
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     echo epl_shortcode_listing_search_callback($instance);
     echo $after_widget;
 }
 function widget($args, $instance)
 {
     $defaults = array('title' => '', 'post_type' => array('property'), 'style' => 'default', 'property_status' => 'any', 'search_location' => 'on', 'search_city' => 'off', 'search_state' => 'off', 'search_country' => 'off', 'search_postcode' => 'off', 'search_house_category' => 'on', 'search_price' => 'on', 'search_bed' => 'on', 'search_bath' => 'on', 'search_rooms' => 'off', 'search_car' => 'on', 'search_other' => 'on', 'search_id' => 'off', 'search_land_area' => 'off', 'search_building_area' => 'off', 'submit_label' => __('Find me a Property!', 'epl'));
     $instance = wp_parse_args((array) $instance, $defaults);
     extract($args);
     echo $before_widget;
     $title = apply_filters('widget_title', $instance['title']);
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     $instance['show_title'] = false;
     echo epl_shortcode_listing_search_callback($instance);
     echo $after_widget;
 }