Plugin Directory

Changeset 2939285


Ignore:
Timestamp:
07/17/2023 07:21:59 AM (3 years ago)
Author:
zebrasoft
Message:

Update for 1.3.2

Location:
immotoolbox-connect/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • immotoolbox-connect/trunk/admin/js/block.js

    r2930754 r2939285  
    6767        },
    6868        nids: {
     69            type: 'string'
     70        },
     71        agency: {
    6972            type: 'string'
    7073        },
     
    280283                            {},
    281284                            [
    282                                 (props.attributes.type||props.attributes.country||props.attributes.city||props.attributes.district||props.attributes.building)?el(
     285                                (props.attributes.type||props.attributes.country||props.attributes.city||props.attributes.district||props.attributes.rooms||props.attributes.price_max||props.attributes.price_min||props.attributes.price_on_request||props.attributes.area_min||props.attributes.featured||props.attributes.ids||props.attributes.nids||props.attributes.agency)?el(
    283286                                    "li",
    284287                                    {className: "itbconnect_subvalues"},
     
    556559                                    label: i18n.__("Featured properties", "immotoolbox-connect"),
    557560                                    onChange: function (newValue) { props.setAttributes( { featured: newValue } ) },
    558                                 }
    559                             ),
    560                             el(
    561                                 TextControl,
    562                                 {
    563                                     value: props.attributes.ids,
    564                                     label: i18n.__("IDs of property to display", "immotoolbox-connect"),
    565                                     onChange: function (newValue) { props.setAttributes( { ids: newValue } ) },
    566                                 }
    567                             ),
    568                             el(
    569                                 TextControl,
    570                                 {
    571                                     value: props.attributes.nids,
    572                                     label: i18n.__("IDs of property to exclude", "immotoolbox-connect"),
    573                                     onChange: function (newValue) { props.setAttributes( { nids: newValue } ) },
    574561                                }
    575562                            ),
     
    782769            type: 'string'
    783770        },
     771        hide_type: {
     772            type: 'boolean',
     773        },
    784774        hide_country: {
    785775            type: 'boolean'
     
    791781            type: 'boolean'
    792782        },
    793 
     783        hide_price_max: {
     784            type: 'boolean'
     785        },
     786        hide_rooms: {
     787            type: 'boolean'
     788        },
     789        hide_area_min: {
     790            type: 'boolean'
     791        },
     792        hide_submit: {
     793            type: 'boolean'
     794        },
    794795        type: {
    795796            type: 'string'
     
    805806        },
    806807        building: {
     808            type: 'string'
     809        },
     810        rooms: {
     811            type: 'string'
     812        },
     813        price_min: {
     814            type: 'string'
     815        },
     816        price_max: {
     817            type: 'string'
     818        },
     819        price_on_request: {
     820            type: 'string'
     821        },
     822        area_min: {
     823            type: 'string'
     824        },
     825        order: {
     826            type: 'string'
     827        },
     828        direction: {
     829            type: 'string'
     830        },
     831        featured: {
     832            type: 'boolean'
     833        },
     834        ids: {
     835            type: 'string'
     836        },
     837        nids: {
     838            type: 'string'
     839        },
     840        agency: {
    807841            type: 'string'
    808842        },
     
    846880                            },
    847881                            [
     882                                el(
     883                                    ToggleControl,
     884                                    {
     885                                        checked: props.attributes.hide_type,
     886                                        label: i18n.__("Type", "immotoolbox-connect"),
     887                                        onChange: function (newValue) { props.setAttributes( { hide_type: newValue } ) },
     888                                    }
     889                                ),
    848890                                el(
    849891                                    ToggleControl,
     
    10621104                            {},
    10631105                            [
    1064                                 (props.attributes.hide_type||props.attributes.hide_country)?el(
     1106                                (props.attributes.hide_type||props.attributes.hide_country||props.attributes.hide_city||props.attributes.hide_district||props.attributes.hide_price_max||props.attributes.hide_rooms||props.attributes.hide_area_min||props.attributes.hide_submit)?el(
    10651107                                    "li",
    10661108                                    {className: "itbconnect_subvalues"},
     
    10711113                                        props.attributes.hide_city?el("span", {className: "itbconnect_label"}, i18n.__("City", "immotoolbox-connect")):null,
    10721114                                        props.attributes.hide_district?el("span", {className: "itbconnect_label"}, i18n.__("District", "immotoolbox-connect")):null,
    1073                                         props.attributes.search_price_max?el("span", {className: "itbconnect_label"}, i18n.__("Max. price", "immotoolbox-connect")):null,
     1115                                        props.attributes.hide_price_max?el("span", {className: "itbconnect_label"}, i18n.__("Max. price", "immotoolbox-connect")):null,
    10741116                                        props.attributes.hide_rooms?el("span", {className: "itbconnect_label"}, i18n.__("Nb. rooms", "immotoolbox-connect")):null,
    10751117                                        props.attributes.hide_area_min?el("span", {className: "itbconnect_label"}, i18n.__("Min. area", "immotoolbox-connect")):null,
     
    11341176        code+=' format="'+props.attributes.format+'"';
    11351177    }
    1136     if (props.attributes.hide_country) {
    1137         code+=' hide_country="1"';
    1138     }
    1139     if (props.attributes.hide_city) {
    1140         code+=' hide_city="1"';
    1141     }
    1142     if (props.attributes.hide_district) {
    1143         code+=' hide_district="1"';
    1144     }
     1178    if (props.attributes.hide_type) code+=' hide_type="1"';
     1179    if (props.attributes.hide_country) code+=' hide_country="1"';
     1180    if (props.attributes.hide_city) code+=' hide_city="1"';
     1181    if (props.attributes.hide_district) code+=' hide_district="1"';
    11451182    if (props.attributes.hide_type) code+=' hide_type="1"';
    11461183    if (props.attributes.hide_price_max) code+=' hide_price_max="1"';
     
    11831220    }
    11841221    if (props.attributes.ids) {
    1185         code+=' ids="1"';
     1222        code+=' ids="'+props.attributes.ids+'"';
    11861223    }
    11871224    if (props.attributes.nids) {
    1188         code+=' nids="1"';
     1225        code+=' nids="'+props.attributes.nids+'"';
    11891226    }
    11901227    if (props.attributes.agency) {
  • immotoolbox-connect/trunk/immotoolbox-connect.php

    r2937465 r2939285  
    44Plugin URI: https://www.immotoolbox.com/
    55Description: Displays ImmoToolBox real estate listings in your website
    6 Version: 1.3.1
     6Version: 1.3.2
    77Author: ZebraSoft Monaco
    88Author URI: https://www.zebrasoft.mc
     
    2424along with ImmoToolBox Connect. If not, see https://www.gnu.org/licenses/gpl.html.
    2525*/
    26 define('ITBCONNECT_VERSION', '1.3.1');
     26define('ITBCONNECT_VERSION', '1.3.2');
    2727
    2828/**
  • immotoolbox-connect/trunk/public/ITBConnectPublic.php

    r2937465 r2939285  
    486486        if (!empty($atts['area_min'])) $search['area_min'] = $atts['area_min'];
    487487        if (!empty($atts['area_max'])) $search['area_max'] = $atts['area_max'];
     488        if (!empty($atts['price_on_request'])) $search['price_on_request'] = $atts['price_on_request'];
     489        if (!empty($atts['featured'])) $search['featured'] = $atts['featured'];
    488490
    489491        $data_view['search'] = $search;
     
    513515        }
    514516        $option = get_option(ITBCONNECT_OPTION_NAME, array());
     517
    515518        $searchresults_page_id = empty($atts['searchresults_page_id'])?$option['searchresults_page_id']:$atts['searchresults_page_id'];
    516519        if (!$searchresults_page_id) return '';
  • immotoolbox-connect/trunk/public/partials/base/search.html.twig

    r2747456 r2939285  
    2424
    2525            {% block search_city %}
    26                 <div class="form-group {{ col_class }}">
    27                     {% if not atts.hide_city|default %}
     26                {% if not atts.hide_city|default %}
     27                    <div class="form-group {{ col_class }}">
    2828                        {% block search_city_label %}
    2929                            <label for="city">{{ __("City", "immotoolbox-connect") }} {{ locale }}</label>
     
    4545                            </select>
    4646                        {% endblock %}
    47                     {% endif %}
    48                 </div>
     47                    </div>
     48                {% endif %}
    4949            {% endblock %}
    5050            {% block search_district %}
    51                 <div class="form-group {{ col_class }}">
    52                     {% if not atts.hide_district|default(true) %}
     51                {% if not atts.hide_district|default(true) %}
     52                    <div class="form-group {{ col_class }}">
    5353                        {% block search_district_label %}
    5454                            <label for="district">{{ __("district", "immotoolbox-connect") }} {{ locale }}</label>
     
    6464                            </select>
    6565                        {% endblock %}
    66                     {% endif %}
    67                 </div>
     66                    </div>
     67                {% endif %}
    6868            {% endblock %}
    6969            {% block search_type %}
    70                 {% if not hide_type|default %}
     70                {% if not atts.hide_type|default %}
    7171                    <div class="form-group {{ col_class }}">
    7272                        {% block search_type_label %}
     
    8686
    8787            {% block search_price_max %}
    88                 {% if not hide_price_max|default %}
     88                {% if not atts.hide_price_max|default %}
    8989                    <div class="form-group {{ col_class }}">
    9090                        {% block search_price_max_label %}
     
    9898                {% endif %}
    9999            {% endblock %}
     100            {% block search_price_on_request %}
     101                {% if search.price_on_request is defined %}
     102                    <input type="hidden" id="price_on_request" name="nsearch[price_on_request]" value="{{ search.price_on_request }}">
     103                {% endif %}
     104            {% endblock %}
     105            {% block search_featured %}
     106                {% if search.featured is defined %}
     107                    <input type="hidden" id="featured" name="nsearch[featured]" value="{{ search.featured }}">
     108                {% endif %}
     109            {% endblock %}
    100110
    101111            {% block search_rooms %}
    102                 {% if not hide_rooms|default %}
     112                {% if not atts.hide_rooms|default %}
    103113                    <div class="form-group {{ col_class }}">
    104114                        {% block search_rooms_label %}
     
    122132
    123133            {% block search_area_min %}
    124                 {% if not hide_area_min|default %}
     134                {% if not atts.hide_area_min|default %}
    125135                    <div class="form-group {{ col_class }}">
    126136                        {% block search_area_min_label %}
     
    137147
    138148            {% block search_submit %}
    139                 {% if not hide_submit|default %}
     149                {% if not atts.hide_submit|default %}
    140150                    <div class="form-group {{ col_class }}">
    141151                        {% block search_submit_button %}
  • immotoolbox-connect/trunk/readme.md

    r2937465 r2939285  
    66Tested up to: 6.2
    77Requires PHP: 5.9
    8 Stable tag: 1.3.1
     8Stable tag: 1.3.2
    99License: GPL3
    1010License URI: https://www.gnu.org/licenses/gpl.html
  • immotoolbox-connect/trunk/readme.txt

    r2937465 r2939285  
    66Tested up to: 6.2
    77Requires PHP: 5.9
    8 Stable tag: 1.3.1
     8Stable tag: 1.3.2
    99License: GPL3
    1010License URI: https://www.gnu.org/licenses/gpl.html
Note: See TracChangeset for help on using the changeset viewer.