Plugin Directory

Changeset 1376703


Ignore:
Timestamp:
03/23/2016 12:17:23 AM (10 years ago)
Author:
NewMediaOne
Message:

Tagging 2.1.2

Location:
geodigs
Files:
8 edited
9 copied

Legend:

Unmodified
Added
Removed
  • geodigs/tags/2.1.2/functions/core.php

    r1368746 r1376703  
    9999 */
    100100function 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} );
    102102}
    103103
  • geodigs/tags/2.1.2/geodigs.php

    r1375947 r1376703  
    22/**
    33 * Plugin Name: GeoDigs
    4  * Version: 2.0.2
     4 * Version: 2.1.2
    55 * Author: New Media One
    66 * Author URI: www.newmediaone.net
  • geodigs/tags/2.1.2/readme.txt

    r1375948 r1376703  
    44Requires at least: 3.5
    55Tested up to: 4.4
    6 Stable tag: 2.0.2
     6Stable tag: 2.1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    45453. Enter your GeoDigs Agent ID and GeoDigs Agent Code
    4646
    47 *How to edit templates*
     47= How to edit templates =
    48481. Navigate from the Wordpress install directory to ``/wp-content/plugins/geodigs/templates/``
    49492. Choose the template you would like to edit
     
    124124= 2.0.2 =
    125125* 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  
    1515    wp_enqueue_style( 'gd_map' );
    1616
    17     // Get data to populate fields with 
     17    // Get data to populate fields with
    1818    // 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');
    4120    $cities = gd_get_cities();
    42    
     21
    4322    // Get default listing type
    44    
     23
    4524    // If our current city isn't in the list of available cities, add it to the front
    4625    if ( isset( $_GET['cities'] ) && !in_array( $_GET['cities'], ( array ) $cities ) ) {
    4726        array_unshift( $cities, ( object ) array( 'name' => $_GET['cities'] ) );
    4827    }
    49    
     28
    5029    // Form is used to search through listings
    5130    $form_action        = home_url( '/' . GD_URL_SEARCH );
     
    5332    $form_submit        = 'Search';
    5433    $listing_alert_form = false;
    55    
     34
    5635    // Set our params to the get string params
    5736    gd_set_search_params( $_GET );
    58    
     37
    5938    ob_start();
    6039    ?>
  • geodigs/tags/2.1.2/templates/search-forms/advanced.php

    r1368746 r1376703  
    173173            <!-- This is only added if the agent has Metrolist listings -->
    174174            <?php if ( gd_agent_has_source( 2 ) ): ?>
    175 <!--                    <label>Master Bedroom Level</label>
     175                <label>Master Bedroom Level</label>
    176176                <select name="masterBedLevel">
    177177                    <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>
    182184            <?php endif; ?>
    183185        </div>
  • geodigs/trunk/functions/core.php

    r1368746 r1376703  
    9999 */
    100100function 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} );
    102102}
    103103
  • geodigs/trunk/geodigs.php

    r1375947 r1376703  
    22/**
    33 * Plugin Name: GeoDigs
    4  * Version: 2.0.2
     4 * Version: 2.1.2
    55 * Author: New Media One
    66 * Author URI: www.newmediaone.net
  • geodigs/trunk/readme.txt

    r1375948 r1376703  
    44Requires at least: 3.5
    55Tested up to: 4.4
    6 Stable tag: 2.0.2
     6Stable tag: 2.1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    45453. Enter your GeoDigs Agent ID and GeoDigs Agent Code
    4646
    47 *How to edit templates*
     47= How to edit templates =
    48481. Navigate from the Wordpress install directory to ``/wp-content/plugins/geodigs/templates/``
    49492. Choose the template you would like to edit
     
    124124= 2.0.2 =
    125125* 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  
    1515    wp_enqueue_style( 'gd_map' );
    1616
    17     // Get data to populate fields with 
     17    // Get data to populate fields with
    1818    // 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');
    4120    $cities = gd_get_cities();
    42    
     21
    4322    // Get default listing type
    44    
     23
    4524    // If our current city isn't in the list of available cities, add it to the front
    4625    if ( isset( $_GET['cities'] ) && !in_array( $_GET['cities'], ( array ) $cities ) ) {
    4726        array_unshift( $cities, ( object ) array( 'name' => $_GET['cities'] ) );
    4827    }
    49    
     28
    5029    // Form is used to search through listings
    5130    $form_action        = home_url( '/' . GD_URL_SEARCH );
     
    5332    $form_submit        = 'Search';
    5433    $listing_alert_form = false;
    55    
     34
    5635    // Set our params to the get string params
    5736    gd_set_search_params( $_GET );
    58    
     37
    5938    ob_start();
    6039    ?>
  • geodigs/trunk/templates/search-forms/advanced.php

    r1368746 r1376703  
    173173            <!-- This is only added if the agent has Metrolist listings -->
    174174            <?php if ( gd_agent_has_source( 2 ) ): ?>
    175 <!--                    <label>Master Bedroom Level</label>
     175                <label>Master Bedroom Level</label>
    176176                <select name="masterBedLevel">
    177177                    <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>
    182184            <?php endif; ?>
    183185        </div>
Note: See TracChangeset for help on using the changeset viewer.