Plugin Directory

Changeset 1604742


Ignore:
Timestamp:
02/27/2017 06:29:58 PM (9 years ago)
Author:
displetdev
Message:

Synched to version 2.2.4

Location:
displetreader-wordpress-plugin/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • displetreader-wordpress-plugin/trunk/controller/class-displet-rets-idx-residentials-controller.php

    r1546656 r1604742  
    337337                $ar = $this->set_relative_paths( $ar );
    338338            }
    339         } elseif ( is_string( $arg ) && preg_match( '/cloudfront/i', $arg ) ) {
     339        } elseif ( is_string( $arg ) && preg_match( '/(cloudfront|images.displet.com)/i', $arg ) ) {
    340340            $arg = str_replace( array( 'http://', 'https://' ) , '//', $arg );
    341341        }
  • displetreader-wordpress-plugin/trunk/controller/class-displet-rets-idx-search-fields-controller.php

    r1484175 r1604742  
    4141                $markup .= self::get_county( $field );
    4242                break;
     43            case 'dock_features' :
     44                $markup .= self::get_dock_feature( $field );
     45                break;
    4346            case 'foreclosure' :
    4447                $markup .= self::get_foreclosure( $field );
     
    5053                $markup .= self::get_keywords( $field );
    5154                break;
     55            case 'lake_name' :
     56                $markup .= self::get_lake_name( $field );
     57                break;
    5258            case 'last_modified' :
    5359                $markup .= self::get_last_modified( $field );
     
    136142            case 'waterfront' :
    137143                $markup .= self::get_waterfront( $field );
     144                break;
     145            case 'waterfront_description' :
     146                $markup .= self::get_waterfront_description( $field );
    138147                break;
    139148            case 'year_built' :
  • displetreader-wordpress-plugin/trunk/displetreader-wordpress-plugin.php

    r1546656 r1604742  
    55 * Plugin URI: http://displet.com/wordpress-plugins/displetreader-wordpress-plugin
    66 * Description: RETS/IDX Plugin that inserts real estate listings, statistics, maps, and quick searches into Wordpress pages & widget ready sidebars. Free version available.
    7  * Version: 2.2
     7 * Version: 2.2.4
    88 * Author: Displet
    99 * Author URI: http://displet.com/
  • displetreader-wordpress-plugin/trunk/includes/js/displet-rets-idx-scripts.js

    r1546656 r1604742  
    34283428                    if( typeof arg[key] === 'object' ) {
    34293429                        replacer( arg[key] );
    3430                     } else if( typeof arg[key].replace === 'function' && /cloudfront/i.test( arg[key] ) ) {
     3430                    } else if( typeof arg[key].replace === 'function' && /(cloudfront|images\.displet\.com)/i.test( arg[key] ) ) {
    34313431                        arg[key] = arg[key].replace( 'http://', '//' ).replace( 'https://', '//' );
    34323432                    }
  • displetreader-wordpress-plugin/trunk/includes/library/displet-property-details-page-template-library.php

    r1484175 r1604742  
    964964        </div>';
    965965    }
     966    if ( displetretsidx_has_dock_features() ) {
     967        $html[] =
     968            '<div class="displet-disability-features displet-tr">
     969            <div class="displet-detail-title displet-td">Dock Features:</div>
     970            <div class="displet-detail-value displet-td">' . displetretsidx_get_dock_features() . '</div>
     971        </div>';
     972    }
    966973    if ( displetretsidx_has_zoning() ) {
    967974        $html[] =
     
    11211128        </div>';
    11221129    }
     1130    if ( displetretsidx_has_lake_name() ) {
     1131        $html[] =
     1132            '<div class="displet-subdivision displet-tr">
     1133            <div class="displet-detail-title displet-td">Lake Name:</div>
     1134            <div class="displet-detail-value displet-td">' . displetretsidx_get_lake_name() . '</div>
     1135        </div>';
     1136    }
    11231137    if ( displetretsidx_has_unit() ) {
    11241138        $html[] =
     
    23912405/**
    23922406 * @package: displetretsidx_the_listing() or displetretsidx_setup_listing_data( $listing )
     2407 * @return: boolean
     2408 */
     2409function displetretsidx_has_dock_features() {
     2410    global $displetretsidx_listing;
     2411    if ( !empty( $displetretsidx_listing->dock_features ) ) {
     2412        return true;
     2413    }
     2414    return false;
     2415}
     2416
     2417/**
     2418 * @package: displetretsidx_the_listing() or displetretsidx_setup_listing_data( $listing )
    23932419 * @return: text
    23942420 */
     
    23962422    global $displetretsidx_listing;
    23972423    return $displetretsidx_listing->disability_features;
     2424}
     2425
     2426function displetretsidx_get_dock_features() {
     2427    global $displetretsidx_listing;
     2428    return $displetretsidx_listing->dock_features;
    23982429}
    23992430
  • displetreader-wordpress-plugin/trunk/includes/library/displet-template-library.php

    r1484175 r1604742  
    681681/**
    682682 * @package: displetretsidx_the_listing() or displetretsidx_setup_listing_data( $listing )
     683 * @return: boolean
     684 */
     685function displetretsidx_has_lake_name() {
     686    global $displetretsidx_listing;
     687    if ( !empty( $displetretsidx_listing->lake_name ) ) {
     688        return true;
     689    }
     690    return false;
     691}
     692
     693/**
     694 * @package: displetretsidx_the_listing() or displetretsidx_setup_listing_data( $listing )
    683695 * @return: text
    684696 */
     
    687699    return $displetretsidx_listing->subdivision;
    688700}
     701
     702/**
     703 * @package: displetretsidx_the_listing() or displetretsidx_setup_listing_data( $listing )
     704 * @return: text
     705 */
     706function displetretsidx_get_lake_name() {
     707    global $displetretsidx_listing;
     708    return $displetretsidx_listing->lake_name;
     709}
     710
    689711
    690712/**
  • displetreader-wordpress-plugin/trunk/model/class-displet-rets-idx-search-fields-model.php

    r1484175 r1604742  
    8181            'label' => 'County',
    8282        ),
     83        'dock_features' => array(
     84            'title' => 'Dock Features',
     85            'label' => 'Dock Features',
     86        ),
    8387        'foreclosure' => array(
    8488            'title' => 'Foreclosure',
     
    9498            'label' => 'Keywords: Ex. Pool, Modern, Foreclosure',
    9599            'non_idx' => true,
     100        ),
     101        'lake_name' => array(
     102            'title' => 'Lake Name',
     103            'label' => 'Lake Name',
    96104        ),
    97105        'listed_since' => array(
     
    261269            'title' => 'Waterfront',
    262270            'label' => 'Waterfront',
     271        ),
     272        'waterfront_description' => array(
     273            'title' => 'Waterfront Description',
     274            'label' => 'Waterfront Description',
    263275        ),
    264276        'year_built' => array(
     
    444456    }
    445457
     458    protected static function get_dock_feature( $field ) {
     459        $options = array(
     460            'Boat House',
     461            'Covered',
     462            'Lift',
     463            'Light Pole',
     464            'Multi-level',
     465            'Multiple Steps',
     466            'Pier',
     467            'Platform',
     468            'Power',
     469            'PWC Parking',
     470            'Shared',
     471            'Storage',
     472            'Water',
     473            'Wheeled Gangwalk',
     474            'Other',
     475        );
     476        asort( $options );
     477        $options = array_combine( $options, $options );
     478        return self::get_select_markup( 'dock_features', $field['label'], $options, true );
     479    }
     480
    446481    protected static function get_foreclosure( $field ) {
    447482        return self::get_radio_markup( 'is_foreclosure', $field['label'], self::get_yes_no_any_options() );
     
    459494    protected static function get_keywords( $field ) {
    460495        return self::get_input_markup( 'keyword', $field['label'] );
     496    }
     497
     498    protected static function get_lake_name( $field ) {
     499        return self::get_input_markup( 'lake_name', $field['label'] );
    461500    }
    462501
     
    821860    }
    822861
     862    protected static function get_waterfront_description( $field ) {
     863        $options = array(
     864            'Dock-In-Place',
     865            'Shared Slip',
     866            'Deeded Slip',
     867            'Dockable By Permit',
     868            'Community Dock',
     869            'Other - See Remarks',
     870            'Zone - Red',
     871            'Zone - Yellow',
     872            'Zone - Green',
     873            'Community Boat Ramp',
     874            'Leased Slip',
     875            'Duke Energy - By Permit',
     876            'Dock in Place with Lift',
     877        );
     878        asort( $options );
     879        $options = array_combine( $options, $options );
     880        return self::get_select_markup( 'waterfront_description', $field['label'], $options , true );
     881    }
     882
    823883    protected static function get_year_built( $field ) {
    824884        return self::get_select_markup( 'year_built', $field['label'], array(
     
    845905
    846906}
    847 
    848 ?>
  • displetreader-wordpress-plugin/trunk/readme.txt

    r1546656 r1604742  
    77Requires at least: 3.2
    88Tested up to: 4.4.1
    9 Stable tag: 2.2
     9Stable tag: 2.2.4
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.