public function widget($args, $instance) { list($args, $instance) = self::process_defaults($args, $instance); extract($args, EXTR_SKIP); $title = apply_filters('widget_title', empty($instance['title']) ? ' ' : $instance['title']); $search_form_filter_string = ''; $search_form_filter_string .= 'context=' . apply_filters('pls_widget_quick_search_context', 'quick_search_widget'); $search_form_filter_string .= apply_filters('pls_widget_quick_search_filter_string', '&ajax=0'); $search_form_filter_string .= '&class=pls_quick_search'; if (get_theme_support('pls-quick-search-neighborhood-polygon')) { $search_form_filter_string .= '&neighborhood_polygons=1'; } echo $before_widget; echo $before_title . $title . $after_title; echo PLS_Partials::get_listings_search_form($search_form_filter_string); echo "<section class='clear'></section>"; // echo "</section>"; echo $after_widget; }
<?php /** * Template Name: Listings Search * * This is the template for "Listings" search results page. * * @package PlacesterBlueprint * @subpackage Template */ ?> <style type="text/css"> #custom { display:none; } </style> <section class="complex-search grid_8 alpha" itemscope itemtype="http://schema.org/SearchResultsPage"> <?php echo PLS_Partials::get_listings_search_form('context=listings&ajax=1&neighborhood_polygons=1&neighborhood_polygons_type=neighborhood'); ?> <div class="clear"></div> <div style="font-size: 16px; font-weight: bold; float: right;" id="pls_listings_search_results"><span id="pls_num_results"></span> listing match your search.</div> </section> <div class="grid_8 alpha" id="content" role="main"> <?php echo PLS_Partials::get_listings_list_ajax('context=listings_search&table_id=placester_listings_list'); ?> </div>
listings.init(); }); </script> <div id="slideshow" class="clearfix theme-default left bottomborder grid_8 alpha"> <?php //echo PLS_Map::lifestyle(array(), array('width' => 590, 'height' => 300, 'life_style_search' => true,'show_lifestyle_controls' => true, 'show_lifestyle_checkboxes' => true, 'show_submit' => true, 'lat' => '41.815594', 'lng' => '-71.413879' ) ); ?> <?php //echo PLS_Map::lifestyle_polygon(array(), array('width' => 590, 'height' => 300, 'life_style_search' => true,'show_lifestyle_controls' => true, 'show_lifestyle_checkboxes' => true, 'show_submit' => true, 'lat' => '41.815594', 'lng' => '-71.413879' ) ); ?> <?php echo PLS_Map::listings(null, array('width' => 950, 'height' => 400)); ?> <?php //echo PLS_Map::polygon(null, array('width' => 590, 'height' => 250, 'zoom' => 16,'map_js_var' => 'test2', 'canvas_id' => 'another2', 'polygon_search' => 'neighborhood', 'search_class' => 'another')); ?> <?php echo PLS_Partials::get_listings_search_form(array('context' => 'home_map', 'search_id' => 'another', 'class' => 'another', 'bedrooms' => 1, 'min_beds' => 0, 'max_beds' => 0, 'bathrooms' => 0, 'min_baths' => 0, 'max_baths' => 0, 'price' => 0, 'half_baths' => 0, 'property_type' => 0, 'listing_types' => 0, 'zoning_types' => 0, 'purchase_types' => 0, 'available_on' => 0, 'cities' => 0, 'states' => 0, 'zips' => 0, 'neighborhood' => 0, 'county' => 0, 'min_price' => 0, 'max_price' => 0, 'min_price_rental' => 0, 'max_price_rental' => 0, 'neighborhood_polygons' => 0)); ?> <?php echo PLS_Partials::get_listings_list_ajax(array('context' => 'custom_listings_search', 'table_id' => 'placester_listings_list', 'map_js_var' => 'test2')); ?> </div> <div id="listing" class="grid_8 alpha"></div> ?>
<?php /** * Template Name: Listings Search * * This is the template for "Listings" search results page. * * @package PlacesterBlueprint * @subpackage Template */ ?> <!-- Search Form --> <?php echo PLS_Partials::get_listings_search_form('context=listings_search&ajax=1'); ?> <!-- Search List --> <section id="lvl4"> <div class="wrapper"> <section class="left-content"> <section class="list2"> <h5><?php _e('SEARCH RESULTS', 'manchester'); ?> </h5> <?php echo PLS_Partials::get_listings_list_ajax('crop_description=1&context=custom_listings_search');