Changeset 2939285
- Timestamp:
- 07/17/2023 07:21:59 AM (3 years ago)
- Location:
- immotoolbox-connect/trunk
- Files:
-
- 6 edited
-
admin/js/block.js (modified) (11 diffs)
-
immotoolbox-connect.php (modified) (2 diffs)
-
public/ITBConnectPublic.php (modified) (2 diffs)
-
public/partials/base/search.html.twig (modified) (7 diffs)
-
readme.md (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
immotoolbox-connect/trunk/admin/js/block.js
r2930754 r2939285 67 67 }, 68 68 nids: { 69 type: 'string' 70 }, 71 agency: { 69 72 type: 'string' 70 73 }, … … 280 283 {}, 281 284 [ 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( 283 286 "li", 284 287 {className: "itbconnect_subvalues"}, … … 556 559 label: i18n.__("Featured properties", "immotoolbox-connect"), 557 560 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 } ) },574 561 } 575 562 ), … … 782 769 type: 'string' 783 770 }, 771 hide_type: { 772 type: 'boolean', 773 }, 784 774 hide_country: { 785 775 type: 'boolean' … … 791 781 type: 'boolean' 792 782 }, 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 }, 794 795 type: { 795 796 type: 'string' … … 805 806 }, 806 807 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: { 807 841 type: 'string' 808 842 }, … … 846 880 }, 847 881 [ 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 ), 848 890 el( 849 891 ToggleControl, … … 1062 1104 {}, 1063 1105 [ 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( 1065 1107 "li", 1066 1108 {className: "itbconnect_subvalues"}, … … 1071 1113 props.attributes.hide_city?el("span", {className: "itbconnect_label"}, i18n.__("City", "immotoolbox-connect")):null, 1072 1114 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, 1074 1116 props.attributes.hide_rooms?el("span", {className: "itbconnect_label"}, i18n.__("Nb. rooms", "immotoolbox-connect")):null, 1075 1117 props.attributes.hide_area_min?el("span", {className: "itbconnect_label"}, i18n.__("Min. area", "immotoolbox-connect")):null, … … 1134 1176 code+=' format="'+props.attributes.format+'"'; 1135 1177 } 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"'; 1145 1182 if (props.attributes.hide_type) code+=' hide_type="1"'; 1146 1183 if (props.attributes.hide_price_max) code+=' hide_price_max="1"'; … … 1183 1220 } 1184 1221 if (props.attributes.ids) { 1185 code+=' ids=" 1"';1222 code+=' ids="'+props.attributes.ids+'"'; 1186 1223 } 1187 1224 if (props.attributes.nids) { 1188 code+=' nids=" 1"';1225 code+=' nids="'+props.attributes.nids+'"'; 1189 1226 } 1190 1227 if (props.attributes.agency) { -
immotoolbox-connect/trunk/immotoolbox-connect.php
r2937465 r2939285 4 4 Plugin URI: https://www.immotoolbox.com/ 5 5 Description: Displays ImmoToolBox real estate listings in your website 6 Version: 1.3. 16 Version: 1.3.2 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.3. 1');26 define('ITBCONNECT_VERSION', '1.3.2'); 27 27 28 28 /** -
immotoolbox-connect/trunk/public/ITBConnectPublic.php
r2937465 r2939285 486 486 if (!empty($atts['area_min'])) $search['area_min'] = $atts['area_min']; 487 487 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']; 488 490 489 491 $data_view['search'] = $search; … … 513 515 } 514 516 $option = get_option(ITBCONNECT_OPTION_NAME, array()); 517 515 518 $searchresults_page_id = empty($atts['searchresults_page_id'])?$option['searchresults_page_id']:$atts['searchresults_page_id']; 516 519 if (!$searchresults_page_id) return ''; -
immotoolbox-connect/trunk/public/partials/base/search.html.twig
r2747456 r2939285 24 24 25 25 {% 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 }}"> 28 28 {% block search_city_label %} 29 29 <label for="city">{{ __("City", "immotoolbox-connect") }} {{ locale }}</label> … … 45 45 </select> 46 46 {% endblock %} 47 {% endif %}48 </div>47 </div> 48 {% endif %} 49 49 {% endblock %} 50 50 {% 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 }}"> 53 53 {% block search_district_label %} 54 54 <label for="district">{{ __("district", "immotoolbox-connect") }} {{ locale }}</label> … … 64 64 </select> 65 65 {% endblock %} 66 {% endif %}67 </div>66 </div> 67 {% endif %} 68 68 {% endblock %} 69 69 {% block search_type %} 70 {% if not hide_type|default %}70 {% if not atts.hide_type|default %} 71 71 <div class="form-group {{ col_class }}"> 72 72 {% block search_type_label %} … … 86 86 87 87 {% block search_price_max %} 88 {% if not hide_price_max|default %}88 {% if not atts.hide_price_max|default %} 89 89 <div class="form-group {{ col_class }}"> 90 90 {% block search_price_max_label %} … … 98 98 {% endif %} 99 99 {% 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 %} 100 110 101 111 {% block search_rooms %} 102 {% if not hide_rooms|default %}112 {% if not atts.hide_rooms|default %} 103 113 <div class="form-group {{ col_class }}"> 104 114 {% block search_rooms_label %} … … 122 132 123 133 {% block search_area_min %} 124 {% if not hide_area_min|default %}134 {% if not atts.hide_area_min|default %} 125 135 <div class="form-group {{ col_class }}"> 126 136 {% block search_area_min_label %} … … 137 147 138 148 {% block search_submit %} 139 {% if not hide_submit|default %}149 {% if not atts.hide_submit|default %} 140 150 <div class="form-group {{ col_class }}"> 141 151 {% block search_submit_button %} -
immotoolbox-connect/trunk/readme.md
r2937465 r2939285 6 6 Tested up to: 6.2 7 7 Requires PHP: 5.9 8 Stable tag: 1.3. 18 Stable tag: 1.3.2 9 9 License: GPL3 10 10 License URI: https://www.gnu.org/licenses/gpl.html -
immotoolbox-connect/trunk/readme.txt
r2937465 r2939285 6 6 Tested up to: 6.2 7 7 Requires PHP: 5.9 8 Stable tag: 1.3. 18 Stable tag: 1.3.2 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.