Changeset 1604742
- Timestamp:
- 02/27/2017 06:29:58 PM (9 years ago)
- Location:
- displetreader-wordpress-plugin/trunk
- Files:
-
- 8 edited
-
controller/class-displet-rets-idx-residentials-controller.php (modified) (1 diff)
-
controller/class-displet-rets-idx-search-fields-controller.php (modified) (3 diffs)
-
displetreader-wordpress-plugin.php (modified) (1 diff)
-
includes/js/displet-rets-idx-scripts.js (modified) (1 diff)
-
includes/library/displet-property-details-page-template-library.php (modified) (4 diffs)
-
includes/library/displet-template-library.php (modified) (2 diffs)
-
model/class-displet-rets-idx-search-fields-model.php (modified) (7 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
displetreader-wordpress-plugin/trunk/controller/class-displet-rets-idx-residentials-controller.php
r1546656 r1604742 337 337 $ar = $this->set_relative_paths( $ar ); 338 338 } 339 } elseif ( is_string( $arg ) && preg_match( '/ cloudfront/i', $arg ) ) {339 } elseif ( is_string( $arg ) && preg_match( '/(cloudfront|images.displet.com)/i', $arg ) ) { 340 340 $arg = str_replace( array( 'http://', 'https://' ) , '//', $arg ); 341 341 } -
displetreader-wordpress-plugin/trunk/controller/class-displet-rets-idx-search-fields-controller.php
r1484175 r1604742 41 41 $markup .= self::get_county( $field ); 42 42 break; 43 case 'dock_features' : 44 $markup .= self::get_dock_feature( $field ); 45 break; 43 46 case 'foreclosure' : 44 47 $markup .= self::get_foreclosure( $field ); … … 50 53 $markup .= self::get_keywords( $field ); 51 54 break; 55 case 'lake_name' : 56 $markup .= self::get_lake_name( $field ); 57 break; 52 58 case 'last_modified' : 53 59 $markup .= self::get_last_modified( $field ); … … 136 142 case 'waterfront' : 137 143 $markup .= self::get_waterfront( $field ); 144 break; 145 case 'waterfront_description' : 146 $markup .= self::get_waterfront_description( $field ); 138 147 break; 139 148 case 'year_built' : -
displetreader-wordpress-plugin/trunk/displetreader-wordpress-plugin.php
r1546656 r1604742 5 5 * Plugin URI: http://displet.com/wordpress-plugins/displetreader-wordpress-plugin 6 6 * 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 8 8 * Author: Displet 9 9 * Author URI: http://displet.com/ -
displetreader-wordpress-plugin/trunk/includes/js/displet-rets-idx-scripts.js
r1546656 r1604742 3428 3428 if( typeof arg[key] === 'object' ) { 3429 3429 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] ) ) { 3431 3431 arg[key] = arg[key].replace( 'http://', '//' ).replace( 'https://', '//' ); 3432 3432 } -
displetreader-wordpress-plugin/trunk/includes/library/displet-property-details-page-template-library.php
r1484175 r1604742 964 964 </div>'; 965 965 } 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 } 966 973 if ( displetretsidx_has_zoning() ) { 967 974 $html[] = … … 1121 1128 </div>'; 1122 1129 } 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 } 1123 1137 if ( displetretsidx_has_unit() ) { 1124 1138 $html[] = … … 2391 2405 /** 2392 2406 * @package: displetretsidx_the_listing() or displetretsidx_setup_listing_data( $listing ) 2407 * @return: boolean 2408 */ 2409 function 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 ) 2393 2419 * @return: text 2394 2420 */ … … 2396 2422 global $displetretsidx_listing; 2397 2423 return $displetretsidx_listing->disability_features; 2424 } 2425 2426 function displetretsidx_get_dock_features() { 2427 global $displetretsidx_listing; 2428 return $displetretsidx_listing->dock_features; 2398 2429 } 2399 2430 -
displetreader-wordpress-plugin/trunk/includes/library/displet-template-library.php
r1484175 r1604742 681 681 /** 682 682 * @package: displetretsidx_the_listing() or displetretsidx_setup_listing_data( $listing ) 683 * @return: boolean 684 */ 685 function 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 ) 683 695 * @return: text 684 696 */ … … 687 699 return $displetretsidx_listing->subdivision; 688 700 } 701 702 /** 703 * @package: displetretsidx_the_listing() or displetretsidx_setup_listing_data( $listing ) 704 * @return: text 705 */ 706 function displetretsidx_get_lake_name() { 707 global $displetretsidx_listing; 708 return $displetretsidx_listing->lake_name; 709 } 710 689 711 690 712 /** -
displetreader-wordpress-plugin/trunk/model/class-displet-rets-idx-search-fields-model.php
r1484175 r1604742 81 81 'label' => 'County', 82 82 ), 83 'dock_features' => array( 84 'title' => 'Dock Features', 85 'label' => 'Dock Features', 86 ), 83 87 'foreclosure' => array( 84 88 'title' => 'Foreclosure', … … 94 98 'label' => 'Keywords: Ex. Pool, Modern, Foreclosure', 95 99 'non_idx' => true, 100 ), 101 'lake_name' => array( 102 'title' => 'Lake Name', 103 'label' => 'Lake Name', 96 104 ), 97 105 'listed_since' => array( … … 261 269 'title' => 'Waterfront', 262 270 'label' => 'Waterfront', 271 ), 272 'waterfront_description' => array( 273 'title' => 'Waterfront Description', 274 'label' => 'Waterfront Description', 263 275 ), 264 276 'year_built' => array( … … 444 456 } 445 457 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 446 481 protected static function get_foreclosure( $field ) { 447 482 return self::get_radio_markup( 'is_foreclosure', $field['label'], self::get_yes_no_any_options() ); … … 459 494 protected static function get_keywords( $field ) { 460 495 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'] ); 461 500 } 462 501 … … 821 860 } 822 861 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 823 883 protected static function get_year_built( $field ) { 824 884 return self::get_select_markup( 'year_built', $field['label'], array( … … 845 905 846 906 } 847 848 ?> -
displetreader-wordpress-plugin/trunk/readme.txt
r1546656 r1604742 7 7 Requires at least: 3.2 8 8 Tested up to: 4.4.1 9 Stable tag: 2.2 9 Stable tag: 2.2.4 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.