Changeset 2374230
- Timestamp:
- 09/03/2020 03:57:35 AM (6 years ago)
- Location:
- dsidxpress/trunk
- Files:
-
- 14 edited
-
admin.php (modified) (2 diffs)
-
api-request.php (modified) (1 diff)
-
assets/idxpress_LOGOicon.png (modified) (previous)
-
dsidxpress.php (modified) (3 diffs)
-
dsidxwidgets/css/client.css (modified) (1 diff)
-
dsidxwidgets/dsidxwidgets.php (modified) (1 diff)
-
dsidxwidgets/widget-service-mapsearch.php (modified) (1 diff)
-
globals.php (modified) (2 diffs)
-
idx-listings-pages.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
tinymce/link_builder/dialog.php (modified) (1 diff)
-
widget-idx-guided-search.php (modified) (2 diffs)
-
widget-list-areas.php (modified) (2 diffs)
-
widget-listings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dsidxpress/trunk/admin.php
r2273542 r2374230 98 98 } 99 99 function getGoogleMapsAPIKey(){ 100 $apiHttpResponse = dsSearchAgent_ApiRequest::FetchData("AccountOptions", array(), false, 0); 101 if (!empty($apiHttpResponse["errors"]) || $apiHttpResponse["response"]["code"] != "200") 102 echo "<script type='text/javascript'>console.log('Google Map API Key Not Set');</script>"; 103 else 104 $account_options = json_decode($apiHttpResponse["body"]); 105 $googleMapAPIsAPIKey = isset($account_options->{'GoogleMapsAPIKey'})? $account_options->{'GoogleMapsAPIKey'}:''; 106 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY")) 107 define("DSIDXPRESS_GOOGLEMAP_API_KEY", $googleMapAPIsAPIKey); 100 $apiHttpResponse = dsSearchAgent_ApiRequest::FetchData("AccountOptions", array(), false, 0); 101 102 if (empty($apiHttpResponse["errors"]) && $apiHttpResponse["response"]["code"] == "200") { 103 $account_options = json_decode($apiHttpResponse["body"]); 104 $googleMapAPIsAPIKey = isset($account_options->{'GoogleMapsAPIKey'})? $account_options->{'GoogleMapsAPIKey'}:''; 105 106 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY") || "DSIDXPRESS_GOOGLEMAP_API_KEY" == '') 107 define("DSIDXPRESS_GOOGLEMAP_API_KEY", $googleMapAPIsAPIKey); 108 } 108 109 } 109 110 static function Enqueue($hook) { … … 1561 1562 </td> 1562 1563 </tr> 1564 <?php $defaultMonthlyInsuranceRate = isset($account_options->{'DefaultMonthlyInsuranceRate'})? $account_options->{'DefaultMonthlyInsuranceRate'}:''; ?> 1565 <tr> 1566 <th> 1567 <label for="dsidxpress-default-insurance-rate">Monthly Insurance Rate:</label> 1568 </th> 1569 <td> 1570 <input type="text" id="dsidxpress-default-insurance-rate" 1571 name="<?php echo DSIDXPRESS_API_OPTIONS_NAME; ?>[DefaultMonthlyInsuranceRate]" 1572 value="<?php echo $defaultMonthlyInsuranceRate; ?>" /><br /> 1573 </td> 1574 </tr> 1563 1575 <tr> 1564 1576 <th> -
dsidxpress/trunk/api-request.php
r2126989 r2374230 218 218 if(preg_match('/maps.google.com/i', $script["src"]) || preg_match('/maps.googleapis.com/i', $script["src"])){ 219 219 $parsedUrl = parse_url($script["src"]); 220 $separator = ( $parsedUrl['query'] == NULL) ? "?" : "&";220 $separator = (array_key_exists("query", $parsedUrl) && $parsedUrl['query'] != NULL) ? "&" : "?"; 221 221 222 222 $account_options = dsSearchAgent_GlobalData::GetAccountOptions(false); -
dsidxpress/trunk/dsidxpress.php
r2273542 r2374230 7 7 Author: Diverse Solutions 8 8 Author URI: http://www.diversesolutions.com/ 9 Version: 3. 9.09 Version: 3.10.0 10 10 */ 11 11 … … 92 92 // this is needed specifically for development as PHP seems to choke when 1) loading this in admin, 2) using windows, 3) using directory junctions 93 93 include_once(str_replace("\\", "/", WP_PLUGIN_DIR) . "/dsidxpress/admin.php"); 94 add_action('admin_enqueue_scripts', 'dsidxpress_EnqueueAdminScripts'); 94 95 } else { 95 96 require_once($require_prefix . "client.php"); … … 123 124 </div> 124 125 HTML; 126 } 127 function dsidxpress_EnqueueAdminScripts($hook) { 128 if ('widgets.php' !== $hook) { 129 return; 130 } 131 wp_enqueue_script('admin_widgets_scripts', DSIDXPRESS_PLUGIN_URL . 'js/admin-widgets.js', array(), DSIDXPRESS_PLUGIN_VERSION, true); 125 132 } 126 133 function dsidxpress_InitWidgets() { -
dsidxpress/trunk/dsidxwidgets/css/client.css
r1841099 r2374230 868 868 color: Black; 869 869 } 870 */871 /* viewQRCode.js */872 .qrcode_description873 {874 color: #404040;875 font: 12px arial,sans-serif;876 text-align: left;877 }878 .qrcode_image879 {880 height: 220px;881 width: 220px;882 }883 .qrcode_icon884 {885 height: 25px;886 width: 15px;887 }888 .qrcode_div889 {890 width: 242px;891 padding: 6px;892 height: 265px;893 background-color: White;894 }895 870 /* end */ 896 871 /* Splash Styles */ -
dsidxpress/trunk/dsidxwidgets/dsidxwidgets.php
r1789061 r2374230 60 60 } 61 61 62 if (is_admin()) {63 // this is needed specifically for development as PHP seems to choke when 1) loading this in admin, 2) using windows, 3) using directory junctions64 include_once(dirname( __FILE__ ) . "/admin.php");65 }66 67 62 if (defined('DSIDXPRESS_PLUGIN_VERSION')) { 68 63 add_action("widgets_init", "dsidxwidgets_InitWidgets"); -
dsidxpress/trunk/dsidxwidgets/widget-service-mapsearch.php
r2077505 r2374230 22 22 23 23 $googleMapAPIsAPIKey = isset($account_options->{'GoogleMapsAPIKey'})? $account_options->{'GoogleMapsAPIKey'}:''; 24 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY") )24 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY") || "DSIDXPRESS_GOOGLEMAP_API_KEY" == '') 25 25 define("DSIDXPRESS_GOOGLEMAP_API_KEY", $googleMapAPIsAPIKey); 26 26 } -
dsidxpress/trunk/globals.php
r2273542 r2374230 16 16 $options = get_option(DSIDXPRESS_OPTION_NAME); 17 17 18 wp_enqueue_style('dsidxpress-icons', DSIDXPRESS_PLUGIN_URL . 'css/dsidx-icons.css'); 19 18 20 if (!isset($options["Activated"]) || !$options["Activated"]) 19 21 return; … … 22 24 $resourceParams = array( "IsResultsPageModernView" => $account_options->IsResultsPageModernView ); 23 25 $apiHttpResponse = dsSearchAgent_ApiRequest::FetchData("EnqueueGlobalAssets", $resourceParams, false, 3600); 24 wp_enqueue_style('dsidxpress-icons', DSIDXPRESS_PLUGIN_URL . 'css/dsidx-icons.css');25 26 26 27 if( is_admin() || in_array( $pagenow, array( 'wp-login.php', 'wp-register.php' ) ) ){ -
dsidxpress/trunk/idx-listings-pages.php
r2273542 r2374230 151 151 } 152 152 153 if( strlen(trim($posts[0]->post_content))>0)153 if(array_key_exists(0, $posts) && strlen(trim($posts[0]->post_content))>0) 154 154 { 155 155 if(substr(get_home_url(), 0, 8 ) === "https://") -
dsidxpress/trunk/readme.txt
r2273542 r2374230 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: 3.3.0 5 Tested up to: 5. 46 Stable tag: 3. 9.05 Tested up to: 5.5 6 Stable tag: 3.10.0 7 7 Requires PHP: 5.4.0 8 8 … … 103 103 104 104 == Changelog == 105 106 = 3.10.0 = 107 * Improvements on Modern View of Results Page 108 * Theme compatibility fixes 109 * Facebook sharing fix 110 * Compliance fixes 111 * Validations added to admin widgets 112 * Cleanup plugin 113 * Various Bug fixes 105 114 106 115 = 3.9.0 = -
dsidxpress/trunk/tinymce/link_builder/dialog.php
r2077505 r2374230 28 28 29 29 $apiHttpResponse = dsSearchAgent_ApiRequest::FetchData("AccountOptions", array(), false, 0); 30 if (!empty($apiHttpResponse["errors"]) || $apiHttpResponse["response"]["code"] != "200") 31 echo "<script type='text/javascript'>console.log('Google Map API Key Not Set');</script>"; 32 else 30 if (empty($apiHttpResponse["errors"]) && $apiHttpResponse["response"]["code"] == "200") { 33 31 $account_options = json_decode($apiHttpResponse["body"]); 34 $googleMapAPIsAPIKey = isset($account_options->{'GoogleMapsAPIKey'})? $account_options->{'GoogleMapsAPIKey'}:''; 35 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY")) 36 define("DSIDXPRESS_GOOGLEMAP_API_KEY", $googleMapAPIsAPIKey); 32 $googleMapAPIsAPIKey = isset($account_options->{'GoogleMapsAPIKey'})? $account_options->{'GoogleMapsAPIKey'}:''; 33 34 if (!defined("DSIDXPRESS_GOOGLEMAP_API_KEY") || "DSIDXPRESS_GOOGLEMAP_API_KEY" == '') 35 define("DSIDXPRESS_GOOGLEMAP_API_KEY", $googleMapAPIsAPIKey); 36 } 37 37 38 38 ?> -
dsidxpress/trunk/widget-idx-guided-search.php
r2273542 r2374230 193 193 <div class="dsidx-resp-area dsidx-resp-area-half dsidx-resp-area-half dsidx-resp-area-left"> 194 194 <label for="idx-q-PriceMin">Price From</label> 195 <input id="idx-q-PriceMin" name="idx-q-PriceMin" type="text" class="dsidx-price" placeholder="Any" value="{$values['idx-q-PriceMin']}" maxlength="15" onkeypress="return dsidx.is Number(event,this.id)" />195 <input id="idx-q-PriceMin" name="idx-q-PriceMin" type="text" class="dsidx-price" placeholder="Any" value="{$values['idx-q-PriceMin']}" maxlength="15" onkeypress="return dsidx.isDigitOnly(event,this.id)" onpaste="dsidx.validateDigitOnlyOnPaste(event)" /> 196 196 </div> 197 197 <div class="dsidx-resp-area dsidx-resp-area-half dsidx-resp-area-half dsidx-resp-area-right"> 198 198 <label for="idx-q-PriceMin">To</label> 199 <input id="idx-q-PriceMax" name="idx-q-PriceMax" type="text" class="dsidx-price" placeholder="Any" value="{$values['idx-q-PriceMax']}" maxlength="15" onkeypress="return dsidx.is Number(event,this.id)" />199 <input id="idx-q-PriceMax" name="idx-q-PriceMax" type="text" class="dsidx-price" placeholder="Any" value="{$values['idx-q-PriceMax']}" maxlength="15" onkeypress="return dsidx.isDigitOnly(event,this.id)" onpaste="dsidx.validateDigitOnlyOnPaste(event)" /> 200 200 </div> 201 201 HTML; … … 234 234 <div class="dsidx-resp-area"> 235 235 <label for="idx-q-ImprovedSqFtMin">Min Sqft</label> 236 <input id="idx-q-ImprovedSqFtMin" name="idx-q-ImprovedSqFtMin" type="text" class="dsidx-improvedsqft" placeholder="Any" value="{$values['idx-q-ImprovedSqFtMin']}" />236 <input id="idx-q-ImprovedSqFtMin" name="idx-q-ImprovedSqFtMin" type="text" class="dsidx-improvedsqft" placeholder="Any" value="{$values['idx-q-ImprovedSqFtMin']}" onkeypress="return dsidx.isDigitOnly(event, this.id)" onpaste="dsidx.validateDigitOnlyOnPaste(event)" /> 237 237 </div> 238 238 HTML; -
dsidxpress/trunk/widget-list-areas.php
r2273542 r2374230 91 91 $areaOptionsFieldName = $this->get_field_name("areaOptions"); 92 92 $selectedAreaType = array($instance["areaOptions"]["areaType"] => "selected=\"selected\""); 93 $selectedAreaType['city'] = array_key_exists('city', $selectedAreaType) ? $selectedAreaType['city'] : ""; 94 $selectedAreaType['community'] = array_key_exists('community', $selectedAreaType) ? $selectedAreaType['community'] : ""; 95 $selectedAreaType['tract'] = array_key_exists('tract', $selectedAreaType) ? $selectedAreaType['tract'] : ""; 96 $selectedAreaType['zip'] = array_key_exists('zip', $selectedAreaType) ? $selectedAreaType['zip'] : ""; 93 97 $type_normalized = $instance["areaOptions"]["areaType"]; 94 98 $pluginUrl = DSIDXPRESS_PLUGIN_URL; 95 99 $ajaxUrl = admin_url( 'admin-ajax.php' ); 96 97 $selectedCityAreaType = isset($selectedAreaType['city']) ? $selectedAreaType['city'] : '';98 $selectedCommunityAreaType = isset($selectedAreaType['community']) ? $selectedAreaType['community'] : '';99 $selectedTractAreaType = isset($selectedAreaType['tract']) ? $selectedAreaType['tract'] : '';100 $selectedZipAreaType = isset($selectedAreaType['zip']) ? $selectedAreaType['zip'] : '';101 100 102 101 echo <<<HTML … … 109 108 <label for="{$areaOptionsFieldId}[areaType]">Area types</label> 110 109 <select class="widefat" id="{$areaOptionsFieldId}_areaType" name="{$areaOptionsFieldName}[areaType]" onchange="dsWidgetListAreas.SwitchType(this, '{$areaOptionsFieldId}_link_title')"> 111 <option value="city" {$selected CityAreaType}>Cities</option>112 <option value="community" {$selected CommunityAreaType}>Communities</option>113 <option value="tract" {$selected TractAreaType}>Tracts</option>114 <option value="zip" {$selected ZipAreaType}>Zip Codes</option>110 <option value="city" {$selectedAreaType['city']}>Cities</option> 111 <option value="community" {$selectedAreaType['community']}>Communities</option> 112 <option value="tract" {$selectedAreaType['tract']}>Tracts</option> 113 <option value="zip" {$selectedAreaType['zip']}>Zip Codes</option> 115 114 </select> 116 115 </p> -
dsidxpress/trunk/widget-listings.php
r2077505 r2374230 157 157 $agentListingsNote = null; 158 158 $officeListingsNote = null; 159 if ( $options['AgentID'] == null) {159 if (!isset($options['AgentID']) || empty($options['AgentID'])) { 160 160 $agentListingsNote = "There are no listings to show with your current settings. Please make sure you have provided your Agent ID on the IDX > General page of your site dashboard, or change this widget's settings to show other listings."; 161 161 } 162 if ( $options['OfficeID'] == null) {162 if (!isset($options['OfficeID']) || empty($options['OfficeID'])) { 163 163 $officeListingsNote = "There are no listings to show with your current settings. Please make sure you have provided your Office ID on the IDX > General page of your site dashboard, or change this widget's settings to show other listings."; 164 164 }
Note: See TracChangeset
for help on using the changeset viewer.