Changeset 1376703
- Timestamp:
- 03/23/2016 12:17:23 AM (10 years ago)
- Location:
- geodigs
- Files:
-
- 8 edited
- 9 copied
-
tags/2.1.2 (copied) (copied from geodigs/trunk)
-
tags/2.1.2/API.php (copied) (copied from geodigs/trunk/API.php)
-
tags/2.1.2/Router.php (copied) (copied from geodigs/trunk/Router.php)
-
tags/2.1.2/User.php (copied) (copied from geodigs/trunk/User.php)
-
tags/2.1.2/functions/core.php (modified) (1 diff)
-
tags/2.1.2/functions/login.php (copied) (copied from geodigs/trunk/functions/login.php)
-
tags/2.1.2/geodigs.php (copied) (copied from geodigs/trunk/geodigs.php) (1 diff)
-
tags/2.1.2/includes/listings-results.php (copied) (copied from geodigs/trunk/includes/listings-results.php)
-
tags/2.1.2/readme.txt (copied) (copied from geodigs/trunk/readme.txt) (3 diffs)
-
tags/2.1.2/shortcodes/advanced-search.php (modified) (2 diffs)
-
tags/2.1.2/shortcodes/featured-group.php (copied) (copied from geodigs/trunk/shortcodes/featured-group.php)
-
tags/2.1.2/templates/search-forms/advanced.php (modified) (1 diff)
-
trunk/functions/core.php (modified) (1 diff)
-
trunk/geodigs.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/shortcodes/advanced-search.php (modified) (2 diffs)
-
trunk/templates/search-forms/advanced.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
geodigs/tags/2.1.2/functions/core.php
r1368746 r1376703 99 99 */ 100 100 function gd_agent_has_source( $source_id ) { 101 return array_key_exists( $source_id, (array ) $_SESSION['gd_agent']->sources);101 return isset( $_SESSION['gd_agent']->sources->{$source_id} ); 102 102 } 103 103 -
geodigs/tags/2.1.2/geodigs.php
r1375947 r1376703 2 2 /** 3 3 * Plugin Name: GeoDigs 4 * Version: 2. 0.24 * Version: 2.1.2 5 5 * Author: New Media One 6 6 * Author URI: www.newmediaone.net -
geodigs/tags/2.1.2/readme.txt
r1375948 r1376703 4 4 Requires at least: 3.5 5 5 Tested up to: 4.4 6 Stable tag: 2. 0.26 Stable tag: 2.1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 3. Enter your GeoDigs Agent ID and GeoDigs Agent Code 46 46 47 *How to edit templates* 47 = How to edit templates = 48 48 1. Navigate from the Wordpress install directory to ``/wp-content/plugins/geodigs/templates/`` 49 49 2. Choose the template you would like to edit … … 124 124 = 2.0.2 = 125 125 * Bug fixes 126 127 = 2.1.2 = 128 * Added search by Master Bedroom Level for REColorado IDX -
geodigs/tags/2.1.2/shortcodes/advanced-search.php
r1368746 r1376703 15 15 wp_enqueue_style( 'gd_map' ); 16 16 17 // Get data to populate fields with 17 // Get data to populate fields with 18 18 // For now this is hardcoded but if we decide to add this function to the API then replace the array with the API call 19 $listing_levels = array( 20 ( object ) array( 21 'id' => 'Main', 22 'readable' => 'Main', 23 ), 24 ( object ) array( 25 'id' => 'Upper', 26 'readable' => 'Upper', 27 ), 28 ( object ) array( 29 'id' => 'Basement', 30 'readable' => 'Basement', 31 ), 32 ( object ) array( 33 'id' => 'Lower', 34 'readable' => 'Lower', 35 ), 36 ( object ) array( 37 'id' => 'Other Finished SqFt', 38 'readable' => 'Other Finished SqFt', 39 ), 40 ); 19 $listing_levels = API::call('GET', 'listings/rooms/levels'); 41 20 $cities = gd_get_cities(); 42 21 43 22 // Get default listing type 44 23 45 24 // If our current city isn't in the list of available cities, add it to the front 46 25 if ( isset( $_GET['cities'] ) && !in_array( $_GET['cities'], ( array ) $cities ) ) { 47 26 array_unshift( $cities, ( object ) array( 'name' => $_GET['cities'] ) ); 48 27 } 49 28 50 29 // Form is used to search through listings 51 30 $form_action = home_url( '/' . GD_URL_SEARCH ); … … 53 32 $form_submit = 'Search'; 54 33 $listing_alert_form = false; 55 34 56 35 // Set our params to the get string params 57 36 gd_set_search_params( $_GET ); 58 37 59 38 ob_start(); 60 39 ?> -
geodigs/tags/2.1.2/templates/search-forms/advanced.php
r1368746 r1376703 173 173 <!-- This is only added if the agent has Metrolist listings --> 174 174 <?php if ( gd_agent_has_source( 2 ) ): ?> 175 <!--<label>Master Bedroom Level</label>175 <label>Master Bedroom Level</label> 176 176 <select name="masterBedLevel"> 177 177 <option value="">Any</option> 178 <?foreach( $listing_levels as $level ):?> 179 <option value="<?=$level->id?>" <?php selected( $level->id, gd_get_search_param( 'masterBedLevel' ) ); ?>><?=$level->readable;?></option> 180 <?endforeach;?> 181 </select> --> 178 <?php foreach( $listing_levels as $level ): ?> 179 <option value="<?php echo $level->id; ?>" <?php selected( $level->id, gd_get_search_param( 'masterBedLevel' ) ); ?>> 180 <?php echo $level->value; ?> 181 </option> 182 <?php endforeach; ?> 183 </select> 182 184 <?php endif; ?> 183 185 </div> -
geodigs/trunk/functions/core.php
r1368746 r1376703 99 99 */ 100 100 function gd_agent_has_source( $source_id ) { 101 return array_key_exists( $source_id, (array ) $_SESSION['gd_agent']->sources);101 return isset( $_SESSION['gd_agent']->sources->{$source_id} ); 102 102 } 103 103 -
geodigs/trunk/geodigs.php
r1375947 r1376703 2 2 /** 3 3 * Plugin Name: GeoDigs 4 * Version: 2. 0.24 * Version: 2.1.2 5 5 * Author: New Media One 6 6 * Author URI: www.newmediaone.net -
geodigs/trunk/readme.txt
r1375948 r1376703 4 4 Requires at least: 3.5 5 5 Tested up to: 4.4 6 Stable tag: 2. 0.26 Stable tag: 2.1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 3. Enter your GeoDigs Agent ID and GeoDigs Agent Code 46 46 47 *How to edit templates* 47 = How to edit templates = 48 48 1. Navigate from the Wordpress install directory to ``/wp-content/plugins/geodigs/templates/`` 49 49 2. Choose the template you would like to edit … … 124 124 = 2.0.2 = 125 125 * Bug fixes 126 127 = 2.1.2 = 128 * Added search by Master Bedroom Level for REColorado IDX -
geodigs/trunk/shortcodes/advanced-search.php
r1368746 r1376703 15 15 wp_enqueue_style( 'gd_map' ); 16 16 17 // Get data to populate fields with 17 // Get data to populate fields with 18 18 // For now this is hardcoded but if we decide to add this function to the API then replace the array with the API call 19 $listing_levels = array( 20 ( object ) array( 21 'id' => 'Main', 22 'readable' => 'Main', 23 ), 24 ( object ) array( 25 'id' => 'Upper', 26 'readable' => 'Upper', 27 ), 28 ( object ) array( 29 'id' => 'Basement', 30 'readable' => 'Basement', 31 ), 32 ( object ) array( 33 'id' => 'Lower', 34 'readable' => 'Lower', 35 ), 36 ( object ) array( 37 'id' => 'Other Finished SqFt', 38 'readable' => 'Other Finished SqFt', 39 ), 40 ); 19 $listing_levels = API::call('GET', 'listings/rooms/levels'); 41 20 $cities = gd_get_cities(); 42 21 43 22 // Get default listing type 44 23 45 24 // If our current city isn't in the list of available cities, add it to the front 46 25 if ( isset( $_GET['cities'] ) && !in_array( $_GET['cities'], ( array ) $cities ) ) { 47 26 array_unshift( $cities, ( object ) array( 'name' => $_GET['cities'] ) ); 48 27 } 49 28 50 29 // Form is used to search through listings 51 30 $form_action = home_url( '/' . GD_URL_SEARCH ); … … 53 32 $form_submit = 'Search'; 54 33 $listing_alert_form = false; 55 34 56 35 // Set our params to the get string params 57 36 gd_set_search_params( $_GET ); 58 37 59 38 ob_start(); 60 39 ?> -
geodigs/trunk/templates/search-forms/advanced.php
r1368746 r1376703 173 173 <!-- This is only added if the agent has Metrolist listings --> 174 174 <?php if ( gd_agent_has_source( 2 ) ): ?> 175 <!--<label>Master Bedroom Level</label>175 <label>Master Bedroom Level</label> 176 176 <select name="masterBedLevel"> 177 177 <option value="">Any</option> 178 <?foreach( $listing_levels as $level ):?> 179 <option value="<?=$level->id?>" <?php selected( $level->id, gd_get_search_param( 'masterBedLevel' ) ); ?>><?=$level->readable;?></option> 180 <?endforeach;?> 181 </select> --> 178 <?php foreach( $listing_levels as $level ): ?> 179 <option value="<?php echo $level->id; ?>" <?php selected( $level->id, gd_get_search_param( 'masterBedLevel' ) ); ?>> 180 <?php echo $level->value; ?> 181 </option> 182 <?php endforeach; ?> 183 </select> 182 184 <?php endif; ?> 183 185 </div>
Note: See TracChangeset
for help on using the changeset viewer.