Plugin Directory

Changeset 2052790


Ignore:
Timestamp:
03/18/2019 04:07:16 PM (7 years ago)
Author:
zebrasoft
Message:

Update for 1.2.11

Location:
immotoolbox-connect/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • immotoolbox-connect/trunk/immotoolbox-connect.php

    r2049606 r2052790  
    44Plugin URI: https://www.immotoolbox.com/
    55Description: Displays ImmoToolBox real estate listings in your website
    6 Version: 1.2.10
     6Version: 1.2.11
    77Author: ZebraSoft Monaco
    88Author URI: https://www.zebrasoft.mc
  • immotoolbox-connect/trunk/includes/ITBConnectAPI.php

    r2028439 r2052790  
    8585        }
    8686
     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        }
    87104        if (!empty($atts['price_max'])) {
    88105            $get['price']['lte'] = $atts['price_max'];
     
    91108        if (!empty($atts['area_min'])) {
    92109            $get['living_area']['gte'] = $atts['area_min'];
     110        }
     111        if (!empty($atts['area_max'])) {
     112            $get['living_area']['lte'] = $atts['area_max'];
    93113        }
    94114
  • immotoolbox-connect/trunk/public/ITBConnectPublic.php

    r2045406 r2052790  
    506506        if (!empty($atts['rooms'])) $search['rooms'] = explode(',', $atts['rooms']);
    507507        if (!empty($atts['price_max'])) $search['price_max'] = $atts['price_max'];
     508        if (!empty($atts['price_min'])) $search['price_min'] = $atts['price_min'];
    508509        if (!empty($atts['area_min'])) $search['area_min'] = $atts['area_min'];
     510        if (!empty($atts['area_max'])) $search['area_max'] = $atts['area_max'];
    509511
    510512        $data_view['search'] = $search;
  • immotoolbox-connect/trunk/readme.md

    r2049606 r2052790  
    66Tested up to: 5.1.1
    77Requires PHP: 5.6
    8 Stable tag: 1.2.10
     8Stable tag: 1.2.11
    99License: GPL3
    1010License URI: https://www.gnu.org/licenses/gpl.html
  • immotoolbox-connect/trunk/readme.txt

    r2049606 r2052790  
    66Tested up to: 5.1.1
    77Requires PHP: 5.6
    8 Stable tag: 1.2.10
     8Stable tag: 1.2.11
    99License: GPL3
    1010License URI: https://www.gnu.org/licenses/gpl.html
Note: See TracChangeset for help on using the changeset viewer.