Changeset 2746279
- Timestamp:
- 06/22/2022 08:29:50 AM (4 years ago)
- Location:
- immotoolbox-connect/trunk
- Files:
-
- 6 edited
-
admin/js/block.js (modified) (12 diffs)
-
immotoolbox-connect.php (modified) (2 diffs)
-
includes/ITBConnectAPI.php (modified) (2 diffs)
-
public/ITBConnectPublic.php (modified) (3 diffs)
-
readme.md (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
immotoolbox-connect/trunk/admin/js/block.js
r2118203 r2746279 55 55 }, 56 56 featured: { 57 type: 'string' 58 }, 59 ids: { 60 type: 'string' 61 }, 62 nids: { 57 63 type: 'string' 58 64 }, … … 149 155 label: i18n.__("Featured properties", "immotoolbox-connect"), 150 156 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 } ) }, 151 173 } 152 174 ), … … 244 266 props.attributes.area_min?el("span", {className: "itbconnect_label"}, i18n.__("Min. area", "immotoolbox-connect")+" : "+props.attributes.area_min):null, 245 267 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, 246 270 props.attributes.agency?el("span", {className: "itbconnect_label"}, i18n.__("Agency", "immotoolbox-connect")+" : "+props.attributes.agency):null, 247 271 ] … … 306 330 if (props.attributes.area_min) code+=' area_min="'+props.attributes.area_min+'"'; 307 331 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+'"'; 308 334 if (props.attributes.agency) code+=' agency="'+props.attributes.agency+'"'; 309 335 … … 369 395 featured: { 370 396 type: 'boolean' 397 }, 398 ids: { 399 type: 'string' 400 }, 401 nids: { 402 type: 'string' 403 }, 404 agency: { 405 type: 'string' 371 406 }, 372 407 }, … … 462 497 label: i18n.__("Featured properties", "immotoolbox-connect"), 463 498 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 } ) }, 464 531 } 465 532 ), … … 542 609 {}, 543 610 [ 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( 545 612 "li", 546 613 {className: "itbconnect_subvalues"}, … … 556 623 props.attributes.area_min?el("span", {className: "itbconnect_label"}, i18n.__("Min. area", "immotoolbox-connect")+" : "+props.attributes.area_min):null, 557 624 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, 558 627 props.attributes.agency?el("span", {className: "itbconnect_label"}, i18n.__("Agency", "immotoolbox-connect")+" : "+props.attributes.agency):null, 559 628 ] … … 619 688 if (props.attributes.area_min) code+=' area_min="'+props.attributes.area_min+'"'; 620 689 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+'"'; 621 692 if (props.attributes.agency) code+=' agency="'+props.attributes.agency+'"'; 622 693 … … 839 910 TextControl, 840 911 { 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 { 841 928 value: props.attributes.agency, 842 929 label: i18n.__("Agency ID", "immotoolbox-connect"), … … 908 995 props.attributes.area_min?el("span", {className: "itbconnect_label"}, i18n.__("Min. area", "immotoolbox-connect")+" : "+props.attributes.area_min):null, 909 996 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, 910 999 props.attributes.agency?el("span", {className: "itbconnect_label"}, i18n.__("Agency", "immotoolbox-connect")+" : "+props.attributes.agency):null, 911 1000 ] … … 986 1075 code+=' featured="1"'; 987 1076 } 1077 if (props.attributes.ids) { 1078 code+=' ids="1"'; 1079 } 1080 if (props.attributes.nids) { 1081 code+=' nids="1"'; 1082 } 988 1083 if (props.attributes.agency) { 989 1084 code+=' agency="'+props.attributes.agency+'"'; -
immotoolbox-connect/trunk/immotoolbox-connect.php
r2725455 r2746279 4 4 Plugin URI: https://www.immotoolbox.com/ 5 5 Description: Displays ImmoToolBox real estate listings in your website 6 Version: 1.2.2 26 Version: 1.2.23 7 7 Author: ZebraSoft Monaco 8 8 Author URI: https://www.zebrasoft.mc … … 24 24 along with ImmoToolBox Connect. If not, see https://www.gnu.org/licenses/gpl.html. 25 25 */ 26 define('ITBCONNECT_VERSION', '1.2.2 2');26 define('ITBCONNECT_VERSION', '1.2.23'); 27 27 28 28 /** -
immotoolbox-connect/trunk/includes/ITBConnectAPI.php
r2634712 r2746279 19 19 $get['type_transaction'] = $atts['type']; 20 20 } 21 if (!empty($atts['ids'])) {22 $get['ids'] = $atts['ids'];23 }24 21 if (!empty($atts['country'])) { 25 22 if (is_array($atts['country'])) { … … 116 113 if (!empty($atts['featured'])) { 117 114 $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']; 118 121 } 119 122 -
immotoolbox-connect/trunk/public/ITBConnectPublic.php
r2725455 r2746279 298 298 'district' => '', 299 299 'featured' => false, 300 'ids' => '', 301 'nids' => '', 300 302 'locale' => get_locale(), 301 303 'nbpp' => $option['nbpp'], … … 326 328 $get['featured'] = 1; 327 329 } 330 if ($args['ids']) { 331 $get['ids'] = $args['ids']; 332 } 333 if ($args['nids']) { 334 $get['nids'] = $args['nids']; 335 } 328 336 329 337 $headers = [ … … 374 382 { 375 383 if (version_compare('5.6', phpversion()) > 0) return ''; 376 384 if (is_admin()) { 385 return; 386 } 377 387 $option = get_option(ITBCONNECT_OPTION_NAME, array()); 378 388 $selection = isset($_COOKIE['itbconnect_selection'])&&@unserialize($_COOKIE['itbconnect_selection'])?unserialize($_COOKIE['itbconnect_selection']):[]; -
immotoolbox-connect/trunk/readme.md
r2725455 r2746279 6 6 Tested up to: 5.9 7 7 Requires PHP: 5.9 8 Stable tag: 1.2.2 28 Stable tag: 1.2.23 9 9 License: GPL3 10 10 License URI: https://www.gnu.org/licenses/gpl.html -
immotoolbox-connect/trunk/readme.txt
r2725455 r2746279 6 6 Tested up to: 5.9 7 7 Requires PHP: 5.9 8 Stable tag: 1.2.2 28 Stable tag: 1.2.23 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.