private static function maybe_build_page() { if (self::$_model['is_mobile_page']) { DispletRetsIdxMobilePageModel::build(); } if (self::$_model['has_login_register_popup']) { DispletRetsIdxPopupsModel::build_login_register(); } if (self::$_model['is_property_details_page']) { DispletRetsIdxPropertyDetailsPageModel::build(); } if (self::$_model['is_property_update_page']) { DispletRetsIdxPropertyUpdatePageModel::build(); } else { if (self::$_model['is_partial_address_page']) { DispletRetsIdxPartialAddressPageModel::build(); } else { if (self::$_model['is_search_results_page']) { DispletRetsIdxSearchResultsPageModel::build(); } } } }
public static function build() { self::$_model = array_merge(self::$_model, array('search_results_page_url' => home_url('rets-mobile'), 'mobile_home_page_url' => home_url('rets-mobile-home'), 'mobile_contact_page_url' => home_url('rets-mobile-contact'), 'favorites_page_url' => admin_url('admin.php?page=displetretsidx_saved_properties'))); }