public static function render_shortcode($attributes)
 {
     $model = shortcode_atts(array('orientation' => self::$_options['listings_orientation'], 'price_navigation' => self::$_options['include_price_navigation'], 'price_navigation_prices' => self::$_options['price_navigation_prices'], 'property_type_navigation' => self::$_options['include_property_type_navigation'], 'property_type_sorting' => self::$_options['include_property_type_sorting'], 'stats' => self::$_options['include_stats'], 'layout' => self::$_options['listings_layout'], 'listings' => true, 'caption' => '', 'minlistprice' => '', 'min_list_price' => '', 'maxlistprice' => '', 'max_list_price' => '', 'minbedrooms' => '', 'min_bedrooms' => '', 'maxbedrooms' => '', 'max_bedrooms' => '', 'minbathrooms' => '', 'min_bathrooms' => '', 'maxbathrooms' => '', 'max_bathrooms' => '', 'minsquarefeet' => '', 'min_square_feet' => '', 'maxsquarefeet' => '', 'max_square_feet' => '', 'quick_terms' => '', 'area_mls_defined' => '', 'city' => '', 'property_type' => '', 'minstories' => '', 'min_stories' => '', 'waterfront' => '', 'pool_on_property' => '', 'subdivision' => '', 'keyword' => '', 'school' => '', 'school_district' => '', 'minacres' => '', 'min_acres' => '', 'zip' => '', 'is_foreclosure' => '', 'yearbuilt' => '', 'year_built' => '', 'county' => '', 'status' => '', 'short_sale' => '', 'last_modified' => '', 'listing_agent_id' => '', 'listing_office_id' => '', 'min_lot_size' => '', 'is_gated_community' => '', 'min_sold_date' => '', 'max_sold_date' => '', 'master_on_main' => '', 'basement' => '', 'min_square_feet_available' => '', 'max_square_feet_available' => '', 'min_price_per_sq_feet' => '', 'max_price_per_sq_feet' => '', 'street_name' => '', 'street_number' => '', 'listed_since' => '', 'sort_by' => '', 'direction' => '', 'mls_number' => '', 'poly' => ''), $attributes);
     $model['show_listings'] = $model['listings'];
     $model['listings'] = false;
     $model = self::get_lowercase_yes_no_model($model);
     $model = self::set_residentials_args($model);
     $residentials = new DispletRetsIdxResidentials($model);
     $listings = $residentials->get_residentials();
     $model = array_merge($model, $listings);
     $templates = new DispletRetsIdxTemplates(self::_get_model_for_templates($model));
     return $templates->get_templates();
 }
 protected static function get_content()
 {
     $templates = new DispletRetsIdxTemplates(self::$_model);
     return $templates->get_templates();
 }
 public static function replace_page_content($content)
 {
     if (in_the_loop()) {
         $template = new DispletRetsIdxTemplates(self::$_model);
         $content = $template->get_templates();
     }
     return $content;
 }
 public static function use_mobile_template($template)
 {
     $template = new DispletRetsIdxTemplates(self::$_model);
     self::$_model = $template->get_model();
     return $template->get_templates();
 }