Version Description
Released on 20 April 2021 =
New: support for WooCommerce 5.2
Update: YITH plugin framework
Update: language files
Tweak: better handle multiple filters for the same taxonomy in the same preset
Tweak: prevent redirect to product page when filtering a search page and getting a single result
Tweak: added base url for filtering operation
Tweak: improved performance by optimizing tax_query array
Tweak: avoid unnecessary queries to post when just want to list presets
Tweak: added new transient yith_wcan_object_in_terms to improve performance
Tweak: execute legacy post processing only when old widgets are active
Tweak: improved WPML compatibility for presets
Tweak: added pagination to preset edit page
Fix: possible error with PHP older than 7.x
Fix: prevent system from removing original page querystring, when clearing filters
Fix: correctly remove taxonomy parameters after disabling filter on frontend
Fix: add visibility query to plugins tax_query
Dev: added yith_wcan_filter_reset_button_class hook to filter reset button class
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Ajax Product Filter |
Version | 4.0.3 |
Comparing to | |
See all releases |
Code changes from version 4.0.2 to 4.0.3
- README.txt +24 -4
- assets/css/admin.css +56 -4
- assets/css/admin.css.map +1 -1
- assets/js/yith-wcan-admin-filters.js +181 -16
- assets/js/yith-wcan-admin-filters.min.js +1 -1
- assets/js/yith-wcan-shortcodes.js +192 -25
- assets/js/yith-wcan-shortcodes.min.js +1 -1
- assets/scss/admin.scss +25 -2
- includes/class.yith-wcan-admin.php +15 -5
- includes/class.yith-wcan-filter.php +10 -1
- includes/class.yith-wcan-frontend.php +93 -49
- includes/class.yith-wcan-preset-factory.php +16 -0
- includes/class.yith-wcan-preset.php +53 -3
- includes/class.yith-wcan-presets.php +45 -5
- includes/class.yith-wcan-query.php +140 -12
- includes/class.yith-wcan.php +11 -2
- includes/compatibility/plugins/wpml/wpml.php +271 -0
- includes/data-stores/class.yith-wcan-preset-data-store.php +27 -0
- includes/elementor/class.yith-wcan-elementor-filters.php +6 -9
- includes/filters/class.yith-wcan-filter-tax.php +9 -0
- includes/shortcodes/class.yith-wcan-shortcode-filters.php +6 -9
- includes/widgets/class.yith-wcan-filters-widget.php +6 -6
- includes/widgets/class.yith-wcan-navigation-widget.php +1 -1
- init.php +3 -3
- languages/yith-woocommerce-ajax-navigation-de_DE.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-de_DE.po +64 -50
- languages/yith-woocommerce-ajax-navigation-de_DE_formal.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-de_DE_formal.po +64 -50
- languages/yith-woocommerce-ajax-navigation-el.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-el.po +64 -50
- languages/yith-woocommerce-ajax-navigation-es_ES.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-es_ES.po +64 -50
- languages/yith-woocommerce-ajax-navigation-fr_FR.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-fr_FR.po +59 -48
- languages/yith-woocommerce-ajax-navigation-it_IT.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-it_IT.po +62 -48
- languages/yith-woocommerce-ajax-navigation-nl_NL.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-nl_NL.po +63 -49
- languages/yith-woocommerce-ajax-navigation-tr_TR.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-tr_TR.po +61 -49
- languages/yith-woocommerce-ajax-navigation.pot +55 -48
- plugin-fw/assets/css/yith-fields.css +14 -7
- plugin-fw/assets/css/yith-icon.css +24 -4
- plugin-fw/assets/fonts/yith-icon.eot +0 -0
- plugin-fw/assets/fonts/yith-icon.ttf +0 -0
- plugin-fw/assets/fonts/yith-icon.woff2 +0 -0
- plugin-fw/assets/js/metabox.js +37 -30
- plugin-fw/assets/js/metabox.min.js +1 -1
- plugin-fw/assets/js/yit-plugin-panel.js +10 -17
- plugin-fw/assets/js/yit-plugin-panel.min.js +1 -1
- plugin-fw/assets/js/yith-fields.js +10 -7
- plugin-fw/assets/js/yith-fields.min.js +1 -1
- plugin-fw/dist/gutenberg/index.asset.php +1 -1
- plugin-fw/dist/gutenberg/index.js +1 -1
- plugin-fw/dist/gutenberg/style-index.css +1 -1
- plugin-fw/includes/builders/elementor/class-yith-elementor-widget.php +23 -7
- plugin-fw/init.php +2 -2
- plugin-fw/languages/yith-plugin-fw-el.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-el.po +1 -1
- plugin-fw/languages/yith-plugin-fw-es_ES.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-es_ES.po +5 -5
- plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-it_IT.po +4 -4
- plugin-fw/languages/yith-plugin-fw-nl_NL.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-nl_NL.po +4 -4
- plugin-fw/languages/yith-plugin-fw.pot +1 -1
- plugin-options/filter-options.php +2 -2
- templates/admin/preset-edit.php +3 -1
- templates/admin/preset-filters.php +13 -1
- templates/admin/preset-load-more-filters.php +20 -0
- templates/filters/global/reset-filters.php +2 -1
- wpml-config.xml +22 -0
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 5.7
|
7 |
-
Stable tag: 4.0.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -35,7 +35,7 @@ You can create unlimited presets and show the filters on standard WooCommerce pa
|
|
35 |
* Choose the ordering of the terms
|
36 |
* Choose whether to show terms hierarchy or not
|
37 |
* Allow multiple selections (with AND or OR) or not
|
38 |
-
*
|
39 |
* Show a “Reset Filters” button
|
40 |
* Scroll-to-top option in mobile devices and/or desktop
|
41 |
* SEO options (Activate/deactivate the indexing of the generated URLs in search engines for the filter operation of the plugin) (New!)
|
@@ -62,7 +62,7 @@ With the latest update, we have improved the UX and added significant features t
|
|
62 |
* Show an optional tooltip on hover for terms
|
63 |
* Show filters as a toggle (opened or collapsed by default)
|
64 |
* Show or hide the count of items
|
65 |
-
*
|
66 |
* Choose to hide empty terms and out of stock products automatically
|
67 |
* Customize colors and style of filters area through the dedicated “customization” tab (colors, color swatches size, select and checkbox type, etc.)
|
68 |
* Upload a custom loader
|
@@ -87,7 +87,7 @@ And if you love it, get it!
|
|
87 |
|
88 |
== Frequently Asked Questions ==
|
89 |
|
90 |
-
= I’m using YITH AJAX Product
|
91 |
Widgets will continue to work with the 4.x version, and we will continue to support them in the upcoming plugin versions. We encourage you to give the Preset system a try and, if you like it, to switch from widgets to Presets (we even included a tool to help you transition to the new system)
|
92 |
We will eventually deprecate old widgets, but we will make sure to notify everyone before this happens :)
|
93 |
|
@@ -152,6 +152,26 @@ If none of the previous listed actions helps you solve the problem, then, submit
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 4.0.2 - Released on 10 March 2021 =
|
156 |
|
157 |
* New: support for WordPress 5.7
|
4 |
Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
|
5 |
Requires at least: 5.3
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 4.0.3
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
35 |
* Choose the ordering of the terms
|
36 |
* Choose whether to show terms hierarchy or not
|
37 |
* Allow multiple selections (with AND or OR) or not
|
38 |
+
* Adoptive filtering: terms not available will be hidden
|
39 |
* Show a “Reset Filters” button
|
40 |
* Scroll-to-top option in mobile devices and/or desktop
|
41 |
* SEO options (Activate/deactivate the indexing of the generated URLs in search engines for the filter operation of the plugin) (New!)
|
62 |
* Show an optional tooltip on hover for terms
|
63 |
* Show filters as a toggle (opened or collapsed by default)
|
64 |
* Show or hide the count of items
|
65 |
+
* Adoptive filtering: choose whether terms not available must be hidden (as in the free version) **or keep them visible but not clickable (only in premium)**
|
66 |
* Choose to hide empty terms and out of stock products automatically
|
67 |
* Customize colors and style of filters area through the dedicated “customization” tab (colors, color swatches size, select and checkbox type, etc.)
|
68 |
* Upload a custom loader
|
87 |
|
88 |
== Frequently Asked Questions ==
|
89 |
|
90 |
+
= I’m using YITH AJAX Product Filter widgets in my sidebar; can I continue to use them, or shall I switch to preset? =
|
91 |
Widgets will continue to work with the 4.x version, and we will continue to support them in the upcoming plugin versions. We encourage you to give the Preset system a try and, if you like it, to switch from widgets to Presets (we even included a tool to help you transition to the new system)
|
92 |
We will eventually deprecate old widgets, but we will make sure to notify everyone before this happens :)
|
93 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 4.0.3 - Released on 20 April 2021 =
|
156 |
+
|
157 |
+
* New: support for WooCommerce 5.2
|
158 |
+
* Update: YITH plugin framework
|
159 |
+
* Update: language files
|
160 |
+
* Tweak: better handle multiple filters for the same taxonomy in the same preset
|
161 |
+
* Tweak: prevent redirect to product page when filtering a search page and getting a single result
|
162 |
+
* Tweak: added base url for filtering operation
|
163 |
+
* Tweak: improved performance by optimizing tax_query array
|
164 |
+
* Tweak: avoid unnecessary queries to post when just want to list presets
|
165 |
+
* Tweak: added new transient yith_wcan_object_in_terms to improve performance
|
166 |
+
* Tweak: execute legacy post processing only when old widgets are active
|
167 |
+
* Tweak: improved WPML compatibility for presets
|
168 |
+
* Tweak: added pagination to preset edit page
|
169 |
+
* Fix: possible error with PHP older than 7.x
|
170 |
+
* Fix: prevent system from removing original page querystring, when clearing filters
|
171 |
+
* Fix: correctly remove taxonomy parameters after disabling filter on frontend
|
172 |
+
* Fix: add visibility query to plugins tax_query
|
173 |
+
* Dev: added yith_wcan_filter_reset_button_class hook to filter reset button class
|
174 |
+
|
175 |
= 4.0.2 - Released on 10 March 2021 =
|
176 |
|
177 |
* New: support for WordPress 5.7
|
@@ -11,8 +11,8 @@
|
|
11 |
padding: 50px;
|
12 |
}
|
13 |
#yith_wcan_panel_filter-preset .yith-wcan-admin-no-post img {
|
14 |
-
width:
|
15 |
-
margin-bottom:
|
16 |
}
|
17 |
#yith_wcan_panel_filter-preset .yith-wcan-admin-no-post p span {
|
18 |
display: block;
|
@@ -69,6 +69,8 @@
|
|
69 |
}
|
70 |
#yith_wcan_panel_filter-preset .yith-plugin-fw-list-table-container table.wp-list-table tbody tr {
|
71 |
background: none;
|
|
|
|
|
72 |
box-shadow: 0 0 10px 0 rgba(167, 217, 236, 0.4);
|
73 |
}
|
74 |
#yith_wcan_panel_filter-preset .yith-plugin-fw-list-table-container table.wp-list-table tbody tr.yith-toggle-row {
|
@@ -230,8 +232,8 @@
|
|
230 |
padding: 50px;
|
231 |
}
|
232 |
#yith_wcan_panel_filter-preset-edit .yith-wcan-admin-no-post img {
|
233 |
-
width:
|
234 |
-
margin-bottom:
|
235 |
}
|
236 |
#yith_wcan_panel_filter-preset-edit .yith-wcan-admin-no-post p span {
|
237 |
display: block;
|
@@ -273,6 +275,8 @@
|
|
273 |
}
|
274 |
#yith_wcan_panel_filter-preset-edit .yith-toggle-row {
|
275 |
background: none;
|
|
|
|
|
276 |
box-shadow: 0 0 10px 0 rgba(167, 217, 236, 0.4);
|
277 |
cursor: default;
|
278 |
padding: 0;
|
@@ -572,6 +576,54 @@
|
|
572 |
background-color: #d3e4e8;
|
573 |
border-color: #c4cfd3;
|
574 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
575 |
|
576 |
/* === Widget Area === */
|
577 |
.yith_wcan_placeholder + .spinner {
|
11 |
padding: 50px;
|
12 |
}
|
13 |
#yith_wcan_panel_filter-preset .yith-wcan-admin-no-post img {
|
14 |
+
width: 90px;
|
15 |
+
margin-bottom: 15px;
|
16 |
}
|
17 |
#yith_wcan_panel_filter-preset .yith-wcan-admin-no-post p span {
|
18 |
display: block;
|
69 |
}
|
70 |
#yith_wcan_panel_filter-preset .yith-plugin-fw-list-table-container table.wp-list-table tbody tr {
|
71 |
background: none;
|
72 |
+
border: 1px solid #e0e0e0;
|
73 |
+
border-radius: 4px;
|
74 |
box-shadow: 0 0 10px 0 rgba(167, 217, 236, 0.4);
|
75 |
}
|
76 |
#yith_wcan_panel_filter-preset .yith-plugin-fw-list-table-container table.wp-list-table tbody tr.yith-toggle-row {
|
232 |
padding: 50px;
|
233 |
}
|
234 |
#yith_wcan_panel_filter-preset-edit .yith-wcan-admin-no-post img {
|
235 |
+
width: 90px;
|
236 |
+
margin-bottom: 15px;
|
237 |
}
|
238 |
#yith_wcan_panel_filter-preset-edit .yith-wcan-admin-no-post p span {
|
239 |
display: block;
|
275 |
}
|
276 |
#yith_wcan_panel_filter-preset-edit .yith-toggle-row {
|
277 |
background: none;
|
278 |
+
border: 1px solid #e0e0e0;
|
279 |
+
border-radius: 4px;
|
280 |
box-shadow: 0 0 10px 0 rgba(167, 217, 236, 0.4);
|
281 |
cursor: default;
|
282 |
padding: 0;
|
576 |
background-color: #d3e4e8;
|
577 |
border-color: #c4cfd3;
|
578 |
}
|
579 |
+
#yith_wcan_panel_filter-preset-edit .load-more-filters {
|
580 |
+
display: block;
|
581 |
+
font-weight: 700;
|
582 |
+
margin: 20px 0;
|
583 |
+
padding: 20px 15px;
|
584 |
+
text-align: center;
|
585 |
+
text-decoration: none;
|
586 |
+
background: none;
|
587 |
+
border: 1px solid #e0e0e0;
|
588 |
+
border-radius: 4px;
|
589 |
+
box-shadow: 0 0 10px 0 rgba(167, 217, 236, 0.4);
|
590 |
+
}
|
591 |
+
#yith_wcan_panel_filter-preset-edit .load-more-filters.yith-toggle-row {
|
592 |
+
border-radius: 4px;
|
593 |
+
border: 1px solid #e0e0e0;
|
594 |
+
}
|
595 |
+
#yith_wcan_panel_filter-preset-edit .load-more-filters td {
|
596 |
+
border-color: #e0e0e0;
|
597 |
+
border-width: 1px 0;
|
598 |
+
border-style: solid;
|
599 |
+
padding: 30px 25px;
|
600 |
+
}
|
601 |
+
#yith_wcan_panel_filter-preset-edit .load-more-filters td:first-child {
|
602 |
+
border-bottom-left-radius: 4px;
|
603 |
+
border-left-width: 1px;
|
604 |
+
border-top-left-radius: 4px;
|
605 |
+
}
|
606 |
+
#yith_wcan_panel_filter-preset-edit .load-more-filters td:last-child {
|
607 |
+
border-bottom-right-radius: 4px;
|
608 |
+
border-right-width: 1px;
|
609 |
+
border-top-right-radius: 4px;
|
610 |
+
}
|
611 |
+
#yith_wcan_panel_filter-preset-edit .load-more-filters:last-child td {
|
612 |
+
border-bottom: 1px solid #e0e0e0 !important;
|
613 |
+
}
|
614 |
+
#yith_wcan_panel_filter-preset-edit .load-more-filters:hover td,
|
615 |
+
#yith_wcan_panel_filter-preset-edit .load-more-filters .yith-toggle-title:hover {
|
616 |
+
background: #f0f6fb;
|
617 |
+
}
|
618 |
+
#yith_wcan_panel_filter-preset-edit .load-more-filters:hover {
|
619 |
+
background: #f0f6fb;
|
620 |
+
}
|
621 |
+
#yith_wcan_panel_filter-preset-edit #icl_div {
|
622 |
+
background-color: #f7f7f7;
|
623 |
+
padding: 20px 15px;
|
624 |
+
border-radius: 4px;
|
625 |
+
margin: 20px 0;
|
626 |
+
}
|
627 |
|
628 |
/* === Widget Area === */
|
629 |
.yith_wcan_placeholder + .spinner {
|
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sourceRoot":"","sources":["../scss/admin.scss"],"names":[],"mappings":"
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../scss/admin.scss"],"names":[],"mappings":"AAyGA;AAEA;EACC;;AAGA;AAAA;EAEC;;AAID;EA3GA;EACA;;AAEA;EACC;EACA;;AAGD;EACC;EACA;;AAEA;EACC;EACA;;AAIF;EACC;EACA;;AA4FD;EACC;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAKF;EACC;EACA;;AAEA;EACC;;AAGD;EACC;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAGD;EACC;EACA;;AAIA;EA1GH;EACA;EACA;EACA;;AAGA;EACC;EACA;;AAID;EACC,cAzEgB;EA0EhB;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;;AAIF;EACC;;AAGD;AAAA;EAEC,YAlGoB;;AA2KhB;EACC;;AAEA;EACC;;AAIF;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAKD;EACC;;AAEA;EA5KP;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC,OAvDI;EAwDJ;EACA;;AAyJK;EACC;EACA;;AAMF;EACC;;;AASP;AAEA;EACC;;AAEA;EACC;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAIF;EACC;EACA;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIF;EACC;;AAEA;EACC;;AAEA;EACC;EACA;;AAGD;EACC;EACA;EACA;;AAGD;EACC;EACA;;;AAOL;AAKC;EACC;EACA;EA9SD;EACA;;AAEA;EACC;EACA;;AAGD;EACC;EACA;;AAEA;EACC;EACA;;AAIF;EACC;EACA;;AAgSD;EACC;EACA;EACA;EACA;;AAID;EACC;EACA;;AAID;EACC;EACA;EACA;;AAID;EACC;EACA;;AAEA;EACC;EACA;;AAKF;EACC;;AAGD;EAlSA;EACA;EACA;EACA;EAkSC;EACA;EACA;EACA;;AAlSD;EACC;EACA;;AAID;EACC,cAzEgB;EA0EhB;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;;AAIF;EACC;;AAGD;AAAA;EAEC,YAlGoB;;AAuWpB;EACC;;AAGD;EACC;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC;EACA;EACA;;AAGD;EA7VF;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAGD;EACC;;AAGD;EACC,OAvDI;EAwDJ;EACA;;AAyUC;EACC;;AAGD;EACC;EACA;EACA;EACA;;AAIF;EACC;;AAEA;EACC;;AAGD;EACC;EACA;;AAGD;EACC;;AAGD;EACC;;AAGD;AAAA;EAEC;EACA;;AAEA;AAAA;AAAA;AAAA;EAEC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIA;AAAA;EACC;EACA;;AAGD;AAAA;EACC;EACA;;AAGD;AAAA;EACC;EACA;EACA;;AAGD;AAAA;EACC;EACA;;AAEA;AAAA;EACC;;AAGD;AAAA;EACC;EACA;EACA;;AAGD;AAAA;EACC;EACA;EACA;;AAGD;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;;AAIF;AAAA;EACC;EACA;;AAEA;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;EACC,OAhfF;EAifE;EACA;;AAMF;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;EACC;EACA;;AAGD;AAAA;EACC;EACA;EACA;EACA;;AAIF;AAAA;EACC;EACA;EACA;;AAEA;AAAA;EACC;EACA;;AAGD;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;AAAA;EACC,OAjjBH;;AAqjBC;AAAA;EACC;;AAOH;AAAA;EACC;EACA;;AAGD;AAAA;AAAA;EAEC;;AAGD;AAAA;EACC;;AAGD;AAAA;EACC;;AAGD;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;;AAEA;AAAA;EACC,OAxlBD;EAylBC;EACA;;AAQN;EACC,kBAlmBoB;EAmmBpB;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC,kBA1mByB;EA2mBzB,cA1mBqB;;AA8mBvB;EACC;EACA;EACA;EACA;EACA;EACA;EA1jBD;EACA;EACA;EACA;;AAGA;EACC;EACA;;AAID;EACC,cAzEgB;EA0EhB;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;;AAIF;EACC;;AAGD;AAAA;EAEC,YAlGoB;;AA0nBpB;EACC,YA3nBmB;;AA+nBrB;EACC;EACA;EACA;EACA;;;AAIF;AAEA;EACC;EACA;EACA;EACA;;;AAGD;EACC;;AAEA;EACC;;AAGD;EACC;;;AAIF;AAAA;AAAA;AAAA;AAAA;AAAA;EAMC;;;AAGD;EACC;;;AAGD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOC;;;AAGD;EACC;EACA;EACA;;;AAGD;AAGC;AAAA;EAEC;;AAEA;AAAA;EACC;;AAIF;EACC","file":"admin.css"}
|
@@ -79,19 +79,29 @@ function YITH_WCAN_Filters( $ ) {
|
|
79 |
|
80 |
// dom objects
|
81 |
|
|
|
|
|
82 |
self.$mainAddNewFilterButton = $( '#add_new_filter' );
|
83 |
|
84 |
self.$addNewFilterButtons = $( '.add-new-filter' );
|
85 |
|
|
|
|
|
86 |
self.$filtersContainer = $( '.preset-filters' );
|
87 |
|
88 |
self.$filters = self.$filtersContainer.find( '.yith-toggle-row' );
|
89 |
|
|
|
|
|
|
|
|
|
90 |
// init object
|
91 |
|
92 |
self.init = function () {
|
93 |
self.initFilters();
|
94 |
self.initAddFilter();
|
|
|
|
|
95 |
};
|
96 |
|
97 |
// init filters
|
@@ -106,6 +116,18 @@ function YITH_WCAN_Filters( $ ) {
|
|
106 |
} );
|
107 |
};
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
self.initFilters = function () {
|
110 |
// init filter drag & drop
|
111 |
self.initFiltersDragDrop();
|
@@ -232,9 +254,12 @@ function YITH_WCAN_Filters( $ ) {
|
|
232 |
|
233 |
$.get( ajaxurl, getAjaxParams( { term: '', all: 1 } ) ).then(
|
234 |
( data ) => {
|
235 |
-
const selected =
|
236 |
|
237 |
-
$termSearch
|
|
|
|
|
|
|
238 |
|
239 |
$.each( data, function ( i, v ) {
|
240 |
selected.push( i );
|
@@ -499,6 +524,98 @@ function YITH_WCAN_Filters( $ ) {
|
|
499 |
}
|
500 |
};
|
501 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
502 |
self.cloneFilter = function ( $filter ) {
|
503 |
self.closeAllFilters( () => {
|
504 |
const $newFilter = self.addFilter(),
|
@@ -628,6 +745,52 @@ function YITH_WCAN_Filters( $ ) {
|
|
628 |
} );
|
629 |
};
|
630 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
631 |
self.updateFilters = function () {
|
632 |
self.$filters = self.$filtersContainer.find( '.yith-toggle-row' );
|
633 |
};
|
@@ -1079,7 +1242,12 @@ function YITH_WCAN_Filters( $ ) {
|
|
1079 |
} );
|
1080 |
};
|
1081 |
|
1082 |
-
self.addRange = function (
|
|
|
|
|
|
|
|
|
|
|
1083 |
const newRangeTemplate = wp.template( 'yith-wcan-filter-range' ),
|
1084 |
newRange = newRangeTemplate( {
|
1085 |
id: self.getRowIndex( $filter ),
|
@@ -1089,6 +1257,13 @@ function YITH_WCAN_Filters( $ ) {
|
|
1089 |
} ),
|
1090 |
$newRange = $( newRange );
|
1091 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1092 |
$filter.find( '.ranges-wrapper' ).append( $newRange );
|
1093 |
|
1094 |
self.afterAddRange( $newRange );
|
@@ -1120,18 +1295,7 @@ function YITH_WCAN_Filters( $ ) {
|
|
1120 |
|
1121 |
self.ajaxSaveFilter = function ( $filter ) {
|
1122 |
const preset_id = self.getPresetId(),
|
1123 |
-
filter = self.
|
1124 |
-
$filter,
|
1125 |
-
function ( v ) {
|
1126 |
-
return v.replace( /filters\[[0-9]+]\[([a-z_-]+)]/, '$1' );
|
1127 |
-
},
|
1128 |
-
function ( i, v ) {
|
1129 |
-
if ( $( v ).is( 'select[name*="terms"]' ) ) {
|
1130 |
-
return false;
|
1131 |
-
}
|
1132 |
-
return true;
|
1133 |
-
}
|
1134 |
-
),
|
1135 |
filter_id = $filter.attr( 'id' ).replace( 'filter_', '' );
|
1136 |
|
1137 |
// send term order, to save terms in the correct sequence.
|
@@ -1207,7 +1371,8 @@ function YITH_WCAN_Filters( $ ) {
|
|
1207 |
if (
|
1208 |
emptyBox.length &&
|
1209 |
! emptyBox.is( ':visible' ) &&
|
1210 |
-
! items.length
|
|
|
1211 |
) {
|
1212 |
emptyBox.show();
|
1213 |
}
|
79 |
|
80 |
// dom objects
|
81 |
|
82 |
+
self.$form = $( '#plugin-fw-wc' );
|
83 |
+
|
84 |
self.$mainAddNewFilterButton = $( '#add_new_filter' );
|
85 |
|
86 |
self.$addNewFilterButtons = $( '.add-new-filter' );
|
87 |
|
88 |
+
self.$loadMoreFiltersButtons = $( '.load-more-filters' );
|
89 |
+
|
90 |
self.$filtersContainer = $( '.preset-filters' );
|
91 |
|
92 |
self.$filters = self.$filtersContainer.find( '.yith-toggle-row' );
|
93 |
|
94 |
+
self.$page = $( '#paged' );
|
95 |
+
|
96 |
+
self.$submit = $( '#submit' );
|
97 |
+
|
98 |
// init object
|
99 |
|
100 |
self.init = function () {
|
101 |
self.initFilters();
|
102 |
self.initAddFilter();
|
103 |
+
self.initLoadMoreFilters();
|
104 |
+
self.initSubmit();
|
105 |
};
|
106 |
|
107 |
// init filters
|
116 |
} );
|
117 |
};
|
118 |
|
119 |
+
self.initLoadMoreFilters = function () {
|
120 |
+
self.$loadMoreFiltersButtons.on( 'click', function ( ev ) {
|
121 |
+
ev.preventDefault();
|
122 |
+
|
123 |
+
self.loadMoreFilters();
|
124 |
+
} );
|
125 |
+
};
|
126 |
+
|
127 |
+
self.initSubmit = function () {
|
128 |
+
self.$submit.on( 'click', () => self.block( self.$form ) );
|
129 |
+
};
|
130 |
+
|
131 |
self.initFilters = function () {
|
132 |
// init filter drag & drop
|
133 |
self.initFiltersDragDrop();
|
254 |
|
255 |
$.get( ajaxurl, getAjaxParams( { term: '', all: 1 } ) ).then(
|
256 |
( data ) => {
|
257 |
+
const selected = $termSearch.val();
|
258 |
|
259 |
+
$termSearch
|
260 |
+
.find( 'option' )
|
261 |
+
.not( ':selected' )
|
262 |
+
.remove();
|
263 |
|
264 |
$.each( data, function ( i, v ) {
|
265 |
selected.push( i );
|
524 |
}
|
525 |
};
|
526 |
|
527 |
+
self.getFilterData = function ( $filter ) {
|
528 |
+
return self.serialize(
|
529 |
+
$filter,
|
530 |
+
( v ) => v.replace( /filters\[[0-9]+]\[([a-z_-]+)]/, '$1' ),
|
531 |
+
( i, v ) => ! $( v ).is( 'select[name*="terms"]' )
|
532 |
+
);
|
533 |
+
};
|
534 |
+
|
535 |
+
self.populateFilter = function ( $filter, filterData ) {
|
536 |
+
for ( const i in filterData ) {
|
537 |
+
const row_id = self.getRowIndex( $filter ),
|
538 |
+
nameId = `filters_${ row_id }_${ i }`,
|
539 |
+
$input = $filter.find( `#${ nameId }` ),
|
540 |
+
value = filterData[ i ];
|
541 |
+
|
542 |
+
if ( ! $input.length && 'price_ranges' !== i ) {
|
543 |
+
continue;
|
544 |
+
}
|
545 |
+
|
546 |
+
if ( 'terms' === i ) {
|
547 |
+
const terms = value;
|
548 |
+
if ( 'object' !== typeof terms ) {
|
549 |
+
continue;
|
550 |
+
}
|
551 |
+
|
552 |
+
for ( const j in terms ) {
|
553 |
+
if ( ! terms[ j ]?.label ) {
|
554 |
+
continue;
|
555 |
+
}
|
556 |
+
|
557 |
+
const newOption = $( '<option/>', {
|
558 |
+
value: j,
|
559 |
+
text: terms[ j ]?.label,
|
560 |
+
selected: true,
|
561 |
+
} );
|
562 |
+
|
563 |
+
$input.append( newOption );
|
564 |
+
}
|
565 |
+
|
566 |
+
// trigger change for the select
|
567 |
+
$input.change();
|
568 |
+
|
569 |
+
// update term boxes
|
570 |
+
self.updateTerms( $filter );
|
571 |
+
|
572 |
+
// populate options for each filter
|
573 |
+
for ( const j in terms ) {
|
574 |
+
for ( const k in terms[ j ] ) {
|
575 |
+
const termId = `${ nameId }_${ j }_${ k }`,
|
576 |
+
$termInput = $filter.find( `#${ termId }` );
|
577 |
+
|
578 |
+
if ( ! $termInput.length ) {
|
579 |
+
continue;
|
580 |
+
}
|
581 |
+
|
582 |
+
$termInput.val( terms[ j ][ k ] );
|
583 |
+
}
|
584 |
+
}
|
585 |
+
} else if ( 'price_ranges' === i ) {
|
586 |
+
const ranges = value;
|
587 |
+
|
588 |
+
if ( 'object' !== typeof ranges ) {
|
589 |
+
continue;
|
590 |
+
}
|
591 |
+
|
592 |
+
for ( const j in ranges ) {
|
593 |
+
const range = ranges[ j ];
|
594 |
+
|
595 |
+
self.addRange(
|
596 |
+
$filter,
|
597 |
+
range.min,
|
598 |
+
range.max,
|
599 |
+
range.unlimited
|
600 |
+
);
|
601 |
+
}
|
602 |
+
} else if ( $input.is( ':checkbox' ) ) {
|
603 |
+
$input.prop( 'checked', value === 'yes' ).change();
|
604 |
+
} else if ( $input.is( '[data-type="radio"]' ) ) {
|
605 |
+
$input
|
606 |
+
.find( ':input' )
|
607 |
+
.prop( 'checked', false )
|
608 |
+
.filter( '[value="' + value + '"]' )
|
609 |
+
.prop( 'checked', true )
|
610 |
+
.change();
|
611 |
+
} else if ( 'title' === i ) {
|
612 |
+
$input.val( filterData[ i ] ).keyup();
|
613 |
+
} else {
|
614 |
+
$input.val( filterData[ i ] ).change();
|
615 |
+
}
|
616 |
+
}
|
617 |
+
};
|
618 |
+
|
619 |
self.cloneFilter = function ( $filter ) {
|
620 |
self.closeAllFilters( () => {
|
621 |
const $newFilter = self.addFilter(),
|
745 |
} );
|
746 |
};
|
747 |
|
748 |
+
self.loadMoreFilters = function () {
|
749 |
+
let page = self.$page.val();
|
750 |
+
|
751 |
+
self.doAjax(
|
752 |
+
'yith_wcan_load_more_filters',
|
753 |
+
{
|
754 |
+
preset: self.getPresetId(),
|
755 |
+
page: ++page,
|
756 |
+
_wpnonce: yith_wcan_admin.nonce.load_more_filters,
|
757 |
+
},
|
758 |
+
self.$loadMoreFiltersButtons,
|
759 |
+
{
|
760 |
+
method: 'get',
|
761 |
+
}
|
762 |
+
).done( ( data ) => {
|
763 |
+
if ( !! data ) {
|
764 |
+
if ( data.filters ) {
|
765 |
+
for ( const i in data.filters ) {
|
766 |
+
const filterData = data.filters[ i ],
|
767 |
+
newFilterTemplate = wp.template(
|
768 |
+
'yith-wcan-filter'
|
769 |
+
),
|
770 |
+
newFilter = newFilterTemplate( {
|
771 |
+
id: i,
|
772 |
+
} ),
|
773 |
+
$newFilter = $( newFilter );
|
774 |
+
|
775 |
+
self.populateFilter( $newFilter, filterData );
|
776 |
+
self.$filtersContainer.append( $newFilter );
|
777 |
+
|
778 |
+
self.afterAddFilter( $newFilter );
|
779 |
+
$newFilter.find( '.heading-field' ).keyup();
|
780 |
+
}
|
781 |
+
}
|
782 |
+
|
783 |
+
if ( ! data.has_more ) {
|
784 |
+
self.$loadMoreFiltersButtons.remove();
|
785 |
+
self.$page.remove();
|
786 |
+
self.$page = null;
|
787 |
+
} else {
|
788 |
+
self.$page.val( page );
|
789 |
+
}
|
790 |
+
}
|
791 |
+
} );
|
792 |
+
};
|
793 |
+
|
794 |
self.updateFilters = function () {
|
795 |
self.$filters = self.$filtersContainer.find( '.yith-toggle-row' );
|
796 |
};
|
1242 |
} );
|
1243 |
};
|
1244 |
|
1245 |
+
self.addRange = function (
|
1246 |
+
$filter,
|
1247 |
+
min = '',
|
1248 |
+
max = '',
|
1249 |
+
unlimited = false
|
1250 |
+
) {
|
1251 |
const newRangeTemplate = wp.template( 'yith-wcan-filter-range' ),
|
1252 |
newRange = newRangeTemplate( {
|
1253 |
id: self.getRowIndex( $filter ),
|
1257 |
} ),
|
1258 |
$newRange = $( newRange );
|
1259 |
|
1260 |
+
$newRange.find( '.min' ).find( ':input' ).val( min );
|
1261 |
+
$newRange.find( '.max' ).find( ':input' ).val( max );
|
1262 |
+
$newRange
|
1263 |
+
.find( '.unlimited' )
|
1264 |
+
.find( ':input' )
|
1265 |
+
.prop( 'checked', unlimited );
|
1266 |
+
|
1267 |
$filter.find( '.ranges-wrapper' ).append( $newRange );
|
1268 |
|
1269 |
self.afterAddRange( $newRange );
|
1295 |
|
1296 |
self.ajaxSaveFilter = function ( $filter ) {
|
1297 |
const preset_id = self.getPresetId(),
|
1298 |
+
filter = self.getFilterData( $filter ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1299 |
filter_id = $filter.attr( 'id' ).replace( 'filter_', '' );
|
1300 |
|
1301 |
// send term order, to save terms in the correct sequence.
|
1371 |
if (
|
1372 |
emptyBox.length &&
|
1373 |
! emptyBox.is( ':visible' ) &&
|
1374 |
+
! items.length &&
|
1375 |
+
! self.$loadMoreFiltersButtons.length
|
1376 |
) {
|
1377 |
emptyBox.show();
|
1378 |
}
|
@@ -1 +1 @@
|
|
1 |
-
"use strict";function YITH_WCAN_Filters(e){const t=this;t.rowIndex=0,t.dependencies={taxonomy:{type:"tax"},terms:{type:"tax"},filter_design:{type:"tax"},column_number:{filter_design:["label","color"]},terms_options:{terms:e=>!!e},show_search:{filter_design:"select"},price_ranges:{type:"price_range"},price_slider_min:{type:"price_slider"},price_slider_max:{type:"price_slider"},price_slider_step:{type:"price_slider"},order_options:{type:"orderby"},show_stock_filter:{type:"stock_sale"},show_sale_filter:{type:"stock_sale"},toggle_style:{show_toggle:":checked"},order_by:{type:"tax"},order:{type:"tax"},show_count:{type:["tax","price_range","review","stock_sale"]},hierarchical:{type:"tax",filter_design:["checkbox","radio","text"]},multiple:{type:"tax",filter_design:"-radio"},relation:{multiple:":checked"},adoptive:{type:["tax","price_range","review","stock_sale"]}},t.$mainAddNewFilterButton=e("#add_new_filter"),t.$addNewFilterButtons=e(".add-new-filter"),t.$filtersContainer=e(".preset-filters"),t.$filters=t.$filtersContainer.find(".yith-toggle-row"),t.init=function(){t.initFilters(),t.initAddFilter()},t.initAddFilter=function(){t.updateRowIndex(),t.$addNewFilterButtons.on("click",(function(e){e.preventDefault(),t.addFilter()}))},t.initFilters=function(){t.initFiltersDragDrop(),t.$filters.each((function(){t.initFilter(e(this))}))},t.initFiltersDragDrop=function(){t.$filtersContainer.sortable({cursor:"move",handle:".yith-toggle-title",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0})},t.initFilter=function(e){e.hasClass("initialized")||(t.initFilterTitle(e),t.initFilterToggle(e),t.initFilterFields(e),t.initFilterFieldsDependencies(e),t.initFilterSave(e),t.initFilterDelete(e),t.initFilterClone(e),t.initTerms(e),t.initRanges(e),e.addClass("initialized"))},t.initFilterFields=function(e){t.initFilterTermSearch(e),t.initFilterType(e)},t.initFilterFieldsDependencies=function(e){e.find(":input").on("change",(()=>{t._applyFilterDependencies(e)})).first().change()},t.initFilterTermSearch=function(i){const n=i.find(".term-search").first(),r=i.find(".taxonomy").first(),o=n.closest(".yith-plugin-fw-field-wrapper"),a=function(e){return{term:e.term,all:void 0!==e.all?e.all:0,taxonomy:r.val(),selected:n.val(),action:"yith_wcan_search_term",security:yith_wcan_admin.nonce.search_term}},l={placeholder:e(this).data("placeholder"),minimumInputLength:"1",templateSelection:e=>t.removeHierarchyFromString(e.text),templateResult:e=>e.text.replace("&","&"),ajax:{url:ajaxurl,dataType:"json",delay:250,data:a,processResults(t){const i=[];return t&&e.each(t,(function(e,t){i.push({id:e,text:t})})),{results:i}},cache:!0},sorter:e=>e};n.selectWoo(l),r.on("change",(()=>{n.find("option").remove().end().change()})),n.on("change",(()=>{t.updateTerms(i)})),o.find(".yith-plugin-fw-select-all").on("click",(function(i){return i.preventDefault(),!!t._confirmAddAllTerms(r)&&(t.block(o),e.get(ajaxurl,a({term:"",all:1})).then((i=>{const r=[];n.find("option").remove(),e.each(i,(function(t,i){r.push(t),n.append(e("<option/>",{value:t,text:i}))})),n.val(r).change(),t.unblock(o)})),!1)})),o.find(".yith-plugin-fw-deselect-all").on("click",(function(e){return e.preventDefault(),n.find("option").remove().end().val("").change(),!1}))},t.initFilterType=function(e){const i=e.find('[name*="filter_design"]');i.on("change",(()=>{t.updateTermFields(e,i.val())})).change()},t.initFilterTitle=function(e){const t=e.find(".heading-field").first(),i=e.find("h3.title");i.length&&t.length&&t.on("keyup",(()=>{const e=t.val();i.html(e||'<span class="no-title">'+yith_wcan_admin.labels.no_title+"</span>")}))},t.initFilterSave=function(e){e.find(".save").on("click",(function(i){return i.stopPropagation(),t.saveFilter(e),!1}))},t.initFilterDelete=function(e){e.find(".delete").on("click",(function(i){return i.stopPropagation(),t.removeFilter(e),!1}))},t.initFilterClone=function(e){e.find(".clone").on("click",(function(i){return i.stopPropagation(),t.cloneFilter(e),!1}))},t.initFilterToggle=function(i){i.find(".yith-toggle-title").on("click",(function(i){const n=e(i.target);if(i.preventDefault(),n.is(".yith-plugin-fw-onoff")){const e=n.prev('input[type="checkbox"]');return e.prop("checked",!e.prop("checked")),!1}const r=e(this).parent();return r.hasClass("yith-toggle-row-opened")?t.closeFilter(r):t.openFilter(r),!1}))},t.afterAddFilter=function(e){t.closeAllFilters(),t.openFilter(e),t.updateFilters(),t.maybeHideEmptyBox(t.$filtersContainer,t.$filters),t.$mainAddNewFilterButton.show(),e.trigger("yith_fields_init"),t.initFilter(e)},t.afterRemoveFilter=function(){t.updateFilters(),t.maybeShowEmptyBox(t.$filtersContainer,t.$filters),t.$filters.length||t.$mainAddNewFilterButton.hide()},t._findFilterField=function(e,t,i=!0){let n;switch(t){case"terms_options":n=e.find(".terms-wrapper");break;case"price_ranges":n=e.find(".ranges-wrapper");break;default:n=e.find(':input[name*="['+t+']"]')}return n.length?i?n.closest(".yith-toggle-content-row"):n:null},t._applyFilterDependencies=function(i){e.each(t.dependencies,(function(e,n){const r=t._findFilterField(i,e);t._checkFilterFieldConditions(i,n)?r?.css({display:"table"}):r?.hide()}))},t._checkFilterFieldConditions=function(i,n){let r=!0;return e.each(n,(function(e,n){let o,a;r&&(o=t._findFilterField(i,e,!1),o?.length&&(a=o.first().is('input[type="radio"]')?o.filter(":checked").val().toString():o?.val()?.toString(),r=Array.isArray(n)?n.includes(a):"function"==typeof n?n(a):0===n.indexOf(":")?o.is(n):0===n.indexOf("-")?n.toString().substring(1)!==a:n.toString()===a,void 0!==t.dependencies[e]&&(r=r&&t._checkFilterFieldConditions(i,t.dependencies[e]))))})),r},t._confirmAddAllTerms=function(e){let t=e.val(),i=e.data("counts"),n=yith_wcan_admin.messages.confirm_add_all_terms;return!(i[t]&&i[t]>1)||(n=n.replace("%s",i[t]),confirm(n))},t.addFilter=function(){const i=wp.template("yith-wcan-filter")({id:t.nextRowIndex()}),n=e(i);return t.$filtersContainer.append(n),t.afterAddFilter(n),n},t.removeFilter=function(e){confirm(yith_wcan_admin.messages.confirm_delete)&&t.ajaxDeleteFilter(e).done((()=>{e.remove(),t.afterRemoveFilter()}))},t.cloneFilter=function(i){t.closeAllFilters((()=>{const n=t.addFilter(),r=t.getRowIndex(i),o=t.currentRowIndex();i.find(":input").each((function(){let i,a,l=e(this),c=l.attr("id");void 0!==c&&(a=c.replace("filters_"+r+"_","filters_"+o+"_"),i=n.find("#"+a),i.length&&(i.is('input[type="radio"]')||i.is('input[type="checkbox"]')?i.prop("checked",l.is(":checked")):i.is("select")?(i.find("option").length||l.find("option").clone().appendTo(i),i.val(l.val())):i.val(l.val()),-1===a.indexOf("color_2")||l.prop("disabled")||t.showTermAdditionalColor(i.closest(".term-box")),-1!==a.indexOf("mode")&&t.showTermTab(i.closest(".term-box"),i.val()),-1!==a.indexOf("image")&&i.val()&&i.closest(".image-selector").find(".placeholder-image").hide().end().find(".selected-image").show().append(l.closest(".image-selector").find(".selected-image").find("img").clone()),i.change().keyup()))}))}))},t.saveFilter=function(e){t.ajaxSaveFilter(e).done((i=>{t.maybeSetPresetId(i.id),t.closeFilter(e)}))},t.openFilter=function(e){return e.find(".yith-toggle-title").find(".title-arrow").text("keyboard_arrow_down"),e.addClass("yith-toggle-row-opened").find(".yith-toggle-content").slideDown().promise()},t.closeFilter=function(e){return e.find(".yith-toggle-title").find(".title-arrow").text("keyboard_arrow_right"),e.find(".yith-toggle-content").slideUp(400,(function(){e.removeClass("yith-toggle-row-opened")})).promise()},t.closeAllFilters=function(e){t.closeFilter(t.$filters).done((()=>{"function"==typeof e&&e()}))},t.updateFilters=function(){t.$filters=t.$filtersContainer.find(".yith-toggle-row")},t.getRowIndex=function(e){const t=e.data("item_key");return t?parseInt(t):0},t.updateRowIndex=function(){let e=0;t.$filters.each((function(t){const i=this.id.replace("filter_","");e=e<i?i:e})),t.rowIndex=e},t.nextRowIndex=function(){return t.rowIndex||t.updateRowIndex(),++t.rowIndex},t.currentRowIndex=function(){return t.rowIndex||t.updateRowIndex(),t.rowIndex},t.getTerms=function(e){return e.find(".term-box")},t.initTerms=function(i){i.find(".term-box").each((function(){t.initTerm(e(this))})),t.initTermsDragDrop(i)},t.initTerm=function(e){t.initTermTabs(e),t.initTermImageSelector(e),t.initTermAdditionalColor(e)},t.initTermTabs=function(i){i.find(".term-tab-header").on("click",(function(n){const r=e(this).data("tab");n.preventDefault(),t.showTermTab(i,r)})),t.showTermTab(i,i.find(".term-mode").val())},t.initTermAdditionalColor=function(i){i.find(".term-add-second-color").on("click",(function(n){e(this);n.preventDefault(),t.showTermAdditionalColor(i)})),i.find(".term-hide-second-color").on("click",(function(n){e(this);n.preventDefault(),t.hideTermAdditionalColor(i)}))},t.initTermImageSelector=function(i){let n,r=i.find(".image-selector"),o=r.find(".placeholder-image"),a=r.find(".selected-image"),l=a.find("img"),c=r.find(".term-image"),d=a.find(".clear-image");o.off("click").on("click",(function(){t.block(o),n||(n=wp.media({title:yith_wcan_admin.labels.upload_media,button:{text:yith_wcan_admin.labels.confirm_media},multiple:!1}),n.on("select",(function(){const i=n.state().get("selection").first().toJSON();l.remove(),l=e("<img/>",{src:i.url}),a.prepend(l),c.val(i.id),t.unblock(o),o.hide(),a.show()})),n.on("close",(function(){t.unblock(o)}))),n.open()})),d.off("click").on("click",(function(e){e.preventDefault(),c.val(""),a.hide(),o.show()}))},t.initTermsDragDrop=function(e){e.find(".terms-wrapper").sortable({cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone"})},t.showTermTab=function(e,t,i){const n=e.find(".term-tab-header"),r=e.find(".tab"),o=r.filter(".tab-"+t);if(!o.length||!n.is(":visible")&&!i)return;const a=e.find(".term-mode");n.removeClass("active").filter('[data-tab="'+t+'"]').addClass("active"),r.hide(),o.show(),a.val(t)},t.showTermAdditionalColor=function(e){e.find(".term-add-second-color").parent().hide().next(".additional-color").show().find(".wp-color-picker").prop("disabled",!1)},t.hideTermAdditionalColor=function(e){e.find(".term-hide-second-color").parent().find(".wp-color-picker").prop("disabled",!0).end().hide().prev("p").show()},t.updateTerms=function(i){const n=t._getSelectedTerms(i),r=i.find(".terms-wrapper"),o=r.find(".term-box"),a=i.find('[name*="filter_design"]'),l=[];n&&e.each(n,(function(n,r){const a=o.filter('[data-term_id="'+r.id+'"]');if(a.length)l.push(a);else{const n=wp.template("yith-wcan-filter-term")({id:t.getRowIndex(i),term_id:r.id,name:r.name,label:r.name,tooltip:""}),o=e(n);l.push(o)}})),o.detach(),l.length&&e.each(l,(function(e,i){r.append(i),t.afterAddTerm(i)})),t.updateTermFields(i,a.val()),i.trigger("yith_fields_init")},t.updateTermFields=function(i,n){const r=i.find(".term-box");switch(n){case"color":r.find(".term-tab-headers").show().find('a[data-tab="color"], span').show(),r.find(".tab.tab-color").show(),r.find(".tab.tab-image").show(),r.each((function(){const i=e(this);t.showTermTab(i,i.find(".term-mode").val(),!0)}));break;case"label":r.find(".term-tab-headers").show().find('a[data-tab="color"], span').hide(),r.find(".tab.tab-color").hide(),r.find(".tab.tab-image").show(),t.showTermTab(r,"image",!0);break;default:r.find(".term-tab-headers").hide(),r.find(".tab.tab-color").hide(),r.find(".tab.tab-image").hide()}},t.afterAddTerm=function(e){t.initTerm(e)},t._getSelectedTerms=function(i){const n=i.find(".term-search").first(),r=[];if(!n.length)return r;const o=n.val();return o?(e.each(o,(function(e,i){const o=n.find('option[value="'+i+'"]');o.length&&r.push({id:i,name:t.removeHierarchyFromString(o.text())})})),r):r},t.initRanges=function(i){const n=i.find(".range-box");t.initAddRange(i),t.initRangesPosition(i),t.initRangesDragDrop(i),n.each((function(){t.initRange(e(this))}))},t.initRange=function(e){t.initRangeDependencies(e),t.initRangeRemove(e)},t.initAddRange=function(e){e.find(".add-price-range").on("click",(function(i){i.preventDefault(),t.addRange(e),t.initRangesPosition(e)}))},t.initRangeRemove=function(e){e.find("a.range-remove").on("click",(i=>{const n=t.getItemFilter(e);i.preventDefault(),e.remove(),t.initRangesPosition(n)}))},t.initRangeDependencies=function(t){t.find('[name*="unlimited"]').on("change",(function(){const t=e(this),i=t.closest(".range-box").find(".max");t.is(":checked")?i.hide():i.show()})).change()},t.initRangesPosition=function(t){t.find(".range-box").each((function(){const t=e(this),i=t.find(".unlimited"),n=i.find(":input");t.is(":last-child")?i.show():(n.prop("checked",!1).change(),i.hide())}))},t.initRangesDragDrop=function(i){i.find(".ranges-wrapper").sortable({cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop(){e(this).find(".range-box").each((function(t){e(this).data("range_id",t).find(":input").attr("name",(function(){return e(this).attr("name").replace(/\[price_ranges]\[[0-9]+]/,"[price_ranges]["+t+"]")})).attr("id",(function(){return e(this).attr("id").replace(/price_ranges_[0-9]+/,"price_ranges_"+t)}))})),t.initRangesPosition(i)}})},t.addRange=function(i){const n=wp.template("yith-wcan-filter-range")({id:t.getRowIndex(i),range_id:t.getNextRangeIndex(i),min:0,max:0}),r=e(n);return i.find(".ranges-wrapper").append(r),t.afterAddRange(r),r},t.afterAddRange=function(e){t.initRange(e)},t.getNextRangeIndex=function(e){let t=e.find(".ranges-wrapper"),i=t.data("index"),n=0;return i||(i=t.find(".range-box").length),n=++i,t.data("index",n),n},t.ajaxSaveFilter=function(i){const n=t.getPresetId(),r=t.serialize(i,(function(e){return e.replace(/filters\[[0-9]+]\[([a-z_-]+)]/,"$1")}),(function(t,i){return!e(i).is('select[name*="terms"]')})),o=i.attr("id").replace("filter_","");return r.terms_order=t.getTerms(i).toArray().map((t=>e(t).data("term_id"))),t.doAjax("yith_wcan_save_preset_filter",{preset:n,filter:r,filter_id:o,_wpnonce:yith_wcan_admin.nonce.save_preset_filter},i)},t.ajaxDeleteFilter=function(e){const i=t.getPresetId();if(!i)return jQuery.Deferred().resolve();const n=e.attr("id").replace("filter_","");return t.doAjax("yith_wcan_delete_preset_filter",{preset:i,filter_id:n,_wpnonce:yith_wcan_admin.nonce.delete_preset_filter})},t.doAjax=function(i,n,r,o){n||(n={}),n.action=i;let a={beforeSend:()=>{r&&r.length&&t.block(r)},complete:()=>{r&&r.length&&t.unblock(r)},data:n,method:"post",dataType:"json",url:ajaxurl};return o&&(a=e.extend(a,o)),e.ajax(a)},t.getItemFilter=function(e){return e.closest(".yith-toggle-row")},t.maybeShowEmptyBox=function(e,t){const i=e.children(".yith-wcan-admin-no-post");!i.length||i.is(":visible")||t.length||i.show()},t.maybeHideEmptyBox=function(e,t){const i=e.children(".yith-wcan-admin-no-post");i.length&&i.is(":visible")&&t.length&&i.hide()},t.block=function(t){void 0!==e.fn.block&&t.block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},t.unblock=function(t){void 0!==e.fn.unblock&&t.unblock()},t.serialize=function(t,i,n){let r={},o=t.find(":input").not("[disabled]");return"function"==typeof n&&(o=o.filter(n)),o.each((function(){let t,n=e(this),o=n.attr("name");if(o&&(o=o.replace(/^(.*)\[]$/,"$1"),"function"==typeof i&&(o=i(o)),(!n.is('[type="checkbox"]')||n.is(":checked"))&&(!n.is('[type="radio"]')||n.is(":checked"))))if(t=n.val(),-1!==o.indexOf("[")){const i=o.split("[").map((e=>e.replace(/[\[, \]]/g,""))),n=i.shift(),a=i.reverse().reduce(((e,t)=>({[t]:e})),t);void 0===r[n]?r[n]=a:r[n]=e.extend(!0,r[n],a)}else r[o]=t})),r},t.getPresetId=function(){return e("#preset_id").val()},t.maybeSetPresetId=function(i){!t.getPresetId()&&i&&e("#preset_id").val(i)},t.removeHierarchyFromString=function(e){return e.replace(/^(.*>)([^>]+)$/,"$2").replace("&","&").trim()},t.init()}
|
1 |
+
"use strict";function YITH_WCAN_Filters(e){const t=this;t.rowIndex=0,t.dependencies={taxonomy:{type:"tax"},terms:{type:"tax"},filter_design:{type:"tax"},column_number:{filter_design:["label","color"]},terms_options:{terms:e=>!!e},show_search:{filter_design:"select"},price_ranges:{type:"price_range"},price_slider_min:{type:"price_slider"},price_slider_max:{type:"price_slider"},price_slider_step:{type:"price_slider"},order_options:{type:"orderby"},show_stock_filter:{type:"stock_sale"},show_sale_filter:{type:"stock_sale"},toggle_style:{show_toggle:":checked"},order_by:{type:"tax"},order:{type:"tax"},show_count:{type:["tax","price_range","review","stock_sale"]},hierarchical:{type:"tax",filter_design:["checkbox","radio","text"]},multiple:{type:"tax",filter_design:"-radio"},relation:{multiple:":checked"},adoptive:{type:["tax","price_range","review","stock_sale"]}},t.$form=e("#plugin-fw-wc"),t.$mainAddNewFilterButton=e("#add_new_filter"),t.$addNewFilterButtons=e(".add-new-filter"),t.$loadMoreFiltersButtons=e(".load-more-filters"),t.$filtersContainer=e(".preset-filters"),t.$filters=t.$filtersContainer.find(".yith-toggle-row"),t.$page=e("#paged"),t.$submit=e("#submit"),t.init=function(){t.initFilters(),t.initAddFilter(),t.initLoadMoreFilters(),t.initSubmit()},t.initAddFilter=function(){t.updateRowIndex(),t.$addNewFilterButtons.on("click",(function(e){e.preventDefault(),t.addFilter()}))},t.initLoadMoreFilters=function(){t.$loadMoreFiltersButtons.on("click",(function(e){e.preventDefault(),t.loadMoreFilters()}))},t.initSubmit=function(){t.$submit.on("click",(()=>t.block(t.$form)))},t.initFilters=function(){t.initFiltersDragDrop(),t.$filters.each((function(){t.initFilter(e(this))}))},t.initFiltersDragDrop=function(){t.$filtersContainer.sortable({cursor:"move",handle:".yith-toggle-title",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0})},t.initFilter=function(e){e.hasClass("initialized")||(t.initFilterTitle(e),t.initFilterToggle(e),t.initFilterFields(e),t.initFilterFieldsDependencies(e),t.initFilterSave(e),t.initFilterDelete(e),t.initFilterClone(e),t.initTerms(e),t.initRanges(e),e.addClass("initialized"))},t.initFilterFields=function(e){t.initFilterTermSearch(e),t.initFilterType(e)},t.initFilterFieldsDependencies=function(e){e.find(":input").on("change",(()=>{t._applyFilterDependencies(e)})).first().change()},t.initFilterTermSearch=function(i){const n=i.find(".term-search").first(),r=i.find(".taxonomy").first(),o=n.closest(".yith-plugin-fw-field-wrapper"),a=function(e){return{term:e.term,all:void 0!==e.all?e.all:0,taxonomy:r.val(),selected:n.val(),action:"yith_wcan_search_term",security:yith_wcan_admin.nonce.search_term}},l={placeholder:e(this).data("placeholder"),minimumInputLength:"1",templateSelection:e=>t.removeHierarchyFromString(e.text),templateResult:e=>e.text.replace("&","&"),ajax:{url:ajaxurl,dataType:"json",delay:250,data:a,processResults(t){const i=[];return t&&e.each(t,(function(e,t){i.push({id:e,text:t})})),{results:i}},cache:!0},sorter:e=>e};n.selectWoo(l),r.on("change",(()=>{n.find("option").remove().end().change()})),n.on("change",(()=>{t.updateTerms(i)})),o.find(".yith-plugin-fw-select-all").on("click",(function(i){return i.preventDefault(),!!t._confirmAddAllTerms(r)&&(t.block(o),e.get(ajaxurl,a({term:"",all:1})).then((i=>{const r=n.val();n.find("option").not(":selected").remove(),e.each(i,(function(t,i){r.push(t),n.append(e("<option/>",{value:t,text:i}))})),n.val(r).change(),t.unblock(o)})),!1)})),o.find(".yith-plugin-fw-deselect-all").on("click",(function(e){return e.preventDefault(),n.find("option").remove().end().val("").change(),!1}))},t.initFilterType=function(e){const i=e.find('[name*="filter_design"]');i.on("change",(()=>{t.updateTermFields(e,i.val())})).change()},t.initFilterTitle=function(e){const t=e.find(".heading-field").first(),i=e.find("h3.title");i.length&&t.length&&t.on("keyup",(()=>{const e=t.val();i.html(e||'<span class="no-title">'+yith_wcan_admin.labels.no_title+"</span>")}))},t.initFilterSave=function(e){e.find(".save").on("click",(function(i){return i.stopPropagation(),t.saveFilter(e),!1}))},t.initFilterDelete=function(e){e.find(".delete").on("click",(function(i){return i.stopPropagation(),t.removeFilter(e),!1}))},t.initFilterClone=function(e){e.find(".clone").on("click",(function(i){return i.stopPropagation(),t.cloneFilter(e),!1}))},t.initFilterToggle=function(i){i.find(".yith-toggle-title").on("click",(function(i){const n=e(i.target);if(i.preventDefault(),n.is(".yith-plugin-fw-onoff")){const e=n.prev('input[type="checkbox"]');return e.prop("checked",!e.prop("checked")),!1}const r=e(this).parent();return r.hasClass("yith-toggle-row-opened")?t.closeFilter(r):t.openFilter(r),!1}))},t.afterAddFilter=function(e){t.closeAllFilters(),t.openFilter(e),t.updateFilters(),t.maybeHideEmptyBox(t.$filtersContainer,t.$filters),t.$mainAddNewFilterButton.show(),e.trigger("yith_fields_init"),t.initFilter(e)},t.afterRemoveFilter=function(){t.updateFilters(),t.maybeShowEmptyBox(t.$filtersContainer,t.$filters),t.$filters.length||t.$mainAddNewFilterButton.hide()},t._findFilterField=function(e,t,i=!0){let n;switch(t){case"terms_options":n=e.find(".terms-wrapper");break;case"price_ranges":n=e.find(".ranges-wrapper");break;default:n=e.find(':input[name*="['+t+']"]')}return n.length?i?n.closest(".yith-toggle-content-row"):n:null},t._applyFilterDependencies=function(i){e.each(t.dependencies,(function(e,n){const r=t._findFilterField(i,e);t._checkFilterFieldConditions(i,n)?r?.css({display:"table"}):r?.hide()}))},t._checkFilterFieldConditions=function(i,n){let r=!0;return e.each(n,(function(e,n){let o,a;r&&(o=t._findFilterField(i,e,!1),o?.length&&(a=o.first().is('input[type="radio"]')?o.filter(":checked").val().toString():o?.val()?.toString(),r=Array.isArray(n)?n.includes(a):"function"==typeof n?n(a):0===n.indexOf(":")?o.is(n):0===n.indexOf("-")?n.toString().substring(1)!==a:n.toString()===a,void 0!==t.dependencies[e]&&(r=r&&t._checkFilterFieldConditions(i,t.dependencies[e]))))})),r},t._confirmAddAllTerms=function(e){let t=e.val(),i=e.data("counts"),n=yith_wcan_admin.messages.confirm_add_all_terms;return!(i[t]&&i[t]>1)||(n=n.replace("%s",i[t]),confirm(n))},t.addFilter=function(){const i=wp.template("yith-wcan-filter")({id:t.nextRowIndex()}),n=e(i);return t.$filtersContainer.append(n),t.afterAddFilter(n),n},t.removeFilter=function(e){confirm(yith_wcan_admin.messages.confirm_delete)&&t.ajaxDeleteFilter(e).done((()=>{e.remove(),t.afterRemoveFilter()}))},t.getFilterData=function(i){return t.serialize(i,(e=>e.replace(/filters\[[0-9]+]\[([a-z_-]+)]/,"$1")),((t,i)=>!e(i).is('select[name*="terms"]')))},t.populateFilter=function(i,n){for(const r in n){const o=`filters_${t.getRowIndex(i)}_${r}`,a=i.find(`#${o}`),l=n[r];if(a.length||"price_ranges"===r)if("terms"===r){const n=l;if("object"!=typeof n)continue;for(const t in n){if(!n[t]?.label)continue;const i=e("<option/>",{value:t,text:n[t]?.label,selected:!0});a.append(i)}a.change(),t.updateTerms(i);for(const e in n)for(const t in n[e]){const r=`${o}_${e}_${t}`,a=i.find(`#${r}`);a.length&&a.val(n[e][t])}}else if("price_ranges"===r){const e=l;if("object"!=typeof e)continue;for(const n in e){const r=e[n];t.addRange(i,r.min,r.max,r.unlimited)}}else a.is(":checkbox")?a.prop("checked","yes"===l).change():a.is('[data-type="radio"]')?a.find(":input").prop("checked",!1).filter('[value="'+l+'"]').prop("checked",!0).change():"title"===r?a.val(n[r]).keyup():a.val(n[r]).change()}},t.cloneFilter=function(i){t.closeAllFilters((()=>{const n=t.addFilter(),r=t.getRowIndex(i),o=t.currentRowIndex();i.find(":input").each((function(){let i,a,l=e(this),c=l.attr("id");void 0!==c&&(a=c.replace("filters_"+r+"_","filters_"+o+"_"),i=n.find("#"+a),i.length&&(i.is('input[type="radio"]')||i.is('input[type="checkbox"]')?i.prop("checked",l.is(":checked")):i.is("select")?(i.find("option").length||l.find("option").clone().appendTo(i),i.val(l.val())):i.val(l.val()),-1===a.indexOf("color_2")||l.prop("disabled")||t.showTermAdditionalColor(i.closest(".term-box")),-1!==a.indexOf("mode")&&t.showTermTab(i.closest(".term-box"),i.val()),-1!==a.indexOf("image")&&i.val()&&i.closest(".image-selector").find(".placeholder-image").hide().end().find(".selected-image").show().append(l.closest(".image-selector").find(".selected-image").find("img").clone()),i.change().keyup()))}))}))},t.saveFilter=function(e){t.ajaxSaveFilter(e).done((i=>{t.maybeSetPresetId(i.id),t.closeFilter(e)}))},t.openFilter=function(e){return e.find(".yith-toggle-title").find(".title-arrow").text("keyboard_arrow_down"),e.addClass("yith-toggle-row-opened").find(".yith-toggle-content").slideDown().promise()},t.closeFilter=function(e){return e.find(".yith-toggle-title").find(".title-arrow").text("keyboard_arrow_right"),e.find(".yith-toggle-content").slideUp(400,(function(){e.removeClass("yith-toggle-row-opened")})).promise()},t.closeAllFilters=function(e){t.closeFilter(t.$filters).done((()=>{"function"==typeof e&&e()}))},t.loadMoreFilters=function(){let i=t.$page.val();t.doAjax("yith_wcan_load_more_filters",{preset:t.getPresetId(),page:++i,_wpnonce:yith_wcan_admin.nonce.load_more_filters},t.$loadMoreFiltersButtons,{method:"get"}).done((n=>{if(n){if(n.filters)for(const i in n.filters){const r=n.filters[i],o=wp.template("yith-wcan-filter")({id:i}),a=e(o);t.populateFilter(a,r),t.$filtersContainer.append(a),t.afterAddFilter(a),a.find(".heading-field").keyup()}n.has_more?t.$page.val(i):(t.$loadMoreFiltersButtons.remove(),t.$page.remove(),t.$page=null)}}))},t.updateFilters=function(){t.$filters=t.$filtersContainer.find(".yith-toggle-row")},t.getRowIndex=function(e){const t=e.data("item_key");return t?parseInt(t):0},t.updateRowIndex=function(){let e=0;t.$filters.each((function(t){const i=this.id.replace("filter_","");e=e<i?i:e})),t.rowIndex=e},t.nextRowIndex=function(){return t.rowIndex||t.updateRowIndex(),++t.rowIndex},t.currentRowIndex=function(){return t.rowIndex||t.updateRowIndex(),t.rowIndex},t.getTerms=function(e){return e.find(".term-box")},t.initTerms=function(i){i.find(".term-box").each((function(){t.initTerm(e(this))})),t.initTermsDragDrop(i)},t.initTerm=function(e){t.initTermTabs(e),t.initTermImageSelector(e),t.initTermAdditionalColor(e)},t.initTermTabs=function(i){i.find(".term-tab-header").on("click",(function(n){const r=e(this).data("tab");n.preventDefault(),t.showTermTab(i,r)})),t.showTermTab(i,i.find(".term-mode").val())},t.initTermAdditionalColor=function(i){i.find(".term-add-second-color").on("click",(function(n){e(this);n.preventDefault(),t.showTermAdditionalColor(i)})),i.find(".term-hide-second-color").on("click",(function(n){e(this);n.preventDefault(),t.hideTermAdditionalColor(i)}))},t.initTermImageSelector=function(i){let n,r=i.find(".image-selector"),o=r.find(".placeholder-image"),a=r.find(".selected-image"),l=a.find("img"),c=r.find(".term-image"),d=a.find(".clear-image");o.off("click").on("click",(function(){t.block(o),n||(n=wp.media({title:yith_wcan_admin.labels.upload_media,button:{text:yith_wcan_admin.labels.confirm_media},multiple:!1}),n.on("select",(function(){const i=n.state().get("selection").first().toJSON();l.remove(),l=e("<img/>",{src:i.url}),a.prepend(l),c.val(i.id),t.unblock(o),o.hide(),a.show()})),n.on("close",(function(){t.unblock(o)}))),n.open()})),d.off("click").on("click",(function(e){e.preventDefault(),c.val(""),a.hide(),o.show()}))},t.initTermsDragDrop=function(e){e.find(".terms-wrapper").sortable({cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone"})},t.showTermTab=function(e,t,i){const n=e.find(".term-tab-header"),r=e.find(".tab"),o=r.filter(".tab-"+t);if(!o.length||!n.is(":visible")&&!i)return;const a=e.find(".term-mode");n.removeClass("active").filter('[data-tab="'+t+'"]').addClass("active"),r.hide(),o.show(),a.val(t)},t.showTermAdditionalColor=function(e){e.find(".term-add-second-color").parent().hide().next(".additional-color").show().find(".wp-color-picker").prop("disabled",!1)},t.hideTermAdditionalColor=function(e){e.find(".term-hide-second-color").parent().find(".wp-color-picker").prop("disabled",!0).end().hide().prev("p").show()},t.updateTerms=function(i){const n=t._getSelectedTerms(i),r=i.find(".terms-wrapper"),o=r.find(".term-box"),a=i.find('[name*="filter_design"]'),l=[];n&&e.each(n,(function(n,r){const a=o.filter('[data-term_id="'+r.id+'"]');if(a.length)l.push(a);else{const n=wp.template("yith-wcan-filter-term")({id:t.getRowIndex(i),term_id:r.id,name:r.name,label:r.name,tooltip:""}),o=e(n);l.push(o)}})),o.detach(),l.length&&e.each(l,(function(e,i){r.append(i),t.afterAddTerm(i)})),t.updateTermFields(i,a.val()),i.trigger("yith_fields_init")},t.updateTermFields=function(i,n){const r=i.find(".term-box");switch(n){case"color":r.find(".term-tab-headers").show().find('a[data-tab="color"], span').show(),r.find(".tab.tab-color").show(),r.find(".tab.tab-image").show(),r.each((function(){const i=e(this);t.showTermTab(i,i.find(".term-mode").val(),!0)}));break;case"label":r.find(".term-tab-headers").show().find('a[data-tab="color"], span').hide(),r.find(".tab.tab-color").hide(),r.find(".tab.tab-image").show(),t.showTermTab(r,"image",!0);break;default:r.find(".term-tab-headers").hide(),r.find(".tab.tab-color").hide(),r.find(".tab.tab-image").hide()}},t.afterAddTerm=function(e){t.initTerm(e)},t._getSelectedTerms=function(i){const n=i.find(".term-search").first(),r=[];if(!n.length)return r;const o=n.val();return o?(e.each(o,(function(e,i){const o=n.find('option[value="'+i+'"]');o.length&&r.push({id:i,name:t.removeHierarchyFromString(o.text())})})),r):r},t.initRanges=function(i){const n=i.find(".range-box");t.initAddRange(i),t.initRangesPosition(i),t.initRangesDragDrop(i),n.each((function(){t.initRange(e(this))}))},t.initRange=function(e){t.initRangeDependencies(e),t.initRangeRemove(e)},t.initAddRange=function(e){e.find(".add-price-range").on("click",(function(i){i.preventDefault(),t.addRange(e),t.initRangesPosition(e)}))},t.initRangeRemove=function(e){e.find("a.range-remove").on("click",(i=>{const n=t.getItemFilter(e);i.preventDefault(),e.remove(),t.initRangesPosition(n)}))},t.initRangeDependencies=function(t){t.find('[name*="unlimited"]').on("change",(function(){const t=e(this),i=t.closest(".range-box").find(".max");t.is(":checked")?i.hide():i.show()})).change()},t.initRangesPosition=function(t){t.find(".range-box").each((function(){const t=e(this),i=t.find(".unlimited"),n=i.find(":input");t.is(":last-child")?i.show():(n.prop("checked",!1).change(),i.hide())}))},t.initRangesDragDrop=function(i){i.find(".ranges-wrapper").sortable({cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop(){e(this).find(".range-box").each((function(t){e(this).data("range_id",t).find(":input").attr("name",(function(){return e(this).attr("name").replace(/\[price_ranges]\[[0-9]+]/,"[price_ranges]["+t+"]")})).attr("id",(function(){return e(this).attr("id").replace(/price_ranges_[0-9]+/,"price_ranges_"+t)}))})),t.initRangesPosition(i)}})},t.addRange=function(i,n="",r="",o=!1){const a=wp.template("yith-wcan-filter-range")({id:t.getRowIndex(i),range_id:t.getNextRangeIndex(i),min:0,max:0}),l=e(a);return l.find(".min").find(":input").val(n),l.find(".max").find(":input").val(r),l.find(".unlimited").find(":input").prop("checked",o),i.find(".ranges-wrapper").append(l),t.afterAddRange(l),l},t.afterAddRange=function(e){t.initRange(e)},t.getNextRangeIndex=function(e){let t=e.find(".ranges-wrapper"),i=t.data("index"),n=0;return i||(i=t.find(".range-box").length),n=++i,t.data("index",n),n},t.ajaxSaveFilter=function(i){const n=t.getPresetId(),r=t.getFilterData(i),o=i.attr("id").replace("filter_","");return r.terms_order=t.getTerms(i).toArray().map((t=>e(t).data("term_id"))),t.doAjax("yith_wcan_save_preset_filter",{preset:n,filter:r,filter_id:o,_wpnonce:yith_wcan_admin.nonce.save_preset_filter},i)},t.ajaxDeleteFilter=function(e){const i=t.getPresetId();if(!i)return jQuery.Deferred().resolve();const n=e.attr("id").replace("filter_","");return t.doAjax("yith_wcan_delete_preset_filter",{preset:i,filter_id:n,_wpnonce:yith_wcan_admin.nonce.delete_preset_filter})},t.doAjax=function(i,n,r,o){n||(n={}),n.action=i;let a={beforeSend:()=>{r&&r.length&&t.block(r)},complete:()=>{r&&r.length&&t.unblock(r)},data:n,method:"post",dataType:"json",url:ajaxurl};return o&&(a=e.extend(a,o)),e.ajax(a)},t.getItemFilter=function(e){return e.closest(".yith-toggle-row")},t.maybeShowEmptyBox=function(e,i){const n=e.children(".yith-wcan-admin-no-post");!n.length||n.is(":visible")||i.length||t.$loadMoreFiltersButtons.length||n.show()},t.maybeHideEmptyBox=function(e,t){const i=e.children(".yith-wcan-admin-no-post");i.length&&i.is(":visible")&&t.length&&i.hide()},t.block=function(t){void 0!==e.fn.block&&t.block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},t.unblock=function(t){void 0!==e.fn.unblock&&t.unblock()},t.serialize=function(t,i,n){let r={},o=t.find(":input").not("[disabled]");return"function"==typeof n&&(o=o.filter(n)),o.each((function(){let t,n=e(this),o=n.attr("name");if(o&&(o=o.replace(/^(.*)\[]$/,"$1"),"function"==typeof i&&(o=i(o)),(!n.is('[type="checkbox"]')||n.is(":checked"))&&(!n.is('[type="radio"]')||n.is(":checked"))))if(t=n.val(),-1!==o.indexOf("[")){const i=o.split("[").map((e=>e.replace(/[\[, \]]/g,""))),n=i.shift(),a=i.reverse().reduce(((e,t)=>({[t]:e})),t);void 0===r[n]?r[n]=a:r[n]=e.extend(!0,r[n],a)}else r[o]=t})),r},t.getPresetId=function(){return e("#preset_id").val()},t.maybeSetPresetId=function(i){!t.getPresetId()&&i&&e("#preset_id").val(i)},t.removeHierarchyFromString=function(e){return e.replace(/^(.*>)([^>]+)$/,"$2").replace("&","&").trim()},t.init()}
|
@@ -14,6 +14,9 @@ function YITH_WCAN_Filter( $ ) {
|
|
14 |
// flag set once init has executed
|
15 |
self.initialized = false;
|
16 |
|
|
|
|
|
|
|
17 |
// init object
|
18 |
self._init = function () {
|
19 |
const head = $( 'head' ).html(),
|
@@ -26,6 +29,8 @@ function YITH_WCAN_Filter( $ ) {
|
|
26 |
! yith_wcan_shortcodes.ajax_filters &&
|
27 |
self.pushUrlToHistory( alternativeUrl, pageTitle );
|
28 |
|
|
|
|
|
29 |
self.initialized = true;
|
30 |
};
|
31 |
|
@@ -95,11 +100,14 @@ function YITH_WCAN_Filter( $ ) {
|
|
95 |
let queryParam = yith_wcan_shortcodes.query_param,
|
96 |
params = {},
|
97 |
location = window.location,
|
98 |
-
url = yith_wcan_shortcodes.
|
99 |
-
? yith_wcan_shortcodes.
|
100 |
: location?.origin + location?.pathname,
|
101 |
search = '';
|
102 |
|
|
|
|
|
|
|
103 |
// remove filter session from current url, if any
|
104 |
if ( !! yith_wcan_shortcodes.session_param ) {
|
105 |
url = url.replace(
|
@@ -110,20 +118,22 @@ function YITH_WCAN_Filter( $ ) {
|
|
110 |
);
|
111 |
}
|
112 |
|
113 |
-
if (
|
114 |
-
|
115 |
}
|
116 |
|
117 |
-
|
118 |
-
|
119 |
-
if ( !! location.search ) {
|
120 |
-
const searchParams = location.search
|
121 |
.replace( '?', '' )
|
122 |
.split( '&' )
|
123 |
.reduce( ( a, v ) => {
|
124 |
const items = v.split( '=' );
|
125 |
|
126 |
if ( items.length === 2 ) {
|
|
|
|
|
|
|
|
|
127 |
a[ items[ 0 ] ] = items[ 1 ];
|
128 |
}
|
129 |
|
@@ -133,7 +143,10 @@ function YITH_WCAN_Filter( $ ) {
|
|
133 |
params = $.extend( params, searchParams );
|
134 |
}
|
135 |
|
136 |
-
|
|
|
|
|
|
|
137 |
search = Object.keys( params )
|
138 |
.reduce( function ( a, i ) {
|
139 |
const v = params[ i ];
|
@@ -150,10 +163,13 @@ function YITH_WCAN_Filter( $ ) {
|
|
150 |
|
151 |
return a;
|
152 |
}, '?' )
|
153 |
-
.replace(
|
154 |
-
.replace( /%2B
|
155 |
-
.replace( /%2C
|
156 |
-
|
|
|
|
|
|
|
157 |
|
158 |
return url;
|
159 |
};
|
@@ -209,7 +225,7 @@ function YITH_WCAN_Filter( $ ) {
|
|
209 |
$destination = $response.find( preset );
|
210 |
|
211 |
if ( $destination.length ) {
|
212 |
-
$preset.replaceWith( $destination );
|
213 |
}
|
214 |
}
|
215 |
|
@@ -217,7 +233,7 @@ function YITH_WCAN_Filter( $ ) {
|
|
217 |
$destination = $response.find( target );
|
218 |
|
219 |
if ( $destination.length ) {
|
220 |
-
$target.replaceWith( $destination );
|
221 |
}
|
222 |
}
|
223 |
} else {
|
@@ -283,6 +299,38 @@ function YITH_WCAN_Filter( $ ) {
|
|
283 |
$el.unblock();
|
284 |
};
|
285 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
// let's start the game
|
287 |
self._init();
|
288 |
|
@@ -303,6 +351,9 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
303 |
// filters node
|
304 |
self.$filters = false;
|
305 |
|
|
|
|
|
|
|
306 |
// nodes created just for modal layout
|
307 |
self.modalElements = {};
|
308 |
|
@@ -315,11 +366,16 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
315 |
// slider timeout
|
316 |
self.sliderTimeout = false;
|
317 |
|
|
|
|
|
|
|
|
|
318 |
// init object
|
319 |
self._init = function () {
|
|
|
|
|
320 |
self._initResponsive();
|
321 |
self._initFilters();
|
322 |
-
self._initFilterButton();
|
323 |
self._initActions();
|
324 |
|
325 |
self.$preset.data( 'preset', self ).addClass( 'enhanced' );
|
@@ -338,11 +394,19 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
338 |
|
339 |
// init filter button
|
340 |
self._initFilterButton = function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
// manage filter button
|
342 |
-
self.$
|
343 |
-
|
344 |
-
|
345 |
-
|
|
|
|
|
346 |
};
|
347 |
|
348 |
// init generic actions
|
@@ -705,6 +769,11 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
705 |
} );
|
706 |
};
|
707 |
|
|
|
|
|
|
|
|
|
|
|
708 |
// trigger handling after layout change
|
709 |
self._afterLayoutChange = function () {
|
710 |
if ( self.isMobile ) {
|
@@ -718,7 +787,7 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
718 |
self._addApplyFiltersModalButton();
|
719 |
self._switchToCollapsables();
|
720 |
|
721 |
-
self.$
|
722 |
} else {
|
723 |
self.$preset
|
724 |
.removeClass( 'filters-modal' )
|
@@ -735,7 +804,7 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
735 |
self._removeApplyFiltersModalButton();
|
736 |
self._switchBackCollapsables();
|
737 |
|
738 |
-
self.$
|
739 |
}
|
740 |
};
|
741 |
|
@@ -820,6 +889,9 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
820 |
self._closeAllCollapsables = function () {
|
821 |
self.$filters
|
822 |
.not( '.no-title' )
|
|
|
|
|
|
|
823 |
.find( '.filter-content' )
|
824 |
.hide()
|
825 |
.end()
|
@@ -828,11 +900,31 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
828 |
.removeClass( 'opened' );
|
829 |
};
|
830 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
831 |
// apply filters when possible
|
832 |
self.maybeFilter = function () {
|
|
|
|
|
|
|
|
|
833 |
if ( yith_wcan_shortcodes.instant_filters && ! self.isMobile ) {
|
834 |
self.filter();
|
835 |
-
} else if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
836 |
self.$preset.addClass( 'with-filter-button' );
|
837 |
self.modalElements.applyFiltersButton?.show();
|
838 |
}
|
@@ -867,6 +959,10 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
867 |
scrollTop: targetOffset - 100,
|
868 |
} );
|
869 |
}
|
|
|
|
|
|
|
|
|
870 |
} );
|
871 |
|
872 |
if ( self.isMobile ) {
|
@@ -1074,13 +1170,20 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
1074 |
|
1075 |
// retrieves properties for all filters of the preset
|
1076 |
self.getFiltersProperties = function () {
|
1077 |
-
|
1078 |
|
1079 |
self.getFilters().each( function () {
|
1080 |
const $filter = $( this );
|
1081 |
|
1082 |
if ( self.isFilterActive( $filter ) ) {
|
1083 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1084 |
}
|
1085 |
} );
|
1086 |
|
@@ -1412,6 +1515,70 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
1412 |
return price;
|
1413 |
};
|
1414 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1415 |
// let's start the game
|
1416 |
self._init();
|
1417 |
|
14 |
// flag set once init has executed
|
15 |
self.initialized = false;
|
16 |
|
17 |
+
// register original url search param
|
18 |
+
self.originalSearch = false;
|
19 |
+
|
20 |
// init object
|
21 |
self._init = function () {
|
22 |
const head = $( 'head' ).html(),
|
29 |
! yith_wcan_shortcodes.ajax_filters &&
|
30 |
self.pushUrlToHistory( alternativeUrl, pageTitle );
|
31 |
|
32 |
+
self.originalSearch = location.search;
|
33 |
+
|
34 |
self.initialized = true;
|
35 |
};
|
36 |
|
100 |
let queryParam = yith_wcan_shortcodes.query_param,
|
101 |
params = {},
|
102 |
location = window.location,
|
103 |
+
url = !! yith_wcan_shortcodes.base_url
|
104 |
+
? yith_wcan_shortcodes.base_url
|
105 |
: location?.origin + location?.pathname,
|
106 |
search = '';
|
107 |
|
108 |
+
const haveFilters =
|
109 |
+
typeof filters === 'object' && Object.keys( filters ).length;
|
110 |
+
|
111 |
// remove filter session from current url, if any
|
112 |
if ( !! yith_wcan_shortcodes.session_param ) {
|
113 |
url = url.replace(
|
118 |
);
|
119 |
}
|
120 |
|
121 |
+
if ( haveFilters ) {
|
122 |
+
params[ queryParam ] = 1;
|
123 |
}
|
124 |
|
125 |
+
if ( !! self.originalSearch ) {
|
126 |
+
const searchParams = self.originalSearch
|
|
|
|
|
127 |
.replace( '?', '' )
|
128 |
.split( '&' )
|
129 |
.reduce( ( a, v ) => {
|
130 |
const items = v.split( '=' );
|
131 |
|
132 |
if ( items.length === 2 ) {
|
133 |
+
if ( self.isFilterParam( items[ 0 ] ) ) {
|
134 |
+
return a;
|
135 |
+
}
|
136 |
+
|
137 |
a[ items[ 0 ] ] = items[ 1 ];
|
138 |
}
|
139 |
|
143 |
params = $.extend( params, searchParams );
|
144 |
}
|
145 |
|
146 |
+
if ( haveFilters ) {
|
147 |
+
params = $.extend( params, filters );
|
148 |
+
}
|
149 |
+
|
150 |
search = Object.keys( params )
|
151 |
.reduce( function ( a, i ) {
|
152 |
const v = params[ i ];
|
163 |
|
164 |
return a;
|
165 |
}, '?' )
|
166 |
+
.replace( /&$/g, '' )
|
167 |
+
.replace( /%2B/g, '+' )
|
168 |
+
.replace( /%2C/g, ',' );
|
169 |
+
|
170 |
+
if ( search.length > 1 ) {
|
171 |
+
url += search;
|
172 |
+
}
|
173 |
|
174 |
return url;
|
175 |
};
|
225 |
$destination = $response.find( preset );
|
226 |
|
227 |
if ( $destination.length ) {
|
228 |
+
$preset.replaceWith( $destination.first() );
|
229 |
}
|
230 |
}
|
231 |
|
233 |
$destination = $response.find( target );
|
234 |
|
235 |
if ( $destination.length ) {
|
236 |
+
$target.replaceWith( $destination.first() );
|
237 |
}
|
238 |
}
|
239 |
} else {
|
299 |
$el.unblock();
|
300 |
};
|
301 |
|
302 |
+
// checks if param is one used by layared nav to filter products.
|
303 |
+
self.isFilterParam = function ( param ) {
|
304 |
+
let supportedParams = [
|
305 |
+
'rating_filter',
|
306 |
+
'min_price',
|
307 |
+
'max_price',
|
308 |
+
'onsale_filter',
|
309 |
+
'instock_filter',
|
310 |
+
'orderby',
|
311 |
+
'product-page',
|
312 |
+
yith_wcan_shortcodes.query_param,
|
313 |
+
].concat(
|
314 |
+
yith_wcan_shortcodes.supported_taxonomies.map( ( i ) =>
|
315 |
+
i.replace( 'pa_', 'filter_' )
|
316 |
+
)
|
317 |
+
);
|
318 |
+
|
319 |
+
if ( -1 !== supportedParams.indexOf( param ) ) {
|
320 |
+
return true;
|
321 |
+
}
|
322 |
+
|
323 |
+
if ( -1 !== param.indexOf( 'filter_' ) ) {
|
324 |
+
return true;
|
325 |
+
}
|
326 |
+
|
327 |
+
if ( -1 !== param.indexOf( 'query_type_' ) ) {
|
328 |
+
return true;
|
329 |
+
}
|
330 |
+
|
331 |
+
return false;
|
332 |
+
};
|
333 |
+
|
334 |
// let's start the game
|
335 |
self._init();
|
336 |
|
351 |
// filters node
|
352 |
self.$filters = false;
|
353 |
|
354 |
+
// filter button
|
355 |
+
self.$filterButtons = false;
|
356 |
+
|
357 |
// nodes created just for modal layout
|
358 |
self.modalElements = {};
|
359 |
|
366 |
// slider timeout
|
367 |
self.sliderTimeout = false;
|
368 |
|
369 |
+
// registers when status has changed
|
370 |
+
self.originalFilters = null;
|
371 |
+
self.dirty = false;
|
372 |
+
|
373 |
// init object
|
374 |
self._init = function () {
|
375 |
+
self._regiterStatus();
|
376 |
+
self._initFilterButton();
|
377 |
self._initResponsive();
|
378 |
self._initFilters();
|
|
|
379 |
self._initActions();
|
380 |
|
381 |
self.$preset.data( 'preset', self ).addClass( 'enhanced' );
|
394 |
|
395 |
// init filter button
|
396 |
self._initFilterButton = function () {
|
397 |
+
self.$filterButtons = self.$preset.find( '.apply-filters' );
|
398 |
+
|
399 |
+
if ( ! self.$filterButtons.length ) {
|
400 |
+
return;
|
401 |
+
}
|
402 |
+
|
403 |
// manage filter button
|
404 |
+
self.$filterButtons
|
405 |
+
.on( 'click', ( ev ) => {
|
406 |
+
ev.preventDefault();
|
407 |
+
self.filter();
|
408 |
+
} )
|
409 |
+
.hide();
|
410 |
};
|
411 |
|
412 |
// init generic actions
|
769 |
} );
|
770 |
};
|
771 |
|
772 |
+
// register initial status
|
773 |
+
self._regiterStatus = function () {
|
774 |
+
self.originalFilters = self.getFiltersProperties();
|
775 |
+
};
|
776 |
+
|
777 |
// trigger handling after layout change
|
778 |
self._afterLayoutChange = function () {
|
779 |
if ( self.isMobile ) {
|
787 |
self._addApplyFiltersModalButton();
|
788 |
self._switchToCollapsables();
|
789 |
|
790 |
+
self.$filterButtons?.hide();
|
791 |
} else {
|
792 |
self.$preset
|
793 |
.removeClass( 'filters-modal' )
|
804 |
self._removeApplyFiltersModalButton();
|
805 |
self._switchBackCollapsables();
|
806 |
|
807 |
+
self.$filterButtons?.show();
|
808 |
}
|
809 |
};
|
810 |
|
889 |
self._closeAllCollapsables = function () {
|
890 |
self.$filters
|
891 |
.not( '.no-title' )
|
892 |
+
.not( ( i, v ) => {
|
893 |
+
return self.isFilterActive( $( v ) );
|
894 |
+
} )
|
895 |
.find( '.filter-content' )
|
896 |
.hide()
|
897 |
.end()
|
900 |
.removeClass( 'opened' );
|
901 |
};
|
902 |
|
903 |
+
// update status change flag, if filters have changed
|
904 |
+
self.maybeRegisterStatusChange = function () {
|
905 |
+
const currentFilters = self.getFiltersProperties(),
|
906 |
+
currentStr = JSON.stringify( currentFilters ),
|
907 |
+
originalStr = JSON.stringify( self.originalFilters );
|
908 |
+
|
909 |
+
self.dirty = currentStr !== originalStr;
|
910 |
+
};
|
911 |
+
|
912 |
// apply filters when possible
|
913 |
self.maybeFilter = function () {
|
914 |
+
// register status change
|
915 |
+
self.maybeRegisterStatusChange();
|
916 |
+
|
917 |
+
// filter, or show filter button.
|
918 |
if ( yith_wcan_shortcodes.instant_filters && ! self.isMobile ) {
|
919 |
self.filter();
|
920 |
+
} else if (
|
921 |
+
! yith_wcan_shortcodes.instant_filters &&
|
922 |
+
! self.isMobile
|
923 |
+
) {
|
924 |
+
self.dirty
|
925 |
+
? self.$filterButtons?.show()
|
926 |
+
: self.$filterButtons?.hide();
|
927 |
+
} else if ( self.isMobile && self.dirty ) {
|
928 |
self.$preset.addClass( 'with-filter-button' );
|
929 |
self.modalElements.applyFiltersButton?.show();
|
930 |
}
|
959 |
scrollTop: targetOffset - 100,
|
960 |
} );
|
961 |
}
|
962 |
+
|
963 |
+
// register new filters, clear status flag
|
964 |
+
self.originalFilters = self.getFiltersProperties();
|
965 |
+
self.dirty = false;
|
966 |
} );
|
967 |
|
968 |
if ( self.isMobile ) {
|
1170 |
|
1171 |
// retrieves properties for all filters of the preset
|
1172 |
self.getFiltersProperties = function () {
|
1173 |
+
let properties = {};
|
1174 |
|
1175 |
self.getFilters().each( function () {
|
1176 |
const $filter = $( this );
|
1177 |
|
1178 |
if ( self.isFilterActive( $filter ) ) {
|
1179 |
+
const filterProperties = self.getFilterProperties( $filter );
|
1180 |
+
|
1181 |
+
properties = self.mergeProperties(
|
1182 |
+
properties,
|
1183 |
+
filterProperties,
|
1184 |
+
$filter
|
1185 |
+
);
|
1186 |
+
// $.extend( properties, filterProperties );
|
1187 |
}
|
1188 |
} );
|
1189 |
|
1515 |
return price;
|
1516 |
};
|
1517 |
|
1518 |
+
// utility that merges together sets of filter properties
|
1519 |
+
self.mergeProperties = function ( set1, set2, $filter ) {
|
1520 |
+
// search for common properties
|
1521 |
+
for ( const prop in set2 ) {
|
1522 |
+
if ( ! set2.hasOwnProperty( prop ) ) {
|
1523 |
+
continue;
|
1524 |
+
}
|
1525 |
+
|
1526 |
+
if ( !! set1[ prop ] ) {
|
1527 |
+
switch ( prop ) {
|
1528 |
+
case 'rating_filter':
|
1529 |
+
case 'min_price':
|
1530 |
+
case 'max_price':
|
1531 |
+
case 'onsale_filter':
|
1532 |
+
case 'instock_filter':
|
1533 |
+
case 'orderby':
|
1534 |
+
// just override default value
|
1535 |
+
set1[ prop ] = set2[ prop ];
|
1536 |
+
break;
|
1537 |
+
default:
|
1538 |
+
if ( 0 === prop.indexOf( 'query_type_' ) ) {
|
1539 |
+
// query_type param
|
1540 |
+
set1[ prop ] = set2[ prop ];
|
1541 |
+
} else {
|
1542 |
+
// we're dealing with taxonomy
|
1543 |
+
const isAttr = 0 === prop.indexOf( 'filter_' ),
|
1544 |
+
glue = isAttr ? ',' : '+';
|
1545 |
+
|
1546 |
+
let newValue =
|
1547 |
+
set1[ prop ].replace( ',', glue ) +
|
1548 |
+
glue +
|
1549 |
+
set2[ prop ].replace( ',', glue );
|
1550 |
+
|
1551 |
+
newValue = newValue
|
1552 |
+
.split( glue )
|
1553 |
+
.filter(
|
1554 |
+
( value, index, arr ) =>
|
1555 |
+
arr.indexOf( value ) === index
|
1556 |
+
)
|
1557 |
+
.join( glue );
|
1558 |
+
|
1559 |
+
set1[ prop ] = newValue;
|
1560 |
+
|
1561 |
+
if ( isAttr ) {
|
1562 |
+
const queryTypeParam = prop.replace(
|
1563 |
+
'filter_',
|
1564 |
+
'query_type_'
|
1565 |
+
);
|
1566 |
+
|
1567 |
+
set1[ queryTypeParam ] = 'and';
|
1568 |
+
set2[ queryTypeParam ] = 'and';
|
1569 |
+
}
|
1570 |
+
}
|
1571 |
+
}
|
1572 |
+
|
1573 |
+
delete set2[ prop ];
|
1574 |
+
}
|
1575 |
+
}
|
1576 |
+
|
1577 |
+
$.extend( set1, set2 );
|
1578 |
+
|
1579 |
+
return set1;
|
1580 |
+
};
|
1581 |
+
|
1582 |
// let's start the game
|
1583 |
self._init();
|
1584 |
|
@@ -1 +1 @@
|
|
1 |
-
"use strict";function YITH_WCAN_Filter(e){const t=this;return t.xhr=null,t.doingAjax=!1,t.initialized=!1,t._init=function(){const i=e("head").html(),n=document.title,l=t.searchAlternativeUrl(i);l&&!t.doingAjax&&!t.initialized&&!yith_wcan_shortcodes.ajax_filters&&t.pushUrlToHistory(l,n),t.initialized=!0},t.doFilter=function(i,n,l){let o,a=e(n||"body");if(a&&t.block(a),o=t.buildUrl(i),yith_wcan_shortcodes.ajax_filters)return t.doingAjax=!0,t._doAjax(o).done((function(e){o=t.searchAlternativeUrl(e,o),t._beforeFilter(e,i),t.refreshFragments(n,l,e),t.pushUrlToHistory(o,e.pageTitle),a&&t.unblock(a),t._afterFilter(e,i),t.doingAjax=!1}));window.location=o},t._beforeFilter=function(t,i){e(document).trigger("yith-wcan-ajax-loading",[t,i])},t._afterFilter=function(t,i){e(".woocommerce-ordering").on("change","select.orderby",(function(){e(this).closest("form").submit()})),e(window).trigger("scroll"),e(document).trigger("yith-wcan-ajax-filtered",[t,i]).trigger("yith_wcwl_reload_fragments")},t.buildUrl=function(t){let i=yith_wcan_shortcodes.query_param,n={},l=window.location,o=yith_wcan_shortcodes.is_shop_on_front?yith_wcan_shortcodes.shop_url:l?.origin+l?.pathname,a="";if(yith_wcan_shortcodes.session_param&&(o=o.replace(new RegExp("/"+yith_wcan_shortcodes.session_param+"/[^/]*/"),"")),"object"!=typeof t||!Object.keys(t).length)return o;if(n[i]=1,l.search){const t=l.search.replace("?","").split("&").reduce(((e,t)=>{const i=t.split("=");return 2===i.length&&(e[i[0]]=i[1]),e}),{});n=e.extend(n,t)}return n=e.extend(n,t),a=Object.keys(n).reduce((function(e,t){const i=n[t];return i&&t?e+=encodeURIComponent(t)+"="+encodeURIComponent(i)+"&":e}),"?").replace(/&$/,"").replace(/%2B/,"+").replace(/%2C/,","),o+=a,o},t.searchAlternativeUrl=function(e,t=""){let i,n=t;return-1===e.indexOf("yith_wcan:sharing_url")||(i=e.match(/<meta name="yith_wcan:sharing_url" content="([^"]*)">/),n=1 in i?i[1]:n),n},t.pushUrlToHistory=function(e,t){yith_wcan_shortcodes.change_browser_url&&!navigator.userAgent.match(/msie/i)&&window.history.pushState({pageTitle:t},"",e)},t.refreshFragments=function(t,i,n){const l=document.createElement("html"),o=e(l);if(l.innerHTML=n,t){let n,l=e(i),a=e(t);l.length&&(n=o.find(i),n.length&&l.replaceWith(n)),a.length&&(n=o.find(t),n.length&&a.replaceWith(n))}else{const t=e(yith_wcan_shortcodes.content);t.length?t.replaceWith(o.find(yith_wcan_shortcodes.content)):e("body").replaceWith(o.find("body"))}e(document).trigger("yith_wcan_init_shortcodes")},t._doAjax=function(i,n){return t.xhr&&t.xhr.abort(),n=e.extend({url:i},n),t.xhr=e.ajax(n),t.xhr},t.block=function(t){if(void 0===e.fn.block)return;let i="#fff center center no-repeat";yith_wcan_shortcodes?.loader&&(i=`url('${yith_wcan_shortcodes.loader}') ${i}`),t.block({message:null,overlayCSS:{background:i,opacity:.7}})},t.unblock=function(t){void 0!==e.fn.unblock&&t.unblock()},t._init(),t}function YITH_WCAN_Preset(e,t){const i=this;return i.preset="#"+e.attr("id"),i.$preset=e,i.target=i.$preset.data("target"),i.$target=!!i.target&&t(i.target),i.$filters=!1,i.modalElements={},i.activeFilters=!1,i.isMobile=!1,i.sliderTimeout=!1,i._init=function(){i._initResponsive(),i._initFilters(),i._initFilterButton(),i._initActions(),i.$preset.data("preset",i).addClass("enhanced")},i._initFilters=function(){i.getFilters().each((function(){const e=t(this);i._initFilter(e)})),i.maybeShowClearAllFilters()},i._initFilterButton=function(){i.$preset.find(".apply-filters").on("click",(e=>{e.preventDefault(),i.filter()}))},i._initActions=function(){i.$preset.find("form").on("submit",(e=>{e.preventDefault()}))},i._initResponsive=function(){if(!yith_wcan_shortcodes.modal_on_mobile)return;const e=window.matchMedia(`(max-width: ${yith_wcan_shortcodes.mobile_media_query}px)`);t(window).on("resize",(function(){const t=!!e.matches;t!==i.isMobile&&(i.isMobile=t,i._afterLayoutChange())})).resize()},i._initFilter=function(e){const n=function(e){const n=t(this),l=n.closest(".yith-wcan-filter"),o=!!l.length&&"yes"===l.data("multiple"),a=n.closest(".filter-item"),s=a.length?l.find(".filter-item").not(a):[];if(a.is(".disabled")&&!a.is(".active"))return e.preventDefault(),!1;e.preventDefault(),s.length&&!o&&s.removeClass("active"),a.length&&a.toggleClass("active"),i.activeFilters=!1,i.maybeFilter(),i.maybeToggleClearAllFilters(),i.maybeToggleClearFilter(l)};e.find(".filter-item").not(".checkbox").not(".radio").on("click","a",(function(e){const i=t(this).closest(".filter-item");if(!t(e?.delegateTarget).is(i))return!1;n.call(this,e)})),e.find(":input").on("change",(function(e){const i=t(this),l=i.closest(".filter-item");if(l.is(".disabled")&&!l.is(".active"))return i.prop("checked",!1),!1;n.call(this,e)})),e.find("label > a").on("click",(function(e){const i=t(this),n=i.closest(".filter-item");if(e.preventDefault(),n.is(".disabled")&&!n.is(".active"))return!1;const l=i.parent().find(":input");(l.is('[type="radio"]')||l.is('[type="checkbox"]'))&&l.prop("checked",!l.prop("checked")),l.change()})),i._initTooltip(e),i._initPriceSlider(e),i._initDropdown(e),i._initCollapsable(e),i.maybeShowClearFilter(e),i.$preset?.hasClass("custom-style")&&i._initCustomInput(e)},i._initTooltip=function(e,i){e.find("[data-title]").each((function(){const e=t(this);!e.hasClass("tooltip-added")&&e.data("title")&&(e.on("mouseenter",(function(){let e=t(this),n=null,l=e.outerWidth(),o=0,a=0;if(!i||"top"!==i&&"right"!==i){const t=e.closest(".filter-item");i=t.hasClass("color")||t.hasClass("label")?"top":"right"}n=t("<span>",{class:"yith-wcan-tooltip",html:e.data("title")}),e.append(n),a=n.outerWidth()+6,n.outerWidth(a),o="top"===i?(l-a)/2:l+15,n.css({left:o.toFixed(0)+"px"}).fadeIn(200),e.addClass("with-tooltip")})).on("mouseleave",(function(){const e=t(this);e.find(".yith-wcan-tooltip").fadeOut(200,(function(){e.removeClass("with-tooltip").find(".yith-wcan-tooltip").remove()}))})),e.addClass("tooltip-added"))}))},i._initDropdown=function(e){const i=e.find("select.filter-dropdown");i.length&&(i.hasClass("select2-hidden-accessible")&&void 0!==t.fn.selectWoo&&i.selectWoo("destroy"),new YITH_WCAN_Dropdown(i,t,{paginate:!0,perPage:yith_wcan_shortcodes.terms_per_page}))},i._initPriceSlider=function(e){if(!e.hasClass("filter-price-slider"))return;const t=e.find(".price-slider"),n=t.find(".price-slider-min"),l=t.find(".price-slider-max"),o=parseFloat(t.data("min")),a=parseFloat(t.data("max")),s=parseFloat(n.val()),r=parseFloat(l.val()),c=parseFloat(t.data("step"));e.find(".price-slider-ui").ionRangeSlider({skin:"round",type:"double",min:o,max:a,step:c,from:s,to:r,min_interval:c,values_separator:" - ",prettify:e=>i.formatPrice(e),onChange:e=>{n.val(e.from),l.val(e.to)},onFinish:e=>{i.sliderTimeout&&clearTimeout(i.sliderTimeout),i.sliderTimeout=setTimeout((function(){i.maybeFilter()}),200)}})},i._initCollapsable=function(e){i._initTitleCollapsable(e),i._initHierarchyCollapsable(e)},i._initTitleCollapsable=function(e){const t=e.find(".collapsable");t.length&&i._initToggle(t,t,e.find(".filter-content"))},i._initHierarchyCollapsable=function(e){const n=e.find(".hierarchy-collapsable");if(!n.length)return;const l=e.find(".active");l.length&&(l.parents(".hierarchy-collapsable").removeClass("closed").addClass("opened"),l.hasClass("hierarchy-collapsable")&&yith_wcan_shortcodes.show_current_children&&l.removeClass("closed").addClass("opened")),n.each((function(){const e=t(this),n=t("<span/>",{class:"toggle-handle"});n.appendTo(e),i._initToggle(n,e,e.children("ul.filter-items"))}))},i._initToggle=function(e,t,i){t.hasClass("closed")&&i.hide(),e.off("click").on("click",(function(e){e.stopPropagation(),t.toggleClass("opened").toggleClass("closed"),i.slideToggle()}))},i._initCustomInput=function(e){e.find(":input").each((function(){let e,i=t(this),n=i.attr("type"),l=`${n}button`;"checkbox"!==n&&"radio"!==n||i.closest(`.${l}`).length||(i.is(":checked")&&(l+=" checked"),e=t("<span/>",{class:l}),i.wrap(e).on("change",(function(){const e=t(this);e.prop("checked")?e.parent().addClass("checked"):e.parent().removeClass("checked")})))}))},i._afterLayoutChange=function(){i.isMobile?(i.$preset.addClass("filters-modal").attr("role","dialog").attr("tabindex","-1").hide(),i._addCloseModalButton(),i._addApplyFiltersModalButton(),i._switchToCollapsables(),i.$preset.find(".apply-filters").hide()):(i.$preset.removeClass("filters-modal").removeClass("open").removeAttr("role").removeAttr("tabindex").show(),t("body").css("overflow","auto").removeClass("yith-wcan-preset-modal-open"),i._removeCloseModalButton(),i._removeApplyFiltersModalButton(),i._switchBackCollapsables(),i.$preset.find(".apply-filters").show())},i._addCloseModalButton=function(){const e=t("<a/>",{class:"close-button",html:"×","data-dismiss":"modal","aria-label":yith_wcan_shortcodes.labels.close});e.prependTo(i.$preset).on("click",i.closeModal),i.modalElements.closeButton=e},i._removeCloseModalButton=function(){i.modalElements?.closeButton?.remove()},i._addApplyFiltersModalButton=function(){const e=t("<button/>",{class:"apply-filters main-modal-button",html:yith_wcan_shortcodes.labels.show_results,"data-dismiss":"modal"});e.appendTo(i.$preset).on("click",(()=>{i.filter(),i.closeModal()})),i.modalElements.applyFiltersButton=e},i._removeApplyFiltersModalButton=function(){i.modalElements?.applyFiltersButton?.remove()},i._switchToCollapsables=function(){i.getFilters().each((function(){const e=t(this),n=e.find(".filter-title");n.length&&!n.hasClass("collapsable")&&(n.addClass("collapsable").data("disable-collapse",!0),i._initTitleCollapsable(e))}))},i._switchBackCollapsables=function(){i.getFilters().each((function(){const e=t(this),i=e.find(".filter-title");i.length&&i.hasClass("collapsable")&&i.data("disable-collapse")&&(i.removeClass("collapsable").removeData("disable-collapse",!0).off("click"),e.find(".filter-content").show())}))},i._closeAllCollapsables=function(){i.$filters.not(".no-title").find(".filter-content").hide().end().find(".filter-title").addClass("closed").removeClass("opened")},i.maybeFilter=function(){yith_wcan_shortcodes.instant_filters&&!i.isMobile?i.filter():i.isMobile&&(i.$preset.addClass("with-filter-button"),i.modalElements.applyFiltersButton?.show())},i.filter=function(){window?.product_filter?.doFilter(i.getFiltersProperties(),i.target,i.preset).done((()=>{let e=t(i.preset);if(!i.isMobile&&e.length&&yith_wcan_shortcodes.scroll_top){let i=e.offset().top;if(yith_wcan_shortcodes.scroll_target){const e=t(yith_wcan_shortcodes.scroll_target);i=e.length?e.offset().top:i}t("body, html").animate({scrollTop:i-100})}})),i.isMobile&&(i.$preset.removeClass("with-filter-button"),i.modalElements.applyFiltersButton?.hide())},i.getFilters=function(){return!1===i.$filters&&(i.$filters=i.$preset.find(".yith-wcan-filter")),i.$filters},i.getActiveFilters=function(){return!1===i.activeFilters&&(i.activeFilters=i.getFiltersProperties()),i.activeFilters},i.isAnyFilterActive=function(){return!!Object.keys(i.getActiveFilters()).length},i.isFilterActive=function(e){let t,n;switch(e.data("filter-type")){case"tax":const i=e.find(".filter-dropdown");if(i.length){const e=i.val();t="object"==typeof e?!!e?.length:!!e;break}case"price_range":case"stock_sale":t=e.find(".filter-item").filter(".active").length;break;case"review":t=!!e.find("select").val();break;case"price_slider":const n=parseFloat(e.find(".price-slider").data("min")),l=parseFloat(e.find(".price-slider").data("max")),o=parseFloat(e.find(".price-slider-min").val()),a=parseFloat(e.find(".price-slider-max").val());t=o>n||a<l;break;case"orderby":t="menu_order"!==e.find(".filter-order-by").val();break;default:t=!1}return n=e.triggerHandler("yith_wcan_is_filter_active",t,i),t=void 0!==n?n:t,t},i.getFilterProperties=function(e){let n,l,o={};switch(e.data("filter-type")){case"tax":let i=e.find(".filter-dropdown"),n=[],a=e.data("taxonomy"),s=0===a.indexOf("filter"),r="yes"===e.data("multiple"),c=e.data("relation");if(i.length?r?n=i.val():n.push(i.val()):(l=e.find(".filter-item").filter(".active").children("a, label"),n=l.get().reduce((function(e,i){let n;return n=(i=t(i)).is("label")?i.find(":input").val():i.data("term-slug"),n?(e.push(n),e):e}),n)),r){const e=s||"and"!==c?",":"+";o[a]=n.join(e)}else o[a]=n.pop();s&&(o[a.replace("filter_","query_type_")]=c);break;case"review":o.rating_filter=e.find("select").val();break;case"price_range":l=e.find(".filter-item").filter(".active").first().children("a"),o.min_price=parseFloat(l.data("range-min")),o.max_price=parseFloat(l.data("range-max"));break;case"price_slider":o.min_price=parseFloat(e.find(".price-slider-min").val()),o.max_price=parseFloat(e.find(".price-slider-max").val());break;case"stock_sale":e.find(".filter-on-sale").is(".active")&&(o.onsale_filter=1),e.find(".filter-in-stock").is(".active")&&(o.instock_filter=1);break;case"orderby":o.orderby=e.find(".filter-order-by").val()}return n=e.triggerHandler("yith_wcan_filter_properties",o,i),o=void 0!==n?n:o,o},i.getFiltersProperties=function(){const e={};return i.getFilters().each((function(){const n=t(this);i.isFilterActive(n)&&t.extend(e,i.getFilterProperties(n))})),e},i.getFiltersByProperties=function(e){return i.getFilters().filter((function(){const n=t(this);if(i.isFilterActive(n)){let t=i.getFilterProperties(n),l=!1;for(const i in e)if(void 0!==t[i]){l=!0;break}return l}return!1}))},i.maybeToggleClearFilter=function(e){i.isFilterActive(e)?i.maybeShowClearFilter(e):i.maybeHideClearFilter(e)},i.maybeToggleClearAllFilters=function(){i.isAnyFilterActive()?i.maybeShowClearAllFilters():i.maybeHideClearAllFilters()},i.maybeShowClearFilter=function(e){i.isFilterActive(e)&&yith_wcan_shortcodes.show_clear_filter&&(e.find(".clear-selection").remove(),t("<a/>",{class:"clear-selection",text:yith_wcan_shortcodes.labels.clear_selection,role:"button"}).prependTo(e.find(".filter-content")).on("click",(function(t){t.preventDefault(),i.deactivateFilter(e,!1,yith_wcan_shortcodes.instant_filters),i.maybeHideClearFilter(e),yith_wcan_shortcodes.instant_filters&&i.closeModal()})))},i.maybeShowClearAllFilters=function(){i.isAnyFilterActive()&&i.isMobile&&(i.$preset.find(".clear-selection").remove(),t("<a/>",{class:"clear-selection",text:yith_wcan_shortcodes.labels.clear_all_selections,role:"button"}).prependTo(i.$preset.find(".filters-container")).on("click",(function(e){e.preventDefault(),i.deactivateAllFilters(yith_wcan_shortcodes.instant_filters),i.maybeHideClearAllFilters(),yith_wcan_shortcodes.instant_filters&&i.closeModal()})))},i.maybeHideClearFilter=function(e){!i.isFilterActive(e)&&yith_wcan_shortcodes.show_clear_filter&&e.find(".clear-selection").remove()},i.maybeHideClearAllFilters=function(){i.isAnyFilterActive()||i.$preset.find(".filters-container").children(".clear-selection").remove()},i.deactivateFilter=function(e,n,l){const o=e.data("filter-type"),a=e.find(".filter-item"),s=a.filter(".active");switch(o){case"tax":const i=e.find(".filter-dropdown"),l=e.data("taxonomy");i.length?(n?i.find("option").each((function(){const e=t(this);e.val()===n[l]&&e.prop("selected",!1)})):i.find("option").prop("selected",!1),i.change()):n?s.each((function(){let e,i=t(this),o=i.children("label"),a=i.children("a");e=o.length?o.find(":input").val():a.data("term-slug"),e===n[l]&&(i.children("label").children("a").click(),i.removeClass("active"))})):(s.children("label").children("a").click(),s.removeClass("active"));break;case"price_slider":const o=e.find(".price-slider");e.find(".price-slider-min").val(o.data("min")),e.find(".price-slider-max").val(o.data("max")).change();break;case"orderby":e.find("select").val("menu_order");break;case"stock_sale":n?(n?.instock_filter&&e.find(".filter-in-stock").find(":input").prop("checked",!1).change().closest(".filter-item").removeClass("active"),n?.onsale_filter&&e.find(".filter-on-sale").find(":input").prop("checked",!1).change().closest(".filter-item").removeClass("active")):(e.find(".filter-in-stock").find(":input").prop("checked",!1).change(),e.find(".filter-on-sale").find(":input").prop("checked",!1).change(),a.removeClass("active"));break;case"review":e.find(".filter-dropdown").val("").change();break;default:a.removeClass("active")}i.activeFilters=!1,l&&i.filter()},i.deactivateAllFilters=function(e){i.getFilters().each((function(){const e=t(this);i.deactivateFilter(e)})),i.activeFilters=!1,e&&i.filter()},i.deactivateFilterByProperties=function(e,n){const l=i.getFiltersByProperties(e);l.length&&l.each((function(){const l=t(this);i.deactivateFilter(l,e,n)}))},i.openModal=function(){i.isMobile&&(i._closeAllCollapsables(),t("body").css("overflow","hidden").addClass("yith-wcan-preset-modal-open"),i.$preset.show(),setTimeout((()=>{i.$preset.addClass("open")}),100))},i.closeModal=function(){i.isMobile&&(i.$preset.removeClass("open"),setTimeout((()=>{i.$preset.hide(),t("body").css("overflow","auto").removeClass("yith-wcan-preset-modal-open")}),300))},i.formatPrice=function(e){return"undefined"!=typeof accounting&&(e=accounting.formatMoney(e,{symbol:yith_wcan_shortcodes.currency_format.symbol,decimal:yith_wcan_shortcodes.currency_format.decimal,thousand:yith_wcan_shortcodes.currency_format.thousand,precision:0,format:yith_wcan_shortcodes.currency_format.format})),e},i._init(),i}function YITH_WCAN_Filter_Labels(e,t){const i=this;return i.$label_set=e,i.$labels=!1,i._init=function(){i._initLabels(),i.$label_set.data("filter_labels",i).addClass("enhanced")},i._initLabels=function(){i.getLabels().each((function(){const e=t(this);i._initLabel(e)}))},i._initLabel=function(e){e.on("click",(()=>i.disableLabel(e)))},i.getLabels=function(){return!1===i.$labels&&(i.$labels=i.$label_set.find(".active-filter-label")),i.$labels},i.disableLabel=function(e){const i=e.data("filters");t(".yith-wcan-filters").each((function(){t(this).data("preset").deactivateFilterByProperties(i,!0)}))},i._init(),i}function YITH_WCAN_Reset_Button(e,t){const i=this;return i.$reset=e,i._init=function(){i.$reset.on("click",(function(e){e.preventDefault(),t(".yith-wcan-filters").each((function(){t(this).data("preset").deactivateAllFilters(!0)}))})),i.$reset.data("reset",i).addClass("enhanced")},i._init(),i}function YITH_WCAN_Modal_Opener(e,t){const i=this;return i.$button=e,i.preset=null,i.$preset=null,i.isMobile,i._init=function(){i._initPreset(),i._initResponsive(),i._initActions(),i.$button.data("modalOpener",i).addClass("enhanced")},i._initPreset=function(){let e,n=i.$button.data("target");e=t(n?`#${n}`:".yith-wcan-filters"),e.length&&(i.$preset=e.first(),i.preset=i.$preset.data("preset"))},i._initResponsive=function(){if(!yith_wcan_shortcodes.modal_on_mobile)return void i.$button.hide();const e=window.matchMedia(`(max-width: ${yith_wcan_shortcodes.mobile_media_query}px)`);t(window).on("resize",(function(){const t=!!e.matches;t!==i.isMobile&&(i.isMobile=t,i._afterLayoutChange())})).resize()},i._initActions=function(){i.$preset?.length&&i.$button.on("click",(function(e){e.preventDefault(),i.preset.openModal()}))},i._afterLayoutChange=function(){i.isMobile?i.$button.show():i.$button.hide()},i._init(),i}function YITH_WCAN_Dropdown(e,t,i){const n=this;return n.$origialSelect=e,n.$_main=null,n.$_label=null,n.$_dropdown=null,n.$_search=null,n.$_showMore=null,n.$_items=null,n.currentPage=1,n.options={},n._init=function(){if(!n.$origialSelect.is("select"))return;const e=n.$origialSelect.data("per_page"),l=n.$origialSelect.data("order"),o={showSearch:n.$origialSelect.data("show_search"),paginate:n.$origialSelect.data("paginate"),perPage:e||10,order:l||"ASC",getElements:null,labels:{emptyLabel:yith_wcan_shortcodes.labels.empty_option,searchPlaceholder:yith_wcan_shortcodes.labels.search_placeholder,noItemsFound:yith_wcan_shortcodes.labels.no_items,showMore:yith_wcan_shortcodes.labels.show_more}};n.options=t.extend(o,i),n._hideSelect(),n._initTemplate(),n._initActions(),n.$origialSelect.data("dropdown",n).addClass("enhanced")},n._hideSelect=function(){n.$origialSelect.hide()},n._initTemplate=function(){const e=t("<div/>",{class:"yith-wcan-dropdown closed"}),i=t("<div/>",{class:"dropdown-label",html:n.getLabel()}),l=t("<div>",{class:"dropdown-wrapper"}),o=t("<ul/>",{class:"matching-items filter-items"});l.append(o),e.append(i).append(l),n.options.showSearch&&n._initSearchTemplate(l),n.options.paginate&&n._initShowMoreTemplate(l),n.$origialSelect.after(e),n.$_main=e,n.$_label=i,n.$_dropdown=l,n.$_items=o},n._initSearchTemplate=function(e){const i=t("<div/>",{class:"search-field-container"}),l=t("<input/>",{name:"s",class:"search-field",type:"search",placeholder:n.options.labels.searchPlaceholder});i.append(l).prependTo(e),n.$_search=l},n._initShowMoreTemplate=function(e){const i=t("<a/>",{class:"show-more",text:n.options.labels.showMore.replace("%d",n.options.perPage)});i.on("click",n.loadNextPage).hide(),e.append(i),n.$_showMore=i},n._initActions=function(){n.$_main.on("click",(e=>{e.stopPropagation(),n.toggleDropdown()})),n.$_dropdown.on("click",(e=>{e.stopPropagation()})),n.$_search?.on("keyup search",(()=>{n._populateItems()})),n.$_items.on("change",":input",(function(){let e=t(this).closest("li"),i=e.data("value"),l=!1;if(e.hasClass("disabled")&&!n.isValueSelected(i))return!1;e.toggleClass("active"),l=e.hasClass("active"),n._changeItemStatus(i,l)})),n.$_items.on("click","li:not(.checkbox) a",(function(e){let i=t(this).closest("li"),l=i.data("value"),o=!1;if(e.preventDefault(),i.hasClass("disabled")&&!n.isValueSelected(l))return!1;i.toggleClass("active"),o=i.hasClass("active"),o&&i.siblings().removeClass("active"),n._changeItemStatus(l,o)})),n.$_items.on("click","label > a",(function(e){const i=t(this).parent().find(":input");e.preventDefault(),(i.is('[type="radio"]')||i.is('[type="checkbox"]'))&&i.prop("checked",!i.prop("checked")),i.change()})),n.$origialSelect.on("change",((e,i)=>{i||(n.$_items.find("li").each((function(){const e=t(this).data("value");n.isValueSelected(e)?n._selectItem(e):n._deselectItem(e)})),n.updateLabel())})),t(document).on("click",n.closeDropdown)},n.openDropdown=function(){n.$_main.addClass("open").removeClass("closed"),n._afterDropdownOpen()},n.closeDropdown=function(){n.$_main.removeClass("open").addClass("closed")},n._closeOtherDropdowns=function(){t(document).find("select.enhanced").filter((function(e,i){const l=t(i);return!!l.data("dropdown")&&!l.is(n.$origialSelect)})).each((function(){t(this).data("dropdown").closeDropdown()}))},n.toggleDropdown=function(){n.$_main.toggleClass("open").toggleClass("closed"),n.$_main.hasClass("open")&&n._afterDropdownOpen()},n._afterDropdownOpen=function(){n._closeOtherDropdowns(),n.$_search?.length&&n.$_search.val(""),n._populateItems()},n.getMatchingElements=function(e,i){let l,o=[],a=n.getOptions();return l=new Promise((l=>{a.each((function(){const i=t(this),n=i.val(),l=i.html(),a=new RegExp(".*"+e+".*","i");(!e||a.test(n)||a.test(l))&&o.push({value:n,label:l})})),n.options.getElements?n.options.getElements(e).then((e=>{e&&(e=e.reduce(((e,t,i)=>(e.push({label:i,value:t}),e)),[]),o=t.extend(o,e)),l(n._formatItems(o,i))})):l(n._formatItems(o,i))})),l},n._formatItems=function(e,t){let i=[],l=!1;return e.filter((e=>-1===i.indexOf(e.value)&&(i.push(e.value),!0))).sort(((e,t)=>{const i="ASC"===n.options.order?1:-1;return e.value<t.value?-1*i:e.value>t.value?i:0})),t&&(l=t<Object.keys(e).length,e=e.slice(0,t)),{items:e,hasMore:l}},n._generateItem=function(e,i){let l,o=n.isValueSelected(e),a=n.getOptionByValue(e),s=t("<li/>",{"data-value":e,class:a.length?a.attr("class"):""});if(a.length){const e=a.data("template"),t=a.data("count");i=e||i,t&&(i+=t)}if(l=t("<a/>",{href:a.length?a.data("filter_url"):"#",html:i,"data-title":a.length?a.data("title"):""}),n.$origialSelect.prop("multiple")){const i=t("<input/>",{type:"checkbox",value:e}),n=t("<label>");i.prop("checked",o),n.prepend(i).append(l),s.append(n).addClass("checkbox")}else s.append(l);return o?s.addClass("active"):s.removeClass("active"),s},n._populateItems=function(e){let i,l=n.$_search?.length?n.$_search.val():"",o=n.options.paginate?n.options.perPage:0;i=(e=e?parseInt(e):1)*o,n.getMatchingElements(l,i).then((function(i){let l=i.items,o=[],a=!1;if(n._emptyItems(),n._hideLoadMore(),l.length){for(const e of l)""===e.value?o.unshift(n._generateItem(e.value,e.label)):o.push(n._generateItem(e.value,e.label));n.currentPage=e,a=i.hasMore}else o.push(t("<li/>",{text:n.options.labels.noItemsFound})),n.currentPage=1;n.$_items.append(o),t(document).trigger("yith_wcan_dropdown_updated"),a&&n._showLoadMore()}))},n.loadNextPage=function(){const e=n.currentPage+1;n._populateItems(e)},n._selectItem=function(e){return n._changeItemStatus(e,!0)},n._deselectItem=function(e){return n._changeItemStatus(e,!1)},n._changeItemStatus=function(e,t){const i=n.$origialSelect.find(`option[value="${e}"]`);return!!i.length&&(i.prop("selected",t),n.closeDropdown(),n.updateLabel(),n.$origialSelect.trigger("change",[!0]),!0)},n._emptyItems=function(){n.$_items.html("")},n._showLoadMore=function(){n.$_showMore.show()},n._hideLoadMore=function(){n.$_showMore.hide()},n.getLabel=function(){return n.hasSelectedValues()?n.getSelectedLabels().join(", "):n.options.labels.emptyLabel},n.updateLabel=function(){const e=n.getLabel();n.$_label.html(e)},n.getOptions=function(){return n.$origialSelect.find("option")},n.hasSelectedValues=function(){return n.getSelectedOptions().length},n.isValueSelected=function(e){return-1!==n.getSelectedValues().indexOf(e)},n.getSelectedOptions=function(){return n.$origialSelect.find("option").filter(":selected")},n.getOptionByValue=function(e){return n.$origialSelect.find(`option[value="${e}"]`)},n.getSelectedLabels=function(){const e=[];return n.getSelectedOptions().each((function(){let i=t(this),n=i.data("template");n=n||i.html().replace(/\([0-9]*\)/,""),e.push(n)})),e},n.getSelectedValues=function(){const e=[];return n.getSelectedOptions().each((function(){e.push(t(this).val())})),e},n.destroy=function(){},n._init(),n}jQuery((function(e){e(document).on("yith_wcan_init_shortcodes yith_plugin_fw_gutenberg_success_do_shortcode",(function(){e(".yith-wcan-filters").not(".enhanced").each((function(){new YITH_WCAN_Preset(e(this),e)})),e(".yith-wcan-active-filters").not(".enhanced").each((function(){new YITH_WCAN_Filter_Labels(e(this),e)})),e(".yith-wcan-reset-filters").not(".enhanced").each((function(){new YITH_WCAN_Reset_Button(e(this),e)})),e(".yith-wcan-filters-opener").not(".enhanced").each((function(){new YITH_WCAN_Modal_Opener(e(this),e)}))})).trigger("yith_wcan_init_shortcodes"),globalThis.product_filter=new YITH_WCAN_Filter(e)}));
|
1 |
+
"use strict";function YITH_WCAN_Filter(e){const t=this;return t.xhr=null,t.doingAjax=!1,t.initialized=!1,t.originalSearch=!1,t._init=function(){const i=e("head").html(),n=document.title,l=t.searchAlternativeUrl(i);l&&!t.doingAjax&&!t.initialized&&!yith_wcan_shortcodes.ajax_filters&&t.pushUrlToHistory(l,n),t.originalSearch=location.search,t.initialized=!0},t.doFilter=function(i,n,l){let o,a=e(n||"body");if(a&&t.block(a),o=t.buildUrl(i),yith_wcan_shortcodes.ajax_filters)return t.doingAjax=!0,t._doAjax(o).done((function(e){o=t.searchAlternativeUrl(e,o),t._beforeFilter(e,i),t.refreshFragments(n,l,e),t.pushUrlToHistory(o,e.pageTitle),a&&t.unblock(a),t._afterFilter(e,i),t.doingAjax=!1}));window.location=o},t._beforeFilter=function(t,i){e(document).trigger("yith-wcan-ajax-loading",[t,i])},t._afterFilter=function(t,i){e(".woocommerce-ordering").on("change","select.orderby",(function(){e(this).closest("form").submit()})),e(window).trigger("scroll"),e(document).trigger("yith-wcan-ajax-filtered",[t,i]).trigger("yith_wcwl_reload_fragments")},t.buildUrl=function(i){let n=yith_wcan_shortcodes.query_param,l={},o=window.location,a=yith_wcan_shortcodes.base_url?yith_wcan_shortcodes.base_url:o?.origin+o?.pathname,s="";const r="object"==typeof i&&Object.keys(i).length;if(yith_wcan_shortcodes.session_param&&(a=a.replace(new RegExp("/"+yith_wcan_shortcodes.session_param+"/[^/]*/"),"")),r&&(l[n]=1),t.originalSearch){const i=t.originalSearch.replace("?","").split("&").reduce(((e,i)=>{const n=i.split("=");if(2===n.length){if(t.isFilterParam(n[0]))return e;e[n[0]]=n[1]}return e}),{});l=e.extend(l,i)}return r&&(l=e.extend(l,i)),s=Object.keys(l).reduce((function(e,t){const i=l[t];return i&&t?e+=encodeURIComponent(t)+"="+encodeURIComponent(i)+"&":e}),"?").replace(/&$/g,"").replace(/%2B/g,"+").replace(/%2C/g,","),s.length>1&&(a+=s),a},t.searchAlternativeUrl=function(e,t=""){let i,n=t;return-1===e.indexOf("yith_wcan:sharing_url")||(i=e.match(/<meta name="yith_wcan:sharing_url" content="([^"]*)">/),n=1 in i?i[1]:n),n},t.pushUrlToHistory=function(e,t){yith_wcan_shortcodes.change_browser_url&&!navigator.userAgent.match(/msie/i)&&window.history.pushState({pageTitle:t},"",e)},t.refreshFragments=function(t,i,n){const l=document.createElement("html"),o=e(l);if(l.innerHTML=n,t){let n,l=e(i),a=e(t);l.length&&(n=o.find(i),n.length&&l.replaceWith(n.first())),a.length&&(n=o.find(t),n.length&&a.replaceWith(n.first()))}else{const t=e(yith_wcan_shortcodes.content);t.length?t.replaceWith(o.find(yith_wcan_shortcodes.content)):e("body").replaceWith(o.find("body"))}e(document).trigger("yith_wcan_init_shortcodes")},t._doAjax=function(i,n){return t.xhr&&t.xhr.abort(),n=e.extend({url:i},n),t.xhr=e.ajax(n),t.xhr},t.block=function(t){if(void 0===e.fn.block)return;let i="#fff center center no-repeat";yith_wcan_shortcodes?.loader&&(i=`url('${yith_wcan_shortcodes.loader}') ${i}`),t.block({message:null,overlayCSS:{background:i,opacity:.7}})},t.unblock=function(t){void 0!==e.fn.unblock&&t.unblock()},t.isFilterParam=function(e){return-1!==["rating_filter","min_price","max_price","onsale_filter","instock_filter","orderby","product-page",yith_wcan_shortcodes.query_param].concat(yith_wcan_shortcodes.supported_taxonomies.map((e=>e.replace("pa_","filter_")))).indexOf(e)||(-1!==e.indexOf("filter_")||-1!==e.indexOf("query_type_"))},t._init(),t}function YITH_WCAN_Preset(e,t){const i=this;return i.preset="#"+e.attr("id"),i.$preset=e,i.target=i.$preset.data("target"),i.$target=!!i.target&&t(i.target),i.$filters=!1,i.$filterButtons=!1,i.modalElements={},i.activeFilters=!1,i.isMobile=!1,i.sliderTimeout=!1,i.originalFilters=null,i.dirty=!1,i._init=function(){i._regiterStatus(),i._initFilterButton(),i._initResponsive(),i._initFilters(),i._initActions(),i.$preset.data("preset",i).addClass("enhanced")},i._initFilters=function(){i.getFilters().each((function(){const e=t(this);i._initFilter(e)})),i.maybeShowClearAllFilters()},i._initFilterButton=function(){i.$filterButtons=i.$preset.find(".apply-filters"),i.$filterButtons.length&&i.$filterButtons.on("click",(e=>{e.preventDefault(),i.filter()})).hide()},i._initActions=function(){i.$preset.find("form").on("submit",(e=>{e.preventDefault()}))},i._initResponsive=function(){if(!yith_wcan_shortcodes.modal_on_mobile)return;const e=window.matchMedia(`(max-width: ${yith_wcan_shortcodes.mobile_media_query}px)`);t(window).on("resize",(function(){const t=!!e.matches;t!==i.isMobile&&(i.isMobile=t,i._afterLayoutChange())})).resize()},i._initFilter=function(e){const n=function(e){const n=t(this),l=n.closest(".yith-wcan-filter"),o=!!l.length&&"yes"===l.data("multiple"),a=n.closest(".filter-item"),s=a.length?l.find(".filter-item").not(a):[];if(a.is(".disabled")&&!a.is(".active"))return e.preventDefault(),!1;e.preventDefault(),s.length&&!o&&s.removeClass("active"),a.length&&a.toggleClass("active"),i.activeFilters=!1,i.maybeFilter(),i.maybeToggleClearAllFilters(),i.maybeToggleClearFilter(l)};e.find(".filter-item").not(".checkbox").not(".radio").on("click","a",(function(e){const i=t(this).closest(".filter-item");if(!t(e?.delegateTarget).is(i))return!1;n.call(this,e)})),e.find(":input").on("change",(function(e){const i=t(this),l=i.closest(".filter-item");if(l.is(".disabled")&&!l.is(".active"))return i.prop("checked",!1),!1;n.call(this,e)})),e.find("label > a").on("click",(function(e){const i=t(this),n=i.closest(".filter-item");if(e.preventDefault(),n.is(".disabled")&&!n.is(".active"))return!1;const l=i.parent().find(":input");(l.is('[type="radio"]')||l.is('[type="checkbox"]'))&&l.prop("checked",!l.prop("checked")),l.change()})),i._initTooltip(e),i._initPriceSlider(e),i._initDropdown(e),i._initCollapsable(e),i.maybeShowClearFilter(e),i.$preset?.hasClass("custom-style")&&i._initCustomInput(e)},i._initTooltip=function(e,i){e.find("[data-title]").each((function(){const e=t(this);!e.hasClass("tooltip-added")&&e.data("title")&&(e.on("mouseenter",(function(){let e=t(this),n=null,l=e.outerWidth(),o=0,a=0;if(!i||"top"!==i&&"right"!==i){const t=e.closest(".filter-item");i=t.hasClass("color")||t.hasClass("label")?"top":"right"}n=t("<span>",{class:"yith-wcan-tooltip",html:e.data("title")}),e.append(n),a=n.outerWidth()+6,n.outerWidth(a),o="top"===i?(l-a)/2:l+15,n.css({left:o.toFixed(0)+"px"}).fadeIn(200),e.addClass("with-tooltip")})).on("mouseleave",(function(){const e=t(this);e.find(".yith-wcan-tooltip").fadeOut(200,(function(){e.removeClass("with-tooltip").find(".yith-wcan-tooltip").remove()}))})),e.addClass("tooltip-added"))}))},i._initDropdown=function(e){const i=e.find("select.filter-dropdown");i.length&&(i.hasClass("select2-hidden-accessible")&&void 0!==t.fn.selectWoo&&i.selectWoo("destroy"),new YITH_WCAN_Dropdown(i,t,{paginate:!0,perPage:yith_wcan_shortcodes.terms_per_page}))},i._initPriceSlider=function(e){if(!e.hasClass("filter-price-slider"))return;const t=e.find(".price-slider"),n=t.find(".price-slider-min"),l=t.find(".price-slider-max"),o=parseFloat(t.data("min")),a=parseFloat(t.data("max")),s=parseFloat(n.val()),r=parseFloat(l.val()),c=parseFloat(t.data("step"));e.find(".price-slider-ui").ionRangeSlider({skin:"round",type:"double",min:o,max:a,step:c,from:s,to:r,min_interval:c,values_separator:" - ",prettify:e=>i.formatPrice(e),onChange:e=>{n.val(e.from),l.val(e.to)},onFinish:e=>{i.sliderTimeout&&clearTimeout(i.sliderTimeout),i.sliderTimeout=setTimeout((function(){i.maybeFilter()}),200)}})},i._initCollapsable=function(e){i._initTitleCollapsable(e),i._initHierarchyCollapsable(e)},i._initTitleCollapsable=function(e){const t=e.find(".collapsable");t.length&&i._initToggle(t,t,e.find(".filter-content"))},i._initHierarchyCollapsable=function(e){const n=e.find(".hierarchy-collapsable");if(!n.length)return;const l=e.find(".active");l.length&&(l.parents(".hierarchy-collapsable").removeClass("closed").addClass("opened"),l.hasClass("hierarchy-collapsable")&&yith_wcan_shortcodes.show_current_children&&l.removeClass("closed").addClass("opened")),n.each((function(){const e=t(this),n=t("<span/>",{class:"toggle-handle"});n.appendTo(e),i._initToggle(n,e,e.children("ul.filter-items"))}))},i._initToggle=function(e,t,i){t.hasClass("closed")&&i.hide(),e.off("click").on("click",(function(e){e.stopPropagation(),t.toggleClass("opened").toggleClass("closed"),i.slideToggle()}))},i._initCustomInput=function(e){e.find(":input").each((function(){let e,i=t(this),n=i.attr("type"),l=`${n}button`;"checkbox"!==n&&"radio"!==n||i.closest(`.${l}`).length||(i.is(":checked")&&(l+=" checked"),e=t("<span/>",{class:l}),i.wrap(e).on("change",(function(){const e=t(this);e.prop("checked")?e.parent().addClass("checked"):e.parent().removeClass("checked")})))}))},i._regiterStatus=function(){i.originalFilters=i.getFiltersProperties()},i._afterLayoutChange=function(){i.isMobile?(i.$preset.addClass("filters-modal").attr("role","dialog").attr("tabindex","-1").hide(),i._addCloseModalButton(),i._addApplyFiltersModalButton(),i._switchToCollapsables(),i.$filterButtons?.hide()):(i.$preset.removeClass("filters-modal").removeClass("open").removeAttr("role").removeAttr("tabindex").show(),t("body").css("overflow","auto").removeClass("yith-wcan-preset-modal-open"),i._removeCloseModalButton(),i._removeApplyFiltersModalButton(),i._switchBackCollapsables(),i.$filterButtons?.show())},i._addCloseModalButton=function(){const e=t("<a/>",{class:"close-button",html:"×","data-dismiss":"modal","aria-label":yith_wcan_shortcodes.labels.close});e.prependTo(i.$preset).on("click",i.closeModal),i.modalElements.closeButton=e},i._removeCloseModalButton=function(){i.modalElements?.closeButton?.remove()},i._addApplyFiltersModalButton=function(){const e=t("<button/>",{class:"apply-filters main-modal-button",html:yith_wcan_shortcodes.labels.show_results,"data-dismiss":"modal"});e.appendTo(i.$preset).on("click",(()=>{i.filter(),i.closeModal()})),i.modalElements.applyFiltersButton=e},i._removeApplyFiltersModalButton=function(){i.modalElements?.applyFiltersButton?.remove()},i._switchToCollapsables=function(){i.getFilters().each((function(){const e=t(this),n=e.find(".filter-title");n.length&&!n.hasClass("collapsable")&&(n.addClass("collapsable").data("disable-collapse",!0),i._initTitleCollapsable(e))}))},i._switchBackCollapsables=function(){i.getFilters().each((function(){const e=t(this),i=e.find(".filter-title");i.length&&i.hasClass("collapsable")&&i.data("disable-collapse")&&(i.removeClass("collapsable").removeData("disable-collapse",!0).off("click"),e.find(".filter-content").show())}))},i._closeAllCollapsables=function(){i.$filters.not(".no-title").not(((e,n)=>i.isFilterActive(t(n)))).find(".filter-content").hide().end().find(".filter-title").addClass("closed").removeClass("opened")},i.maybeRegisterStatusChange=function(){const e=i.getFiltersProperties(),t=JSON.stringify(e),n=JSON.stringify(i.originalFilters);i.dirty=t!==n},i.maybeFilter=function(){i.maybeRegisterStatusChange(),yith_wcan_shortcodes.instant_filters&&!i.isMobile?i.filter():yith_wcan_shortcodes.instant_filters||i.isMobile?i.isMobile&&i.dirty&&(i.$preset.addClass("with-filter-button"),i.modalElements.applyFiltersButton?.show()):i.dirty?i.$filterButtons?.show():i.$filterButtons?.hide()},i.filter=function(){window?.product_filter?.doFilter(i.getFiltersProperties(),i.target,i.preset).done((()=>{let e=t(i.preset);if(!i.isMobile&&e.length&&yith_wcan_shortcodes.scroll_top){let i=e.offset().top;if(yith_wcan_shortcodes.scroll_target){const e=t(yith_wcan_shortcodes.scroll_target);i=e.length?e.offset().top:i}t("body, html").animate({scrollTop:i-100})}i.originalFilters=i.getFiltersProperties(),i.dirty=!1})),i.isMobile&&(i.$preset.removeClass("with-filter-button"),i.modalElements.applyFiltersButton?.hide())},i.getFilters=function(){return!1===i.$filters&&(i.$filters=i.$preset.find(".yith-wcan-filter")),i.$filters},i.getActiveFilters=function(){return!1===i.activeFilters&&(i.activeFilters=i.getFiltersProperties()),i.activeFilters},i.isAnyFilterActive=function(){return!!Object.keys(i.getActiveFilters()).length},i.isFilterActive=function(e){let t,n;switch(e.data("filter-type")){case"tax":const i=e.find(".filter-dropdown");if(i.length){const e=i.val();t="object"==typeof e?!!e?.length:!!e;break}case"price_range":case"stock_sale":t=e.find(".filter-item").filter(".active").length;break;case"review":t=!!e.find("select").val();break;case"price_slider":const n=parseFloat(e.find(".price-slider").data("min")),l=parseFloat(e.find(".price-slider").data("max")),o=parseFloat(e.find(".price-slider-min").val()),a=parseFloat(e.find(".price-slider-max").val());t=o>n||a<l;break;case"orderby":t="menu_order"!==e.find(".filter-order-by").val();break;default:t=!1}return n=e.triggerHandler("yith_wcan_is_filter_active",t,i),t=void 0!==n?n:t,t},i.getFilterProperties=function(e){let n,l,o={};switch(e.data("filter-type")){case"tax":let i=e.find(".filter-dropdown"),n=[],a=e.data("taxonomy"),s=0===a.indexOf("filter"),r="yes"===e.data("multiple"),c=e.data("relation");if(i.length?r?n=i.val():n.push(i.val()):(l=e.find(".filter-item").filter(".active").children("a, label"),n=l.get().reduce((function(e,i){let n;return n=(i=t(i)).is("label")?i.find(":input").val():i.data("term-slug"),n?(e.push(n),e):e}),n)),r){const e=s||"and"!==c?",":"+";o[a]=n.join(e)}else o[a]=n.pop();s&&(o[a.replace("filter_","query_type_")]=c);break;case"review":o.rating_filter=e.find("select").val();break;case"price_range":l=e.find(".filter-item").filter(".active").first().children("a"),o.min_price=parseFloat(l.data("range-min")),o.max_price=parseFloat(l.data("range-max"));break;case"price_slider":o.min_price=parseFloat(e.find(".price-slider-min").val()),o.max_price=parseFloat(e.find(".price-slider-max").val());break;case"stock_sale":e.find(".filter-on-sale").is(".active")&&(o.onsale_filter=1),e.find(".filter-in-stock").is(".active")&&(o.instock_filter=1);break;case"orderby":o.orderby=e.find(".filter-order-by").val()}return n=e.triggerHandler("yith_wcan_filter_properties",o,i),o=void 0!==n?n:o,o},i.getFiltersProperties=function(){let e={};return i.getFilters().each((function(){const n=t(this);if(i.isFilterActive(n)){const t=i.getFilterProperties(n);e=i.mergeProperties(e,t,n)}})),e},i.getFiltersByProperties=function(e){return i.getFilters().filter((function(){const n=t(this);if(i.isFilterActive(n)){let t=i.getFilterProperties(n),l=!1;for(const i in e)if(void 0!==t[i]){l=!0;break}return l}return!1}))},i.maybeToggleClearFilter=function(e){i.isFilterActive(e)?i.maybeShowClearFilter(e):i.maybeHideClearFilter(e)},i.maybeToggleClearAllFilters=function(){i.isAnyFilterActive()?i.maybeShowClearAllFilters():i.maybeHideClearAllFilters()},i.maybeShowClearFilter=function(e){i.isFilterActive(e)&&yith_wcan_shortcodes.show_clear_filter&&(e.find(".clear-selection").remove(),t("<a/>",{class:"clear-selection",text:yith_wcan_shortcodes.labels.clear_selection,role:"button"}).prependTo(e.find(".filter-content")).on("click",(function(t){t.preventDefault(),i.deactivateFilter(e,!1,yith_wcan_shortcodes.instant_filters),i.maybeHideClearFilter(e),yith_wcan_shortcodes.instant_filters&&i.closeModal()})))},i.maybeShowClearAllFilters=function(){i.isAnyFilterActive()&&i.isMobile&&(i.$preset.find(".clear-selection").remove(),t("<a/>",{class:"clear-selection",text:yith_wcan_shortcodes.labels.clear_all_selections,role:"button"}).prependTo(i.$preset.find(".filters-container")).on("click",(function(e){e.preventDefault(),i.deactivateAllFilters(yith_wcan_shortcodes.instant_filters),i.maybeHideClearAllFilters(),yith_wcan_shortcodes.instant_filters&&i.closeModal()})))},i.maybeHideClearFilter=function(e){!i.isFilterActive(e)&&yith_wcan_shortcodes.show_clear_filter&&e.find(".clear-selection").remove()},i.maybeHideClearAllFilters=function(){i.isAnyFilterActive()||i.$preset.find(".filters-container").children(".clear-selection").remove()},i.deactivateFilter=function(e,n,l){const o=e.data("filter-type"),a=e.find(".filter-item"),s=a.filter(".active");switch(o){case"tax":const i=e.find(".filter-dropdown"),l=e.data("taxonomy");i.length?(n?i.find("option").each((function(){const e=t(this);e.val()===n[l]&&e.prop("selected",!1)})):i.find("option").prop("selected",!1),i.change()):n?s.each((function(){let e,i=t(this),o=i.children("label"),a=i.children("a");e=o.length?o.find(":input").val():a.data("term-slug"),e===n[l]&&(i.children("label").children("a").click(),i.removeClass("active"))})):(s.children("label").children("a").click(),s.removeClass("active"));break;case"price_slider":const o=e.find(".price-slider");e.find(".price-slider-min").val(o.data("min")),e.find(".price-slider-max").val(o.data("max")).change();break;case"orderby":e.find("select").val("menu_order");break;case"stock_sale":n?(n?.instock_filter&&e.find(".filter-in-stock").find(":input").prop("checked",!1).change().closest(".filter-item").removeClass("active"),n?.onsale_filter&&e.find(".filter-on-sale").find(":input").prop("checked",!1).change().closest(".filter-item").removeClass("active")):(e.find(".filter-in-stock").find(":input").prop("checked",!1).change(),e.find(".filter-on-sale").find(":input").prop("checked",!1).change(),a.removeClass("active"));break;case"review":e.find(".filter-dropdown").val("").change();break;default:a.removeClass("active")}i.activeFilters=!1,l&&i.filter()},i.deactivateAllFilters=function(e){i.getFilters().each((function(){const e=t(this);i.deactivateFilter(e)})),i.activeFilters=!1,e&&i.filter()},i.deactivateFilterByProperties=function(e,n){const l=i.getFiltersByProperties(e);l.length&&l.each((function(){const l=t(this);i.deactivateFilter(l,e,n)}))},i.openModal=function(){i.isMobile&&(i._closeAllCollapsables(),t("body").css("overflow","hidden").addClass("yith-wcan-preset-modal-open"),i.$preset.show(),setTimeout((()=>{i.$preset.addClass("open")}),100))},i.closeModal=function(){i.isMobile&&(i.$preset.removeClass("open"),setTimeout((()=>{i.$preset.hide(),t("body").css("overflow","auto").removeClass("yith-wcan-preset-modal-open")}),300))},i.formatPrice=function(e){return"undefined"!=typeof accounting&&(e=accounting.formatMoney(e,{symbol:yith_wcan_shortcodes.currency_format.symbol,decimal:yith_wcan_shortcodes.currency_format.decimal,thousand:yith_wcan_shortcodes.currency_format.thousand,precision:0,format:yith_wcan_shortcodes.currency_format.format})),e},i.mergeProperties=function(e,i,n){for(const t in i)if(i.hasOwnProperty(t)&&e[t]){switch(t){case"rating_filter":case"min_price":case"max_price":case"onsale_filter":case"instock_filter":case"orderby":e[t]=i[t];break;default:if(0===t.indexOf("query_type_"))e[t]=i[t];else{const n=0===t.indexOf("filter_"),l=n?",":"+";let o=e[t].replace(",",l)+l+i[t].replace(",",l);if(o=o.split(l).filter(((e,t,i)=>i.indexOf(e)===t)).join(l),e[t]=o,n){const n=t.replace("filter_","query_type_");e[n]="and",i[n]="and"}}}delete i[t]}return t.extend(e,i),e},i._init(),i}function YITH_WCAN_Filter_Labels(e,t){const i=this;return i.$label_set=e,i.$labels=!1,i._init=function(){i._initLabels(),i.$label_set.data("filter_labels",i).addClass("enhanced")},i._initLabels=function(){i.getLabels().each((function(){const e=t(this);i._initLabel(e)}))},i._initLabel=function(e){e.on("click",(()=>i.disableLabel(e)))},i.getLabels=function(){return!1===i.$labels&&(i.$labels=i.$label_set.find(".active-filter-label")),i.$labels},i.disableLabel=function(e){const i=e.data("filters");t(".yith-wcan-filters").each((function(){t(this).data("preset").deactivateFilterByProperties(i,!0)}))},i._init(),i}function YITH_WCAN_Reset_Button(e,t){const i=this;return i.$reset=e,i._init=function(){i.$reset.on("click",(function(e){e.preventDefault(),t(".yith-wcan-filters").each((function(){t(this).data("preset").deactivateAllFilters(!0)}))})),i.$reset.data("reset",i).addClass("enhanced")},i._init(),i}function YITH_WCAN_Modal_Opener(e,t){const i=this;return i.$button=e,i.preset=null,i.$preset=null,i.isMobile,i._init=function(){i._initPreset(),i._initResponsive(),i._initActions(),i.$button.data("modalOpener",i).addClass("enhanced")},i._initPreset=function(){let e,n=i.$button.data("target");e=t(n?`#${n}`:".yith-wcan-filters"),e.length&&(i.$preset=e.first(),i.preset=i.$preset.data("preset"))},i._initResponsive=function(){if(!yith_wcan_shortcodes.modal_on_mobile)return void i.$button.hide();const e=window.matchMedia(`(max-width: ${yith_wcan_shortcodes.mobile_media_query}px)`);t(window).on("resize",(function(){const t=!!e.matches;t!==i.isMobile&&(i.isMobile=t,i._afterLayoutChange())})).resize()},i._initActions=function(){i.$preset?.length&&i.$button.on("click",(function(e){e.preventDefault(),i.preset.openModal()}))},i._afterLayoutChange=function(){i.isMobile?i.$button.show():i.$button.hide()},i._init(),i}function YITH_WCAN_Dropdown(e,t,i){const n=this;return n.$origialSelect=e,n.$_main=null,n.$_label=null,n.$_dropdown=null,n.$_search=null,n.$_showMore=null,n.$_items=null,n.currentPage=1,n.options={},n._init=function(){if(!n.$origialSelect.is("select"))return;const e=n.$origialSelect.data("per_page"),l=n.$origialSelect.data("order"),o={showSearch:n.$origialSelect.data("show_search"),paginate:n.$origialSelect.data("paginate"),perPage:e||10,order:l||"ASC",getElements:null,labels:{emptyLabel:yith_wcan_shortcodes.labels.empty_option,searchPlaceholder:yith_wcan_shortcodes.labels.search_placeholder,noItemsFound:yith_wcan_shortcodes.labels.no_items,showMore:yith_wcan_shortcodes.labels.show_more}};n.options=t.extend(o,i),n._hideSelect(),n._initTemplate(),n._initActions(),n.$origialSelect.data("dropdown",n).addClass("enhanced")},n._hideSelect=function(){n.$origialSelect.hide()},n._initTemplate=function(){const e=t("<div/>",{class:"yith-wcan-dropdown closed"}),i=t("<div/>",{class:"dropdown-label",html:n.getLabel()}),l=t("<div>",{class:"dropdown-wrapper"}),o=t("<ul/>",{class:"matching-items filter-items"});l.append(o),e.append(i).append(l),n.options.showSearch&&n._initSearchTemplate(l),n.options.paginate&&n._initShowMoreTemplate(l),n.$origialSelect.after(e),n.$_main=e,n.$_label=i,n.$_dropdown=l,n.$_items=o},n._initSearchTemplate=function(e){const i=t("<div/>",{class:"search-field-container"}),l=t("<input/>",{name:"s",class:"search-field",type:"search",placeholder:n.options.labels.searchPlaceholder});i.append(l).prependTo(e),n.$_search=l},n._initShowMoreTemplate=function(e){const i=t("<a/>",{class:"show-more",text:n.options.labels.showMore.replace("%d",n.options.perPage)});i.on("click",n.loadNextPage).hide(),e.append(i),n.$_showMore=i},n._initActions=function(){n.$_main.on("click",(e=>{e.stopPropagation(),n.toggleDropdown()})),n.$_dropdown.on("click",(e=>{e.stopPropagation()})),n.$_search?.on("keyup search",(()=>{n._populateItems()})),n.$_items.on("change",":input",(function(){let e=t(this).closest("li"),i=e.data("value"),l=!1;if(e.hasClass("disabled")&&!n.isValueSelected(i))return!1;e.toggleClass("active"),l=e.hasClass("active"),n._changeItemStatus(i,l)})),n.$_items.on("click","li:not(.checkbox) a",(function(e){let i=t(this).closest("li"),l=i.data("value"),o=!1;if(e.preventDefault(),i.hasClass("disabled")&&!n.isValueSelected(l))return!1;i.toggleClass("active"),o=i.hasClass("active"),o&&i.siblings().removeClass("active"),n._changeItemStatus(l,o)})),n.$_items.on("click","label > a",(function(e){const i=t(this).parent().find(":input");e.preventDefault(),(i.is('[type="radio"]')||i.is('[type="checkbox"]'))&&i.prop("checked",!i.prop("checked")),i.change()})),n.$origialSelect.on("change",((e,i)=>{i||(n.$_items.find("li").each((function(){const e=t(this).data("value");n.isValueSelected(e)?n._selectItem(e):n._deselectItem(e)})),n.updateLabel())})),t(document).on("click",n.closeDropdown)},n.openDropdown=function(){n.$_main.addClass("open").removeClass("closed"),n._afterDropdownOpen()},n.closeDropdown=function(){n.$_main.removeClass("open").addClass("closed")},n._closeOtherDropdowns=function(){t(document).find("select.enhanced").filter((function(e,i){const l=t(i);return!!l.data("dropdown")&&!l.is(n.$origialSelect)})).each((function(){t(this).data("dropdown").closeDropdown()}))},n.toggleDropdown=function(){n.$_main.toggleClass("open").toggleClass("closed"),n.$_main.hasClass("open")&&n._afterDropdownOpen()},n._afterDropdownOpen=function(){n._closeOtherDropdowns(),n.$_search?.length&&n.$_search.val(""),n._populateItems()},n.getMatchingElements=function(e,i){let l,o=[],a=n.getOptions();return l=new Promise((l=>{a.each((function(){const i=t(this),n=i.val(),l=i.html(),a=new RegExp(".*"+e+".*","i");(!e||a.test(n)||a.test(l))&&o.push({value:n,label:l})})),n.options.getElements?n.options.getElements(e).then((e=>{e&&(e=e.reduce(((e,t,i)=>(e.push({label:i,value:t}),e)),[]),o=t.extend(o,e)),l(n._formatItems(o,i))})):l(n._formatItems(o,i))})),l},n._formatItems=function(e,t){let i=[],l=!1;return e.filter((e=>-1===i.indexOf(e.value)&&(i.push(e.value),!0))).sort(((e,t)=>{const i="ASC"===n.options.order?1:-1;return e.value<t.value?-1*i:e.value>t.value?i:0})),t&&(l=t<Object.keys(e).length,e=e.slice(0,t)),{items:e,hasMore:l}},n._generateItem=function(e,i){let l,o=n.isValueSelected(e),a=n.getOptionByValue(e),s=t("<li/>",{"data-value":e,class:a.length?a.attr("class"):""});if(a.length){const e=a.data("template"),t=a.data("count");i=e||i,t&&(i+=t)}if(l=t("<a/>",{href:a.length?a.data("filter_url"):"#",html:i,"data-title":a.length?a.data("title"):""}),n.$origialSelect.prop("multiple")){const i=t("<input/>",{type:"checkbox",value:e}),n=t("<label>");i.prop("checked",o),n.prepend(i).append(l),s.append(n).addClass("checkbox")}else s.append(l);return o?s.addClass("active"):s.removeClass("active"),s},n._populateItems=function(e){let i,l=n.$_search?.length?n.$_search.val():"",o=n.options.paginate?n.options.perPage:0;i=(e=e?parseInt(e):1)*o,n.getMatchingElements(l,i).then((function(i){let l=i.items,o=[],a=!1;if(n._emptyItems(),n._hideLoadMore(),l.length){for(const e of l)""===e.value?o.unshift(n._generateItem(e.value,e.label)):o.push(n._generateItem(e.value,e.label));n.currentPage=e,a=i.hasMore}else o.push(t("<li/>",{text:n.options.labels.noItemsFound})),n.currentPage=1;n.$_items.append(o),t(document).trigger("yith_wcan_dropdown_updated"),a&&n._showLoadMore()}))},n.loadNextPage=function(){const e=n.currentPage+1;n._populateItems(e)},n._selectItem=function(e){return n._changeItemStatus(e,!0)},n._deselectItem=function(e){return n._changeItemStatus(e,!1)},n._changeItemStatus=function(e,t){const i=n.$origialSelect.find(`option[value="${e}"]`);return!!i.length&&(i.prop("selected",t),n.closeDropdown(),n.updateLabel(),n.$origialSelect.trigger("change",[!0]),!0)},n._emptyItems=function(){n.$_items.html("")},n._showLoadMore=function(){n.$_showMore.show()},n._hideLoadMore=function(){n.$_showMore.hide()},n.getLabel=function(){return n.hasSelectedValues()?n.getSelectedLabels().join(", "):n.options.labels.emptyLabel},n.updateLabel=function(){const e=n.getLabel();n.$_label.html(e)},n.getOptions=function(){return n.$origialSelect.find("option")},n.hasSelectedValues=function(){return n.getSelectedOptions().length},n.isValueSelected=function(e){return-1!==n.getSelectedValues().indexOf(e)},n.getSelectedOptions=function(){return n.$origialSelect.find("option").filter(":selected")},n.getOptionByValue=function(e){return n.$origialSelect.find(`option[value="${e}"]`)},n.getSelectedLabels=function(){const e=[];return n.getSelectedOptions().each((function(){let i=t(this),n=i.data("template");n=n||i.html().replace(/\([0-9]*\)/,""),e.push(n)})),e},n.getSelectedValues=function(){const e=[];return n.getSelectedOptions().each((function(){e.push(t(this).val())})),e},n.destroy=function(){},n._init(),n}jQuery((function(e){e(document).on("yith_wcan_init_shortcodes yith_plugin_fw_gutenberg_success_do_shortcode",(function(){e(".yith-wcan-filters").not(".enhanced").each((function(){new YITH_WCAN_Preset(e(this),e)})),e(".yith-wcan-active-filters").not(".enhanced").each((function(){new YITH_WCAN_Filter_Labels(e(this),e)})),e(".yith-wcan-reset-filters").not(".enhanced").each((function(){new YITH_WCAN_Reset_Button(e(this),e)})),e(".yith-wcan-filters-opener").not(".enhanced").each((function(){new YITH_WCAN_Modal_Opener(e(this),e)}))})).trigger("yith_wcan_init_shortcodes"),globalThis.product_filter=new YITH_WCAN_Filter(e)}));
|
@@ -12,8 +12,8 @@ $item_row_hover_border: #c4cfd3;
|
|
12 |
padding: 50px;
|
13 |
|
14 |
img {
|
15 |
-
width:
|
16 |
-
margin-bottom:
|
17 |
}
|
18 |
|
19 |
p span {
|
@@ -63,6 +63,8 @@ $item_row_hover_border: #c4cfd3;
|
|
63 |
|
64 |
@mixin item_row {
|
65 |
background: none;
|
|
|
|
|
66 |
box-shadow: 0 0 10px 0 rgba(167, 217, 236, 0.4);
|
67 |
|
68 |
// ro is a div
|
@@ -623,6 +625,27 @@ $item_row_hover_border: #c4cfd3;
|
|
623 |
border-color: $item_row_hover_border;
|
624 |
}
|
625 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
626 |
}
|
627 |
|
628 |
/* === Widget Area === */
|
12 |
padding: 50px;
|
13 |
|
14 |
img {
|
15 |
+
width: 90px;
|
16 |
+
margin-bottom: 15px;
|
17 |
}
|
18 |
|
19 |
p span {
|
63 |
|
64 |
@mixin item_row {
|
65 |
background: none;
|
66 |
+
border: 1px solid $item_row_border;
|
67 |
+
border-radius: 4px;
|
68 |
box-shadow: 0 0 10px 0 rgba(167, 217, 236, 0.4);
|
69 |
|
70 |
// ro is a div
|
625 |
border-color: $item_row_hover_border;
|
626 |
}
|
627 |
}
|
628 |
+
|
629 |
+
.load-more-filters {
|
630 |
+
display: block;
|
631 |
+
font-weight: 700;
|
632 |
+
margin: 20px 0;
|
633 |
+
padding: 20px 15px;
|
634 |
+
text-align: center;
|
635 |
+
text-decoration: none;
|
636 |
+
@include item_row;
|
637 |
+
|
638 |
+
&:hover {
|
639 |
+
background: $item_row_background;
|
640 |
+
}
|
641 |
+
}
|
642 |
+
|
643 |
+
#icl_div {
|
644 |
+
background-color: #f7f7f7;
|
645 |
+
padding: 20px 15px;
|
646 |
+
border-radius: 4px;
|
647 |
+
margin: 20px 0;
|
648 |
+
}
|
649 |
}
|
650 |
|
651 |
/* === Widget Area === */
|
@@ -100,6 +100,7 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
|
|
100 |
'change_preset_status' => wp_create_nonce( 'change_preset_status' ),
|
101 |
'search_term' => wp_create_nonce( 'search_term' ),
|
102 |
'save_preset_filter' => wp_create_nonce( 'save_preset_filter' ),
|
|
|
103 |
'delete_preset_filter' => wp_create_nonce( 'delete_preset_filter' ),
|
104 |
),
|
105 |
'messages' => array(
|
@@ -247,6 +248,15 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
|
|
247 |
);
|
248 |
}
|
249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
/**
|
251 |
* Return true if we're currently on plugin panel
|
252 |
*
|
@@ -502,12 +512,12 @@ if ( ! class_exists( 'YITH_WCAN_Admin' ) ) {
|
|
502 |
public function plugin_row_meta( $new_row_meta_args, $plugin_meta, $plugin_file, $plugin_data, $status, $init_file = 'YITH_WCAN_FREE_INIT' ) {
|
503 |
if ( defined( $init_file ) && constant( $init_file ) == $plugin_file ) {
|
504 |
$new_row_meta_args['slug'] = 'yith-woocommerce-ajax-product-filter';
|
505 |
-
}
|
506 |
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
|
|
511 |
}
|
512 |
|
513 |
return $new_row_meta_args;
|
100 |
'change_preset_status' => wp_create_nonce( 'change_preset_status' ),
|
101 |
'search_term' => wp_create_nonce( 'search_term' ),
|
102 |
'save_preset_filter' => wp_create_nonce( 'save_preset_filter' ),
|
103 |
+
'load_more_filters' => wp_create_nonce( 'load_more_filters' ),
|
104 |
'delete_preset_filter' => wp_create_nonce( 'delete_preset_filter' ),
|
105 |
),
|
106 |
'messages' => array(
|
248 |
);
|
249 |
}
|
250 |
|
251 |
+
/**
|
252 |
+
* Return panel page slug
|
253 |
+
*
|
254 |
+
* @return string Panel Slug.
|
255 |
+
*/
|
256 |
+
public function get_panel_page() {
|
257 |
+
return $this->_panel_page;
|
258 |
+
}
|
259 |
+
|
260 |
/**
|
261 |
* Return true if we're currently on plugin panel
|
262 |
*
|
512 |
public function plugin_row_meta( $new_row_meta_args, $plugin_meta, $plugin_file, $plugin_data, $status, $init_file = 'YITH_WCAN_FREE_INIT' ) {
|
513 |
if ( defined( $init_file ) && constant( $init_file ) == $plugin_file ) {
|
514 |
$new_row_meta_args['slug'] = 'yith-woocommerce-ajax-product-filter';
|
|
|
515 |
|
516 |
+
if ( 'YITH_WCAN_FREE_INIT' === $init_file ) {
|
517 |
+
$new_row_meta_args['support'] = array(
|
518 |
+
'url' => 'https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation',
|
519 |
+
);
|
520 |
+
}
|
521 |
}
|
522 |
|
523 |
return $new_row_meta_args;
|
@@ -199,6 +199,15 @@ if ( ! class_exists( 'YITH_WCAN_Filter' ) ) {
|
|
199 |
return ( $this->get_type() === $type || ( is_array( $type ) && in_array( $this->get_type(), $type, true ) ) );
|
200 |
}
|
201 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
/**
|
203 |
* Get taxonomy for the filter
|
204 |
*
|
@@ -1115,7 +1124,7 @@ if ( ! class_exists( 'YITH_WCAN_Filter' ) ) {
|
|
1115 |
|
1116 |
if ( $this->is_collapsable() ) {
|
1117 |
$additional_classes[] = 'collapsable';
|
1118 |
-
$additional_classes[] = $this->get_toggle_style();
|
1119 |
}
|
1120 |
|
1121 |
$additional_classes = implode( ' ', apply_filters( 'yith_wcan_filter_title_classes', $additional_classes, $this ) );
|
199 |
return ( $this->get_type() === $type || ( is_array( $type ) && in_array( $this->get_type(), $type, true ) ) );
|
200 |
}
|
201 |
|
202 |
+
/**
|
203 |
+
* Checks whether current filter is active
|
204 |
+
*
|
205 |
+
* @return bool Whether current filter is active.
|
206 |
+
*/
|
207 |
+
public function is_active() {
|
208 |
+
return YITH_WCAN_Query()->is_filtered_by( $this->type );
|
209 |
+
}
|
210 |
+
|
211 |
/**
|
212 |
* Get taxonomy for the filter
|
213 |
*
|
1124 |
|
1125 |
if ( $this->is_collapsable() ) {
|
1126 |
$additional_classes[] = 'collapsable';
|
1127 |
+
$additional_classes[] = $this->is_active() ? 'opened' : $this->get_toggle_style();
|
1128 |
}
|
1129 |
|
1130 |
$additional_classes = implode( ' ', apply_filters( 'yith_wcan_filter_title_classes', $additional_classes, $this ) );
|
@@ -83,11 +83,11 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
|
|
83 |
$this->_query = YITH_WCAN_Query();
|
84 |
|
85 |
// Legacy query methods.
|
86 |
-
add_filter( 'the_posts', array( $this, 'the_posts' ), 15, 2 );
|
87 |
add_filter( 'woocommerce_layered_nav_link', 'yit_plus_character_hack', 99 );
|
88 |
add_filter( 'woocommerce_is_filtered', 'yit_is_filtered_uri', 20 );
|
89 |
|
90 |
if ( is_active_widget( false, false, 'yith-woo-ajax-navigation' ) ) {
|
|
|
91 |
add_filter( 'woocommerce_is_layered_nav_active', '__return_true' );
|
92 |
}
|
93 |
|
@@ -98,6 +98,7 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
|
|
98 |
|
99 |
// Template methods.
|
100 |
add_action( 'init', array( $this, 'add_reset_button' ) );
|
|
|
101 |
|
102 |
// YITH WCAN Loaded.
|
103 |
do_action( 'yith_wcan_loaded' );
|
@@ -538,54 +539,58 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
|
|
538 |
/**
|
539 |
* Returns an array of parameters to use to localize shortcodes script
|
540 |
*
|
|
|
541 |
* @return array Array of parameters.
|
542 |
*/
|
543 |
-
protected function _get_shortcodes_localize() {
|
544 |
-
|
545 |
-
'
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
'
|
563 |
-
|
564 |
-
'
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
'
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
)
|
586 |
-
),
|
587 |
-
)
|
588 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
}
|
590 |
|
591 |
/**
|
@@ -744,8 +749,47 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
|
|
744 |
yith_wcan_get_template( 'filters/global/reset-filters.php', compact( 'preset' ) );
|
745 |
}
|
746 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
747 |
/* === UTILS METHODS === */
|
748 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
749 |
/**
|
750 |
* Returns an array of locations where items shown "Before products" should be hooked
|
751 |
*
|
@@ -759,17 +803,17 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
|
|
759 |
'yith_wcan_before_product_locations',
|
760 |
array(
|
761 |
// before shop.
|
762 |
-
array(
|
763 |
'hook' => 'woocommerce_before_shop_loop',
|
764 |
'priority' => 10 + $offset,
|
765 |
),
|
766 |
// before products shortcode.
|
767 |
-
array(
|
768 |
'hook' => 'woocommerce_shortcode_before_products_loop',
|
769 |
'priority' => 10 + $offset,
|
770 |
),
|
771 |
// before no_products template.
|
772 |
-
array(
|
773 |
'hook' => 'woocommerce_no_products_found',
|
774 |
'priority' => 5 + $offset,
|
775 |
),
|
83 |
$this->_query = YITH_WCAN_Query();
|
84 |
|
85 |
// Legacy query methods.
|
|
|
86 |
add_filter( 'woocommerce_layered_nav_link', 'yit_plus_character_hack', 99 );
|
87 |
add_filter( 'woocommerce_is_filtered', 'yit_is_filtered_uri', 20 );
|
88 |
|
89 |
if ( is_active_widget( false, false, 'yith-woo-ajax-navigation' ) ) {
|
90 |
+
add_filter( 'the_posts', array( $this, 'the_posts' ), 15, 2 );
|
91 |
add_filter( 'woocommerce_is_layered_nav_active', '__return_true' );
|
92 |
}
|
93 |
|
98 |
|
99 |
// Template methods.
|
100 |
add_action( 'init', array( $this, 'add_reset_button' ) );
|
101 |
+
add_action( 'woocommerce_shortcode_before_products_loop', array( $this, 'remove_duplicated_templates' ), 99, 1 );
|
102 |
|
103 |
// YITH WCAN Loaded.
|
104 |
do_action( 'yith_wcan_loaded' );
|
539 |
/**
|
540 |
* Returns an array of parameters to use to localize shortcodes script
|
541 |
*
|
542 |
+
* @param string $context What the value is for. Valid values are view and edit.
|
543 |
* @return array Array of parameters.
|
544 |
*/
|
545 |
+
protected function _get_shortcodes_localize( $context = 'view' ) {
|
546 |
+
$params = array(
|
547 |
+
'query_param' => YITH_WCAN_Query()->get_query_param(),
|
548 |
+
'supported_taxonomies' => array_keys( YITH_WCAN_Query()->get_supported_taxonomies() ),
|
549 |
+
'content' => apply_filters( 'yith_wcan_content_selector', '#content' ),
|
550 |
+
'change_browser_url' => true,
|
551 |
+
'instant_filters' => true,
|
552 |
+
'ajax_filters' => true,
|
553 |
+
'show_clear_filter' => false,
|
554 |
+
'scroll_top' => false,
|
555 |
+
'scroll_target' => false,
|
556 |
+
'modal_on_mobile' => false,
|
557 |
+
'session_param' => false,
|
558 |
+
'base_url' => $this->get_base_url( is_shop() ? yit_get_woocommerce_layered_nav_link() : '' ),
|
559 |
+
'terms_per_page' => apply_filters( 'yith_wcan_dropdown_terms_per_page', 10 ),
|
560 |
+
'loader' => false,
|
561 |
+
'mobile_media_query' => 991,
|
562 |
+
'show_current_children' => false,
|
563 |
+
'currency_format' => apply_filters(
|
564 |
+
'yith_wcan_shortcodes_script_currency_format',
|
565 |
+
array(
|
566 |
+
'symbol' => get_woocommerce_currency_symbol(),
|
567 |
+
'decimal' => esc_attr( wc_get_price_decimal_separator() ),
|
568 |
+
'thousand' => esc_attr( wc_get_price_thousand_separator() ),
|
569 |
+
'precision' => wc_get_price_decimals(),
|
570 |
+
'format' => esc_attr( str_replace( array( '%1$s', '%2$s' ), array( '%s', '%v' ), get_woocommerce_price_format() ) ),
|
571 |
+
)
|
572 |
+
),
|
573 |
+
'labels' => apply_filters(
|
574 |
+
'yith_wcan_shortcodes_script_labels',
|
575 |
+
array(
|
576 |
+
'empty_option' => _x( 'All', '[FRONTEND] "All" label shown when no term is selected', 'yith-woocommerce-ajax-navigation' ),
|
577 |
+
'search_placeholder' => _x( 'Search...', '[FRONTEND] Search placeholder shown in terms dropdown', 'yith-woocommerce-ajax-navigation' ),
|
578 |
+
'no_items' => _x( 'No item found', '[FRONTEND] Empty items list in the dropdown', 'yith-woocommerce-ajax-navigation' ),
|
579 |
+
// translators: 1. Number of items to show.
|
580 |
+
'show_more' => _x( 'Show %d more', '[FRONTEND] Show more link on terms dropdown', 'yith-woocommerce-ajax-navigation' ),
|
581 |
+
'close' => _x( 'Close', '[FRONTEND] Alt text for modal close button on mobile', 'yith-woocommerce-ajax-navigation' ),
|
582 |
+
'show_results' => _x( 'Show results', '[FRONTEND] Label for filter button, on mobile modal', 'yith-woocommerce-ajax-navigation' ),
|
583 |
+
'clear_selection' => _x( 'Clear', '[FRONTEND] Label for clear selection link, that appears above filter after selection', 'yith-woocommerce-ajax-navigation' ),
|
584 |
+
'clear_all_selections' => _x( 'Clear All', '[FRONTEND] Label for clear selection link, that appears above filter after selection', 'yith-woocommerce-ajax-navigation' ),
|
585 |
+
)
|
586 |
+
),
|
|
|
|
|
|
|
587 |
);
|
588 |
+
|
589 |
+
if ( 'view' === $context ) {
|
590 |
+
return apply_filters( 'yith_wcan_shortcodes_script_args', $params );
|
591 |
+
}
|
592 |
+
|
593 |
+
return $params;
|
594 |
}
|
595 |
|
596 |
/**
|
749 |
yith_wcan_get_template( 'filters/global/reset-filters.php', compact( 'preset' ) );
|
750 |
}
|
751 |
|
752 |
+
/**
|
753 |
+
* Remove duplicated templates before products shortcode
|
754 |
+
*
|
755 |
+
* When paginating shortcode, WC will execute both woocommerce_shortcode_before_products_loop and
|
756 |
+
* woocommerce_before_shop_loop; in order to avoid to print filter templates twice, we listeb for first event
|
757 |
+
* and remove_action from the second, when pagination is enabled
|
758 |
+
*
|
759 |
+
* @param array $shortcode_settings Array of shortcode configuration.
|
760 |
+
* @return void
|
761 |
+
*/
|
762 |
+
public function remove_duplicated_templates( $shortcode_settings = array() ) {
|
763 |
+
if ( ! wc_string_to_bool( $shortcode_settings['paginate'] ) ) {
|
764 |
+
return;
|
765 |
+
}
|
766 |
+
|
767 |
+
$locations = $this->get_before_product_locations( 2 );
|
768 |
+
|
769 |
+
if ( ! isset( $locations['before_shop'] ) ) {
|
770 |
+
return;
|
771 |
+
}
|
772 |
+
|
773 |
+
remove_action( $locations['before_shop']['hook'], array( $this, 'reset_button' ), $locations['before_shop']['priority'] );
|
774 |
+
}
|
775 |
+
|
776 |
/* === UTILS METHODS === */
|
777 |
|
778 |
+
/**
|
779 |
+
* Returns base url for filtering
|
780 |
+
*
|
781 |
+
* @param string $base_url Base url; if none passed, try to calculate it.
|
782 |
+
*
|
783 |
+
* @return string Base url for filters.
|
784 |
+
*/
|
785 |
+
public function get_base_url( $base_url = '' ) {
|
786 |
+
$base_url = ! ! $base_url ? $base_url : get_pagenum_link(); // remove page param.
|
787 |
+
$base_url = preg_replace( '/\?.*/', '', $base_url ); // remove query string.
|
788 |
+
$base_url = trailingslashit( $base_url ); // add trailing slash.
|
789 |
+
|
790 |
+
return apply_filters( 'yith_wcan_base_url', $base_url );
|
791 |
+
}
|
792 |
+
|
793 |
/**
|
794 |
* Returns an array of locations where items shown "Before products" should be hooked
|
795 |
*
|
803 |
'yith_wcan_before_product_locations',
|
804 |
array(
|
805 |
// before shop.
|
806 |
+
'before_shop' => array(
|
807 |
'hook' => 'woocommerce_before_shop_loop',
|
808 |
'priority' => 10 + $offset,
|
809 |
),
|
810 |
// before products shortcode.
|
811 |
+
'shortcode_before_products' => array(
|
812 |
'hook' => 'woocommerce_shortcode_before_products_loop',
|
813 |
'priority' => 10 + $offset,
|
814 |
),
|
815 |
// before no_products template.
|
816 |
+
'no_products_found' => array(
|
817 |
'hook' => 'woocommerce_no_products_found',
|
818 |
'priority' => 5 + $offset,
|
819 |
),
|
@@ -83,5 +83,21 @@ if ( ! class_exists( 'YITH_WCAN_Preset_Factory' ) ) {
|
|
83 |
return false;
|
84 |
}
|
85 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
}
|
87 |
}
|
83 |
return false;
|
84 |
}
|
85 |
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
* Queries database, to retrieve all presets matching arguments passed
|
89 |
+
*
|
90 |
+
* @return array|bool List of preset_id => preset_name, or false on failure.
|
91 |
+
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
92 |
+
*/
|
93 |
+
public static function list_presets() {
|
94 |
+
try {
|
95 |
+
$results = WC_Data_Store::load( 'filter_preset' )->items();
|
96 |
+
return apply_filters( 'yith_wcan_preset_list', $results );
|
97 |
+
} catch ( Exception $e ) {
|
98 |
+
wc_caught_exception( $e, __FUNCTION__, func_get_args() );
|
99 |
+
return false;
|
100 |
+
}
|
101 |
+
}
|
102 |
}
|
103 |
}
|
@@ -251,6 +251,15 @@ if ( ! class_exists( 'YITH_WCAN_Preset' ) ) {
|
|
251 |
|
252 |
/* === FILTERS METHODS === */
|
253 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
/**
|
255 |
* Check if preset has a filter with a specific id
|
256 |
*
|
@@ -278,16 +287,35 @@ if ( ! class_exists( 'YITH_WCAN_Preset' ) ) {
|
|
278 |
return ! ! $this->get_raw_filters( $context );
|
279 |
}
|
280 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
/**
|
282 |
* Returns raw array of filters (instead of objects). For internal use only
|
283 |
*
|
284 |
* @param string $context Context for the operation.
|
|
|
285 |
*
|
286 |
* @return array Array of filters.
|
287 |
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
288 |
*/
|
289 |
-
public function get_raw_filters( $context = 'view' ) {
|
290 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
}
|
292 |
|
293 |
/**
|
@@ -315,15 +343,37 @@ if ( ! class_exists( 'YITH_WCAN_Preset' ) ) {
|
|
315 |
return $results;
|
316 |
}
|
317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
/**
|
319 |
* Set filters for current preset
|
320 |
*
|
321 |
* @param array $filters Formatted array of filters.
|
|
|
322 |
*
|
323 |
* @return void
|
324 |
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
325 |
*/
|
326 |
-
public function set_filters( $filters ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
327 |
$this->set_prop( 'filters', $filters );
|
328 |
}
|
329 |
|
251 |
|
252 |
/* === FILTERS METHODS === */
|
253 |
|
254 |
+
/**
|
255 |
+
* Return number of filter pages available
|
256 |
+
*
|
257 |
+
* @return int nuber of pages
|
258 |
+
*/
|
259 |
+
public function get_pages() {
|
260 |
+
return ceil( $this->count_filters() / YITH_WCAN_Presets::FILTERS_PER_PAGE );
|
261 |
+
}
|
262 |
+
|
263 |
/**
|
264 |
* Check if preset has a filter with a specific id
|
265 |
*
|
287 |
return ! ! $this->get_raw_filters( $context );
|
288 |
}
|
289 |
|
290 |
+
/**
|
291 |
+
* Returns true if preset needs pagination
|
292 |
+
*
|
293 |
+
* @return bool Whether preset needs pagination or not.
|
294 |
+
*/
|
295 |
+
public function needs_pagination() {
|
296 |
+
return YITH_WCAN_Presets::FILTERS_PER_PAGE < $this->count_filters();
|
297 |
+
}
|
298 |
+
|
299 |
/**
|
300 |
* Returns raw array of filters (instead of objects). For internal use only
|
301 |
*
|
302 |
* @param string $context Context for the operation.
|
303 |
+
* @param int $page Page to retrieve; false if you want all filters (default: false).
|
304 |
*
|
305 |
* @return array Array of filters.
|
306 |
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
307 |
*/
|
308 |
+
public function get_raw_filters( $context = 'view', $page = false ) {
|
309 |
+
$filters = $this->get_prop( 'filters', $context );
|
310 |
+
|
311 |
+
// slice array according to offset a limit parameters.
|
312 |
+
if ( $page ) {
|
313 |
+
$limit = YITH_WCAN_Presets::FILTERS_PER_PAGE;
|
314 |
+
$offset = ( $page - 1 ) * $limit;
|
315 |
+
$filters = array_slice( $filters, $offset, $limit, true );
|
316 |
+
}
|
317 |
+
|
318 |
+
return $filters;
|
319 |
}
|
320 |
|
321 |
/**
|
343 |
return $results;
|
344 |
}
|
345 |
|
346 |
+
/**
|
347 |
+
* Count how many filters current preset have
|
348 |
+
*
|
349 |
+
* @return int Number of filters for this preset
|
350 |
+
*/
|
351 |
+
public function count_filters() {
|
352 |
+
return count( $this->get_raw_filters() );
|
353 |
+
}
|
354 |
+
|
355 |
/**
|
356 |
* Set filters for current preset
|
357 |
*
|
358 |
* @param array $filters Formatted array of filters.
|
359 |
+
* @param int $page Page to overwrite; false if the entire set should be overridden (default: false).
|
360 |
*
|
361 |
* @return void
|
362 |
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
363 |
*/
|
364 |
+
public function set_filters( $filters, $page = false ) {
|
365 |
+
if ( $page ) {
|
366 |
+
$original_filters = $this->get_raw_filters();
|
367 |
+
|
368 |
+
$limit = YITH_WCAN_Presets::FILTERS_PER_PAGE;
|
369 |
+
$tail = array_slice( $original_filters, $page * $limit, count( $original_filters ), true );
|
370 |
+
|
371 |
+
$filters = array_merge(
|
372 |
+
$filters,
|
373 |
+
$tail
|
374 |
+
);
|
375 |
+
}
|
376 |
+
|
377 |
$this->set_prop( 'filters', $filters );
|
378 |
}
|
379 |
|
@@ -19,6 +19,13 @@ if ( ! class_exists( 'YITH_WCAN_Presets' ) ) {
|
|
19 |
*/
|
20 |
class YITH_WCAN_Presets {
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
/**
|
23 |
* Presets post type
|
24 |
*
|
@@ -61,6 +68,7 @@ if ( ! class_exists( 'YITH_WCAN_Presets' ) ) {
|
|
61 |
add_action( 'admin_action_yith_wcan_do_widget_upgrade', array( $this, 'do_widget_upgrade' ) );
|
62 |
|
63 |
// ajax actions.
|
|
|
64 |
add_action( 'wp_ajax_yith_wcan_change_preset_status', array( $this, 'change_preset_status' ) );
|
65 |
add_action( 'wp_ajax_yith_wcan_save_preset_filter', array( $this, 'save_preset_filter' ) );
|
66 |
add_action( 'wp_ajax_yith_wcan_delete_preset_filter', array( $this, 'delete_preset_filter' ) );
|
@@ -186,6 +194,7 @@ if ( ! class_exists( 'YITH_WCAN_Presets' ) ) {
|
|
186 |
*/
|
187 |
public function save_preset() {
|
188 |
$preset_id = isset( $_POST['id'] ) ? (int) $_POST['id'] : false;
|
|
|
189 |
$return_url = YITH_WCAN()->admin->get_panel_url();
|
190 |
|
191 |
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput
|
@@ -225,12 +234,8 @@ if ( ! class_exists( 'YITH_WCAN_Presets' ) ) {
|
|
225 |
}
|
226 |
|
227 |
if ( ! empty( $to_save ) ) {
|
228 |
-
$preset->set_filters( $to_save );
|
229 |
-
} else {
|
230 |
-
$preset->delete_filters();
|
231 |
}
|
232 |
-
} else {
|
233 |
-
$preset->delete_filters();
|
234 |
}
|
235 |
|
236 |
// save the preset.
|
@@ -641,6 +646,41 @@ if ( ! class_exists( 'YITH_WCAN_Presets' ) ) {
|
|
641 |
|
642 |
/* === AJAX ACTIONS === */
|
643 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
644 |
/**
|
645 |
* Change preset status when correct ajax call is invoked
|
646 |
*
|
19 |
*/
|
20 |
class YITH_WCAN_Presets {
|
21 |
|
22 |
+
/**
|
23 |
+
* Define how many unpaged filters should be shown on preset edit page
|
24 |
+
*
|
25 |
+
* @const int
|
26 |
+
*/
|
27 |
+
const FILTERS_PER_PAGE = 10;
|
28 |
+
|
29 |
/**
|
30 |
* Presets post type
|
31 |
*
|
68 |
add_action( 'admin_action_yith_wcan_do_widget_upgrade', array( $this, 'do_widget_upgrade' ) );
|
69 |
|
70 |
// ajax actions.
|
71 |
+
add_action( 'wp_ajax_yith_wcan_load_more_filters', array( $this, 'load_more_filters' ) );
|
72 |
add_action( 'wp_ajax_yith_wcan_change_preset_status', array( $this, 'change_preset_status' ) );
|
73 |
add_action( 'wp_ajax_yith_wcan_save_preset_filter', array( $this, 'save_preset_filter' ) );
|
74 |
add_action( 'wp_ajax_yith_wcan_delete_preset_filter', array( $this, 'delete_preset_filter' ) );
|
194 |
*/
|
195 |
public function save_preset() {
|
196 |
$preset_id = isset( $_POST['id'] ) ? (int) $_POST['id'] : false;
|
197 |
+
$paged = isset( $_POST['paged'] ) ? (int) $_POST['paged'] : false;
|
198 |
$return_url = YITH_WCAN()->admin->get_panel_url();
|
199 |
|
200 |
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput
|
234 |
}
|
235 |
|
236 |
if ( ! empty( $to_save ) ) {
|
237 |
+
$preset->set_filters( $to_save, $paged );
|
|
|
|
|
238 |
}
|
|
|
|
|
239 |
}
|
240 |
|
241 |
// save the preset.
|
646 |
|
647 |
/* === AJAX ACTIONS === */
|
648 |
|
649 |
+
/**
|
650 |
+
* Load more filters for a specific preset
|
651 |
+
*
|
652 |
+
* @return void
|
653 |
+
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
654 |
+
*/
|
655 |
+
public function load_more_filters() {
|
656 |
+
check_ajax_referer( 'load_more_filters' );
|
657 |
+
|
658 |
+
$preset = isset( $_GET['preset'] ) ? (int) $_GET['preset'] : false;
|
659 |
+
$page = isset( $_GET['page'] ) ? (int) $_GET['page'] : false;
|
660 |
+
|
661 |
+
if ( ! $preset ) {
|
662 |
+
die( '-1' );
|
663 |
+
}
|
664 |
+
|
665 |
+
$preset = YITH_WCAN_Preset_Factory::get_preset( $preset );
|
666 |
+
|
667 |
+
if ( ! $preset || ! $preset->current_user_can( 'load_filters' ) ) {
|
668 |
+
die( '-1' );
|
669 |
+
}
|
670 |
+
|
671 |
+
$filters = $preset->get_raw_filters( 'edit', $page );
|
672 |
+
$has_more = $page < $preset->get_pages();
|
673 |
+
|
674 |
+
wp_send_json(
|
675 |
+
array(
|
676 |
+
'filters' => $filters,
|
677 |
+
'has_more' => $has_more,
|
678 |
+
)
|
679 |
+
);
|
680 |
+
|
681 |
+
die;
|
682 |
+
}
|
683 |
+
|
684 |
/**
|
685 |
* Change preset status when correct ajax call is invoked
|
686 |
*
|
@@ -298,7 +298,7 @@ if ( ! class_exists( 'YITH_WCAN_Query' ) ) {
|
|
298 |
foreach ( $terms as $term_slug ) {
|
299 |
$term = get_term_by( 'slug', $term_slug, $taxonomy );
|
300 |
|
301 |
-
if ( ! $term || ( is_product_taxonomy() && $qo instanceof WP_Term && $qo->taxonomy === $taxonomy && $qo->slug === $term->slug ) ) {
|
302 |
continue;
|
303 |
}
|
304 |
|
@@ -483,15 +483,6 @@ if ( ! class_exists( 'YITH_WCAN_Query' ) ) {
|
|
483 |
return apply_filters( 'yith_wcan_should_process_query', $result, $query, $this );
|
484 |
}
|
485 |
|
486 |
-
/**
|
487 |
-
* Checks whether current view is applying any filter over eligible queries
|
488 |
-
*
|
489 |
-
* @return bool
|
490 |
-
*/
|
491 |
-
public function is_filtered() {
|
492 |
-
return $this->should_filter() && ! empty( $this->get_query_vars() );
|
493 |
-
}
|
494 |
-
|
495 |
/* === QUERY METHODS === */
|
496 |
|
497 |
/**
|
@@ -536,6 +527,9 @@ if ( ! class_exists( 'YITH_WCAN_Query' ) ) {
|
|
536 |
|
537 |
// during our filtering, WC blocks cannot use cached contents.
|
538 |
add_filter( 'woocommerce_blocks_product_grid_is_cacheable', '__return_false' );
|
|
|
|
|
|
|
539 |
}
|
540 |
|
541 |
/**
|
@@ -618,7 +612,17 @@ if ( ! class_exists( 'YITH_WCAN_Query' ) ) {
|
|
618 |
);
|
619 |
}
|
620 |
|
621 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
622 |
}
|
623 |
|
624 |
/**
|
@@ -905,6 +909,43 @@ if ( ! class_exists( 'YITH_WCAN_Query' ) ) {
|
|
905 |
|
906 |
/* === TEST METHODS === */
|
907 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
908 |
/**
|
909 |
* Checks whether we're currently filtering for a specific term, or if we're that term page
|
910 |
*
|
@@ -970,7 +1011,18 @@ if ( ! class_exists( 'YITH_WCAN_Query' ) ) {
|
|
970 |
if ( isset( $this->_products_per_filter[ $taxonomy ][ $term_id ] ) ) {
|
971 |
return $this->_products_per_filter[ $taxonomy ][ $term_id ];
|
972 |
} else {
|
973 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
974 |
|
975 |
if ( is_wp_error( $posts ) ) {
|
976 |
return array();
|
@@ -1011,9 +1063,28 @@ if ( ! class_exists( 'YITH_WCAN_Query' ) ) {
|
|
1011 |
$cache_version = WC_Cache_Helper::get_transient_version( 'product' );
|
1012 |
$cache_name = "yith_wcan_queried_products_{$cache_version}";
|
1013 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1014 |
return apply_filters( 'yith_wcan_queried_products_name', $cache_name );
|
1015 |
}
|
1016 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1017 |
/**
|
1018 |
* Returns name of the transient used to cache "in stock" products
|
1019 |
*
|
@@ -1023,6 +1094,13 @@ if ( ! class_exists( 'YITH_WCAN_Query' ) ) {
|
|
1023 |
$cache_version = WC_Cache_Helper::get_transient_version( 'product' );
|
1024 |
$cache_name = "yith_wcan_products_instock_{$cache_version}";
|
1025 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1026 |
return apply_filters( 'yith_wcan_products_instock_name', $cache_name );
|
1027 |
}
|
1028 |
|
@@ -1034,6 +1112,7 @@ if ( ! class_exists( 'YITH_WCAN_Query' ) ) {
|
|
1034 |
public function delete_transients() {
|
1035 |
delete_transient( $this->get_queried_products_transient_name() );
|
1036 |
delete_transient( $this->get_in_stock_products_transient_name() );
|
|
|
1037 |
|
1038 |
delete_transient( 'yith_wcan_exclude_from_catalog_product_ids' );
|
1039 |
}
|
@@ -1201,6 +1280,55 @@ if ( ! class_exists( 'YITH_WCAN_Query' ) ) {
|
|
1201 |
return $query;
|
1202 |
}
|
1203 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1204 |
/**
|
1205 |
* Query class Instance
|
1206 |
*
|
298 |
foreach ( $terms as $term_slug ) {
|
299 |
$term = get_term_by( 'slug', $term_slug, $taxonomy );
|
300 |
|
301 |
+
if ( ! $term || apply_filters( 'yith_wcan_remove_current_term_from_active_filters', is_product_taxonomy() && $qo instanceof WP_Term && $qo->taxonomy === $taxonomy && $qo->slug === $term->slug, $term->slug, $qo, $taxonomy ) ) {
|
302 |
continue;
|
303 |
}
|
304 |
|
483 |
return apply_filters( 'yith_wcan_should_process_query', $result, $query, $this );
|
484 |
}
|
485 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
486 |
/* === QUERY METHODS === */
|
487 |
|
488 |
/**
|
527 |
|
528 |
// during our filtering, WC blocks cannot use cached contents.
|
529 |
add_filter( 'woocommerce_blocks_product_grid_is_cacheable', '__return_false' );
|
530 |
+
|
531 |
+
// prevent redirect to product page while filtering a search page and getting a single result.
|
532 |
+
add_filter( 'woocommerce_redirect_single_search_result', '__return_false' );
|
533 |
}
|
534 |
|
535 |
/**
|
612 |
);
|
613 |
}
|
614 |
|
615 |
+
// Set visibility tax_query.
|
616 |
+
$product_visibility_term_ids = wc_get_product_visibility_term_ids();
|
617 |
+
|
618 |
+
$tax_query[] = array(
|
619 |
+
'taxonomy' => 'product_visibility',
|
620 |
+
'field' => 'term_taxonomy_id',
|
621 |
+
'terms' => is_search() ? $product_visibility_term_ids['exclude-from-search'] : $product_visibility_term_ids['exclude-from-catalog'],
|
622 |
+
'operator' => 'NOT IN',
|
623 |
+
);
|
624 |
+
|
625 |
+
return array_filter( apply_filters( 'yith_wcan_product_query_tax_query', $this->reduce_tax_query( $tax_query ), $this ) );
|
626 |
}
|
627 |
|
628 |
/**
|
909 |
|
910 |
/* === TEST METHODS === */
|
911 |
|
912 |
+
/**
|
913 |
+
* Checks whether current view is applying any filter over eligible queries
|
914 |
+
*
|
915 |
+
* @return bool
|
916 |
+
*/
|
917 |
+
public function is_filtered() {
|
918 |
+
return $this->should_filter() && ! empty( $this->get_query_vars() );
|
919 |
+
}
|
920 |
+
|
921 |
+
/**
|
922 |
+
* Returns true iw we're filtering for the specific parameter passed as argument
|
923 |
+
*
|
924 |
+
* @param string $param Parameter to search among query vars.
|
925 |
+
* @return bool Whether we're filtering for passed argument or not.
|
926 |
+
*/
|
927 |
+
public function is_filtered_by( $param ) {
|
928 |
+
$query_vars = $this->get_query_vars();
|
929 |
+
|
930 |
+
if ( 'tax' === $param ) {
|
931 |
+
$taxonomies = array_keys( $this->get_supported_taxonomies() );
|
932 |
+
|
933 |
+
foreach ( $taxonomies as & $taxonomy ) {
|
934 |
+
$taxonomy = str_replace( 'pa_', 'filter_', $taxonomy );
|
935 |
+
}
|
936 |
+
|
937 |
+
return is_tax() || ! ! array_intersect( array_keys( $query_vars ), $taxonomies );
|
938 |
+
}
|
939 |
+
|
940 |
+
$query_var = $param;
|
941 |
+
|
942 |
+
if ( in_array( $param, wc_get_attribute_taxonomy_names() ) ) {
|
943 |
+
$query_var = str_replace( 'pa_', 'filter_', $param );
|
944 |
+
}
|
945 |
+
|
946 |
+
return is_tax( $query_var ) || array_key_exists( $query_var, $query_vars );
|
947 |
+
}
|
948 |
+
|
949 |
/**
|
950 |
* Checks whether we're currently filtering for a specific term, or if we're that term page
|
951 |
*
|
1011 |
if ( isset( $this->_products_per_filter[ $taxonomy ][ $term_id ] ) ) {
|
1012 |
return $this->_products_per_filter[ $taxonomy ][ $term_id ];
|
1013 |
} else {
|
1014 |
+
$cache_name = $this->get_object_in_terms_transient_name();
|
1015 |
+
$stored_items = get_transient( $cache_name );
|
1016 |
+
|
1017 |
+
if ( is_array( $stored_items ) && isset( $stored_items[ $term_id ] ) ) {
|
1018 |
+
$posts = $stored_items[ $term_id ];
|
1019 |
+
} else {
|
1020 |
+
$posts = get_objects_in_term( $term_id, $taxonomy );
|
1021 |
+
|
1022 |
+
// save result set to stored queries.
|
1023 |
+
$stored_items[ $term_id ] = $posts;
|
1024 |
+
set_transient( $cache_name, $stored_items, apply_filters( 'yith_wcan_object_in_terms_expiration', 30 * DAY_IN_SECONDS ) );
|
1025 |
+
}
|
1026 |
|
1027 |
if ( is_wp_error( $posts ) ) {
|
1028 |
return array();
|
1063 |
$cache_version = WC_Cache_Helper::get_transient_version( 'product' );
|
1064 |
$cache_name = "yith_wcan_queried_products_{$cache_version}";
|
1065 |
|
1066 |
+
// WPML support.
|
1067 |
+
$current_lang = apply_filters( 'wpml_current_language', null );
|
1068 |
+
|
1069 |
+
if ( ! empty( $current_lang ) ) {
|
1070 |
+
$cache_name .= "_{$current_lang}";
|
1071 |
+
}
|
1072 |
+
|
1073 |
return apply_filters( 'yith_wcan_queried_products_name', $cache_name );
|
1074 |
}
|
1075 |
|
1076 |
+
/**
|
1077 |
+
* Returns name of the transient used to cache object in terms
|
1078 |
+
*
|
1079 |
+
* @return string Transient name.
|
1080 |
+
*/
|
1081 |
+
public function get_object_in_terms_transient_name() {
|
1082 |
+
$cache_version = WC_Cache_Helper::get_transient_version( 'product' );
|
1083 |
+
$cache_name = "yith_wcan_object_in_terms_{$cache_version}";
|
1084 |
+
|
1085 |
+
return apply_filters( 'yith_wcan_object_in_terms_name', $cache_name );
|
1086 |
+
}
|
1087 |
+
|
1088 |
/**
|
1089 |
* Returns name of the transient used to cache "in stock" products
|
1090 |
*
|
1094 |
$cache_version = WC_Cache_Helper::get_transient_version( 'product' );
|
1095 |
$cache_name = "yith_wcan_products_instock_{$cache_version}";
|
1096 |
|
1097 |
+
// WPML support.
|
1098 |
+
$current_lang = apply_filters( 'wpml_current_language', null );
|
1099 |
+
|
1100 |
+
if ( ! empty( $current_lang ) ) {
|
1101 |
+
$cache_name .= "_{$current_lang}";
|
1102 |
+
}
|
1103 |
+
|
1104 |
return apply_filters( 'yith_wcan_products_instock_name', $cache_name );
|
1105 |
}
|
1106 |
|
1112 |
public function delete_transients() {
|
1113 |
delete_transient( $this->get_queried_products_transient_name() );
|
1114 |
delete_transient( $this->get_in_stock_products_transient_name() );
|
1115 |
+
delete_transient( $this->get_object_in_terms_transient_name() );
|
1116 |
|
1117 |
delete_transient( 'yith_wcan_exclude_from_catalog_product_ids' );
|
1118 |
}
|
1280 |
return $query;
|
1281 |
}
|
1282 |
|
1283 |
+
/**
|
1284 |
+
* Merges together tax queries whenever possible, to avoid performing queries more complex than needed
|
1285 |
+
*
|
1286 |
+
* @param array $tax_queries Array of tax queries.
|
1287 |
+
* @return array Filtered array of tax queries.
|
1288 |
+
*/
|
1289 |
+
public function reduce_tax_query( $tax_queries ) {
|
1290 |
+
$result = array();
|
1291 |
+
$queries = array();
|
1292 |
+
$relation = 'AND';
|
1293 |
+
|
1294 |
+
if ( isset( $tax_queries['relation'] ) ) {
|
1295 |
+
$relation = $tax_queries['relation'];
|
1296 |
+
unset( $tax_queries['relation'] );
|
1297 |
+
}
|
1298 |
+
|
1299 |
+
if ( empty( $tax_queries ) ) {
|
1300 |
+
return $result;
|
1301 |
+
}
|
1302 |
+
|
1303 |
+
foreach ( $tax_queries as $tax_query ) {
|
1304 |
+
if ( ! is_array( $tax_query ) ) {
|
1305 |
+
continue;
|
1306 |
+
}
|
1307 |
+
|
1308 |
+
$taxonomy = isset( $tax_query['taxonomy'] ) ? $tax_query['taxonomy'] : false;
|
1309 |
+
$operator = isset( $tax_query['operator'] ) ? $tax_query['operator'] : 'IN';
|
1310 |
+
$field = isset( $tax_query['field'] ) ? $tax_query['field'] : 'term_id';
|
1311 |
+
$children = isset( $tax_query['include_children'] ) ? $tax_query['include_children'] : true;
|
1312 |
+
|
1313 |
+
$hash = "{$taxonomy}_{$operator}_{$field}_{$children}";
|
1314 |
+
|
1315 |
+
if ( ! isset( $queries[ $hash ] ) ) {
|
1316 |
+
$queries[ $hash ] = $tax_query;
|
1317 |
+
} else {
|
1318 |
+
$queries[ $hash ]['terms'] = array_unique( (array) $queries[ $hash ]['terms'] + (array) $tax_query['terms'] );
|
1319 |
+
}
|
1320 |
+
}
|
1321 |
+
|
1322 |
+
$result = array_merge(
|
1323 |
+
array(
|
1324 |
+
'relation' => $relation,
|
1325 |
+
),
|
1326 |
+
array_values( $queries )
|
1327 |
+
);
|
1328 |
+
|
1329 |
+
return $result;
|
1330 |
+
}
|
1331 |
+
|
1332 |
/**
|
1333 |
* Query class Instance
|
1334 |
*
|
@@ -120,7 +120,7 @@ if ( ! class_exists( 'YITH_WCAN' ) ) {
|
|
120 |
public function install() {
|
121 |
do_action( 'yith_wcan_before_init' );
|
122 |
|
123 |
-
$this->
|
124 |
$this->init();
|
125 |
|
126 |
$this->load_compatibilities();
|
@@ -136,7 +136,7 @@ if ( ! class_exists( 'YITH_WCAN' ) ) {
|
|
136 |
* @since 1.4
|
137 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
138 |
*/
|
139 |
-
public function
|
140 |
$required = apply_filters(
|
141 |
'yith_wcan_required_files',
|
142 |
array(
|
@@ -159,6 +159,12 @@ if ( ! class_exists( 'YITH_WCAN' ) ) {
|
|
159 |
foreach ( $required as $file ) {
|
160 |
file_exists( YITH_WCAN_INC . $file ) && require_once( YITH_WCAN_INC . $file );
|
161 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
}
|
163 |
|
164 |
/**
|
@@ -353,6 +359,9 @@ if ( ! class_exists( 'YITH_WCAN' ) ) {
|
|
353 |
'qtranslate-x' => array(
|
354 |
'check' => array( 'class_exists', array( 'QTX_Translator' ) ),
|
355 |
),
|
|
|
|
|
|
|
356 |
);
|
357 |
}
|
358 |
|
120 |
public function install() {
|
121 |
do_action( 'yith_wcan_before_init' );
|
122 |
|
123 |
+
$this->require_files();
|
124 |
$this->init();
|
125 |
|
126 |
$this->load_compatibilities();
|
136 |
* @since 1.4
|
137 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
138 |
*/
|
139 |
+
public function require_files() {
|
140 |
$required = apply_filters(
|
141 |
'yith_wcan_required_files',
|
142 |
array(
|
159 |
foreach ( $required as $file ) {
|
160 |
file_exists( YITH_WCAN_INC . $file ) && require_once( YITH_WCAN_INC . $file );
|
161 |
}
|
162 |
+
|
163 |
+
// basic cli support.
|
164 |
+
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
165 |
+
file_exists( YITH_WCAN_DIR . 'includes/wp-cli/class.yith-wcan-cli-commands.php' ) && require_once YITH_WCAN_DIR . 'includes/wp-cli/class.yith-wcan-cli-commands.php';
|
166 |
+
file_exists( YITH_WCAN_DIR . 'tests/wp-cli/class.yith-wcan-cli-test-commands.php' ) && require_once YITH_WCAN_DIR . 'tests/wp-cli/class.yith-wcan-cli-test-commands.php';
|
167 |
+
}
|
168 |
}
|
169 |
|
170 |
/**
|
359 |
'qtranslate-x' => array(
|
360 |
'check' => array( 'class_exists', array( 'QTX_Translator' ) ),
|
361 |
),
|
362 |
+
'wpml' => array(
|
363 |
+
'check' => array( 'class_exists', array( 'Sitepress' ) ),
|
364 |
+
),
|
365 |
);
|
366 |
}
|
367 |
|
@@ -0,0 +1,271 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* WPML plugin support
|
4 |
+
*
|
5 |
+
* @author YITH
|
6 |
+
* @package YITH WooCommerce Ajax Product FIlter
|
7 |
+
* @version 4.0.1
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'YITH_WCAN' ) ) {
|
11 |
+
exit;
|
12 |
+
} // Exit if accessed directly
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Class that adds WPML Metabox to preset view
|
16 |
+
*
|
17 |
+
* @since 4.0.3
|
18 |
+
*/
|
19 |
+
class WPML_Language_Metabox {
|
20 |
+
/**
|
21 |
+
* Instance of Sitepress.
|
22 |
+
*
|
23 |
+
* @var \SitePress
|
24 |
+
*/
|
25 |
+
private $sitepress;
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Instance of $wpml_post_translations.
|
29 |
+
*
|
30 |
+
* @var \WPML_post_translation
|
31 |
+
*/
|
32 |
+
private $wpml_post_translations;
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Panel page
|
36 |
+
*
|
37 |
+
* @var string
|
38 |
+
*/
|
39 |
+
private $panel_slug;
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Language_Metabox constructor.
|
43 |
+
*
|
44 |
+
* @param \SitePress $sitepress An instance of SitePress class.
|
45 |
+
* @param \WPML_post_translation $wpml_post_translations An instance of WPML_post_translation class.
|
46 |
+
*/
|
47 |
+
public function __construct( \SitePress $sitepress, \WPML_post_translation $wpml_post_translations ) {
|
48 |
+
$this->sitepress = $sitepress;
|
49 |
+
$this->wpml_post_translations = $wpml_post_translations;
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Adds the actions and filters.
|
54 |
+
*/
|
55 |
+
public function add_hooks() {
|
56 |
+
add_filter( 'wpml_enable_language_meta_box', array( $this, 'wpml_enable_language_meta_box_filter' ) );
|
57 |
+
add_action( 'yith_wcan_preset_edit_after_filters', array( $this, 'add_language_meta_box' ) );
|
58 |
+
add_filter( 'wpml_link_to_translation', array( $this, 'link_to_translation' ), 10, 4 );
|
59 |
+
add_filter( 'wpml_admin_language_switcher_items', array( $this, 'admin_language_switcher_items' ) );
|
60 |
+
add_action( 'icl_make_duplicate', array( $this, 'fix_duplicated_preset' ), 10, 4 );
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Enable metabox for preset post type
|
65 |
+
*
|
66 |
+
* @param bool $enable Whether to show metabox or not.
|
67 |
+
*
|
68 |
+
* @return bool Whether to show metabox or not.
|
69 |
+
*/
|
70 |
+
public function wpml_enable_language_meta_box_filter( $enable ) {
|
71 |
+
if ( $this->is_preset_page() ) {
|
72 |
+
$enable = true;
|
73 |
+
}
|
74 |
+
|
75 |
+
return $enable;
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Add the WPML meta box when editing forms.
|
80 |
+
*
|
81 |
+
* @param int|\WP_Post $post The post ID or an instance of WP_Post.
|
82 |
+
*/
|
83 |
+
public function add_language_meta_box( $post ) {
|
84 |
+
$post = get_post( $post );
|
85 |
+
$trid = filter_input( INPUT_GET, 'trid', FILTER_SANITIZE_NUMBER_INT );
|
86 |
+
|
87 |
+
?>
|
88 |
+
<div id="<?php echo esc_attr( WPML_Meta_Boxes_Post_Edit_HTML::WRAPPER_ID ); ?>">
|
89 |
+
<?php
|
90 |
+
if ( $post ) {
|
91 |
+
add_filter( 'wpml_post_edit_can_translate', '__return_true' );
|
92 |
+
$this->sitepress->meta_box( $post );
|
93 |
+
} elseif ( $trid ) {
|
94 |
+
// Used by WPML for connecting new manual translations to their originals.
|
95 |
+
echo '<input type="hidden" name="icl_trid" value="' . esc_attr( $trid ) . '" />';
|
96 |
+
}
|
97 |
+
?>
|
98 |
+
</div>
|
99 |
+
<?php
|
100 |
+
}
|
101 |
+
|
102 |
+
/**
|
103 |
+
* Filters links to translations in language metabox.
|
104 |
+
*
|
105 |
+
* @param string $link Link to translation.
|
106 |
+
* @param int $post_id Post id.
|
107 |
+
* @param string $lang Destination language.
|
108 |
+
* @param int $trid Translated post id.
|
109 |
+
*
|
110 |
+
* @return string
|
111 |
+
*/
|
112 |
+
public function link_to_translation( $link, $post_id, $lang, $trid ) {
|
113 |
+
if ( YITH_WCAN_Presets()->get_post_type() === get_post_type( $post_id ) ) {
|
114 |
+
$link = $this->get_link_to_translation( $post_id, $lang );
|
115 |
+
}
|
116 |
+
|
117 |
+
return $link;
|
118 |
+
}
|
119 |
+
|
120 |
+
/**
|
121 |
+
* Filters the top bar admin language switcher links.
|
122 |
+
*
|
123 |
+
* @param array $links Action links.
|
124 |
+
*
|
125 |
+
* @return array $links
|
126 |
+
*/
|
127 |
+
public function admin_language_switcher_items( $links ) {
|
128 |
+
$preset = filter_input( INPUT_GET, 'preset', FILTER_SANITIZE_NUMBER_INT );
|
129 |
+
$trid = filter_input( INPUT_GET, 'trid', FILTER_SANITIZE_NUMBER_INT );
|
130 |
+
|
131 |
+
if ( $this->is_preset_page() && ( $preset || $trid ) ) {
|
132 |
+
// If we are adding a post, get the post_id from the trid and source_lang.
|
133 |
+
if ( ! $preset ) {
|
134 |
+
$source_lang = filter_input( INPUT_GET, 'source_lang', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
|
135 |
+
$preset = $this->wpml_post_translations->get_element_id( $source_lang, $trid );
|
136 |
+
unset( $links['all'] );
|
137 |
+
// We shouldn't get here, but just in case.
|
138 |
+
if ( ! $preset ) {
|
139 |
+
return $links;
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
foreach ( $links as $lang => & $link ) {
|
144 |
+
if ( 'all' !== $lang && ! $link['current'] ) {
|
145 |
+
$link['url'] = $this->get_link_to_translation( $preset, $lang );
|
146 |
+
}
|
147 |
+
}
|
148 |
+
}
|
149 |
+
|
150 |
+
return $links;
|
151 |
+
}
|
152 |
+
|
153 |
+
/**
|
154 |
+
* Use translated terms for translated preset
|
155 |
+
*
|
156 |
+
* @param int $original_id Original preset id.
|
157 |
+
* @param string $lang Destination language.
|
158 |
+
* @param array $post_array Array of post data.
|
159 |
+
* @param int $trid Translated preset id.
|
160 |
+
*/
|
161 |
+
public function fix_duplicated_preset( $original_id, $lang, $post_array, $trid ) {
|
162 |
+
$preset = yith_wcan_get_preset( $trid );
|
163 |
+
|
164 |
+
if ( ! $preset ) {
|
165 |
+
return;
|
166 |
+
}
|
167 |
+
|
168 |
+
// cycle through filters.
|
169 |
+
if ( $preset->has_filters() ) {
|
170 |
+
$filters = $preset->get_filters();
|
171 |
+
$raw_filters = array();
|
172 |
+
|
173 |
+
foreach ( $filters as $filter ) {
|
174 |
+
if ( $filter->has_terms() ) {
|
175 |
+
$terms_options = $filter->get_terms_options();
|
176 |
+
$new_terms = array();
|
177 |
+
|
178 |
+
foreach ( $terms_options as $term_id => $term_options ) {
|
179 |
+
$translated_term_id = apply_filters( 'wpml_object_id', $term_id, $filter->get_taxonomy(), false, $lang );
|
180 |
+
|
181 |
+
if ( ! $translated_term_id ) {
|
182 |
+
continue;
|
183 |
+
}
|
184 |
+
|
185 |
+
$new_terms[ $translated_term_id ] = $term_options;
|
186 |
+
}
|
187 |
+
|
188 |
+
$filter->set_terms( $new_terms );
|
189 |
+
}
|
190 |
+
|
191 |
+
$raw_filters[ $filter->get_id() ] = $filter->get_data();
|
192 |
+
}
|
193 |
+
|
194 |
+
$preset->set_filters( $raw_filters );
|
195 |
+
$preset->save();
|
196 |
+
}
|
197 |
+
}
|
198 |
+
|
199 |
+
/**
|
200 |
+
* Returns slug for the presets panel
|
201 |
+
*
|
202 |
+
* @return string Panel slug.
|
203 |
+
*/
|
204 |
+
public function get_panel_slug() {
|
205 |
+
if ( empty( $this->panel_slug ) ) {
|
206 |
+
$this->panel_slug = YITH_WCAN()->admin->get_panel_page();
|
207 |
+
}
|
208 |
+
|
209 |
+
return $this->panel_slug;
|
210 |
+
}
|
211 |
+
|
212 |
+
/**
|
213 |
+
* Check if we are in YITH_WCAN preset page.
|
214 |
+
*
|
215 |
+
* @return int
|
216 |
+
*/
|
217 |
+
private function is_preset_page() {
|
218 |
+
global $plugin_page;
|
219 |
+
|
220 |
+
if ( empty( $this->panel_slug ) ) {
|
221 |
+
$this->panel_slug = YITH_WCAN()->admin->get_panel_page();
|
222 |
+
}
|
223 |
+
|
224 |
+
return $this->get_panel_slug() === $plugin_page;
|
225 |
+
}
|
226 |
+
|
227 |
+
/**
|
228 |
+
* Works out the correct link to a translation
|
229 |
+
*
|
230 |
+
* @param int $post_id The post_id being edited.
|
231 |
+
* @param string $lang The target language.
|
232 |
+
*
|
233 |
+
* @return string
|
234 |
+
*/
|
235 |
+
private function get_link_to_translation( $post_id, $lang ) {
|
236 |
+
$translated_post_id = $this->wpml_post_translations->element_id_in( $post_id, $lang );
|
237 |
+
|
238 |
+
if ( $translated_post_id ) {
|
239 |
+
// Rewrite link to edit contact form translation.
|
240 |
+
$args = array(
|
241 |
+
'action' => 'edit',
|
242 |
+
'lang' => $lang,
|
243 |
+
'preset' => $translated_post_id,
|
244 |
+
'page' => $this->get_panel_slug(),
|
245 |
+
'tab' => 'filter-preset',
|
246 |
+
);
|
247 |
+
} else {
|
248 |
+
// Rewrite link to create contact form translation.
|
249 |
+
$trid = $this->wpml_post_translations->get_element_trid( $post_id, YITH_WCAN_Presets()->get_post_type() );
|
250 |
+
$source_language_code = $this->wpml_post_translations->get_element_lang_code( $post_id );
|
251 |
+
|
252 |
+
$args = array(
|
253 |
+
'action' => 'create',
|
254 |
+
'lang' => $lang,
|
255 |
+
'trid' => $trid,
|
256 |
+
'source_lang' => $source_language_code,
|
257 |
+
'page' => $this->get_panel_slug(),
|
258 |
+
'tab' => 'filter-preset',
|
259 |
+
);
|
260 |
+
}
|
261 |
+
|
262 |
+
return add_query_arg( $args, admin_url( 'admin.php' ) );
|
263 |
+
}
|
264 |
+
}
|
265 |
+
|
266 |
+
if ( is_admin() ) {
|
267 |
+
global $sitepress, $wpml_post_translations;
|
268 |
+
|
269 |
+
$metabox = new WPML_Language_Metabox( $sitepress, $wpml_post_translations );
|
270 |
+
$metabox->add_hooks();
|
271 |
+
}
|
@@ -340,6 +340,7 @@ if ( ! class_exists( 'YITH_WCAN_Preset_Data_Store' ) ) {
|
|
340 |
'fields' => 'ids',
|
341 |
'post_status' => 'publish',
|
342 |
'posts_per_page' => -1,
|
|
|
343 |
);
|
344 |
|
345 |
foreach ( $args as $key => $value ) {
|
@@ -367,6 +368,32 @@ if ( ! class_exists( 'YITH_WCAN_Preset_Data_Store' ) ) {
|
|
367 |
return apply_filters( 'yith_wcan_get_presets', $presets, $args );
|
368 |
}
|
369 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
/**
|
371 |
* Counts items that matches
|
372 |
*
|
340 |
'fields' => 'ids',
|
341 |
'post_status' => 'publish',
|
342 |
'posts_per_page' => -1,
|
343 |
+
'suppress_filters' => false,
|
344 |
);
|
345 |
|
346 |
foreach ( $args as $key => $value ) {
|
368 |
return apply_filters( 'yith_wcan_get_presets', $presets, $args );
|
369 |
}
|
370 |
|
371 |
+
/**
|
372 |
+
* Query database to search
|
373 |
+
*
|
374 |
+
* @return string[] Array of presets, in the format slug => name.
|
375 |
+
*/
|
376 |
+
public function items() {
|
377 |
+
global $wpdb;
|
378 |
+
|
379 |
+
$results = $wpdb->get_results(
|
380 |
+
$wpdb->prepare(
|
381 |
+
"SELECT post_name, post_title FROM {$wpdb->posts} WHERE post_type = %s AND post_status = %s",
|
382 |
+
YITH_WCAN_Presets()->get_post_type(),
|
383 |
+
'publish'
|
384 |
+
),
|
385 |
+
ARRAY_A
|
386 |
+
);
|
387 |
+
|
388 |
+
if ( empty( $results ) ) {
|
389 |
+
return array();
|
390 |
+
}
|
391 |
+
|
392 |
+
$presets = array_combine( wp_list_pluck( $results, 'post_name' ), wp_list_pluck( $results, 'post_title' ) );
|
393 |
+
|
394 |
+
return apply_filters( 'yith_wcan_list_presets', $presets );
|
395 |
+
}
|
396 |
+
|
397 |
/**
|
398 |
* Counts items that matches
|
399 |
*
|
@@ -83,17 +83,14 @@ if ( ! class_exists( 'YITH_WCAN_Elementor_Filters' ) ) {
|
|
83 |
* @access protected
|
84 |
*/
|
85 |
protected function _register_controls() {
|
86 |
-
$presets = YITH_WCAN_Preset_Factory::
|
87 |
-
$presets_options =
|
88 |
-
|
|
|
|
|
|
|
89 |
);
|
90 |
|
91 |
-
if ( ! empty( $presets ) ) {
|
92 |
-
foreach ( $presets as $preset ) {
|
93 |
-
$presets_options[ $preset->get_slug() ] = $preset->get_title();
|
94 |
-
}
|
95 |
-
}
|
96 |
-
|
97 |
$this->start_controls_section(
|
98 |
'fields_section',
|
99 |
array(
|
83 |
* @access protected
|
84 |
*/
|
85 |
protected function _register_controls() {
|
86 |
+
$presets = YITH_WCAN_Preset_Factory::list_presets();
|
87 |
+
$presets_options = array_merge(
|
88 |
+
array(
|
89 |
+
'' => _x( 'Choose an option', '[ELEMENTOR] Default preset option', 'yith-woocommerce-ajax-navigation' ),
|
90 |
+
),
|
91 |
+
$presets
|
92 |
);
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
$this->start_controls_section(
|
95 |
'fields_section',
|
96 |
array(
|
@@ -28,6 +28,15 @@ if ( ! class_exists( 'YITH_WCAN_Filter_Tax' ) ) {
|
|
28 |
*/
|
29 |
protected $_formatted_terms;
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
/**
|
32 |
* Method that will output content of the filter on frontend
|
33 |
*
|
28 |
*/
|
29 |
protected $_formatted_terms;
|
30 |
|
31 |
+
/**
|
32 |
+
* Checks whether current filter is active
|
33 |
+
*
|
34 |
+
* @return bool Whether current filter is active.
|
35 |
+
*/
|
36 |
+
public function is_active() {
|
37 |
+
return YITH_WCAN_Query()->is_filtered_by( $this->get_taxonomy() );
|
38 |
+
}
|
39 |
+
|
40 |
/**
|
41 |
* Method that will output content of the filter on frontend
|
42 |
*
|
@@ -54,17 +54,14 @@ if ( ! class_exists( 'YITH_WCAN_Shortcode_Filters' ) ) {
|
|
54 |
* @return array Array of configuration.
|
55 |
*/
|
56 |
public static function get_gutenberg_config() {
|
57 |
-
$presets = YITH_WCAN_Preset_Factory::
|
58 |
-
$presets_options =
|
59 |
-
|
|
|
|
|
|
|
60 |
);
|
61 |
|
62 |
-
if ( ! empty( $presets ) ) {
|
63 |
-
foreach ( $presets as $preset ) {
|
64 |
-
$presets_options[ $preset->get_slug() ] = $preset->get_title();
|
65 |
-
}
|
66 |
-
}
|
67 |
-
|
68 |
$blocks = array(
|
69 |
'yith-wcan-ajax-filters-preset' => array(
|
70 |
'style' => 'yith-wcan-shortcodes',
|
54 |
* @return array Array of configuration.
|
55 |
*/
|
56 |
public static function get_gutenberg_config() {
|
57 |
+
$presets = YITH_WCAN_Preset_Factory::list_presets();
|
58 |
+
$presets_options = array_merge(
|
59 |
+
array(
|
60 |
+
'' => _x( 'Choose an option', '[ELEMENTOR] Default preset option', 'yith-woocommerce-ajax-navigation' ),
|
61 |
+
),
|
62 |
+
$presets
|
63 |
);
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
$blocks = array(
|
66 |
'yith-wcan-ajax-filters-preset' => array(
|
67 |
'style' => 'yith-wcan-shortcodes',
|
@@ -44,7 +44,7 @@ if ( ! class_exists( 'YITH_WCAN_Filters_Widget' ) ) {
|
|
44 |
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
45 |
*/
|
46 |
public function form( $instance ) {
|
47 |
-
$presets = YITH_WCAN_Preset_Factory::
|
48 |
|
49 |
?>
|
50 |
<p>
|
@@ -53,9 +53,9 @@ if ( ! class_exists( 'YITH_WCAN_Filters_Widget' ) ) {
|
|
53 |
|
54 |
<?php if ( ! empty( $presets ) ) : ?>
|
55 |
<select name="<?php echo esc_attr( $this->get_field_name( 'preset' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'preset' ) ); ?>" style="width: 100%;">
|
56 |
-
<?php foreach ( $presets as $
|
57 |
-
<option value="<?php echo esc_attr( $
|
58 |
-
<?php echo esc_attr( $
|
59 |
</option>
|
60 |
<?php endforeach; ?>
|
61 |
</select>
|
@@ -84,9 +84,9 @@ if ( ! class_exists( 'YITH_WCAN_Filters_Widget' ) ) {
|
|
84 |
$instance = $old_instance;
|
85 |
|
86 |
$preset_slug = sanitize_title_with_dashes( $new_instance['preset'] );
|
87 |
-
$
|
88 |
|
89 |
-
if ( $
|
90 |
$instance['preset'] = $preset_slug;
|
91 |
}
|
92 |
|
44 |
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
45 |
*/
|
46 |
public function form( $instance ) {
|
47 |
+
$presets = YITH_WCAN_Preset_Factory::list_presets();
|
48 |
|
49 |
?>
|
50 |
<p>
|
53 |
|
54 |
<?php if ( ! empty( $presets ) ) : ?>
|
55 |
<select name="<?php echo esc_attr( $this->get_field_name( 'preset' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'preset' ) ); ?>" style="width: 100%;">
|
56 |
+
<?php foreach ( $presets as $preset_slug => $preset_title ) : ?>
|
57 |
+
<option value="<?php echo esc_attr( $preset_slug ); ?>" <?php selected( isset( $instance['preset'] ) && $instance['preset'] === $preset_slug ); ?>>
|
58 |
+
<?php echo esc_attr( $preset_title ); ?>
|
59 |
</option>
|
60 |
<?php endforeach; ?>
|
61 |
</select>
|
84 |
$instance = $old_instance;
|
85 |
|
86 |
$preset_slug = sanitize_title_with_dashes( $new_instance['preset'] );
|
87 |
+
$presets = array_keys( YITH_WCAN_Preset_Factory::list_presets() );
|
88 |
|
89 |
+
if ( in_array( $preset_slug, $presets ) ) {
|
90 |
$instance['preset'] = $preset_slug;
|
91 |
}
|
92 |
|
@@ -459,7 +459,7 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
|
|
459 |
<p>
|
460 |
<label for="<?php echo esc_attr( $this->get_field_id( 'query_type' ) ); ?>"><?php esc_html_e( 'Query Type:', 'yith-woocommerce-ajax-navigation' ); ?></label>
|
461 |
<select id="<?php echo esc_attr( $this->get_field_id( 'query_type' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'query_type' ) ); ?>">
|
462 |
-
<option value="and" <?php selected( $instance['query_type'], 'and' ); ?>><?php
|
463 |
<option value="or" <?php selected( $instance['query_type'], 'or' ); ?>><?php esc_html_e( 'OR', 'yith-woocommerce-ajax-navigation' ); ?></option>
|
464 |
</select>
|
465 |
</p>
|
459 |
<p>
|
460 |
<label for="<?php echo esc_attr( $this->get_field_id( 'query_type' ) ); ?>"><?php esc_html_e( 'Query Type:', 'yith-woocommerce-ajax-navigation' ); ?></label>
|
461 |
<select id="<?php echo esc_attr( $this->get_field_id( 'query_type' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'query_type' ) ); ?>">
|
462 |
+
<option value="and" <?php selected( $instance['query_type'], 'and' ); ?>><?php echo esc_html_x( 'AND', '[ADMIN] Ajax Filter Widget; logical operator that affects query behaviour', 'yith-woocommerce-ajax-navigation' ); ?></option>
|
463 |
<option value="or" <?php selected( $instance['query_type'], 'or' ); ?>><?php esc_html_e( 'OR', 'yith-woocommerce-ajax-navigation' ); ?></option>
|
464 |
</select>
|
465 |
</p>
|
@@ -3,14 +3,14 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Ajax Product Filter
|
4 |
* Plugin URI: https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/
|
5 |
* Description: <code><strong>YITH WooCommerce AJAX Product Filter</strong></code> allows your users to find the product they are looking for as quickly as possible. Thanks to the plugin you will be able to set up one or more search filters for your WooCommerce products and improve the user experience of your shop. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
|
6 |
-
* Version: 4.0.
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-ajax-navigation
|
10 |
* Domain Path: /languages/
|
11 |
*
|
12 |
* WC requires at least: 4.3
|
13 |
-
* WC tested up to: 5.
|
14 |
*
|
15 |
* @author YITH
|
16 |
* @package YITH WooCommerce Ajax Product Filter
|
@@ -43,7 +43,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
43 |
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
|
44 |
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
|
45 |
! defined( 'YITH_WCAN_INC' ) && define( 'YITH_WCAN_INC', YITH_WCAN_DIR . 'includes/' );
|
46 |
-
! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '4.0.
|
47 |
! defined( 'YITH_WCAN_FREE_INIT' ) && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
|
48 |
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
|
49 |
! defined( 'YITH_WCAN_SLUG' ) && define( 'YITH_WCAN_SLUG', 'yith-woocommerce-ajax-navigation' );
|
3 |
* Plugin Name: YITH WooCommerce Ajax Product Filter
|
4 |
* Plugin URI: https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/
|
5 |
* Description: <code><strong>YITH WooCommerce AJAX Product Filter</strong></code> allows your users to find the product they are looking for as quickly as possible. Thanks to the plugin you will be able to set up one or more search filters for your WooCommerce products and improve the user experience of your shop. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
|
6 |
+
* Version: 4.0.3
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-ajax-navigation
|
10 |
* Domain Path: /languages/
|
11 |
*
|
12 |
* WC requires at least: 4.3
|
13 |
+
* WC tested up to: 5.2
|
14 |
*
|
15 |
* @author YITH
|
16 |
* @package YITH WooCommerce Ajax Product Filter
|
43 |
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
|
44 |
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
|
45 |
! defined( 'YITH_WCAN_INC' ) && define( 'YITH_WCAN_INC', YITH_WCAN_DIR . 'includes/' );
|
46 |
+
! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '4.0.3' );
|
47 |
! defined( 'YITH_WCAN_FREE_INIT' ) && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
|
48 |
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
|
49 |
! defined( 'YITH_WCAN_SLUG' ) && define( 'YITH_WCAN_SLUG', 'yith-woocommerce-ajax-navigation' );
|
Binary file
|
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"PO-Revision-Date: 2021-03-02 11:03+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
@@ -67,10 +67,6 @@ msgstr "Typ:"
|
|
67 |
msgid "Query Type:"
|
68 |
msgstr "Query-Typ"
|
69 |
|
70 |
-
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
71 |
-
msgid "AND"
|
72 |
-
msgstr "UND"
|
73 |
-
|
74 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
75 |
msgid "OR"
|
76 |
msgstr "ODER"
|
@@ -143,72 +139,72 @@ msgstr ""
|
|
143 |
"\"https://yithemes.com/\" target=\"_blank\">Weitere Plugins für deinen E-"
|
144 |
"Commerce-Shop erhältst du bei <strong>YITH</strong></a>"
|
145 |
|
146 |
-
#: includes/class.yith-wcan-admin.php:
|
147 |
msgctxt "[Admin] Copy confirmation message"
|
148 |
msgid "Content copied to your clipboard"
|
149 |
msgstr "Inhalt in die Zwischenablage kopiert"
|
150 |
|
151 |
-
#: includes/class.yith-wcan-admin.php:
|
152 |
msgctxt "[Admin] Confirm filter delete message"
|
153 |
msgid "Are you sure you want to delete this item?"
|
154 |
msgstr "Bist du sicher, dass du dieses Element löschen möchtest?"
|
155 |
|
156 |
#. translators: 1. Number of items that will be added.
|
157 |
-
#: includes/class.yith-wcan-admin.php:
|
158 |
msgctxt "[Admin] Confirm add all terms message"
|
159 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
160 |
msgstr ""
|
161 |
"Bist du sicher, dass du fortfahren möchtest? Dieser Vorgang wird %s Elemente "
|
162 |
"hinzufügen"
|
163 |
|
164 |
-
#: includes/class.yith-wcan-admin.php:
|
165 |
msgctxt "[Admin] Message shown when filter has empty title"
|
166 |
msgid "< no title >"
|
167 |
msgstr "< Kein Titel >"
|
168 |
|
169 |
-
#: includes/class.yith-wcan-admin.php:
|
170 |
msgctxt "[Admin] Media library title, when selecting images"
|
171 |
msgid "Select media you want to use"
|
172 |
msgstr "Die zu verwendenden Medien auswählen"
|
173 |
|
174 |
-
#: includes/class.yith-wcan-admin.php:
|
175 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
176 |
msgid "Use this media"
|
177 |
msgstr "Dieses Medium verwenden"
|
178 |
|
179 |
-
#: includes/class.yith-wcan-admin.php:
|
180 |
msgctxt "[Admin] tab name"
|
181 |
msgid "Filter presets"
|
182 |
msgstr "Filter-Presets"
|
183 |
|
184 |
-
#: includes/class.yith-wcan-admin.php:
|
185 |
msgctxt "[Admin] tab name"
|
186 |
msgid "General settings"
|
187 |
msgstr "Allgemeine Einstellungen"
|
188 |
|
189 |
-
#: includes/class.yith-wcan-admin.php:
|
190 |
#, fuzzy
|
191 |
msgctxt "[Admin] tab name"
|
192 |
msgid "SEO"
|
193 |
msgstr "SEO"
|
194 |
|
195 |
-
#: includes/class.yith-wcan-admin.php:
|
196 |
msgctxt "[Admin] tab name"
|
197 |
msgid "Premium Version"
|
198 |
msgstr "Premium-Version"
|
199 |
|
200 |
-
#: includes/class.yith-wcan-admin.php:
|
201 |
msgctxt "[Admin] tab name"
|
202 |
msgid "Legacy"
|
203 |
msgstr "Legacy"
|
204 |
|
205 |
-
#: includes/class.yith-wcan-admin.php:193
|
206 |
#: includes/class.yith-wcan-admin.php:194
|
|
|
207 |
msgctxt "[Admin] Menu title"
|
208 |
msgid "Ajax Product Filter"
|
209 |
msgstr "AJAX Produkt-Filter "
|
210 |
|
211 |
-
#: includes/class.yith-wcan-admin.php:
|
212 |
msgctxt "[Admin] Plugin description"
|
213 |
msgid ""
|
214 |
"It allows your users to find the product they are looking for as quickly as "
|
@@ -217,37 +213,37 @@ msgstr ""
|
|
217 |
"Ermöglicht deinen Benutzern, das gesuchte Produkt so schnell wie möglich zu "
|
218 |
"finden."
|
219 |
|
220 |
-
#: includes/class.yith-wcan-admin.php:
|
221 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
222 |
msgid "item"
|
223 |
msgstr "Artikel"
|
224 |
|
225 |
-
#: includes/class.yith-wcan-admin.php:
|
226 |
msgctxt "[Admin] Preset table empty message second line"
|
227 |
msgid "But don't worry, here you can create your first one!"
|
228 |
msgstr "Aber keine Sorge, hier kannst du deine erste erstellen!"
|
229 |
|
230 |
-
#: includes/class.yith-wcan-admin.php:
|
231 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
232 |
msgid "Clear Product Filter transients"
|
233 |
msgstr "Produktfilter-Tansients löschen"
|
234 |
|
235 |
-
#: includes/class.yith-wcan-admin.php:
|
236 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
237 |
msgid "Run filter widgets upgrade"
|
238 |
msgstr "Upgrade der Filter-Widgets ausführen"
|
239 |
|
240 |
-
#: includes/class.yith-wcan-admin.php:
|
241 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
242 |
msgid "Clear"
|
243 |
msgstr "Löschen"
|
244 |
|
245 |
-
#: includes/class.yith-wcan-admin.php:
|
246 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
247 |
msgid "Run"
|
248 |
msgstr "Start"
|
249 |
|
250 |
-
#: includes/class.yith-wcan-admin.php:
|
251 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
252 |
msgid ""
|
253 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
@@ -259,7 +255,7 @@ msgstr ""
|
|
259 |
"Konfiguration deines Produkts geändert hast und die Filter nicht die "
|
260 |
"erwarteten Ergebnisse anzeigen. "
|
261 |
|
262 |
-
#: includes/class.yith-wcan-admin.php:
|
263 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
264 |
msgid ""
|
265 |
"This will create a preset for any sidebar of your shop containing filter "
|
@@ -408,13 +404,6 @@ msgctxt "[Admin] Filter edit form"
|
|
408 |
msgid "Multiselect relation"
|
409 |
msgstr "Multiselect-Beziehung"
|
410 |
|
411 |
-
#: plugin-options/filter-options.php:117
|
412 |
-
msgctxt "[Admin] Filter edit form"
|
413 |
-
msgid "AND - Results need to match all selected terms at the same time"
|
414 |
-
msgstr ""
|
415 |
-
"UND - Die Ergebnisse müssen mit allen ausgewählten Begriffen gleichzeitig "
|
416 |
-
"übereinstimmen"
|
417 |
-
|
418 |
#: plugin-options/filter-options.php:120
|
419 |
msgctxt "[Admin] Filter edit form"
|
420 |
msgid "Choose how multiple terms selection should behave"
|
@@ -511,23 +500,23 @@ msgctxt "[ADMIN] Name of default taxonomy filter created by plugin"
|
|
511 |
msgid "Filter by %s"
|
512 |
msgstr "Nach %s filtern"
|
513 |
|
514 |
-
#: includes/class.yith-wcan-presets.php:
|
515 |
-
#: includes/class.yith-wcan-presets.php:
|
516 |
msgctxt "[Admin] name of presets custom post type"
|
517 |
msgid "Filter presets"
|
518 |
msgstr "Filter-Presets"
|
519 |
|
520 |
-
#: includes/class.yith-wcan-presets.php:
|
521 |
msgctxt "[Admin] singular name of presets custom post type"
|
522 |
msgid "Filter preset"
|
523 |
msgstr "Filter-Preset"
|
524 |
|
525 |
-
#: includes/class.yith-wcan-presets.php:
|
526 |
msgctxt "[Admin] add new filter preset label"
|
527 |
msgid "Add new preset"
|
528 |
msgstr "Neues Preset hinzufügen"
|
529 |
|
530 |
-
#: includes/class.yith-wcan-presets.php:
|
531 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
532 |
msgid "Convert widgets in a preset"
|
533 |
msgstr "Widgets in eine Preset konvertieren"
|
@@ -555,13 +544,13 @@ msgctxt "[ADMIN] Name of the preset elementor widget"
|
|
555 |
msgid "YITH AJAX Filters Reset Button"
|
556 |
msgstr "YITH AJAX-Filter Reset-Button"
|
557 |
|
558 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
559 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
560 |
msgctxt "[ELEMENTOR] Default preset option"
|
561 |
msgid "Choose an option"
|
562 |
msgstr "Wähle eine Option"
|
563 |
|
564 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
565 |
msgctxt "[ELEMENTOR] Section title"
|
566 |
msgid "Filters"
|
567 |
msgstr "Filter"
|
@@ -571,7 +560,7 @@ msgctxt "[ELEMENTOR] Section title"
|
|
571 |
msgid "General"
|
572 |
msgstr "Allgemein"
|
573 |
|
574 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
575 |
msgctxt "[ELEMENTOR] Control label"
|
576 |
msgid "Preset"
|
577 |
msgstr "Preset"
|
@@ -626,7 +615,7 @@ msgctxt "[FRONTEND] Star rating label"
|
|
626 |
msgid "Rated %s out of 5"
|
627 |
msgstr "Bewertet mit %s von 5"
|
628 |
|
629 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
630 |
msgctxt "[GUTENBERG]: block name"
|
631 |
msgid "YITH AJAX Filters Preset"
|
632 |
msgstr "YITH AJAX Filters Preset"
|
@@ -636,7 +625,7 @@ msgctxt "[GUTENBERG]: block name"
|
|
636 |
msgid "YITH Reset Filters Button"
|
637 |
msgstr "YITH \"Filter zurücksetzen\"-Button"
|
638 |
|
639 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
640 |
msgctxt "[GUTENBERG]: block description"
|
641 |
msgid "Show filters from a preset"
|
642 |
msgstr "Filter aus einem Preset anzeigen"
|
@@ -655,7 +644,7 @@ msgstr ""
|
|
655 |
"Seite zu platzieren, wenn die Option \"Position des Buttons zurücksetzen\" "
|
656 |
"für den Loop deines Produkts nicht funktioniert"
|
657 |
|
658 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
659 |
msgctxt "[GUTENBERG]: attribute description"
|
660 |
msgid "Preset"
|
661 |
msgstr "Preset"
|
@@ -706,7 +695,7 @@ msgctxt ""
|
|
706 |
msgid "filter preset"
|
707 |
msgstr "Filter-Preset"
|
708 |
|
709 |
-
#: templates/admin/preset-filters.php:
|
710 |
msgctxt ""
|
711 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
712 |
msgid "filter"
|
@@ -742,14 +731,32 @@ msgctxt "[Plugin Name] Admin: Widget Title"
|
|
742 |
msgid "YITH AJAX Product Filter"
|
743 |
msgstr "YITH AJAX Product Filter"
|
744 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
745 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
746 |
msgctxt "[Plugin Name]"
|
747 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
748 |
msgstr ""
|
749 |
"Alle von YITH WooCommerce AJAX Product Filter gesetzten Filter zurücksetzen "
|
750 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
751 |
#: plugin-options/filter-options.php:118
|
752 |
-
|
|
|
|
|
753 |
msgid "OR - Results need to match at least one of the selected terms"
|
754 |
msgstr ""
|
755 |
"ODER - Die Ergebnisse müssen mit mindestens einem der ausgewählten Begriffe "
|
@@ -1245,16 +1252,23 @@ msgctxt "[Admin] Delete filter button, in new/edit preset page"
|
|
1245 |
msgid "Delete Filter"
|
1246 |
msgstr "Filter löschen"
|
1247 |
|
1248 |
-
#: templates/admin/preset-filters.php:
|
1249 |
msgctxt "[Admin] New filter button label"
|
1250 |
msgid "Add a new filter"
|
1251 |
msgstr "Einen neuen Filter hinzufügen"
|
1252 |
|
1253 |
-
#: templates/admin/preset-filters.php:
|
1254 |
msgctxt "[Admin] Add new filter in new preset page"
|
1255 |
msgid "+ Add filter"
|
1256 |
msgstr "+ Filter hinzufügen "
|
1257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1258 |
#: templates/admin/upgrade-note-modal.php:31
|
1259 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1260 |
msgid "Use the new filter preset feature for your filters"
|
@@ -1333,7 +1347,7 @@ msgctxt "[FRONTEND] General option for terms dropdown"
|
|
1333 |
msgid "All"
|
1334 |
msgstr "Alle"
|
1335 |
|
1336 |
-
#: templates/filters/global/reset-filters.php:
|
1337 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1338 |
msgid "Reset filters"
|
1339 |
msgstr "Filter zurücksetzen"
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
+
"POT-Creation-Date: 2021-04-20 14:45:48+00:00\n"
|
9 |
"PO-Revision-Date: 2021-03-02 11:03+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
67 |
msgid "Query Type:"
|
68 |
msgstr "Query-Typ"
|
69 |
|
|
|
|
|
|
|
|
|
70 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
71 |
msgid "OR"
|
72 |
msgstr "ODER"
|
139 |
"\"https://yithemes.com/\" target=\"_blank\">Weitere Plugins für deinen E-"
|
140 |
"Commerce-Shop erhältst du bei <strong>YITH</strong></a>"
|
141 |
|
142 |
+
#: includes/class.yith-wcan-admin.php:107
|
143 |
msgctxt "[Admin] Copy confirmation message"
|
144 |
msgid "Content copied to your clipboard"
|
145 |
msgstr "Inhalt in die Zwischenablage kopiert"
|
146 |
|
147 |
+
#: includes/class.yith-wcan-admin.php:108
|
148 |
msgctxt "[Admin] Confirm filter delete message"
|
149 |
msgid "Are you sure you want to delete this item?"
|
150 |
msgstr "Bist du sicher, dass du dieses Element löschen möchtest?"
|
151 |
|
152 |
#. translators: 1. Number of items that will be added.
|
153 |
+
#: includes/class.yith-wcan-admin.php:110
|
154 |
msgctxt "[Admin] Confirm add all terms message"
|
155 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
156 |
msgstr ""
|
157 |
"Bist du sicher, dass du fortfahren möchtest? Dieser Vorgang wird %s Elemente "
|
158 |
"hinzufügen"
|
159 |
|
160 |
+
#: includes/class.yith-wcan-admin.php:113 templates/admin/preset-filter.php:31
|
161 |
msgctxt "[Admin] Message shown when filter has empty title"
|
162 |
msgid "< no title >"
|
163 |
msgstr "< Kein Titel >"
|
164 |
|
165 |
+
#: includes/class.yith-wcan-admin.php:114
|
166 |
msgctxt "[Admin] Media library title, when selecting images"
|
167 |
msgid "Select media you want to use"
|
168 |
msgstr "Die zu verwendenden Medien auswählen"
|
169 |
|
170 |
+
#: includes/class.yith-wcan-admin.php:115
|
171 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
172 |
msgid "Use this media"
|
173 |
msgstr "Dieses Medium verwenden"
|
174 |
|
175 |
+
#: includes/class.yith-wcan-admin.php:181
|
176 |
msgctxt "[Admin] tab name"
|
177 |
msgid "Filter presets"
|
178 |
msgstr "Filter-Presets"
|
179 |
|
180 |
+
#: includes/class.yith-wcan-admin.php:182
|
181 |
msgctxt "[Admin] tab name"
|
182 |
msgid "General settings"
|
183 |
msgstr "Allgemeine Einstellungen"
|
184 |
|
185 |
+
#: includes/class.yith-wcan-admin.php:183
|
186 |
#, fuzzy
|
187 |
msgctxt "[Admin] tab name"
|
188 |
msgid "SEO"
|
189 |
msgstr "SEO"
|
190 |
|
191 |
+
#: includes/class.yith-wcan-admin.php:184
|
192 |
msgctxt "[Admin] tab name"
|
193 |
msgid "Premium Version"
|
194 |
msgstr "Premium-Version"
|
195 |
|
196 |
+
#: includes/class.yith-wcan-admin.php:188
|
197 |
msgctxt "[Admin] tab name"
|
198 |
msgid "Legacy"
|
199 |
msgstr "Legacy"
|
200 |
|
|
|
201 |
#: includes/class.yith-wcan-admin.php:194
|
202 |
+
#: includes/class.yith-wcan-admin.php:195
|
203 |
msgctxt "[Admin] Menu title"
|
204 |
msgid "Ajax Product Filter"
|
205 |
msgstr "AJAX Produkt-Filter "
|
206 |
|
207 |
+
#: includes/class.yith-wcan-admin.php:196
|
208 |
msgctxt "[Admin] Plugin description"
|
209 |
msgid ""
|
210 |
"It allows your users to find the product they are looking for as quickly as "
|
213 |
"Ermöglicht deinen Benutzern, das gesuchte Produkt so schnell wie möglich zu "
|
214 |
"finden."
|
215 |
|
216 |
+
#: includes/class.yith-wcan-admin.php:309
|
217 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
218 |
msgid "item"
|
219 |
msgstr "Artikel"
|
220 |
|
221 |
+
#: includes/class.yith-wcan-admin.php:310
|
222 |
msgctxt "[Admin] Preset table empty message second line"
|
223 |
msgid "But don't worry, here you can create your first one!"
|
224 |
msgstr "Aber keine Sorge, hier kannst du deine erste erstellen!"
|
225 |
|
226 |
+
#: includes/class.yith-wcan-admin.php:458
|
227 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
228 |
msgid "Clear Product Filter transients"
|
229 |
msgstr "Produktfilter-Tansients löschen"
|
230 |
|
231 |
+
#: includes/class.yith-wcan-admin.php:464
|
232 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
233 |
msgid "Run filter widgets upgrade"
|
234 |
msgstr "Upgrade der Filter-Widgets ausführen"
|
235 |
|
236 |
+
#: includes/class.yith-wcan-admin.php:459
|
237 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
238 |
msgid "Clear"
|
239 |
msgstr "Löschen"
|
240 |
|
241 |
+
#: includes/class.yith-wcan-admin.php:465
|
242 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
243 |
msgid "Run"
|
244 |
msgstr "Start"
|
245 |
|
246 |
+
#: includes/class.yith-wcan-admin.php:460
|
247 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
248 |
msgid ""
|
249 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
255 |
"Konfiguration deines Produkts geändert hast und die Filter nicht die "
|
256 |
"erwarteten Ergebnisse anzeigen. "
|
257 |
|
258 |
+
#: includes/class.yith-wcan-admin.php:466
|
259 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
260 |
msgid ""
|
261 |
"This will create a preset for any sidebar of your shop containing filter "
|
404 |
msgid "Multiselect relation"
|
405 |
msgstr "Multiselect-Beziehung"
|
406 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
#: plugin-options/filter-options.php:120
|
408 |
msgctxt "[Admin] Filter edit form"
|
409 |
msgid "Choose how multiple terms selection should behave"
|
500 |
msgid "Filter by %s"
|
501 |
msgstr "Nach %s filtern"
|
502 |
|
503 |
+
#: includes/class.yith-wcan-presets.php:95
|
504 |
+
#: includes/class.yith-wcan-presets.php:100
|
505 |
msgctxt "[Admin] name of presets custom post type"
|
506 |
msgid "Filter presets"
|
507 |
msgstr "Filter-Presets"
|
508 |
|
509 |
+
#: includes/class.yith-wcan-presets.php:96
|
510 |
msgctxt "[Admin] singular name of presets custom post type"
|
511 |
msgid "Filter preset"
|
512 |
msgstr "Filter-Preset"
|
513 |
|
514 |
+
#: includes/class.yith-wcan-presets.php:97
|
515 |
msgctxt "[Admin] add new filter preset label"
|
516 |
msgid "Add new preset"
|
517 |
msgstr "Neues Preset hinzufügen"
|
518 |
|
519 |
+
#: includes/class.yith-wcan-presets.php:139
|
520 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
521 |
msgid "Convert widgets in a preset"
|
522 |
msgstr "Widgets in eine Preset konvertieren"
|
544 |
msgid "YITH AJAX Filters Reset Button"
|
545 |
msgstr "YITH AJAX-Filter Reset-Button"
|
546 |
|
547 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:89
|
548 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:60
|
549 |
msgctxt "[ELEMENTOR] Default preset option"
|
550 |
msgid "Choose an option"
|
551 |
msgstr "Wähle eine Option"
|
552 |
|
553 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:97
|
554 |
msgctxt "[ELEMENTOR] Section title"
|
555 |
msgid "Filters"
|
556 |
msgstr "Filter"
|
560 |
msgid "General"
|
561 |
msgstr "Allgemein"
|
562 |
|
563 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:105
|
564 |
msgctxt "[ELEMENTOR] Control label"
|
565 |
msgid "Preset"
|
566 |
msgstr "Preset"
|
615 |
msgid "Rated %s out of 5"
|
616 |
msgstr "Bewertet mit %s von 5"
|
617 |
|
618 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:69
|
619 |
msgctxt "[GUTENBERG]: block name"
|
620 |
msgid "YITH AJAX Filters Preset"
|
621 |
msgstr "YITH AJAX Filters Preset"
|
625 |
msgid "YITH Reset Filters Button"
|
626 |
msgstr "YITH \"Filter zurücksetzen\"-Button"
|
627 |
|
628 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:70
|
629 |
msgctxt "[GUTENBERG]: block description"
|
630 |
msgid "Show filters from a preset"
|
631 |
msgstr "Filter aus einem Preset anzeigen"
|
644 |
"Seite zu platzieren, wenn die Option \"Position des Buttons zurücksetzen\" "
|
645 |
"für den Loop deines Produkts nicht funktioniert"
|
646 |
|
647 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:75
|
648 |
msgctxt "[GUTENBERG]: attribute description"
|
649 |
msgid "Preset"
|
650 |
msgstr "Preset"
|
695 |
msgid "filter preset"
|
696 |
msgstr "Filter-Preset"
|
697 |
|
698 |
+
#: templates/admin/preset-filters.php:29
|
699 |
msgctxt ""
|
700 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
701 |
msgid "filter"
|
731 |
msgid "YITH AJAX Product Filter"
|
732 |
msgstr "YITH AJAX Product Filter"
|
733 |
|
734 |
+
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
735 |
+
#, fuzzy
|
736 |
+
msgctxt ""
|
737 |
+
"[ADMIN] Ajax Filter Widget; logical operator that affects query behaviour"
|
738 |
+
msgid "AND"
|
739 |
+
msgstr "UND"
|
740 |
+
|
741 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
742 |
msgctxt "[Plugin Name]"
|
743 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
744 |
msgstr ""
|
745 |
"Alle von YITH WooCommerce AJAX Product Filter gesetzten Filter zurücksetzen "
|
746 |
|
747 |
+
#: plugin-options/filter-options.php:117
|
748 |
+
#, fuzzy
|
749 |
+
msgctxt ""
|
750 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
751 |
+
msgid "AND - Results need to match all selected terms at the same time"
|
752 |
+
msgstr ""
|
753 |
+
"UND - Die Ergebnisse müssen mit allen ausgewählten Begriffen gleichzeitig "
|
754 |
+
"übereinstimmen"
|
755 |
+
|
756 |
#: plugin-options/filter-options.php:118
|
757 |
+
#, fuzzy
|
758 |
+
msgctxt ""
|
759 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
760 |
msgid "OR - Results need to match at least one of the selected terms"
|
761 |
msgstr ""
|
762 |
"ODER - Die Ergebnisse müssen mit mindestens einem der ausgewählten Begriffe "
|
1252 |
msgid "Delete Filter"
|
1253 |
msgstr "Filter löschen"
|
1254 |
|
1255 |
+
#: templates/admin/preset-filters.php:31
|
1256 |
msgctxt "[Admin] New filter button label"
|
1257 |
msgid "Add a new filter"
|
1258 |
msgstr "Einen neuen Filter hinzufügen"
|
1259 |
|
1260 |
+
#: templates/admin/preset-filters.php:55
|
1261 |
msgctxt "[Admin] Add new filter in new preset page"
|
1262 |
msgid "+ Add filter"
|
1263 |
msgstr "+ Filter hinzufügen "
|
1264 |
|
1265 |
+
#. translators: 1. number of items to show.
|
1266 |
+
#: templates/admin/preset-load-more-filters.php:18
|
1267 |
+
#, fuzzy
|
1268 |
+
msgctxt "[Admin] Add new filter in new preset page"
|
1269 |
+
msgid "See %d more filters"
|
1270 |
+
msgstr "Vor Filtern"
|
1271 |
+
|
1272 |
#: templates/admin/upgrade-note-modal.php:31
|
1273 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1274 |
msgid "Use the new filter preset feature for your filters"
|
1347 |
msgid "All"
|
1348 |
msgstr "Alle"
|
1349 |
|
1350 |
+
#: templates/filters/global/reset-filters.php:23
|
1351 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1352 |
msgid "Reset filters"
|
1353 |
msgstr "Filter zurücksetzen"
|
Binary file
|
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"PO-Revision-Date: 2021-03-02 11:03+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
@@ -67,10 +67,6 @@ msgstr "Typ:"
|
|
67 |
msgid "Query Type:"
|
68 |
msgstr "Query-Typ"
|
69 |
|
70 |
-
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
71 |
-
msgid "AND"
|
72 |
-
msgstr "UND"
|
73 |
-
|
74 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
75 |
msgid "OR"
|
76 |
msgstr "ODER"
|
@@ -143,72 +139,72 @@ msgstr ""
|
|
143 |
"\"https://yithemes.com/\" target=\"_blank\">Weitere Plugins für Ihren E-"
|
144 |
"Commerce-Shop erhalten Sie bei <strong>YITH</strong></a>"
|
145 |
|
146 |
-
#: includes/class.yith-wcan-admin.php:
|
147 |
msgctxt "[Admin] Copy confirmation message"
|
148 |
msgid "Content copied to your clipboard"
|
149 |
msgstr "Inhalt in die Zwischenablage kopiert"
|
150 |
|
151 |
-
#: includes/class.yith-wcan-admin.php:
|
152 |
msgctxt "[Admin] Confirm filter delete message"
|
153 |
msgid "Are you sure you want to delete this item?"
|
154 |
msgstr "Sind Sie sicher, dass Sie dieses Element löschen möchten?"
|
155 |
|
156 |
#. translators: 1. Number of items that will be added.
|
157 |
-
#: includes/class.yith-wcan-admin.php:
|
158 |
msgctxt "[Admin] Confirm add all terms message"
|
159 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
160 |
msgstr ""
|
161 |
"Sind Sie sicher, dass Sie fortfahren möchten? Dieser Vorgang wird %s "
|
162 |
"Elemente hinzufügen"
|
163 |
|
164 |
-
#: includes/class.yith-wcan-admin.php:
|
165 |
msgctxt "[Admin] Message shown when filter has empty title"
|
166 |
msgid "< no title >"
|
167 |
msgstr "< Kein Titel >"
|
168 |
|
169 |
-
#: includes/class.yith-wcan-admin.php:
|
170 |
msgctxt "[Admin] Media library title, when selecting images"
|
171 |
msgid "Select media you want to use"
|
172 |
msgstr "Die zu verwendenden Medien auswählen"
|
173 |
|
174 |
-
#: includes/class.yith-wcan-admin.php:
|
175 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
176 |
msgid "Use this media"
|
177 |
msgstr "Dieses Medium verwenden"
|
178 |
|
179 |
-
#: includes/class.yith-wcan-admin.php:
|
180 |
msgctxt "[Admin] tab name"
|
181 |
msgid "Filter presets"
|
182 |
msgstr "Filter-Presets"
|
183 |
|
184 |
-
#: includes/class.yith-wcan-admin.php:
|
185 |
msgctxt "[Admin] tab name"
|
186 |
msgid "General settings"
|
187 |
msgstr "Allgemeine Einstellungen"
|
188 |
|
189 |
-
#: includes/class.yith-wcan-admin.php:
|
190 |
#, fuzzy
|
191 |
msgctxt "[Admin] tab name"
|
192 |
msgid "SEO"
|
193 |
msgstr "SEO"
|
194 |
|
195 |
-
#: includes/class.yith-wcan-admin.php:
|
196 |
msgctxt "[Admin] tab name"
|
197 |
msgid "Premium Version"
|
198 |
msgstr "Premium-Version"
|
199 |
|
200 |
-
#: includes/class.yith-wcan-admin.php:
|
201 |
msgctxt "[Admin] tab name"
|
202 |
msgid "Legacy"
|
203 |
msgstr "Legacy"
|
204 |
|
205 |
-
#: includes/class.yith-wcan-admin.php:193
|
206 |
#: includes/class.yith-wcan-admin.php:194
|
|
|
207 |
msgctxt "[Admin] Menu title"
|
208 |
msgid "Ajax Product Filter"
|
209 |
msgstr "AJAX Produkt-Filter "
|
210 |
|
211 |
-
#: includes/class.yith-wcan-admin.php:
|
212 |
msgctxt "[Admin] Plugin description"
|
213 |
msgid ""
|
214 |
"It allows your users to find the product they are looking for as quickly as "
|
@@ -217,37 +213,37 @@ msgstr ""
|
|
217 |
"Ermöglicht Ihren Benutzern, das gesuchte Produkt so schnell wie möglich zu "
|
218 |
"finden."
|
219 |
|
220 |
-
#: includes/class.yith-wcan-admin.php:
|
221 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
222 |
msgid "item"
|
223 |
msgstr "Artikel"
|
224 |
|
225 |
-
#: includes/class.yith-wcan-admin.php:
|
226 |
msgctxt "[Admin] Preset table empty message second line"
|
227 |
msgid "But don't worry, here you can create your first one!"
|
228 |
msgstr "Aber keine Sorge, hier können Sie eine erste erstellen!"
|
229 |
|
230 |
-
#: includes/class.yith-wcan-admin.php:
|
231 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
232 |
msgid "Clear Product Filter transients"
|
233 |
msgstr "Produktfilter-Tansients löschen"
|
234 |
|
235 |
-
#: includes/class.yith-wcan-admin.php:
|
236 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
237 |
msgid "Run filter widgets upgrade"
|
238 |
msgstr "Upgrade der Filter-Widgets ausführen"
|
239 |
|
240 |
-
#: includes/class.yith-wcan-admin.php:
|
241 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
242 |
msgid "Clear"
|
243 |
msgstr "Löschen"
|
244 |
|
245 |
-
#: includes/class.yith-wcan-admin.php:
|
246 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
247 |
msgid "Run"
|
248 |
msgstr "Start"
|
249 |
|
250 |
-
#: includes/class.yith-wcan-admin.php:
|
251 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
252 |
msgid ""
|
253 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
@@ -259,7 +255,7 @@ msgstr ""
|
|
259 |
"Konfiguration Ihres Produkts geändert haben und die Filter nicht die "
|
260 |
"erwarteten Ergebnisse anzeigen. "
|
261 |
|
262 |
-
#: includes/class.yith-wcan-admin.php:
|
263 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
264 |
msgid ""
|
265 |
"This will create a preset for any sidebar of your shop containing filter "
|
@@ -409,13 +405,6 @@ msgctxt "[Admin] Filter edit form"
|
|
409 |
msgid "Multiselect relation"
|
410 |
msgstr "Multiselect-Beziehung"
|
411 |
|
412 |
-
#: plugin-options/filter-options.php:117
|
413 |
-
msgctxt "[Admin] Filter edit form"
|
414 |
-
msgid "AND - Results need to match all selected terms at the same time"
|
415 |
-
msgstr ""
|
416 |
-
"UND - Die Ergebnisse müssen mit allen ausgewählten Begriffen gleichzeitig "
|
417 |
-
"übereinstimmen"
|
418 |
-
|
419 |
#: plugin-options/filter-options.php:120
|
420 |
msgctxt "[Admin] Filter edit form"
|
421 |
msgid "Choose how multiple terms selection should behave"
|
@@ -512,23 +501,23 @@ msgctxt "[ADMIN] Name of default taxonomy filter created by plugin"
|
|
512 |
msgid "Filter by %s"
|
513 |
msgstr "Nach %s filtern"
|
514 |
|
515 |
-
#: includes/class.yith-wcan-presets.php:
|
516 |
-
#: includes/class.yith-wcan-presets.php:
|
517 |
msgctxt "[Admin] name of presets custom post type"
|
518 |
msgid "Filter presets"
|
519 |
msgstr "Filter-Presets"
|
520 |
|
521 |
-
#: includes/class.yith-wcan-presets.php:
|
522 |
msgctxt "[Admin] singular name of presets custom post type"
|
523 |
msgid "Filter preset"
|
524 |
msgstr "Filter-Preset"
|
525 |
|
526 |
-
#: includes/class.yith-wcan-presets.php:
|
527 |
msgctxt "[Admin] add new filter preset label"
|
528 |
msgid "Add new preset"
|
529 |
msgstr "Neues Preset hinzufügen"
|
530 |
|
531 |
-
#: includes/class.yith-wcan-presets.php:
|
532 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
533 |
msgid "Convert widgets in a preset"
|
534 |
msgstr "Widgets in eine Preset konvertieren"
|
@@ -556,13 +545,13 @@ msgctxt "[ADMIN] Name of the preset elementor widget"
|
|
556 |
msgid "YITH AJAX Filters Reset Button"
|
557 |
msgstr "YITH AJAX-Filter Reset-Button"
|
558 |
|
559 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
560 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
561 |
msgctxt "[ELEMENTOR] Default preset option"
|
562 |
msgid "Choose an option"
|
563 |
msgstr "Wählen Sie eine Option"
|
564 |
|
565 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
566 |
msgctxt "[ELEMENTOR] Section title"
|
567 |
msgid "Filters"
|
568 |
msgstr "Filter"
|
@@ -572,7 +561,7 @@ msgctxt "[ELEMENTOR] Section title"
|
|
572 |
msgid "General"
|
573 |
msgstr "Allgemein"
|
574 |
|
575 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
576 |
msgctxt "[ELEMENTOR] Control label"
|
577 |
msgid "Preset"
|
578 |
msgstr "Preset"
|
@@ -627,7 +616,7 @@ msgctxt "[FRONTEND] Star rating label"
|
|
627 |
msgid "Rated %s out of 5"
|
628 |
msgstr "Bewertet mit %s von 5"
|
629 |
|
630 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
631 |
msgctxt "[GUTENBERG]: block name"
|
632 |
msgid "YITH AJAX Filters Preset"
|
633 |
msgstr "YITH AJAX Filters Preset"
|
@@ -637,7 +626,7 @@ msgctxt "[GUTENBERG]: block name"
|
|
637 |
msgid "YITH Reset Filters Button"
|
638 |
msgstr "YITH \"Filter zurücksetzen\"-Button"
|
639 |
|
640 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
641 |
msgctxt "[GUTENBERG]: block description"
|
642 |
msgid "Show filters from a preset"
|
643 |
msgstr "Filter aus einem Preset anzeigen"
|
@@ -656,7 +645,7 @@ msgstr ""
|
|
656 |
"zu platzieren, wenn die Option \"Position des Buttons zurücksetzen\" für den "
|
657 |
"Loop Ihres Produkts nicht funktioniert"
|
658 |
|
659 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
660 |
msgctxt "[GUTENBERG]: attribute description"
|
661 |
msgid "Preset"
|
662 |
msgstr "Preset"
|
@@ -707,7 +696,7 @@ msgctxt ""
|
|
707 |
msgid "filter preset"
|
708 |
msgstr "Filter-Preset"
|
709 |
|
710 |
-
#: templates/admin/preset-filters.php:
|
711 |
msgctxt ""
|
712 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
713 |
msgid "filter"
|
@@ -743,14 +732,32 @@ msgctxt "[Plugin Name] Admin: Widget Title"
|
|
743 |
msgid "YITH AJAX Product Filter"
|
744 |
msgstr "YITH AJAX Product Filter"
|
745 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
746 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
747 |
msgctxt "[Plugin Name]"
|
748 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
749 |
msgstr ""
|
750 |
"Alle von YITH WooCommerce AJAX Product Filter gesetzten Filter zurücksetzen "
|
751 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
752 |
#: plugin-options/filter-options.php:118
|
753 |
-
|
|
|
|
|
754 |
msgid "OR - Results need to match at least one of the selected terms"
|
755 |
msgstr ""
|
756 |
"ODER - Die Ergebnisse müssen mit mindestens einem der ausgewählten Begriffe "
|
@@ -1248,16 +1255,23 @@ msgctxt "[Admin] Delete filter button, in new/edit preset page"
|
|
1248 |
msgid "Delete Filter"
|
1249 |
msgstr "Filter löschen"
|
1250 |
|
1251 |
-
#: templates/admin/preset-filters.php:
|
1252 |
msgctxt "[Admin] New filter button label"
|
1253 |
msgid "Add a new filter"
|
1254 |
msgstr "Einen neuen Filter hinzufügen"
|
1255 |
|
1256 |
-
#: templates/admin/preset-filters.php:
|
1257 |
msgctxt "[Admin] Add new filter in new preset page"
|
1258 |
msgid "+ Add filter"
|
1259 |
msgstr "+ Filter hinzufügen "
|
1260 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1261 |
#: templates/admin/upgrade-note-modal.php:31
|
1262 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1263 |
msgid "Use the new filter preset feature for your filters"
|
@@ -1336,7 +1350,7 @@ msgctxt "[FRONTEND] General option for terms dropdown"
|
|
1336 |
msgid "All"
|
1337 |
msgstr "Alle"
|
1338 |
|
1339 |
-
#: templates/filters/global/reset-filters.php:
|
1340 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1341 |
msgid "Reset filters"
|
1342 |
msgstr "Filter zurücksetzen"
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
+
"POT-Creation-Date: 2021-04-20 14:45:48+00:00\n"
|
9 |
"PO-Revision-Date: 2021-03-02 11:03+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
67 |
msgid "Query Type:"
|
68 |
msgstr "Query-Typ"
|
69 |
|
|
|
|
|
|
|
|
|
70 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
71 |
msgid "OR"
|
72 |
msgstr "ODER"
|
139 |
"\"https://yithemes.com/\" target=\"_blank\">Weitere Plugins für Ihren E-"
|
140 |
"Commerce-Shop erhalten Sie bei <strong>YITH</strong></a>"
|
141 |
|
142 |
+
#: includes/class.yith-wcan-admin.php:107
|
143 |
msgctxt "[Admin] Copy confirmation message"
|
144 |
msgid "Content copied to your clipboard"
|
145 |
msgstr "Inhalt in die Zwischenablage kopiert"
|
146 |
|
147 |
+
#: includes/class.yith-wcan-admin.php:108
|
148 |
msgctxt "[Admin] Confirm filter delete message"
|
149 |
msgid "Are you sure you want to delete this item?"
|
150 |
msgstr "Sind Sie sicher, dass Sie dieses Element löschen möchten?"
|
151 |
|
152 |
#. translators: 1. Number of items that will be added.
|
153 |
+
#: includes/class.yith-wcan-admin.php:110
|
154 |
msgctxt "[Admin] Confirm add all terms message"
|
155 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
156 |
msgstr ""
|
157 |
"Sind Sie sicher, dass Sie fortfahren möchten? Dieser Vorgang wird %s "
|
158 |
"Elemente hinzufügen"
|
159 |
|
160 |
+
#: includes/class.yith-wcan-admin.php:113 templates/admin/preset-filter.php:31
|
161 |
msgctxt "[Admin] Message shown when filter has empty title"
|
162 |
msgid "< no title >"
|
163 |
msgstr "< Kein Titel >"
|
164 |
|
165 |
+
#: includes/class.yith-wcan-admin.php:114
|
166 |
msgctxt "[Admin] Media library title, when selecting images"
|
167 |
msgid "Select media you want to use"
|
168 |
msgstr "Die zu verwendenden Medien auswählen"
|
169 |
|
170 |
+
#: includes/class.yith-wcan-admin.php:115
|
171 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
172 |
msgid "Use this media"
|
173 |
msgstr "Dieses Medium verwenden"
|
174 |
|
175 |
+
#: includes/class.yith-wcan-admin.php:181
|
176 |
msgctxt "[Admin] tab name"
|
177 |
msgid "Filter presets"
|
178 |
msgstr "Filter-Presets"
|
179 |
|
180 |
+
#: includes/class.yith-wcan-admin.php:182
|
181 |
msgctxt "[Admin] tab name"
|
182 |
msgid "General settings"
|
183 |
msgstr "Allgemeine Einstellungen"
|
184 |
|
185 |
+
#: includes/class.yith-wcan-admin.php:183
|
186 |
#, fuzzy
|
187 |
msgctxt "[Admin] tab name"
|
188 |
msgid "SEO"
|
189 |
msgstr "SEO"
|
190 |
|
191 |
+
#: includes/class.yith-wcan-admin.php:184
|
192 |
msgctxt "[Admin] tab name"
|
193 |
msgid "Premium Version"
|
194 |
msgstr "Premium-Version"
|
195 |
|
196 |
+
#: includes/class.yith-wcan-admin.php:188
|
197 |
msgctxt "[Admin] tab name"
|
198 |
msgid "Legacy"
|
199 |
msgstr "Legacy"
|
200 |
|
|
|
201 |
#: includes/class.yith-wcan-admin.php:194
|
202 |
+
#: includes/class.yith-wcan-admin.php:195
|
203 |
msgctxt "[Admin] Menu title"
|
204 |
msgid "Ajax Product Filter"
|
205 |
msgstr "AJAX Produkt-Filter "
|
206 |
|
207 |
+
#: includes/class.yith-wcan-admin.php:196
|
208 |
msgctxt "[Admin] Plugin description"
|
209 |
msgid ""
|
210 |
"It allows your users to find the product they are looking for as quickly as "
|
213 |
"Ermöglicht Ihren Benutzern, das gesuchte Produkt so schnell wie möglich zu "
|
214 |
"finden."
|
215 |
|
216 |
+
#: includes/class.yith-wcan-admin.php:309
|
217 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
218 |
msgid "item"
|
219 |
msgstr "Artikel"
|
220 |
|
221 |
+
#: includes/class.yith-wcan-admin.php:310
|
222 |
msgctxt "[Admin] Preset table empty message second line"
|
223 |
msgid "But don't worry, here you can create your first one!"
|
224 |
msgstr "Aber keine Sorge, hier können Sie eine erste erstellen!"
|
225 |
|
226 |
+
#: includes/class.yith-wcan-admin.php:458
|
227 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
228 |
msgid "Clear Product Filter transients"
|
229 |
msgstr "Produktfilter-Tansients löschen"
|
230 |
|
231 |
+
#: includes/class.yith-wcan-admin.php:464
|
232 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
233 |
msgid "Run filter widgets upgrade"
|
234 |
msgstr "Upgrade der Filter-Widgets ausführen"
|
235 |
|
236 |
+
#: includes/class.yith-wcan-admin.php:459
|
237 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
238 |
msgid "Clear"
|
239 |
msgstr "Löschen"
|
240 |
|
241 |
+
#: includes/class.yith-wcan-admin.php:465
|
242 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
243 |
msgid "Run"
|
244 |
msgstr "Start"
|
245 |
|
246 |
+
#: includes/class.yith-wcan-admin.php:460
|
247 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
248 |
msgid ""
|
249 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
255 |
"Konfiguration Ihres Produkts geändert haben und die Filter nicht die "
|
256 |
"erwarteten Ergebnisse anzeigen. "
|
257 |
|
258 |
+
#: includes/class.yith-wcan-admin.php:466
|
259 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
260 |
msgid ""
|
261 |
"This will create a preset for any sidebar of your shop containing filter "
|
405 |
msgid "Multiselect relation"
|
406 |
msgstr "Multiselect-Beziehung"
|
407 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
#: plugin-options/filter-options.php:120
|
409 |
msgctxt "[Admin] Filter edit form"
|
410 |
msgid "Choose how multiple terms selection should behave"
|
501 |
msgid "Filter by %s"
|
502 |
msgstr "Nach %s filtern"
|
503 |
|
504 |
+
#: includes/class.yith-wcan-presets.php:95
|
505 |
+
#: includes/class.yith-wcan-presets.php:100
|
506 |
msgctxt "[Admin] name of presets custom post type"
|
507 |
msgid "Filter presets"
|
508 |
msgstr "Filter-Presets"
|
509 |
|
510 |
+
#: includes/class.yith-wcan-presets.php:96
|
511 |
msgctxt "[Admin] singular name of presets custom post type"
|
512 |
msgid "Filter preset"
|
513 |
msgstr "Filter-Preset"
|
514 |
|
515 |
+
#: includes/class.yith-wcan-presets.php:97
|
516 |
msgctxt "[Admin] add new filter preset label"
|
517 |
msgid "Add new preset"
|
518 |
msgstr "Neues Preset hinzufügen"
|
519 |
|
520 |
+
#: includes/class.yith-wcan-presets.php:139
|
521 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
522 |
msgid "Convert widgets in a preset"
|
523 |
msgstr "Widgets in eine Preset konvertieren"
|
545 |
msgid "YITH AJAX Filters Reset Button"
|
546 |
msgstr "YITH AJAX-Filter Reset-Button"
|
547 |
|
548 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:89
|
549 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:60
|
550 |
msgctxt "[ELEMENTOR] Default preset option"
|
551 |
msgid "Choose an option"
|
552 |
msgstr "Wählen Sie eine Option"
|
553 |
|
554 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:97
|
555 |
msgctxt "[ELEMENTOR] Section title"
|
556 |
msgid "Filters"
|
557 |
msgstr "Filter"
|
561 |
msgid "General"
|
562 |
msgstr "Allgemein"
|
563 |
|
564 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:105
|
565 |
msgctxt "[ELEMENTOR] Control label"
|
566 |
msgid "Preset"
|
567 |
msgstr "Preset"
|
616 |
msgid "Rated %s out of 5"
|
617 |
msgstr "Bewertet mit %s von 5"
|
618 |
|
619 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:69
|
620 |
msgctxt "[GUTENBERG]: block name"
|
621 |
msgid "YITH AJAX Filters Preset"
|
622 |
msgstr "YITH AJAX Filters Preset"
|
626 |
msgid "YITH Reset Filters Button"
|
627 |
msgstr "YITH \"Filter zurücksetzen\"-Button"
|
628 |
|
629 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:70
|
630 |
msgctxt "[GUTENBERG]: block description"
|
631 |
msgid "Show filters from a preset"
|
632 |
msgstr "Filter aus einem Preset anzeigen"
|
645 |
"zu platzieren, wenn die Option \"Position des Buttons zurücksetzen\" für den "
|
646 |
"Loop Ihres Produkts nicht funktioniert"
|
647 |
|
648 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:75
|
649 |
msgctxt "[GUTENBERG]: attribute description"
|
650 |
msgid "Preset"
|
651 |
msgstr "Preset"
|
696 |
msgid "filter preset"
|
697 |
msgstr "Filter-Preset"
|
698 |
|
699 |
+
#: templates/admin/preset-filters.php:29
|
700 |
msgctxt ""
|
701 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
702 |
msgid "filter"
|
732 |
msgid "YITH AJAX Product Filter"
|
733 |
msgstr "YITH AJAX Product Filter"
|
734 |
|
735 |
+
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
736 |
+
#, fuzzy
|
737 |
+
msgctxt ""
|
738 |
+
"[ADMIN] Ajax Filter Widget; logical operator that affects query behaviour"
|
739 |
+
msgid "AND"
|
740 |
+
msgstr "UND"
|
741 |
+
|
742 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
743 |
msgctxt "[Plugin Name]"
|
744 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
745 |
msgstr ""
|
746 |
"Alle von YITH WooCommerce AJAX Product Filter gesetzten Filter zurücksetzen "
|
747 |
|
748 |
+
#: plugin-options/filter-options.php:117
|
749 |
+
#, fuzzy
|
750 |
+
msgctxt ""
|
751 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
752 |
+
msgid "AND - Results need to match all selected terms at the same time"
|
753 |
+
msgstr ""
|
754 |
+
"UND - Die Ergebnisse müssen mit allen ausgewählten Begriffen gleichzeitig "
|
755 |
+
"übereinstimmen"
|
756 |
+
|
757 |
#: plugin-options/filter-options.php:118
|
758 |
+
#, fuzzy
|
759 |
+
msgctxt ""
|
760 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
761 |
msgid "OR - Results need to match at least one of the selected terms"
|
762 |
msgstr ""
|
763 |
"ODER - Die Ergebnisse müssen mit mindestens einem der ausgewählten Begriffe "
|
1255 |
msgid "Delete Filter"
|
1256 |
msgstr "Filter löschen"
|
1257 |
|
1258 |
+
#: templates/admin/preset-filters.php:31
|
1259 |
msgctxt "[Admin] New filter button label"
|
1260 |
msgid "Add a new filter"
|
1261 |
msgstr "Einen neuen Filter hinzufügen"
|
1262 |
|
1263 |
+
#: templates/admin/preset-filters.php:55
|
1264 |
msgctxt "[Admin] Add new filter in new preset page"
|
1265 |
msgid "+ Add filter"
|
1266 |
msgstr "+ Filter hinzufügen "
|
1267 |
|
1268 |
+
#. translators: 1. number of items to show.
|
1269 |
+
#: templates/admin/preset-load-more-filters.php:18
|
1270 |
+
#, fuzzy
|
1271 |
+
msgctxt "[Admin] Add new filter in new preset page"
|
1272 |
+
msgid "See %d more filters"
|
1273 |
+
msgstr "Vor Filtern"
|
1274 |
+
|
1275 |
#: templates/admin/upgrade-note-modal.php:31
|
1276 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1277 |
msgid "Use the new filter preset feature for your filters"
|
1350 |
msgid "All"
|
1351 |
msgstr "Alle"
|
1352 |
|
1353 |
+
#: templates/filters/global/reset-filters.php:23
|
1354 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1355 |
msgid "Reset filters"
|
1356 |
msgstr "Filter zurücksetzen"
|
Binary file
|
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"PO-Revision-Date: 2021-02-12 13:32:43+0000\n"
|
10 |
"Language: el_GR\n"
|
11 |
"MIME-Version: 1.0\n"
|
@@ -65,10 +65,6 @@ msgstr "Τύπος:"
|
|
65 |
msgid "Query Type:"
|
66 |
msgstr "Τύπος Ερωτήματος:"
|
67 |
|
68 |
-
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
69 |
-
msgid "AND"
|
70 |
-
msgstr "ΚΑΙ"
|
71 |
-
|
72 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
73 |
msgid "OR"
|
74 |
msgstr "Ή"
|
@@ -142,72 +138,72 @@ msgstr ""
|
|
142 |
"περισσότερα πρόσθετα για το ηλεκτρονικό σας κατάστημα στο <strong>YITH</"
|
143 |
"strong></a>"
|
144 |
|
145 |
-
#: includes/class.yith-wcan-admin.php:
|
146 |
msgctxt "[Admin] Copy confirmation message"
|
147 |
msgid "Content copied to your clipboard"
|
148 |
msgstr "Έγινε αντιγραφή περιεχομένου σε πρόχειρο"
|
149 |
|
150 |
-
#: includes/class.yith-wcan-admin.php:
|
151 |
msgctxt "[Admin] Confirm filter delete message"
|
152 |
msgid "Are you sure you want to delete this item?"
|
153 |
msgstr "Είστε σίγουροι ότι θέλετε να διαγράψετε αυτό το αντικείμενο;"
|
154 |
|
155 |
#. translators: 1. Number of items that will be added.
|
156 |
-
#: includes/class.yith-wcan-admin.php:
|
157 |
msgctxt "[Admin] Confirm add all terms message"
|
158 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
159 |
msgstr ""
|
160 |
"Είστε σίγουροι ότι θέλετε να προχωρήσετε; Αυτή η διαδικασία θα προσθέσει %s "
|
161 |
"αντικείμενα"
|
162 |
|
163 |
-
#: includes/class.yith-wcan-admin.php:
|
164 |
msgctxt "[Admin] Message shown when filter has empty title"
|
165 |
msgid "< no title >"
|
166 |
msgstr "< χωρίς τίτλο >"
|
167 |
|
168 |
-
#: includes/class.yith-wcan-admin.php:
|
169 |
msgctxt "[Admin] Media library title, when selecting images"
|
170 |
msgid "Select media you want to use"
|
171 |
msgstr "Επιλέξτε τα πολυμέσα που θέλετε να χρησιμοποιήσετε"
|
172 |
|
173 |
-
#: includes/class.yith-wcan-admin.php:
|
174 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
175 |
msgid "Use this media"
|
176 |
msgstr "Χρησιμοποιήστε αυτά τα πολυμέσα"
|
177 |
|
178 |
-
#: includes/class.yith-wcan-admin.php:
|
179 |
msgctxt "[Admin] tab name"
|
180 |
msgid "Filter presets"
|
181 |
msgstr "Προρυθμίσεις φίλτρου"
|
182 |
|
183 |
-
#: includes/class.yith-wcan-admin.php:
|
184 |
msgctxt "[Admin] tab name"
|
185 |
msgid "General settings"
|
186 |
msgstr "Γενικές ρυθμίσεις"
|
187 |
|
188 |
-
#: includes/class.yith-wcan-admin.php:
|
189 |
#, fuzzy
|
190 |
msgctxt "[Admin] tab name"
|
191 |
msgid "SEO"
|
192 |
msgstr "SEO"
|
193 |
|
194 |
-
#: includes/class.yith-wcan-admin.php:
|
195 |
msgctxt "[Admin] tab name"
|
196 |
msgid "Premium Version"
|
197 |
msgstr "Premium Έκδοση"
|
198 |
|
199 |
-
#: includes/class.yith-wcan-admin.php:
|
200 |
msgctxt "[Admin] tab name"
|
201 |
msgid "Legacy"
|
202 |
msgstr "Σύστημα κληρονομιάς"
|
203 |
|
204 |
-
#: includes/class.yith-wcan-admin.php:193
|
205 |
#: includes/class.yith-wcan-admin.php:194
|
|
|
206 |
msgctxt "[Admin] Menu title"
|
207 |
msgid "Ajax Product Filter"
|
208 |
msgstr "Ajax Product Filter"
|
209 |
|
210 |
-
#: includes/class.yith-wcan-admin.php:
|
211 |
msgctxt "[Admin] Plugin description"
|
212 |
msgid ""
|
213 |
"It allows your users to find the product they are looking for as quickly as "
|
@@ -216,37 +212,37 @@ msgstr ""
|
|
216 |
"Επιτρέπει στους χρήστες σας να βρουν το προϊόν που επιθυμούν το συντομότερο "
|
217 |
"δυνατό."
|
218 |
|
219 |
-
#: includes/class.yith-wcan-admin.php:
|
220 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
221 |
msgid "item"
|
222 |
msgstr "αντικείμενο"
|
223 |
|
224 |
-
#: includes/class.yith-wcan-admin.php:
|
225 |
msgctxt "[Admin] Preset table empty message second line"
|
226 |
msgid "But don't worry, here you can create your first one!"
|
227 |
msgstr "Μην ανησυχείτε, εδώ μπορείτε να δημιουργήσετε το πρώτο!"
|
228 |
|
229 |
-
#: includes/class.yith-wcan-admin.php:
|
230 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
231 |
msgid "Clear Product Filter transients"
|
232 |
msgstr "Καθαρισμός μεταβάσεων φίλτρου προϊόντος"
|
233 |
|
234 |
-
#: includes/class.yith-wcan-admin.php:
|
235 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
236 |
msgid "Run filter widgets upgrade"
|
237 |
msgstr "Εκτέλεση αναβάθμισης μικροεφαρμογών φίλτρου"
|
238 |
|
239 |
-
#: includes/class.yith-wcan-admin.php:
|
240 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
241 |
msgid "Clear"
|
242 |
msgstr "Καθαρισμός"
|
243 |
|
244 |
-
#: includes/class.yith-wcan-admin.php:
|
245 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
246 |
msgid "Run"
|
247 |
msgstr "Εκτέλεση"
|
248 |
|
249 |
-
#: includes/class.yith-wcan-admin.php:
|
250 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
251 |
msgid ""
|
252 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
@@ -258,7 +254,7 @@ msgstr ""
|
|
258 |
"κατα την αλλαγή της ρύθμισης του προϊόντος σας, τα φίλτρα δεν εμφανίζουν τα "
|
259 |
"αποτελέσματα που περιμένετε. "
|
260 |
|
261 |
-
#: includes/class.yith-wcan-admin.php:
|
262 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
263 |
msgid ""
|
264 |
"This will create a preset for any sidebar of your shop containing filter "
|
@@ -408,13 +404,6 @@ msgctxt "[Admin] Filter edit form"
|
|
408 |
msgid "Multiselect relation"
|
409 |
msgstr "Σχέση πολλαπλής επιλογής"
|
410 |
|
411 |
-
#: plugin-options/filter-options.php:117
|
412 |
-
msgctxt "[Admin] Filter edit form"
|
413 |
-
msgid "AND - Results need to match all selected terms at the same time"
|
414 |
-
msgstr ""
|
415 |
-
"ΚΑΙ - Τα αποτελέσματα πρέπει να αντιστοιχούν σε όλους τους επιλεγμένους "
|
416 |
-
"όρους ταυτόχρονα"
|
417 |
-
|
418 |
#: plugin-options/filter-options.php:120
|
419 |
msgctxt "[Admin] Filter edit form"
|
420 |
msgid "Choose how multiple terms selection should behave"
|
@@ -511,23 +500,23 @@ msgctxt "[ADMIN] Name of default taxonomy filter created by plugin"
|
|
511 |
msgid "Filter by %s"
|
512 |
msgstr "Ταξινόμηση κατά %s"
|
513 |
|
514 |
-
#: includes/class.yith-wcan-presets.php:
|
515 |
-
#: includes/class.yith-wcan-presets.php:
|
516 |
msgctxt "[Admin] name of presets custom post type"
|
517 |
msgid "Filter presets"
|
518 |
msgstr "Φίλτρο προρυθμίσεων"
|
519 |
|
520 |
-
#: includes/class.yith-wcan-presets.php:
|
521 |
msgctxt "[Admin] singular name of presets custom post type"
|
522 |
msgid "Filter preset"
|
523 |
msgstr "Φίλτρο προρύθμισης"
|
524 |
|
525 |
-
#: includes/class.yith-wcan-presets.php:
|
526 |
msgctxt "[Admin] add new filter preset label"
|
527 |
msgid "Add new preset"
|
528 |
msgstr "Προσθήκη νέας προρύθμισης"
|
529 |
|
530 |
-
#: includes/class.yith-wcan-presets.php:
|
531 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
532 |
msgid "Convert widgets in a preset"
|
533 |
msgstr "Μετατροπή μικροεφαρμογών σε προρύθμιση"
|
@@ -555,13 +544,13 @@ msgctxt "[ADMIN] Name of the preset elementor widget"
|
|
555 |
msgid "YITH AJAX Filters Reset Button"
|
556 |
msgstr "Κουμπί Επαναφοράς Φίλτρων YITH AJAX"
|
557 |
|
558 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
559 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
560 |
msgctxt "[ELEMENTOR] Default preset option"
|
561 |
msgid "Choose an option"
|
562 |
msgstr "Διαλέξτε μια επιλογή"
|
563 |
|
564 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
565 |
msgctxt "[ELEMENTOR] Section title"
|
566 |
msgid "Filters"
|
567 |
msgstr "Φίλτρα"
|
@@ -571,7 +560,7 @@ msgctxt "[ELEMENTOR] Section title"
|
|
571 |
msgid "General"
|
572 |
msgstr "Γενικά"
|
573 |
|
574 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
575 |
msgctxt "[ELEMENTOR] Control label"
|
576 |
msgid "Preset"
|
577 |
msgstr "Προρύθμιση"
|
@@ -626,7 +615,7 @@ msgctxt "[FRONTEND] Star rating label"
|
|
626 |
msgid "Rated %s out of 5"
|
627 |
msgstr "Βαθμολογήθηκε με %s από 5"
|
628 |
|
629 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
630 |
msgctxt "[GUTENBERG]: block name"
|
631 |
msgid "YITH AJAX Filters Preset"
|
632 |
msgstr "Προρύθμιση Φίλτρων YITH AJAX"
|
@@ -636,7 +625,7 @@ msgctxt "[GUTENBERG]: block name"
|
|
636 |
msgid "YITH Reset Filters Button"
|
637 |
msgstr "Κουμπί Επαναφοράς Φίλτρων YITH"
|
638 |
|
639 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
640 |
msgctxt "[GUTENBERG]: block description"
|
641 |
msgid "Show filters from a preset"
|
642 |
msgstr "Εμφάνιση φίλτρων από προρύθμιση"
|
@@ -655,7 +644,7 @@ msgstr ""
|
|
655 |
"φίλτρων” μέσα στη σελίδα, όταν η επιλογή “Επαναφορά θέσης κουμπιού” δεν "
|
656 |
"λειτουργεί για τον βρόχο προϊόντος"
|
657 |
|
658 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
659 |
msgctxt "[GUTENBERG]: attribute description"
|
660 |
msgid "Preset"
|
661 |
msgstr "Προρύθμιση"
|
@@ -706,7 +695,7 @@ msgctxt ""
|
|
706 |
msgid "filter preset"
|
707 |
msgstr "προρύθμιση φίλτρου"
|
708 |
|
709 |
-
#: templates/admin/preset-filters.php:
|
710 |
msgctxt ""
|
711 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
712 |
msgid "filter"
|
@@ -743,6 +732,13 @@ msgctxt "[Plugin Name] Admin: Widget Title"
|
|
743 |
msgid "YITH AJAX Product Filter"
|
744 |
msgstr "YITH AJAX Product Filter"
|
745 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
746 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
747 |
msgctxt "[Plugin Name]"
|
748 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
@@ -750,8 +746,19 @@ msgstr ""
|
|
750 |
"Επαναφορά όλων των φίλτρων που έχουν οριστεί από το YITH WooCommerce AJAX "
|
751 |
"Product Filter"
|
752 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
753 |
#: plugin-options/filter-options.php:118
|
754 |
-
|
|
|
|
|
755 |
msgid "OR - Results need to match at least one of the selected terms"
|
756 |
msgstr ""
|
757 |
"Ή - Τα αποτελέσματα πρέπει να αντιστοιχούν τουλάχιστον έναν από τους "
|
@@ -1245,16 +1252,23 @@ msgctxt "[Admin] Delete filter button, in new/edit preset page"
|
|
1245 |
msgid "Delete Filter"
|
1246 |
msgstr "Διαγραφή Φίλτρου"
|
1247 |
|
1248 |
-
#: templates/admin/preset-filters.php:
|
1249 |
msgctxt "[Admin] New filter button label"
|
1250 |
msgid "Add a new filter"
|
1251 |
msgstr "Προσθήκη νέου φίλτρου"
|
1252 |
|
1253 |
-
#: templates/admin/preset-filters.php:
|
1254 |
msgctxt "[Admin] Add new filter in new preset page"
|
1255 |
msgid "+ Add filter"
|
1256 |
msgstr "+ Προσθήκη φίλτρου"
|
1257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1258 |
#: templates/admin/upgrade-note-modal.php:31
|
1259 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1260 |
msgid "Use the new filter preset feature for your filters"
|
@@ -1334,7 +1348,7 @@ msgctxt "[FRONTEND] General option for terms dropdown"
|
|
1334 |
msgid "All"
|
1335 |
msgstr "Όλα"
|
1336 |
|
1337 |
-
#: templates/filters/global/reset-filters.php:
|
1338 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1339 |
msgid "Reset filters"
|
1340 |
msgstr "Επαναφορά φίλτρων"
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
+
"POT-Creation-Date: 2021-04-20 14:45:48+00:00\n"
|
9 |
"PO-Revision-Date: 2021-02-12 13:32:43+0000\n"
|
10 |
"Language: el_GR\n"
|
11 |
"MIME-Version: 1.0\n"
|
65 |
msgid "Query Type:"
|
66 |
msgstr "Τύπος Ερωτήματος:"
|
67 |
|
|
|
|
|
|
|
|
|
68 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
69 |
msgid "OR"
|
70 |
msgstr "Ή"
|
138 |
"περισσότερα πρόσθετα για το ηλεκτρονικό σας κατάστημα στο <strong>YITH</"
|
139 |
"strong></a>"
|
140 |
|
141 |
+
#: includes/class.yith-wcan-admin.php:107
|
142 |
msgctxt "[Admin] Copy confirmation message"
|
143 |
msgid "Content copied to your clipboard"
|
144 |
msgstr "Έγινε αντιγραφή περιεχομένου σε πρόχειρο"
|
145 |
|
146 |
+
#: includes/class.yith-wcan-admin.php:108
|
147 |
msgctxt "[Admin] Confirm filter delete message"
|
148 |
msgid "Are you sure you want to delete this item?"
|
149 |
msgstr "Είστε σίγουροι ότι θέλετε να διαγράψετε αυτό το αντικείμενο;"
|
150 |
|
151 |
#. translators: 1. Number of items that will be added.
|
152 |
+
#: includes/class.yith-wcan-admin.php:110
|
153 |
msgctxt "[Admin] Confirm add all terms message"
|
154 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
155 |
msgstr ""
|
156 |
"Είστε σίγουροι ότι θέλετε να προχωρήσετε; Αυτή η διαδικασία θα προσθέσει %s "
|
157 |
"αντικείμενα"
|
158 |
|
159 |
+
#: includes/class.yith-wcan-admin.php:113 templates/admin/preset-filter.php:31
|
160 |
msgctxt "[Admin] Message shown when filter has empty title"
|
161 |
msgid "< no title >"
|
162 |
msgstr "< χωρίς τίτλο >"
|
163 |
|
164 |
+
#: includes/class.yith-wcan-admin.php:114
|
165 |
msgctxt "[Admin] Media library title, when selecting images"
|
166 |
msgid "Select media you want to use"
|
167 |
msgstr "Επιλέξτε τα πολυμέσα που θέλετε να χρησιμοποιήσετε"
|
168 |
|
169 |
+
#: includes/class.yith-wcan-admin.php:115
|
170 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
171 |
msgid "Use this media"
|
172 |
msgstr "Χρησιμοποιήστε αυτά τα πολυμέσα"
|
173 |
|
174 |
+
#: includes/class.yith-wcan-admin.php:181
|
175 |
msgctxt "[Admin] tab name"
|
176 |
msgid "Filter presets"
|
177 |
msgstr "Προρυθμίσεις φίλτρου"
|
178 |
|
179 |
+
#: includes/class.yith-wcan-admin.php:182
|
180 |
msgctxt "[Admin] tab name"
|
181 |
msgid "General settings"
|
182 |
msgstr "Γενικές ρυθμίσεις"
|
183 |
|
184 |
+
#: includes/class.yith-wcan-admin.php:183
|
185 |
#, fuzzy
|
186 |
msgctxt "[Admin] tab name"
|
187 |
msgid "SEO"
|
188 |
msgstr "SEO"
|
189 |
|
190 |
+
#: includes/class.yith-wcan-admin.php:184
|
191 |
msgctxt "[Admin] tab name"
|
192 |
msgid "Premium Version"
|
193 |
msgstr "Premium Έκδοση"
|
194 |
|
195 |
+
#: includes/class.yith-wcan-admin.php:188
|
196 |
msgctxt "[Admin] tab name"
|
197 |
msgid "Legacy"
|
198 |
msgstr "Σύστημα κληρονομιάς"
|
199 |
|
|
|
200 |
#: includes/class.yith-wcan-admin.php:194
|
201 |
+
#: includes/class.yith-wcan-admin.php:195
|
202 |
msgctxt "[Admin] Menu title"
|
203 |
msgid "Ajax Product Filter"
|
204 |
msgstr "Ajax Product Filter"
|
205 |
|
206 |
+
#: includes/class.yith-wcan-admin.php:196
|
207 |
msgctxt "[Admin] Plugin description"
|
208 |
msgid ""
|
209 |
"It allows your users to find the product they are looking for as quickly as "
|
212 |
"Επιτρέπει στους χρήστες σας να βρουν το προϊόν που επιθυμούν το συντομότερο "
|
213 |
"δυνατό."
|
214 |
|
215 |
+
#: includes/class.yith-wcan-admin.php:309
|
216 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
217 |
msgid "item"
|
218 |
msgstr "αντικείμενο"
|
219 |
|
220 |
+
#: includes/class.yith-wcan-admin.php:310
|
221 |
msgctxt "[Admin] Preset table empty message second line"
|
222 |
msgid "But don't worry, here you can create your first one!"
|
223 |
msgstr "Μην ανησυχείτε, εδώ μπορείτε να δημιουργήσετε το πρώτο!"
|
224 |
|
225 |
+
#: includes/class.yith-wcan-admin.php:458
|
226 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
227 |
msgid "Clear Product Filter transients"
|
228 |
msgstr "Καθαρισμός μεταβάσεων φίλτρου προϊόντος"
|
229 |
|
230 |
+
#: includes/class.yith-wcan-admin.php:464
|
231 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
232 |
msgid "Run filter widgets upgrade"
|
233 |
msgstr "Εκτέλεση αναβάθμισης μικροεφαρμογών φίλτρου"
|
234 |
|
235 |
+
#: includes/class.yith-wcan-admin.php:459
|
236 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
237 |
msgid "Clear"
|
238 |
msgstr "Καθαρισμός"
|
239 |
|
240 |
+
#: includes/class.yith-wcan-admin.php:465
|
241 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
242 |
msgid "Run"
|
243 |
msgstr "Εκτέλεση"
|
244 |
|
245 |
+
#: includes/class.yith-wcan-admin.php:460
|
246 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
247 |
msgid ""
|
248 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
254 |
"κατα την αλλαγή της ρύθμισης του προϊόντος σας, τα φίλτρα δεν εμφανίζουν τα "
|
255 |
"αποτελέσματα που περιμένετε. "
|
256 |
|
257 |
+
#: includes/class.yith-wcan-admin.php:466
|
258 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
259 |
msgid ""
|
260 |
"This will create a preset for any sidebar of your shop containing filter "
|
404 |
msgid "Multiselect relation"
|
405 |
msgstr "Σχέση πολλαπλής επιλογής"
|
406 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
#: plugin-options/filter-options.php:120
|
408 |
msgctxt "[Admin] Filter edit form"
|
409 |
msgid "Choose how multiple terms selection should behave"
|
500 |
msgid "Filter by %s"
|
501 |
msgstr "Ταξινόμηση κατά %s"
|
502 |
|
503 |
+
#: includes/class.yith-wcan-presets.php:95
|
504 |
+
#: includes/class.yith-wcan-presets.php:100
|
505 |
msgctxt "[Admin] name of presets custom post type"
|
506 |
msgid "Filter presets"
|
507 |
msgstr "Φίλτρο προρυθμίσεων"
|
508 |
|
509 |
+
#: includes/class.yith-wcan-presets.php:96
|
510 |
msgctxt "[Admin] singular name of presets custom post type"
|
511 |
msgid "Filter preset"
|
512 |
msgstr "Φίλτρο προρύθμισης"
|
513 |
|
514 |
+
#: includes/class.yith-wcan-presets.php:97
|
515 |
msgctxt "[Admin] add new filter preset label"
|
516 |
msgid "Add new preset"
|
517 |
msgstr "Προσθήκη νέας προρύθμισης"
|
518 |
|
519 |
+
#: includes/class.yith-wcan-presets.php:139
|
520 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
521 |
msgid "Convert widgets in a preset"
|
522 |
msgstr "Μετατροπή μικροεφαρμογών σε προρύθμιση"
|
544 |
msgid "YITH AJAX Filters Reset Button"
|
545 |
msgstr "Κουμπί Επαναφοράς Φίλτρων YITH AJAX"
|
546 |
|
547 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:89
|
548 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:60
|
549 |
msgctxt "[ELEMENTOR] Default preset option"
|
550 |
msgid "Choose an option"
|
551 |
msgstr "Διαλέξτε μια επιλογή"
|
552 |
|
553 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:97
|
554 |
msgctxt "[ELEMENTOR] Section title"
|
555 |
msgid "Filters"
|
556 |
msgstr "Φίλτρα"
|
560 |
msgid "General"
|
561 |
msgstr "Γενικά"
|
562 |
|
563 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:105
|
564 |
msgctxt "[ELEMENTOR] Control label"
|
565 |
msgid "Preset"
|
566 |
msgstr "Προρύθμιση"
|
615 |
msgid "Rated %s out of 5"
|
616 |
msgstr "Βαθμολογήθηκε με %s από 5"
|
617 |
|
618 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:69
|
619 |
msgctxt "[GUTENBERG]: block name"
|
620 |
msgid "YITH AJAX Filters Preset"
|
621 |
msgstr "Προρύθμιση Φίλτρων YITH AJAX"
|
625 |
msgid "YITH Reset Filters Button"
|
626 |
msgstr "Κουμπί Επαναφοράς Φίλτρων YITH"
|
627 |
|
628 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:70
|
629 |
msgctxt "[GUTENBERG]: block description"
|
630 |
msgid "Show filters from a preset"
|
631 |
msgstr "Εμφάνιση φίλτρων από προρύθμιση"
|
644 |
"φίλτρων” μέσα στη σελίδα, όταν η επιλογή “Επαναφορά θέσης κουμπιού” δεν "
|
645 |
"λειτουργεί για τον βρόχο προϊόντος"
|
646 |
|
647 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:75
|
648 |
msgctxt "[GUTENBERG]: attribute description"
|
649 |
msgid "Preset"
|
650 |
msgstr "Προρύθμιση"
|
695 |
msgid "filter preset"
|
696 |
msgstr "προρύθμιση φίλτρου"
|
697 |
|
698 |
+
#: templates/admin/preset-filters.php:29
|
699 |
msgctxt ""
|
700 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
701 |
msgid "filter"
|
732 |
msgid "YITH AJAX Product Filter"
|
733 |
msgstr "YITH AJAX Product Filter"
|
734 |
|
735 |
+
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
736 |
+
#, fuzzy
|
737 |
+
msgctxt ""
|
738 |
+
"[ADMIN] Ajax Filter Widget; logical operator that affects query behaviour"
|
739 |
+
msgid "AND"
|
740 |
+
msgstr "ΚΑΙ"
|
741 |
+
|
742 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
743 |
msgctxt "[Plugin Name]"
|
744 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
746 |
"Επαναφορά όλων των φίλτρων που έχουν οριστεί από το YITH WooCommerce AJAX "
|
747 |
"Product Filter"
|
748 |
|
749 |
+
#: plugin-options/filter-options.php:117
|
750 |
+
#, fuzzy
|
751 |
+
msgctxt ""
|
752 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
753 |
+
msgid "AND - Results need to match all selected terms at the same time"
|
754 |
+
msgstr ""
|
755 |
+
"ΚΑΙ - Τα αποτελέσματα πρέπει να αντιστοιχούν σε όλους τους επιλεγμένους "
|
756 |
+
"όρους ταυτόχρονα"
|
757 |
+
|
758 |
#: plugin-options/filter-options.php:118
|
759 |
+
#, fuzzy
|
760 |
+
msgctxt ""
|
761 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
762 |
msgid "OR - Results need to match at least one of the selected terms"
|
763 |
msgstr ""
|
764 |
"Ή - Τα αποτελέσματα πρέπει να αντιστοιχούν τουλάχιστον έναν από τους "
|
1252 |
msgid "Delete Filter"
|
1253 |
msgstr "Διαγραφή Φίλτρου"
|
1254 |
|
1255 |
+
#: templates/admin/preset-filters.php:31
|
1256 |
msgctxt "[Admin] New filter button label"
|
1257 |
msgid "Add a new filter"
|
1258 |
msgstr "Προσθήκη νέου φίλτρου"
|
1259 |
|
1260 |
+
#: templates/admin/preset-filters.php:55
|
1261 |
msgctxt "[Admin] Add new filter in new preset page"
|
1262 |
msgid "+ Add filter"
|
1263 |
msgstr "+ Προσθήκη φίλτρου"
|
1264 |
|
1265 |
+
#. translators: 1. number of items to show.
|
1266 |
+
#: templates/admin/preset-load-more-filters.php:18
|
1267 |
+
#, fuzzy
|
1268 |
+
msgctxt "[Admin] Add new filter in new preset page"
|
1269 |
+
msgid "See %d more filters"
|
1270 |
+
msgstr "Πριν από φίλτρα"
|
1271 |
+
|
1272 |
#: templates/admin/upgrade-note-modal.php:31
|
1273 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1274 |
msgid "Use the new filter preset feature for your filters"
|
1348 |
msgid "All"
|
1349 |
msgstr "Όλα"
|
1350 |
|
1351 |
+
#: templates/filters/global/reset-filters.php:23
|
1352 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1353 |
msgid "Reset filters"
|
1354 |
msgstr "Επαναφορά φίλτρων"
|
Binary file
|
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"PO-Revision-Date: 2021-02-12 13:30:42+0000\n"
|
10 |
"Language: es\n"
|
11 |
"MIME-Version: 1.0\n"
|
@@ -65,10 +65,6 @@ msgstr "Tipo:"
|
|
65 |
msgid "Query Type:"
|
66 |
msgstr "Tipo de consulta:"
|
67 |
|
68 |
-
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
69 |
-
msgid "AND"
|
70 |
-
msgstr "Y"
|
71 |
-
|
72 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
73 |
msgid "OR"
|
74 |
msgstr "O"
|
@@ -142,71 +138,71 @@ msgstr ""
|
|
142 |
"yithemes.com/\" target=\"_blank\">Obtén más plugins para tu comercio "
|
143 |
"electrónico en <strong>YITH</strong></a>"
|
144 |
|
145 |
-
#: includes/class.yith-wcan-admin.php:
|
146 |
msgctxt "[Admin] Copy confirmation message"
|
147 |
msgid "Content copied to your clipboard"
|
148 |
msgstr "Contenido copiado en tu portapapeles"
|
149 |
|
150 |
-
#: includes/class.yith-wcan-admin.php:
|
151 |
msgctxt "[Admin] Confirm filter delete message"
|
152 |
msgid "Are you sure you want to delete this item?"
|
153 |
msgstr "¿Estás seguro de que quieres eliminar este artículo?"
|
154 |
|
155 |
#. translators: 1. Number of items that will be added.
|
156 |
-
#: includes/class.yith-wcan-admin.php:
|
157 |
msgctxt "[Admin] Confirm add all terms message"
|
158 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
159 |
msgstr ""
|
160 |
"¿Estás seguro de que quieres continuar? Esta operación añadirá %s artículos"
|
161 |
|
162 |
-
#: includes/class.yith-wcan-admin.php:
|
163 |
msgctxt "[Admin] Message shown when filter has empty title"
|
164 |
msgid "< no title >"
|
165 |
msgstr "< sin título >"
|
166 |
|
167 |
-
#: includes/class.yith-wcan-admin.php:
|
168 |
msgctxt "[Admin] Media library title, when selecting images"
|
169 |
msgid "Select media you want to use"
|
170 |
msgstr "Selecciona los medios que quieres usar"
|
171 |
|
172 |
-
#: includes/class.yith-wcan-admin.php:
|
173 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
174 |
msgid "Use this media"
|
175 |
msgstr "Utiliza estos medios"
|
176 |
|
177 |
-
#: includes/class.yith-wcan-admin.php:
|
178 |
msgctxt "[Admin] tab name"
|
179 |
msgid "Filter presets"
|
180 |
msgstr "Filtrar prestablecidos"
|
181 |
|
182 |
-
#: includes/class.yith-wcan-admin.php:
|
183 |
msgctxt "[Admin] tab name"
|
184 |
msgid "General settings"
|
185 |
msgstr "Ajustes generales"
|
186 |
|
187 |
-
#: includes/class.yith-wcan-admin.php:
|
188 |
#, fuzzy
|
189 |
msgctxt "[Admin] tab name"
|
190 |
msgid "SEO"
|
191 |
msgstr "SEO"
|
192 |
|
193 |
-
#: includes/class.yith-wcan-admin.php:
|
194 |
msgctxt "[Admin] tab name"
|
195 |
msgid "Premium Version"
|
196 |
msgstr "Versión premium"
|
197 |
|
198 |
-
#: includes/class.yith-wcan-admin.php:
|
199 |
msgctxt "[Admin] tab name"
|
200 |
msgid "Legacy"
|
201 |
msgstr "Heredado"
|
202 |
|
203 |
-
#: includes/class.yith-wcan-admin.php:193
|
204 |
#: includes/class.yith-wcan-admin.php:194
|
|
|
205 |
msgctxt "[Admin] Menu title"
|
206 |
msgid "Ajax Product Filter"
|
207 |
msgstr "Ajax Product Filter"
|
208 |
|
209 |
-
#: includes/class.yith-wcan-admin.php:
|
210 |
msgctxt "[Admin] Plugin description"
|
211 |
msgid ""
|
212 |
"It allows your users to find the product they are looking for as quickly as "
|
@@ -215,37 +211,37 @@ msgstr ""
|
|
215 |
"Permite a tus usuarios encontrar el producto que están buscando lo más "
|
216 |
"rápido posible."
|
217 |
|
218 |
-
#: includes/class.yith-wcan-admin.php:
|
219 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
220 |
msgid "item"
|
221 |
msgstr "artículo"
|
222 |
|
223 |
-
#: includes/class.yith-wcan-admin.php:
|
224 |
msgctxt "[Admin] Preset table empty message second line"
|
225 |
msgid "But don't worry, here you can create your first one!"
|
226 |
msgstr "¡Pero no te preocupes, aquí puedes crear el primero!"
|
227 |
|
228 |
-
#: includes/class.yith-wcan-admin.php:
|
229 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
230 |
msgid "Clear Product Filter transients"
|
231 |
msgstr "Limpiar datos transitorios de filtro de producto"
|
232 |
|
233 |
-
#: includes/class.yith-wcan-admin.php:
|
234 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
235 |
msgid "Run filter widgets upgrade"
|
236 |
msgstr "Activar actualización de widgets de filtro"
|
237 |
|
238 |
-
#: includes/class.yith-wcan-admin.php:
|
239 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
240 |
msgid "Clear"
|
241 |
msgstr "Limpìar"
|
242 |
|
243 |
-
#: includes/class.yith-wcan-admin.php:
|
244 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
245 |
msgid "Run"
|
246 |
msgstr "Activar"
|
247 |
|
248 |
-
#: includes/class.yith-wcan-admin.php:
|
249 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
250 |
msgid ""
|
251 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
@@ -257,7 +253,7 @@ msgstr ""
|
|
257 |
"configuración del producto y los filtros no muestran los resultados "
|
258 |
"esperados."
|
259 |
|
260 |
-
#: includes/class.yith-wcan-admin.php:
|
261 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
262 |
msgid ""
|
263 |
"This will create a preset for any sidebar of your shop containing filter "
|
@@ -406,13 +402,6 @@ msgctxt "[Admin] Filter edit form"
|
|
406 |
msgid "Multiselect relation"
|
407 |
msgstr "Relación de multi-selección"
|
408 |
|
409 |
-
#: plugin-options/filter-options.php:117
|
410 |
-
msgctxt "[Admin] Filter edit form"
|
411 |
-
msgid "AND - Results need to match all selected terms at the same time"
|
412 |
-
msgstr ""
|
413 |
-
"Y . Los resultados deben coincidir con los términos seleccionados al mismo "
|
414 |
-
"tiempo"
|
415 |
-
|
416 |
#: plugin-options/filter-options.php:120
|
417 |
msgctxt "[Admin] Filter edit form"
|
418 |
msgid "Choose how multiple terms selection should behave"
|
@@ -509,23 +498,23 @@ msgctxt "[ADMIN] Name of default taxonomy filter created by plugin"
|
|
509 |
msgid "Filter by %s"
|
510 |
msgstr "Filtrar por %s"
|
511 |
|
512 |
-
#: includes/class.yith-wcan-presets.php:
|
513 |
-
#: includes/class.yith-wcan-presets.php:
|
514 |
msgctxt "[Admin] name of presets custom post type"
|
515 |
msgid "Filter presets"
|
516 |
msgstr "Pre establecimientos de filtro"
|
517 |
|
518 |
-
#: includes/class.yith-wcan-presets.php:
|
519 |
msgctxt "[Admin] singular name of presets custom post type"
|
520 |
msgid "Filter preset"
|
521 |
msgstr "Pre establecimiento de filtro"
|
522 |
|
523 |
-
#: includes/class.yith-wcan-presets.php:
|
524 |
msgctxt "[Admin] add new filter preset label"
|
525 |
msgid "Add new preset"
|
526 |
msgstr "Añadir nuevo pre establecimiento"
|
527 |
|
528 |
-
#: includes/class.yith-wcan-presets.php:
|
529 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
530 |
msgid "Convert widgets in a preset"
|
531 |
msgstr "Convertir widgets en un pre establecimiento"
|
@@ -553,13 +542,13 @@ msgctxt "[ADMIN] Name of the preset elementor widget"
|
|
553 |
msgid "YITH AJAX Filters Reset Button"
|
554 |
msgstr "YITH AJAX Botón de restablecimiento de filtros"
|
555 |
|
556 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
557 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
558 |
msgctxt "[ELEMENTOR] Default preset option"
|
559 |
msgid "Choose an option"
|
560 |
msgstr "Escoge una opción"
|
561 |
|
562 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
563 |
msgctxt "[ELEMENTOR] Section title"
|
564 |
msgid "Filters"
|
565 |
msgstr "Filtros"
|
@@ -569,7 +558,7 @@ msgctxt "[ELEMENTOR] Section title"
|
|
569 |
msgid "General"
|
570 |
msgstr "General"
|
571 |
|
572 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
573 |
msgctxt "[ELEMENTOR] Control label"
|
574 |
msgid "Preset"
|
575 |
msgstr "Pre establecimiento"
|
@@ -623,7 +612,7 @@ msgctxt "[FRONTEND] Star rating label"
|
|
623 |
msgid "Rated %s out of 5"
|
624 |
msgstr "Valorado en %s sobre 5"
|
625 |
|
626 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
627 |
msgctxt "[GUTENBERG]: block name"
|
628 |
msgid "YITH AJAX Filters Preset"
|
629 |
msgstr "YITH AJAX Pre establecimiento de filtros"
|
@@ -633,7 +622,7 @@ msgctxt "[GUTENBERG]: block name"
|
|
633 |
msgid "YITH Reset Filters Button"
|
634 |
msgstr "YITH Botón de restablecimiento de filtros"
|
635 |
|
636 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
637 |
msgctxt "[GUTENBERG]: block description"
|
638 |
msgid "Show filters from a preset"
|
639 |
msgstr "Mostrar filtros de un pre establecimiento"
|
@@ -652,7 +641,7 @@ msgstr ""
|
|
652 |
"opción ''Posición del botón Restablecer' no funcione en el bucle de tus "
|
653 |
"productos"
|
654 |
|
655 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
656 |
msgctxt "[GUTENBERG]: attribute description"
|
657 |
msgid "Preset"
|
658 |
msgstr "Pre establecimiento"
|
@@ -703,7 +692,7 @@ msgctxt ""
|
|
703 |
msgid "filter preset"
|
704 |
msgstr "Pre establecimiento de filtro"
|
705 |
|
706 |
-
#: templates/admin/preset-filters.php:
|
707 |
msgctxt ""
|
708 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
709 |
msgid "filter"
|
@@ -739,6 +728,13 @@ msgctxt "[Plugin Name] Admin: Widget Title"
|
|
739 |
msgid "YITH AJAX Product Filter"
|
740 |
msgstr "YITH Ajax Filtro de producto"
|
741 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
742 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
743 |
msgctxt "[Plugin Name]"
|
744 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
@@ -746,8 +742,19 @@ msgstr ""
|
|
746 |
"Restablecer todos los filtros establecidos por YITH WooCommerce Ajax Product "
|
747 |
"Filter"
|
748 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
749 |
#: plugin-options/filter-options.php:118
|
750 |
-
|
|
|
|
|
751 |
msgid "OR - Results need to match at least one of the selected terms"
|
752 |
msgstr ""
|
753 |
"O - Los resultados deben coincidir con al menos uno de los términos "
|
@@ -1242,16 +1249,23 @@ msgctxt "[Admin] Delete filter button, in new/edit preset page"
|
|
1242 |
msgid "Delete Filter"
|
1243 |
msgstr "Eliminar filtro"
|
1244 |
|
1245 |
-
#: templates/admin/preset-filters.php:
|
1246 |
msgctxt "[Admin] New filter button label"
|
1247 |
msgid "Add a new filter"
|
1248 |
msgstr "Añadir nuevo filtro"
|
1249 |
|
1250 |
-
#: templates/admin/preset-filters.php:
|
1251 |
msgctxt "[Admin] Add new filter in new preset page"
|
1252 |
msgid "+ Add filter"
|
1253 |
msgstr "+ Añadir filtro"
|
1254 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1255 |
#: templates/admin/upgrade-note-modal.php:31
|
1256 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1257 |
msgid "Use the new filter preset feature for your filters"
|
@@ -1328,7 +1342,7 @@ msgctxt "[FRONTEND] General option for terms dropdown"
|
|
1328 |
msgid "All"
|
1329 |
msgstr "Todo"
|
1330 |
|
1331 |
-
#: templates/filters/global/reset-filters.php:
|
1332 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1333 |
msgid "Reset filters"
|
1334 |
msgstr "Restablecer filtros"
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
+
"POT-Creation-Date: 2021-04-20 14:45:48+00:00\n"
|
9 |
"PO-Revision-Date: 2021-02-12 13:30:42+0000\n"
|
10 |
"Language: es\n"
|
11 |
"MIME-Version: 1.0\n"
|
65 |
msgid "Query Type:"
|
66 |
msgstr "Tipo de consulta:"
|
67 |
|
|
|
|
|
|
|
|
|
68 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
69 |
msgid "OR"
|
70 |
msgstr "O"
|
138 |
"yithemes.com/\" target=\"_blank\">Obtén más plugins para tu comercio "
|
139 |
"electrónico en <strong>YITH</strong></a>"
|
140 |
|
141 |
+
#: includes/class.yith-wcan-admin.php:107
|
142 |
msgctxt "[Admin] Copy confirmation message"
|
143 |
msgid "Content copied to your clipboard"
|
144 |
msgstr "Contenido copiado en tu portapapeles"
|
145 |
|
146 |
+
#: includes/class.yith-wcan-admin.php:108
|
147 |
msgctxt "[Admin] Confirm filter delete message"
|
148 |
msgid "Are you sure you want to delete this item?"
|
149 |
msgstr "¿Estás seguro de que quieres eliminar este artículo?"
|
150 |
|
151 |
#. translators: 1. Number of items that will be added.
|
152 |
+
#: includes/class.yith-wcan-admin.php:110
|
153 |
msgctxt "[Admin] Confirm add all terms message"
|
154 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
155 |
msgstr ""
|
156 |
"¿Estás seguro de que quieres continuar? Esta operación añadirá %s artículos"
|
157 |
|
158 |
+
#: includes/class.yith-wcan-admin.php:113 templates/admin/preset-filter.php:31
|
159 |
msgctxt "[Admin] Message shown when filter has empty title"
|
160 |
msgid "< no title >"
|
161 |
msgstr "< sin título >"
|
162 |
|
163 |
+
#: includes/class.yith-wcan-admin.php:114
|
164 |
msgctxt "[Admin] Media library title, when selecting images"
|
165 |
msgid "Select media you want to use"
|
166 |
msgstr "Selecciona los medios que quieres usar"
|
167 |
|
168 |
+
#: includes/class.yith-wcan-admin.php:115
|
169 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
170 |
msgid "Use this media"
|
171 |
msgstr "Utiliza estos medios"
|
172 |
|
173 |
+
#: includes/class.yith-wcan-admin.php:181
|
174 |
msgctxt "[Admin] tab name"
|
175 |
msgid "Filter presets"
|
176 |
msgstr "Filtrar prestablecidos"
|
177 |
|
178 |
+
#: includes/class.yith-wcan-admin.php:182
|
179 |
msgctxt "[Admin] tab name"
|
180 |
msgid "General settings"
|
181 |
msgstr "Ajustes generales"
|
182 |
|
183 |
+
#: includes/class.yith-wcan-admin.php:183
|
184 |
#, fuzzy
|
185 |
msgctxt "[Admin] tab name"
|
186 |
msgid "SEO"
|
187 |
msgstr "SEO"
|
188 |
|
189 |
+
#: includes/class.yith-wcan-admin.php:184
|
190 |
msgctxt "[Admin] tab name"
|
191 |
msgid "Premium Version"
|
192 |
msgstr "Versión premium"
|
193 |
|
194 |
+
#: includes/class.yith-wcan-admin.php:188
|
195 |
msgctxt "[Admin] tab name"
|
196 |
msgid "Legacy"
|
197 |
msgstr "Heredado"
|
198 |
|
|
|
199 |
#: includes/class.yith-wcan-admin.php:194
|
200 |
+
#: includes/class.yith-wcan-admin.php:195
|
201 |
msgctxt "[Admin] Menu title"
|
202 |
msgid "Ajax Product Filter"
|
203 |
msgstr "Ajax Product Filter"
|
204 |
|
205 |
+
#: includes/class.yith-wcan-admin.php:196
|
206 |
msgctxt "[Admin] Plugin description"
|
207 |
msgid ""
|
208 |
"It allows your users to find the product they are looking for as quickly as "
|
211 |
"Permite a tus usuarios encontrar el producto que están buscando lo más "
|
212 |
"rápido posible."
|
213 |
|
214 |
+
#: includes/class.yith-wcan-admin.php:309
|
215 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
216 |
msgid "item"
|
217 |
msgstr "artículo"
|
218 |
|
219 |
+
#: includes/class.yith-wcan-admin.php:310
|
220 |
msgctxt "[Admin] Preset table empty message second line"
|
221 |
msgid "But don't worry, here you can create your first one!"
|
222 |
msgstr "¡Pero no te preocupes, aquí puedes crear el primero!"
|
223 |
|
224 |
+
#: includes/class.yith-wcan-admin.php:458
|
225 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
226 |
msgid "Clear Product Filter transients"
|
227 |
msgstr "Limpiar datos transitorios de filtro de producto"
|
228 |
|
229 |
+
#: includes/class.yith-wcan-admin.php:464
|
230 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
231 |
msgid "Run filter widgets upgrade"
|
232 |
msgstr "Activar actualización de widgets de filtro"
|
233 |
|
234 |
+
#: includes/class.yith-wcan-admin.php:459
|
235 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
236 |
msgid "Clear"
|
237 |
msgstr "Limpìar"
|
238 |
|
239 |
+
#: includes/class.yith-wcan-admin.php:465
|
240 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
241 |
msgid "Run"
|
242 |
msgstr "Activar"
|
243 |
|
244 |
+
#: includes/class.yith-wcan-admin.php:460
|
245 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
246 |
msgid ""
|
247 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
253 |
"configuración del producto y los filtros no muestran los resultados "
|
254 |
"esperados."
|
255 |
|
256 |
+
#: includes/class.yith-wcan-admin.php:466
|
257 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
258 |
msgid ""
|
259 |
"This will create a preset for any sidebar of your shop containing filter "
|
402 |
msgid "Multiselect relation"
|
403 |
msgstr "Relación de multi-selección"
|
404 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
#: plugin-options/filter-options.php:120
|
406 |
msgctxt "[Admin] Filter edit form"
|
407 |
msgid "Choose how multiple terms selection should behave"
|
498 |
msgid "Filter by %s"
|
499 |
msgstr "Filtrar por %s"
|
500 |
|
501 |
+
#: includes/class.yith-wcan-presets.php:95
|
502 |
+
#: includes/class.yith-wcan-presets.php:100
|
503 |
msgctxt "[Admin] name of presets custom post type"
|
504 |
msgid "Filter presets"
|
505 |
msgstr "Pre establecimientos de filtro"
|
506 |
|
507 |
+
#: includes/class.yith-wcan-presets.php:96
|
508 |
msgctxt "[Admin] singular name of presets custom post type"
|
509 |
msgid "Filter preset"
|
510 |
msgstr "Pre establecimiento de filtro"
|
511 |
|
512 |
+
#: includes/class.yith-wcan-presets.php:97
|
513 |
msgctxt "[Admin] add new filter preset label"
|
514 |
msgid "Add new preset"
|
515 |
msgstr "Añadir nuevo pre establecimiento"
|
516 |
|
517 |
+
#: includes/class.yith-wcan-presets.php:139
|
518 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
519 |
msgid "Convert widgets in a preset"
|
520 |
msgstr "Convertir widgets en un pre establecimiento"
|
542 |
msgid "YITH AJAX Filters Reset Button"
|
543 |
msgstr "YITH AJAX Botón de restablecimiento de filtros"
|
544 |
|
545 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:89
|
546 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:60
|
547 |
msgctxt "[ELEMENTOR] Default preset option"
|
548 |
msgid "Choose an option"
|
549 |
msgstr "Escoge una opción"
|
550 |
|
551 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:97
|
552 |
msgctxt "[ELEMENTOR] Section title"
|
553 |
msgid "Filters"
|
554 |
msgstr "Filtros"
|
558 |
msgid "General"
|
559 |
msgstr "General"
|
560 |
|
561 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:105
|
562 |
msgctxt "[ELEMENTOR] Control label"
|
563 |
msgid "Preset"
|
564 |
msgstr "Pre establecimiento"
|
612 |
msgid "Rated %s out of 5"
|
613 |
msgstr "Valorado en %s sobre 5"
|
614 |
|
615 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:69
|
616 |
msgctxt "[GUTENBERG]: block name"
|
617 |
msgid "YITH AJAX Filters Preset"
|
618 |
msgstr "YITH AJAX Pre establecimiento de filtros"
|
622 |
msgid "YITH Reset Filters Button"
|
623 |
msgstr "YITH Botón de restablecimiento de filtros"
|
624 |
|
625 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:70
|
626 |
msgctxt "[GUTENBERG]: block description"
|
627 |
msgid "Show filters from a preset"
|
628 |
msgstr "Mostrar filtros de un pre establecimiento"
|
641 |
"opción ''Posición del botón Restablecer' no funcione en el bucle de tus "
|
642 |
"productos"
|
643 |
|
644 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:75
|
645 |
msgctxt "[GUTENBERG]: attribute description"
|
646 |
msgid "Preset"
|
647 |
msgstr "Pre establecimiento"
|
692 |
msgid "filter preset"
|
693 |
msgstr "Pre establecimiento de filtro"
|
694 |
|
695 |
+
#: templates/admin/preset-filters.php:29
|
696 |
msgctxt ""
|
697 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
698 |
msgid "filter"
|
728 |
msgid "YITH AJAX Product Filter"
|
729 |
msgstr "YITH Ajax Filtro de producto"
|
730 |
|
731 |
+
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
732 |
+
#, fuzzy
|
733 |
+
msgctxt ""
|
734 |
+
"[ADMIN] Ajax Filter Widget; logical operator that affects query behaviour"
|
735 |
+
msgid "AND"
|
736 |
+
msgstr "Y"
|
737 |
+
|
738 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
739 |
msgctxt "[Plugin Name]"
|
740 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
742 |
"Restablecer todos los filtros establecidos por YITH WooCommerce Ajax Product "
|
743 |
"Filter"
|
744 |
|
745 |
+
#: plugin-options/filter-options.php:117
|
746 |
+
#, fuzzy
|
747 |
+
msgctxt ""
|
748 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
749 |
+
msgid "AND - Results need to match all selected terms at the same time"
|
750 |
+
msgstr ""
|
751 |
+
"Y . Los resultados deben coincidir con los términos seleccionados al mismo "
|
752 |
+
"tiempo"
|
753 |
+
|
754 |
#: plugin-options/filter-options.php:118
|
755 |
+
#, fuzzy
|
756 |
+
msgctxt ""
|
757 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
758 |
msgid "OR - Results need to match at least one of the selected terms"
|
759 |
msgstr ""
|
760 |
"O - Los resultados deben coincidir con al menos uno de los términos "
|
1249 |
msgid "Delete Filter"
|
1250 |
msgstr "Eliminar filtro"
|
1251 |
|
1252 |
+
#: templates/admin/preset-filters.php:31
|
1253 |
msgctxt "[Admin] New filter button label"
|
1254 |
msgid "Add a new filter"
|
1255 |
msgstr "Añadir nuevo filtro"
|
1256 |
|
1257 |
+
#: templates/admin/preset-filters.php:55
|
1258 |
msgctxt "[Admin] Add new filter in new preset page"
|
1259 |
msgid "+ Add filter"
|
1260 |
msgstr "+ Añadir filtro"
|
1261 |
|
1262 |
+
#. translators: 1. number of items to show.
|
1263 |
+
#: templates/admin/preset-load-more-filters.php:18
|
1264 |
+
#, fuzzy
|
1265 |
+
msgctxt "[Admin] Add new filter in new preset page"
|
1266 |
+
msgid "See %d more filters"
|
1267 |
+
msgstr "Antes de los filtros"
|
1268 |
+
|
1269 |
#: templates/admin/upgrade-note-modal.php:31
|
1270 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1271 |
msgid "Use the new filter preset feature for your filters"
|
1342 |
msgid "All"
|
1343 |
msgstr "Todo"
|
1344 |
|
1345 |
+
#: templates/filters/global/reset-filters.php:23
|
1346 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1347 |
msgid "Reset filters"
|
1348 |
msgstr "Restablecer filtros"
|
Binary file
|
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"PO-Revision-Date: 2020-12-29 14:36:56+0000\n"
|
10 |
"Language: fr\n"
|
11 |
"MIME-Version: 1.0\n"
|
@@ -65,10 +65,6 @@ msgstr "Type :"
|
|
65 |
msgid "Query Type:"
|
66 |
msgstr "Type de requête :"
|
67 |
|
68 |
-
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
69 |
-
msgid "AND"
|
70 |
-
msgstr "ET"
|
71 |
-
|
72 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
73 |
msgid "OR"
|
74 |
msgstr "OU"
|
@@ -134,107 +130,107 @@ msgid ""
|
|
134 |
"your e-commerce shop on <strong>YITH</strong></a>"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: includes/class.yith-wcan-admin.php:
|
138 |
msgctxt "[Admin] Copy confirmation message"
|
139 |
msgid "Content copied to your clipboard"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: includes/class.yith-wcan-admin.php:
|
143 |
msgctxt "[Admin] Confirm filter delete message"
|
144 |
msgid "Are you sure you want to delete this item?"
|
145 |
msgstr ""
|
146 |
|
147 |
#. translators: 1. Number of items that will be added.
|
148 |
-
#: includes/class.yith-wcan-admin.php:
|
149 |
msgctxt "[Admin] Confirm add all terms message"
|
150 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: includes/class.yith-wcan-admin.php:
|
154 |
msgctxt "[Admin] Message shown when filter has empty title"
|
155 |
msgid "< no title >"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: includes/class.yith-wcan-admin.php:
|
159 |
msgctxt "[Admin] Media library title, when selecting images"
|
160 |
msgid "Select media you want to use"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: includes/class.yith-wcan-admin.php:
|
164 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
165 |
msgid "Use this media"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: includes/class.yith-wcan-admin.php:
|
169 |
msgctxt "[Admin] tab name"
|
170 |
msgid "Filter presets"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: includes/class.yith-wcan-admin.php:
|
174 |
msgctxt "[Admin] tab name"
|
175 |
msgid "General settings"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: includes/class.yith-wcan-admin.php:
|
179 |
#, fuzzy
|
180 |
msgctxt "[Admin] tab name"
|
181 |
msgid "SEO"
|
182 |
msgstr "SEO"
|
183 |
|
184 |
-
#: includes/class.yith-wcan-admin.php:
|
185 |
msgctxt "[Admin] tab name"
|
186 |
msgid "Premium Version"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: includes/class.yith-wcan-admin.php:
|
190 |
msgctxt "[Admin] tab name"
|
191 |
msgid "Legacy"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: includes/class.yith-wcan-admin.php:193
|
195 |
#: includes/class.yith-wcan-admin.php:194
|
|
|
196 |
msgctxt "[Admin] Menu title"
|
197 |
msgid "Ajax Product Filter"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: includes/class.yith-wcan-admin.php:
|
201 |
msgctxt "[Admin] Plugin description"
|
202 |
msgid ""
|
203 |
"It allows your users to find the product they are looking for as quickly as "
|
204 |
"possible."
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: includes/class.yith-wcan-admin.php:
|
208 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
209 |
msgid "item"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: includes/class.yith-wcan-admin.php:
|
213 |
msgctxt "[Admin] Preset table empty message second line"
|
214 |
msgid "But don't worry, here you can create your first one!"
|
215 |
msgstr ""
|
216 |
|
217 |
-
#: includes/class.yith-wcan-admin.php:
|
218 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
219 |
msgid "Clear Product Filter transients"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: includes/class.yith-wcan-admin.php:
|
223 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
224 |
msgid "Run filter widgets upgrade"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: includes/class.yith-wcan-admin.php:
|
228 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
229 |
msgid "Clear"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: includes/class.yith-wcan-admin.php:
|
233 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
234 |
msgid "Run"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: includes/class.yith-wcan-admin.php:
|
238 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
239 |
msgid ""
|
240 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
@@ -242,7 +238,7 @@ msgid ""
|
|
242 |
"and filters do not display the expected results."
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: includes/class.yith-wcan-admin.php:
|
246 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
247 |
msgid ""
|
248 |
"This will create a preset for any sidebar of your shop containing filter "
|
@@ -384,11 +380,6 @@ msgctxt "[Admin] Filter edit form"
|
|
384 |
msgid "Multiselect relation"
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: plugin-options/filter-options.php:117
|
388 |
-
msgctxt "[Admin] Filter edit form"
|
389 |
-
msgid "AND - Results need to match all selected terms at the same time"
|
390 |
-
msgstr ""
|
391 |
-
|
392 |
#: plugin-options/filter-options.php:120
|
393 |
msgctxt "[Admin] Filter edit form"
|
394 |
msgid "Choose how multiple terms selection should behave"
|
@@ -485,23 +476,23 @@ msgctxt "[ADMIN] Name of default taxonomy filter created by plugin"
|
|
485 |
msgid "Filter by %s"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: includes/class.yith-wcan-presets.php:
|
489 |
-
#: includes/class.yith-wcan-presets.php:
|
490 |
msgctxt "[Admin] name of presets custom post type"
|
491 |
msgid "Filter presets"
|
492 |
msgstr ""
|
493 |
|
494 |
-
#: includes/class.yith-wcan-presets.php:
|
495 |
msgctxt "[Admin] singular name of presets custom post type"
|
496 |
msgid "Filter preset"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: includes/class.yith-wcan-presets.php:
|
500 |
msgctxt "[Admin] add new filter preset label"
|
501 |
msgid "Add new preset"
|
502 |
msgstr ""
|
503 |
|
504 |
-
#: includes/class.yith-wcan-presets.php:
|
505 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
506 |
msgid "Convert widgets in a preset"
|
507 |
msgstr ""
|
@@ -529,13 +520,13 @@ msgctxt "[ADMIN] Name of the preset elementor widget"
|
|
529 |
msgid "YITH AJAX Filters Reset Button"
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
533 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
534 |
msgctxt "[ELEMENTOR] Default preset option"
|
535 |
msgid "Choose an option"
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
539 |
msgctxt "[ELEMENTOR] Section title"
|
540 |
msgid "Filters"
|
541 |
msgstr ""
|
@@ -545,7 +536,7 @@ msgctxt "[ELEMENTOR] Section title"
|
|
545 |
msgid "General"
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
549 |
msgctxt "[ELEMENTOR] Control label"
|
550 |
msgid "Preset"
|
551 |
msgstr ""
|
@@ -593,7 +584,7 @@ msgctxt "[FRONTEND] Star rating label"
|
|
593 |
msgid "Rated %s out of 5"
|
594 |
msgstr ""
|
595 |
|
596 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
597 |
msgctxt "[GUTENBERG]: block name"
|
598 |
msgid "YITH AJAX Filters Preset"
|
599 |
msgstr ""
|
@@ -603,7 +594,7 @@ msgctxt "[GUTENBERG]: block name"
|
|
603 |
msgid "YITH Reset Filters Button"
|
604 |
msgstr ""
|
605 |
|
606 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
607 |
msgctxt "[GUTENBERG]: block description"
|
608 |
msgid "Show filters from a preset"
|
609 |
msgstr ""
|
@@ -617,7 +608,7 @@ msgid ""
|
|
617 |
"product's loop"
|
618 |
msgstr ""
|
619 |
|
620 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
621 |
msgctxt "[GUTENBERG]: attribute description"
|
622 |
msgid "Preset"
|
623 |
msgstr ""
|
@@ -668,7 +659,7 @@ msgctxt ""
|
|
668 |
msgid "filter preset"
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: templates/admin/preset-filters.php:
|
672 |
msgctxt ""
|
673 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
674 |
msgid "filter"
|
@@ -702,13 +693,27 @@ msgctxt "[Plugin Name] Admin: Widget Title"
|
|
702 |
msgid "YITH AJAX Product Filter"
|
703 |
msgstr ""
|
704 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
705 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
706 |
msgctxt "[Plugin Name]"
|
707 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
708 |
msgstr ""
|
709 |
|
|
|
|
|
|
|
|
|
|
|
|
|
710 |
#: plugin-options/filter-options.php:118
|
711 |
-
msgctxt "
|
|
|
712 |
msgid "OR - Results need to match at least one of the selected terms"
|
713 |
msgstr ""
|
714 |
|
@@ -1173,16 +1178,22 @@ msgctxt "[Admin] Delete filter button, in new/edit preset page"
|
|
1173 |
msgid "Delete Filter"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
-
#: templates/admin/preset-filters.php:
|
1177 |
msgctxt "[Admin] New filter button label"
|
1178 |
msgid "Add a new filter"
|
1179 |
msgstr ""
|
1180 |
|
1181 |
-
#: templates/admin/preset-filters.php:
|
1182 |
msgctxt "[Admin] Add new filter in new preset page"
|
1183 |
msgid "+ Add filter"
|
1184 |
msgstr ""
|
1185 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1186 |
#: templates/admin/upgrade-note-modal.php:31
|
1187 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1188 |
msgid "Use the new filter preset feature for your filters"
|
@@ -1245,7 +1256,7 @@ msgctxt "[FRONTEND] General option for terms dropdown"
|
|
1245 |
msgid "All"
|
1246 |
msgstr ""
|
1247 |
|
1248 |
-
#: templates/filters/global/reset-filters.php:
|
1249 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1250 |
msgid "Reset filters"
|
1251 |
msgstr ""
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
+
"POT-Creation-Date: 2021-04-20 14:45:48+00:00\n"
|
9 |
"PO-Revision-Date: 2020-12-29 14:36:56+0000\n"
|
10 |
"Language: fr\n"
|
11 |
"MIME-Version: 1.0\n"
|
65 |
msgid "Query Type:"
|
66 |
msgstr "Type de requête :"
|
67 |
|
|
|
|
|
|
|
|
|
68 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
69 |
msgid "OR"
|
70 |
msgstr "OU"
|
130 |
"your e-commerce shop on <strong>YITH</strong></a>"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: includes/class.yith-wcan-admin.php:107
|
134 |
msgctxt "[Admin] Copy confirmation message"
|
135 |
msgid "Content copied to your clipboard"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: includes/class.yith-wcan-admin.php:108
|
139 |
msgctxt "[Admin] Confirm filter delete message"
|
140 |
msgid "Are you sure you want to delete this item?"
|
141 |
msgstr ""
|
142 |
|
143 |
#. translators: 1. Number of items that will be added.
|
144 |
+
#: includes/class.yith-wcan-admin.php:110
|
145 |
msgctxt "[Admin] Confirm add all terms message"
|
146 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: includes/class.yith-wcan-admin.php:113 templates/admin/preset-filter.php:31
|
150 |
msgctxt "[Admin] Message shown when filter has empty title"
|
151 |
msgid "< no title >"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: includes/class.yith-wcan-admin.php:114
|
155 |
msgctxt "[Admin] Media library title, when selecting images"
|
156 |
msgid "Select media you want to use"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: includes/class.yith-wcan-admin.php:115
|
160 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
161 |
msgid "Use this media"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: includes/class.yith-wcan-admin.php:181
|
165 |
msgctxt "[Admin] tab name"
|
166 |
msgid "Filter presets"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: includes/class.yith-wcan-admin.php:182
|
170 |
msgctxt "[Admin] tab name"
|
171 |
msgid "General settings"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: includes/class.yith-wcan-admin.php:183
|
175 |
#, fuzzy
|
176 |
msgctxt "[Admin] tab name"
|
177 |
msgid "SEO"
|
178 |
msgstr "SEO"
|
179 |
|
180 |
+
#: includes/class.yith-wcan-admin.php:184
|
181 |
msgctxt "[Admin] tab name"
|
182 |
msgid "Premium Version"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: includes/class.yith-wcan-admin.php:188
|
186 |
msgctxt "[Admin] tab name"
|
187 |
msgid "Legacy"
|
188 |
msgstr ""
|
189 |
|
|
|
190 |
#: includes/class.yith-wcan-admin.php:194
|
191 |
+
#: includes/class.yith-wcan-admin.php:195
|
192 |
msgctxt "[Admin] Menu title"
|
193 |
msgid "Ajax Product Filter"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: includes/class.yith-wcan-admin.php:196
|
197 |
msgctxt "[Admin] Plugin description"
|
198 |
msgid ""
|
199 |
"It allows your users to find the product they are looking for as quickly as "
|
200 |
"possible."
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: includes/class.yith-wcan-admin.php:309
|
204 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
205 |
msgid "item"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: includes/class.yith-wcan-admin.php:310
|
209 |
msgctxt "[Admin] Preset table empty message second line"
|
210 |
msgid "But don't worry, here you can create your first one!"
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: includes/class.yith-wcan-admin.php:458
|
214 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
215 |
msgid "Clear Product Filter transients"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: includes/class.yith-wcan-admin.php:464
|
219 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
220 |
msgid "Run filter widgets upgrade"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: includes/class.yith-wcan-admin.php:459
|
224 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
225 |
msgid "Clear"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: includes/class.yith-wcan-admin.php:465
|
229 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
230 |
msgid "Run"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: includes/class.yith-wcan-admin.php:460
|
234 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
235 |
msgid ""
|
236 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
238 |
"and filters do not display the expected results."
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: includes/class.yith-wcan-admin.php:466
|
242 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
243 |
msgid ""
|
244 |
"This will create a preset for any sidebar of your shop containing filter "
|
380 |
msgid "Multiselect relation"
|
381 |
msgstr ""
|
382 |
|
|
|
|
|
|
|
|
|
|
|
383 |
#: plugin-options/filter-options.php:120
|
384 |
msgctxt "[Admin] Filter edit form"
|
385 |
msgid "Choose how multiple terms selection should behave"
|
476 |
msgid "Filter by %s"
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: includes/class.yith-wcan-presets.php:95
|
480 |
+
#: includes/class.yith-wcan-presets.php:100
|
481 |
msgctxt "[Admin] name of presets custom post type"
|
482 |
msgid "Filter presets"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: includes/class.yith-wcan-presets.php:96
|
486 |
msgctxt "[Admin] singular name of presets custom post type"
|
487 |
msgid "Filter preset"
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: includes/class.yith-wcan-presets.php:97
|
491 |
msgctxt "[Admin] add new filter preset label"
|
492 |
msgid "Add new preset"
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: includes/class.yith-wcan-presets.php:139
|
496 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
497 |
msgid "Convert widgets in a preset"
|
498 |
msgstr ""
|
520 |
msgid "YITH AJAX Filters Reset Button"
|
521 |
msgstr ""
|
522 |
|
523 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:89
|
524 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:60
|
525 |
msgctxt "[ELEMENTOR] Default preset option"
|
526 |
msgid "Choose an option"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:97
|
530 |
msgctxt "[ELEMENTOR] Section title"
|
531 |
msgid "Filters"
|
532 |
msgstr ""
|
536 |
msgid "General"
|
537 |
msgstr ""
|
538 |
|
539 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:105
|
540 |
msgctxt "[ELEMENTOR] Control label"
|
541 |
msgid "Preset"
|
542 |
msgstr ""
|
584 |
msgid "Rated %s out of 5"
|
585 |
msgstr ""
|
586 |
|
587 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:69
|
588 |
msgctxt "[GUTENBERG]: block name"
|
589 |
msgid "YITH AJAX Filters Preset"
|
590 |
msgstr ""
|
594 |
msgid "YITH Reset Filters Button"
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:70
|
598 |
msgctxt "[GUTENBERG]: block description"
|
599 |
msgid "Show filters from a preset"
|
600 |
msgstr ""
|
608 |
"product's loop"
|
609 |
msgstr ""
|
610 |
|
611 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:75
|
612 |
msgctxt "[GUTENBERG]: attribute description"
|
613 |
msgid "Preset"
|
614 |
msgstr ""
|
659 |
msgid "filter preset"
|
660 |
msgstr ""
|
661 |
|
662 |
+
#: templates/admin/preset-filters.php:29
|
663 |
msgctxt ""
|
664 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
665 |
msgid "filter"
|
693 |
msgid "YITH AJAX Product Filter"
|
694 |
msgstr ""
|
695 |
|
696 |
+
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
697 |
+
#, fuzzy
|
698 |
+
msgctxt ""
|
699 |
+
"[ADMIN] Ajax Filter Widget; logical operator that affects query behaviour"
|
700 |
+
msgid "AND"
|
701 |
+
msgstr "ET"
|
702 |
+
|
703 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
704 |
msgctxt "[Plugin Name]"
|
705 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
706 |
msgstr ""
|
707 |
|
708 |
+
#: plugin-options/filter-options.php:117
|
709 |
+
msgctxt ""
|
710 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
711 |
+
msgid "AND - Results need to match all selected terms at the same time"
|
712 |
+
msgstr ""
|
713 |
+
|
714 |
#: plugin-options/filter-options.php:118
|
715 |
+
msgctxt ""
|
716 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
717 |
msgid "OR - Results need to match at least one of the selected terms"
|
718 |
msgstr ""
|
719 |
|
1178 |
msgid "Delete Filter"
|
1179 |
msgstr ""
|
1180 |
|
1181 |
+
#: templates/admin/preset-filters.php:31
|
1182 |
msgctxt "[Admin] New filter button label"
|
1183 |
msgid "Add a new filter"
|
1184 |
msgstr ""
|
1185 |
|
1186 |
+
#: templates/admin/preset-filters.php:55
|
1187 |
msgctxt "[Admin] Add new filter in new preset page"
|
1188 |
msgid "+ Add filter"
|
1189 |
msgstr ""
|
1190 |
|
1191 |
+
#. translators: 1. number of items to show.
|
1192 |
+
#: templates/admin/preset-load-more-filters.php:18
|
1193 |
+
msgctxt "[Admin] Add new filter in new preset page"
|
1194 |
+
msgid "See %d more filters"
|
1195 |
+
msgstr ""
|
1196 |
+
|
1197 |
#: templates/admin/upgrade-note-modal.php:31
|
1198 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1199 |
msgid "Use the new filter preset feature for your filters"
|
1256 |
msgid "All"
|
1257 |
msgstr ""
|
1258 |
|
1259 |
+
#: templates/filters/global/reset-filters.php:23
|
1260 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1261 |
msgid "Reset filters"
|
1262 |
msgstr ""
|
Binary file
|
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"PO-Revision-Date: 2021-03-03 10:36+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
@@ -67,10 +67,6 @@ msgstr "Tipo:"
|
|
67 |
msgid "Query Type:"
|
68 |
msgstr "Tipo Query:"
|
69 |
|
70 |
-
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
71 |
-
msgid "AND"
|
72 |
-
msgstr "E"
|
73 |
-
|
74 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
75 |
msgid "OR"
|
76 |
msgstr "O"
|
@@ -145,69 +141,69 @@ msgstr ""
|
|
145 |
"yithemes.com/\" target=\"_blank\">Scopri altri plugin per il tuo e-commerce "
|
146 |
"su <strong>YITH</strong></a>"
|
147 |
|
148 |
-
#: includes/class.yith-wcan-admin.php:
|
149 |
msgctxt "[Admin] Copy confirmation message"
|
150 |
msgid "Content copied to your clipboard"
|
151 |
msgstr "Contenuto copiato negli appunti"
|
152 |
|
153 |
-
#: includes/class.yith-wcan-admin.php:
|
154 |
msgctxt "[Admin] Confirm filter delete message"
|
155 |
msgid "Are you sure you want to delete this item?"
|
156 |
msgstr "Sei sicuro di voler eliminare questo termine?"
|
157 |
|
158 |
#. translators: 1. Number of items that will be added.
|
159 |
-
#: includes/class.yith-wcan-admin.php:
|
160 |
msgctxt "[Admin] Confirm add all terms message"
|
161 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
162 |
msgstr "Sei sicuro di voler procedere? Questa azione aggiungerà %s elementi"
|
163 |
|
164 |
-
#: includes/class.yith-wcan-admin.php:
|
165 |
msgctxt "[Admin] Message shown when filter has empty title"
|
166 |
msgid "< no title >"
|
167 |
msgstr "< nessun titolo >"
|
168 |
|
169 |
-
#: includes/class.yith-wcan-admin.php:
|
170 |
msgctxt "[Admin] Media library title, when selecting images"
|
171 |
msgid "Select media you want to use"
|
172 |
msgstr "Seleziona i media da usare"
|
173 |
|
174 |
-
#: includes/class.yith-wcan-admin.php:
|
175 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
176 |
msgid "Use this media"
|
177 |
msgstr "Usa questo media"
|
178 |
|
179 |
-
#: includes/class.yith-wcan-admin.php:
|
180 |
msgctxt "[Admin] tab name"
|
181 |
msgid "Filter presets"
|
182 |
msgstr "Preset filtri"
|
183 |
|
184 |
-
#: includes/class.yith-wcan-admin.php:
|
185 |
msgctxt "[Admin] tab name"
|
186 |
msgid "General settings"
|
187 |
msgstr "Impostazioni generali"
|
188 |
|
189 |
-
#: includes/class.yith-wcan-admin.php:
|
190 |
msgctxt "[Admin] tab name"
|
191 |
msgid "SEO"
|
192 |
msgstr "SEO"
|
193 |
|
194 |
-
#: includes/class.yith-wcan-admin.php:
|
195 |
msgctxt "[Admin] tab name"
|
196 |
msgid "Premium Version"
|
197 |
msgstr "Versione Premium"
|
198 |
|
199 |
-
#: includes/class.yith-wcan-admin.php:
|
200 |
msgctxt "[Admin] tab name"
|
201 |
msgid "Legacy"
|
202 |
msgstr "Legacy"
|
203 |
|
204 |
-
#: includes/class.yith-wcan-admin.php:193
|
205 |
#: includes/class.yith-wcan-admin.php:194
|
|
|
206 |
msgctxt "[Admin] Menu title"
|
207 |
msgid "Ajax Product Filter"
|
208 |
msgstr "Ajax Product Filter"
|
209 |
|
210 |
-
#: includes/class.yith-wcan-admin.php:
|
211 |
msgctxt "[Admin] Plugin description"
|
212 |
msgid ""
|
213 |
"It allows your users to find the product they are looking for as quickly as "
|
@@ -216,37 +212,37 @@ msgstr ""
|
|
216 |
"Permette ai tuoi utenti di trovare il prodotto che stanno cercando il più "
|
217 |
"velocemente possibile."
|
218 |
|
219 |
-
#: includes/class.yith-wcan-admin.php:
|
220 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
221 |
msgid "item"
|
222 |
msgstr "elemento"
|
223 |
|
224 |
-
#: includes/class.yith-wcan-admin.php:
|
225 |
msgctxt "[Admin] Preset table empty message second line"
|
226 |
msgid "But don't worry, here you can create your first one!"
|
227 |
msgstr "Ma non preoccuparti. Puoi iniziare a crearli qui!"
|
228 |
|
229 |
-
#: includes/class.yith-wcan-admin.php:
|
230 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
231 |
msgid "Clear Product Filter transients"
|
232 |
msgstr "Cancella i transient Product Filter"
|
233 |
|
234 |
-
#: includes/class.yith-wcan-admin.php:
|
235 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
236 |
msgid "Run filter widgets upgrade"
|
237 |
msgstr "Avvia l'upgrade dei widget dei filtri"
|
238 |
|
239 |
-
#: includes/class.yith-wcan-admin.php:
|
240 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
241 |
msgid "Clear"
|
242 |
msgstr "Cancella"
|
243 |
|
244 |
-
#: includes/class.yith-wcan-admin.php:
|
245 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
246 |
msgid "Run"
|
247 |
msgstr "Avvia"
|
248 |
|
249 |
-
#: includes/class.yith-wcan-admin.php:
|
250 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
251 |
msgid ""
|
252 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
@@ -257,7 +253,7 @@ msgstr ""
|
|
257 |
"Product Filter. Utile se hai cambiato la configurazione del prodotto e i "
|
258 |
"filtri non mostrano i risultati previsti. "
|
259 |
|
260 |
-
#: includes/class.yith-wcan-admin.php:
|
261 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
262 |
msgid ""
|
263 |
"This will create a preset for any sidebar of your shop containing filter "
|
@@ -401,11 +397,6 @@ msgctxt "[Admin] Filter edit form"
|
|
401 |
msgid "Multiselect relation"
|
402 |
msgstr "Relazione seleziona multipla"
|
403 |
|
404 |
-
#: plugin-options/filter-options.php:117
|
405 |
-
msgctxt "[Admin] Filter edit form"
|
406 |
-
msgid "AND - Results need to match all selected terms at the same time"
|
407 |
-
msgstr "AND - I risultati devono combaciare con tutti i termini selezionati "
|
408 |
-
|
409 |
#: plugin-options/filter-options.php:120
|
410 |
msgctxt "[Admin] Filter edit form"
|
411 |
msgid "Choose how multiple terms selection should behave"
|
@@ -502,23 +493,23 @@ msgctxt "[ADMIN] Name of default taxonomy filter created by plugin"
|
|
502 |
msgid "Filter by %s"
|
503 |
msgstr "Filtra per %s"
|
504 |
|
505 |
-
#: includes/class.yith-wcan-presets.php:
|
506 |
-
#: includes/class.yith-wcan-presets.php:
|
507 |
msgctxt "[Admin] name of presets custom post type"
|
508 |
msgid "Filter presets"
|
509 |
msgstr "Preset filtri"
|
510 |
|
511 |
-
#: includes/class.yith-wcan-presets.php:
|
512 |
msgctxt "[Admin] singular name of presets custom post type"
|
513 |
msgid "Filter preset"
|
514 |
msgstr "Preset filtri"
|
515 |
|
516 |
-
#: includes/class.yith-wcan-presets.php:
|
517 |
msgctxt "[Admin] add new filter preset label"
|
518 |
msgid "Add new preset"
|
519 |
msgstr "Aggiungi nuovo preset"
|
520 |
|
521 |
-
#: includes/class.yith-wcan-presets.php:
|
522 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
523 |
msgid "Convert widgets in a preset"
|
524 |
msgstr "Converti widget in preset"
|
@@ -546,13 +537,13 @@ msgctxt "[ADMIN] Name of the preset elementor widget"
|
|
546 |
msgid "YITH AJAX Filters Reset Button"
|
547 |
msgstr "YITH AJAX Filters Reset Button"
|
548 |
|
549 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
550 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
551 |
msgctxt "[ELEMENTOR] Default preset option"
|
552 |
msgid "Choose an option"
|
553 |
msgstr "Scegli un'opzione"
|
554 |
|
555 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
556 |
msgctxt "[ELEMENTOR] Section title"
|
557 |
msgid "Filters"
|
558 |
msgstr "Filtri"
|
@@ -562,7 +553,7 @@ msgctxt "[ELEMENTOR] Section title"
|
|
562 |
msgid "General"
|
563 |
msgstr "Generale"
|
564 |
|
565 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
566 |
msgctxt "[ELEMENTOR] Control label"
|
567 |
msgid "Preset"
|
568 |
msgstr "Preset"
|
@@ -615,7 +606,7 @@ msgctxt "[FRONTEND] Star rating label"
|
|
615 |
msgid "Rated %s out of 5"
|
616 |
msgstr "Valutato %s su 5"
|
617 |
|
618 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
619 |
msgctxt "[GUTENBERG]: block name"
|
620 |
msgid "YITH AJAX Filters Preset"
|
621 |
msgstr "YITH AJAX Filters Preset"
|
@@ -625,7 +616,7 @@ msgctxt "[GUTENBERG]: block name"
|
|
625 |
msgid "YITH Reset Filters Button"
|
626 |
msgstr "YITH Reset Filters Button"
|
627 |
|
628 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
629 |
msgctxt "[GUTENBERG]: block description"
|
630 |
msgid "Show filters from a preset"
|
631 |
msgstr "Mostra filtri da un preset"
|
@@ -644,7 +635,7 @@ msgstr ""
|
|
644 |
"pagina se l'opzione \"Posizione pulsante reset\" non funziona per il loop "
|
645 |
"del prodotto"
|
646 |
|
647 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
648 |
msgctxt "[GUTENBERG]: attribute description"
|
649 |
msgid "Preset"
|
650 |
msgstr "Preset"
|
@@ -695,7 +686,7 @@ msgctxt ""
|
|
695 |
msgid "filter preset"
|
696 |
msgstr "preset filtri"
|
697 |
|
698 |
-
#: templates/admin/preset-filters.php:
|
699 |
msgctxt ""
|
700 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
701 |
msgid "filter"
|
@@ -731,14 +722,30 @@ msgctxt "[Plugin Name] Admin: Widget Title"
|
|
731 |
msgid "YITH AJAX Product Filter"
|
732 |
msgstr "YITH AJAX Product Filter"
|
733 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
734 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
735 |
msgctxt "[Plugin Name]"
|
736 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
737 |
msgstr ""
|
738 |
"Resetta tutti i filtri impostati da YITH WooCommerce AJAX Product Filter"
|
739 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
740 |
#: plugin-options/filter-options.php:118
|
741 |
-
|
|
|
|
|
742 |
msgid "OR - Results need to match at least one of the selected terms"
|
743 |
msgstr ""
|
744 |
"OR - I risultati devono combaciare con almeno uno dei termini selezionati"
|
@@ -1284,16 +1291,23 @@ msgctxt "[Admin] Delete filter button, in new/edit preset page"
|
|
1284 |
msgid "Delete Filter"
|
1285 |
msgstr "Elimina filtro"
|
1286 |
|
1287 |
-
#: templates/admin/preset-filters.php:
|
1288 |
msgctxt "[Admin] New filter button label"
|
1289 |
msgid "Add a new filter"
|
1290 |
msgstr "Aggiungi nuovo filtro"
|
1291 |
|
1292 |
-
#: templates/admin/preset-filters.php:
|
1293 |
msgctxt "[Admin] Add new filter in new preset page"
|
1294 |
msgid "+ Add filter"
|
1295 |
msgstr "+ Aggiungi filtro"
|
1296 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1297 |
#: templates/admin/upgrade-note-modal.php:31
|
1298 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1299 |
msgid "Use the new filter preset feature for your filters"
|
@@ -1370,7 +1384,7 @@ msgctxt "[FRONTEND] General option for terms dropdown"
|
|
1370 |
msgid "All"
|
1371 |
msgstr "Tutti"
|
1372 |
|
1373 |
-
#: templates/filters/global/reset-filters.php:
|
1374 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1375 |
msgid "Reset filters"
|
1376 |
msgstr "Resetta filtri"
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
+
"POT-Creation-Date: 2021-04-20 14:45:48+00:00\n"
|
9 |
"PO-Revision-Date: 2021-03-03 10:36+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
67 |
msgid "Query Type:"
|
68 |
msgstr "Tipo Query:"
|
69 |
|
|
|
|
|
|
|
|
|
70 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
71 |
msgid "OR"
|
72 |
msgstr "O"
|
141 |
"yithemes.com/\" target=\"_blank\">Scopri altri plugin per il tuo e-commerce "
|
142 |
"su <strong>YITH</strong></a>"
|
143 |
|
144 |
+
#: includes/class.yith-wcan-admin.php:107
|
145 |
msgctxt "[Admin] Copy confirmation message"
|
146 |
msgid "Content copied to your clipboard"
|
147 |
msgstr "Contenuto copiato negli appunti"
|
148 |
|
149 |
+
#: includes/class.yith-wcan-admin.php:108
|
150 |
msgctxt "[Admin] Confirm filter delete message"
|
151 |
msgid "Are you sure you want to delete this item?"
|
152 |
msgstr "Sei sicuro di voler eliminare questo termine?"
|
153 |
|
154 |
#. translators: 1. Number of items that will be added.
|
155 |
+
#: includes/class.yith-wcan-admin.php:110
|
156 |
msgctxt "[Admin] Confirm add all terms message"
|
157 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
158 |
msgstr "Sei sicuro di voler procedere? Questa azione aggiungerà %s elementi"
|
159 |
|
160 |
+
#: includes/class.yith-wcan-admin.php:113 templates/admin/preset-filter.php:31
|
161 |
msgctxt "[Admin] Message shown when filter has empty title"
|
162 |
msgid "< no title >"
|
163 |
msgstr "< nessun titolo >"
|
164 |
|
165 |
+
#: includes/class.yith-wcan-admin.php:114
|
166 |
msgctxt "[Admin] Media library title, when selecting images"
|
167 |
msgid "Select media you want to use"
|
168 |
msgstr "Seleziona i media da usare"
|
169 |
|
170 |
+
#: includes/class.yith-wcan-admin.php:115
|
171 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
172 |
msgid "Use this media"
|
173 |
msgstr "Usa questo media"
|
174 |
|
175 |
+
#: includes/class.yith-wcan-admin.php:181
|
176 |
msgctxt "[Admin] tab name"
|
177 |
msgid "Filter presets"
|
178 |
msgstr "Preset filtri"
|
179 |
|
180 |
+
#: includes/class.yith-wcan-admin.php:182
|
181 |
msgctxt "[Admin] tab name"
|
182 |
msgid "General settings"
|
183 |
msgstr "Impostazioni generali"
|
184 |
|
185 |
+
#: includes/class.yith-wcan-admin.php:183
|
186 |
msgctxt "[Admin] tab name"
|
187 |
msgid "SEO"
|
188 |
msgstr "SEO"
|
189 |
|
190 |
+
#: includes/class.yith-wcan-admin.php:184
|
191 |
msgctxt "[Admin] tab name"
|
192 |
msgid "Premium Version"
|
193 |
msgstr "Versione Premium"
|
194 |
|
195 |
+
#: includes/class.yith-wcan-admin.php:188
|
196 |
msgctxt "[Admin] tab name"
|
197 |
msgid "Legacy"
|
198 |
msgstr "Legacy"
|
199 |
|
|
|
200 |
#: includes/class.yith-wcan-admin.php:194
|
201 |
+
#: includes/class.yith-wcan-admin.php:195
|
202 |
msgctxt "[Admin] Menu title"
|
203 |
msgid "Ajax Product Filter"
|
204 |
msgstr "Ajax Product Filter"
|
205 |
|
206 |
+
#: includes/class.yith-wcan-admin.php:196
|
207 |
msgctxt "[Admin] Plugin description"
|
208 |
msgid ""
|
209 |
"It allows your users to find the product they are looking for as quickly as "
|
212 |
"Permette ai tuoi utenti di trovare il prodotto che stanno cercando il più "
|
213 |
"velocemente possibile."
|
214 |
|
215 |
+
#: includes/class.yith-wcan-admin.php:309
|
216 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
217 |
msgid "item"
|
218 |
msgstr "elemento"
|
219 |
|
220 |
+
#: includes/class.yith-wcan-admin.php:310
|
221 |
msgctxt "[Admin] Preset table empty message second line"
|
222 |
msgid "But don't worry, here you can create your first one!"
|
223 |
msgstr "Ma non preoccuparti. Puoi iniziare a crearli qui!"
|
224 |
|
225 |
+
#: includes/class.yith-wcan-admin.php:458
|
226 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
227 |
msgid "Clear Product Filter transients"
|
228 |
msgstr "Cancella i transient Product Filter"
|
229 |
|
230 |
+
#: includes/class.yith-wcan-admin.php:464
|
231 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
232 |
msgid "Run filter widgets upgrade"
|
233 |
msgstr "Avvia l'upgrade dei widget dei filtri"
|
234 |
|
235 |
+
#: includes/class.yith-wcan-admin.php:459
|
236 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
237 |
msgid "Clear"
|
238 |
msgstr "Cancella"
|
239 |
|
240 |
+
#: includes/class.yith-wcan-admin.php:465
|
241 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
242 |
msgid "Run"
|
243 |
msgstr "Avvia"
|
244 |
|
245 |
+
#: includes/class.yith-wcan-admin.php:460
|
246 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
247 |
msgid ""
|
248 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
253 |
"Product Filter. Utile se hai cambiato la configurazione del prodotto e i "
|
254 |
"filtri non mostrano i risultati previsti. "
|
255 |
|
256 |
+
#: includes/class.yith-wcan-admin.php:466
|
257 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
258 |
msgid ""
|
259 |
"This will create a preset for any sidebar of your shop containing filter "
|
397 |
msgid "Multiselect relation"
|
398 |
msgstr "Relazione seleziona multipla"
|
399 |
|
|
|
|
|
|
|
|
|
|
|
400 |
#: plugin-options/filter-options.php:120
|
401 |
msgctxt "[Admin] Filter edit form"
|
402 |
msgid "Choose how multiple terms selection should behave"
|
493 |
msgid "Filter by %s"
|
494 |
msgstr "Filtra per %s"
|
495 |
|
496 |
+
#: includes/class.yith-wcan-presets.php:95
|
497 |
+
#: includes/class.yith-wcan-presets.php:100
|
498 |
msgctxt "[Admin] name of presets custom post type"
|
499 |
msgid "Filter presets"
|
500 |
msgstr "Preset filtri"
|
501 |
|
502 |
+
#: includes/class.yith-wcan-presets.php:96
|
503 |
msgctxt "[Admin] singular name of presets custom post type"
|
504 |
msgid "Filter preset"
|
505 |
msgstr "Preset filtri"
|
506 |
|
507 |
+
#: includes/class.yith-wcan-presets.php:97
|
508 |
msgctxt "[Admin] add new filter preset label"
|
509 |
msgid "Add new preset"
|
510 |
msgstr "Aggiungi nuovo preset"
|
511 |
|
512 |
+
#: includes/class.yith-wcan-presets.php:139
|
513 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
514 |
msgid "Convert widgets in a preset"
|
515 |
msgstr "Converti widget in preset"
|
537 |
msgid "YITH AJAX Filters Reset Button"
|
538 |
msgstr "YITH AJAX Filters Reset Button"
|
539 |
|
540 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:89
|
541 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:60
|
542 |
msgctxt "[ELEMENTOR] Default preset option"
|
543 |
msgid "Choose an option"
|
544 |
msgstr "Scegli un'opzione"
|
545 |
|
546 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:97
|
547 |
msgctxt "[ELEMENTOR] Section title"
|
548 |
msgid "Filters"
|
549 |
msgstr "Filtri"
|
553 |
msgid "General"
|
554 |
msgstr "Generale"
|
555 |
|
556 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:105
|
557 |
msgctxt "[ELEMENTOR] Control label"
|
558 |
msgid "Preset"
|
559 |
msgstr "Preset"
|
606 |
msgid "Rated %s out of 5"
|
607 |
msgstr "Valutato %s su 5"
|
608 |
|
609 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:69
|
610 |
msgctxt "[GUTENBERG]: block name"
|
611 |
msgid "YITH AJAX Filters Preset"
|
612 |
msgstr "YITH AJAX Filters Preset"
|
616 |
msgid "YITH Reset Filters Button"
|
617 |
msgstr "YITH Reset Filters Button"
|
618 |
|
619 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:70
|
620 |
msgctxt "[GUTENBERG]: block description"
|
621 |
msgid "Show filters from a preset"
|
622 |
msgstr "Mostra filtri da un preset"
|
635 |
"pagina se l'opzione \"Posizione pulsante reset\" non funziona per il loop "
|
636 |
"del prodotto"
|
637 |
|
638 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:75
|
639 |
msgctxt "[GUTENBERG]: attribute description"
|
640 |
msgid "Preset"
|
641 |
msgstr "Preset"
|
686 |
msgid "filter preset"
|
687 |
msgstr "preset filtri"
|
688 |
|
689 |
+
#: templates/admin/preset-filters.php:29
|
690 |
msgctxt ""
|
691 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
692 |
msgid "filter"
|
722 |
msgid "YITH AJAX Product Filter"
|
723 |
msgstr "YITH AJAX Product Filter"
|
724 |
|
725 |
+
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
726 |
+
#, fuzzy
|
727 |
+
msgctxt ""
|
728 |
+
"[ADMIN] Ajax Filter Widget; logical operator that affects query behaviour"
|
729 |
+
msgid "AND"
|
730 |
+
msgstr "E"
|
731 |
+
|
732 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
733 |
msgctxt "[Plugin Name]"
|
734 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
735 |
msgstr ""
|
736 |
"Resetta tutti i filtri impostati da YITH WooCommerce AJAX Product Filter"
|
737 |
|
738 |
+
#: plugin-options/filter-options.php:117
|
739 |
+
#, fuzzy
|
740 |
+
msgctxt ""
|
741 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
742 |
+
msgid "AND - Results need to match all selected terms at the same time"
|
743 |
+
msgstr "AND - I risultati devono combaciare con tutti i termini selezionati "
|
744 |
+
|
745 |
#: plugin-options/filter-options.php:118
|
746 |
+
#, fuzzy
|
747 |
+
msgctxt ""
|
748 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
749 |
msgid "OR - Results need to match at least one of the selected terms"
|
750 |
msgstr ""
|
751 |
"OR - I risultati devono combaciare con almeno uno dei termini selezionati"
|
1291 |
msgid "Delete Filter"
|
1292 |
msgstr "Elimina filtro"
|
1293 |
|
1294 |
+
#: templates/admin/preset-filters.php:31
|
1295 |
msgctxt "[Admin] New filter button label"
|
1296 |
msgid "Add a new filter"
|
1297 |
msgstr "Aggiungi nuovo filtro"
|
1298 |
|
1299 |
+
#: templates/admin/preset-filters.php:55
|
1300 |
msgctxt "[Admin] Add new filter in new preset page"
|
1301 |
msgid "+ Add filter"
|
1302 |
msgstr "+ Aggiungi filtro"
|
1303 |
|
1304 |
+
#. translators: 1. number of items to show.
|
1305 |
+
#: templates/admin/preset-load-more-filters.php:18
|
1306 |
+
#, fuzzy
|
1307 |
+
msgctxt "[Admin] Add new filter in new preset page"
|
1308 |
+
msgid "See %d more filters"
|
1309 |
+
msgstr "Prima dei filtri"
|
1310 |
+
|
1311 |
#: templates/admin/upgrade-note-modal.php:31
|
1312 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1313 |
msgid "Use the new filter preset feature for your filters"
|
1384 |
msgid "All"
|
1385 |
msgstr "Tutti"
|
1386 |
|
1387 |
+
#: templates/filters/global/reset-filters.php:23
|
1388 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1389 |
msgid "Reset filters"
|
1390 |
msgstr "Resetta filtri"
|
Binary file
|
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"PO-Revision-Date: 2021-02-12 13:32:05+0000\n"
|
10 |
"Language: nl\n"
|
11 |
"MIME-Version: 1.0\n"
|
@@ -65,10 +65,6 @@ msgstr "Type:"
|
|
65 |
msgid "Query Type:"
|
66 |
msgstr "Query Type:"
|
67 |
|
68 |
-
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
69 |
-
msgid "AND"
|
70 |
-
msgstr "EN"
|
71 |
-
|
72 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
73 |
msgid "OR"
|
74 |
msgstr "OF"
|
@@ -141,70 +137,70 @@ msgstr ""
|
|
141 |
"yithemes.com/\" target=\"_blank\">Verkrijg meer plugins voor je e-commerce "
|
142 |
"winkel op <strong>YITH</strong></a>"
|
143 |
|
144 |
-
#: includes/class.yith-wcan-admin.php:
|
145 |
msgctxt "[Admin] Copy confirmation message"
|
146 |
msgid "Content copied to your clipboard"
|
147 |
msgstr "Inhoud gekopieerd naar je klembord"
|
148 |
|
149 |
-
#: includes/class.yith-wcan-admin.php:
|
150 |
msgctxt "[Admin] Confirm filter delete message"
|
151 |
msgid "Are you sure you want to delete this item?"
|
152 |
msgstr "Weet je zeker dat je dit item wilt verwijderen?"
|
153 |
|
154 |
#. translators: 1. Number of items that will be added.
|
155 |
-
#: includes/class.yith-wcan-admin.php:
|
156 |
msgctxt "[Admin] Confirm add all terms message"
|
157 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
158 |
msgstr "Weet je zeker dat je door wilt gaan? Deze operatie voegt %s items toe"
|
159 |
|
160 |
-
#: includes/class.yith-wcan-admin.php:
|
161 |
msgctxt "[Admin] Message shown when filter has empty title"
|
162 |
msgid "< no title >"
|
163 |
msgstr "< geen titel >"
|
164 |
|
165 |
-
#: includes/class.yith-wcan-admin.php:
|
166 |
msgctxt "[Admin] Media library title, when selecting images"
|
167 |
msgid "Select media you want to use"
|
168 |
msgstr "Selecteer de media die je wilt gebruiken"
|
169 |
|
170 |
-
#: includes/class.yith-wcan-admin.php:
|
171 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
172 |
msgid "Use this media"
|
173 |
msgstr "Gebruik deze media"
|
174 |
|
175 |
-
#: includes/class.yith-wcan-admin.php:
|
176 |
msgctxt "[Admin] tab name"
|
177 |
msgid "Filter presets"
|
178 |
msgstr "Filter pre-set"
|
179 |
|
180 |
-
#: includes/class.yith-wcan-admin.php:
|
181 |
msgctxt "[Admin] tab name"
|
182 |
msgid "General settings"
|
183 |
msgstr "Algemene instellingen"
|
184 |
|
185 |
-
#: includes/class.yith-wcan-admin.php:
|
186 |
#, fuzzy
|
187 |
msgctxt "[Admin] tab name"
|
188 |
msgid "SEO"
|
189 |
msgstr "SEO"
|
190 |
|
191 |
-
#: includes/class.yith-wcan-admin.php:
|
192 |
msgctxt "[Admin] tab name"
|
193 |
msgid "Premium Version"
|
194 |
msgstr "Premium versie"
|
195 |
|
196 |
-
#: includes/class.yith-wcan-admin.php:
|
197 |
msgctxt "[Admin] tab name"
|
198 |
msgid "Legacy"
|
199 |
msgstr "Nalatenschap"
|
200 |
|
201 |
-
#: includes/class.yith-wcan-admin.php:193
|
202 |
#: includes/class.yith-wcan-admin.php:194
|
|
|
203 |
msgctxt "[Admin] Menu title"
|
204 |
msgid "Ajax Product Filter"
|
205 |
msgstr "Ajax Product Filter"
|
206 |
|
207 |
-
#: includes/class.yith-wcan-admin.php:
|
208 |
msgctxt "[Admin] Plugin description"
|
209 |
msgid ""
|
210 |
"It allows your users to find the product they are looking for as quickly as "
|
@@ -213,37 +209,37 @@ msgstr ""
|
|
213 |
"Het laat je gebruikers het product het product dat ze zoeken, zo snel "
|
214 |
"mogelijk vinden."
|
215 |
|
216 |
-
#: includes/class.yith-wcan-admin.php:
|
217 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
218 |
msgid "item"
|
219 |
msgstr "Item"
|
220 |
|
221 |
-
#: includes/class.yith-wcan-admin.php:
|
222 |
msgctxt "[Admin] Preset table empty message second line"
|
223 |
msgid "But don't worry, here you can create your first one!"
|
224 |
msgstr "Maar geen zorgen, je kunt hier je eerste aanmaken!"
|
225 |
|
226 |
-
#: includes/class.yith-wcan-admin.php:
|
227 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
228 |
msgid "Clear Product Filter transients"
|
229 |
msgstr "Product Filter transients legen"
|
230 |
|
231 |
-
#: includes/class.yith-wcan-admin.php:
|
232 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
233 |
msgid "Run filter widgets upgrade"
|
234 |
msgstr "Filter widgets upgrade uitvoeren"
|
235 |
|
236 |
-
#: includes/class.yith-wcan-admin.php:
|
237 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
238 |
msgid "Clear"
|
239 |
msgstr "Wissen"
|
240 |
|
241 |
-
#: includes/class.yith-wcan-admin.php:
|
242 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
243 |
msgid "Run"
|
244 |
msgstr "Uitvoeren"
|
245 |
|
246 |
-
#: includes/class.yith-wcan-admin.php:
|
247 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
248 |
msgid ""
|
249 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
@@ -255,7 +251,7 @@ msgstr ""
|
|
255 |
"configuratie van je product hebt gewijzigd en filters niet de verwachte "
|
256 |
"resultaten weergeven."
|
257 |
|
258 |
-
#: includes/class.yith-wcan-admin.php:
|
259 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
260 |
msgid ""
|
261 |
"This will create a preset for any sidebar of your shop containing filter "
|
@@ -402,12 +398,6 @@ msgctxt "[Admin] Filter edit form"
|
|
402 |
msgid "Multiselect relation"
|
403 |
msgstr "Multi-selecteren relatie"
|
404 |
|
405 |
-
#: plugin-options/filter-options.php:117
|
406 |
-
msgctxt "[Admin] Filter edit form"
|
407 |
-
msgid "AND - Results need to match all selected terms at the same time"
|
408 |
-
msgstr ""
|
409 |
-
"EN - Resultaten moeten matchen met alle geselecteerde termen tegelijkertijd"
|
410 |
-
|
411 |
#: plugin-options/filter-options.php:120
|
412 |
msgctxt "[Admin] Filter edit form"
|
413 |
msgid "Choose how multiple terms selection should behave"
|
@@ -504,23 +494,23 @@ msgctxt "[ADMIN] Name of default taxonomy filter created by plugin"
|
|
504 |
msgid "Filter by %s"
|
505 |
msgstr "Filter op %s"
|
506 |
|
507 |
-
#: includes/class.yith-wcan-presets.php:
|
508 |
-
#: includes/class.yith-wcan-presets.php:
|
509 |
msgctxt "[Admin] name of presets custom post type"
|
510 |
msgid "Filter presets"
|
511 |
msgstr "Filter pre-sets"
|
512 |
|
513 |
-
#: includes/class.yith-wcan-presets.php:
|
514 |
msgctxt "[Admin] singular name of presets custom post type"
|
515 |
msgid "Filter preset"
|
516 |
msgstr "Filter pre-set"
|
517 |
|
518 |
-
#: includes/class.yith-wcan-presets.php:
|
519 |
msgctxt "[Admin] add new filter preset label"
|
520 |
msgid "Add new preset"
|
521 |
msgstr "Nieuwe pre-set toevoegen"
|
522 |
|
523 |
-
#: includes/class.yith-wcan-presets.php:
|
524 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
525 |
msgid "Convert widgets in a preset"
|
526 |
msgstr "Widgets omzetten in een pre-set"
|
@@ -548,13 +538,13 @@ msgctxt "[ADMIN] Name of the preset elementor widget"
|
|
548 |
msgid "YITH AJAX Filters Reset Button"
|
549 |
msgstr "YITH AJAX Filters Reset Knop"
|
550 |
|
551 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
552 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
553 |
msgctxt "[ELEMENTOR] Default preset option"
|
554 |
msgid "Choose an option"
|
555 |
msgstr "Kies een optie"
|
556 |
|
557 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
558 |
msgctxt "[ELEMENTOR] Section title"
|
559 |
msgid "Filters"
|
560 |
msgstr "Filters"
|
@@ -564,7 +554,7 @@ msgctxt "[ELEMENTOR] Section title"
|
|
564 |
msgid "General"
|
565 |
msgstr "Algemeen"
|
566 |
|
567 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
568 |
msgctxt "[ELEMENTOR] Control label"
|
569 |
msgid "Preset"
|
570 |
msgstr "Pre-set"
|
@@ -619,7 +609,7 @@ msgctxt "[FRONTEND] Star rating label"
|
|
619 |
msgid "Rated %s out of 5"
|
620 |
msgstr "Waardering %s van de 5"
|
621 |
|
622 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
623 |
msgctxt "[GUTENBERG]: block name"
|
624 |
msgid "YITH AJAX Filters Preset"
|
625 |
msgstr "YITH AJAX Filters Pre-set"
|
@@ -629,7 +619,7 @@ msgctxt "[GUTENBERG]: block name"
|
|
629 |
msgid "YITH Reset Filters Button"
|
630 |
msgstr "YITH Reset Filters knop"
|
631 |
|
632 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
633 |
msgctxt "[GUTENBERG]: block description"
|
634 |
msgid "Show filters from a preset"
|
635 |
msgstr "Filters tonen van een pre-set"
|
@@ -647,7 +637,7 @@ msgstr ""
|
|
647 |
"'Filters resetten' op je pagina te plaatsen, als de optie 'Knop positie "
|
648 |
"resetten' niet werkt voor je producten loop"
|
649 |
|
650 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
651 |
msgctxt "[GUTENBERG]: attribute description"
|
652 |
msgid "Preset"
|
653 |
msgstr "Pre-set"
|
@@ -698,7 +688,7 @@ msgctxt ""
|
|
698 |
msgid "filter preset"
|
699 |
msgstr "Filter pre-set"
|
700 |
|
701 |
-
#: templates/admin/preset-filters.php:
|
702 |
msgctxt ""
|
703 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
704 |
msgid "filter"
|
@@ -734,6 +724,13 @@ msgctxt "[Plugin Name] Admin: Widget Title"
|
|
734 |
msgid "YITH AJAX Product Filter"
|
735 |
msgstr "YITH AJAX Product Filter"
|
736 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
737 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
738 |
msgctxt "[Plugin Name]"
|
739 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
@@ -741,8 +738,18 @@ msgstr ""
|
|
741 |
"Alle filters terugzetten die zijn ingesteld door YITH WooCommerce AJAX "
|
742 |
"Product Filter"
|
743 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
744 |
#: plugin-options/filter-options.php:118
|
745 |
-
|
|
|
|
|
746 |
msgid "OR - Results need to match at least one of the selected terms"
|
747 |
msgstr ""
|
748 |
"OF - Resultaten moeten matchen met minstens een van de geselecteerde termen"
|
@@ -1235,16 +1242,23 @@ msgctxt "[Admin] Delete filter button, in new/edit preset page"
|
|
1235 |
msgid "Delete Filter"
|
1236 |
msgstr "Filter verwijderen"
|
1237 |
|
1238 |
-
#: templates/admin/preset-filters.php:
|
1239 |
msgctxt "[Admin] New filter button label"
|
1240 |
msgid "Add a new filter"
|
1241 |
msgstr "Nieuwe filter toevoegen"
|
1242 |
|
1243 |
-
#: templates/admin/preset-filters.php:
|
1244 |
msgctxt "[Admin] Add new filter in new preset page"
|
1245 |
msgid "+ Add filter"
|
1246 |
msgstr "+ Nieuwe filter toevoegen"
|
1247 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1248 |
#: templates/admin/upgrade-note-modal.php:31
|
1249 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1250 |
msgid "Use the new filter preset feature for your filters"
|
@@ -1322,7 +1336,7 @@ msgctxt "[FRONTEND] General option for terms dropdown"
|
|
1322 |
msgid "All"
|
1323 |
msgstr "Alle"
|
1324 |
|
1325 |
-
#: templates/filters/global/reset-filters.php:
|
1326 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1327 |
msgid "Reset filters"
|
1328 |
msgstr "Filters resetten"
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Product Filter\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
7 |
"ajax-product-filter\n"
|
8 |
+
"POT-Creation-Date: 2021-04-20 14:45:48+00:00\n"
|
9 |
"PO-Revision-Date: 2021-02-12 13:32:05+0000\n"
|
10 |
"Language: nl\n"
|
11 |
"MIME-Version: 1.0\n"
|
65 |
msgid "Query Type:"
|
66 |
msgstr "Query Type:"
|
67 |
|
|
|
|
|
|
|
|
|
68 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
69 |
msgid "OR"
|
70 |
msgstr "OF"
|
137 |
"yithemes.com/\" target=\"_blank\">Verkrijg meer plugins voor je e-commerce "
|
138 |
"winkel op <strong>YITH</strong></a>"
|
139 |
|
140 |
+
#: includes/class.yith-wcan-admin.php:107
|
141 |
msgctxt "[Admin] Copy confirmation message"
|
142 |
msgid "Content copied to your clipboard"
|
143 |
msgstr "Inhoud gekopieerd naar je klembord"
|
144 |
|
145 |
+
#: includes/class.yith-wcan-admin.php:108
|
146 |
msgctxt "[Admin] Confirm filter delete message"
|
147 |
msgid "Are you sure you want to delete this item?"
|
148 |
msgstr "Weet je zeker dat je dit item wilt verwijderen?"
|
149 |
|
150 |
#. translators: 1. Number of items that will be added.
|
151 |
+
#: includes/class.yith-wcan-admin.php:110
|
152 |
msgctxt "[Admin] Confirm add all terms message"
|
153 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
154 |
msgstr "Weet je zeker dat je door wilt gaan? Deze operatie voegt %s items toe"
|
155 |
|
156 |
+
#: includes/class.yith-wcan-admin.php:113 templates/admin/preset-filter.php:31
|
157 |
msgctxt "[Admin] Message shown when filter has empty title"
|
158 |
msgid "< no title >"
|
159 |
msgstr "< geen titel >"
|
160 |
|
161 |
+
#: includes/class.yith-wcan-admin.php:114
|
162 |
msgctxt "[Admin] Media library title, when selecting images"
|
163 |
msgid "Select media you want to use"
|
164 |
msgstr "Selecteer de media die je wilt gebruiken"
|
165 |
|
166 |
+
#: includes/class.yith-wcan-admin.php:115
|
167 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
168 |
msgid "Use this media"
|
169 |
msgstr "Gebruik deze media"
|
170 |
|
171 |
+
#: includes/class.yith-wcan-admin.php:181
|
172 |
msgctxt "[Admin] tab name"
|
173 |
msgid "Filter presets"
|
174 |
msgstr "Filter pre-set"
|
175 |
|
176 |
+
#: includes/class.yith-wcan-admin.php:182
|
177 |
msgctxt "[Admin] tab name"
|
178 |
msgid "General settings"
|
179 |
msgstr "Algemene instellingen"
|
180 |
|
181 |
+
#: includes/class.yith-wcan-admin.php:183
|
182 |
#, fuzzy
|
183 |
msgctxt "[Admin] tab name"
|
184 |
msgid "SEO"
|
185 |
msgstr "SEO"
|
186 |
|
187 |
+
#: includes/class.yith-wcan-admin.php:184
|
188 |
msgctxt "[Admin] tab name"
|
189 |
msgid "Premium Version"
|
190 |
msgstr "Premium versie"
|
191 |
|
192 |
+
#: includes/class.yith-wcan-admin.php:188
|
193 |
msgctxt "[Admin] tab name"
|
194 |
msgid "Legacy"
|
195 |
msgstr "Nalatenschap"
|
196 |
|
|
|
197 |
#: includes/class.yith-wcan-admin.php:194
|
198 |
+
#: includes/class.yith-wcan-admin.php:195
|
199 |
msgctxt "[Admin] Menu title"
|
200 |
msgid "Ajax Product Filter"
|
201 |
msgstr "Ajax Product Filter"
|
202 |
|
203 |
+
#: includes/class.yith-wcan-admin.php:196
|
204 |
msgctxt "[Admin] Plugin description"
|
205 |
msgid ""
|
206 |
"It allows your users to find the product they are looking for as quickly as "
|
209 |
"Het laat je gebruikers het product het product dat ze zoeken, zo snel "
|
210 |
"mogelijk vinden."
|
211 |
|
212 |
+
#: includes/class.yith-wcan-admin.php:309
|
213 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
214 |
msgid "item"
|
215 |
msgstr "Item"
|
216 |
|
217 |
+
#: includes/class.yith-wcan-admin.php:310
|
218 |
msgctxt "[Admin] Preset table empty message second line"
|
219 |
msgid "But don't worry, here you can create your first one!"
|
220 |
msgstr "Maar geen zorgen, je kunt hier je eerste aanmaken!"
|
221 |
|
222 |
+
#: includes/class.yith-wcan-admin.php:458
|
223 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
224 |
msgid "Clear Product Filter transients"
|
225 |
msgstr "Product Filter transients legen"
|
226 |
|
227 |
+
#: includes/class.yith-wcan-admin.php:464
|
228 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
229 |
msgid "Run filter widgets upgrade"
|
230 |
msgstr "Filter widgets upgrade uitvoeren"
|
231 |
|
232 |
+
#: includes/class.yith-wcan-admin.php:459
|
233 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
234 |
msgid "Clear"
|
235 |
msgstr "Wissen"
|
236 |
|
237 |
+
#: includes/class.yith-wcan-admin.php:465
|
238 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
239 |
msgid "Run"
|
240 |
msgstr "Uitvoeren"
|
241 |
|
242 |
+
#: includes/class.yith-wcan-admin.php:460
|
243 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
244 |
msgid ""
|
245 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
251 |
"configuratie van je product hebt gewijzigd en filters niet de verwachte "
|
252 |
"resultaten weergeven."
|
253 |
|
254 |
+
#: includes/class.yith-wcan-admin.php:466
|
255 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
256 |
msgid ""
|
257 |
"This will create a preset for any sidebar of your shop containing filter "
|
398 |
msgid "Multiselect relation"
|
399 |
msgstr "Multi-selecteren relatie"
|
400 |
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
#: plugin-options/filter-options.php:120
|
402 |
msgctxt "[Admin] Filter edit form"
|
403 |
msgid "Choose how multiple terms selection should behave"
|
494 |
msgid "Filter by %s"
|
495 |
msgstr "Filter op %s"
|
496 |
|
497 |
+
#: includes/class.yith-wcan-presets.php:95
|
498 |
+
#: includes/class.yith-wcan-presets.php:100
|
499 |
msgctxt "[Admin] name of presets custom post type"
|
500 |
msgid "Filter presets"
|
501 |
msgstr "Filter pre-sets"
|
502 |
|
503 |
+
#: includes/class.yith-wcan-presets.php:96
|
504 |
msgctxt "[Admin] singular name of presets custom post type"
|
505 |
msgid "Filter preset"
|
506 |
msgstr "Filter pre-set"
|
507 |
|
508 |
+
#: includes/class.yith-wcan-presets.php:97
|
509 |
msgctxt "[Admin] add new filter preset label"
|
510 |
msgid "Add new preset"
|
511 |
msgstr "Nieuwe pre-set toevoegen"
|
512 |
|
513 |
+
#: includes/class.yith-wcan-presets.php:139
|
514 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
515 |
msgid "Convert widgets in a preset"
|
516 |
msgstr "Widgets omzetten in een pre-set"
|
538 |
msgid "YITH AJAX Filters Reset Button"
|
539 |
msgstr "YITH AJAX Filters Reset Knop"
|
540 |
|
541 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:89
|
542 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:60
|
543 |
msgctxt "[ELEMENTOR] Default preset option"
|
544 |
msgid "Choose an option"
|
545 |
msgstr "Kies een optie"
|
546 |
|
547 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:97
|
548 |
msgctxt "[ELEMENTOR] Section title"
|
549 |
msgid "Filters"
|
550 |
msgstr "Filters"
|
554 |
msgid "General"
|
555 |
msgstr "Algemeen"
|
556 |
|
557 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:105
|
558 |
msgctxt "[ELEMENTOR] Control label"
|
559 |
msgid "Preset"
|
560 |
msgstr "Pre-set"
|
609 |
msgid "Rated %s out of 5"
|
610 |
msgstr "Waardering %s van de 5"
|
611 |
|
612 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:69
|
613 |
msgctxt "[GUTENBERG]: block name"
|
614 |
msgid "YITH AJAX Filters Preset"
|
615 |
msgstr "YITH AJAX Filters Pre-set"
|
619 |
msgid "YITH Reset Filters Button"
|
620 |
msgstr "YITH Reset Filters knop"
|
621 |
|
622 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:70
|
623 |
msgctxt "[GUTENBERG]: block description"
|
624 |
msgid "Show filters from a preset"
|
625 |
msgstr "Filters tonen van een pre-set"
|
637 |
"'Filters resetten' op je pagina te plaatsen, als de optie 'Knop positie "
|
638 |
"resetten' niet werkt voor je producten loop"
|
639 |
|
640 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:75
|
641 |
msgctxt "[GUTENBERG]: attribute description"
|
642 |
msgid "Preset"
|
643 |
msgstr "Pre-set"
|
688 |
msgid "filter preset"
|
689 |
msgstr "Filter pre-set"
|
690 |
|
691 |
+
#: templates/admin/preset-filters.php:29
|
692 |
msgctxt ""
|
693 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
694 |
msgid "filter"
|
724 |
msgid "YITH AJAX Product Filter"
|
725 |
msgstr "YITH AJAX Product Filter"
|
726 |
|
727 |
+
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
728 |
+
#, fuzzy
|
729 |
+
msgctxt ""
|
730 |
+
"[ADMIN] Ajax Filter Widget; logical operator that affects query behaviour"
|
731 |
+
msgid "AND"
|
732 |
+
msgstr "EN"
|
733 |
+
|
734 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
735 |
msgctxt "[Plugin Name]"
|
736 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
738 |
"Alle filters terugzetten die zijn ingesteld door YITH WooCommerce AJAX "
|
739 |
"Product Filter"
|
740 |
|
741 |
+
#: plugin-options/filter-options.php:117
|
742 |
+
#, fuzzy
|
743 |
+
msgctxt ""
|
744 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
745 |
+
msgid "AND - Results need to match all selected terms at the same time"
|
746 |
+
msgstr ""
|
747 |
+
"EN - Resultaten moeten matchen met alle geselecteerde termen tegelijkertijd"
|
748 |
+
|
749 |
#: plugin-options/filter-options.php:118
|
750 |
+
#, fuzzy
|
751 |
+
msgctxt ""
|
752 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
753 |
msgid "OR - Results need to match at least one of the selected terms"
|
754 |
msgstr ""
|
755 |
"OF - Resultaten moeten matchen met minstens een van de geselecteerde termen"
|
1242 |
msgid "Delete Filter"
|
1243 |
msgstr "Filter verwijderen"
|
1244 |
|
1245 |
+
#: templates/admin/preset-filters.php:31
|
1246 |
msgctxt "[Admin] New filter button label"
|
1247 |
msgid "Add a new filter"
|
1248 |
msgstr "Nieuwe filter toevoegen"
|
1249 |
|
1250 |
+
#: templates/admin/preset-filters.php:55
|
1251 |
msgctxt "[Admin] Add new filter in new preset page"
|
1252 |
msgid "+ Add filter"
|
1253 |
msgstr "+ Nieuwe filter toevoegen"
|
1254 |
|
1255 |
+
#. translators: 1. number of items to show.
|
1256 |
+
#: templates/admin/preset-load-more-filters.php:18
|
1257 |
+
#, fuzzy
|
1258 |
+
msgctxt "[Admin] Add new filter in new preset page"
|
1259 |
+
msgid "See %d more filters"
|
1260 |
+
msgstr "Voor filters"
|
1261 |
+
|
1262 |
#: templates/admin/upgrade-note-modal.php:31
|
1263 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1264 |
msgid "Use the new filter preset feature for your filters"
|
1336 |
msgid "All"
|
1337 |
msgstr "Alle"
|
1338 |
|
1339 |
+
#: templates/filters/global/reset-filters.php:23
|
1340 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1341 |
msgid "Reset filters"
|
1342 |
msgstr "Filters resetten"
|
Binary file
|
@@ -3,7 +3,7 @@ msgstr ""
|
|
3 |
"Project-Id-Version: YITH WooCommerce Ajax Product filter\n"
|
4 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
5 |
"ajax-product-filter\n"
|
6 |
-
"POT-Creation-Date: 2021-
|
7 |
"PO-Revision-Date: 2019-06-06 10:16+0200\n"
|
8 |
"Last-Translator: Caner Öncel <caneroncel@gmail.com>\n"
|
9 |
"Language-Team: Caner Öncel <caneroncel@gmail.com>\n"
|
@@ -80,11 +80,6 @@ msgstr "Tür:"
|
|
80 |
msgid "Query Type:"
|
81 |
msgstr "Sorgu Tipi:"
|
82 |
|
83 |
-
# @ yit
|
84 |
-
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
85 |
-
msgid "AND"
|
86 |
-
msgstr "VE"
|
87 |
-
|
88 |
# @ yit
|
89 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
90 |
msgid "OR"
|
@@ -151,109 +146,109 @@ msgid ""
|
|
151 |
"your e-commerce shop on <strong>YITH</strong></a>"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: includes/class.yith-wcan-admin.php:
|
155 |
msgctxt "[Admin] Copy confirmation message"
|
156 |
msgid "Content copied to your clipboard"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: includes/class.yith-wcan-admin.php:
|
160 |
msgctxt "[Admin] Confirm filter delete message"
|
161 |
msgid "Are you sure you want to delete this item?"
|
162 |
msgstr ""
|
163 |
|
164 |
#. translators: 1. Number of items that will be added.
|
165 |
-
#: includes/class.yith-wcan-admin.php:
|
166 |
msgctxt "[Admin] Confirm add all terms message"
|
167 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: includes/class.yith-wcan-admin.php:
|
171 |
msgctxt "[Admin] Message shown when filter has empty title"
|
172 |
msgid "< no title >"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: includes/class.yith-wcan-admin.php:
|
176 |
msgctxt "[Admin] Media library title, when selecting images"
|
177 |
msgid "Select media you want to use"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: includes/class.yith-wcan-admin.php:
|
181 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
182 |
msgid "Use this media"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: includes/class.yith-wcan-admin.php:
|
186 |
#, fuzzy
|
187 |
msgctxt "[Admin] tab name"
|
188 |
msgid "Filter presets"
|
189 |
msgstr "Filtre Listesi:"
|
190 |
|
191 |
-
#: includes/class.yith-wcan-admin.php:
|
192 |
msgctxt "[Admin] tab name"
|
193 |
msgid "General settings"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: includes/class.yith-wcan-admin.php:
|
197 |
msgctxt "[Admin] tab name"
|
198 |
msgid "SEO"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: includes/class.yith-wcan-admin.php:
|
202 |
msgctxt "[Admin] tab name"
|
203 |
msgid "Premium Version"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: includes/class.yith-wcan-admin.php:
|
207 |
msgctxt "[Admin] tab name"
|
208 |
msgid "Legacy"
|
209 |
msgstr ""
|
210 |
|
211 |
# @ yit
|
212 |
-
#: includes/class.yith-wcan-admin.php:193
|
213 |
#: includes/class.yith-wcan-admin.php:194
|
|
|
214 |
#, fuzzy
|
215 |
msgctxt "[Admin] Menu title"
|
216 |
msgid "Ajax Product Filter"
|
217 |
msgstr "YITH WooCommerce Ajax Navigation"
|
218 |
|
219 |
-
#: includes/class.yith-wcan-admin.php:
|
220 |
msgctxt "[Admin] Plugin description"
|
221 |
msgid ""
|
222 |
"It allows your users to find the product they are looking for as quickly as "
|
223 |
"possible."
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: includes/class.yith-wcan-admin.php:
|
227 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
228 |
msgid "item"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: includes/class.yith-wcan-admin.php:
|
232 |
msgctxt "[Admin] Preset table empty message second line"
|
233 |
msgid "But don't worry, here you can create your first one!"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: includes/class.yith-wcan-admin.php:
|
237 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
238 |
msgid "Clear Product Filter transients"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: includes/class.yith-wcan-admin.php:
|
242 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
243 |
msgid "Run filter widgets upgrade"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: includes/class.yith-wcan-admin.php:
|
247 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
248 |
msgid "Clear"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: includes/class.yith-wcan-admin.php:
|
252 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
253 |
msgid "Run"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: includes/class.yith-wcan-admin.php:
|
257 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
258 |
msgid ""
|
259 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
@@ -261,7 +256,7 @@ msgid ""
|
|
261 |
"and filters do not display the expected results."
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: includes/class.yith-wcan-admin.php:
|
265 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
266 |
msgid ""
|
267 |
"This will create a preset for any sidebar of your shop containing filter "
|
@@ -409,11 +404,6 @@ msgctxt "[Admin] Filter edit form"
|
|
409 |
msgid "Multiselect relation"
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: plugin-options/filter-options.php:117
|
413 |
-
msgctxt "[Admin] Filter edit form"
|
414 |
-
msgid "AND - Results need to match all selected terms at the same time"
|
415 |
-
msgstr ""
|
416 |
-
|
417 |
#: plugin-options/filter-options.php:120
|
418 |
msgctxt "[Admin] Filter edit form"
|
419 |
msgid "Choose how multiple terms selection should behave"
|
@@ -511,25 +501,25 @@ msgctxt "[ADMIN] Name of default taxonomy filter created by plugin"
|
|
511 |
msgid "Filter by %s"
|
512 |
msgstr "Filtre Listesi:"
|
513 |
|
514 |
-
#: includes/class.yith-wcan-presets.php:
|
515 |
-
#: includes/class.yith-wcan-presets.php:
|
516 |
#, fuzzy
|
517 |
msgctxt "[Admin] name of presets custom post type"
|
518 |
msgid "Filter presets"
|
519 |
msgstr "Filtre Listesi:"
|
520 |
|
521 |
-
#: includes/class.yith-wcan-presets.php:
|
522 |
#, fuzzy
|
523 |
msgctxt "[Admin] singular name of presets custom post type"
|
524 |
msgid "Filter preset"
|
525 |
msgstr "Filtre Listesi:"
|
526 |
|
527 |
-
#: includes/class.yith-wcan-presets.php:
|
528 |
msgctxt "[Admin] add new filter preset label"
|
529 |
msgid "Add new preset"
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: includes/class.yith-wcan-presets.php:
|
533 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
534 |
msgid "Convert widgets in a preset"
|
535 |
msgstr ""
|
@@ -557,13 +547,13 @@ msgctxt "[ADMIN] Name of the preset elementor widget"
|
|
557 |
msgid "YITH AJAX Filters Reset Button"
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
561 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
562 |
msgctxt "[ELEMENTOR] Default preset option"
|
563 |
msgid "Choose an option"
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
567 |
#, fuzzy
|
568 |
msgctxt "[ELEMENTOR] Section title"
|
569 |
msgid "Filters"
|
@@ -574,7 +564,7 @@ msgctxt "[ELEMENTOR] Section title"
|
|
574 |
msgid "General"
|
575 |
msgstr ""
|
576 |
|
577 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
578 |
msgctxt "[ELEMENTOR] Control label"
|
579 |
msgid "Preset"
|
580 |
msgstr ""
|
@@ -622,7 +612,7 @@ msgctxt "[FRONTEND] Star rating label"
|
|
622 |
msgid "Rated %s out of 5"
|
623 |
msgstr ""
|
624 |
|
625 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
626 |
msgctxt "[GUTENBERG]: block name"
|
627 |
msgid "YITH AJAX Filters Preset"
|
628 |
msgstr ""
|
@@ -634,7 +624,7 @@ msgctxt "[GUTENBERG]: block name"
|
|
634 |
msgid "YITH Reset Filters Button"
|
635 |
msgstr "YITH WooCommerce Ajax Navigation"
|
636 |
|
637 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
638 |
msgctxt "[GUTENBERG]: block description"
|
639 |
msgid "Show filters from a preset"
|
640 |
msgstr ""
|
@@ -648,7 +638,7 @@ msgid ""
|
|
648 |
"product's loop"
|
649 |
msgstr ""
|
650 |
|
651 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
652 |
msgctxt "[GUTENBERG]: attribute description"
|
653 |
msgid "Preset"
|
654 |
msgstr ""
|
@@ -700,7 +690,7 @@ msgctxt ""
|
|
700 |
msgid "filter preset"
|
701 |
msgstr "Filtre Listesi:"
|
702 |
|
703 |
-
#: templates/admin/preset-filters.php:
|
704 |
msgctxt ""
|
705 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
706 |
msgid "filter"
|
@@ -736,6 +726,14 @@ msgctxt "[Plugin Name] Admin: Widget Title"
|
|
736 |
msgid "YITH AJAX Product Filter"
|
737 |
msgstr "YITH WooCommerce Ajax Navigation"
|
738 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
739 |
# @ yit
|
740 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
741 |
#, fuzzy
|
@@ -744,8 +742,15 @@ msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
|
744 |
msgstr ""
|
745 |
"YITH WooCommerce Ajax Navigation için ayarlanmış tüm filtreleri sıfırlayın"
|
746 |
|
|
|
|
|
|
|
|
|
|
|
|
|
747 |
#: plugin-options/filter-options.php:118
|
748 |
-
msgctxt "
|
|
|
749 |
msgid "OR - Results need to match at least one of the selected terms"
|
750 |
msgstr ""
|
751 |
|
@@ -1217,16 +1222,23 @@ msgctxt "[Admin] Delete filter button, in new/edit preset page"
|
|
1217 |
msgid "Delete Filter"
|
1218 |
msgstr "Tüm Filtreleri Sıfırla"
|
1219 |
|
1220 |
-
#: templates/admin/preset-filters.php:
|
1221 |
msgctxt "[Admin] New filter button label"
|
1222 |
msgid "Add a new filter"
|
1223 |
msgstr ""
|
1224 |
|
1225 |
-
#: templates/admin/preset-filters.php:
|
1226 |
msgctxt "[Admin] Add new filter in new preset page"
|
1227 |
msgid "+ Add filter"
|
1228 |
msgstr ""
|
1229 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1230 |
#: templates/admin/upgrade-note-modal.php:31
|
1231 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1232 |
msgid "Use the new filter preset feature for your filters"
|
@@ -1289,7 +1301,7 @@ msgctxt "[FRONTEND] General option for terms dropdown"
|
|
1289 |
msgid "All"
|
1290 |
msgstr ""
|
1291 |
|
1292 |
-
#: templates/filters/global/reset-filters.php:
|
1293 |
#, fuzzy
|
1294 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1295 |
msgid "Reset filters"
|
3 |
"Project-Id-Version: YITH WooCommerce Ajax Product filter\n"
|
4 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-"
|
5 |
"ajax-product-filter\n"
|
6 |
+
"POT-Creation-Date: 2021-04-20 14:45:48+00:00\n"
|
7 |
"PO-Revision-Date: 2019-06-06 10:16+0200\n"
|
8 |
"Last-Translator: Caner Öncel <caneroncel@gmail.com>\n"
|
9 |
"Language-Team: Caner Öncel <caneroncel@gmail.com>\n"
|
80 |
msgid "Query Type:"
|
81 |
msgstr "Sorgu Tipi:"
|
82 |
|
|
|
|
|
|
|
|
|
|
|
83 |
# @ yit
|
84 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
85 |
msgid "OR"
|
146 |
"your e-commerce shop on <strong>YITH</strong></a>"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: includes/class.yith-wcan-admin.php:107
|
150 |
msgctxt "[Admin] Copy confirmation message"
|
151 |
msgid "Content copied to your clipboard"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: includes/class.yith-wcan-admin.php:108
|
155 |
msgctxt "[Admin] Confirm filter delete message"
|
156 |
msgid "Are you sure you want to delete this item?"
|
157 |
msgstr ""
|
158 |
|
159 |
#. translators: 1. Number of items that will be added.
|
160 |
+
#: includes/class.yith-wcan-admin.php:110
|
161 |
msgctxt "[Admin] Confirm add all terms message"
|
162 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: includes/class.yith-wcan-admin.php:113 templates/admin/preset-filter.php:31
|
166 |
msgctxt "[Admin] Message shown when filter has empty title"
|
167 |
msgid "< no title >"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: includes/class.yith-wcan-admin.php:114
|
171 |
msgctxt "[Admin] Media library title, when selecting images"
|
172 |
msgid "Select media you want to use"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: includes/class.yith-wcan-admin.php:115
|
176 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
177 |
msgid "Use this media"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: includes/class.yith-wcan-admin.php:181
|
181 |
#, fuzzy
|
182 |
msgctxt "[Admin] tab name"
|
183 |
msgid "Filter presets"
|
184 |
msgstr "Filtre Listesi:"
|
185 |
|
186 |
+
#: includes/class.yith-wcan-admin.php:182
|
187 |
msgctxt "[Admin] tab name"
|
188 |
msgid "General settings"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: includes/class.yith-wcan-admin.php:183
|
192 |
msgctxt "[Admin] tab name"
|
193 |
msgid "SEO"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: includes/class.yith-wcan-admin.php:184
|
197 |
msgctxt "[Admin] tab name"
|
198 |
msgid "Premium Version"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: includes/class.yith-wcan-admin.php:188
|
202 |
msgctxt "[Admin] tab name"
|
203 |
msgid "Legacy"
|
204 |
msgstr ""
|
205 |
|
206 |
# @ yit
|
|
|
207 |
#: includes/class.yith-wcan-admin.php:194
|
208 |
+
#: includes/class.yith-wcan-admin.php:195
|
209 |
#, fuzzy
|
210 |
msgctxt "[Admin] Menu title"
|
211 |
msgid "Ajax Product Filter"
|
212 |
msgstr "YITH WooCommerce Ajax Navigation"
|
213 |
|
214 |
+
#: includes/class.yith-wcan-admin.php:196
|
215 |
msgctxt "[Admin] Plugin description"
|
216 |
msgid ""
|
217 |
"It allows your users to find the product they are looking for as quickly as "
|
218 |
"possible."
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: includes/class.yith-wcan-admin.php:309
|
222 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
223 |
msgid "item"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: includes/class.yith-wcan-admin.php:310
|
227 |
msgctxt "[Admin] Preset table empty message second line"
|
228 |
msgid "But don't worry, here you can create your first one!"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: includes/class.yith-wcan-admin.php:458
|
232 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
233 |
msgid "Clear Product Filter transients"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: includes/class.yith-wcan-admin.php:464
|
237 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
238 |
msgid "Run filter widgets upgrade"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: includes/class.yith-wcan-admin.php:459
|
242 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
243 |
msgid "Clear"
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: includes/class.yith-wcan-admin.php:465
|
247 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
248 |
msgid "Run"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: includes/class.yith-wcan-admin.php:460
|
252 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
253 |
msgid ""
|
254 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
256 |
"and filters do not display the expected results."
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: includes/class.yith-wcan-admin.php:466
|
260 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
261 |
msgid ""
|
262 |
"This will create a preset for any sidebar of your shop containing filter "
|
404 |
msgid "Multiselect relation"
|
405 |
msgstr ""
|
406 |
|
|
|
|
|
|
|
|
|
|
|
407 |
#: plugin-options/filter-options.php:120
|
408 |
msgctxt "[Admin] Filter edit form"
|
409 |
msgid "Choose how multiple terms selection should behave"
|
501 |
msgid "Filter by %s"
|
502 |
msgstr "Filtre Listesi:"
|
503 |
|
504 |
+
#: includes/class.yith-wcan-presets.php:95
|
505 |
+
#: includes/class.yith-wcan-presets.php:100
|
506 |
#, fuzzy
|
507 |
msgctxt "[Admin] name of presets custom post type"
|
508 |
msgid "Filter presets"
|
509 |
msgstr "Filtre Listesi:"
|
510 |
|
511 |
+
#: includes/class.yith-wcan-presets.php:96
|
512 |
#, fuzzy
|
513 |
msgctxt "[Admin] singular name of presets custom post type"
|
514 |
msgid "Filter preset"
|
515 |
msgstr "Filtre Listesi:"
|
516 |
|
517 |
+
#: includes/class.yith-wcan-presets.php:97
|
518 |
msgctxt "[Admin] add new filter preset label"
|
519 |
msgid "Add new preset"
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: includes/class.yith-wcan-presets.php:139
|
523 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
524 |
msgid "Convert widgets in a preset"
|
525 |
msgstr ""
|
547 |
msgid "YITH AJAX Filters Reset Button"
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:89
|
551 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:60
|
552 |
msgctxt "[ELEMENTOR] Default preset option"
|
553 |
msgid "Choose an option"
|
554 |
msgstr ""
|
555 |
|
556 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:97
|
557 |
#, fuzzy
|
558 |
msgctxt "[ELEMENTOR] Section title"
|
559 |
msgid "Filters"
|
564 |
msgid "General"
|
565 |
msgstr ""
|
566 |
|
567 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:105
|
568 |
msgctxt "[ELEMENTOR] Control label"
|
569 |
msgid "Preset"
|
570 |
msgstr ""
|
612 |
msgid "Rated %s out of 5"
|
613 |
msgstr ""
|
614 |
|
615 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:69
|
616 |
msgctxt "[GUTENBERG]: block name"
|
617 |
msgid "YITH AJAX Filters Preset"
|
618 |
msgstr ""
|
624 |
msgid "YITH Reset Filters Button"
|
625 |
msgstr "YITH WooCommerce Ajax Navigation"
|
626 |
|
627 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:70
|
628 |
msgctxt "[GUTENBERG]: block description"
|
629 |
msgid "Show filters from a preset"
|
630 |
msgstr ""
|
638 |
"product's loop"
|
639 |
msgstr ""
|
640 |
|
641 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:75
|
642 |
msgctxt "[GUTENBERG]: attribute description"
|
643 |
msgid "Preset"
|
644 |
msgstr ""
|
690 |
msgid "filter preset"
|
691 |
msgstr "Filtre Listesi:"
|
692 |
|
693 |
+
#: templates/admin/preset-filters.php:29
|
694 |
msgctxt ""
|
695 |
"[Admin] Name of the item missing, shown in preset-empty-content template"
|
696 |
msgid "filter"
|
726 |
msgid "YITH AJAX Product Filter"
|
727 |
msgstr "YITH WooCommerce Ajax Navigation"
|
728 |
|
729 |
+
# @ yit
|
730 |
+
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
731 |
+
#, fuzzy
|
732 |
+
msgctxt ""
|
733 |
+
"[ADMIN] Ajax Filter Widget; logical operator that affects query behaviour"
|
734 |
+
msgid "AND"
|
735 |
+
msgstr "VE"
|
736 |
+
|
737 |
# @ yit
|
738 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
739 |
#, fuzzy
|
742 |
msgstr ""
|
743 |
"YITH WooCommerce Ajax Navigation için ayarlanmış tüm filtreleri sıfırlayın"
|
744 |
|
745 |
+
#: plugin-options/filter-options.php:117
|
746 |
+
msgctxt ""
|
747 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
748 |
+
msgid "AND - Results need to match all selected terms at the same time"
|
749 |
+
msgstr ""
|
750 |
+
|
751 |
#: plugin-options/filter-options.php:118
|
752 |
+
msgctxt ""
|
753 |
+
"[Admin] Filter edit form; logical operator that affects query behaviour"
|
754 |
msgid "OR - Results need to match at least one of the selected terms"
|
755 |
msgstr ""
|
756 |
|
1222 |
msgid "Delete Filter"
|
1223 |
msgstr "Tüm Filtreleri Sıfırla"
|
1224 |
|
1225 |
+
#: templates/admin/preset-filters.php:31
|
1226 |
msgctxt "[Admin] New filter button label"
|
1227 |
msgid "Add a new filter"
|
1228 |
msgstr ""
|
1229 |
|
1230 |
+
#: templates/admin/preset-filters.php:55
|
1231 |
msgctxt "[Admin] Add new filter in new preset page"
|
1232 |
msgid "+ Add filter"
|
1233 |
msgstr ""
|
1234 |
|
1235 |
+
#. translators: 1. number of items to show.
|
1236 |
+
#: templates/admin/preset-load-more-filters.php:18
|
1237 |
+
#, fuzzy
|
1238 |
+
msgctxt "[Admin] Add new filter in new preset page"
|
1239 |
+
msgid "See %d more filters"
|
1240 |
+
msgstr "Tüm Filtreleri Sıfırla"
|
1241 |
+
|
1242 |
#: templates/admin/upgrade-note-modal.php:31
|
1243 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1244 |
msgid "Use the new filter preset feature for your filters"
|
1301 |
msgid "All"
|
1302 |
msgstr ""
|
1303 |
|
1304 |
+
#: templates/filters/global/reset-filters.php:23
|
1305 |
#, fuzzy
|
1306 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1307 |
msgid "Reset filters"
|
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Navigation\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/yith-woocommerce-ajax-product-filter\n"
|
8 |
-
"POT-Creation-Date: 2021-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -80,10 +80,6 @@ msgstr ""
|
|
80 |
msgid "Query Type:"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
84 |
-
msgid "AND"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
88 |
msgid "OR"
|
89 |
msgstr ""
|
@@ -146,106 +142,106 @@ msgid ""
|
|
146 |
"your e-commerce shop on <strong>YITH</strong></a>"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: includes/class.yith-wcan-admin.php:
|
150 |
msgctxt "[Admin] Copy confirmation message"
|
151 |
msgid "Content copied to your clipboard"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: includes/class.yith-wcan-admin.php:
|
155 |
msgctxt "[Admin] Confirm filter delete message"
|
156 |
msgid "Are you sure you want to delete this item?"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: includes/class.yith-wcan-admin.php:
|
160 |
#. translators: 1. Number of items that will be added.
|
161 |
msgctxt "[Admin] Confirm add all terms message"
|
162 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: includes/class.yith-wcan-admin.php:
|
166 |
msgctxt "[Admin] Message shown when filter has empty title"
|
167 |
msgid "< no title >"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: includes/class.yith-wcan-admin.php:
|
171 |
msgctxt "[Admin] Media library title, when selecting images"
|
172 |
msgid "Select media you want to use"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: includes/class.yith-wcan-admin.php:
|
176 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
177 |
msgid "Use this media"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: includes/class.yith-wcan-admin.php:
|
181 |
msgctxt "[Admin] tab name"
|
182 |
msgid "Filter presets"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: includes/class.yith-wcan-admin.php:
|
186 |
msgctxt "[Admin] tab name"
|
187 |
msgid "General settings"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: includes/class.yith-wcan-admin.php:
|
191 |
msgctxt "[Admin] tab name"
|
192 |
msgid "SEO"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: includes/class.yith-wcan-admin.php:
|
196 |
msgctxt "[Admin] tab name"
|
197 |
msgid "Premium Version"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: includes/class.yith-wcan-admin.php:
|
201 |
msgctxt "[Admin] tab name"
|
202 |
msgid "Legacy"
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: includes/class.yith-wcan-admin.php:193
|
206 |
#: includes/class.yith-wcan-admin.php:194
|
|
|
207 |
msgctxt "[Admin] Menu title"
|
208 |
msgid "Ajax Product Filter"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: includes/class.yith-wcan-admin.php:
|
212 |
msgctxt "[Admin] Plugin description"
|
213 |
msgid ""
|
214 |
"It allows your users to find the product they are looking for as quickly as "
|
215 |
"possible."
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: includes/class.yith-wcan-admin.php:
|
219 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
220 |
msgid "item"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: includes/class.yith-wcan-admin.php:
|
224 |
msgctxt "[Admin] Preset table empty message second line"
|
225 |
msgid "But don't worry, here you can create your first one!"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: includes/class.yith-wcan-admin.php:
|
229 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
230 |
msgid "Clear Product Filter transients"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: includes/class.yith-wcan-admin.php:
|
234 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
235 |
msgid "Run filter widgets upgrade"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: includes/class.yith-wcan-admin.php:
|
239 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
240 |
msgid "Clear"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: includes/class.yith-wcan-admin.php:
|
244 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
245 |
msgid "Run"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: includes/class.yith-wcan-admin.php:
|
249 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
250 |
msgid ""
|
251 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
@@ -253,7 +249,7 @@ msgid ""
|
|
253 |
"configuration, and filters do not display the expected results."
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: includes/class.yith-wcan-admin.php:
|
257 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
258 |
msgid ""
|
259 |
"This will create a preset for any sidebar of your shop containing filter "
|
@@ -395,11 +391,6 @@ msgctxt "[Admin] Filter edit form"
|
|
395 |
msgid "Multiselect relation"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: plugin-options/filter-options.php:117
|
399 |
-
msgctxt "[Admin] Filter edit form"
|
400 |
-
msgid "AND - Results need to match all selected terms at the same time"
|
401 |
-
msgstr ""
|
402 |
-
|
403 |
#: plugin-options/filter-options.php:120
|
404 |
msgctxt "[Admin] Filter edit form"
|
405 |
msgid "Choose how multiple terms selection should behave"
|
@@ -496,23 +487,23 @@ msgctxt "[ADMIN] Name of default taxonomy filter created by plugin"
|
|
496 |
msgid "Filter by %s"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: includes/class.yith-wcan-presets.php:
|
500 |
-
#: includes/class.yith-wcan-presets.php:
|
501 |
msgctxt "[Admin] name of presets custom post type"
|
502 |
msgid "Filter presets"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: includes/class.yith-wcan-presets.php:
|
506 |
msgctxt "[Admin] singular name of presets custom post type"
|
507 |
msgid "Filter preset"
|
508 |
msgstr ""
|
509 |
|
510 |
-
#: includes/class.yith-wcan-presets.php:
|
511 |
msgctxt "[Admin] add new filter preset label"
|
512 |
msgid "Add new preset"
|
513 |
msgstr ""
|
514 |
|
515 |
-
#: includes/class.yith-wcan-presets.php:
|
516 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
517 |
msgid "Convert widgets in a preset"
|
518 |
msgstr ""
|
@@ -540,13 +531,13 @@ msgctxt "[ADMIN] Name of the preset elementor widget"
|
|
540 |
msgid "YITH AJAX Filters Reset Button"
|
541 |
msgstr ""
|
542 |
|
543 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
544 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
545 |
msgctxt "[ELEMENTOR] Default preset option"
|
546 |
msgid "Choose an option"
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
550 |
msgctxt "[ELEMENTOR] Section title"
|
551 |
msgid "Filters"
|
552 |
msgstr ""
|
@@ -556,7 +547,7 @@ msgctxt "[ELEMENTOR] Section title"
|
|
556 |
msgid "General"
|
557 |
msgstr ""
|
558 |
|
559 |
-
#: includes/elementor/class.yith-wcan-elementor-filters.php:
|
560 |
msgctxt "[ELEMENTOR] Control label"
|
561 |
msgid "Preset"
|
562 |
msgstr ""
|
@@ -603,7 +594,7 @@ msgctxt "[FRONTEND] Star rating label"
|
|
603 |
msgid "Rated %s out of 5"
|
604 |
msgstr ""
|
605 |
|
606 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
607 |
msgctxt "[GUTENBERG]: block name"
|
608 |
msgid "YITH AJAX Filters Preset"
|
609 |
msgstr ""
|
@@ -613,7 +604,7 @@ msgctxt "[GUTENBERG]: block name"
|
|
613 |
msgid "YITH Reset Filters Button"
|
614 |
msgstr ""
|
615 |
|
616 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
617 |
msgctxt "[GUTENBERG]: block description"
|
618 |
msgid "Show filters from a preset"
|
619 |
msgstr ""
|
@@ -627,7 +618,7 @@ msgid ""
|
|
627 |
"for your product's loop"
|
628 |
msgstr ""
|
629 |
|
630 |
-
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:
|
631 |
msgctxt "[GUTENBERG]: attribute description"
|
632 |
msgid "Preset"
|
633 |
msgstr ""
|
@@ -677,7 +668,7 @@ msgctxt "[Admin] Name of the item missing, shown in preset-empty-content templat
|
|
677 |
msgid "filter preset"
|
678 |
msgstr ""
|
679 |
|
680 |
-
#: templates/admin/preset-filters.php:
|
681 |
msgctxt "[Admin] Name of the item missing, shown in preset-empty-content template"
|
682 |
msgid "filter"
|
683 |
msgstr ""
|
@@ -710,13 +701,23 @@ msgctxt "[Plugin Name] Admin: Widget Title"
|
|
710 |
msgid "YITH AJAX Product Filter"
|
711 |
msgstr ""
|
712 |
|
|
|
|
|
|
|
|
|
|
|
713 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
714 |
msgctxt "[Plugin Name]"
|
715 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
716 |
msgstr ""
|
717 |
|
|
|
|
|
|
|
|
|
|
|
718 |
#: plugin-options/filter-options.php:118
|
719 |
-
msgctxt "
|
720 |
msgid "OR - Results need to match at least one of the selected terms"
|
721 |
msgstr ""
|
722 |
|
@@ -1176,16 +1177,22 @@ msgctxt "[Admin] Delete filter button, in new/edit preset page"
|
|
1176 |
msgid "Delete Filter"
|
1177 |
msgstr ""
|
1178 |
|
1179 |
-
#: templates/admin/preset-filters.php:
|
1180 |
msgctxt "[Admin] New filter button label"
|
1181 |
msgid "Add a new filter"
|
1182 |
msgstr ""
|
1183 |
|
1184 |
-
#: templates/admin/preset-filters.php:
|
1185 |
msgctxt "[Admin] Add new filter in new preset page"
|
1186 |
msgid "+ Add filter"
|
1187 |
msgstr ""
|
1188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1189 |
#: templates/admin/upgrade-note-modal.php:31
|
1190 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1191 |
msgid "Use the new filter preset feature for your filters"
|
@@ -1249,7 +1256,7 @@ msgctxt "[FRONTEND] General option for terms dropdown"
|
|
1249 |
msgid "All"
|
1250 |
msgstr ""
|
1251 |
|
1252 |
-
#: templates/filters/global/reset-filters.php:
|
1253 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1254 |
msgid "Reset filters"
|
1255 |
msgstr ""
|
5 |
"Project-Id-Version: YITH WooCommerce Ajax Navigation\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/yith-woocommerce-ajax-product-filter\n"
|
8 |
+
"POT-Creation-Date: 2021-04-20 14:45:48+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
80 |
msgid "Query Type:"
|
81 |
msgstr ""
|
82 |
|
|
|
|
|
|
|
|
|
83 |
#: includes/widgets/class.yith-wcan-navigation-widget.php:463
|
84 |
msgid "OR"
|
85 |
msgstr ""
|
142 |
"your e-commerce shop on <strong>YITH</strong></a>"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: includes/class.yith-wcan-admin.php:107
|
146 |
msgctxt "[Admin] Copy confirmation message"
|
147 |
msgid "Content copied to your clipboard"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: includes/class.yith-wcan-admin.php:108
|
151 |
msgctxt "[Admin] Confirm filter delete message"
|
152 |
msgid "Are you sure you want to delete this item?"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: includes/class.yith-wcan-admin.php:110
|
156 |
#. translators: 1. Number of items that will be added.
|
157 |
msgctxt "[Admin] Confirm add all terms message"
|
158 |
msgid "Are you sure you want to proceed? This operation will add %s items"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: includes/class.yith-wcan-admin.php:113 templates/admin/preset-filter.php:31
|
162 |
msgctxt "[Admin] Message shown when filter has empty title"
|
163 |
msgid "< no title >"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: includes/class.yith-wcan-admin.php:114
|
167 |
msgctxt "[Admin] Media library title, when selecting images"
|
168 |
msgid "Select media you want to use"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: includes/class.yith-wcan-admin.php:115
|
172 |
msgctxt "[Admin] Media library confirm button, when selecting images"
|
173 |
msgid "Use this media"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: includes/class.yith-wcan-admin.php:181
|
177 |
msgctxt "[Admin] tab name"
|
178 |
msgid "Filter presets"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: includes/class.yith-wcan-admin.php:182
|
182 |
msgctxt "[Admin] tab name"
|
183 |
msgid "General settings"
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: includes/class.yith-wcan-admin.php:183
|
187 |
msgctxt "[Admin] tab name"
|
188 |
msgid "SEO"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: includes/class.yith-wcan-admin.php:184
|
192 |
msgctxt "[Admin] tab name"
|
193 |
msgid "Premium Version"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: includes/class.yith-wcan-admin.php:188
|
197 |
msgctxt "[Admin] tab name"
|
198 |
msgid "Legacy"
|
199 |
msgstr ""
|
200 |
|
|
|
201 |
#: includes/class.yith-wcan-admin.php:194
|
202 |
+
#: includes/class.yith-wcan-admin.php:195
|
203 |
msgctxt "[Admin] Menu title"
|
204 |
msgid "Ajax Product Filter"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: includes/class.yith-wcan-admin.php:196
|
208 |
msgctxt "[Admin] Plugin description"
|
209 |
msgid ""
|
210 |
"It allows your users to find the product they are looking for as quickly as "
|
211 |
"possible."
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: includes/class.yith-wcan-admin.php:309
|
215 |
msgctxt "[Admin] Generic item name, in \"You have no x yet\""
|
216 |
msgid "item"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: includes/class.yith-wcan-admin.php:310
|
220 |
msgctxt "[Admin] Preset table empty message second line"
|
221 |
msgid "But don't worry, here you can create your first one!"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: includes/class.yith-wcan-admin.php:458
|
225 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
226 |
msgid "Clear Product Filter transients"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: includes/class.yith-wcan-admin.php:464
|
230 |
msgctxt "[ADMIN] WooCommerce Tools tab, name of the tool"
|
231 |
msgid "Run filter widgets upgrade"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: includes/class.yith-wcan-admin.php:459
|
235 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
236 |
msgid "Clear"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: includes/class.yith-wcan-admin.php:465
|
240 |
msgctxt "[ADMIN] WooCommerce Tools tab, button for the tool"
|
241 |
msgid "Run"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: includes/class.yith-wcan-admin.php:460
|
245 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
246 |
msgid ""
|
247 |
"This will clear all transients related to the YITH WooCommerce AJAX Product "
|
249 |
"configuration, and filters do not display the expected results."
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: includes/class.yith-wcan-admin.php:466
|
253 |
msgctxt "[ADMIN] WooCommerce Tools tab, description of the tool"
|
254 |
msgid ""
|
255 |
"This will create a preset for any sidebar of your shop containing filter "
|
391 |
msgid "Multiselect relation"
|
392 |
msgstr ""
|
393 |
|
|
|
|
|
|
|
|
|
|
|
394 |
#: plugin-options/filter-options.php:120
|
395 |
msgctxt "[Admin] Filter edit form"
|
396 |
msgid "Choose how multiple terms selection should behave"
|
487 |
msgid "Filter by %s"
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: includes/class.yith-wcan-presets.php:95
|
491 |
+
#: includes/class.yith-wcan-presets.php:100
|
492 |
msgctxt "[Admin] name of presets custom post type"
|
493 |
msgid "Filter presets"
|
494 |
msgstr ""
|
495 |
|
496 |
+
#: includes/class.yith-wcan-presets.php:96
|
497 |
msgctxt "[Admin] singular name of presets custom post type"
|
498 |
msgid "Filter preset"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: includes/class.yith-wcan-presets.php:97
|
502 |
msgctxt "[Admin] add new filter preset label"
|
503 |
msgid "Add new preset"
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: includes/class.yith-wcan-presets.php:139
|
507 |
msgctxt "[ADMIN] Convert widgets tools, in preset tab"
|
508 |
msgid "Convert widgets in a preset"
|
509 |
msgstr ""
|
531 |
msgid "YITH AJAX Filters Reset Button"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:89
|
535 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:60
|
536 |
msgctxt "[ELEMENTOR] Default preset option"
|
537 |
msgid "Choose an option"
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:97
|
541 |
msgctxt "[ELEMENTOR] Section title"
|
542 |
msgid "Filters"
|
543 |
msgstr ""
|
547 |
msgid "General"
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: includes/elementor/class.yith-wcan-elementor-filters.php:105
|
551 |
msgctxt "[ELEMENTOR] Control label"
|
552 |
msgid "Preset"
|
553 |
msgstr ""
|
594 |
msgid "Rated %s out of 5"
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:69
|
598 |
msgctxt "[GUTENBERG]: block name"
|
599 |
msgid "YITH AJAX Filters Preset"
|
600 |
msgstr ""
|
604 |
msgid "YITH Reset Filters Button"
|
605 |
msgstr ""
|
606 |
|
607 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:70
|
608 |
msgctxt "[GUTENBERG]: block description"
|
609 |
msgid "Show filters from a preset"
|
610 |
msgstr ""
|
618 |
"for your product's loop"
|
619 |
msgstr ""
|
620 |
|
621 |
+
#: includes/shortcodes/class.yith-wcan-shortcode-filters.php:75
|
622 |
msgctxt "[GUTENBERG]: attribute description"
|
623 |
msgid "Preset"
|
624 |
msgstr ""
|
668 |
msgid "filter preset"
|
669 |
msgstr ""
|
670 |
|
671 |
+
#: templates/admin/preset-filters.php:29
|
672 |
msgctxt "[Admin] Name of the item missing, shown in preset-empty-content template"
|
673 |
msgid "filter"
|
674 |
msgstr ""
|
701 |
msgid "YITH AJAX Product Filter"
|
702 |
msgstr ""
|
703 |
|
704 |
+
#: includes/widgets/class.yith-wcan-navigation-widget.php:462
|
705 |
+
msgctxt "[ADMIN] Ajax Filter Widget; logical operator that affects query behaviour"
|
706 |
+
msgid "AND"
|
707 |
+
msgstr ""
|
708 |
+
|
709 |
#: includes/widgets/class.yith-wcan-reset-navigation-widget.php:30
|
710 |
msgctxt "[Plugin Name]"
|
711 |
msgid "Reset all filters set by YITH WooCommerce AJAX Product Filter"
|
712 |
msgstr ""
|
713 |
|
714 |
+
#: plugin-options/filter-options.php:117
|
715 |
+
msgctxt "[Admin] Filter edit form; logical operator that affects query behaviour"
|
716 |
+
msgid "AND - Results need to match all selected terms at the same time"
|
717 |
+
msgstr ""
|
718 |
+
|
719 |
#: plugin-options/filter-options.php:118
|
720 |
+
msgctxt "[Admin] Filter edit form; logical operator that affects query behaviour"
|
721 |
msgid "OR - Results need to match at least one of the selected terms"
|
722 |
msgstr ""
|
723 |
|
1177 |
msgid "Delete Filter"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
+
#: templates/admin/preset-filters.php:31
|
1181 |
msgctxt "[Admin] New filter button label"
|
1182 |
msgid "Add a new filter"
|
1183 |
msgstr ""
|
1184 |
|
1185 |
+
#: templates/admin/preset-filters.php:55
|
1186 |
msgctxt "[Admin] Add new filter in new preset page"
|
1187 |
msgid "+ Add filter"
|
1188 |
msgstr ""
|
1189 |
|
1190 |
+
#: templates/admin/preset-load-more-filters.php:18
|
1191 |
+
#. translators: 1. number of items to show.
|
1192 |
+
msgctxt "[Admin] Add new filter in new preset page"
|
1193 |
+
msgid "See %d more filters"
|
1194 |
+
msgstr ""
|
1195 |
+
|
1196 |
#: templates/admin/upgrade-note-modal.php:31
|
1197 |
msgctxt "[ADMIN] Upgrade note modal title"
|
1198 |
msgid "Use the new filter preset feature for your filters"
|
1256 |
msgid "All"
|
1257 |
msgstr ""
|
1258 |
|
1259 |
+
#: templates/filters/global/reset-filters.php:23
|
1260 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1261 |
msgid "Reset filters"
|
1262 |
msgstr ""
|
@@ -1471,9 +1471,13 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
1471 |
display : block !important;
|
1472 |
}
|
1473 |
|
1474 |
-
.woocommerce .yith-plugin-ui .iris-picker {
|
1475 |
-
|
1476 |
-
|
|
|
|
|
|
|
|
|
1477 |
}
|
1478 |
|
1479 |
.yith-plugin-ui .yith-plugin-fw input[type=text].wp-color-picker {
|
@@ -2082,8 +2086,8 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2082 |
.metaboxes-tab .yith-plugin-fw-dimensions__dimension__label,
|
2083 |
.yith-plugin-ui.metaboxes-tab label.yith-plugin-fw-dimensions__dimension__label {
|
2084 |
text-transform : uppercase;
|
2085 |
-
letter-spacing :
|
2086 |
-
font-size :
|
2087 |
margin-bottom : 5px;
|
2088 |
display : inline-block;
|
2089 |
}
|
@@ -2153,7 +2157,7 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2153 |
height : 38px;
|
2154 |
width : 100%;
|
2155 |
background : transparent;
|
2156 |
-
padding : 0;
|
2157 |
border : 0;
|
2158 |
border-radius : 0;
|
2159 |
}
|
@@ -2171,10 +2175,13 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2171 |
border-radius : 2px;
|
2172 |
padding : 1px;
|
2173 |
user-select : none;
|
|
|
|
|
2174 |
}
|
2175 |
|
2176 |
.yith-plugin-fw-copy-to-clipboard__copy:hover {
|
2177 |
-
box-shadow
|
|
|
2178 |
}
|
2179 |
|
2180 |
.yith-plugin-fw-copy-to-clipboard__copy__text {
|
1471 |
display : block !important;
|
1472 |
}
|
1473 |
|
1474 |
+
.woocommerce .yith-plugin-ui .wp-picker-container .iris-picker, .yith-plugin-ui .wp-picker-container .iris-picker {
|
1475 |
+
z-index : 100;
|
1476 |
+
position : absolute;
|
1477 |
+
margin-top : 20px;
|
1478 |
+
border : 1px solid #d8d8d8;
|
1479 |
+
border-radius : 4px;
|
1480 |
+
box-shadow : 0 1px 3px rgba(0, 0, 0, .2);
|
1481 |
}
|
1482 |
|
1483 |
.yith-plugin-ui .yith-plugin-fw input[type=text].wp-color-picker {
|
2086 |
.metaboxes-tab .yith-plugin-fw-dimensions__dimension__label,
|
2087 |
.yith-plugin-ui.metaboxes-tab label.yith-plugin-fw-dimensions__dimension__label {
|
2088 |
text-transform : uppercase;
|
2089 |
+
letter-spacing : 1px;
|
2090 |
+
font-size : 9px;
|
2091 |
margin-bottom : 5px;
|
2092 |
display : inline-block;
|
2093 |
}
|
2157 |
height : 38px;
|
2158 |
width : 100%;
|
2159 |
background : transparent;
|
2160 |
+
padding : 0 10px 0 0;
|
2161 |
border : 0;
|
2162 |
border-radius : 0;
|
2163 |
}
|
2175 |
border-radius : 2px;
|
2176 |
padding : 1px;
|
2177 |
user-select : none;
|
2178 |
+
line-height : 1;
|
2179 |
+
transition : all .2s ease-in-out;
|
2180 |
}
|
2181 |
|
2182 |
.yith-plugin-fw-copy-to-clipboard__copy:hover {
|
2183 |
+
box-shadow : 0 0 0 4px rgba(15, 67, 60, .12);
|
2184 |
+
background-color : rgba(15, 67, 60, .12);
|
2185 |
}
|
2186 |
|
2187 |
.yith-plugin-fw-copy-to-clipboard__copy__text {
|
@@ -6,10 +6,10 @@
|
|
6 |
/* stylelint-disable function-url-quotes, declaration-colon-newline-after */
|
7 |
@font-face {
|
8 |
font-family: yith-icon;
|
9 |
-
src: url("../fonts/yith-icon.eot?
|
10 |
-
src: url("../fonts/yith-icon.eot?
|
11 |
-
url("data:application/x-font-woff;charset=utf-8;base64,
|
12 |
-
url("../fonts/yith-icon.ttf?
|
13 |
font-weight: 400;
|
14 |
font-style: normal;
|
15 |
}
|
@@ -91,6 +91,10 @@
|
|
91 |
content: "\e905";
|
92 |
}
|
93 |
|
|
|
|
|
|
|
|
|
94 |
.yith-icon-close:before {
|
95 |
content: "\e906";
|
96 |
}
|
@@ -131,6 +135,10 @@
|
|
131 |
content: "\e908";
|
132 |
}
|
133 |
|
|
|
|
|
|
|
|
|
134 |
.yith-icon-more:before {
|
135 |
content: "\f102";
|
136 |
}
|
@@ -139,6 +147,10 @@
|
|
139 |
content: "\e91b";
|
140 |
}
|
141 |
|
|
|
|
|
|
|
|
|
142 |
.yith-icon-pencil:before {
|
143 |
content: "\e909";
|
144 |
}
|
@@ -163,6 +175,10 @@
|
|
163 |
content: "\e917";
|
164 |
}
|
165 |
|
|
|
|
|
|
|
|
|
166 |
.yith-icon-time-check:before {
|
167 |
content: "\e918";
|
168 |
}
|
@@ -179,6 +195,10 @@
|
|
179 |
content: "\e90c";
|
180 |
}
|
181 |
|
|
|
|
|
|
|
|
|
182 |
.yith-icon-warning-triangle:before {
|
183 |
content: "\e923";
|
184 |
}
|
6 |
/* stylelint-disable function-url-quotes, declaration-colon-newline-after */
|
7 |
@font-face {
|
8 |
font-family: yith-icon;
|
9 |
+
src: url("../fonts/yith-icon.eot?9b110ae71c86256f1bb853df2050290b");
|
10 |
+
src: url("../fonts/yith-icon.eot?9b110ae71c86256f1bb853df2050290b#iefix") format("embedded-opentype"),
|
11 |
+
url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABjwAAsAAAAAKlQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAAQAAAAFY4xkr2Y21hcAAAAXwAAAFHAAAD2mDI02dnbHlmAAACxAAAEsoAAB+oFAg03mhlYWQAABWQAAAAMAAAADYaWpUuaGhlYQAAFcAAAAAeAAAAJAQ1AiBobXR4AAAV4AAAACIAAACoUgT/7GxvY2EAABYEAAAAVgAAAFakFJwibWF4cAAAFlwAAAAfAAAAIAFIAVZuYW1lAAAWfAAAATAAAAIiyMcJZnBvc3QAABesAAABQQAAAdfFCO7/eJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/MI4gYGVgYNBjDGNgYHBHUp/ZZBkaGFgYGJgZWbACgLSXFMYHF4yfORkAnH1mNgYeIE0I4gDAI1KCDp4nO3TW1LCQBSE4T8hCQTwBirgFfBe5WIsV+WCfHJH53FWgH3SLsNQHwxDEpJ0D9ACI3mXBqofKnL71mw1zI+YDvMNX/o+0auGeCx16Q8HjShVaXM0bJV+/+BTo1pHNjr/lCNOWLKWO7Y88ciKhUYXnGvvXnvcsuOBV+65ZqxzdMw4Y84lL7xxyhXH7LnhmY3+ouN/m+dbvf379p452JBOZZls1Jbpxsgy9Wgs043WlBTRmTIjxqbkiIkpR6K3YX5qypaYmbIl5qa8iSNT8sSxqQPEiakNxKkNx56ZGkIsTF0hlkZey7mR13Jhw71cmjpFrEztItamnhEbU+OIK1P3iGsjP2+MfAa3lisi7ox8TvdG3vfWyGvfWaYUeyOv68HUaq0gU7+1gkxNp9SmzlNaU/spnWkdUMamFUGZmNYGpTc2v5ETa04AeJytWHmQHFd5f1/fPX3MdE8fOzPdc8+0dmcv7Ryt9ewhyaxkHbYlW7vyLUArxxBTBCXGkTBBQJUpDodQIXGQBSRFhcMhf6QojE2qjJKyjYBUgHJMwBSExAsFxEUZkYQKyK18r6dnD9kYqIo0+/q9733v+L73Hb/3iEXwH3yDISRLXFIgLTJFFsnV5EZylPwO+V3yFvI28n7yp+Sj5NPkUfIE+Rpy17oVu1YVbMNy2pWZXtfoNBttu8YaFYNFug+W04eZ3jx0mmK3bYsvQ+u+DC38DWnBy9DougNKp9neVK9tbrTg5ZngsVa01lIzGRVOYhl9aW1tL5zcu0YptHhh7Ys+rfuKYWzzN1WPe6phqLTY5q1SkkI7R/3VTfTbRJbjWFoECq2lWJ5nj8RlCtsTqQGR465dZ4Rzq6sZNTpHJ4RVNXPNNdEZWI3OwexgYbrKrO+fM5Q0bWHRSqfPZFSdrqqrmTFdH7uytUo5ca4zq6utLePgFCdwr/Cj5hHbyCV4J+EJaQShG7pALlk//KH1+3FJ1nneCZeGPKILb7xEu7m43OB5YMATBvjf/QAdf4mLy/V1HhjMIWI//JD2XHprXNJulRYMgZ8TBe21htbaJ3vRWo+RVXIXeQN5AGf+Fbawue5uNpFNFsL8+qEQiPYiuGIgdlHKsCa2Z9ATapUq+kEfwisc4w90etI6nmovzfA8k45r9KRpEdBKzNEa1LB47hVHgHrwgwcPexnvTa/1XvPBpt5hmGiOYX6s/o9qmio8geUTLz3Ea1/5jOHQ1E+O1H9uFMx/KX3YPHfYZ6KIYYBhfFOLonhiRjOJdvky6h4wVtRIQMbJdtIlc2Qn2ZPo/s0YKwi0Y6+cgmYaEje1E4elOqEO2wIaAWjZQBXaol3pitVZbPpMrctP1yoh3xAd1253F6ATNIOu44ZY1mwdLBfpzdCxxKATYoUeCz0Usdrs9GYcS4A1XZCkn4riTyVJyAD1AXgKS2W+XIJytLy2dnP0fB/KZfgURLMAX4x+lsp4hmVrclbXZN2hVcmyGppW1DTLzOfr+bwpyrIuyzAuCT2JO8Oyb+fkjiA9baglugAW5fLcg17x1B+WvKeffvDBB71y+bYynLBVJmsxVkkWuCIj2jKTzTI2tnifcXmD2Z1ic9z3C7hAvTBPF9BlavmbdNwiS+RwHHEH0cvfXNtqaAFGYPoHVq2RbdvD8Oiu19piza7ZbdRqu1uD55bjWHIyDibL62o66/tf9H1YobrZzLHybW92Fn/wZImGjtKgNNTo3njou1WjtLq6Gn0UAN4zSgPkKGyjn21n6SiPEG1dLpYYpBRL18U8s5ccICfI/eS95E9QTjxjMbYf3CrWLSek+x1K3GcGIm4htt0B50DIYX8tRFGNWBXdKxTF4tSTEISO220GzW6nF6I1Oq7YDLB0bEsIuoJtuZ3A7sHsyVlUged7qAovVgTWvVnPey4m0a4hfTamv2l5oLoNjf6rk/Fk1RhxlUx+xMkbSibjpjK5yUwXY+8nfW8JdYX/MDInSvU8r59Ul7YNlOjH/6J7qXa9zUqPPjUyArKY15iaICqWmWNHXEYpyEydj5u3FTlVnpWFIg3jJLPpDESMn+kk55cSW5uKs/6t5B4EA0M1Jn/8r2ln/18s9KTnLfs+/lY87zL5VY03/ZamC17yr3XFF278LY0Z1Scm+ecZ1F6B1MkE2vDN5LVou5UrzCxJCdi2xZeEqWGOstcTS4xkat32EKgMEQ4mHLcdTILIt+E/orn1KJ+K4z48wayNVKvT1eoI7j1nGKdKgiwLhoVBUKhi9QXLoNWYWsUacPmizzpK9De3w35TjSLNNDVgVDP6Xhzxmf10sunqTeaIib9VWZWuwT9JOCHIJ66RVJzmBE6jyjBxwy2Kwr6BUGuKdcLQ7JxDayKV6iR0FmCmCJYObBXDdhFmMJZPApugh6U3Ly29+T20WFq4a2HhrvtocXjFWny9k9CxgLWkA4vo/HX27DvMBCNE8M0EQ7jgfv2fsp+FnDv99/bH4Y+M9f1QO6d4to981Saqt4fqdDBgdDcruMvXNndaArsVXNZ2pR0n/ZW04zULXyk0m4VlGI2/tPhB0uekv5p8l5eTPu+rCT8WsD3pxWKgKirDI/BI7IcEXAiyIAL8lRU9bFmwgh/4LK3DSlyQdbujMlG/zcUeu0iuR0+lWx/A6baI3tWIY2MgFoHHv7irSb2Zp2EyZqNJYEPArCWgNtZVYHtOWpJw/9Q/tnvFEV4zo+c9rj4yMqJbrz52DHae9OYLzXp9IF9qQzT4QqwlMTz2YWSucx5jf5d3S54JJe9Byj/vnUw0Ev3XuuZQLCnxqb9Eydw4Gg1R3Uu8iq/M+FDpdpA+DxXbimPKbwDxtwC4zW4UTaMLRTvgKfQmuHBnuXxBHyKxufXaG9drvXVwBh+l3jPARqrpMWHIRL9gzp5ljpfdV8LSl39x+WeMgOeIfgIiJi83DEQ3xDBKPyhP/ME7DX7g89boP7SsA9dbrX+csK4/uKUF+H1sQH10zD6IrS8PWl/CVuIDIiMQDvWL2VcGMYQaYmr6deGh6G36aXj76M7di9F3D0qQ3c0I0dtO6XBm56t2RkelA2C+ik7BX/4lzsPD9/FkAnIVZuvrcN+YOANEaIIo1KpYac+EvbC3CHy1BbTV63YQJFtCVmzWqiJypQFxm0PvBDwytmdc2kGzrNgMxR5c0uzRcbvfKbf2XFcpu62JvbsmA1sRo0sYgl1NyzcE1/rU67Y153dOjru6JKas+vgbLPhMtNKc2Hd13g8wBzbYhf4nswIoullzHX+mXhiTRrSy28hm5JrL1/Oa5rK6BcLr1JLTyKZlOW3W3btxlq81Ci0pYBt5UZ73D2VjqMIlcr+bOHGU7+GNpIpSN6eAyjrjOiWgkolCAyWj8mMfyuoOI3wwjPlAEmmk0sQtn75lsiiJih1M7oqeLY8vndvTKqMI9++beCzfaHQajbxuWZ5lncZ9WxlZrpTm5ksVWc5kG275XY18a6xQbxTGW4XjdWTu1F9NmT28gXHrMZjGFJrV4xxu09x8hQ8B3tMvUv++GO2Ir5gXsIwm4AKcaY19Au4zlA165MGFaAfZPD+N8T6pvFKUF5OVf0WcP0gXf/kwv4o7oGtdvhyv5WAs2EH209vgAnRx5sEqaGGhS5W7sT7upTGJiEPUoQjUxPBU2rgbNw5yqADXEgXHxZFw6XTenztx7539/p390QPF05wqRV7nptfd1G5j0YE5e1dzsskzosKXGqVuhhd5ibEYzILA4JkzgjRyunhgtE8nuPfEnJ8/zUkqZDo3dZJJ3lWq5TklxbCOlxcEvHUrsiDSnyykQFzPl3ARPTMgbTwpel8OEJfymLgRNjTxmHoxOPDBRdPqduhlacZhu6JQnQLbwqM8b63cYE95oGIYisPZxz/O/Oc3WI752McwHD3DyexzFB3Ae+0bVrLTT37pAxup3mMKHznLgMd4ZnTxyQ+xzNkn45QU7wsegxbuyyB53NfAgqvofVdW9uZqOfz9ca6ew9/7By0gJm3lzC2fZN5LuMYEOUTuxjrCbOo6AY0OaSYOEAFe7fqxby0yWPTBofWgCYuwuRlgiI/9jsX4s3lA2ItDjCNuj70y2N7EG+J2eFaXCnfPXstpssixNiuLsrSH5fVdUkpIMQ7LCSmNu3b27kKKZaP32SwnyoO2wgmNyds/IMtiij0GwAnKbgkHz1oMR3kcQ6lJHItRJbB0FZHTJ/KVfO7msoE4TRLvSEsCAyDhcaO16MdEiRfBKN9cLo1F59db9cpUoRYzRCdEiRNpNbpRELGXxUwvFNNaw9RYhuFUMb4WSoO3OvgO4nYH88cY2s4c3hARBQDa/hVuHiCaRFePU70RODTN2xRfinGatDFmx7QtlIHbIhucm5LE6EfDNzFerY9HT0NGEo68mLIdzak5PKcoalp5i17wK9UCI2UMVU+/dXJ83IG/npIyanQmHtzkRJUbjx6CM8uCHK09KzUM7/g0b4iVQJssHL9G8jNz12edbHCckFTs9wBrif3VyDjeEa9HHHATuQOtcWB5eCmk8ZXG2fAlFPellC33kc3PEDzeXFDirJudpmpYyfp+4PuWpCiGonzGC4IdQeBlXLfsup+3fH+b51ly3LfrlKF+SDVOxbeFJymI+ORpOPW5h+Dsn8Op0yBT1m3+kppR8Zem0+wIXk+nKbuPb+m7fV4zDG3e0D5Hp3pUNZ551H8GshD95NENnHgR40SME7MVu5JtGzUd1iJvDeGZ7gGJvORdjVHg64Q2KgMgUcG46NPIWMNhGAjnaWCG+6KnJrMYODqwq9wplTrl6CNwvLk7CHbD+ycwUli9Ure0E7v8YHewM9jdJMPYDy/CPyPmtmNMHSNvjFk1jL801Io09OrAx292eMkJQhqkMWS3cQMH9iIktXZ7vdvDudVc3j7anjo0BX/W6Vr7974YU1Y6SMH+H++z8C4+Ed4e7gqVyR1Th96CE+zdf3ZXT53aMXV4CjtiTBLv5zvwv/FeDpLDZIVmiOZGel6M8cYwQ4ssjQy9QY4OkOD+Fk8ARLC9brNnMmowcRNiEWtfu60yZq/Z9ezz7r6x6emxfe7U2NXF4tVjf+EYxZRm5nOK6eUdz1QMM6cYhWkjzGQEVnZbizffo3GY/Uddt17PpTntnpsXW04KDt1/a7dQ6N56f9ou1+tl66ncCKRET2eagqja2QKbyzGKl2ICXlIcs/CaMqel+rJQ4hIb+QJDtaIMM4kRW8BR6/HHrYcfpiW0rPPnrU9Hh//WPn/eXretOMcqZBm1V6O+Qi8AKLyIKtBBTDInGpE7yQQbAFsM8NTD2JViRwqK8Wuomw0SMxjgAATp3/V5WeZ9el+0K1etzmGelLgdx+Z4jqNEwec5uOq1fUAyBHu8B0fthV9ac7Wj00PY8APswd/HrN7i3J0LLMcPh7HhrSFLZ2P6dy5wLDNYiGGZYu6hieyrgLUWytUh8ti/bjPPorzpBL+MUl+hj0Q0jSCA6xptdnAX6hoVMXmrYOlTEwZFeDY6WLOM3MWcYdUWLf0iAsneKd9/je+L7/Of8uFdXvT82Ihtj4yBFT1fKJcLYPW/9a1vwQP9o0eHb9+xvosbtxoMzEP0j5gMl0kA2toAgP33JPXIzjfhwkMPYZshA2QG9nZr+QZ75hKFZt4Apw3fJWJ8VsfMME06eD9Ev4DNwAxif6XuilTMDC6WtNWwMAOHoosnWUOktQjBJJ5fjKJY6s2VRTSFGIJRz6bWAWTPPUtL97yPFtE3ENsdmB9Lz/Q7RctsTIDqlyHM2d7+6yrNafbffKFVtnU7t706si21f/RgMQ+CDuNN0+LblcbCXQxJZsLiMsHJJiedvDftuaNpc2mbrpeuv89ppNQbVlJKWE+VphVXkBtOacLNRg/7eQ/MbUtmetTV9bC0PIXDY/z+Is0lsT4G71ykwSJAZ4U4/ncaBaDn26Uo9cUXOJO7yEoSrGEGbnz72z+iANWFfxfFyJc0SZHhkWj/0db33kOtJ85RDOC8Js6aw/Osk2b8Gt5GrLpAdpK/g33oiVsAcQ9jTW0e8MoU1DDM9EL6vl3ribbbtgWx6dpIc9shvVLRp+62EHbDaq1JWRH/0Nf0ahoE2gzW05mAzM2kxyoBnuDw6QJDGaU4MxQ74ZwbT2w9XNpJeuistBm2k9cnav10f/F1DZksnBjhJq5BSXb8PDJ4K2iG3SAhxxwdnA6NJiZtek1AiRJyzDGDc5aAkrqbnlwcVEJCjjnoqoMNtAcvElGtX6v1l2hhVQoWv2wZRoXRLcPMznnlIxwPR8qedShrGlVAqmHNFSpHOOH3GE6XeEmQOV3XtUDjZT5jAhSyVrYAkM1wMo9U7MvIgpstFLJoVJmEVeIz2XVWM8MPWTlZwCk1EdkBL3QZyUQsyat4U+Dxm+YFhVdTTk7BTktUgFEKjiLzKo9dOrIoYkpIC6wmyhlRicdrLBJSG+NVLpVyChvjc05K3TxexS9rCikcD2eq/T39alwcYS23eFWBTSk5j1VSbNlii8UWoxWR7r2EHAIYGT7Fa02UVkOZ8G6iUpmygiqigCKvobBNxCbmQAdZRCkDXqpQYcCLQ3CgzA14cbqMkahsd7J1WduydUEX2IxkiInoaVbQrhTdzWtMIjuqLpXaqjpNYNMb4zMsTrhJ9agneaD6Dez0ZYZFhLwba4IYXx9EGtPwjlirUpiArhQbOxLR+BEXxJeMcAAahMGrRmj1eMoswIV66LHs/H5H1ZU0wPwIyivLhZxRbZsOnwYPQDOCicmsKcjLzR4nLu/oTlSuCuToBbx2LdVhVy5/x+FdDHOEN9XiXj892UrnywxTnHAMG149UjZtli1pmZITeM3xa5f6x/0CP/OsYlV3kf8DvcOm2AAAeJxjYGRgYADiyCmbS+L5bb4ycDMxgMCd2VoyMPr/r/+fmbiZ2IBcDgawNAA5VgtHeJxjYGRgYGIAAj0mhv+//n9l4mZgZEAFWgBfKgRZAAB4nGNgYGBgwon//8cth6H2F5T+DcHE6sNr5l8YGwBDEwo6AAAAAAAAARIBJAE2AUYBWAIWAsgDNAP2BJgFIgVYBWoFugXUBkIGuAbsBxAHjAfkCBQISgi6CQYJMgnWCkYKzgriCxILWgvgC/wMdAy0DOQNbA2YD2wP1AAAeJxjYGRgYNBi9GIQYQABJiDmAkIGhv9gPgMAFdgBoAB4nG2PPW7CQBCFn/mLAlKEEilSulWKNBHmp6DgANBT0Buz/kG211oWJC6QE+QMOUNOkDJnyFHybEYuEnal1ffevNnRABjiCx6q4+G2fqvTwg3VhdukoXCH/CTcxQDPwj36I+E+XjEXHuABAX/wOtVv93DCLdzhTbhN/124Q/4Q7uIRn8I9+t/CfWzwIzzAizc/py4ZpaEp1jo+ZoFtdAMbbQ+pKdTUnzTeShfaBk7v1PasDqd45lykImtytTSF01lmVGnNXofOT5wrF+NxJL4fmhxnpNwm4dYpQhgUWEMjxhEZN7ZX6v+dDTssDtSVUpjCx+RKbsVcUWcDVjR2zG6ZU+w9ceaMrkNEHTFjkJOWdWeVzngNnbKu7emE9H1OqLpKLDDmjf7k/Xp2/gurBGCqeJxtkOtO3DAQhXNYZwnZdAsthd4vQC9Q+aFce5JYOLY7drTK2zfZtP3F/Bh9n3Q8Gk9xUqxVFk/XA06wgUCJLU5R4Qw1dmjwDHs8xzku8AIvcYlXuMI1XuMN3uId3uMDPuITPuMLbnCLO3zFN3zHD9zjAT+LWmkdRp+t72rFHA7ShIP/i47avFuRbdfnauUx1r+Uf5S6J/0oFmy0cuSNYqmM2f+XIXiaqn8qtEp9c3wktWXtqDxKqd2cW3oioUOcdprJ2Cy1YiMMq04sWtNE8hgymxkb69sg0+9RzWGxyNmgOm9bS1wNyjoZxiyGwLSNaorKbaJpt5FCdCSiG1PJFN0090S5Sb0lZ9aFRQqc62wHWn9YZp4X347RBWWqMRHL0LbnB8V+vprMbJXvHO0PgecR87TlmElMNvdF8Qc7rIJZAAAA") format("woff"),
|
12 |
+
url("../fonts/yith-icon.ttf?9b110ae71c86256f1bb853df2050290b") format("truetype");
|
13 |
font-weight: 400;
|
14 |
font-style: normal;
|
15 |
}
|
91 |
content: "\e905";
|
92 |
}
|
93 |
|
94 |
+
.yith-icon-clone:before {
|
95 |
+
content: "\f105";
|
96 |
+
}
|
97 |
+
|
98 |
.yith-icon-close:before {
|
99 |
content: "\e906";
|
100 |
}
|
135 |
content: "\e908";
|
136 |
}
|
137 |
|
138 |
+
.yith-icon-mail-out:before {
|
139 |
+
content: "\f109";
|
140 |
+
}
|
141 |
+
|
142 |
.yith-icon-more:before {
|
143 |
content: "\f102";
|
144 |
}
|
147 |
content: "\e91b";
|
148 |
}
|
149 |
|
150 |
+
.yith-icon-pdf:before {
|
151 |
+
content: "\f107";
|
152 |
+
}
|
153 |
+
|
154 |
.yith-icon-pencil:before {
|
155 |
content: "\e909";
|
156 |
}
|
175 |
content: "\e917";
|
176 |
}
|
177 |
|
178 |
+
.yith-icon-sort:before {
|
179 |
+
content: "\f106";
|
180 |
+
}
|
181 |
+
|
182 |
.yith-icon-time-check:before {
|
183 |
content: "\e918";
|
184 |
}
|
195 |
content: "\e90c";
|
196 |
}
|
197 |
|
198 |
+
.yith-icon-user-off:before {
|
199 |
+
content: "\f108";
|
200 |
+
}
|
201 |
+
|
202 |
.yith-icon-warning-triangle:before {
|
203 |
content: "\e923";
|
204 |
}
|
Binary file
|
Binary file
|
Binary file
|
@@ -9,39 +9,46 @@
|
|
9 |
( function ( $ ) {
|
10 |
|
11 |
$( '.metaboxes-tab' ).each( function () {
|
12 |
-
$(
|
|
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
17 |
} else {
|
18 |
-
|
19 |
}
|
20 |
|
21 |
-
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
$( this ).closest( '.metaboxes-tab' ).find( '.tabs-panel' ).hide();
|
32 |
-
$( t ).show();
|
33 |
|
34 |
-
|
|
|
|
|
|
|
|
|
35 |
} );
|
36 |
} );
|
37 |
|
38 |
-
|
39 |
-
$( '#_active_page_options-container' )
|
40 |
-
|
41 |
-
|
42 |
-
|
|
|
43 |
|
44 |
-
|
45 |
if ( $( '#_active_page_options' ).is( ":checked" ) ) {
|
46 |
$( '#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab' ).css( {
|
47 |
'opacity' : 1,
|
@@ -53,7 +60,7 @@
|
|
53 |
'pointer-events': 'none'
|
54 |
} );
|
55 |
}
|
56 |
-
} ).click
|
57 |
|
58 |
|
59 |
//dependencies handler
|
@@ -62,17 +69,17 @@
|
|
62 |
$( '.metaboxes-tab [data-dep-target]:not(.yith-plugin-fw-metabox-deps-initialized)' ).each( function () {
|
63 |
var t = $( this );
|
64 |
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
|
70 |
|
71 |
dependencies_handler( field, dep, value.toString(), type );
|
72 |
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
|
77 |
t.addClass( 'yith-plugin-fw-metabox-deps-initialized' );
|
78 |
} );
|
9 |
( function ( $ ) {
|
10 |
|
11 |
$( '.metaboxes-tab' ).each( function () {
|
12 |
+
var theMetaBox = $( this ),
|
13 |
+
panels = theMetaBox.find( '.tabs-panel' )
|
14 |
|
15 |
+
panels.hide();
|
16 |
+
|
17 |
+
// TODO: check if someone is directly using it, otherwise it could be removed because: 1. it doesn't take into account the possibility to have more than one meta-box in the same page; 2. it's not set anywhere.
|
18 |
+
var activeTab = wpCookies.get( 'active_metabox_tab' );
|
19 |
+
if ( activeTab == null ) {
|
20 |
+
activeTab = theMetaBox.find( 'ul.metaboxes-tabs li:first-child a' ).attr( 'href' );
|
21 |
} else {
|
22 |
+
activeTab = '#' + activeTab;
|
23 |
}
|
24 |
|
25 |
+
theMetaBox.find( activeTab ).show();
|
26 |
|
27 |
+
theMetaBox.find( '.metaboxes-tabs a' ).on( 'click', function ( e ) {
|
28 |
+
e.preventDefault();
|
29 |
+
|
30 |
+
var wrapper = $( this ).parent(),
|
31 |
+
isActive = wrapper.hasClass( 'tabs' );
|
32 |
|
33 |
+
if ( !isActive ) {
|
34 |
+
var tabID = $( this ).attr( 'href' );
|
|
|
|
|
35 |
|
36 |
+
wrapper.addClass( 'tabs' ).siblings( 'li' ).removeClass( 'tabs' );
|
37 |
+
|
38 |
+
panels.hide();
|
39 |
+
$( tabID ).show();
|
40 |
+
}
|
41 |
} );
|
42 |
} );
|
43 |
|
44 |
+
// TODO: check if someone is directly using it, otherwise it could be removed, since it's not used by the fw.
|
45 |
+
var actPageOptionContainer = $( '#_active_page_options-container' ),
|
46 |
+
actPageOption = actPageOptionContainer.parent().html();
|
47 |
+
actPageOptionContainer.parent().remove();
|
48 |
+
$( actPageOption ).insertAfter( '#yit-post-setting .handlediv' );
|
49 |
+
$( actPageOption ).insertAfter( '#yit-page-setting .handlediv' );
|
50 |
|
51 |
+
actPageOptionContainer.on( 'click', function () {
|
52 |
if ( $( '#_active_page_options' ).is( ":checked" ) ) {
|
53 |
$( '#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab' ).css( {
|
54 |
'opacity' : 1,
|
60 |
'pointer-events': 'none'
|
61 |
} );
|
62 |
}
|
63 |
+
} ).trigger( 'click' );
|
64 |
|
65 |
|
66 |
//dependencies handler
|
69 |
$( '.metaboxes-tab [data-dep-target]:not(.yith-plugin-fw-metabox-deps-initialized)' ).each( function () {
|
70 |
var t = $( this );
|
71 |
|
72 |
+
var field = '#' + t.data( 'dep-target' ),
|
73 |
+
dep = '#' + t.data( 'dep-id' ),
|
74 |
+
value = t.data( 'dep-value' ),
|
75 |
+
type = t.data( 'dep-type' );
|
76 |
|
77 |
|
78 |
dependencies_handler( field, dep, value.toString(), type );
|
79 |
|
80 |
+
$( dep ).on( 'change', function () {
|
81 |
+
dependencies_handler( field, dep, value.toString(), type );
|
82 |
+
} ).change();
|
83 |
|
84 |
t.addClass( 'yith-plugin-fw-metabox-deps-initialized' );
|
85 |
} );
|
@@ -1 +1 @@
|
|
1 |
-
!function(e){e(".metaboxes-tab").each(function(){e(".tabs-panel"
|
1 |
+
!function(e){e(".metaboxes-tab").each(function(){var t=e(this),a=t.find(".tabs-panel");a.hide();var i=wpCookies.get("active_metabox_tab");i=null==i?t.find("ul.metaboxes-tabs li:first-child a").attr("href"):"#"+i,t.find(i).show(),t.find(".metaboxes-tabs a").on("click",function(t){t.preventDefault();var i=e(this).parent();if(!i.hasClass("tabs")){var s=e(this).attr("href");i.addClass("tabs").siblings("li").removeClass("tabs"),a.hide(),e(s).show()}})});var t=e("#_active_page_options-container"),a=t.parent().html();function i(t,a,i,s){var n=!0;if("string"==typeof a){":radio"==a.substr(0,6)&&(a+=":checked");var d=e(a).val();if("checkbox"==e(a).attr("type"))d=e(a).is(":checked")?"yes":"no";i=i.split(",");for(var o=0;o<i.length;o++){if(d==i[o]){n=!0;break}n=!1}}var r,c=e(t),h=e(t+"-container").parent(),b=s.split("-");for(r in b){var l=b[r];if(n)switch(l){case"disable":h.removeClass("yith-disabled"),c.attr("disabled",!1);break;case"hide":case"hideNow":h.show();break;case"hideme":c.show();break;case"fadeOut":h.show();break;case"fadeInOut":case"fadeIn":default:h.show(500)}else switch(l){case"disable":h.addClass("yith-disabled"),c.attr("disabled",!0);break;case"hide":case"hideNow":h.hide();break;case"hideme":c.hide();break;case"fadeInOut":case"fadeOut":h.hide(500);break;case"fadeIn":default:h.hide()}}}t.parent().remove(),e(a).insertAfter("#yit-post-setting .handlediv"),e(a).insertAfter("#yit-page-setting .handlediv"),t.on("click",function(){e("#_active_page_options").is(":checked")?e("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:1,"pointer-events":"auto"}):e("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:.5,"pointer-events":"none"})}).trigger("click"),e(document.body).on("yith-plugin-fw-metabox-init-deps",function(){e(document.body).trigger("yith-plugin-fw-init-radio"),e(".metaboxes-tab [data-dep-target]:not(.yith-plugin-fw-metabox-deps-initialized)").each(function(){var t=e(this),a="#"+t.data("dep-target"),s="#"+t.data("dep-id"),n=t.data("dep-value"),d=t.data("dep-type");i(a,s,n.toString(),d),e(s).on("change",function(){i(a,s,n.toString(),d)}).change(),t.addClass("yith-plugin-fw-metabox-deps-initialized")})}).trigger("yith-plugin-fw-metabox-init-deps")}(jQuery);
|
@@ -113,23 +113,16 @@ jQuery( function ( $ ) {
|
|
113 |
// init field deps
|
114 |
t.addClass( 'deps-initialized' );
|
115 |
|
116 |
-
var field
|
117 |
-
dep
|
118 |
-
value
|
119 |
-
type
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
}
|
127 |
-
|
128 |
-
$( dep ).on( event, function () {
|
129 |
-
dependencies_handler( field, dep, value.toString(), type );
|
130 |
-
} ).trigger( event );
|
131 |
-
} );
|
132 |
-
}
|
133 |
|
134 |
init_dependencies();
|
135 |
// re-init deps after an add toggle action
|
113 |
// init field deps
|
114 |
t.addClass( 'deps-initialized' );
|
115 |
|
116 |
+
var field = '#' + t.data( 'dep-target' ),
|
117 |
+
dep = '#' + t.data( 'dep-id' ),
|
118 |
+
value = t.data( 'dep-value' ),
|
119 |
+
type = t.data( 'dep-type' );
|
120 |
+
|
121 |
+
$( dep ).on( 'change', function () {
|
122 |
+
dependencies_handler( field, dep, value.toString(), type );
|
123 |
+
} ).trigger( 'change' );
|
124 |
+
} );
|
125 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
init_dependencies();
|
128 |
// re-init deps after an add toggle action
|
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(e){function a(){e("[data-dep-target]:not( .deps-initialized )").each(function(){var a=e(this);if(!a.closest(".metaboxes-tab").length){a.addClass("deps-initialized");var t="#"+a.data("dep-target"),i="#"+a.data("dep-id"),n=a.data("dep-value"),
|
1 |
+
jQuery(function(e){function a(){e("[data-dep-target]:not( .deps-initialized )").each(function(){var a=e(this);if(!a.closest(".metaboxes-tab").length){a.addClass("deps-initialized");var t="#"+a.data("dep-target"),i="#"+a.data("dep-id"),n=a.data("dep-value"),d=a.data("dep-type");e(i).on("change",function(){!function(a,t,i,n){var d=!0;if("string"==typeof t){":radio"==t.substr(0,6)&&(t+=":checked");var s=e(t).data("type"),r=e(t).val();"checkbox"===s?r=e(t).is(":checked")?"yes":"no":"radio"===s&&(r=e(t).find('input[type="radio"]').filter(":checked").val()),"select-images"===e(t+"-wrapper").data("type")&&(r=e(t+"-wrapper").find("select").first().val()),i=i.split(",");for(var c=0;c<i.length;c++){if(r==i[c]){d=!0;break}d=!1}}var o=e(a),l=e(a+"-container").closest("tr");l.length<1&&(l=o.closest(".yith-plugin-fw-panel-wc-row, .yith-toggle-content-row"));var h,p=n.split("-");for(h in p){var u=p[h];if(d)switch(u){case"disable":l.removeClass("yith-disabled"),o.attr("disabled",!1);break;case"hide":case"hideNow":l.show();break;case"hideme":o.show();break;case"fadeOut":l.show();break;case"fadeInOut":case"fadeIn":default:l.show(500)}else switch(u){case"disable":l.addClass("yith-disabled"),o.attr("disabled",!0);break;case"hide":case"hideNow":l.hide();break;case"hideme":o.hide();break;case"fadeInOut":case"fadeOut":l.hide(500);break;case"fadeIn":default:l.hide()}}}(t,i,n.toString(),d)}).trigger("change")}})}a(),e(document).on("yith-add-box-button-toggle",a),e(".rm_connectedlist").each(function(){var a=e(this).find("ul"),t=e(this).find(":hidden");a.sortable({connectWith:a,update:function(i,n){var d={};a.each(function(){var a={};e(this).children().each(function(){a[e(this).data("option")]=e(this).text()}),d[e(this).data("list")]=a}),t.val(JSON.stringify(d).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()}),e(function(){e(".google-analytic-generate").click(function(){var a=e("#"+e(this).data("textarea")).data("codemirrorInstance"),t="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n";t+="(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\n",t+="m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n",t+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n",t+="ga('create', '"+e("#"+e(this).data("input")).val()+"', '"+e(this).data("basename")+"');\n",t+="ga('send', 'pageview');\n",a.replaceRange(t,a.getCursor("start"),a.getCursor("end"))})}),e(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper");var t=e(".wrap.yith-plugin-ui").first(),i=e("div.updated, div.error, div.notice");if(i.addClass("inline"),t.length&&t.prepend(i),e(document).find(".yith-nav-sub-tab.nav-tab-active").length){var n=e(document).find(".yith-plugin-fw-wp-page-wrapper");if(n.length||(n=e(document).find("#wpbody-content > .yith-plugin-ui")),n)(t=n.find(".yit-admin-panel-content-wrap")).length?t.addClass("has-subnav"):n.find(".wrap").wrap('<div class="wrap subnav-wrap"></div>')}});
|
@@ -395,7 +395,7 @@
|
|
395 |
select = wrapper.find( 'select' ).first();
|
396 |
|
397 |
if ( select.length ) {
|
398 |
-
select.val( key ).trigger( 'yith_select_images_value_changed' );
|
399 |
items.removeClass( 'yith-plugin-fw-select-images__item--selected' );
|
400 |
item.addClass( 'yith-plugin-fw-select-images__item--selected' );
|
401 |
}
|
@@ -434,20 +434,23 @@
|
|
434 |
/* on-off */
|
435 |
$( document ).on( 'click', '.yith-plugin-fw-onoff-container span', function () {
|
436 |
var input = $( this ).prev( 'input' ),
|
437 |
-
checked = input.prop( 'checked' ),
|
438 |
disabled = input.prop( 'disabled' );
|
439 |
|
440 |
if ( disabled ) {
|
441 |
return;
|
442 |
}
|
443 |
|
444 |
-
|
445 |
-
|
|
|
|
|
|
|
|
|
|
|
446 |
} else {
|
447 |
-
|
448 |
}
|
449 |
-
|
450 |
-
input.change();
|
451 |
} );
|
452 |
|
453 |
|
395 |
select = wrapper.find( 'select' ).first();
|
396 |
|
397 |
if ( select.length ) {
|
398 |
+
select.val( key ).trigger( 'yith_select_images_value_changed' ).trigger( 'change' );
|
399 |
items.removeClass( 'yith-plugin-fw-select-images__item--selected' );
|
400 |
item.addClass( 'yith-plugin-fw-select-images__item--selected' );
|
401 |
}
|
434 |
/* on-off */
|
435 |
$( document ).on( 'click', '.yith-plugin-fw-onoff-container span', function () {
|
436 |
var input = $( this ).prev( 'input' ),
|
|
|
437 |
disabled = input.prop( 'disabled' );
|
438 |
|
439 |
if ( disabled ) {
|
440 |
return;
|
441 |
}
|
442 |
|
443 |
+
input.trigger( 'click' );
|
444 |
+
} );
|
445 |
+
|
446 |
+
// Useful for triggering deps when clicking on field label.
|
447 |
+
$( document ).on( 'click', '.yith-plugin-fw-onoff-container input', function ( e ) {
|
448 |
+
if ( $( this ).is( ':checked' ) ) {
|
449 |
+
$( this ).attr( 'value', 'yes' ).addClass( 'onoffchecked' );
|
450 |
} else {
|
451 |
+
$( this ).attr( 'value', 'no' ).removeClass( 'onoffchecked' );
|
452 |
}
|
453 |
+
$( this ).trigger( 'change' );
|
|
|
454 |
} );
|
455 |
|
456 |
|
@@ -1 +1 @@
|
|
1 |
-
!function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),n={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},a=e(".add_media"),l={rootSelector:".yith-plugin-fw-image-gallery",buttonSelector:".yith-plugin-fw-image-gallery .image-gallery-button",sliderWrapper:e(".yith-plugin-fw-image-gallery ul.slides-wrapper")},o=e(".yith-plugin-fw-sidebar-layout"),s=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),r=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this),i=t.data(),n=t.next(".yith-icon-calendar");i.showAnim=!1,i.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},i.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},t.datepicker(i),n&&n.on("click",function(){t.datepicker("show")})}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=e(this).closest(".yith-single-colorpicker"),a=i.find(".wp-picker-input-wrap"),l=n.find(".wp-picker-input-wrap");if(a.length&&i.find("a.wp-color-result").attr("title",t),n.length&&n.find("a.wp-color-result").attr("title",t),!a.find(".wp-picker-default-custom").length){var o=e("<span/>").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=e("<span/>").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(n.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),a=e(this).parent().find(n.imgPreviewHandler).first();a.length<1&&(a=e(this).parent().parent().find(n.imgPreviewHandler).first()),i.test(t)?a.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):a.html("")}).trigger("change"),e(document).on("click",n.uploadButtonHandler,function(t){t.preventDefault();var i,a=e(this).attr("id").replace(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(i)i.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+a).val(t.url),e("#"+a+"-yith-attachment-id")&&e("#"+a+"-yith-attachment-id").val(t.id),n.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",n.resetButtonHandler,function(t){var i=e(this),a=i.attr("id").replace(/(\[|\])/g,"\\$1"),l=i.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),o=e("#"+a).data("default");e("#"+l).val(o),n.imgUrl.trigger("change")}));a.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",l.buttonSelector,function(t){var i=e(this),n=i.closest(l.rootSelector),a=n.find(".image_gallery_ids"),o=a.val(),s=n.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){(e=e.toJSON()).id&&(o=o?o+","+e.id:e.id,s.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),a.val(o),a.trigger("change")}),r.open()}),l.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,n){var a="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");a=a+t+","}),t.closest(l.rootSelector).find(".image_gallery_ids").val(a)}})}),l.sliderWrapper.on("click","a.delete",function(t){t.preventDefault();var i=e(this).closest(l.rootSelector),n=i.find("ul.slides-wrapper"),a=i.find(".image_gallery_ids"),o="";e(this).closest("li.image").remove(),n.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");o=o+t+","}),a.val(o)})),o.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":i.show(),n.hide();break;case"right":n.show(),i.hide();break;case"double":i.show(),n.show();break;default:i.hide(),n.hide()}})}),s.each(function(){var t=e(this).data("val"),i=e(this).data("min"),n=e(this).data("max"),a=e(this).data("step"),l=e(this).data("labels");e(this).slider({value:t,min:i,max:n,range:"min",step:a,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+l)}})}),e(function(){e(document).on("yith-plugin-fw-codemirror-init",function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.codeEditor&&e(".codemirror:not(.codemirror--initialized)").each(function(){var t=e(this).data("settings"),i=wp.codeEditor.initialize(e(this),t);e(this).addClass("codemirror--initialized"),e(this).data("codemirrorInstance",i)})}).trigger("yith-plugin-fw-codemirror-init")}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),r.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),n=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(a){var l=e(a.target).closest("li"),o=l.data("font"),s=l.data("icon"),r=l.data("key"),d=l.data("name");i.attr("data-font",o),i.attr("data-icon",s),i.attr("data-key",r),i.attr("data-name",d),n.val(o+":"+d),t.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),n=t.closest(".yith-plugin-fw-select-images__wrapper"),a=n.find(".yith-plugin-fw-select-images__item"),l=n.find("select").first();l.length&&(l.val(i).trigger("yith_select_images_value_changed"),a.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a<n.length;a++)l[a]=e(n[a]).data("item_key");l.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,l)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input"),i=t.prop("checked");t.prop("disabled")||(i?t.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):t.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),t.change())}),e.fn.saveToggleElement=function(t,i){var n=e(this),a="yith_plugin_fw_save_toggle_element",l=n.serializeToggleElement(),o=n.find(".yith-toggle_wrapper"),s=o.attr("id"),r=e.urlParam("tab");l.append("security",o.data("nonce")),void 0!==i&&i.length>0&&l.append("yith_toggle_elements_order_keys",i),n.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+s+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+r+"&toggle_id="+s,e.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,n])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,n=e(t).find(":input").serializeArray();return e.each(n,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),n=t.find("span.title").data("title_format"),a=t.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==n)var o=n.match(l);if(void 0!==a)var s=a.match(l);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(n=n.replace("%%"+$field_id+"%%",$field_val)),null!=s&&void 0!==s&&-1!==s.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==n&&t.find("span.title").html(n),""!==a&&t.find(".subtitle").html(a),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),n=i.closest(".yith-toggle-row"),a=n.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;n.is(".yith-toggle-row-opened")?a.slideUp(400):a.slideDown(400),n.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),n=i.data("box_id"),a=i.data("closed_label"),l=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id"),s=wp.template("yith-toggle-element-add-box-content-"+o);""!==n&&(e("#"+n).html(s({index:"box_id"})).slideToggle(),""!==a&&(i.html()===a?i.html(l).removeClass("closed"):i.html(a).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),n=e(this).closest(".yith-toggle_wrapper").attr("id"),a=i.find(".spinner"),l=e(this).parents(".toggle-element"),o=i.find(":input"),s=0,r=e('<input type="hidden">');l.find(".yith-toggle-row").each(function(){var t=parseInt(e(this).data("item_key"));s<=t&&(s=t+1)}),r.val(s),e(document).trigger("yith-toggle-change-counter",[r,i]),s=r.val();var d=wp.template("yith-toggle-element-item-"+n),c=e(d({index:s}));a.addClass("show"),e.each(o,function(t,i){if(void 0!==e(i).attr("id")){var n=e(i).attr("id"),a=e(i).val();n="radio"===e(i).attr("type")?(n=(n=e(i).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,e(i).is(":checked")&&e(c).find("#"+n).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+n).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+n).val(a)}}),e(c).formatToggleTitle();var u=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,u]);setTimeout(function(){if("yes"===u.val()){e(l).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){e(l).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),n=e(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,n,l]),"yes"===l.val()&&(a.addClass("show"),i.saveToggleElement(a))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var t=e(this).closest(".yith-plugin-fw-radio"),i=e(this).val();t.val(i).data("value",i).trigger("change")}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).data("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")});var t={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var i=t;e(document).on("click",i.selectors.units.single,i.unitChange),e(document).on("click",i.selectors.linked.button,i.linkedChange),e(document).on("change keyup",i.selectors.dimensions.number,i.numberChange)},unitChange:function(i){var n=e(this).closest(t.selectors.units.single),a=n.closest(t.selectors.units.wrapper),l=a.find(t.selectors.units.single),o=a.find(t.selectors.units.value).first(),s=n.data("value");l.removeClass(t.selectors.units.selectedClass),n.addClass(t.selectors.units.selectedClass),o.val(s)},linkedChange:function(){var i=e(this).closest(t.selectors.linked.button),n=i.closest(t.selectors.wrapper),a=i.find(t.selectors.linked.value);"yes"===a.val()?(n.removeClass(t.selectors.linked.wrapperActiveClass),a.val("no")):(n.addClass(t.selectors.linked.wrapperActiveClass),a.val("yes"),n.find(t.selectors.dimensions.number).first().trigger("change"))},numberChange:function(i){var n=e(this).closest(t.selectors.dimensions.number),a=n.closest(t.selectors.wrapper);a.hasClass(t.selectors.linked.wrapperActiveClass)&&a.find(t.selectors.dimensions.number).val(n.val())}};t.init();e(document).on("click",".yith-plugin-fw-copy-to-clipboard__copy",function(){var t,i=e(this).closest(".yith-plugin-fw-copy-to-clipboard"),n=i.find(".yith-plugin-fw-copy-to-clipboard__field"),a=i.find(".yith-plugin-fw-copy-to-clipboard__tip"),l=i.data("tip-timeout");l&&clearTimeout(l),n.select(),document.execCommand("copy"),(t="getSelection"in window&&window.getSelection())?"empty"in t?t.empty():"removeAllRanges"in t&&t.removeAllRanges():"selection"in document&&document.selection.empty(),a.fadeIn(400),l=setTimeout(function(){a.fadeOut(400)},1500),i.data("tip-timeout",l)})}(jQuery);
|
1 |
+
!function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),n={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},a=e(".add_media"),l={rootSelector:".yith-plugin-fw-image-gallery",buttonSelector:".yith-plugin-fw-image-gallery .image-gallery-button",sliderWrapper:e(".yith-plugin-fw-image-gallery ul.slides-wrapper")},o=e(".yith-plugin-fw-sidebar-layout"),s=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),r=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this),i=t.data(),n=t.next(".yith-icon-calendar");i.showAnim=!1,i.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},i.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},t.datepicker(i),n&&n.on("click",function(){t.datepicker("show")})}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=e(this).closest(".yith-single-colorpicker"),a=i.find(".wp-picker-input-wrap"),l=n.find(".wp-picker-input-wrap");if(a.length&&i.find("a.wp-color-result").attr("title",t),n.length&&n.find("a.wp-color-result").attr("title",t),!a.find(".wp-picker-default-custom").length){var o=e("<span/>").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=e("<span/>").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(n.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),a=e(this).parent().find(n.imgPreviewHandler).first();a.length<1&&(a=e(this).parent().parent().find(n.imgPreviewHandler).first()),i.test(t)?a.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):a.html("")}).trigger("change"),e(document).on("click",n.uploadButtonHandler,function(t){t.preventDefault();var i,a=e(this).attr("id").replace(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(i)i.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+a).val(t.url),e("#"+a+"-yith-attachment-id")&&e("#"+a+"-yith-attachment-id").val(t.id),n.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",n.resetButtonHandler,function(t){var i=e(this),a=i.attr("id").replace(/(\[|\])/g,"\\$1"),l=i.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),o=e("#"+a).data("default");e("#"+l).val(o),n.imgUrl.trigger("change")}));a.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",l.buttonSelector,function(t){var i=e(this),n=i.closest(l.rootSelector),a=n.find(".image_gallery_ids"),o=a.val(),s=n.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){(e=e.toJSON()).id&&(o=o?o+","+e.id:e.id,s.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),a.val(o),a.trigger("change")}),r.open()}),l.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,n){var a="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");a=a+t+","}),t.closest(l.rootSelector).find(".image_gallery_ids").val(a)}})}),l.sliderWrapper.on("click","a.delete",function(t){t.preventDefault();var i=e(this).closest(l.rootSelector),n=i.find("ul.slides-wrapper"),a=i.find(".image_gallery_ids"),o="";e(this).closest("li.image").remove(),n.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");o=o+t+","}),a.val(o)})),o.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":i.show(),n.hide();break;case"right":n.show(),i.hide();break;case"double":i.show(),n.show();break;default:i.hide(),n.hide()}})}),s.each(function(){var t=e(this).data("val"),i=e(this).data("min"),n=e(this).data("max"),a=e(this).data("step"),l=e(this).data("labels");e(this).slider({value:t,min:i,max:n,range:"min",step:a,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+l)}})}),e(function(){e(document).on("yith-plugin-fw-codemirror-init",function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.codeEditor&&e(".codemirror:not(.codemirror--initialized)").each(function(){var t=e(this).data("settings"),i=wp.codeEditor.initialize(e(this),t);e(this).addClass("codemirror--initialized"),e(this).data("codemirrorInstance",i)})}).trigger("yith-plugin-fw-codemirror-init")}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),r.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),n=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(a){var l=e(a.target).closest("li"),o=l.data("font"),s=l.data("icon"),r=l.data("key"),d=l.data("name");i.attr("data-font",o),i.attr("data-icon",s),i.attr("data-key",r),i.attr("data-name",d),n.val(o+":"+d),t.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),n=t.closest(".yith-plugin-fw-select-images__wrapper"),a=n.find(".yith-plugin-fw-select-images__item"),l=n.find("select").first();l.length&&(l.val(i).trigger("yith_select_images_value_changed").trigger("change"),a.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a<n.length;a++)l[a]=e(n[a]).data("item_key");l.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,l)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input");t.prop("disabled")||t.trigger("click")}),e(document).on("click",".yith-plugin-fw-onoff-container input",function(t){e(this).is(":checked")?e(this).attr("value","yes").addClass("onoffchecked"):e(this).attr("value","no").removeClass("onoffchecked"),e(this).trigger("change")}),e.fn.saveToggleElement=function(t,i){var n=e(this),a="yith_plugin_fw_save_toggle_element",l=n.serializeToggleElement(),o=n.find(".yith-toggle_wrapper"),s=o.attr("id"),r=e.urlParam("tab");l.append("security",o.data("nonce")),void 0!==i&&i.length>0&&l.append("yith_toggle_elements_order_keys",i),n.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+s+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+r+"&toggle_id="+s,e.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,n])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,n=e(t).find(":input").serializeArray();return e.each(n,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),n=t.find("span.title").data("title_format"),a=t.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==n)var o=n.match(l);if(void 0!==a)var s=a.match(l);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(n=n.replace("%%"+$field_id+"%%",$field_val)),null!=s&&void 0!==s&&-1!==s.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==n&&t.find("span.title").html(n),""!==a&&t.find(".subtitle").html(a),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),n=i.closest(".yith-toggle-row"),a=n.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;n.is(".yith-toggle-row-opened")?a.slideUp(400):a.slideDown(400),n.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),n=i.data("box_id"),a=i.data("closed_label"),l=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id"),s=wp.template("yith-toggle-element-add-box-content-"+o);""!==n&&(e("#"+n).html(s({index:"box_id"})).slideToggle(),""!==a&&(i.html()===a?i.html(l).removeClass("closed"):i.html(a).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),n=e(this).closest(".yith-toggle_wrapper").attr("id"),a=i.find(".spinner"),l=e(this).parents(".toggle-element"),o=i.find(":input"),s=0,r=e('<input type="hidden">');l.find(".yith-toggle-row").each(function(){var t=parseInt(e(this).data("item_key"));s<=t&&(s=t+1)}),r.val(s),e(document).trigger("yith-toggle-change-counter",[r,i]),s=r.val();var d=wp.template("yith-toggle-element-item-"+n),c=e(d({index:s}));a.addClass("show"),e.each(o,function(t,i){if(void 0!==e(i).attr("id")){var n=e(i).attr("id"),a=e(i).val();n="radio"===e(i).attr("type")?(n=(n=e(i).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,e(i).is(":checked")&&e(c).find("#"+n).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+n).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+n).val(a)}}),e(c).formatToggleTitle();var u=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,u]);setTimeout(function(){if("yes"===u.val()){e(l).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){e(l).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),n=e(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,n,l]),"yes"===l.val()&&(a.addClass("show"),i.saveToggleElement(a))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var t=e(this).closest(".yith-plugin-fw-radio"),i=e(this).val();t.val(i).data("value",i).trigger("change")}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).data("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")});var t={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var i=t;e(document).on("click",i.selectors.units.single,i.unitChange),e(document).on("click",i.selectors.linked.button,i.linkedChange),e(document).on("change keyup",i.selectors.dimensions.number,i.numberChange)},unitChange:function(i){var n=e(this).closest(t.selectors.units.single),a=n.closest(t.selectors.units.wrapper),l=a.find(t.selectors.units.single),o=a.find(t.selectors.units.value).first(),s=n.data("value");l.removeClass(t.selectors.units.selectedClass),n.addClass(t.selectors.units.selectedClass),o.val(s)},linkedChange:function(){var i=e(this).closest(t.selectors.linked.button),n=i.closest(t.selectors.wrapper),a=i.find(t.selectors.linked.value);"yes"===a.val()?(n.removeClass(t.selectors.linked.wrapperActiveClass),a.val("no")):(n.addClass(t.selectors.linked.wrapperActiveClass),a.val("yes"),n.find(t.selectors.dimensions.number).first().trigger("change"))},numberChange:function(i){var n=e(this).closest(t.selectors.dimensions.number),a=n.closest(t.selectors.wrapper);a.hasClass(t.selectors.linked.wrapperActiveClass)&&a.find(t.selectors.dimensions.number).val(n.val())}};t.init();e(document).on("click",".yith-plugin-fw-copy-to-clipboard__copy",function(){var t,i=e(this).closest(".yith-plugin-fw-copy-to-clipboard"),n=i.find(".yith-plugin-fw-copy-to-clipboard__field"),a=i.find(".yith-plugin-fw-copy-to-clipboard__tip"),l=i.data("tip-timeout");l&&clearTimeout(l),n.select(),document.execCommand("copy"),(t="getSelection"in window&&window.getSelection())?"empty"in t?t.empty():"removeAllRanges"in t&&t.removeAllRanges():"selection"in document&&document.selection.empty(),a.fadeIn(400),l=setTimeout(function(){a.fadeOut(400)},1500),i.data("tip-timeout",l)})}(jQuery);
|
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => 'ef3cdcc6d1490e83026aab4f8e255fab');
|
@@ -1 +1 @@
|
|
1 |
-
(window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[]).push([[1],{27:function(e,t,n){},28:function(e,t,n){}}]),function(e){function t(t){for(var r,a,l=t[0],i=t[1],u=t[2],f=0,p=[];f<l.length;f++)a=l[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(s&&s(t);p.length;)p.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,l=1;l<n.length;l++){var i=n[l];0!==o[i]&&(r=!1)}r&&(c.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},o={0:0},c=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var l=window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[],i=l.push.bind(l);l.push=t,l=l.slice();for(var u=0;u<l.length;u++)t(l[u]);var s=i;c.push([29,1]),n()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.React},function(e,t,n){var r=n(17),o=n(18),c=n(19),a=n(21);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||a()}},function(e,t){e.exports=window.wp.hooks},function(e,t,n){var r,o,c,a,l;r=n(22),o=n(9).utf8,c=n(23),a=n(9).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):c(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),i=8*e.length,u=1732584193,s=-271733879,f=-1732584194,p=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[i>>>5]|=128<<i%32,n[14+(i+64>>>9<<4)]=i;var b=l._ff,d=l._gg,y=l._hh,g=l._ii;for(h=0;h<n.length;h+=16){var m=u,v=s,_=f,j=p;u=b(u,s,f,p,n[h+0],7,-680876936),p=b(p,u,s,f,n[h+1],12,-389564586),f=b(f,p,u,s,n[h+2],17,606105819),s=b(s,f,p,u,n[h+3],22,-1044525330),u=b(u,s,f,p,n[h+4],7,-176418897),p=b(p,u,s,f,n[h+5],12,1200080426),f=b(f,p,u,s,n[h+6],17,-1473231341),s=b(s,f,p,u,n[h+7],22,-45705983),u=b(u,s,f,p,n[h+8],7,1770035416),p=b(p,u,s,f,n[h+9],12,-1958414417),f=b(f,p,u,s,n[h+10],17,-42063),s=b(s,f,p,u,n[h+11],22,-1990404162),u=b(u,s,f,p,n[h+12],7,1804603682),p=b(p,u,s,f,n[h+13],12,-40341101),f=b(f,p,u,s,n[h+14],17,-1502002290),u=d(u,s=b(s,f,p,u,n[h+15],22,1236535329),f,p,n[h+1],5,-165796510),p=d(p,u,s,f,n[h+6],9,-1069501632),f=d(f,p,u,s,n[h+11],14,643717713),s=d(s,f,p,u,n[h+0],20,-373897302),u=d(u,s,f,p,n[h+5],5,-701558691),p=d(p,u,s,f,n[h+10],9,38016083),f=d(f,p,u,s,n[h+15],14,-660478335),s=d(s,f,p,u,n[h+4],20,-405537848),u=d(u,s,f,p,n[h+9],5,568446438),p=d(p,u,s,f,n[h+14],9,-1019803690),f=d(f,p,u,s,n[h+3],14,-187363961),s=d(s,f,p,u,n[h+8],20,1163531501),u=d(u,s,f,p,n[h+13],5,-1444681467),p=d(p,u,s,f,n[h+2],9,-51403784),f=d(f,p,u,s,n[h+7],14,1735328473),u=y(u,s=d(s,f,p,u,n[h+12],20,-1926607734),f,p,n[h+5],4,-378558),p=y(p,u,s,f,n[h+8],11,-2022574463),f=y(f,p,u,s,n[h+11],16,1839030562),s=y(s,f,p,u,n[h+14],23,-35309556),u=y(u,s,f,p,n[h+1],4,-1530992060),p=y(p,u,s,f,n[h+4],11,1272893353),f=y(f,p,u,s,n[h+7],16,-155497632),s=y(s,f,p,u,n[h+10],23,-1094730640),u=y(u,s,f,p,n[h+13],4,681279174),p=y(p,u,s,f,n[h+0],11,-358537222),f=y(f,p,u,s,n[h+3],16,-722521979),s=y(s,f,p,u,n[h+6],23,76029189),u=y(u,s,f,p,n[h+9],4,-640364487),p=y(p,u,s,f,n[h+12],11,-421815835),f=y(f,p,u,s,n[h+15],16,530742520),u=g(u,s=y(s,f,p,u,n[h+2],23,-995338651),f,p,n[h+0],6,-198630844),p=g(p,u,s,f,n[h+7],10,1126891415),f=g(f,p,u,s,n[h+14],15,-1416354905),s=g(s,f,p,u,n[h+5],21,-57434055),u=g(u,s,f,p,n[h+12],6,1700485571),p=g(p,u,s,f,n[h+3],10,-1894986606),f=g(f,p,u,s,n[h+10],15,-1051523),s=g(s,f,p,u,n[h+1],21,-2054922799),u=g(u,s,f,p,n[h+8],6,1873313359),p=g(p,u,s,f,n[h+15],10,-30611744),f=g(f,p,u,s,n[h+6],15,-1560198380),s=g(s,f,p,u,n[h+13],21,1309151649),u=g(u,s,f,p,n[h+4],6,-145523070),p=g(p,u,s,f,n[h+11],10,-1120210379),f=g(f,p,u,s,n[h+2],15,718787259),s=g(s,f,p,u,n[h+9],21,-343485551),u=u+m>>>0,s=s+v>>>0,f=f+_>>>0,p=p+j>>>0}return r.endian([u,s,f,p])})._ff=function(e,t,n,r,o,c,a){var l=e+(t&n|~t&r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._gg=function(e,t,n,r,o,c,a){var l=e+(t&r|n&~r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._hh=function(e,t,n,r,o,c,a){var l=e+(t^n^r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._ii=function(e,t,n,r,o,c,a){var l=e+(n^(t|~r))+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(l(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.compose},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(24);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(25),o=n(26);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){e.exports=window.lodash},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw c}}return n}}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],c=0;c<4;c++)8*r+6*c<=8*e.length?t.push(n.charAt(o>>>6*(3-c)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(e.charAt(r))>>>6-2*o);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),c=n(0),a=n(2),l=n(5),i=n.n(l),u=n(10),s=n(11);function f(e){if(e.status>=200&&e.status<300)return e;throw e}function p(e){return e.json?e.json():e.text()}var h=Object(c.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},Object(c.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"})),b=function(e,t){var n=e.controlType,r=!0;if(e.deps&&e.deps.id&&"value"in e.deps){var o=e.deps.value;"toggle"!==n&&"checkbox"!==n||(o=!0===o||"yes"===o||1===o),r=void 0!==t[e.deps.id]&&o===t[e.deps.id]}return r},d=function(e,t){var n="",r=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?r=jQuery.fn[e.callback]:e.callback in window&&(r=window[e.callback])),"function"==typeof r)n=r(t,e);else{var c=e.attributes?Object.entries(e.attributes).map((function(e){var n=o()(e,2),r=n[0],c=n[1],a=b(c,t),l=t[r];if(a&&void 0!==l)return r+"="+(c.remove_quotes?l:'"'.concat(l,'"'))})):[],a=c.length?" "+c.join(" "):"";n="[".concat(e.shortcode_name).concat(a,"]")}return n},y=n(1),g=n(6),m=n(12),v=n.n(m),_=n(13),j=n.n(_),w=n(14),k=n.n(w),x=n(15),O=n.n(x),C=n(8),E=n.n(C),S=n(16),T=n(4);n(27);var A=function(e){k()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=E()(t);if(n){var o=E()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return O()(this,e)});function o(){var e;return v()(this,o),(e=r.apply(this,arguments)).state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1},e.ajaxTimeout=!1,e}return j()(o,[{key:"componentDidMount",value:function(){this.updateShortcode()}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.state,o=r.shortcode,c=r.shortcodeHash,a=r.ajaxSuccess,l=r.ajaxResponse,i=r.ajaxUpdated;Object(S.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&i&&(a&&Object(T.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,c,l),Object(T.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,c,l),this.setState({ajaxUpdated:!1}))}},{key:"updateShortcode",value:function(){var e=this,t=this.props,n=t.attributes,r=t.blockArgs;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});var o=d(r,n),c=i()(o);r.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),Object(T.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",o,c),this.ajaxTimeout=setTimeout((function(){(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return t=Object(s.addQueryArgs)(t,e),fetch(t).then(f).then(p)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:o}).then((function(t){e.setState({loading:!1,html:t.html,shortcode:o,shortcodeHash:c,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:t})})).catch((function(e){console.log({error:e})}))}),300)):this.setState({loading:!1,html:o,shortcode:o,shortcodeHash:c})}},{key:"render",value:function(){var e=this.state,t=e.html,n=e.loading,r=e.shortcode,o=e.shortcodeHash,a=this.props.blockArgs,l=a.do_shortcode,i=a.title,u=a.empty_message,s="block-editor-yith-plugin-fw-shortcode-block",f=[s],p=l?"html":"shortcode",b=t,d="";l&&!t&&(p="empty-html",b=r,u&&(d=u));var g=["shortcode","empty-html"].includes(p),m="empty-html"!==p,v=!!d;return f.push("".concat(s,"--").concat(p)),f.push("".concat(s,v?"--has-message":"--no-message")),f.push("yith_block_".concat(o)),Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:f.join(" ")},n?Object(c.createElement)("div",{className:"".concat(s,"__spinner-wrap")},Object(c.createElement)(y.Spinner,null)):"",g&&Object(c.createElement)("div",{className:"".concat(s,"__title components-placeholder__label")},h,i),v&&Object(c.createElement)(c.RawHTML,{className:"".concat(s,"__message")},d),m&&Object(c.createElement)(c.RawHTML,{className:"".concat(s,"__content")},b)))}}]),o}(a.Component),B=n(7);function N(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,a=e.help,l=e.disableAlpha,i=Object(B.useInstanceId)(N),u="inspector-yith-color-picker-control-".concat(i);return Object(c.createElement)(y.BaseControl,{id:u,label:n,className:"block-editor-yith-color-control ".concat(t),help:a},Object(c.createElement)(y.ColorPicker,{color:o,disableAlpha:l,onChangeComplete:r}))}function R(e){var t=e.label,n=e.colorValue;return Object(c.createElement)(c.Fragment,null,t,!!n&&Object(c.createElement)(y.ColorIndicator,{colorValue:n}))}function P(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,a=e.help,l=e.palette,i=e.clearable;l=l||Object(g.__experimentalUseEditorFeature)("color.palette");var u=Object(B.useInstanceId)(P),s="inspector-yith-color-palette-control-".concat(u);return Object(c.createElement)(y.BaseControl,{id:s,className:"block-editor-yith-color-palette-control ".concat(t),help:a},Object(c.createElement)("fieldset",null,Object(c.createElement)("legend",null,Object(c.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},Object(c.createElement)(y.BaseControl.VisualLabel,null,Object(c.createElement)(R,{colorValue:o,label:n})))),Object(c.createElement)(y.ColorPalette,{value:o,onChange:r,colors:l,clearable:i})))}n(28);for(var M=function(e,t){return function(n){var r=n.attributes,a=(n.className,n.setAttributes),l=function(e,t,n){["colorpicker","color"].includes(n)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());var r={};r[t]=e,a(r)};return Object(c.createElement)(c.Fragment,null,!!t.attributes&&Object(c.createElement)(g.InspectorControls,null,Object(c.createElement)(y.PanelBody,null,Object.entries(t.attributes).map((function(t){var n=o()(t,2),a=function(t,n){var o=n.controlType,a=r[t],i=function(e,t){var n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n}(n,a),u="".concat(e,"__").concat(t,"-field-wrapper"),s=b(n,r);n.wrapper_class&&(u+=" "+n.wrapper_class);var f=!1;if(s)switch(o){case"select":f=Object(c.createElement)(y.SelectControl,{className:u,key:t,value:a,label:n.label,options:n.options,selected:a,help:i,multiple:!!n.multiple,onChange:function(e){l(e,t,o)}});break;case"text":f=Object(c.createElement)(y.TextControl,{className:u,key:t,value:a,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"textarea":f=Object(c.createElement)(y.TextareaControl,{className:u,key:t,value:a,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"toggle":f=Object(c.createElement)(y.ToggleControl,{className:u,key:t,value:a,label:n.label,help:i,checked:a,onChange:function(e){l(e,t,o)}});break;case"checkbox":f=Object(c.createElement)(y.CheckboxControl,{className:u,key:t,value:a,label:n.label,help:i,checked:a,onChange:function(e){l(e,t,o)}});break;case"number":case"range":f=Object(c.createElement)(y.RangeControl,{className:u,key:t,value:a,label:n.label,help:i,min:n.min,max:n.max,onChange:function(e){l(e,t,o)}});break;case"color":case"colorpicker":f=Object(c.createElement)(N,{className:u,key:t,label:n.label,help:i,value:a,disableAlpha:n.disableAlpha,onChange:function(e){l(e,t,o)}});break;case"color-palette":f=Object(c.createElement)(P,{className:u,key:t,label:n.label,help:i,value:a,clearable:n.clearable||!1,onChange:function(e){l(e,t,o)}});break;case"radio":f=Object(c.createElement)(y.RadioControl,{key:t,value:a,label:n.label,options:n.options,selected:a,checked:a,help:i,onChange:function(e){l(e,t,o)}});break;default:f=!1}return f}(n[0],n[1]);if(a)return a})))),Object(c.createElement)(A,{attributes:r,blockArgs:t}))}},I=function(){var e=U[H];Object(T.addAction)(e.key,"yith-plugin-fw/jquery-events",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"jQuery"in window&&(e.delay?setTimeout((function(){jQuery(document).trigger(e.key,Object.values(n))}),e.delay):jQuery(document).trigger(e.key,Object.values(n)))}))},H=0,U=[{key:"yith_plugin_fw_gutenberg_before_do_shortcode",delay:0},{key:"yith_plugin_fw_gutenberg_success_do_shortcode",delay:200},{key:"yith_plugin_fw_gutenberg_after_do_shortcode",delay:200}];H<U.length;H++)I();for(var Q=function(){var e=o()(F[L],2),t=e[0],n=e[1];Object(u.registerBlockType)("yith/"+t,{title:n.title,description:n.description,category:n.category,attributes:n.attributes,icon:void 0!==n.icon?n.icon:h,keywords:n.keywords,edit:M(t,n),save:function(e){var t=e.attributes;return d(n,t)},deprecated:[{attributes:n.attributes,save:function(e){var t=e.attributes,r=d(n,t),o='<span class="yith_block_'+i()(r)+'">'+r+"</span>";return Object(c.createElement)(c.RawHTML,null,o)}}]})},L=0,F=Object.entries(yithGutenbergBlocks);L<F.length;L++)Q()}]);
|
1 |
+
(window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[]).push([[1],{27:function(e,t,n){},28:function(e,t,n){}}]),function(e){function t(t){for(var r,c,i=t[0],l=t[1],s=t[2],f=0,p=[];f<i.length;f++)c=i[f],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&p.push(o[c][0]),o[c]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(u&&u(t);p.length;)p.shift()();return a.push.apply(a,s||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,i=1;i<n.length;i++){var l=n[i];0!==o[l]&&(r=!1)}r&&(a.splice(t--,1),e=c(c.s=n[0]))}return e}var r={},o={0:0},a=[];function c(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.m=e,c.c=r,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(n,r,function(t){return e[t]}.bind(null,r));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="";var i=window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[],l=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var u=l;a.push([29,1]),n()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.React},function(e,t,n){var r=n(17),o=n(18),a=n(19),c=n(21);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||c()}},function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.lodash},function(e,t,n){var r,o,a,c,i;r=n(22),o=n(10).utf8,a=n(23),c=n(10).bin,(i=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?c.stringToBytes(e):o.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),l=8*e.length,s=1732584193,u=-271733879,f=-1732584194,p=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[l>>>5]|=128<<l%32,n[14+(l+64>>>9<<4)]=l;var d=i._ff,b=i._gg,y=i._hh,g=i._ii;for(h=0;h<n.length;h+=16){var m=s,v=u,_=f,j=p;s=d(s,u,f,p,n[h+0],7,-680876936),p=d(p,s,u,f,n[h+1],12,-389564586),f=d(f,p,s,u,n[h+2],17,606105819),u=d(u,f,p,s,n[h+3],22,-1044525330),s=d(s,u,f,p,n[h+4],7,-176418897),p=d(p,s,u,f,n[h+5],12,1200080426),f=d(f,p,s,u,n[h+6],17,-1473231341),u=d(u,f,p,s,n[h+7],22,-45705983),s=d(s,u,f,p,n[h+8],7,1770035416),p=d(p,s,u,f,n[h+9],12,-1958414417),f=d(f,p,s,u,n[h+10],17,-42063),u=d(u,f,p,s,n[h+11],22,-1990404162),s=d(s,u,f,p,n[h+12],7,1804603682),p=d(p,s,u,f,n[h+13],12,-40341101),f=d(f,p,s,u,n[h+14],17,-1502002290),s=b(s,u=d(u,f,p,s,n[h+15],22,1236535329),f,p,n[h+1],5,-165796510),p=b(p,s,u,f,n[h+6],9,-1069501632),f=b(f,p,s,u,n[h+11],14,643717713),u=b(u,f,p,s,n[h+0],20,-373897302),s=b(s,u,f,p,n[h+5],5,-701558691),p=b(p,s,u,f,n[h+10],9,38016083),f=b(f,p,s,u,n[h+15],14,-660478335),u=b(u,f,p,s,n[h+4],20,-405537848),s=b(s,u,f,p,n[h+9],5,568446438),p=b(p,s,u,f,n[h+14],9,-1019803690),f=b(f,p,s,u,n[h+3],14,-187363961),u=b(u,f,p,s,n[h+8],20,1163531501),s=b(s,u,f,p,n[h+13],5,-1444681467),p=b(p,s,u,f,n[h+2],9,-51403784),f=b(f,p,s,u,n[h+7],14,1735328473),s=y(s,u=b(u,f,p,s,n[h+12],20,-1926607734),f,p,n[h+5],4,-378558),p=y(p,s,u,f,n[h+8],11,-2022574463),f=y(f,p,s,u,n[h+11],16,1839030562),u=y(u,f,p,s,n[h+14],23,-35309556),s=y(s,u,f,p,n[h+1],4,-1530992060),p=y(p,s,u,f,n[h+4],11,1272893353),f=y(f,p,s,u,n[h+7],16,-155497632),u=y(u,f,p,s,n[h+10],23,-1094730640),s=y(s,u,f,p,n[h+13],4,681279174),p=y(p,s,u,f,n[h+0],11,-358537222),f=y(f,p,s,u,n[h+3],16,-722521979),u=y(u,f,p,s,n[h+6],23,76029189),s=y(s,u,f,p,n[h+9],4,-640364487),p=y(p,s,u,f,n[h+12],11,-421815835),f=y(f,p,s,u,n[h+15],16,530742520),s=g(s,u=y(u,f,p,s,n[h+2],23,-995338651),f,p,n[h+0],6,-198630844),p=g(p,s,u,f,n[h+7],10,1126891415),f=g(f,p,s,u,n[h+14],15,-1416354905),u=g(u,f,p,s,n[h+5],21,-57434055),s=g(s,u,f,p,n[h+12],6,1700485571),p=g(p,s,u,f,n[h+3],10,-1894986606),f=g(f,p,s,u,n[h+10],15,-1051523),u=g(u,f,p,s,n[h+1],21,-2054922799),s=g(s,u,f,p,n[h+8],6,1873313359),p=g(p,s,u,f,n[h+15],10,-30611744),f=g(f,p,s,u,n[h+6],15,-1560198380),u=g(u,f,p,s,n[h+13],21,1309151649),s=g(s,u,f,p,n[h+4],6,-145523070),p=g(p,s,u,f,n[h+11],10,-1120210379),f=g(f,p,s,u,n[h+2],15,718787259),u=g(u,f,p,s,n[h+9],21,-343485551),s=s+m>>>0,u=u+v>>>0,f=f+_>>>0,p=p+j>>>0}return r.endian([s,u,f,p])})._ff=function(e,t,n,r,o,a,c){var i=e+(t&n|~t&r)+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._gg=function(e,t,n,r,o,a,c){var i=e+(t&r|n&~r)+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._hh=function(e,t,n,r,o,a,c){var i=e+(t^n^r)+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._ii=function(e,t,n,r,o,a,c){var i=e+(n^(t|~r))+(o>>>0)+c;return(i<<a|i>>>32-a)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(i(e,t));return t&&t.asBytes?n:t&&t.asString?c.bytesToString(n):r.bytesToHex(n)}},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.compose},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(24);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(25),o=n(26);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw a}}return n}}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],a=0;a<4;a++)8*r+6*a<=8*e.length?t.push(n.charAt(o>>>6*(3-a)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(e.charAt(r))>>>6-2*o);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),a=n(0),c=n(2),i=n(6),l=n.n(i),s=n(11),u=n(12);function f(e){if(e.status>=200&&e.status<300)return e;throw e}function p(e){return e.json?e.json():e.text()}var h=Object(a.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},Object(a.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"})),d=n(5),b=n.n(d),y=function(e,t,n){var r=!0;if(t&&t.id&&"value"in t){var o=t.value;["toggle","checkbox"].includes(n)&&(o=!0===o||"yes"===o||1===o),o=b.a.isArray(o)?o:[o],r=void 0!==e[t.id]&&o.includes(e[t.id])}return r},g=function(e,t){var n=e.controlType,r=!0;if(e.deps)if(b.a.isArray(e.deps))for(var o in e.deps){var a=e.deps[o];if(!(r=y(t,a,n)))break}else r=y(t,e.deps,n);return r},m=function(e,t){var n="",r=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?r=jQuery.fn[e.callback]:e.callback in window&&(r=window[e.callback])),"function"==typeof r)n=r(t,e);else{var a=e.attributes?Object.entries(e.attributes).map((function(e){var n=o()(e,2),r=n[0],a=n[1],c=g(a,t),i=t[r];if(c&&void 0!==i)return r+"="+(a.remove_quotes?i:'"'.concat(i,'"'))})):[],c=a.length?" "+a.join(" "):"";n="[".concat(e.shortcode_name).concat(c,"]")}return n},v=n(1),_=n(7),j=n(13),w=n.n(j),k=n(14),x=n.n(k),O=n(15),C=n.n(O),E=n(16),S=n.n(E),T=n(9),A=n.n(T),B=n(4);n(27);var N=function(e){C()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=A()(t);if(n){var o=A()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return S()(this,e)});function o(){var e;return w()(this,o),(e=r.apply(this,arguments)).state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1,firstLoading:!0},e.ajaxTimeout=!1,e}return x()(o,[{key:"componentDidMount",value:function(){this.updateShortcode()}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.state,o=r.shortcode,a=r.shortcodeHash,c=r.ajaxSuccess,i=r.ajaxResponse,l=r.ajaxUpdated;Object(d.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&l&&(c&&Object(B.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,a,i),Object(B.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,a,i),this.setState({ajaxUpdated:!1}))}},{key:"updateShortcode",value:function(){var e=this,t=this.props,n=t.attributes,r=t.blockArgs;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});var o=m(r,n),a=l()(o);r.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),Object(B.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",o,a),this.ajaxTimeout=setTimeout((function(){(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return t=Object(u.addQueryArgs)(t,e),fetch(t).then(f).then(p)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:o}).then((function(t){e.setState({loading:!1,firstLoading:!1,html:t.html,shortcode:o,shortcodeHash:a,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:t})})).catch((function(e){console.log({error:e})}))}),300)):this.setState({loading:!1,firstLoading:!1,html:o,shortcode:o,shortcodeHash:a})}},{key:"render",value:function(){var e=this.state,t=e.html,n=e.loading,r=e.firstLoading,o=e.shortcode,c=e.shortcodeHash,i=this.props.blockArgs,l=i.do_shortcode,s=i.title,u=i.empty_message,f="block-editor-yith-plugin-fw-shortcode-block",p=[f],d=l?"html":"shortcode",b=t,y="";r&&n?d="first-loading":l&&!t&&(d="empty-html",b=o,!n&&u&&(y=u));var g=["first-loading","empty-html","shortcode"].includes(d),m=!["first-loading","empty-html"].includes(d),_=!!y;return p.push("".concat(f,"--").concat(d)),p.push("".concat(f,_?"--has-message":"--no-message")),p.push("yith_block_".concat(c)),Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:p.join(" ")},n?Object(a.createElement)("div",{className:"".concat(f,"__spinner-wrap")},Object(a.createElement)(v.Spinner,null)):"",g&&Object(a.createElement)("div",{className:"".concat(f,"__title components-placeholder__label")},h,s),_&&Object(a.createElement)(a.RawHTML,{className:"".concat(f,"__message")},y),m&&Object(a.createElement)(a.RawHTML,{className:"".concat(f,"__content")},b)))}}]),o}(c.Component),R=n(8);function P(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,c=e.help,i=e.disableAlpha,l=Object(R.useInstanceId)(P),s="inspector-yith-color-picker-control-".concat(l);return Object(a.createElement)(v.BaseControl,{id:s,label:n,className:"block-editor-yith-color-control ".concat(t),help:c},Object(a.createElement)(v.ColorPicker,{color:o,disableAlpha:i,onChangeComplete:r}))}function M(e){var t=e.label,n=e.colorValue;return Object(a.createElement)(a.Fragment,null,t,!!n&&Object(a.createElement)(v.ColorIndicator,{colorValue:n}))}function I(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,c=e.help,i=e.palette,l=e.clearable;i=i||Object(_.__experimentalUseEditorFeature)("color.palette");var s=Object(R.useInstanceId)(I),u="inspector-yith-color-palette-control-".concat(s);return Object(a.createElement)(v.BaseControl,{id:u,className:"block-editor-yith-color-palette-control ".concat(t),help:c},Object(a.createElement)("fieldset",null,Object(a.createElement)("legend",null,Object(a.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},Object(a.createElement)(v.BaseControl.VisualLabel,null,Object(a.createElement)(M,{colorValue:o,label:n})))),Object(a.createElement)(v.ColorPalette,{value:o,onChange:r,colors:i,clearable:l})))}n(28);for(var H=function(e,t){return function(n){var r=n.attributes,c=(n.className,n.setAttributes),i=function(e,t,n){["colorpicker","color"].includes(n)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());var r={};r[t]=e,c(r)};return Object(a.createElement)(a.Fragment,null,!!t.attributes&&Object(a.createElement)(_.InspectorControls,null,Object(a.createElement)(v.PanelBody,null,Object.entries(t.attributes).map((function(t){var n=o()(t,2),c=function(t,n){var o=n.controlType,c=r[t],l=function(e,t){var n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n}(n,c),s="".concat(e,"__").concat(t,"-field-wrapper"),u=g(n,r);n.wrapper_class&&(s+=" "+n.wrapper_class);var f=!1;if(u)switch(o){case"select":f=Object(a.createElement)(v.SelectControl,{className:s,key:t,value:c,label:n.label,options:n.options,selected:c,help:l,multiple:!!n.multiple,onChange:function(e){i(e,t,o)}});break;case"text":f=Object(a.createElement)(v.TextControl,{className:s,key:t,value:c,label:n.label,help:l,onChange:function(e){i(e,t,o)}});break;case"textarea":f=Object(a.createElement)(v.TextareaControl,{className:s,key:t,value:c,label:n.label,help:l,onChange:function(e){i(e,t,o)}});break;case"toggle":f=Object(a.createElement)(v.ToggleControl,{className:s,key:t,value:c,label:n.label,help:l,checked:c,onChange:function(e){i(e,t,o)}});break;case"checkbox":f=Object(a.createElement)(v.CheckboxControl,{className:s,key:t,value:c,label:n.label,help:l,checked:c,onChange:function(e){i(e,t,o)}});break;case"number":case"range":f=Object(a.createElement)(v.RangeControl,{className:s,key:t,value:c,label:n.label,help:l,min:n.min,max:n.max,onChange:function(e){i(e,t,o)}});break;case"color":case"colorpicker":f=Object(a.createElement)(P,{className:s,key:t,label:n.label,help:l,value:c,disableAlpha:n.disableAlpha,onChange:function(e){i(e,t,o)}});break;case"color-palette":f=Object(a.createElement)(I,{className:s,key:t,label:n.label,help:l,value:c,clearable:n.clearable||!1,onChange:function(e){i(e,t,o)}});break;case"radio":f=Object(a.createElement)(v.RadioControl,{key:t,value:c,label:n.label,options:n.options,selected:c,checked:c,help:l,onChange:function(e){i(e,t,o)}});break;default:f=!1}return f}(n[0],n[1]);if(c)return c})))),Object(a.createElement)(N,{attributes:r,blockArgs:t}))}},L=function(){var e=Q[U];Object(B.addAction)(e.key,"yith-plugin-fw/jquery-events",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"jQuery"in window&&(e.delay?setTimeout((function(){jQuery(document).trigger(e.key,Object.values(n))}),e.delay):jQuery(document).trigger(e.key,Object.values(n)))}))},U=0,Q=[{key:"yith_plugin_fw_gutenberg_before_do_shortcode",delay:0},{key:"yith_plugin_fw_gutenberg_success_do_shortcode",delay:200},{key:"yith_plugin_fw_gutenberg_after_do_shortcode",delay:200}];U<Q.length;U++)L();for(var F=function(){var e=o()(J[D],2),t=e[0],n=e[1];Object(s.registerBlockType)("yith/"+t,{title:n.title,description:n.description,category:n.category,attributes:n.attributes,icon:void 0!==n.icon?n.icon:h,keywords:n.keywords,edit:H(t,n),save:function(e){var t=e.attributes;return m(n,t)},deprecated:[{attributes:n.attributes,save:function(e){var t=e.attributes,r=m(n,t),o='<span class="yith_block_'+l()(r)+'">'+r+"</span>";return Object(a.createElement)(a.RawHTML,null,o)}}]})},D=0,J=Object.entries(yithGutenbergBlocks);D<J.length;D++)F()}]);
|
@@ -1,2 +1,2 @@
|
|
1 |
-
.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html,.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode{padding:1em 1em 1.2em;border:1px solid #1e1e1e;border-radius:4px}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode .block-editor-yith-plugin-fw-shortcode-block__content{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;font-size:13px;padding:.8em 1em;border:1px solid #ddd;border-radius:4px}.block-editor-yith-plugin-fw-shortcode-block{position:relative;min-height:30px}.block-editor-yith-plugin-fw-shortcode-block .block-editor-yith-plugin-fw-shortcode-block__spinner-wrap{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html.block-editor-yith-plugin-fw-shortcode-block--no-message .block-editor-yith-plugin-fw-shortcode-block__title{margin-bottom:0}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .block-editor-yith-plugin-fw-shortcode-block__message{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-style:italic;font-size:13px}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .block-editor-yith-plugin-fw-shortcode-block__content{display:none}
|
2 |
.block-editor-yith-color-palette-control .block-editor-yith-color-palette-control__color-indicator{margin-bottom:12px}.block-editor-yith-color-palette-control .component-color-indicator{vertical-align:text-bottom}
|
1 |
+
.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html,.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode,.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--first-loading{padding:1em 1em 1.2em;border:1px solid #1e1e1e;border-radius:4px}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--shortcode .block-editor-yith-plugin-fw-shortcode-block__content{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;font-size:13px;padding:.8em 1em;border:1px solid #ddd;border-radius:4px}.block-editor-yith-plugin-fw-shortcode-block{position:relative;min-height:30px}.block-editor-yith-plugin-fw-shortcode-block .block-editor-yith-plugin-fw-shortcode-block__spinner-wrap{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--first-loading .block-editor-yith-plugin-fw-shortcode-block__title{margin-bottom:0}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html.block-editor-yith-plugin-fw-shortcode-block--no-message .block-editor-yith-plugin-fw-shortcode-block__title{margin-bottom:0}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .block-editor-yith-plugin-fw-shortcode-block__message{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-style:italic;font-size:13px}.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--empty-html .block-editor-yith-plugin-fw-shortcode-block__content{display:none}
|
2 |
.block-editor-yith-color-palette-control .block-editor-yith-color-palette-control__color-indicator{margin-bottom:12px}.block-editor-yith-color-palette-control .component-color-indicator{vertical-align:text-bottom}
|
@@ -401,15 +401,31 @@ if ( ! class_exists( 'YITH_Elementor_Widget' ) ) {
|
|
401 |
$option = $this->override_elementor_specific_data( $option );
|
402 |
$type = isset( $option['type'] ) ? $option['type'] : false;
|
403 |
|
404 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
|
406 |
-
$
|
407 |
-
|
408 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
}
|
410 |
-
|
411 |
-
$option['deps']['id'] => $value,
|
412 |
-
);
|
413 |
unset( $option['deps'] );
|
414 |
}
|
415 |
|
401 |
$option = $this->override_elementor_specific_data( $option );
|
402 |
$type = isset( $option['type'] ) ? $option['type'] : false;
|
403 |
|
404 |
+
if ( ! empty( $option['deps'] ) && ! isset( $option['condition'] ) ) {
|
405 |
+
if ( isset( $option['deps']['id'], $option['deps']['value'] ) ) {
|
406 |
+
$deps = array(
|
407 |
+
array(
|
408 |
+
'id' => $option['deps']['id'],
|
409 |
+
'value' => $option['deps']['value'],
|
410 |
+
),
|
411 |
+
);
|
412 |
+
} else {
|
413 |
+
$deps = $option['deps'];
|
414 |
+
}
|
415 |
|
416 |
+
$option['condition'] = array();
|
417 |
+
|
418 |
+
foreach ( $deps as $dep ) {
|
419 |
+
if ( isset( $dep['id'], $dep['value'] ) ) {
|
420 |
+
$dep_value = $dep['value'];
|
421 |
+
$dep_id = $dep['id'];
|
422 |
+
if ( in_array( $type, array( 'toggle', 'onoff', 'checkbox' ), true ) ) {
|
423 |
+
$dep_value = yith_plugin_fw_is_true( $dep_value ) ? 'yes' : 'no';
|
424 |
+
}
|
425 |
+
$option['condition'][ $dep_id ] = $dep_value;
|
426 |
+
}
|
427 |
}
|
428 |
+
|
|
|
|
|
429 |
unset( $option['deps'] );
|
430 |
}
|
431 |
|
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 3.6.
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
-
* @version 3.6.
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 3.6.8
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
+
* @version 3.6.8
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
Binary file
|
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
"PO-Revision-Date: 2021-02-11 18:07:46+0000\n"
|
9 |
"Language: el_GR\n"
|
10 |
"MIME-Version: 1.0\n"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-04-12 11:06:33+00:00\n"
|
8 |
"PO-Revision-Date: 2021-02-11 18:07:46+0000\n"
|
9 |
"Language: el_GR\n"
|
10 |
"MIME-Version: 1.0\n"
|
Binary file
|
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-
|
9 |
"Language: es\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -588,7 +588,7 @@ msgstr "YITH"
|
|
588 |
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
589 |
msgctxt "Elementor Widget - section title"
|
590 |
msgid "%s - Options"
|
591 |
-
msgstr ""
|
592 |
|
593 |
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
594 |
msgctxt "[gutenberg]: Category Name"
|
@@ -655,12 +655,12 @@ msgstr "Pagos"
|
|
655 |
#: templates/fields/copy-to-clipboard.php:41
|
656 |
msgctxt "Copy-to-clipboard message"
|
657 |
msgid "Copied!"
|
658 |
-
msgstr ""
|
659 |
|
660 |
#: templates/fields/copy-to-clipboard.php:45
|
661 |
msgctxt "Copy-to-clipboard button text"
|
662 |
msgid "Copy"
|
663 |
-
msgstr ""
|
664 |
|
665 |
#: templates/fields/dimensions.php:13
|
666 |
msgctxt "Position in the \"Dimensions\" field"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-04-12 11:06:33+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-03-15 15:43:52+0000\n"
|
9 |
"Language: es\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
588 |
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
589 |
msgctxt "Elementor Widget - section title"
|
590 |
msgid "%s - Options"
|
591 |
+
msgstr "%s - Opciones"
|
592 |
|
593 |
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
594 |
msgctxt "[gutenberg]: Category Name"
|
655 |
#: templates/fields/copy-to-clipboard.php:41
|
656 |
msgctxt "Copy-to-clipboard message"
|
657 |
msgid "Copied!"
|
658 |
+
msgstr "¡Copiado!"
|
659 |
|
660 |
#: templates/fields/copy-to-clipboard.php:45
|
661 |
msgctxt "Copy-to-clipboard button text"
|
662 |
msgid "Copy"
|
663 |
+
msgstr "Copiar"
|
664 |
|
665 |
#: templates/fields/dimensions.php:13
|
666 |
msgctxt "Position in the \"Dimensions\" field"
|
Binary file
|
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-
|
9 |
"Language: it\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -656,12 +656,12 @@ msgstr "Pagamenti"
|
|
656 |
#: templates/fields/copy-to-clipboard.php:41
|
657 |
msgctxt "Copy-to-clipboard message"
|
658 |
msgid "Copied!"
|
659 |
-
msgstr ""
|
660 |
|
661 |
#: templates/fields/copy-to-clipboard.php:45
|
662 |
msgctxt "Copy-to-clipboard button text"
|
663 |
msgid "Copy"
|
664 |
-
msgstr ""
|
665 |
|
666 |
#: templates/fields/dimensions.php:13
|
667 |
msgctxt "Position in the \"Dimensions\" field"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-04-12 11:06:33+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-04-02 11:09:29+0000\n"
|
9 |
"Language: it\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
656 |
#: templates/fields/copy-to-clipboard.php:41
|
657 |
msgctxt "Copy-to-clipboard message"
|
658 |
msgid "Copied!"
|
659 |
+
msgstr "Copiato!"
|
660 |
|
661 |
#: templates/fields/copy-to-clipboard.php:45
|
662 |
msgctxt "Copy-to-clipboard button text"
|
663 |
msgid "Copy"
|
664 |
+
msgstr "Copia"
|
665 |
|
666 |
#: templates/fields/dimensions.php:13
|
667 |
msgctxt "Position in the \"Dimensions\" field"
|
Binary file
|
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-
|
9 |
"Language: nl\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -652,12 +652,12 @@ msgstr "Betalingen"
|
|
652 |
#: templates/fields/copy-to-clipboard.php:41
|
653 |
msgctxt "Copy-to-clipboard message"
|
654 |
msgid "Copied!"
|
655 |
-
msgstr ""
|
656 |
|
657 |
#: templates/fields/copy-to-clipboard.php:45
|
658 |
msgctxt "Copy-to-clipboard button text"
|
659 |
msgid "Copy"
|
660 |
-
msgstr ""
|
661 |
|
662 |
#: templates/fields/dimensions.php:13
|
663 |
msgctxt "Position in the \"Dimensions\" field"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-04-12 11:06:33+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-04-05 19:01:01+0000\n"
|
9 |
"Language: nl\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
652 |
#: templates/fields/copy-to-clipboard.php:41
|
653 |
msgctxt "Copy-to-clipboard message"
|
654 |
msgid "Copied!"
|
655 |
+
msgstr "Gekopieerd!"
|
656 |
|
657 |
#: templates/fields/copy-to-clipboard.php:45
|
658 |
msgctxt "Copy-to-clipboard button text"
|
659 |
msgid "Copy"
|
660 |
+
msgstr "Kopieer"
|
661 |
|
662 |
#: templates/fields/dimensions.php:13
|
663 |
msgctxt "Position in the \"Dimensions\" field"
|
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-04-12 11:06:33+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -114,8 +114,8 @@ return apply_filters(
|
|
114 |
'label' => _x( 'Multiselect relation', '[Admin] Filter edit form', 'yith-woocommerce-ajax-navigation' ),
|
115 |
'type' => 'radio',
|
116 |
'options' => array(
|
117 |
-
'and' => _x( 'AND - Results need to match all selected terms at the same time', '[Admin] Filter edit form', 'yith-woocommerce-ajax-navigation' ),
|
118 |
-
'or' => _x( 'OR - Results need to match at least one of the selected terms', 'yith-woocommerce-ajax-navigation' ),
|
119 |
),
|
120 |
'desc' => _x( 'Choose how multiple terms selection should behave', '[Admin] Filter edit form', 'yith-woocommerce-ajax-navigation' ),
|
121 |
),
|
114 |
'label' => _x( 'Multiselect relation', '[Admin] Filter edit form', 'yith-woocommerce-ajax-navigation' ),
|
115 |
'type' => 'radio',
|
116 |
'options' => array(
|
117 |
+
'and' => _x( 'AND - Results need to match all selected terms at the same time', '[Admin] Filter edit form; logical operator that affects query behaviour', 'yith-woocommerce-ajax-navigation' ),
|
118 |
+
'or' => _x( 'OR - Results need to match at least one of the selected terms', '[Admin] Filter edit form; logical operator that affects query behaviour', 'yith-woocommerce-ajax-navigation' ),
|
119 |
),
|
120 |
'desc' => _x( 'Choose how multiple terms selection should behave', '[Admin] Filter edit form', 'yith-woocommerce-ajax-navigation' ),
|
121 |
),
|
@@ -65,8 +65,10 @@ $preset_id = $preset ? $preset->get_id() : false;
|
|
65 |
<?php do_action( 'yith_wcan_preset_edit_after_filters', $preset_id, $preset ); ?>
|
66 |
|
67 |
<p class="submit">
|
68 |
-
<input type="submit" class="button button-primary" value="<?php echo esc_attr_x( 'Save preset', '[Admin] Preset save button, in new/edit preset page', 'yith-woocommerce-ajax.navigation' ); ?>"/>
|
69 |
<input type="hidden" name="id" id="preset_id" value="<?php echo $preset ? esc_attr( $preset->get_id() ) : ''; ?>"/>
|
|
|
|
|
70 |
<?php wp_nonce_field( 'save_preset' ); ?>
|
71 |
</p>
|
72 |
</form>
|
65 |
<?php do_action( 'yith_wcan_preset_edit_after_filters', $preset_id, $preset ); ?>
|
66 |
|
67 |
<p class="submit">
|
68 |
+
<input type="submit" id="submit" class="button button-primary" value="<?php echo esc_attr_x( 'Save preset', '[Admin] Preset save button, in new/edit preset page', 'yith-woocommerce-ajax.navigation' ); ?>"/>
|
69 |
<input type="hidden" name="id" id="preset_id" value="<?php echo $preset ? esc_attr( $preset->get_id() ) : ''; ?>"/>
|
70 |
+
<input type="hidden" name="post_ID" id="post_ID" value="<?php echo $preset ? esc_attr( $preset->get_id() ) : ''; ?>"/>
|
71 |
+
<input type="hidden" name="paged" id="paged" value="<?php echo $preset && $preset->needs_pagination() ? 1 : 0; ?>"/>
|
72 |
<?php wp_nonce_field( 'save_preset' ); ?>
|
73 |
</p>
|
74 |
</form>
|
@@ -21,7 +21,8 @@ if ( ! defined( 'YITH_WCAN' ) ) {
|
|
21 |
|
22 |
<div class="preset-filters">
|
23 |
<?php
|
24 |
-
$filters
|
|
|
25 |
|
26 |
YITH_WCAN()->admin->show_empty_content(
|
27 |
array(
|
@@ -33,6 +34,10 @@ if ( ! defined( 'YITH_WCAN' ) ) {
|
|
33 |
);
|
34 |
|
35 |
if ( ! empty( $filters ) ) :
|
|
|
|
|
|
|
|
|
36 |
foreach ( $filters as $id => $filter ) :
|
37 |
include( YITH_WCAN_DIR . 'templates/admin/preset-filter.php' );
|
38 |
endforeach;
|
@@ -40,6 +45,13 @@ if ( ! defined( 'YITH_WCAN' ) ) {
|
|
40 |
?>
|
41 |
</div>
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
<a href="#" id="add_new_filter" style="<?php echo empty( $filters ) ? 'display: none;' : ''; ?>" class="add-new-filter"><?php echo esc_html_x( '+ Add filter', '[Admin] Add new filter in new preset page', 'yith-woocommerce-ajax-navigation' ); ?></a>
|
44 |
</div>
|
45 |
|
21 |
|
22 |
<div class="preset-filters">
|
23 |
<?php
|
24 |
+
$filters = $preset ? $preset->get_filters() : array();
|
25 |
+
$show_more = YITH_WCAN_Presets::FILTERS_PER_PAGE < count( $filters );
|
26 |
|
27 |
YITH_WCAN()->admin->show_empty_content(
|
28 |
array(
|
34 |
);
|
35 |
|
36 |
if ( ! empty( $filters ) ) :
|
37 |
+
if ( $show_more ) {
|
38 |
+
$filters = array_slice( $filters, 0, YITH_WCAN_Presets::FILTERS_PER_PAGE, true );
|
39 |
+
}
|
40 |
+
|
41 |
foreach ( $filters as $id => $filter ) :
|
42 |
include( YITH_WCAN_DIR . 'templates/admin/preset-filter.php' );
|
43 |
endforeach;
|
45 |
?>
|
46 |
</div>
|
47 |
|
48 |
+
<?php
|
49 |
+
if ( $show_more ) :
|
50 |
+
$first = false;
|
51 |
+
include( YITH_WCAN_DIR . 'templates/admin/preset-load-more-filters.php' );
|
52 |
+
endif;
|
53 |
+
?>
|
54 |
+
|
55 |
<a href="#" id="add_new_filter" style="<?php echo empty( $filters ) ? 'display: none;' : ''; ?>" class="add-new-filter"><?php echo esc_html_x( '+ Add filter', '[Admin] Add new filter in new preset page', 'yith-woocommerce-ajax-navigation' ); ?></a>
|
56 |
</div>
|
57 |
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Preset load more filters - Admin view
|
4 |
+
*
|
5 |
+
* @author YITH
|
6 |
+
* @package YITH WooCommerce Ajax Product Filter
|
7 |
+
* @version 4.0.3
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'YITH_WCAN' ) ) {
|
11 |
+
exit;
|
12 |
+
} // Exit if accessed directly
|
13 |
+
?>
|
14 |
+
|
15 |
+
<a href="#" id="load_more_filters" class="load-more-filters">
|
16 |
+
<?php
|
17 |
+
// translators: 1. number of items to show.
|
18 |
+
echo esc_html( sprintf( _x( 'See %d more filters', '[Admin] Add new filter in new preset page', 'yith-woocommerce-ajax-navigation' ), YITH_WCAN_Presets::FILTERS_PER_PAGE ) );
|
19 |
+
?>
|
20 |
+
</a>
|
@@ -16,8 +16,9 @@
|
|
16 |
if ( ! defined( 'YITH_WCAN' ) ) {
|
17 |
exit;
|
18 |
} // Exit if accessed directly
|
|
|
19 |
?>
|
20 |
|
21 |
-
<button class="
|
22 |
<?php echo esc_html( apply_filters( 'yith_wcan_filter_button', _x( 'Reset filters', '[FRONTEND] Reset button for preset shortcode', 'yith-woocommerce-ajax-navigation' ) ) ); ?>
|
23 |
</button>
|
16 |
if ( ! defined( 'YITH_WCAN' ) ) {
|
17 |
exit;
|
18 |
} // Exit if accessed directly
|
19 |
+
$button_class = apply_filters( 'yith_wcan_filter_reset_button_class', 'btn btn-primary yith-wcan-reset-filters reset-filters' );
|
20 |
?>
|
21 |
|
22 |
+
<button class="<?php echo $button_class; ?>">
|
23 |
<?php echo esc_html( apply_filters( 'yith_wcan_filter_button', _x( 'Reset filters', '[FRONTEND] Reset button for preset shortcode', 'yith-woocommerce-ajax-navigation' ) ) ); ?>
|
24 |
</button>
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<wpml-config>
|
2 |
+
<custom-types>
|
3 |
+
<custom-type translate="1">yith_wcan_preset</custom-type>
|
4 |
+
</custom-types>
|
5 |
+
<custom-fields>
|
6 |
+
<custom-field action="copy">_enabled</custom-field>
|
7 |
+
<custom-field action="translate">_filters</custom-field>
|
8 |
+
</custom-fields>
|
9 |
+
<custom-fields-texts>
|
10 |
+
<key name="_filters">
|
11 |
+
<key name="*">
|
12 |
+
<key name="title" />
|
13 |
+
</key>
|
14 |
+
</key>
|
15 |
+
</custom-fields-texts>
|
16 |
+
<admin-texts>
|
17 |
+
<key name="yit_wcan_options">
|
18 |
+
<key name="yith_wcan_enable_see_all_categories_link_text" />
|
19 |
+
<key name="yith_wcan_enable_see_all_tags_link_text" />
|
20 |
+
</key>
|
21 |
+
</admin-texts>
|
22 |
+
</wpml-config>
|