Plugin Directory

Changeset 2746279


Ignore:
Timestamp:
06/22/2022 08:29:50 AM (4 years ago)
Author:
zebrasoft
Message:

Update for 1.2.23

Location:
immotoolbox-connect/trunk
Files:
6 edited

Legend:

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

    r2118203 r2746279  
    5555        },
    5656        featured: {
     57            type: 'string'
     58        },
     59        ids: {
     60            type: 'string'
     61        },
     62        nids: {
    5763            type: 'string'
    5864        },
     
    149155                                    label: i18n.__("Featured properties", "immotoolbox-connect"),
    150156                                    onChange: function (newValue) { props.setAttributes( { featured: newValue } ) },
     157                                }
     158                            ),
     159                            el(
     160                                TextControl,
     161                                {
     162                                    value: props.attributes.ids,
     163                                    label: i18n.__("IDs of property to display", "immotoolbox-connect"),
     164                                    onChange: function (newValue) { props.setAttributes( { ids: newValue } ) },
     165                                }
     166                            ),
     167                            el(
     168                                TextControl,
     169                                {
     170                                    value: props.attributes.nids,
     171                                    label: i18n.__("IDs of property to exclude", "immotoolbox-connect"),
     172                                    onChange: function (newValue) { props.setAttributes( { nids: newValue } ) },
    151173                                }
    152174                            ),
     
    244266                                        props.attributes.area_min?el("span", {className: "itbconnect_label"}, i18n.__("Min. area", "immotoolbox-connect")+" : "+props.attributes.area_min):null,
    245267                                        props.attributes.featured?el("span", {className: "itbconnect_label"}, i18n.__("Featured properties", "immotoolbox-connect")):null,
     268                                        props.attributes.ids?el("span", {className: "itbconnect_label"}, i18n.__("IDs of properties to display", "immotoolbox-connect")):null,
     269                                        props.attributes.nids?el("span", {className: "itbconnect_label"}, i18n.__("IDs of properties to exclude", "immotoolbox-connect")):null,
    246270                                        props.attributes.agency?el("span", {className: "itbconnect_label"}, i18n.__("Agency", "immotoolbox-connect")+" : "+props.attributes.agency):null,
    247271                                    ]
     
    306330    if (props.attributes.area_min) code+=' area_min="'+props.attributes.area_min+'"';
    307331    if (props.attributes.featured) code+=' featured="1"';
     332    if (props.attributes.ids) code+=' ids="'+props.attributes.ids+'"';
     333    if (props.attributes.nids) code+=' nids="'+props.attributes.nids+'"';
    308334    if (props.attributes.agency) code+=' agency="'+props.attributes.agency+'"';
    309335
     
    369395        featured: {
    370396            type: 'boolean'
     397        },
     398        ids: {
     399            type: 'string'
     400        },
     401        nids: {
     402            type: 'string'
     403        },
     404        agency: {
     405            type: 'string'
    371406        },
    372407    },
     
    462497                                    label: i18n.__("Featured properties", "immotoolbox-connect"),
    463498                                    onChange: function (newValue) { props.setAttributes( { featured: newValue } ) },
     499                                }
     500                            ),
     501                            el(
     502                                TextControl,
     503                                {
     504                                    value: props.attributes.ids,
     505                                    label: i18n.__("IDs of property to display", "immotoolbox-connect"),
     506                                    onChange: function (newValue) { props.setAttributes( { ids: newValue } ) },
     507                                }
     508                            ),
     509                            el(
     510                                TextControl,
     511                                {
     512                                    value: props.attributes.nids,
     513                                    label: i18n.__("IDs of property to exclude", "immotoolbox-connect"),
     514                                    onChange: function (newValue) { props.setAttributes( { nids: newValue } ) },
     515                                }
     516                            ),
     517                            el(
     518                                TextControl,
     519                                {
     520                                    value: props.attributes.ids,
     521                                    label: i18n.__("IDs of property to display", "immotoolbox-connect"),
     522                                    onChange: function (newValue) { props.setAttributes( { ids: newValue } ) },
     523                                }
     524                            ),
     525                            el(
     526                                TextControl,
     527                                {
     528                                    value: props.attributes.nids,
     529                                    label: i18n.__("IDs of property to exclude", "immotoolbox-connect"),
     530                                    onChange: function (newValue) { props.setAttributes( { nids: newValue } ) },
    464531                                }
    465532                            ),
     
    542609                            {},
    543610                            [
    544                                 (props.attributes.type||props.attributes.country||props.attributes.city||props.attributes.district||props.attributes.building||props.attributes.rooms||props.attributes.price_max||props.attributes.area_min||props.attributes.featured||props.attributes.agency)?el(
     611                                (props.attributes.type||props.attributes.country||props.attributes.city||props.attributes.district||props.attributes.building||props.attributes.rooms||props.attributes.price_max||props.attributes.area_min||props.attributes.featured||props.attributes.ids||props.attributes.nids||props.attributes.agency)?el(
    545612                                    "li",
    546613                                    {className: "itbconnect_subvalues"},
     
    556623                                        props.attributes.area_min?el("span", {className: "itbconnect_label"}, i18n.__("Min. area", "immotoolbox-connect")+" : "+props.attributes.area_min):null,
    557624                                        props.attributes.featured?el("span", {className: "itbconnect_label"}, i18n.__("Featured properties", "immotoolbox-connect")):null,
     625                                        props.attributes.ids?el("span", {className: "itbconnect_label"}, i18n.__("IDs of properties to display", "immotoolbox-connect")):null,
     626                                        props.attributes.nids?el("span", {className: "itbconnect_label"}, i18n.__("IDs of properties to exclude", "immotoolbox-connect")):null,
    558627                                        props.attributes.agency?el("span", {className: "itbconnect_label"}, i18n.__("Agency", "immotoolbox-connect")+" : "+props.attributes.agency):null,
    559628                                    ]
     
    619688    if (props.attributes.area_min) code+=' area_min="'+props.attributes.area_min+'"';
    620689    if (props.attributes.featured) code+=' featured="'+props.attributes.featured+'"';
     690    if (props.attributes.ids) code+=' ids="'+props.attributes.ids+'"';
     691    if (props.attributes.nids) code+=' nids="'+props.attributes.nids+'"';
    621692    if (props.attributes.agency) code+=' agency="'+props.attributes.agency+'"';
    622693
     
    839910                                        TextControl,
    840911                                        {
     912                                            value: props.attributes.ids,
     913                                            label: i18n.__("IDs of property to display", "immotoolbox-connect"),
     914                                            onChange: function (newValue) { props.setAttributes( { ids: newValue } ) },
     915                                        }
     916                                    ),
     917                                    el(
     918                                        TextControl,
     919                                        {
     920                                            value: props.attributes.nids,
     921                                            label: i18n.__("IDs of property to exclude", "immotoolbox-connect"),
     922                                            onChange: function (newValue) { props.setAttributes( { nids: newValue } ) },
     923                                        }
     924                                    ),
     925                                    el(
     926                                        TextControl,
     927                                        {
    841928                                            value: props.attributes.agency,
    842929                                            label: i18n.__("Agency ID", "immotoolbox-connect"),
     
    908995                                        props.attributes.area_min?el("span", {className: "itbconnect_label"}, i18n.__("Min. area", "immotoolbox-connect")+" : "+props.attributes.area_min):null,
    909996                                        props.attributes.featured?el("span", {className: "itbconnect_label"}, i18n.__("Featured", "immotoolbox-connect")):null,
     997                                        props.attributes.ids?el("span", {className: "itbconnect_label"}, i18n.__("IDs of properties to display", "immotoolbox-connect")):null,
     998                                        props.attributes.nids?el("span", {className: "itbconnect_label"}, i18n.__("IDs of properties to exclude", "immotoolbox-connect")):null,
    910999                                        props.attributes.agency?el("span", {className: "itbconnect_label"}, i18n.__("Agency", "immotoolbox-connect")+" : "+props.attributes.agency):null,
    9111000                                    ]
     
    9861075        code+=' featured="1"';
    9871076    }
     1077    if (props.attributes.ids) {
     1078        code+=' ids="1"';
     1079    }
     1080    if (props.attributes.nids) {
     1081        code+=' nids="1"';
     1082    }
    9881083    if (props.attributes.agency) {
    9891084        code+=' agency="'+props.attributes.agency+'"';
  • immotoolbox-connect/trunk/immotoolbox-connect.php

    r2725455 r2746279  
    44Plugin URI: https://www.immotoolbox.com/
    55Description: Displays ImmoToolBox real estate listings in your website
    6 Version: 1.2.22
     6Version: 1.2.23
    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.2.22');
     26define('ITBCONNECT_VERSION', '1.2.23');
    2727
    2828/**
  • immotoolbox-connect/trunk/includes/ITBConnectAPI.php

    r2634712 r2746279  
    1919            $get['type_transaction'] = $atts['type'];
    2020        }
    21         if (!empty($atts['ids'])) {
    22             $get['ids'] = $atts['ids'];
    23         }
    2421        if (!empty($atts['country'])) {
    2522            if (is_array($atts['country'])) {
     
    116113        if (!empty($atts['featured'])) {
    117114            $get['featured'] = 1;
     115        }
     116        if (!empty($atts['ids'])) {
     117            $get['ids'] = $atts['ids'];
     118        }
     119        if (!empty($atts['nids'])) {
     120            $get['nids'] = $atts['nids'];
    118121        }
    119122
  • immotoolbox-connect/trunk/public/ITBConnectPublic.php

    r2725455 r2746279  
    298298            'district' => '',
    299299            'featured' => false,
     300            'ids' => '',
     301            'nids' => '',
    300302            'locale' => get_locale(),
    301303            'nbpp' => $option['nbpp'],
     
    326328            $get['featured'] = 1;
    327329        }
     330        if ($args['ids']) {
     331            $get['ids'] = $args['ids'];
     332        }
     333        if ($args['nids']) {
     334            $get['nids'] = $args['nids'];
     335        }
    328336
    329337        $headers = [
     
    374382    {
    375383        if (version_compare('5.6', phpversion()) > 0) return '';
    376 
     384        if (is_admin()) {
     385            return;
     386        }
    377387        $option = get_option(ITBCONNECT_OPTION_NAME, array());
    378388        $selection = isset($_COOKIE['itbconnect_selection'])&&@unserialize($_COOKIE['itbconnect_selection'])?unserialize($_COOKIE['itbconnect_selection']):[];
  • immotoolbox-connect/trunk/readme.md

    r2725455 r2746279  
    66Tested up to: 5.9
    77Requires PHP: 5.9
    8 Stable tag: 1.2.22
     8Stable tag: 1.2.23
    99License: GPL3
    1010License URI: https://www.gnu.org/licenses/gpl.html
  • immotoolbox-connect/trunk/readme.txt

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