Changeset 2739599
- Timestamp:
- 06/09/2022 03:59:18 AM (4 years ago)
- Location:
- dsidxpress/trunk
- Files:
-
- 16 edited
-
admin.php (modified) (2 diffs)
-
ajax-handler.php (modified) (1 diff)
-
client.php (modified) (3 diffs)
-
dsidxpress.php (modified) (2 diffs)
-
dsidxwidgets/widget-service-mapsearch.php (modified) (1 diff)
-
dsidxwidgets/widget-service-quicksearch.php (modified) (2 diffs)
-
dsidxwidgets/widget-service-recentstatus.php (modified) (2 diffs)
-
js/admin-utilities.js (modified) (1 diff)
-
js/autocomplete.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
rewrite.php (modified) (1 diff)
-
shortcodes.php (modified) (2 diffs)
-
tinymce/link_builder/dialog.php (modified) (1 diff)
-
widget-idx-quick-search.php (modified) (2 diffs)
-
widget-listings.php (modified) (2 diffs)
-
widget-search.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dsidxpress/trunk/admin.php
r2549383 r2739599 103 103 $googleMapAPIsAPIKey = isset($account_options->{'GoogleMapsAPIKey'})? esc_html($account_options->{'GoogleMapsAPIKey'}):''; 104 104 105 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY") || DSIDXPRESS_GOOGLEMAP_API_KEY == '')105 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY")) 106 106 define("DSIDXPRESS_GOOGLEMAP_API_KEY", $googleMapAPIsAPIKey); 107 107 } … … 158 158 wp_enqueue_script('dsidxpress_admin_utilities', DSIDXPRESS_PLUGIN_URL . 'js/admin-utilities.js', array(), DSIDXPRESS_PLUGIN_VERSION, true); 159 159 wp_localize_script('dsidxpress_admin_utilities', 'mlsCapabilities', self::$capabilities); 160 wp_ localize_script('dsidxpress_admin_utilities', 'dsIDXPressPackage', $dsIDXPressPackage);160 wp_add_inline_script('dsidxpress_admin_utilities', 'var dsIDXPressPackage = "' . $dsIDXPressPackage . '";', 'before'); 161 161 wp_localize_script('dsidxpress_admin_utilities', 'dsIDXSeachSetupMapData', $mapLatLangData); 162 162 wp_enqueue_style('dsidxpress_admin_options_style', DSIDXPRESS_PLUGIN_URL . 'css/admin-options.css', array(), DSIDXPRESS_PLUGIN_VERSION); -
dsidxpress/trunk/ajax-handler.php
r2497486 r2739599 211 211 } 212 212 213 $dsidx_action = $post_vars['dsidx_action'];214 $name = $post_vars['name'];215 $firstName = $post_vars['firstName'];216 $lastName = $post_vars['lastName'];217 $emailAddress = $post_vars['emailAddress'];218 $phoneNumber = $post_vars['phoneNumber'];219 $scheduleYesNo = $post_vars['scheduleYesNo'];220 $scheduleDateMonth = $post_vars['scheduleDateMonth'];221 $scheduleDateDay = $post_vars['scheduleDateDay'];222 $propertyStreetAddress = $post_vars['propertyStreetAddress'];223 $propertyCity = $post_vars['propertyCity'];224 $propertyZip = $post_vars['propertyZip'];225 $propertyState = $post_vars['propertyState'];226 $returnToReferrer = $post_vars['returnToReferrer'];227 $propertyID = $post_vars['propertyID'];228 $PackageTypeID = $post_vars['PackageTypeID'];213 $dsidx_action = isset($post_vars['dsidx_action']) ? $post_vars['dsidx_action'] : ''; 214 $name = isset($post_vars['name']) ? $post_vars['name'] : ''; 215 $firstName = isset($post_vars['firstName']) ? $post_vars['firstName'] : ''; 216 $lastName = isset($post_vars['lastName']) ? $post_vars['lastName'] : ''; 217 $emailAddress = isset($post_vars['emailAddress']) ? $post_vars['emailAddress'] : ''; 218 $phoneNumber = isset($post_vars['phoneNumber']) ? $post_vars['phoneNumber'] : ''; 219 $scheduleYesNo = isset($post_vars['scheduleYesNo']) ? $post_vars['scheduleYesNo'] : ''; 220 $scheduleDateMonth = isset($post_vars['scheduleDateMonth']) ? $post_vars['scheduleDateMonth'] : ''; 221 $scheduleDateDay = isset($post_vars['scheduleDateDay']) ? $post_vars['scheduleDateDay'] : ''; 222 $propertyStreetAddress = isset($post_vars['propertyStreetAddress']) ? $post_vars['propertyStreetAddress'] : ''; 223 $propertyCity = isset($post_vars['propertyCity']) ? $post_vars['propertyCity'] : ''; 224 $propertyZip = isset($post_vars['propertyZip']) ? $post_vars['propertyZip'] : ''; 225 $propertyState = isset($post_vars['propertyState']) ? $post_vars['propertyState'] : ''; 226 $returnToReferrer = isset($post_vars['returnToReferrer']) ? $post_vars['returnToReferrer'] : ''; 227 $propertyID = isset($post_vars['propertyID']) ? $post_vars['propertyID'] : ''; 228 $PackageTypeID = isset($post_vars['PackageTypeID']) ? $post_vars['PackageTypeID'] : ''; 229 229 230 230 if($dsidx_action !== "ContactForm") { -
dsidxpress/trunk/client.php
r2538310 r2739599 143 143 remove_action("wp_head", "feed_links_extra"); 144 144 145 // Removing short link from the plugin 146 remove_action('wp_head', 'wp_shortlink_wp_head'); 147 145 148 $wp_query->found_posts = 0; 146 149 $wp_query->max_num_pages = 0; … … 161 164 $post_id = !$idx_page_id?time():$idx_page_id; 162 165 163 if ( $options["AdvancedTemplate"])166 if (isset($options["AdvancedTemplate"])) 164 167 wp_cache_set($post_id, array("_wp_page_template" => array($options["AdvancedTemplate"])), "post_meta"); 165 168 … … 272 275 if ($action == "results") { 273 276 // save search 274 if( !empty($get["idx-save"]) && $get["idx-save"] == "true") {277 if(isset($get["idx-save"]) && !empty($get["idx-save"]) && $get["idx-save"] == "true") { 275 278 $apiParams["name"] = $get["idx-save-name"]; 276 $apiParams["updates"] = $get["idx-save-updates"] == "on" ? "true" : "false";279 $apiParams["updates"] = isset($get["idx-save-updates"]) && $get["idx-save-updates"] == "on" ? "true" : "false"; 277 280 278 281 $apiHttpResponse = dsSearchAgent_ApiRequest::FetchData("SaveSearch", $apiParams, false, 0); -
dsidxpress/trunk/dsidxpress.php
r2641022 r2739599 7 7 Author: Diverse Solutions 8 8 Author URI: http://www.diversesolutions.com/ 9 Version: 3.1 5.09 Version: 3.16.0 10 10 */ 11 11 … … 201 201 $remoteOptions = json_decode($accountOptionsResponse["body"]); 202 202 $localOptions = get_option(DSIDXPRESS_OPTION_NAME); 203 $localOptions["UseAlternateUrlStructure"] = strtolower($remoteOptions->UseAlternateUrlStructureInDsIdxPress) == "true"; 203 204 if(isset($remoteOptions->UseAlternateUrlStructureInDsIdxPress)) { 205 $localOptions["UseAlternateUrlStructure"] = strtolower($remoteOptions->UseAlternateUrlStructureInDsIdxPress) == "true"; 206 } 207 204 208 update_option(DSIDXPRESS_OPTION_NAME, $localOptions); 205 209 $wp_rewrite->flush_rules(); -
dsidxpress/trunk/dsidxwidgets/widget-service-mapsearch.php
r2583880 r2739599 22 22 23 23 $googleMapAPIsAPIKey = isset($account_options->{'GoogleMapsAPIKey'})? $account_options->{'GoogleMapsAPIKey'}:''; 24 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY") || DSIDXPRESS_GOOGLEMAP_API_KEY == '')24 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY")) 25 25 define("DSIDXPRESS_GOOGLEMAP_API_KEY", $googleMapAPIsAPIKey); 26 26 } -
dsidxpress/trunk/dsidxwidgets/widget-service-quicksearch.php
r2583880 r2739599 5 5 6 6 public function __construct() { 7 global $pagenow; 8 7 9 parent::__construct("dsidx-quicksearch", "Quick Search", array( 8 10 "classname" => "dsidx-widget-quicksearch", 9 11 "description" => "Show a quicksearch input widget" 10 12 )); 13 14 if ($pagenow == 'widgets.php') { 15 wp_enqueue_script('dsidxwidgets_widget_service_admin', DSIDXWIDGETS_PLUGIN_URL . 'js/widget-service-admin.js', array('jquery'), false, true); 16 } 11 17 12 18 $this->widgetsCdn = dsWidgets_Service_Base::$widgets_cdn; … … 80 86 } 81 87 function form($instance) { 82 wp_enqueue_script('dsidxwidgets_widget_service_admin', DSIDXWIDGETS_PLUGIN_URL . 'js/widget-service-admin.js', array('jquery'), false, true);83 88 $instance = wp_parse_args($instance, array( 84 89 "eDomain" => "", -
dsidxpress/trunk/dsidxwidgets/widget-service-recentstatus.php
r2583880 r2739599 4 4 5 5 public function __construct() { 6 global $pagenow; 7 6 8 parent::__construct("dsidx-recentstatus", "Recent Properties", array( 7 9 "classname" => "dsidx-widget-recentstatus", 8 10 "description" => "Show recent listings from a specific status" 9 11 )); 12 13 if ($pagenow == 'widgets.php') { 14 wp_enqueue_script('dsidxwidgets_widget_service_admin', DSIDXWIDGETS_PLUGIN_URL . 'js/widget-service-admin.js', array('jquery'), false, true); 15 } 10 16 11 17 $this->widgetsCdn = dsWidgets_Service_Base::$widgets_cdn; … … 96 102 } 97 103 function form($instance) { 98 wp_enqueue_script('dsidxwidgets_widget_service_admin', DSIDXWIDGETS_PLUGIN_URL . 'js/widget-service-admin.js', array('jquery'), false, true);99 104 $personal_info = stripslashes_deep(get_option('personal_info')); 100 105 $city = empty($personal_info['city']) ? 'Irvine' : $personal_info['city']; -
dsidxpress/trunk/js/admin-utilities.js
r2126989 r2739599 203 203 html += '<input type="checkbox" name="groupListStatus" value="2"' + selectConditional + '>Conditional<div style="height:6px; clear:both;"></div>'; 204 204 } 205 if(('Has SoldData' in mlsCapabilities) && mlsCapabilities['HasSoldData'] !== ''){205 if(('HasPendingData' in mlsCapabilities) && mlsCapabilities['HasPendingData'] !== ''){ 206 206 html += '<input type="checkbox" name="groupListStatus" value="4"' + selectPending + '>Pending<div style="height:6px; clear:both;"></div>'; 207 207 } -
dsidxpress/trunk/js/autocomplete.js
r2641022 r2739599 325 325 } 326 326 if(item.SupportingInfo.indexOf('Address;') != -1) 327 url = url+item.Name.replace(/ /g, "_") ;327 url = url+item.Name.replace(/ /g, "_").replace(/-/g, "_").replace(/_{2,}/g, "_"); 328 328 window.location = url; 329 329 } -
dsidxpress/trunk/readme.txt
r2641022 r2739599 3 3 Tags: IDX, MLS, real estate, realtor, housing, listings, SEO, CRM, lead capture, mobile friendly, customizable, diverse solutions, market leader, ds, marketleader, rets, idxpress, dsidxpress 4 4 Requires at least: 4.5.0 5 Tested up to: 5.86 Stable tag: 3.1 5.05 Tested up to: 6.0 6 Stable tag: 3.16.0 7 7 Requires PHP: 5.4.0 8 8 … … 120 120 121 121 == Changelog == 122 123 = 3.16.0 = 124 * WordPress v6.0 compatibility fixes 125 * Non functional short-links Removed 126 * Missing Pending status is added on IDX Filters 127 * Addresses with hyphens searching issue has been fixed 128 * Image scaling issue has been fixed for Thumbnail view 129 * MLS compliance stuff 130 * MLS Number with long characters searching issue has been fixed 122 131 123 132 = 3.15.0 = -
dsidxpress/trunk/rewrite.php
r2497486 r2739599 67 67 $uri = strtok( $_SERVER['REQUEST_URI'], '?' ); 68 68 if( substr( $uri, -4 ) == '/idx' ){ 69 $protocol = $_SERVER['HTTPS']? 'https://' : 'http://';69 $protocol = isset($_SERVER['HTTPS']) ? 'https://' : 'http://'; 70 70 $host = $_SERVER['HTTP_HOST']; 71 71 $querystring = $_SERVER['QUERY_STRING'] ? '?' . $_SERVER['QUERY_STRING'] : ''; -
dsidxpress/trunk/shortcodes.php
r2538310 r2739599 37 37 dsidx_footer::ensure_disclaimer_exists(); 38 38 $isAdminPost = false; 39 $referer = stripslashes($_SERVER["HTTP_REFERER"]); 39 40 $referer = ''; 41 if(isset($_SERVER["HTTP_REFERER"])) { 42 $referer = stripslashes($_SERVER["HTTP_REFERER"]); 43 } 44 40 45 if ((strpos($referer, '/wp-admin/') !== false) && ((strpos($referer, 'action') !== false) || (strpos($referer, 'post_type') !== false)) ) { 41 46 $isAdminPost = true; … … 59 64 } 60 65 if ($apiHttpResponse["response"]["code"] == "404") { 61 return '<p class="dsidx-error">'.sprintf(DSIDXPRESS_INVALID_MLSID_MESSAGE, $atts[ mlsnumber]).'</p>';66 return '<p class="dsidx-error">'.sprintf(DSIDXPRESS_INVALID_MLSID_MESSAGE, $atts['mlsnumber']).'</p>'; 62 67 } 63 68 else if (empty($apiHttpResponse["errors"]) && $apiHttpResponse["response"]["code"] == "200") { -
dsidxpress/trunk/tinymce/link_builder/dialog.php
r2497486 r2739599 32 32 $googleMapAPIsAPIKey = isset($account_options->{'GoogleMapsAPIKey'})? $account_options->{'GoogleMapsAPIKey'}:''; 33 33 34 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY") || DSIDXPRESS_GOOGLEMAP_API_KEY == '')34 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY")) 35 35 define("DSIDXPRESS_GOOGLEMAP_API_KEY", $googleMapAPIsAPIKey); 36 36 } -
dsidxpress/trunk/widget-idx-quick-search.php
r2583880 r2739599 7 7 8 8 public function __construct() { 9 global $pagenow; 10 9 11 parent::__construct("dsidx-quicksearch", "IDX Quick Search", array( 10 12 "classname" => "dsidx-widget-quick-search", 11 13 "description" => "Choose either horizontal or vertical format. A simple responsive search form. Allow users to type any location, select from available property types and filter by price range." 12 14 )); 15 16 if ($pagenow == 'widgets.php') { 17 wp_enqueue_script('dsidxwidgets_widget_service_admin', DSIDXWIDGETS_PLUGIN_URL . 'js/widget-service-admin.js', array('jquery'), false, true); 18 } 13 19 14 20 $this->widgetsCdn = dsWidgets_Service_Base::$widgets_cdn; … … 128 134 } 129 135 function form($instance) { 130 wp_enqueue_script('dsidxwidgets_widget_service_admin', DSIDXWIDGETS_PLUGIN_URL . 'js/widget-service-admin.js', array('jquery'), false, true);131 136 $instance = wp_parse_args($instance, array( 132 137 "title" => "Real Estate Search", -
dsidxpress/trunk/widget-listings.php
r2583880 r2739599 2 2 class dsSearchAgent_ListingsWidget extends WP_Widget { 3 3 public function __construct() { 4 global $pagenow; 5 4 6 parent::__construct("dsidx-listings", "IDX Listings", array( 5 7 "classname" => "dsidx-widget-listings", 6 8 "description" => "Show a list of real estate listings" 7 9 )); 8 10 11 if ($pagenow == 'widgets.php') { 12 wp_enqueue_script('dsidxpress_widget_listings', DSIDXPRESS_PLUGIN_URL . 'js/widget-listings.js', array('jquery'), DSIDXPRESS_PLUGIN_VERSION, true); 13 } 9 14 } 10 15 function widget($args, $instance) { … … 113 118 } 114 119 function form($instance) { 115 wp_enqueue_script('dsidxpress_widget_listings', DSIDXPRESS_PLUGIN_URL . 'js/widget-listings.js', array('jquery'), DSIDXPRESS_PLUGIN_VERSION, true);116 120 $options = get_option(DSIDXPRESS_OPTION_NAME); 117 121 $instance = wp_parse_args($instance, array( -
dsidxpress/trunk/widget-search.php
r2583880 r2739599 2 2 class dsSearchAgent_SearchWidget extends WP_Widget { 3 3 function __construct() { 4 global $pagenow; 5 4 6 $this->WP_Widget("dsidx-search", "IDX Search", array( 5 7 "classname" => "dsidx-widget-search", 6 8 "description" => "A real estate search form" 7 9 )); 10 11 if ($pagenow == 'widgets.php') { 12 wp_enqueue_script('dsidxpress_widget_search', DSIDXPRESS_PLUGIN_URL . 'js/widget-search.js', array('jquery'), DSIDXPRESS_PLUGIN_VERSION, true); 13 } 8 14 } 9 15 function widget($args, $instance) { … … 226 232 } 227 233 function form($instance) { 228 wp_enqueue_script('dsidxpress_widget_search', DSIDXPRESS_PLUGIN_URL . 'js/widget-search.js', array('jquery'), DSIDXPRESS_PLUGIN_VERSION, true);229 230 234 $pluginUrl = DSIDXPRESS_PLUGIN_URL; 231 235
Note: See TracChangeset
for help on using the changeset viewer.