Changeset 2052790
- Timestamp:
- 03/18/2019 04:07:16 PM (7 years ago)
- Location:
- immotoolbox-connect/trunk
- Files:
-
- 5 edited
-
immotoolbox-connect.php (modified) (1 diff)
-
includes/ITBConnectAPI.php (modified) (2 diffs)
-
public/ITBConnectPublic.php (modified) (1 diff)
-
readme.md (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
immotoolbox-connect/trunk/immotoolbox-connect.php
r2049606 r2052790 4 4 Plugin URI: https://www.immotoolbox.com/ 5 5 Description: Displays ImmoToolBox real estate listings in your website 6 Version: 1.2.1 06 Version: 1.2.11 7 7 Author: ZebraSoft Monaco 8 8 Author URI: https://www.zebrasoft.mc -
immotoolbox-connect/trunk/includes/ITBConnectAPI.php
r2028439 r2052790 85 85 } 86 86 87 if (!empty($atts['type_property'])) { 88 if (is_array($atts['type_property'])) { 89 $get['type_property'] = []; 90 foreach ($atts['type_property'] as $item) { 91 if ($item) $get['type_property'][] = $item; 92 } 93 if (!$get['type_property']) unset($get['type_property']); 94 else $get['type_property'] = implode(',', $get['type_property']); 95 } 96 else { 97 $get['type_property'] = $atts['type_property']; 98 } 99 } 100 101 if (!empty($atts['price_min'])) { 102 $get['price']['gte'] = $atts['price_min']; 103 } 87 104 if (!empty($atts['price_max'])) { 88 105 $get['price']['lte'] = $atts['price_max']; … … 91 108 if (!empty($atts['area_min'])) { 92 109 $get['living_area']['gte'] = $atts['area_min']; 110 } 111 if (!empty($atts['area_max'])) { 112 $get['living_area']['lte'] = $atts['area_max']; 93 113 } 94 114 -
immotoolbox-connect/trunk/public/ITBConnectPublic.php
r2045406 r2052790 506 506 if (!empty($atts['rooms'])) $search['rooms'] = explode(',', $atts['rooms']); 507 507 if (!empty($atts['price_max'])) $search['price_max'] = $atts['price_max']; 508 if (!empty($atts['price_min'])) $search['price_min'] = $atts['price_min']; 508 509 if (!empty($atts['area_min'])) $search['area_min'] = $atts['area_min']; 510 if (!empty($atts['area_max'])) $search['area_max'] = $atts['area_max']; 509 511 510 512 $data_view['search'] = $search; -
immotoolbox-connect/trunk/readme.md
r2049606 r2052790 6 6 Tested up to: 5.1.1 7 7 Requires PHP: 5.6 8 Stable tag: 1.2.1 08 Stable tag: 1.2.11 9 9 License: GPL3 10 10 License URI: https://www.gnu.org/licenses/gpl.html -
immotoolbox-connect/trunk/readme.txt
r2049606 r2052790 6 6 Tested up to: 5.1.1 7 7 Requires PHP: 5.6 8 Stable tag: 1.2.1 08 Stable tag: 1.2.11 9 9 License: GPL3 10 10 License URI: https://www.gnu.org/licenses/gpl.html
Note: See TracChangeset
for help on using the changeset viewer.