Version Description
Released on 18 May 2021 =
New: support for WooCommerce 5.3
Update: YITH plugin framework
Tweak: improved WPML metabox handling
Tweak: added option to skip sanitization of url parameters
Fix: pass all slugs to rawurldecode before printing them as HTML
Fix: pass all terms coming from query string to sanitize_title
Fix: possible error when adding all terms on backend filter
Fix: cast both property-to-remove and term-slug to string before comparison, to avoid errors when deactivating filters
Dev: added method to retrieve original post in Preset object
Dev: added filter yith_wcan_all_filters_label to allow third party code to change All label in select filters
Dev: added trigger yith_wcan_filters_parameters
Dev: added filter yith_wcan_is_filter_active
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Ajax Product Filter |
Version | 4.0.4 |
Comparing to | |
See all releases |
Code changes from version 4.0.3 to 4.0.4
- LICENSE.txt +1 -1
- README.txt +16 -1
- assets/css/shortcodes.css +3 -0
- assets/css/shortcodes.css.map +1 -1
- assets/js/yith-wcan-admin-filters.js +5 -1
- assets/js/yith-wcan-admin-filters.min.js +1 -1
- assets/js/yith-wcan-shortcodes.js +30 -6
- assets/js/yith-wcan-shortcodes.min.js +1 -1
- assets/scss/shortcodes.scss +4 -0
- includes/class.yith-wcan-filter.php +1 -1
- includes/class.yith-wcan-preset.php +38 -0
- includes/class.yith-wcan-query.php +1 -1
- includes/compatibility/plugins/wpml/wpml.php +27 -12
- includes/filters/class.yith-wcan-filter-tax.php +5 -4
- includes/functions.yith-wcan.php +14 -1
- init.php +3 -3
- languages/yith-woocommerce-ajax-navigation-de_DE.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-de_DE.po +8 -8
- languages/yith-woocommerce-ajax-navigation-de_DE_formal.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-de_DE_formal.po +8 -8
- languages/yith-woocommerce-ajax-navigation-el.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-el.po +8 -8
- languages/yith-woocommerce-ajax-navigation-es_ES.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-es_ES.po +8 -8
- languages/yith-woocommerce-ajax-navigation-fr_FR.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-fr_FR.po +4 -8
- languages/yith-woocommerce-ajax-navigation-it_IT.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-it_IT.po +8 -8
- languages/yith-woocommerce-ajax-navigation-nl_NL.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-nl_NL.po +8 -8
- languages/yith-woocommerce-ajax-navigation-tr_TR.mo +0 -0
- languages/yith-woocommerce-ajax-navigation-tr_TR.po +4 -8
- languages/yith-woocommerce-ajax-navigation.pot +4 -8
- plugin-fw/assets/css/yit-plugin-panel.css +53 -17
- plugin-fw/assets/css/yith-fields.css +95 -256
- plugin-fw/assets/css/yith-icon.css +15 -7
- plugin-fw/assets/css/yith-plugin-ui.css +1593 -0
- 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/jquery-tiptip/jquery.tipTip.js +191 -0
- plugin-fw/assets/js/jquery-tiptip/jquery.tipTip.min.js +1 -0
- plugin-fw/assets/js/metabox.js +11 -11
- plugin-fw/assets/js/metabox.min.js +1 -1
- plugin-fw/assets/js/wp-pages.js +20 -9
- plugin-fw/assets/js/wp-pages.min.js +1 -1
- plugin-fw/assets/js/yit-plugin-panel.js +99 -30
- plugin-fw/assets/js/yit-plugin-panel.min.js +1 -1
- plugin-fw/assets/js/yith-fields.js +88 -2
- plugin-fw/assets/js/yith-fields.min.js +1 -1
- plugin-fw/assets/js/yith-ui.js +306 -0
- plugin-fw/assets/js/yith-ui.min.js +1 -0
- plugin-fw/dist/gutenberg/style-index.css +3 -1
- plugin-fw/includes/class-yit-assets.php +20 -6
- plugin-fw/includes/class-yit-metabox.php +8 -1
- plugin-fw/includes/class-yit-plugin-panel.php +51 -7
- plugin-fw/includes/class-yith-post-type-admin.php +474 -0
- plugin-fw/init.php +2 -2
- plugin-fw/languages/yith-plugin-fw-el.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-el.po +157 -38
- plugin-fw/languages/yith-plugin-fw-es_ES.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-es_ES.po +158 -39
- plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-it_IT.po +161 -40
- plugin-fw/languages/yith-plugin-fw-nl_NL.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-nl_NL.po +160 -39
- plugin-fw/languages/yith-plugin-fw.pot +155 -36
- plugin-fw/templates/components/action-button.php +64 -0
- plugin-fw/templates/components/list-table-blank-state.php +47 -0
- plugin-fw/templates/components/resources/action-button-menu.php +54 -0
- plugin-fw/templates/fields/image-gallery.php +1 -1
- plugin-fw/templates/fields/slider.php +1 -2
- plugin-fw/templates/fields/upload.php +2 -2
- plugin-fw/templates/panel/sub-tabs-nav.php +1 -1
- plugin-fw/templates/panel/woocommerce/woocommerce-form.php +5 -1
- plugin-fw/templates/panel/woocommerce/woocommerce-upload.php +1 -1
- plugin-fw/yit-functions.php +421 -3
- plugin-fw/yit-plugin.php +16 -3
- templates/filters/filter-tax/filter-start.php +6 -5
- templates/filters/filter-tax/items/checkbox.php +1 -1
- templates/filters/filter-tax/items/color.php +1 -1
- templates/filters/filter-tax/items/label.php +1 -1
- templates/filters/filter-tax/items/select.php +1 -1
- templates/filters/filter-tax/items/text.php +1 -1
LICENSE.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
Copyright
|
2 |
|
3 |
This program is free software; you can redistribute it and/or modify
|
4 |
it under the terms of the GNU General Public License as published by
|
1 |
+
Copyright 2015-2021 Your Inspiration Solutions (email : plugins@yithemes.com)
|
2 |
|
3 |
This program is free software; you can redistribute it and/or modify
|
4 |
it under the terms of the GNU General Public License as published by
|
README.txt
CHANGED
@@ -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 |
|
@@ -152,6 +152,21 @@ If none of the previous listed actions helps you solve the problem, then, submit
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 4.0.3 - Released on 20 April 2021 =
|
156 |
|
157 |
* New: support for WooCommerce 5.2
|
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.4
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 4.0.4 - Released on 18 May 2021 =
|
156 |
+
|
157 |
+
* New: support for WooCommerce 5.3
|
158 |
+
* Update: YITH plugin framework
|
159 |
+
* Tweak: improved WPML metabox handling
|
160 |
+
* Tweak: added option to skip sanitization of url parameters
|
161 |
+
* Fix: pass all slugs to rawurldecode before printing them as HTML
|
162 |
+
* Fix: pass all terms coming from query string to sanitize_title
|
163 |
+
* Fix: possible error when adding all terms on backend filter
|
164 |
+
* Fix: cast both property-to-remove and term-slug to string before comparison, to avoid errors when deactivating filters
|
165 |
+
* Dev: added method to retrieve original post in Preset object
|
166 |
+
* Dev: added filter yith_wcan_all_filters_label to allow third party code to change All label in select filters
|
167 |
+
* Dev: added trigger yith_wcan_filters_parameters
|
168 |
+
* Dev: added filter yith_wcan_is_filter_active
|
169 |
+
|
170 |
= 4.0.3 - Released on 20 April 2021 =
|
171 |
|
172 |
* New: support for WooCommerce 5.2
|
assets/css/shortcodes.css
CHANGED
@@ -368,6 +368,9 @@
|
|
368 |
.yith-wcan-filters .yith-wcan-filter .price-slider {
|
369 |
padding: 20px 10px;
|
370 |
}
|
|
|
|
|
|
|
371 |
.yith-wcan-filters .yith-wcan-filter .price-slider .irs-bar,
|
372 |
.yith-wcan-filters .yith-wcan-filter .price-slider .irs-line {
|
373 |
height: 5px;
|
368 |
.yith-wcan-filters .yith-wcan-filter .price-slider {
|
369 |
padding: 20px 10px;
|
370 |
}
|
371 |
+
.yith-wcan-filters .yith-wcan-filter .price-slider .irs {
|
372 |
+
font-family: inherit;
|
373 |
+
}
|
374 |
.yith-wcan-filters .yith-wcan-filter .price-slider .irs-bar,
|
375 |
.yith-wcan-filters .yith-wcan-filter .price-slider .irs-line {
|
376 |
height: 5px;
|
assets/css/shortcodes.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sourceRoot":"","sources":["../scss/shortcodes.scss"],"names":[],"mappings":";AA8IA;AAEA;EACC;EACA;;AAGC;EACC;;AAIF;EACC;;AAGA;EACC;;AAEA;EAxIF;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EAeA;;AAXA;EAOA;;AAkHG;EACC;;AAMH;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAEA;EACC;;AAIF;EACC;EACA;;AAGD;EACC;EACA;;AAIA;EACC;EACA;;AAIF;EACC;;AAGD;EAEC;EACA;;AAGA;EAEC,OAhNU;EAiNV;;AAGD;EAEC;;AAGD;EACC;;AAGD;EAEC,OA3NY;EA4NZ;;AAGD;EAEC;;AAID;EACC;EACA;;AAEA;EACC;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;;AAGD;EACC,cA3QQ;;AA+QV;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC,cA3RQ;;AA8RT;EACC;EACA;;AAIF;EAEC;;AAGD;EACC;EACA;EACA;EACA;;AAKD;EACC,cAnTS;;AAsTV;EArPJ,kBAjEc;EAkEd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AA+OG;EACC;EACA;EACA,eA3TW;EA4TX;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAGD;EACC;;AAEA;EA5QL,kBAjEc;EAkEd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAmQM;EACA;;AAIF;EAEC;EACA,OAxVS;;AA2VV;EACC;EACA;EACA;;AAEA;AAAA;EAEC;;AAIF;EACC;EACA;EACA;;AAEA;AAAA;EAEC;;AAIF;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAIF;EACC;EACA;;AAKF;EACC;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EAlWJ;;AAsWI;EA1WJ;;AA8WI;EACC;;AAKF;EACC,OA7ZY;EA8ZZ;;AAID;EA1ZH;EACA;EACA;EACA;;AA4ZG;EACC,kBA7aU;EA8aV,cA9aU;;AAgbX;EACC,kBAjbU;;AAmIb;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AA4TC;EA1VD,kBAhGc;EAiGd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAqVE;EACA;EACA;;AArVF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AA8UC;AAAA;EACC;EACA;;AAIF;EACC;;AAEA;EACC;;AAMD;AAAA;EACC;EACA;EACA;EACA;EACA;;AAKF;EACC;;AAEA;AAAA;EAEC;EACA,
|
1 |
+
{"version":3,"sourceRoot":"","sources":["../scss/shortcodes.scss"],"names":[],"mappings":";AA8IA;AAEA;EACC;EACA;;AAGC;EACC;;AAIF;EACC;;AAGA;EACC;;AAEA;EAxIF;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EAeA;;AAXA;EAOA;;AAkHG;EACC;;AAMH;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAEA;EACC;;AAIF;EACC;EACA;;AAGD;EACC;EACA;;AAIA;EACC;EACA;;AAIF;EACC;;AAGD;EAEC;EACA;;AAGA;EAEC,OAhNU;EAiNV;;AAGD;EAEC;;AAGD;EACC;;AAGD;EAEC,OA3NY;EA4NZ;;AAGD;EAEC;;AAID;EACC;EACA;;AAEA;EACC;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;;AAGD;EACC,cA3QQ;;AA+QV;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC,cA3RQ;;AA8RT;EACC;EACA;;AAIF;EAEC;;AAGD;EACC;EACA;EACA;EACA;;AAKD;EACC,cAnTS;;AAsTV;EArPJ,kBAjEc;EAkEd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AA+OG;EACC;EACA;EACA,eA3TW;EA4TX;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAGD;EACC;;AAEA;EA5QL,kBAjEc;EAkEd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAmQM;EACA;;AAIF;EAEC;EACA,OAxVS;;AA2VV;EACC;EACA;EACA;;AAEA;AAAA;EAEC;;AAIF;EACC;EACA;EACA;;AAEA;AAAA;EAEC;;AAIF;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAIF;EACC;EACA;;AAKF;EACC;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EAlWJ;;AAsWI;EA1WJ;;AA8WI;EACC;;AAKF;EACC,OA7ZY;EA8ZZ;;AAID;EA1ZH;EACA;EACA;EACA;;AA4ZG;EACC,kBA7aU;EA8aV,cA9aU;;AAgbX;EACC,kBAjbU;;AAmIb;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AAKC;EARD;EACA;EACA;EACA;;AA4TC;EA1VD,kBAhGc;EAiGd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAqVE;EACA;EACA;;AArVF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AA8UC;AAAA;EACC;EACA;;AAIF;EACC;;AAEA;EACC;;AAMD;AAAA;EACC;EACA;EACA;EACA;EACA;;AAKF;EACC;;AAEA;EACC;;AAGD;AAAA;EAEC;EACA,eApeY;;AAueb;EACC,kBA5eW;;AA+eZ;EACC;EACA,kBAjfW;EAkfX;EACA;EACA;EACA;;AAGD;AAAA;EAEC;EACA;;AAGD;AAAA;AAAA;EA9ZF,kBAhGc;EAiGd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EA2ZG;;AAzZH;AAAA;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AA+YE;AAAA;AAAA;EACC;EACA;EACA;EACA;EACA;;AAMH;EACC;EACA,eA9gBa;EA+gBb;EA/fF;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EAeA;;AAXA;EAOA;;AA0eE;EACC;EACA;EACA,eAthBY;EAuhBZ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;;AAEA;EACC;EACA;;AAEA;EACC,cA7iBQ;EA8iBR;EACA,eA/iBQ;;AAmjBV;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIF;EACC;EACA;EACA;;AAEA;EACC;;AAEA;EACC;EACA;;AArhBN;EACC;EACA;;AAGD;EACC,eAvDc;EAwDd,kBAzDa;;AA8kBX;EACC;EACA;EACA;EACA;EACA;;AAEA;EACC,OAxlBS;;AA6lBZ;EACC;;AAEA;EAplBH;EACA;EACA;EACA;;AAslBE;EACC;EACA;;AAEA;EACC;;AAMH;EACC;EACA;EACA;EACA;;AAMD;EACC;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA,eA5oBY;EA6oBZ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA,kBAhqBW;EAiqBX,cAjqBW;EAkqBX;EACA;;AAIF;EACC;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC,kBAzsBW;EA0sBX;;AAIF;EACC,OAzsBU;;AA8sBZ;EACC;;AAID;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;;AAEA;EACC,YAhuBU;EAiuBV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;;AAIF;EACC;EACA;EACA;EACA;;AAvsBF;EACC;EACA;;AAGD;EACC,eAvDc;EAwDd,kBAzDa;;AA6vBZ;EACC;EACA;EACA;;AAIF;EACC;;AAGD;EACC;EACA,eAzwBa;EA0wBb;EACA;;AAEA;EACC;;AAEA;EACC;;AAIF;EACC;;AAIF;EACC;EACA;EACA;;AAGD;EACC,OApyBY;EAqyBZ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC,OApzBW;;AAwzBb;EACC,kBAzzBY;EA0zBZ,cA1zBY;EA2zBZ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAKH;EACC;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SA/0BS;;AAi1BT;EACC;;;AAIF;EACC;IACC;;;AAIF;AAEA;EACC;EACA;;AAEA;EACC;EACA;EACA;;AAEA;EACC;EACA;;AAGD;EApyBD;EACA;EACA,OAlFc;EAmFd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EA4xBE;;AAEA;EAzzBF,kBAjEc;EAkEd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAizBE;EAj3BF;EACA;EACA;EACA;EAg3BG;;AAKH;EACC;;AAGD;EACC,OAp4BW;;AAu4BZ;EA5zBA;EACA;EACA,OAlFc;EAmFd;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAozBC,kBAh5Ba;EAi5Bb;;AAEA;EACC;EACA;;;AAKH;AAEA;EACC;EACA,eA15Be;EA25Bf;EACA,OA/5Bc;EAg6Bd;EACA,eAl6Bc;;AAo6Bd;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC,YAj7Ba;EAk7Bb,cAl7Ba;EAm7Bb;;AAEA;EACC","file":"shortcodes.css"}
|
assets/js/yith-wcan-admin-filters.js
CHANGED
@@ -254,7 +254,11 @@ function YITH_WCAN_Filters( $ ) {
|
|
254 |
|
255 |
$.get( ajaxurl, getAjaxParams( { term: '', all: 1 } ) ).then(
|
256 |
( data ) => {
|
257 |
-
|
|
|
|
|
|
|
|
|
258 |
|
259 |
$termSearch
|
260 |
.find( 'option' )
|
254 |
|
255 |
$.get( ajaxurl, getAjaxParams( { term: '', all: 1 } ) ).then(
|
256 |
( data ) => {
|
257 |
+
let selected = $termSearch.val();
|
258 |
+
|
259 |
+
if ( ! selected ) {
|
260 |
+
selected = [];
|
261 |
+
}
|
262 |
|
263 |
$termSearch
|
264 |
.find( 'option' )
|
assets/js/yith-wcan-admin-filters.min.js
CHANGED
@@ -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.$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()}
|
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=>{let r=n.val();r||(r=[]),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()}
|
assets/js/yith-wcan-shortcodes.js
CHANGED
@@ -37,7 +37,17 @@ function YITH_WCAN_Filter( $ ) {
|
|
37 |
// execute call to filter products in current view
|
38 |
self.doFilter = function ( filters, target, preset ) {
|
39 |
let targetUrl,
|
40 |
-
$target = target ? $( target ) : $( 'body' )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
// block elements before filtering
|
43 |
$target && self.block( $target );
|
@@ -78,6 +88,17 @@ function YITH_WCAN_Filter( $ ) {
|
|
78 |
] );
|
79 |
};
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
// actions performed after filter
|
82 |
self._afterFilter = function ( response, filters ) {
|
83 |
$( '.woocommerce-ordering' ).on(
|
@@ -156,9 +177,9 @@ function YITH_WCAN_Filter( $ ) {
|
|
156 |
}
|
157 |
|
158 |
a +=
|
159 |
-
|
160 |
'=' +
|
161 |
-
|
162 |
'&';
|
163 |
|
164 |
return a;
|
@@ -936,7 +957,7 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
936 |
|
937 |
filter
|
938 |
?.doFilter( self.getFiltersProperties(), self.target, self.preset )
|
939 |
-
|
940 |
let newPreset = $( self.preset );
|
941 |
|
942 |
if (
|
@@ -1361,7 +1382,7 @@ function YITH_WCAN_Preset( el, $ ) {
|
|
1361 |
? $label.find( ':input' ).val()
|
1362 |
: $anchor.data( 'term-slug' );
|
1363 |
|
1364 |
-
if ( value === properties[ taxonomy ] ) {
|
1365 |
$item.children( 'label' ).children( 'a' ).click();
|
1366 |
$item.removeClass( 'active' );
|
1367 |
}
|
@@ -1796,6 +1817,7 @@ function YITH_WCAN_Dropdown( el, $, opts ) {
|
|
1796 |
|
1797 |
const defaultPerPage = self.$origialSelect.data( 'per_page' ),
|
1798 |
defaultOrder = self.$origialSelect.data( 'order' ),
|
|
|
1799 |
defaults = {
|
1800 |
showSearch: self.$origialSelect.data( 'show_search' ),
|
1801 |
paginate: self.$origialSelect.data( 'paginate' ),
|
@@ -1803,7 +1825,9 @@ function YITH_WCAN_Dropdown( el, $, opts ) {
|
|
1803 |
order: defaultOrder ? defaultOrder : 'ASC',
|
1804 |
getElements: null,
|
1805 |
labels: {
|
1806 |
-
emptyLabel:
|
|
|
|
|
1807 |
searchPlaceholder:
|
1808 |
yith_wcan_shortcodes.labels.search_placeholder,
|
1809 |
noItemsFound: yith_wcan_shortcodes.labels.no_items,
|
37 |
// execute call to filter products in current view
|
38 |
self.doFilter = function ( filters, target, preset ) {
|
39 |
let targetUrl,
|
40 |
+
$target = target ? $( target ) : $( 'body' ),
|
41 |
+
customFilters;
|
42 |
+
|
43 |
+
// filter properties
|
44 |
+
customFilters = $(
|
45 |
+
document
|
46 |
+
).triggerHandler( 'yith_wcan_filters_parameters', [ filters ] );
|
47 |
+
|
48 |
+
if ( !! customFilters ) {
|
49 |
+
filters = customFilters;
|
50 |
+
}
|
51 |
|
52 |
// block elements before filtering
|
53 |
$target && self.block( $target );
|
88 |
] );
|
89 |
};
|
90 |
|
91 |
+
// clean url parameters
|
92 |
+
self._cleanParam = function ( param ) {
|
93 |
+
let sanitized = encodeURIComponent( param );
|
94 |
+
|
95 |
+
if ( yith_wcan_shortcodes?.skip_sanitize ) {
|
96 |
+
sanitized = param;
|
97 |
+
}
|
98 |
+
|
99 |
+
return sanitized;
|
100 |
+
};
|
101 |
+
|
102 |
// actions performed after filter
|
103 |
self._afterFilter = function ( response, filters ) {
|
104 |
$( '.woocommerce-ordering' ).on(
|
177 |
}
|
178 |
|
179 |
a +=
|
180 |
+
self._cleanParam( i ) +
|
181 |
'=' +
|
182 |
+
self._cleanParam( v ) +
|
183 |
'&';
|
184 |
|
185 |
return a;
|
957 |
|
958 |
filter
|
959 |
?.doFilter( self.getFiltersProperties(), self.target, self.preset )
|
960 |
+
?.done( () => {
|
961 |
let newPreset = $( self.preset );
|
962 |
|
963 |
if (
|
1382 |
? $label.find( ':input' ).val()
|
1383 |
: $anchor.data( 'term-slug' );
|
1384 |
|
1385 |
+
if ( value?.toString() === properties[ taxonomy ]?.toString() ) {
|
1386 |
$item.children( 'label' ).children( 'a' ).click();
|
1387 |
$item.removeClass( 'active' );
|
1388 |
}
|
1817 |
|
1818 |
const defaultPerPage = self.$origialSelect.data( 'per_page' ),
|
1819 |
defaultOrder = self.$origialSelect.data( 'order' ),
|
1820 |
+
defaultAll = self.$origialSelect.data( 'all-label' ),
|
1821 |
defaults = {
|
1822 |
showSearch: self.$origialSelect.data( 'show_search' ),
|
1823 |
paginate: self.$origialSelect.data( 'paginate' ),
|
1825 |
order: defaultOrder ? defaultOrder : 'ASC',
|
1826 |
getElements: null,
|
1827 |
labels: {
|
1828 |
+
emptyLabel: defaultAll
|
1829 |
+
? defaultAll
|
1830 |
+
: yith_wcan_shortcodes.labels.empty_option,
|
1831 |
searchPlaceholder:
|
1832 |
yith_wcan_shortcodes.labels.search_placeholder,
|
1833 |
noItemsFound: yith_wcan_shortcodes.labels.no_items,
|
assets/js/yith-wcan-shortcodes.min.js
CHANGED
@@ -1 +1 @@
|
|
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)}));
|
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 a,o,s=e(n||"body");if(o=e(document).triggerHandler("yith_wcan_filters_parameters",[i]),o&&(i=o),s&&t.block(s),a=t.buildUrl(i),yith_wcan_shortcodes.ajax_filters)return t.doingAjax=!0,t._doAjax(a).done((function(e){a=t.searchAlternativeUrl(e,a),t._beforeFilter(e,i),t.refreshFragments(n,l,e),t.pushUrlToHistory(a,e.pageTitle),s&&t.unblock(s),t._afterFilter(e,i),t.doingAjax=!1}));window.location=a},t._beforeFilter=function(t,i){e(document).trigger("yith-wcan-ajax-loading",[t,i])},t._cleanParam=function(e){let t=encodeURIComponent(e);return yith_wcan_shortcodes?.skip_sanitize&&(t=e),t},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={},a=window.location,o=yith_wcan_shortcodes.base_url?yith_wcan_shortcodes.base_url:a?.origin+a?.pathname,s="";const r="object"==typeof i&&Object.keys(i).length;if(yith_wcan_shortcodes.session_param&&(o=o.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,i){const n=l[i];return n&&i?e+=t._cleanParam(i)+"="+t._cleanParam(n)+"&":e}),"?").replace(/&$/g,"").replace(/%2B/g,"+").replace(/%2C/g,","),s.length>1&&(o+=s),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"),a=e(l);if(l.innerHTML=n,t){let n,l=e(i),o=e(t);l.length&&(n=a.find(i),n.length&&l.replaceWith(n.first())),o.length&&(n=a.find(t),n.length&&o.replaceWith(n.first()))}else{const t=e(yith_wcan_shortcodes.content);t.length?t.replaceWith(a.find(yith_wcan_shortcodes.content)):e("body").replaceWith(a.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"),a=!!l.length&&"yes"===l.data("multiple"),o=n.closest(".filter-item"),s=o.length?l.find(".filter-item").not(o):[];if(o.is(".disabled")&&!o.is(".active"))return e.preventDefault(),!1;e.preventDefault(),s.length&&!a&&s.removeClass("active"),o.length&&o.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(),a=0,o=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),o=n.outerWidth()+6,n.outerWidth(o),a="top"===i?(l-o)/2:l+15,n.css({left:a.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"),a=parseFloat(t.data("min")),o=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:a,max:o,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")),a=parseFloat(e.find(".price-slider-min").val()),o=parseFloat(e.find(".price-slider-max").val());t=a>n||o<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,a={};switch(e.data("filter-type")){case"tax":let i=e.find(".filter-dropdown"),n=[],o=e.data("taxonomy"),s=0===o.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?",":"+";a[o]=n.join(e)}else a[o]=n.pop();s&&(a[o.replace("filter_","query_type_")]=c);break;case"review":a.rating_filter=e.find("select").val();break;case"price_range":l=e.find(".filter-item").filter(".active").first().children("a"),a.min_price=parseFloat(l.data("range-min")),a.max_price=parseFloat(l.data("range-max"));break;case"price_slider":a.min_price=parseFloat(e.find(".price-slider-min").val()),a.max_price=parseFloat(e.find(".price-slider-max").val());break;case"stock_sale":e.find(".filter-on-sale").is(".active")&&(a.onsale_filter=1),e.find(".filter-in-stock").is(".active")&&(a.instock_filter=1);break;case"orderby":a.orderby=e.find(".filter-order-by").val()}return n=e.triggerHandler("yith_wcan_filter_properties",a,i),a=void 0!==n?n:a,a},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 a=e.data("filter-type"),o=e.find(".filter-item"),s=o.filter(".active");switch(a){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),a=i.children("label"),o=i.children("a");e=a.length?a.find(":input").val():o.data("term-slug"),e?.toString()===n[l]?.toString()&&(i.children("label").children("a").click(),i.removeClass("active"))})):(s.children("label").children("a").click(),s.removeClass("active"));break;case"price_slider":const a=e.find(".price-slider");e.find(".price-slider-min").val(a.data("min")),e.find(".price-slider-max").val(a.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(),o.removeClass("active"));break;case"review":e.find(".filter-dropdown").val("").change();break;default:o.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 a=e[t].replace(",",l)+l+i[t].replace(",",l);if(a=a.split(l).filter(((e,t,i)=>i.indexOf(e)===t)).join(l),e[t]=a,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"),a=n.$origialSelect.data("all-label"),o={showSearch:n.$origialSelect.data("show_search"),paginate:n.$origialSelect.data("paginate"),perPage:e||10,order:l||"ASC",getElements:null,labels:{emptyLabel:a||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"}),a=t("<ul/>",{class:"matching-items filter-items"});l.append(a),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=a},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"),a=!1;if(e.preventDefault(),i.hasClass("disabled")&&!n.isValueSelected(l))return!1;i.toggleClass("active"),a=i.hasClass("active"),a&&i.siblings().removeClass("active"),n._changeItemStatus(l,a)})),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,a=[],o=n.getOptions();return l=new Promise((l=>{o.each((function(){const i=t(this),n=i.val(),l=i.html(),o=new RegExp(".*"+e+".*","i");(!e||o.test(n)||o.test(l))&&a.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)),[]),a=t.extend(a,e)),l(n._formatItems(a,i))})):l(n._formatItems(a,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,a=n.isValueSelected(e),o=n.getOptionByValue(e),s=t("<li/>",{"data-value":e,class:o.length?o.attr("class"):""});if(o.length){const e=o.data("template"),t=o.data("count");i=e||i,t&&(i+=t)}if(l=t("<a/>",{href:o.length?o.data("filter_url"):"#",html:i,"data-title":o.length?o.data("title"):""}),n.$origialSelect.prop("multiple")){const i=t("<input/>",{type:"checkbox",value:e}),n=t("<label>");i.prop("checked",a),n.prepend(i).append(l),s.append(n).addClass("checkbox")}else s.append(l);return a?s.addClass("active"):s.removeClass("active"),s},n._populateItems=function(e){let i,l=n.$_search?.length?n.$_search.val():"",a=n.options.paginate?n.options.perPage:0;i=(e=e?parseInt(e):1)*a,n.getMatchingElements(l,i).then((function(i){let l=i.items,a=[],o=!1;if(n._emptyItems(),n._hideLoadMore(),l.length){for(const e of l)""===e.value?a.unshift(n._generateItem(e.value,e.label)):a.push(n._generateItem(e.value,e.label));n.currentPage=e,o=i.hasMore}else a.push(t("<li/>",{text:n.options.labels.noItemsFound})),n.currentPage=1;n.$_items.append(a),t(document).trigger("yith_wcan_dropdown_updated"),o&&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)}));
|
assets/scss/shortcodes.scss
CHANGED
@@ -484,6 +484,10 @@ $z-index: 1001; // value is this high since modal must be on top of Proteo's sti
|
|
484 |
.price-slider {
|
485 |
padding: 20px 10px;
|
486 |
|
|
|
|
|
|
|
|
|
487 |
.irs-bar,
|
488 |
.irs-line{
|
489 |
height: 5px;
|
484 |
.price-slider {
|
485 |
padding: 20px 10px;
|
486 |
|
487 |
+
.irs {
|
488 |
+
font-family: inherit;
|
489 |
+
}
|
490 |
+
|
491 |
.irs-bar,
|
492 |
.irs-line{
|
493 |
height: 5px;
|
includes/class.yith-wcan-filter.php
CHANGED
@@ -205,7 +205,7 @@ if ( ! class_exists( 'YITH_WCAN_Filter' ) ) {
|
|
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 |
/**
|
205 |
* @return bool Whether current filter is active.
|
206 |
*/
|
207 |
public function is_active() {
|
208 |
+
return apply_filters( 'yith_wcan_is_filter_active', YITH_WCAN_Query()->is_filtered_by( $this->type ), $this );
|
209 |
}
|
210 |
|
211 |
/**
|
includes/class.yith-wcan-preset.php
CHANGED
@@ -34,6 +34,13 @@ if ( ! class_exists( 'YITH_WCAN_Preset' ) ) {
|
|
34 |
*/
|
35 |
protected $data;
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
/**
|
38 |
* Preset filters will be stored here, sometimes before they persist in the DB.
|
39 |
*
|
@@ -96,6 +103,24 @@ if ( ! class_exists( 'YITH_WCAN_Preset' ) ) {
|
|
96 |
|
97 |
/* === GETTERS === */
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
/**
|
100 |
* Get preset title
|
101 |
*
|
@@ -165,6 +190,19 @@ if ( ! class_exists( 'YITH_WCAN_Preset' ) ) {
|
|
165 |
return implode( ' ', $additional_classes );
|
166 |
}
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
/* === SETTERS === */
|
169 |
|
170 |
/**
|
34 |
*/
|
35 |
protected $data;
|
36 |
|
37 |
+
/**
|
38 |
+
* Original post for the preset
|
39 |
+
*
|
40 |
+
* @var WP_Post
|
41 |
+
*/
|
42 |
+
protected $post;
|
43 |
+
|
44 |
/**
|
45 |
* Preset filters will be stored here, sometimes before they persist in the DB.
|
46 |
*
|
103 |
|
104 |
/* === GETTERS === */
|
105 |
|
106 |
+
/**
|
107 |
+
* Magic getter method
|
108 |
+
*
|
109 |
+
* @param string $key Key to get.
|
110 |
+
* @return mixed Value retrieved, or null.
|
111 |
+
*/
|
112 |
+
public function __get( $key ) {
|
113 |
+
$method = 'get_' . $key;
|
114 |
+
|
115 |
+
if ( method_exists( $this, $method ) ) {
|
116 |
+
return $this->{$method}();
|
117 |
+
} elseif ( isset( $this->get_post()->$key ) ) {
|
118 |
+
return $this->get_post()->$key;
|
119 |
+
}
|
120 |
+
|
121 |
+
return null;
|
122 |
+
}
|
123 |
+
|
124 |
/**
|
125 |
* Get preset title
|
126 |
*
|
190 |
return implode( ' ', $additional_classes );
|
191 |
}
|
192 |
|
193 |
+
/**
|
194 |
+
* Returns original post object for current preset
|
195 |
+
*
|
196 |
+
* @return WP_Post|bool Original post, or false if an error occurred.
|
197 |
+
*/
|
198 |
+
public function get_post() {
|
199 |
+
if ( $this->get_id() && empty( $this->post ) ) {
|
200 |
+
$this->post = get_post( $this->get_id() );
|
201 |
+
}
|
202 |
+
|
203 |
+
return $this->post;
|
204 |
+
}
|
205 |
+
|
206 |
/* === SETTERS === */
|
207 |
|
208 |
/**
|
includes/class.yith-wcan-query.php
CHANGED
@@ -305,7 +305,7 @@ if ( ! class_exists( 'YITH_WCAN_Query' ) ) {
|
|
305 |
$values[] = array(
|
306 |
'label' => $term->name,
|
307 |
'query_vars' => array(
|
308 |
-
$filter => $term_slug,
|
309 |
),
|
310 |
);
|
311 |
}
|
305 |
$values[] = array(
|
306 |
'label' => $term->name,
|
307 |
'query_vars' => array(
|
308 |
+
$filter => yith_wcan_esc_term_slug( $term_slug ),
|
309 |
),
|
310 |
);
|
311 |
}
|
includes/compatibility/plugins/wpml/wpml.php
CHANGED
@@ -58,6 +58,21 @@ class WPML_Language_Metabox {
|
|
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 |
/**
|
@@ -86,15 +101,17 @@ class WPML_Language_Metabox {
|
|
86 |
|
87 |
?>
|
88 |
<div id="<?php echo esc_attr( WPML_Meta_Boxes_Post_Edit_HTML::WRAPPER_ID ); ?>">
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
|
|
|
|
98 |
</div>
|
99 |
<?php
|
100 |
}
|
@@ -215,13 +232,11 @@ class WPML_Language_Metabox {
|
|
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() === $
|
225 |
}
|
226 |
|
227 |
/**
|
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 |
+
add_action( 'yith_wcan_save_preset', array( $this, 'process_save_post' ), 10, 2 );
|
62 |
+
}
|
63 |
+
|
64 |
+
/**
|
65 |
+
* Save WPML meta box when saving the preset
|
66 |
+
*
|
67 |
+
* @param int $preset_id Preset id.
|
68 |
+
* @param YITH_WCAN_Preset $preset Preset object.
|
69 |
+
*
|
70 |
+
* @return void
|
71 |
+
*/
|
72 |
+
public function process_save_post( $preset_id, $preset ) {
|
73 |
+
global $wpml_post_translations;
|
74 |
+
|
75 |
+
$wpml_post_translations->save_post_actions( $preset_id, $preset->get_post() );
|
76 |
}
|
77 |
|
78 |
/**
|
101 |
|
102 |
?>
|
103 |
<div id="<?php echo esc_attr( WPML_Meta_Boxes_Post_Edit_HTML::WRAPPER_ID ); ?>">
|
104 |
+
<div class="inside">
|
105 |
+
<?php
|
106 |
+
if ( $post ) {
|
107 |
+
add_filter( 'wpml_post_edit_can_translate', '__return_true' );
|
108 |
+
$this->sitepress->meta_box( $post );
|
109 |
+
} elseif ( $trid ) {
|
110 |
+
// Used by WPML for connecting new manual translations to their originals.
|
111 |
+
echo '<input type="hidden" name="icl_trid" value="' . esc_attr( $trid ) . '" />';
|
112 |
+
}
|
113 |
+
?>
|
114 |
+
</div>
|
115 |
</div>
|
116 |
<?php
|
117 |
}
|
232 |
* @return int
|
233 |
*/
|
234 |
private function is_preset_page() {
|
|
|
|
|
235 |
if ( empty( $this->panel_slug ) ) {
|
236 |
$this->panel_slug = YITH_WCAN()->admin->get_panel_page();
|
237 |
}
|
238 |
|
239 |
+
return ! empty( $_GET['page'] ) && ! empty( $_GET['preset'] ) && $this->get_panel_slug() === $_GET['page'];
|
240 |
}
|
241 |
|
242 |
/**
|
includes/filters/class.yith-wcan-filter-tax.php
CHANGED
@@ -34,7 +34,7 @@ if ( ! class_exists( 'YITH_WCAN_Filter_Tax' ) ) {
|
|
34 |
* @return bool Whether current filter is active.
|
35 |
*/
|
36 |
public function is_active() {
|
37 |
-
return YITH_WCAN_Query()->is_filtered_by(
|
38 |
}
|
39 |
|
40 |
/**
|
@@ -59,9 +59,10 @@ if ( ! class_exists( 'YITH_WCAN_Filter_Tax' ) ) {
|
|
59 |
*/
|
60 |
public function render_start( $level = 0 ) {
|
61 |
$atts = array(
|
62 |
-
'
|
63 |
-
'
|
64 |
-
'
|
|
|
65 |
);
|
66 |
|
67 |
return yith_wcan_get_template( 'filters/filter-tax/filter-start.php', $atts, false );
|
34 |
* @return bool Whether current filter is active.
|
35 |
*/
|
36 |
public function is_active() {
|
37 |
+
return apply_filters( 'yith_wcan_is_filter_active', YITH_WCAN_Query()->is_filtered_by($this->get_taxonomy() ), $this );
|
38 |
}
|
39 |
|
40 |
/**
|
59 |
*/
|
60 |
public function render_start( $level = 0 ) {
|
61 |
$atts = array(
|
62 |
+
'all_label' => apply_filters( 'yith_wcan_all_filters_label', _x( 'All', '[FRONTEND] "All" label shown when no term is selected', 'yith-woocommerce-ajax-navigation' ), $this ),
|
63 |
+
'filter' => $this,
|
64 |
+
'preset' => $this->get_preset(),
|
65 |
+
'level' => $level,
|
66 |
);
|
67 |
|
68 |
return yith_wcan_get_template( 'filters/filter-tax/filter-start.php', $atts, false );
|
includes/functions.yith-wcan.php
CHANGED
@@ -933,7 +933,20 @@ if ( ! function_exists( 'yith_wcan_separate_terms' ) ) {
|
|
933 |
* @return array Array of terms.
|
934 |
*/
|
935 |
function yith_wcan_separate_terms( $terms ) {
|
936 |
-
return preg_split( '/,|\+|%2c|%2b/i', $terms );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
937 |
}
|
938 |
}
|
939 |
|
933 |
* @return array Array of terms.
|
934 |
*/
|
935 |
function yith_wcan_separate_terms( $terms ) {
|
936 |
+
return array_map( 'sanitize_title', preg_split( '/,|\+|%2c|%2b/i', $terms ) );
|
937 |
+
}
|
938 |
+
}
|
939 |
+
|
940 |
+
if ( ! function_exists( 'yith_wcan_esc_term_slug' ) ) {
|
941 |
+
/**
|
942 |
+
* Escapes term slug before printing it (urldecode)
|
943 |
+
*
|
944 |
+
* @param string $term_slug Slug to escape.
|
945 |
+
*
|
946 |
+
* @return string Escaped slug.
|
947 |
+
*/
|
948 |
+
function yith_wcan_esc_term_slug( $term_slug ) {
|
949 |
+
return rawurldecode( $term_slug );
|
950 |
}
|
951 |
}
|
952 |
|
init.php
CHANGED
@@ -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.4
|
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.3
|
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.4' );
|
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' );
|
languages/yith-woocommerce-ajax-navigation-de_DE.mo
CHANGED
Binary file
|
languages/yith-woocommerce-ajax-navigation-de_DE.po
CHANGED
@@ -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"
|
@@ -445,6 +445,7 @@ msgid "New filter"
|
|
445 |
msgstr "Neuer Filter"
|
446 |
|
447 |
#: includes/class.yith-wcan-frontend.php:576
|
|
|
448 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
449 |
msgid "All"
|
450 |
msgstr "Alle"
|
@@ -602,7 +603,7 @@ msgctxt "For multicolor: I.E. white and red T-Shirt"
|
|
602 |
msgid "Color 2"
|
603 |
msgstr "Farbe 2"
|
604 |
|
605 |
-
#: includes/functions.yith-wcan.php:
|
606 |
msgctxt "[FRONTEND] Star rating template"
|
607 |
msgid "star"
|
608 |
msgid_plural "stars"
|
@@ -610,7 +611,7 @@ msgstr[0] "Stern"
|
|
610 |
msgstr[1] "Sternen"
|
611 |
|
612 |
#. translators: 1. Rating.
|
613 |
-
#: includes/functions.yith-wcan.php:
|
614 |
msgctxt "[FRONTEND] Star rating label"
|
615 |
msgid "Rated %s out of 5"
|
616 |
msgstr "Bewertet mit %s von 5"
|
@@ -1342,16 +1343,15 @@ msgctxt "[ADMIN] Upgrade note modal dismiss label"
|
|
1342 |
msgid "No thanks"
|
1343 |
msgstr "Nein Danke"
|
1344 |
|
1345 |
-
#: templates/filters/filter-tax/filter-start.php:26
|
1346 |
-
msgctxt "[FRONTEND] General option for terms dropdown"
|
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"
|
1354 |
|
|
|
|
|
|
|
|
|
1355 |
#~ msgid "Parent tag"
|
1356 |
#~ msgstr "Übergeordnetes Schlagwort"
|
1357 |
|
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-05-18 10:20:00+00:00\n"
|
9 |
"PO-Revision-Date: 2021-03-02 11:03+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
445 |
msgstr "Neuer Filter"
|
446 |
|
447 |
#: includes/class.yith-wcan-frontend.php:576
|
448 |
+
#: includes/filters/class.yith-wcan-filter-tax.php:62
|
449 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
450 |
msgid "All"
|
451 |
msgstr "Alle"
|
603 |
msgid "Color 2"
|
604 |
msgstr "Farbe 2"
|
605 |
|
606 |
+
#: includes/functions.yith-wcan.php:1001
|
607 |
msgctxt "[FRONTEND] Star rating template"
|
608 |
msgid "star"
|
609 |
msgid_plural "stars"
|
611 |
msgstr[1] "Sternen"
|
612 |
|
613 |
#. translators: 1. Rating.
|
614 |
+
#: includes/functions.yith-wcan.php:1016
|
615 |
msgctxt "[FRONTEND] Star rating label"
|
616 |
msgid "Rated %s out of 5"
|
617 |
msgstr "Bewertet mit %s von 5"
|
1343 |
msgid "No thanks"
|
1344 |
msgstr "Nein Danke"
|
1345 |
|
|
|
|
|
|
|
|
|
|
|
1346 |
#: templates/filters/global/reset-filters.php:23
|
1347 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1348 |
msgid "Reset filters"
|
1349 |
msgstr "Filter zurücksetzen"
|
1350 |
|
1351 |
+
#~ msgctxt "[FRONTEND] General option for terms dropdown"
|
1352 |
+
#~ msgid "All"
|
1353 |
+
#~ msgstr "Alle"
|
1354 |
+
|
1355 |
#~ msgid "Parent tag"
|
1356 |
#~ msgstr "Übergeordnetes Schlagwort"
|
1357 |
|
languages/yith-woocommerce-ajax-navigation-de_DE_formal.mo
CHANGED
Binary file
|
languages/yith-woocommerce-ajax-navigation-de_DE_formal.po
CHANGED
@@ -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"
|
@@ -446,6 +446,7 @@ msgid "New filter"
|
|
446 |
msgstr "Neuer Filter"
|
447 |
|
448 |
#: includes/class.yith-wcan-frontend.php:576
|
|
|
449 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
450 |
msgid "All"
|
451 |
msgstr "Alle"
|
@@ -603,7 +604,7 @@ msgctxt "For multicolor: I.E. white and red T-Shirt"
|
|
603 |
msgid "Color 2"
|
604 |
msgstr "Farbe 2"
|
605 |
|
606 |
-
#: includes/functions.yith-wcan.php:
|
607 |
msgctxt "[FRONTEND] Star rating template"
|
608 |
msgid "star"
|
609 |
msgid_plural "stars"
|
@@ -611,7 +612,7 @@ msgstr[0] "Stern"
|
|
611 |
msgstr[1] "Sternen"
|
612 |
|
613 |
#. translators: 1. Rating.
|
614 |
-
#: includes/functions.yith-wcan.php:
|
615 |
msgctxt "[FRONTEND] Star rating label"
|
616 |
msgid "Rated %s out of 5"
|
617 |
msgstr "Bewertet mit %s von 5"
|
@@ -1345,16 +1346,15 @@ msgctxt "[ADMIN] Upgrade note modal dismiss label"
|
|
1345 |
msgid "No thanks"
|
1346 |
msgstr "Nein Danke"
|
1347 |
|
1348 |
-
#: templates/filters/filter-tax/filter-start.php:26
|
1349 |
-
msgctxt "[FRONTEND] General option for terms dropdown"
|
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"
|
1357 |
|
|
|
|
|
|
|
|
|
1358 |
#~ msgid "Parent tag"
|
1359 |
#~ msgstr "Übergeordnetes Schlagwort"
|
1360 |
|
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-05-18 10:20:00+00:00\n"
|
9 |
"PO-Revision-Date: 2021-03-02 11:03+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
446 |
msgstr "Neuer Filter"
|
447 |
|
448 |
#: includes/class.yith-wcan-frontend.php:576
|
449 |
+
#: includes/filters/class.yith-wcan-filter-tax.php:62
|
450 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
451 |
msgid "All"
|
452 |
msgstr "Alle"
|
604 |
msgid "Color 2"
|
605 |
msgstr "Farbe 2"
|
606 |
|
607 |
+
#: includes/functions.yith-wcan.php:1001
|
608 |
msgctxt "[FRONTEND] Star rating template"
|
609 |
msgid "star"
|
610 |
msgid_plural "stars"
|
612 |
msgstr[1] "Sternen"
|
613 |
|
614 |
#. translators: 1. Rating.
|
615 |
+
#: includes/functions.yith-wcan.php:1016
|
616 |
msgctxt "[FRONTEND] Star rating label"
|
617 |
msgid "Rated %s out of 5"
|
618 |
msgstr "Bewertet mit %s von 5"
|
1346 |
msgid "No thanks"
|
1347 |
msgstr "Nein Danke"
|
1348 |
|
|
|
|
|
|
|
|
|
|
|
1349 |
#: templates/filters/global/reset-filters.php:23
|
1350 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1351 |
msgid "Reset filters"
|
1352 |
msgstr "Filter zurücksetzen"
|
1353 |
|
1354 |
+
#~ msgctxt "[FRONTEND] General option for terms dropdown"
|
1355 |
+
#~ msgid "All"
|
1356 |
+
#~ msgstr "Alle"
|
1357 |
+
|
1358 |
#~ msgid "Parent tag"
|
1359 |
#~ msgstr "Übergeordnetes Schlagwort"
|
1360 |
|
languages/yith-woocommerce-ajax-navigation-el.mo
CHANGED
Binary file
|
languages/yith-woocommerce-ajax-navigation-el.po
CHANGED
@@ -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"
|
@@ -445,6 +445,7 @@ msgid "New filter"
|
|
445 |
msgstr "Νέο φίλτρο"
|
446 |
|
447 |
#: includes/class.yith-wcan-frontend.php:576
|
|
|
448 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
449 |
msgid "All"
|
450 |
msgstr "Όλα"
|
@@ -602,7 +603,7 @@ msgctxt "For multicolor: I.E. white and red T-Shirt"
|
|
602 |
msgid "Color 2"
|
603 |
msgstr "Χρώμα 2"
|
604 |
|
605 |
-
#: includes/functions.yith-wcan.php:
|
606 |
msgctxt "[FRONTEND] Star rating template"
|
607 |
msgid "star"
|
608 |
msgid_plural "stars"
|
@@ -610,7 +611,7 @@ msgstr[0] "αστέρι"
|
|
610 |
msgstr[1] "αστέρια"
|
611 |
|
612 |
#. translators: 1. Rating.
|
613 |
-
#: includes/functions.yith-wcan.php:
|
614 |
msgctxt "[FRONTEND] Star rating label"
|
615 |
msgid "Rated %s out of 5"
|
616 |
msgstr "Βαθμολογήθηκε με %s από 5"
|
@@ -1343,16 +1344,15 @@ msgctxt "[ADMIN] Upgrade note modal dismiss label"
|
|
1343 |
msgid "No thanks"
|
1344 |
msgstr "Όχι, ευχαριστώ"
|
1345 |
|
1346 |
-
#: templates/filters/filter-tax/filter-start.php:26
|
1347 |
-
msgctxt "[FRONTEND] General option for terms dropdown"
|
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 "Επαναφορά φίλτρων"
|
1355 |
|
|
|
|
|
|
|
|
|
1356 |
#~ msgctxt "[Admin] Filter edit form"
|
1357 |
#~ msgid "Yes, without toggles"
|
1358 |
#~ 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-05-18 10:20:00+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"
|
445 |
msgstr "Νέο φίλτρο"
|
446 |
|
447 |
#: includes/class.yith-wcan-frontend.php:576
|
448 |
+
#: includes/filters/class.yith-wcan-filter-tax.php:62
|
449 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
450 |
msgid "All"
|
451 |
msgstr "Όλα"
|
603 |
msgid "Color 2"
|
604 |
msgstr "Χρώμα 2"
|
605 |
|
606 |
+
#: includes/functions.yith-wcan.php:1001
|
607 |
msgctxt "[FRONTEND] Star rating template"
|
608 |
msgid "star"
|
609 |
msgid_plural "stars"
|
611 |
msgstr[1] "αστέρια"
|
612 |
|
613 |
#. translators: 1. Rating.
|
614 |
+
#: includes/functions.yith-wcan.php:1016
|
615 |
msgctxt "[FRONTEND] Star rating label"
|
616 |
msgid "Rated %s out of 5"
|
617 |
msgstr "Βαθμολογήθηκε με %s από 5"
|
1344 |
msgid "No thanks"
|
1345 |
msgstr "Όχι, ευχαριστώ"
|
1346 |
|
|
|
|
|
|
|
|
|
|
|
1347 |
#: templates/filters/global/reset-filters.php:23
|
1348 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1349 |
msgid "Reset filters"
|
1350 |
msgstr "Επαναφορά φίλτρων"
|
1351 |
|
1352 |
+
#~ msgctxt "[FRONTEND] General option for terms dropdown"
|
1353 |
+
#~ msgid "All"
|
1354 |
+
#~ msgstr "Όλα"
|
1355 |
+
|
1356 |
#~ msgctxt "[Admin] Filter edit form"
|
1357 |
#~ msgid "Yes, without toggles"
|
1358 |
#~ msgstr "Ναι, χωρίς εναλλαγές"
|
languages/yith-woocommerce-ajax-navigation-es_ES.mo
CHANGED
Binary file
|
languages/yith-woocommerce-ajax-navigation-es_ES.po
CHANGED
@@ -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"
|
@@ -443,6 +443,7 @@ msgid "New filter"
|
|
443 |
msgstr "Nuevo filtro"
|
444 |
|
445 |
#: includes/class.yith-wcan-frontend.php:576
|
|
|
446 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
447 |
msgid "All"
|
448 |
msgstr "Todo"
|
@@ -599,7 +600,7 @@ msgctxt "For multicolor: I.E. white and red T-Shirt"
|
|
599 |
msgid "Color 2"
|
600 |
msgstr "Color 2"
|
601 |
|
602 |
-
#: includes/functions.yith-wcan.php:
|
603 |
msgctxt "[FRONTEND] Star rating template"
|
604 |
msgid "star"
|
605 |
msgid_plural "stars"
|
@@ -607,7 +608,7 @@ msgstr[0] "estrella"
|
|
607 |
msgstr[1] "estrellas"
|
608 |
|
609 |
#. translators: 1. Rating.
|
610 |
-
#: includes/functions.yith-wcan.php:
|
611 |
msgctxt "[FRONTEND] Star rating label"
|
612 |
msgid "Rated %s out of 5"
|
613 |
msgstr "Valorado en %s sobre 5"
|
@@ -1337,16 +1338,15 @@ msgctxt "[ADMIN] Upgrade note modal dismiss label"
|
|
1337 |
msgid "No thanks"
|
1338 |
msgstr "No, gracias"
|
1339 |
|
1340 |
-
#: templates/filters/filter-tax/filter-start.php:26
|
1341 |
-
msgctxt "[FRONTEND] General option for terms dropdown"
|
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"
|
1349 |
|
|
|
|
|
|
|
|
|
1350 |
#~ msgctxt "[Admin] Filter edit form"
|
1351 |
#~ msgid "Yes, without toggles"
|
1352 |
#~ msgstr "Sí, sin alternar"
|
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-05-18 10:20:00+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"
|
443 |
msgstr "Nuevo filtro"
|
444 |
|
445 |
#: includes/class.yith-wcan-frontend.php:576
|
446 |
+
#: includes/filters/class.yith-wcan-filter-tax.php:62
|
447 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
448 |
msgid "All"
|
449 |
msgstr "Todo"
|
600 |
msgid "Color 2"
|
601 |
msgstr "Color 2"
|
602 |
|
603 |
+
#: includes/functions.yith-wcan.php:1001
|
604 |
msgctxt "[FRONTEND] Star rating template"
|
605 |
msgid "star"
|
606 |
msgid_plural "stars"
|
608 |
msgstr[1] "estrellas"
|
609 |
|
610 |
#. translators: 1. Rating.
|
611 |
+
#: includes/functions.yith-wcan.php:1016
|
612 |
msgctxt "[FRONTEND] Star rating label"
|
613 |
msgid "Rated %s out of 5"
|
614 |
msgstr "Valorado en %s sobre 5"
|
1338 |
msgid "No thanks"
|
1339 |
msgstr "No, gracias"
|
1340 |
|
|
|
|
|
|
|
|
|
|
|
1341 |
#: templates/filters/global/reset-filters.php:23
|
1342 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1343 |
msgid "Reset filters"
|
1344 |
msgstr "Restablecer filtros"
|
1345 |
|
1346 |
+
#~ msgctxt "[FRONTEND] General option for terms dropdown"
|
1347 |
+
#~ msgid "All"
|
1348 |
+
#~ msgstr "Todo"
|
1349 |
+
|
1350 |
#~ msgctxt "[Admin] Filter edit form"
|
1351 |
#~ msgid "Yes, without toggles"
|
1352 |
#~ msgstr "Sí, sin alternar"
|
languages/yith-woocommerce-ajax-navigation-fr_FR.mo
CHANGED
Binary file
|
languages/yith-woocommerce-ajax-navigation-fr_FR.po
CHANGED
@@ -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"
|
@@ -421,6 +421,7 @@ msgid "New filter"
|
|
421 |
msgstr ""
|
422 |
|
423 |
#: includes/class.yith-wcan-frontend.php:576
|
|
|
424 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
425 |
msgid "All"
|
426 |
msgstr ""
|
@@ -571,7 +572,7 @@ msgctxt "For multicolor: I.E. white and red T-Shirt"
|
|
571 |
msgid "Color 2"
|
572 |
msgstr "Couleur 2"
|
573 |
|
574 |
-
#: includes/functions.yith-wcan.php:
|
575 |
msgctxt "[FRONTEND] Star rating template"
|
576 |
msgid "star"
|
577 |
msgid_plural "stars"
|
@@ -579,7 +580,7 @@ msgstr[0] ""
|
|
579 |
msgstr[1] ""
|
580 |
|
581 |
#. translators: 1. Rating.
|
582 |
-
#: includes/functions.yith-wcan.php:
|
583 |
msgctxt "[FRONTEND] Star rating label"
|
584 |
msgid "Rated %s out of 5"
|
585 |
msgstr ""
|
@@ -1251,11 +1252,6 @@ msgctxt "[ADMIN] Upgrade note modal dismiss label"
|
|
1251 |
msgid "No thanks"
|
1252 |
msgstr ""
|
1253 |
|
1254 |
-
#: templates/filters/filter-tax/filter-start.php:26
|
1255 |
-
msgctxt "[FRONTEND] General option for terms dropdown"
|
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"
|
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-05-18 10:20:00+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"
|
421 |
msgstr ""
|
422 |
|
423 |
#: includes/class.yith-wcan-frontend.php:576
|
424 |
+
#: includes/filters/class.yith-wcan-filter-tax.php:62
|
425 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
426 |
msgid "All"
|
427 |
msgstr ""
|
572 |
msgid "Color 2"
|
573 |
msgstr "Couleur 2"
|
574 |
|
575 |
+
#: includes/functions.yith-wcan.php:1001
|
576 |
msgctxt "[FRONTEND] Star rating template"
|
577 |
msgid "star"
|
578 |
msgid_plural "stars"
|
580 |
msgstr[1] ""
|
581 |
|
582 |
#. translators: 1. Rating.
|
583 |
+
#: includes/functions.yith-wcan.php:1016
|
584 |
msgctxt "[FRONTEND] Star rating label"
|
585 |
msgid "Rated %s out of 5"
|
586 |
msgstr ""
|
1252 |
msgid "No thanks"
|
1253 |
msgstr ""
|
1254 |
|
|
|
|
|
|
|
|
|
|
|
1255 |
#: templates/filters/global/reset-filters.php:23
|
1256 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1257 |
msgid "Reset filters"
|
languages/yith-woocommerce-ajax-navigation-it_IT.mo
CHANGED
Binary file
|
languages/yith-woocommerce-ajax-navigation-it_IT.po
CHANGED
@@ -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"
|
@@ -438,6 +438,7 @@ msgid "New filter"
|
|
438 |
msgstr "Nuovo filtro"
|
439 |
|
440 |
#: includes/class.yith-wcan-frontend.php:576
|
|
|
441 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
442 |
msgid "All"
|
443 |
msgstr "Tutte"
|
@@ -593,7 +594,7 @@ msgctxt "For multicolor: I.E. white and red T-Shirt"
|
|
593 |
msgid "Color 2"
|
594 |
msgstr "Colore 2"
|
595 |
|
596 |
-
#: includes/functions.yith-wcan.php:
|
597 |
msgctxt "[FRONTEND] Star rating template"
|
598 |
msgid "star"
|
599 |
msgid_plural "stars"
|
@@ -601,7 +602,7 @@ msgstr[0] "stella"
|
|
601 |
msgstr[1] "stelle"
|
602 |
|
603 |
#. translators: 1. Rating.
|
604 |
-
#: includes/functions.yith-wcan.php:
|
605 |
msgctxt "[FRONTEND] Star rating label"
|
606 |
msgid "Rated %s out of 5"
|
607 |
msgstr "Valutato %s su 5"
|
@@ -1379,16 +1380,15 @@ msgctxt "[ADMIN] Upgrade note modal dismiss label"
|
|
1379 |
msgid "No thanks"
|
1380 |
msgstr "No grazie"
|
1381 |
|
1382 |
-
#: templates/filters/filter-tax/filter-start.php:26
|
1383 |
-
msgctxt "[FRONTEND] General option for terms dropdown"
|
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"
|
1391 |
|
|
|
|
|
|
|
|
|
1392 |
#~ msgctxt "[Admin] Filter edit form"
|
1393 |
#~ msgid "Yes, without toggles"
|
1394 |
#~ msgstr "Sì, senza toggle"
|
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-05-18 10:20:00+00:00\n"
|
9 |
"PO-Revision-Date: 2021-03-03 10:36+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: \n"
|
438 |
msgstr "Nuovo filtro"
|
439 |
|
440 |
#: includes/class.yith-wcan-frontend.php:576
|
441 |
+
#: includes/filters/class.yith-wcan-filter-tax.php:62
|
442 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
443 |
msgid "All"
|
444 |
msgstr "Tutte"
|
594 |
msgid "Color 2"
|
595 |
msgstr "Colore 2"
|
596 |
|
597 |
+
#: includes/functions.yith-wcan.php:1001
|
598 |
msgctxt "[FRONTEND] Star rating template"
|
599 |
msgid "star"
|
600 |
msgid_plural "stars"
|
602 |
msgstr[1] "stelle"
|
603 |
|
604 |
#. translators: 1. Rating.
|
605 |
+
#: includes/functions.yith-wcan.php:1016
|
606 |
msgctxt "[FRONTEND] Star rating label"
|
607 |
msgid "Rated %s out of 5"
|
608 |
msgstr "Valutato %s su 5"
|
1380 |
msgid "No thanks"
|
1381 |
msgstr "No grazie"
|
1382 |
|
|
|
|
|
|
|
|
|
|
|
1383 |
#: templates/filters/global/reset-filters.php:23
|
1384 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1385 |
msgid "Reset filters"
|
1386 |
msgstr "Resetta filtri"
|
1387 |
|
1388 |
+
#~ msgctxt "[FRONTEND] General option for terms dropdown"
|
1389 |
+
#~ msgid "All"
|
1390 |
+
#~ msgstr "Tutti"
|
1391 |
+
|
1392 |
#~ msgctxt "[Admin] Filter edit form"
|
1393 |
#~ msgid "Yes, without toggles"
|
1394 |
#~ msgstr "Sì, senza toggle"
|
languages/yith-woocommerce-ajax-navigation-nl_NL.mo
CHANGED
Binary file
|
languages/yith-woocommerce-ajax-navigation-nl_NL.po
CHANGED
@@ -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"
|
@@ -439,6 +439,7 @@ msgid "New filter"
|
|
439 |
msgstr "Nieuwe filter"
|
440 |
|
441 |
#: includes/class.yith-wcan-frontend.php:576
|
|
|
442 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
443 |
msgid "All"
|
444 |
msgstr "Alle"
|
@@ -596,7 +597,7 @@ msgctxt "For multicolor: I.E. white and red T-Shirt"
|
|
596 |
msgid "Color 2"
|
597 |
msgstr "Kleur 2"
|
598 |
|
599 |
-
#: includes/functions.yith-wcan.php:
|
600 |
msgctxt "[FRONTEND] Star rating template"
|
601 |
msgid "star"
|
602 |
msgid_plural "stars"
|
@@ -604,7 +605,7 @@ msgstr[0] "ster"
|
|
604 |
msgstr[1] "sterren"
|
605 |
|
606 |
#. translators: 1. Rating.
|
607 |
-
#: includes/functions.yith-wcan.php:
|
608 |
msgctxt "[FRONTEND] Star rating label"
|
609 |
msgid "Rated %s out of 5"
|
610 |
msgstr "Waardering %s van de 5"
|
@@ -1331,16 +1332,15 @@ msgctxt "[ADMIN] Upgrade note modal dismiss label"
|
|
1331 |
msgid "No thanks"
|
1332 |
msgstr "Nee bedankt"
|
1333 |
|
1334 |
-
#: templates/filters/filter-tax/filter-start.php:26
|
1335 |
-
msgctxt "[FRONTEND] General option for terms dropdown"
|
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"
|
1343 |
|
|
|
|
|
|
|
|
|
1344 |
#~ msgctxt "[Admin] Filter edit form"
|
1345 |
#~ msgid "Yes, without toggles"
|
1346 |
#~ msgstr "Ja, zonder toggles"
|
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-05-18 10:20:00+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"
|
439 |
msgstr "Nieuwe filter"
|
440 |
|
441 |
#: includes/class.yith-wcan-frontend.php:576
|
442 |
+
#: includes/filters/class.yith-wcan-filter-tax.php:62
|
443 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
444 |
msgid "All"
|
445 |
msgstr "Alle"
|
597 |
msgid "Color 2"
|
598 |
msgstr "Kleur 2"
|
599 |
|
600 |
+
#: includes/functions.yith-wcan.php:1001
|
601 |
msgctxt "[FRONTEND] Star rating template"
|
602 |
msgid "star"
|
603 |
msgid_plural "stars"
|
605 |
msgstr[1] "sterren"
|
606 |
|
607 |
#. translators: 1. Rating.
|
608 |
+
#: includes/functions.yith-wcan.php:1016
|
609 |
msgctxt "[FRONTEND] Star rating label"
|
610 |
msgid "Rated %s out of 5"
|
611 |
msgstr "Waardering %s van de 5"
|
1332 |
msgid "No thanks"
|
1333 |
msgstr "Nee bedankt"
|
1334 |
|
|
|
|
|
|
|
|
|
|
|
1335 |
#: templates/filters/global/reset-filters.php:23
|
1336 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1337 |
msgid "Reset filters"
|
1338 |
msgstr "Filters resetten"
|
1339 |
|
1340 |
+
#~ msgctxt "[FRONTEND] General option for terms dropdown"
|
1341 |
+
#~ msgid "All"
|
1342 |
+
#~ msgstr "Alle"
|
1343 |
+
|
1344 |
#~ msgctxt "[Admin] Filter edit form"
|
1345 |
#~ msgid "Yes, without toggles"
|
1346 |
#~ msgstr "Ja, zonder toggles"
|
languages/yith-woocommerce-ajax-navigation-tr_TR.mo
CHANGED
Binary file
|
languages/yith-woocommerce-ajax-navigation-tr_TR.po
CHANGED
@@ -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"
|
@@ -445,6 +445,7 @@ msgid "New filter"
|
|
445 |
msgstr ""
|
446 |
|
447 |
#: includes/class.yith-wcan-frontend.php:576
|
|
|
448 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
449 |
msgid "All"
|
450 |
msgstr ""
|
@@ -599,7 +600,7 @@ msgctxt "For multicolor: I.E. white and red T-Shirt"
|
|
599 |
msgid "Color 2"
|
600 |
msgstr ""
|
601 |
|
602 |
-
#: includes/functions.yith-wcan.php:
|
603 |
msgctxt "[FRONTEND] Star rating template"
|
604 |
msgid "star"
|
605 |
msgid_plural "stars"
|
@@ -607,7 +608,7 @@ msgstr[0] ""
|
|
607 |
msgstr[1] ""
|
608 |
|
609 |
#. translators: 1. Rating.
|
610 |
-
#: includes/functions.yith-wcan.php:
|
611 |
msgctxt "[FRONTEND] Star rating label"
|
612 |
msgid "Rated %s out of 5"
|
613 |
msgstr ""
|
@@ -1296,11 +1297,6 @@ msgctxt "[ADMIN] Upgrade note modal dismiss label"
|
|
1296 |
msgid "No thanks"
|
1297 |
msgstr ""
|
1298 |
|
1299 |
-
#: templates/filters/filter-tax/filter-start.php:26
|
1300 |
-
msgctxt "[FRONTEND] General option for terms dropdown"
|
1301 |
-
msgid "All"
|
1302 |
-
msgstr ""
|
1303 |
-
|
1304 |
#: templates/filters/global/reset-filters.php:23
|
1305 |
#, fuzzy
|
1306 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
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-05-18 10:20:00+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"
|
445 |
msgstr ""
|
446 |
|
447 |
#: includes/class.yith-wcan-frontend.php:576
|
448 |
+
#: includes/filters/class.yith-wcan-filter-tax.php:62
|
449 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
450 |
msgid "All"
|
451 |
msgstr ""
|
600 |
msgid "Color 2"
|
601 |
msgstr ""
|
602 |
|
603 |
+
#: includes/functions.yith-wcan.php:1001
|
604 |
msgctxt "[FRONTEND] Star rating template"
|
605 |
msgid "star"
|
606 |
msgid_plural "stars"
|
608 |
msgstr[1] ""
|
609 |
|
610 |
#. translators: 1. Rating.
|
611 |
+
#: includes/functions.yith-wcan.php:1016
|
612 |
msgctxt "[FRONTEND] Star rating label"
|
613 |
msgid "Rated %s out of 5"
|
614 |
msgstr ""
|
1297 |
msgid "No thanks"
|
1298 |
msgstr ""
|
1299 |
|
|
|
|
|
|
|
|
|
|
|
1300 |
#: templates/filters/global/reset-filters.php:23
|
1301 |
#, fuzzy
|
1302 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
languages/yith-woocommerce-ajax-navigation.pot
CHANGED
@@ -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"
|
@@ -432,6 +432,7 @@ msgid "New filter"
|
|
432 |
msgstr ""
|
433 |
|
434 |
#: includes/class.yith-wcan-frontend.php:576
|
|
|
435 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
436 |
msgid "All"
|
437 |
msgstr ""
|
@@ -581,14 +582,14 @@ msgctxt "For multicolor: I.E. white and red T-Shirt"
|
|
581 |
msgid "Color 2"
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: includes/functions.yith-wcan.php:
|
585 |
msgctxt "[FRONTEND] Star rating template"
|
586 |
msgid "star"
|
587 |
msgid_plural "stars"
|
588 |
msgstr[0] ""
|
589 |
msgstr[1] ""
|
590 |
|
591 |
-
#: includes/functions.yith-wcan.php:
|
592 |
#. translators: 1. Rating.
|
593 |
msgctxt "[FRONTEND] Star rating label"
|
594 |
msgid "Rated %s out of 5"
|
@@ -1251,11 +1252,6 @@ msgctxt "[ADMIN] Upgrade note modal dismiss label"
|
|
1251 |
msgid "No thanks"
|
1252 |
msgstr ""
|
1253 |
|
1254 |
-
#: templates/filters/filter-tax/filter-start.php:26
|
1255 |
-
msgctxt "[FRONTEND] General option for terms dropdown"
|
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"
|
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-05-18 10:20:00+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
432 |
msgstr ""
|
433 |
|
434 |
#: includes/class.yith-wcan-frontend.php:576
|
435 |
+
#: includes/filters/class.yith-wcan-filter-tax.php:62
|
436 |
msgctxt "[FRONTEND] \"All\" label shown when no term is selected"
|
437 |
msgid "All"
|
438 |
msgstr ""
|
582 |
msgid "Color 2"
|
583 |
msgstr ""
|
584 |
|
585 |
+
#: includes/functions.yith-wcan.php:1001
|
586 |
msgctxt "[FRONTEND] Star rating template"
|
587 |
msgid "star"
|
588 |
msgid_plural "stars"
|
589 |
msgstr[0] ""
|
590 |
msgstr[1] ""
|
591 |
|
592 |
+
#: includes/functions.yith-wcan.php:1016
|
593 |
#. translators: 1. Rating.
|
594 |
msgctxt "[FRONTEND] Star rating label"
|
595 |
msgid "Rated %s out of 5"
|
1252 |
msgid "No thanks"
|
1253 |
msgstr ""
|
1254 |
|
|
|
|
|
|
|
|
|
|
|
1255 |
#: templates/filters/global/reset-filters.php:23
|
1256 |
msgctxt "[FRONTEND] Reset button for preset shortcode"
|
1257 |
msgid "Reset filters"
|
plugin-fw/assets/css/yit-plugin-panel.css
CHANGED
@@ -56,12 +56,15 @@
|
|
56 |
box-sizing : border-box;
|
57 |
border : 1px solid #ccc;
|
58 |
border-top : 0;
|
59 |
-
margin : -20px
|
60 |
}
|
61 |
|
62 |
.yith-plugin-fw-panel-custom-tab-container > h2,
|
|
|
63 |
.yith-plugin-ui .yith-plugin-fw-panel-custom-tab-container > h2,
|
64 |
-
.yith-plugin-ui .yith-plugin-fw-panel-custom-
|
|
|
|
|
65 |
border : none;
|
66 |
padding : 15px 0;
|
67 |
}
|
@@ -90,17 +93,17 @@
|
|
90 |
margin : 5px 15px 15px 0;
|
91 |
}
|
92 |
|
93 |
-
.yith-plugin-fw-wp-page-wrapper .wrap {
|
94 |
border : 1px solid #d8d8d8;
|
95 |
border-top : 0;
|
96 |
-
margin :
|
97 |
background : #fff;
|
98 |
padding : 20px;
|
99 |
box-sizing : border-box;
|
100 |
}
|
101 |
|
102 |
-
.yith-plugin-fw-wp-page-wrapper .
|
103 |
-
margin
|
104 |
}
|
105 |
|
106 |
#wpwrap .yith-plugin-fw-wp-page-wrapper .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-fw-wp-page-wrapper .yith-plugin-ui h2.nav-tab-wrapper {
|
@@ -574,7 +577,7 @@
|
|
574 |
*/
|
575 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav {
|
576 |
background : #fff;
|
577 |
-
padding : 10px
|
578 |
box-sizing : border-box;
|
579 |
margin-right : 15px;
|
580 |
border-left : 1px solid #d8d8d8;
|
@@ -589,13 +592,12 @@
|
|
589 |
text-transform : uppercase;
|
590 |
line-height : inherit;
|
591 |
font-weight : 600;
|
592 |
-
margin
|
593 |
box-sizing : border-box;
|
594 |
background-color : #f1f1f1;
|
595 |
padding-top : 0;
|
596 |
border : 1px solid #ccc;
|
597 |
border-bottom : 0;
|
598 |
-
margin-top : 20px;
|
599 |
}
|
600 |
|
601 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab {
|
@@ -632,7 +634,7 @@
|
|
632 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab-active {
|
633 |
color : #2a8db0;
|
634 |
background : #fff;
|
635 |
-
border-bottom :
|
636 |
}
|
637 |
|
638 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab:first-child {
|
@@ -685,7 +687,7 @@ li.yith-plugin-fw-tab-element {
|
|
685 |
}
|
686 |
|
687 |
.yith-plugin-ui li.yith-plugin-fw-tab-element {
|
688 |
-
margin-bottom: -1px;
|
689 |
}
|
690 |
|
691 |
li.yith-plugin-fw-tab-element:hover {
|
@@ -726,6 +728,7 @@ li.yith-plugin-fw-tab-element:hover ul.nav-subtab {
|
|
726 |
li.yith-plugin-fw-tab-element a.nav-tab i {
|
727 |
margin-left : 10px;
|
728 |
font-size : 12px;
|
|
|
729 |
}
|
730 |
|
731 |
li.yith-plugin-fw-tab-element a.nav-tab i:before {
|
@@ -738,18 +741,51 @@ li.yith-plugin-fw-tab-element a.nav-tab i:before {
|
|
738 |
}
|
739 |
|
740 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yit-admin-panel-container,
|
741 |
-
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .
|
742 |
border : 1px solid #d8d8d8;
|
743 |
border-top : 0;
|
744 |
-
margin :
|
745 |
background : #fff;
|
746 |
-
padding : 20px;
|
747 |
box-sizing : border-box;
|
748 |
}
|
749 |
|
750 |
-
|
751 |
-
.yith-plugin-ui .
|
752 |
-
margin :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
753 |
}
|
754 |
|
755 |
/* === Responsive === */
|
56 |
box-sizing : border-box;
|
57 |
border : 1px solid #ccc;
|
58 |
border-top : 0;
|
59 |
+
margin : -20px 0 0 0;
|
60 |
}
|
61 |
|
62 |
.yith-plugin-fw-panel-custom-tab-container > h2,
|
63 |
+
.yith-plugin-fw-panel-custom-tab-container h2,
|
64 |
.yith-plugin-ui .yith-plugin-fw-panel-custom-tab-container > h2,
|
65 |
+
.yith-plugin-ui .yith-plugin-fw-panel-custom-tab-container h2,
|
66 |
+
.yith-plugin-ui .yith-plugin-fw-panel-custom-sub-tab-container > h2,
|
67 |
+
.yith-plugin-ui .yith-plugin-fw-panel-custom-sub-tab-container h2 {
|
68 |
border : none;
|
69 |
padding : 15px 0;
|
70 |
}
|
93 |
margin : 5px 15px 15px 0;
|
94 |
}
|
95 |
|
96 |
+
.yith-plugin-fw-wp-page-wrapper .wrap, .yith-plugin-fw-wp-page__sub-tab-wrap {
|
97 |
border : 1px solid #d8d8d8;
|
98 |
border-top : 0;
|
99 |
+
margin : 0 15px 0 0;
|
100 |
background : #fff;
|
101 |
padding : 20px;
|
102 |
box-sizing : border-box;
|
103 |
}
|
104 |
|
105 |
+
.yith-plugin-fw-wp-page-wrapper .yith-plugin-fw-wp-page__sub-tab-wrap .wrap {
|
106 |
+
margin : -20px 0 0 0;
|
107 |
}
|
108 |
|
109 |
#wpwrap .yith-plugin-fw-wp-page-wrapper .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-fw-wp-page-wrapper .yith-plugin-ui h2.nav-tab-wrapper {
|
577 |
*/
|
578 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav {
|
579 |
background : #fff;
|
580 |
+
padding : 10px 20px 0;
|
581 |
box-sizing : border-box;
|
582 |
margin-right : 15px;
|
583 |
border-left : 1px solid #d8d8d8;
|
592 |
text-transform : uppercase;
|
593 |
line-height : inherit;
|
594 |
font-weight : 600;
|
595 |
+
margin : 20px 0 0 0;
|
596 |
box-sizing : border-box;
|
597 |
background-color : #f1f1f1;
|
598 |
padding-top : 0;
|
599 |
border : 1px solid #ccc;
|
600 |
border-bottom : 0;
|
|
|
601 |
}
|
602 |
|
603 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab {
|
634 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab-active {
|
635 |
color : #2a8db0;
|
636 |
background : #fff;
|
637 |
+
border-bottom : 0;
|
638 |
}
|
639 |
|
640 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab:first-child {
|
687 |
}
|
688 |
|
689 |
.yith-plugin-ui li.yith-plugin-fw-tab-element {
|
690 |
+
margin-bottom : -1px;
|
691 |
}
|
692 |
|
693 |
li.yith-plugin-fw-tab-element:hover {
|
728 |
li.yith-plugin-fw-tab-element a.nav-tab i {
|
729 |
margin-left : 10px;
|
730 |
font-size : 12px;
|
731 |
+
font-weight : 600;
|
732 |
}
|
733 |
|
734 |
li.yith-plugin-fw-tab-element a.nav-tab i:before {
|
741 |
}
|
742 |
|
743 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yit-admin-panel-container,
|
744 |
+
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yith-plugin-fw-wp-page__sub-tab-wrap {
|
745 |
border : 1px solid #d8d8d8;
|
746 |
border-top : 0;
|
747 |
+
margin : 0 15px 0 0;
|
748 |
background : #fff;
|
749 |
+
padding : 0 20px 20px 20px;
|
750 |
box-sizing : border-box;
|
751 |
}
|
752 |
|
753 |
+
|
754 |
+
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yith-plugin-fw-wp-page__sub-tab-wrap .wrap {
|
755 |
+
margin : 0;
|
756 |
+
}
|
757 |
+
|
758 |
+
/**
|
759 |
+
* Float Save Button
|
760 |
+
*/
|
761 |
+
|
762 |
+
button#yith-plugin-fw-float-save-button {
|
763 |
+
align-items : center;
|
764 |
+
border-radius : 20px;
|
765 |
+
bottom : 50px;
|
766 |
+
box-shadow : 0 0 6px 3px rgba(0, 121, 159, .2);
|
767 |
+
display : flex;
|
768 |
+
padding : 6px 20px;
|
769 |
+
position : fixed;
|
770 |
+
right : 70px;
|
771 |
+
text-transform : uppercase;
|
772 |
+
z-index : 2;
|
773 |
+
}
|
774 |
+
|
775 |
+
button#yith-plugin-fw-float-save-button i {
|
776 |
+
font-size : 15px;
|
777 |
+
margin-right : 8px;
|
778 |
+
}
|
779 |
+
|
780 |
+
button#yith-plugin-fw-float-save-button:hover {
|
781 |
+
box-shadow : 0 0 6px 3px rgba(0, 121, 159, .4);
|
782 |
+
}
|
783 |
+
|
784 |
+
button#yith-plugin-fw-float-save-button.green {
|
785 |
+
background-color : #98aa36;
|
786 |
+
border-color : #98aa36;
|
787 |
+
box-shadow : 0 0 6px 3px rgba(152, 170, 54, .2);
|
788 |
+
transition : all 0.8s linear;
|
789 |
}
|
790 |
|
791 |
/* === Responsive === */
|
plugin-fw/assets/css/yith-fields.css
CHANGED
@@ -553,19 +553,32 @@ YITH UI
|
|
553 |
background-color : #207a92;
|
554 |
}
|
555 |
|
556 |
-
.yith-plugin-ui .nav-tab-active
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
557 |
background-color : #fff;
|
558 |
color : #336374;
|
559 |
box-shadow : 0 3px 0 -1px #fff;
|
|
|
560 |
}
|
561 |
|
562 |
-
.yith-plugin-ui .
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
.yith-plugin-ui .nav-tab-active.yith-premium {
|
567 |
background-color : #fff;
|
568 |
color : #be421c;
|
|
|
|
|
|
|
|
|
|
|
569 |
}
|
570 |
|
571 |
.yith-plugin-ui #plugin-fw-wc {
|
@@ -683,10 +696,11 @@ YITH UI
|
|
683 |
}
|
684 |
|
685 |
/*** Icon ***/
|
686 |
-
.yith-plugin-ui
|
687 |
-
|
|
|
688 |
line-height : 36px;
|
689 |
-
|
690 |
}
|
691 |
|
692 |
/*** General Input Style ***/
|
@@ -745,8 +759,16 @@ YITH UI
|
|
745 |
|
746 |
|
747 |
.yith-plugin-ui select:focus,
|
748 |
-
.yith-plugin-ui
|
749 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
750 |
}
|
751 |
|
752 |
.woocommerce .yith-plugin-ui table.form-table select,
|
@@ -755,7 +777,7 @@ YITH UI
|
|
755 |
-webkit-appearance : none;
|
756 |
line-height : 1.2em;
|
757 |
min-height : 35px;
|
758 |
-
background : url("../images/arrow_down.svg") no-repeat right center;
|
759 |
background-size : 35px 13px;
|
760 |
border-radius : 8px;
|
761 |
padding-right : 30px;
|
@@ -766,211 +788,6 @@ YITH UI
|
|
766 |
padding-right : 50px;
|
767 |
}
|
768 |
|
769 |
-
/** BUTTONS **/
|
770 |
-
.wp-core-ui .yith-plugin-ui .button-primary,
|
771 |
-
.wp-core-ui .yith-plugin-ui .button-secondary,
|
772 |
-
.yith-plugin-ui .yith-add-button,
|
773 |
-
.yith-plugin-ui .yith-save-button,
|
774 |
-
.yith-plugin-ui .yith-edit-button,
|
775 |
-
.yith-plugin-ui .yith-update-button,
|
776 |
-
.yith-plugin-ui .yith-plugin-fw-select-all,
|
777 |
-
.yith-plugin-ui .yith-plugin-fw-deselect-all,
|
778 |
-
.yith-plugin-ui .yith-plugin-fw-upload-button,
|
779 |
-
.yith-plugin-ui .yith-plugin-fw-upload-button-reset {
|
780 |
-
border-radius : 3px;
|
781 |
-
text-transform : uppercase;
|
782 |
-
box-shadow : none;
|
783 |
-
border : 0;
|
784 |
-
font-weight : 700;
|
785 |
-
font-size : 11px;
|
786 |
-
padding : 0px 14px;
|
787 |
-
outline : none;
|
788 |
-
height : auto;
|
789 |
-
transition : all ease 0.3s;
|
790 |
-
background-color : #d6d6d6;
|
791 |
-
color : #656565;
|
792 |
-
text-shadow : none;
|
793 |
-
vertical-align : middle;
|
794 |
-
line-height : 26px;
|
795 |
-
display : inline-block;
|
796 |
-
text-decoration : none;
|
797 |
-
cursor : pointer;
|
798 |
-
}
|
799 |
-
|
800 |
-
.wp-core-ui .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button-reset,
|
801 |
-
.wp-core-ui .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button,
|
802 |
-
.yith-plugin-ui .yith-plugin-fw-upload-button-reset,
|
803 |
-
.yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button-reset,
|
804 |
-
.yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button {
|
805 |
-
height : 38px;
|
806 |
-
}
|
807 |
-
|
808 |
-
.wp-core-ui .yith-plugin-ui .button:focus,
|
809 |
-
.wp-core-ui .yith-plugin-ui .button-primary:focus,
|
810 |
-
.yith-plugin-ui .yith-add-button:focus,
|
811 |
-
.yith-plugin-ui .yith-save-button:focus,
|
812 |
-
.yith-plugin-ui .yith-edit-button:focus,
|
813 |
-
.yith-plugin-ui .yith-update-button:focus,
|
814 |
-
.wp-core-ui .yith-plugin-ui .button-secondary:focus {
|
815 |
-
outline : none;
|
816 |
-
box-shadow : none;
|
817 |
-
}
|
818 |
-
|
819 |
-
.wp-core-ui .yith-plugin-ui .button-xl {
|
820 |
-
padding : 0px 20px;
|
821 |
-
font-size : 14px;
|
822 |
-
line-height : 38px;
|
823 |
-
display : inline-block;
|
824 |
-
font-weight : 600;
|
825 |
-
}
|
826 |
-
|
827 |
-
/** button with inside a span with icon class */
|
828 |
-
.yith-plugin-ui .button-secondary span.yith-icon {
|
829 |
-
margin-left : 0px;
|
830 |
-
margin-right : 10px;
|
831 |
-
line-height : normal;
|
832 |
-
}
|
833 |
-
|
834 |
-
.yith-plugin-ui .button-secondary span.yith-icon:before {
|
835 |
-
color : #656565;
|
836 |
-
font-size : 15px;
|
837 |
-
}
|
838 |
-
|
839 |
-
|
840 |
-
.wp-core-ui .yith-plugin-ui .button:focus,
|
841 |
-
.wp-core-ui .yith-plugin-ui .button-secondary:focus,
|
842 |
-
.yith-plugin-ui .yith-save-button:hover,
|
843 |
-
.wp-core-ui .yith-plugin-ui .button-secondary:hover,
|
844 |
-
.yith-plugin-ui .yith-plugin-fw-upload-button-reset:hover {
|
845 |
-
background-color : #cacaca;
|
846 |
-
color : #515151;
|
847 |
-
}
|
848 |
-
|
849 |
-
.wp-core-ui .yith-plugin-ui .button-primary,
|
850 |
-
.yith-plugin-ui .button-secondary.yith-plugin-fw-select-all,
|
851 |
-
.yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button {
|
852 |
-
background-color : #007694;
|
853 |
-
color : #fff;
|
854 |
-
}
|
855 |
-
|
856 |
-
|
857 |
-
.yith-plugin-ui .yith-add-button,
|
858 |
-
.wp-core-ui .yith-plugin-ui .button-primary:focus,
|
859 |
-
.wp-core-ui .yith-plugin-ui .button-primary:hover {
|
860 |
-
background-color : #375f6b;
|
861 |
-
color : #fff;
|
862 |
-
cursor : pointer;
|
863 |
-
}
|
864 |
-
|
865 |
-
|
866 |
-
.yith-plugin-ui .yith-add-button:hover,
|
867 |
-
.wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button:focus,
|
868 |
-
.yith-plugin-ui .button-secondary.yith-plugin-fw-select-all:hover,
|
869 |
-
.yith-plugin-ui .button-secondary.yith-plugin-fw-select-all:focus,
|
870 |
-
.yith-plugin-ui .yith-plugin-fw-upload-button:hover {
|
871 |
-
border-color : #007694;
|
872 |
-
background : #007694;
|
873 |
-
color : #fff;
|
874 |
-
line-height : 26px;
|
875 |
-
margin-left : 0;
|
876 |
-
}
|
877 |
-
|
878 |
-
.yith-plugin-ui .button-primary:before,
|
879 |
-
.yith-plugin-ui .yith-add-button:before,
|
880 |
-
.yith-plugin-ui .yith-save-button:before,
|
881 |
-
.yith-plugin-ui .yith-edit-button:before,
|
882 |
-
.yith-plugin-ui .yith-update-button:before,
|
883 |
-
.yith-plugin-ui .button-secondary:before {
|
884 |
-
font-family : 'yith-icon';
|
885 |
-
font-size : 10px;
|
886 |
-
font-weight : 700;
|
887 |
-
margin-right : 10px;
|
888 |
-
vertical-align : bottom;
|
889 |
-
display : inline-block;
|
890 |
-
}
|
891 |
-
|
892 |
-
/** yith-edit-button **/
|
893 |
-
.yith-plugin-ui .yith-edit-button {
|
894 |
-
background-color : #7f9298;
|
895 |
-
color : #fff;
|
896 |
-
}
|
897 |
-
|
898 |
-
.yith-plugin-ui .yith-edit-button:focus,
|
899 |
-
.yith-plugin-ui .yith-edit-button:hover {
|
900 |
-
background-color : #718085;
|
901 |
-
color : #fff;
|
902 |
-
}
|
903 |
-
|
904 |
-
.yith-plugin-ui .yith-edit-button:before {
|
905 |
-
content : "\e907";
|
906 |
-
}
|
907 |
-
|
908 |
-
/** yith-update-button **/
|
909 |
-
.yith-plugin-ui .yith-update-button {
|
910 |
-
background-color : #94aa09;
|
911 |
-
color : #fff;
|
912 |
-
}
|
913 |
-
|
914 |
-
.yith-plugin-ui .yith-update-button:focus,
|
915 |
-
.yith-plugin-ui .yith-update-button:hover {
|
916 |
-
background-color : #7a9009;
|
917 |
-
color : #fff;
|
918 |
-
}
|
919 |
-
|
920 |
-
.yith-plugin-ui .yith-update-button:before {
|
921 |
-
content : "\e90b";
|
922 |
-
font-size : 15px;
|
923 |
-
}
|
924 |
-
|
925 |
-
/** yith-save-button **/
|
926 |
-
|
927 |
-
.yith-plugin-ui .yith-save-button {
|
928 |
-
background-color : #267390;
|
929 |
-
color : #fff;
|
930 |
-
}
|
931 |
-
|
932 |
-
.yith-plugin-ui .yith-save-button:focus,
|
933 |
-
.yith-plugin-ui .yith-save-button:hover {
|
934 |
-
background-color : #1c4863;
|
935 |
-
color : #fff;
|
936 |
-
}
|
937 |
-
|
938 |
-
|
939 |
-
/** yith-remove-button **/
|
940 |
-
|
941 |
-
.yith-plugin-ui .button-secondary.yith-remove-button:before {
|
942 |
-
content : "\e90d";
|
943 |
-
font-size : 15px;
|
944 |
-
}
|
945 |
-
|
946 |
-
|
947 |
-
/** yith-add-button **/
|
948 |
-
.yith-plugin-ui .yith-add-button:before {
|
949 |
-
content : "\e90a";
|
950 |
-
}
|
951 |
-
|
952 |
-
.yith-plugin-ui .yith-add-button.closed {
|
953 |
-
background-color : #fff;
|
954 |
-
color : #375f6b;
|
955 |
-
border : 1px solid #375f6b;
|
956 |
-
}
|
957 |
-
|
958 |
-
.yith-plugin-ui .yith-add-button.closed:before {
|
959 |
-
content : "\e906";
|
960 |
-
}
|
961 |
-
|
962 |
-
|
963 |
-
/** yith-plugin-fw-upload-button **/
|
964 |
-
.yith-plugin-ui button.yith-plugin-fw-upload-button:before {
|
965 |
-
content : "\e90c";
|
966 |
-
font-family : 'yith-icon';
|
967 |
-
font-size : 17px;
|
968 |
-
font-weight : 400;
|
969 |
-
margin-right : 10px;
|
970 |
-
vertical-align : middle;
|
971 |
-
display : inline-block;
|
972 |
-
}
|
973 |
-
|
974 |
/** SELECT 2 **/
|
975 |
.yith-plugin-ui .select2-container,
|
976 |
.yith-plugin-ui .select2-selection--single {
|
@@ -1014,9 +831,10 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
1014 |
|
1015 |
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].select2-search__field,
|
1016 |
.yith-plugin-ui .yith-plugin-fw table.form-table input.select2-search__field {
|
1017 |
-
border
|
1018 |
-
padding
|
1019 |
-
height
|
|
|
1020 |
}
|
1021 |
|
1022 |
.yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice,
|
@@ -1044,6 +862,10 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
1044 |
display : none;
|
1045 |
}
|
1046 |
|
|
|
|
|
|
|
|
|
1047 |
.yith-plugin-fw-select2-container.select2-container--open .select2-dropdown--below,
|
1048 |
.yith-plugin-fw-select2-container.select2-container--open .select2-dropdown--above {
|
1049 |
margin-top : 10px;
|
@@ -1105,8 +927,10 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
1105 |
}
|
1106 |
|
1107 |
.yith-plugin-ui .select2-container .select2-selection--multiple,
|
1108 |
-
.yith-plugin-ui .select2-container--default.select2-container--focus .select2-selection--multiple
|
1109 |
-
|
|
|
|
|
1110 |
}
|
1111 |
|
1112 |
.yith-plugin-fw .select2-search input[type=text] {
|
@@ -1225,10 +1049,11 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
1225 |
.yith-plugin-ui input[type="checkbox"]:checked:after {
|
1226 |
content : "\e905";
|
1227 |
font-family : 'yith-icon';
|
1228 |
-
font-size :
|
1229 |
position : absolute;
|
|
|
1230 |
top : 8px;
|
1231 |
-
left :
|
1232 |
color : #fff;
|
1233 |
}
|
1234 |
|
@@ -1546,25 +1371,34 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
1546 |
}
|
1547 |
|
1548 |
.yith-plugin-ui .iris-picker .iris-square-inner {
|
1549 |
-
box-shadow :
|
1550 |
-
border : 1px solid #d9d9d9;
|
1551 |
}
|
1552 |
|
1553 |
-
.yith-plugin-ui .
|
1554 |
-
|
|
|
|
|
|
|
1555 |
}
|
1556 |
|
1557 |
.yith-plugin-ui .yith-single-colorpicker {
|
1558 |
-
display
|
1559 |
-
width
|
1560 |
-
margin-
|
1561 |
}
|
1562 |
|
1563 |
.yith-plugin-ui .yith-single-colorpicker > label {
|
1564 |
-
display
|
1565 |
-
font-size
|
1566 |
-
font-weight
|
1567 |
-
margin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1568 |
}
|
1569 |
|
1570 |
/* RANGE SLIDER */
|
@@ -1680,10 +1514,10 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
1680 |
|
1681 |
.yith-plugin-ui #plugin-fw-wc .yith-toggle-title h3,
|
1682 |
.yith-plugin-ui.metaboxes-tab h3,
|
1683 |
-
.yith-plugin-ui .yith-toggle-title h3
|
1684 |
-
|
|
|
1685 |
margin : 3px 0;
|
1686 |
-
|
1687 |
display : inline-block;
|
1688 |
position : relative;
|
1689 |
min-width : 173px;
|
@@ -1701,15 +1535,18 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
1701 |
}
|
1702 |
|
1703 |
.yith-plugin-ui .yith-toggle {
|
1704 |
-
position
|
1705 |
-
width
|
1706 |
-
cursor
|
1707 |
-
left
|
1708 |
-
top
|
1709 |
-
bottom
|
1710 |
-
margin
|
1711 |
-
display
|
1712 |
-
align-items
|
|
|
|
|
|
|
1713 |
}
|
1714 |
|
1715 |
.yith-plugin-ui .yith-toggle > span:before {
|
@@ -1718,9 +1555,11 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
1718 |
|
1719 |
.yith-plugin-ui .yith-toggle > span {
|
1720 |
position : absolute;
|
1721 |
-
right : 50%;
|
1722 |
transition : transform .3s;
|
1723 |
line-height : 1;
|
|
|
|
|
1724 |
}
|
1725 |
|
1726 |
|
@@ -1788,11 +1627,11 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
1788 |
}
|
1789 |
|
1790 |
.yith-plugin-ui .yith-toggle-row .yith-icon-drag {
|
1791 |
-
position
|
1792 |
-
right
|
1793 |
-
top
|
1794 |
-
|
1795 |
-
|
1796 |
}
|
1797 |
|
1798 |
.yith-plugin-ui .yith-toggle-row.with-subtitle .yith-toggle-onoff {
|
@@ -1875,9 +1714,6 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
1875 |
.yith-plugin-ui #post-query-submit,
|
1876 |
.yith-plugin-ui #search-submit,
|
1877 |
.yith-plugin-ui .button.filter-button {
|
1878 |
-
margin-left : 0;
|
1879 |
-
height : 33px;
|
1880 |
-
padding : 0 10px;
|
1881 |
line-height : 33px;
|
1882 |
}
|
1883 |
|
@@ -2153,6 +1989,7 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2153 |
|
2154 |
|
2155 |
.yith-plugin-fw-copy-to-clipboard input[type=text].yith-plugin-fw-copy-to-clipboard__field,
|
|
|
2156 |
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].yith-plugin-fw-copy-to-clipboard__field {
|
2157 |
height : 38px;
|
2158 |
width : 100%;
|
@@ -2160,6 +1997,8 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2160 |
padding : 0 10px 0 0;
|
2161 |
border : 0;
|
2162 |
border-radius : 0;
|
|
|
|
|
2163 |
}
|
2164 |
|
2165 |
.yith-plugin-fw-copy-to-clipboard.yith-plugin-fw-copy-to-clipboard--readonly input[type=text].yith-plugin-fw-copy-to-clipboard__field,
|
553 |
background-color : #207a92;
|
554 |
}
|
555 |
|
556 |
+
.yith-plugin-ui .yith-nav-tab-wrapper .yith-plugin-fw-tab-element:hover > a.nav-tab.yith-premium:not(.nav-tab-active),
|
557 |
+
.yith-plugin-ui .yith-nav-tab-wrapper .nav-tab.yith-premium:not(.nav-tab-active):hover {
|
558 |
+
background-color : #d24318;
|
559 |
+
}
|
560 |
+
|
561 |
+
.yith-plugin-ui .nav-tab-active,
|
562 |
+
.yith-plugin-ui .nav-tab-active:hover,
|
563 |
+
.yith-plugin-ui .nav-tab-active:focus,
|
564 |
+
.yith-plugin-ui .nav-tab-active:focus:active {
|
565 |
background-color : #fff;
|
566 |
color : #336374;
|
567 |
box-shadow : 0 3px 0 -1px #fff;
|
568 |
+
border-bottom : 0;
|
569 |
}
|
570 |
|
571 |
+
.yith-plugin-ui .nav-tab-active.yith-premium,
|
572 |
+
.yith-plugin-ui .nav-tab-active.yith-premium:hover,
|
573 |
+
.yith-plugin-ui .nav-tab-active.yith-premium:focus,
|
574 |
+
.yith-plugin-ui .nav-tab-active.yith-premium:focus:active {
|
|
|
575 |
background-color : #fff;
|
576 |
color : #be421c;
|
577 |
+
box-shadow : none;
|
578 |
+
}
|
579 |
+
|
580 |
+
.yith-plugin-ui .yith-plugin-fw-tab-element:first-child .nav-tab-active {
|
581 |
+
border-left : 1px solid #ddd;
|
582 |
}
|
583 |
|
584 |
.yith-plugin-ui #plugin-fw-wc {
|
696 |
}
|
697 |
|
698 |
/*** Icon ***/
|
699 |
+
.yith-plugin-ui .yith-icon--right-overlay {
|
700 |
+
position : relative;
|
701 |
+
left : -33px;
|
702 |
line-height : 36px;
|
703 |
+
width : 0;
|
704 |
}
|
705 |
|
706 |
/*** General Input Style ***/
|
759 |
|
760 |
|
761 |
.yith-plugin-ui select:focus,
|
762 |
+
.yith-plugin-ui .yith-plugin-fw select:focus,
|
763 |
+
.woocommerce .yith-plugin-ui table.form-table select:focus,
|
764 |
+
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table select:focus,
|
765 |
+
.yith-plugin-ui input[type=text]:not(.select2-search__field):focus,
|
766 |
+
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text]:not(.select2-search__field):focus,
|
767 |
+
.yith-plugin-ui input[type=number]:focus,
|
768 |
+
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=number]:focus,
|
769 |
+
.yith-plugin-ui textarea:not(.wp-editor-area):focus,
|
770 |
+
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table textarea:not(.wp-editor-area):focus {
|
771 |
+
border-color : #a7d9ec;
|
772 |
}
|
773 |
|
774 |
.woocommerce .yith-plugin-ui table.form-table select,
|
777 |
-webkit-appearance : none;
|
778 |
line-height : 1.2em;
|
779 |
min-height : 35px;
|
780 |
+
background : #fff url("../images/arrow_down.svg") no-repeat right center;
|
781 |
background-size : 35px 13px;
|
782 |
border-radius : 8px;
|
783 |
padding-right : 30px;
|
788 |
padding-right : 50px;
|
789 |
}
|
790 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
791 |
/** SELECT 2 **/
|
792 |
.yith-plugin-ui .select2-container,
|
793 |
.yith-plugin-ui .select2-selection--single {
|
831 |
|
832 |
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].select2-search__field,
|
833 |
.yith-plugin-ui .yith-plugin-fw table.form-table input.select2-search__field {
|
834 |
+
border : 0;
|
835 |
+
padding : 0;
|
836 |
+
height : initial;
|
837 |
+
min-width : 380px;
|
838 |
}
|
839 |
|
840 |
.yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice,
|
862 |
display : none;
|
863 |
}
|
864 |
|
865 |
+
.yith-plugin-fw-select2-container.select2-container--open .select2-dropdown:after {
|
866 |
+
display : none;
|
867 |
+
}
|
868 |
+
|
869 |
.yith-plugin-fw-select2-container.select2-container--open .select2-dropdown--below,
|
870 |
.yith-plugin-fw-select2-container.select2-container--open .select2-dropdown--above {
|
871 |
margin-top : 10px;
|
927 |
}
|
928 |
|
929 |
.yith-plugin-ui .select2-container .select2-selection--multiple,
|
930 |
+
.yith-plugin-ui .select2-container--default.select2-container--focus .select2-selection--multiple,
|
931 |
+
.wc-wp-version-gte-53 .yith-plugin-ui .select2-container.select2-container--open .select2-selection--multiple {
|
932 |
+
border : 0;
|
933 |
+
box-shadow : none;
|
934 |
}
|
935 |
|
936 |
.yith-plugin-fw .select2-search input[type=text] {
|
1049 |
.yith-plugin-ui input[type="checkbox"]:checked:after {
|
1050 |
content : "\e905";
|
1051 |
font-family : 'yith-icon';
|
1052 |
+
font-size : 10px;
|
1053 |
position : absolute;
|
1054 |
+
font-weight : 600;
|
1055 |
top : 8px;
|
1056 |
+
left : 3px;
|
1057 |
color : #fff;
|
1058 |
}
|
1059 |
|
1371 |
}
|
1372 |
|
1373 |
.yith-plugin-ui .iris-picker .iris-square-inner {
|
1374 |
+
box-shadow : 0 0 0 1px #d9d9d9 inset;
|
|
|
1375 |
}
|
1376 |
|
1377 |
+
.yith-plugin-ui .iris-picker .iris-square-value {
|
1378 |
+
width : 0;
|
1379 |
+
height : 0;
|
1380 |
+
background : transparent;
|
1381 |
+
border : 0;
|
1382 |
}
|
1383 |
|
1384 |
.yith-plugin-ui .yith-single-colorpicker {
|
1385 |
+
display : inline-block;
|
1386 |
+
width : 220px;
|
1387 |
+
margin-bottom : 10px;
|
1388 |
}
|
1389 |
|
1390 |
.yith-plugin-ui .yith-single-colorpicker > label {
|
1391 |
+
display : block;
|
1392 |
+
font-size : 11px;
|
1393 |
+
font-weight : 600;
|
1394 |
+
margin : 0 0 10px 0;
|
1395 |
+
text-transform : uppercase;
|
1396 |
+
}
|
1397 |
+
|
1398 |
+
.yith-plugin-ui .the-metabox.multi-colorpicker span.description,
|
1399 |
+
.yith-plugin-ui .yith-plugin-fw-panel-wc-row.multi-colorpicker span.description,
|
1400 |
+
.yith-plugin-ui .yith-plugin-fw-multi-colorpicker-field-wrapper span.description {
|
1401 |
+
margin-top : 0;
|
1402 |
}
|
1403 |
|
1404 |
/* RANGE SLIDER */
|
1514 |
|
1515 |
.yith-plugin-ui #plugin-fw-wc .yith-toggle-title h3,
|
1516 |
.yith-plugin-ui.metaboxes-tab h3,
|
1517 |
+
.yith-plugin-ui .yith-toggle-title h3,
|
1518 |
+
.metaboxes-tab.yith-plugin-ui .yith-toggle-title h3 {
|
1519 |
+
padding : 0px 20px 0px 30px;
|
1520 |
margin : 3px 0;
|
|
|
1521 |
display : inline-block;
|
1522 |
position : relative;
|
1523 |
min-width : 173px;
|
1535 |
}
|
1536 |
|
1537 |
.yith-plugin-ui .yith-toggle {
|
1538 |
+
position : absolute;
|
1539 |
+
width : 25px;
|
1540 |
+
cursor : pointer;
|
1541 |
+
left : 0;
|
1542 |
+
top : 0;
|
1543 |
+
bottom : 0;
|
1544 |
+
margin : auto;
|
1545 |
+
display : flex;
|
1546 |
+
align-items : center;
|
1547 |
+
box-sizing : border-box;
|
1548 |
+
align-items : center;
|
1549 |
+
justify-content : center;
|
1550 |
}
|
1551 |
|
1552 |
.yith-plugin-ui .yith-toggle > span:before {
|
1555 |
|
1556 |
.yith-plugin-ui .yith-toggle > span {
|
1557 |
position : absolute;
|
1558 |
+
/* right : 50%; */
|
1559 |
transition : transform .3s;
|
1560 |
line-height : 1;
|
1561 |
+
font-size : 13px;
|
1562 |
+
font-weight : 600;
|
1563 |
}
|
1564 |
|
1565 |
|
1627 |
}
|
1628 |
|
1629 |
.yith-plugin-ui .yith-toggle-row .yith-icon-drag {
|
1630 |
+
position : absolute;
|
1631 |
+
right : 2px;
|
1632 |
+
top : 50%;
|
1633 |
+
transform : translateY(-50%);
|
1634 |
+
font-size : 18px;
|
1635 |
}
|
1636 |
|
1637 |
.yith-plugin-ui .yith-toggle-row.with-subtitle .yith-toggle-onoff {
|
1714 |
.yith-plugin-ui #post-query-submit,
|
1715 |
.yith-plugin-ui #search-submit,
|
1716 |
.yith-plugin-ui .button.filter-button {
|
|
|
|
|
|
|
1717 |
line-height : 33px;
|
1718 |
}
|
1719 |
|
1989 |
|
1990 |
|
1991 |
.yith-plugin-fw-copy-to-clipboard input[type=text].yith-plugin-fw-copy-to-clipboard__field,
|
1992 |
+
.yith-plugin-fw.yith-plugin-ui .yith-plugin-fw-copy-to-clipboard input[type=text].yith-plugin-fw-copy-to-clipboard__field,
|
1993 |
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].yith-plugin-fw-copy-to-clipboard__field {
|
1994 |
height : 38px;
|
1995 |
width : 100%;
|
1997 |
padding : 0 10px 0 0;
|
1998 |
border : 0;
|
1999 |
border-radius : 0;
|
2000 |
+
box-shadow : none;
|
2001 |
+
outline : none;
|
2002 |
}
|
2003 |
|
2004 |
.yith-plugin-fw-copy-to-clipboard.yith-plugin-fw-copy-to-clipboard--readonly input[type=text].yith-plugin-fw-copy-to-clipboard__field,
|
plugin-fw/assets/css/yith-icon.css
CHANGED
@@ -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 |
-
|
12 |
-
|
13 |
font-weight: 400;
|
14 |
font-style: normal;
|
15 |
}
|
@@ -123,6 +123,10 @@
|
|
123 |
content: "\e911";
|
124 |
}
|
125 |
|
|
|
|
|
|
|
|
|
126 |
.yith-icon-info-squared:before {
|
127 |
content: "\e922";
|
128 |
}
|
@@ -171,6 +175,10 @@
|
|
171 |
content: "\e910";
|
172 |
}
|
173 |
|
|
|
|
|
|
|
|
|
174 |
.yith-icon-shield-money:before {
|
175 |
content: "\e917";
|
176 |
}
|
@@ -217,7 +225,7 @@
|
|
217 |
|
218 |
/** Deprecated: use yith-icon-paypal instead */
|
219 |
.yith-icon-paypal-svgrepo-com:before {
|
220 |
-
|
221 |
}
|
222 |
|
223 |
/** Deprecated: use yith-icon-arrow-down instead */
|
@@ -282,10 +290,10 @@
|
|
282 |
|
283 |
/** Deprecated: use yith-icon-edit instead */
|
284 |
.yith-icon-pencil:before {
|
285 |
-
|
286 |
}
|
287 |
|
288 |
/** Deprecated: use yith-icon-reset instead */
|
289 |
.yith-icon-update:before {
|
290 |
-
|
291 |
}
|
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?0e894d67ed2e93cb5f295baa68aeba0d");
|
10 |
+
src: url("../fonts/yith-icon.eot?0e894d67ed2e93cb5f295baa68aeba0d#iefix") format("embedded-opentype"),
|
11 |
+
url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABnEAAsAAAAAK8AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAAQAAAAFY4xkr4Y21hcAAAAXwAAAFUAAAD9iWK06dnbHlmAAAC0AAAE4wAACDcFkarWmhlYWQAABZcAAAAMAAAADYapsJcaGhlYQAAFowAAAAeAAAAJAQ1AiJobXR4AAAWrAAAACIAAACwVgT/7GxvY2EAABbQAAAAWgAAAFqyxqsabWF4cAAAFywAAAAfAAAAIAFKAVZuYW1lAAAXTAAAATAAAAIiyMcJZnBvc3QAABh8AAABRgAAAeY+TI68eJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/MI4gYGVgYNBjDGNgYHBHUp/ZZBkaGFgYGJgZWbACgLSXFMYHF4yfORmAnH1mNgYeIE0I4gDAI1wCDx4nO3TV1LDQBCE4V9yDmBwJjqQQ/HMMSjOxYF44j7zuCeAHrWPwbo+12otySv1DNABWvIqbah+qMjxrdWqWW8xbNbbfOm4r08NcVvqMvr91YxSlU7OmlHp9w8+Nat1ZVv3H3LEhBlnsmHHA/esmWq2YK6zBzrjmhvueGbLJT3do8uIU8aseOKFEy445pYrHjlnyV5/0+V/jPOrfj8cvWUW1iRUWaYbtWXC0bJMPtqWCUfHlBbRNeVG9EzpEX1TlsTAmvWhKV9iZMqXGJsyJ45M6RPHpjogJqaKIE6sufbUVCXE1FQvxMzIvcyN3MvCmmdZmuqKWJkqjFibao04M1UdcW6qP+LCVInEAfkOriy7Iq6NfE8bI597a+Ted5Ypxd7IvdyYKltdZKpxdZGp2im1qe4pHVMHULqmXqD0TF1B6Zv6gzIwdQplaOoZysjY/wHR/XAUeJytWXmQHFd576/vnu45uqePnZnuuXpmWruzl3aO1nr2kNasZB22JVu7krGNAK1kQ0yBRYwjYUBAlSkbDKFCoiCJI3HFgEP+SFGATVKgpGwjQypAHBMwhUPwQoC4KCOSkIDcyvfezOzOSsZAVXZnXr/3vaPf973v+H1vGJPBP/gmyzBpxmFyTJ2ZYOaZq5kbmQPMbczvMW9l3sF8gPkj5mPMp5lHmMeYr+Nov1Wy/LJo6abdKE21W3qzVm1YPqeXdA7pHph2B6bas9CsSa2GJb0ErfUStPC3pAUvQSPv7VKatcZA3R9s1OGlB8Gj9Wi1rqVSGhzDMnpydXUHHNuxSiikeGH1yx6pe6qub/IGqoddTdc1UmxyVwhJJZ3D3soA/RaJ43mOFIFKajFOELj9tIxheyzWJfL8tWsD4ezKSkqLzpIFYUVLXXNNdBJWorMw3X0xecu0553V1SRpYVFPJk+mtAR5a0JLjSQSI5e3VshIXOvkykp9wzw4zov8y3yIelAduQjvZgSGqQahEzrAXDR/9CPzzbRk1sa8Gy72x0gOvPEi6eZpuT7mge6YMMB/54Nk/kWelmvveaC7hoT98CPSc/FttCTdGilYBn7BqKivPmprh9mB2nqIWWFuZ97APIAr/xpdGKw7gyoyoCHsb54KgWTNgyMFUgu5DH2pMYWW4JfKaAcdCC8zjN9PkJNO4Km2k6wgsElaIydNioBU6Ih6t4bFcy87A7Q9H9qzz025d77Wfc2Haokmy0YzLPsT7b81w9DgMSwfu/IQr335M4a9Ez/dX/mFnjP+ufAR4+w+j40ilgWW9Yx4FNGF2bjBxC9dQtkD+gqfCZhRZjPTYmaYrcz2nuzfgr6CgQa1ygmoJaFnplbPYIlMiMHWgXgAUlZRhJZklVpSeRqbHuu3hEm/FApVyXasRmsOmkEtaNlOiKVvJcB0kF4LbVMKmiFWyLGQQ5HKtWZ7yjZFWE2IsvwzSfqZLIspIDYAT2CpzhYLUIyWVldvip7vQLEIn4JoGuDL0c9jKVc3rbiSTsSVhE2qsmlW4/F8PG4a2WwlmzUkRUkoCozKYlvmT3LcO3mlKcpP6VqBvACLYnHmlJs//gcF96mnTp065RaLtxThiKWxaZM1C4rI51nJUth0mrWwJXisI+jsQozL8D/I4QsquVnygoRCNH9AxnVmkdlHPW7Xe3mDtY2KFqAHJl8w/Wq6YfXdo7NWa0i+5VsNlGqj5cNzS9SXHKPOZGlNTKc978ueB8tENoMjlr/jTk/jBx4vENdR6Ja6Ft1Np96n6YWVlZXoYwBw/zBxkMOwiTw2nSazXIaJr/HFMTpToNy1MM7sYHYzR5h7mfcyf4h84hlLVH9wq1g37ZDst89xh+2yuIHYcLoju0z2+/0QWdWpKFqXCYrDpcchCG2nVQtqrWY7RG20HakWYGlbphi0RMt0moHVhulj0ygC13NRFC4VBNbdadd9jpJIV58+Tel3LnVFty7Rf7FTrqLpQ46ayg7ZWV1NpZxYKjOeaqHv/aTnLqKs8A89c0+orut2etXFTV0hevQvuptI1x0UevSpoSFQpGyc9UVJNY0MN+Swak5hKwJt3pLnNWVaEfPEjTOpgTOQ0H8mezG/0NO1CRr1b2buQjDQF2PvK/yGdvr/RUOPue6S5+Fn2XUvMb+ucefvqLrg9v7qlz3hxt9RmVF8Ui/+PI3SyzEVZgx1+Cbmtai7pcvUrBcSsG1JV7ipfoyy1gILRTJ+q9EHKn2EgwHHaQTjIAkN+H40s+blY9Tvw2Ps6lC5PFkuD+HeM7p+vCAqiqib6ATFMlZfMHVSpdQy1oDP5j3OVqO/vBV2GVoUxQ0jDqxmRN+jHp/dRRabLB80hgz8rCiafA1+ZfGIqBy5RtZwmSO4jKbA2A2vVFXuDQzRJioTlkTnDGoTUyqPQ3MOpvJgJoAro9vOwxT68nHgeuhh8S2Li2+5nxSLc7fPzd1+Dyn2LZvzr7d7dCxgtdeBRXTuOmv6XUYPI0TwrR6GcMD5xj+kPwsZZ/JvrIfg7frafoieEzzbwXHlGoq3jeK00WG0BgXcEvzBTlPkNoJLf1vStpNfTdpuLffVXK2WW4Jh+iTFD3t9dvJrvefSUq/P/VpvPBawudeLRVdUhIfPweeoHTLgQJAGCeDPzOhh04RlfMBnSR2WacGs6R3hidhthlrsPHM9WirZehdONyS0rir1jYGUBwG/tKtGrFkgbpIOI0FgncG0KaI01kRguXZSlnH/xD42u/khIW5Ez7t8ZWhoKGG++tAh2HrMnc3VKpUuf7F11uBLVEpSeOgjOLjCu6z1rOAUXAMK7ikyftY91pNI9J9rkkO25J5NfRw5c6g36qO6K6xKKE15UGo1kT4LJcukPuW3gPgbANygGUWTaELRFngCrQnOHy0Wzyf6SGxmrfbGtVp7DZzBx4j1dLGRZrhsGLLRL9nTp9nDReflsPSlX176OSviOaKdgITBywkDyQnRjZIH8kMfmNPgA75gDv9d3dx9vVn/+zHz+j0bWoDPR7vUR0asPdj6Srf1JLZ6NiCxIsOjfDH6KiCF4COmJk8HzkTvSJyAdw5vXZiPnt0jQ3qBFaN3HE/Aya2v2BodkHeD8QqyhHDpV7iOAD/AkwmYqzBaX4f7xsAZIEITJdEvY6UxFbbD9jwI5TqQVrvVRJBsimmp5pclHJUExG02yQkEHNiYckgHibJSLZTacDFuDY9anWaxvv26UtGpj+3YNh5YqhRdRBfsxOPZquiYn3rdptrs1vFRJyFLMbMy+gYTPhMt18Z2Xp31AoyBVW6u88m0CGrC8B3bm6rkRuSheNGpplOK7wiVbDzucAkTxNdpBbuaTipK0qg4d+AqX6/m6nLAVbOSMuvtTVOowvf4vo+xqZdvY0ZSRq5rE0B4nXLsAhDOJLGKnBH+sQ95dfoePuj7fGB63MiFsVd++pXjeVlSrWB8W/RMcXTx7PZ6EVm4d+fYo9lqtVmtZhOm6ZrmCdy3mVKUUmFmtlBSlFS66hTfU83WR3KVam60njtcwcHNyqvJYBczMHHNBycZlykymxCdX3Wl/Ug67jIJtMhACMPQ3IwcORZHtkq2HJLNEyZgNdpCM9DzpNzBa/zBM7wqHL0TxOg++Cj75uv2/e1QpbLZ9zMYQ7IIbRldXZ/iRv+0XRAOnuL5o5CMnnxTdAnYO6/bewzSZMrmyi3pLJlFZb22d+IPCSKh+MMiuOKy/YNe0i8Q33RhYHPRGJyHk/WRT8A9gzuIXDgfbdmwPolPHlN6uQgl9d78a2LUHvLylw5RK7gD8q5Ll+i7bPRjW5hdJJOdgxau3H0LWkfoEMVYfz/upTqOaElKQB6IeaBGNXA3DnXQKADHlETbwZlw8UTWmzly99FO52hneHf+BK/Jkds8+LqDjQYWTZixttXGawIrqUKhWmilBEmQWZPFCA4s6isrykMn8ruHO2SBu4/MeNkTvKxBqnmw2VvkPQU/y6sxlrPdrCiqK5qqiBL5KGIMpLVYDxfQqwRMA0+K5PoBYmoBQQdCnhoeU5sCGw8cNItWkyR6UzbXksTyBFgmHuU5c/kGa8IFDV0odcUPPcT+xzc5nn3wQXSlT/MK9xxBNvBe64bl9OTjT35wHaa4bO6jp1lwWdeILjz+YY49/TgNp3Rf8CjUcV86k8V9da2vjJ7j8sqOjJ/Bz/szlQx+PtBtAWOQVsbY8OitexHfMcbsZe7AOqYIxOwD4tmSLHVuAaalHeoX5lksOmCTelCDeRhsBhieqM/g0HcOTgjb1D3a0mbqUYLNNcxuN8MzCTl3x/S1fFyReM7iFEmRt3NCYpscE2OszfFiLM5fO31HLsZx0fssjpeUblvlxer4rR9UFCnGHQLgRXVBxsnTJsuTMbau+jLPoUcMzISGqO8T2VI2c1NRR4wpS69KyiILIONxo7YkDkmyIIFevKlYGInOrbUqpYmcTwdERySZl0g1ulGUsJdDlCLmk/GqEedYltckmtLK3XtG+C7mHDbGvhHUnRnMbhHBAOr+ZWYeIBJGU6cwRQ9sAlEsgo0lGuItjDeUtoHSNVscBmcnZCn6cf8+T9Aqo9FTkJLF/S/GLDtu+7bAq6qWVN+ayHmlco6VU7qWSL5tfHTUhr+YkFNadJJOrvGSxo9GZ+DkkqhEq8/IVd09PCnoUimIj+cOXyN7qZnr03Y6OMwwMWr3AKs9/fOZUcxvr0cMc5B5FWrjFe41vILiXEnZkEsNXqEImHUhx2knPUnEsJz2vMDzTFlVdVX9jBsEW4LATTlO0XG+YHreJtc1Fdq37biufVjTj9NM53ECgD55Ao5//gyc/hM4fgIUMnSTt6ilNPwkyTJbgteTZYrOFzf03Tob1/X4rB7/PFnqEU1/+hHvaUhD9NNH1jHuBfQTFOOmS1Yp3dD9BEYVdxWhZcIFJnJ7d4KsCt9gSKPUBUEl9Ise8Yw+TkNHOEscM9wTPTGeRsfRhG3FZqHQLEYfhcO1hSBYgA+Moacw24VWYSt2ecFCsDVYqK3FFngR/hHzBYvmAzRrQJ/lo/8lrlYirjcBAr1vxAQtCImTRpfdwA3s3oFw2lxw27eGMyuZrHWgMbF3Av642TJ37XiRUpabSMH+n+w0Ww1rLLw13Baq41sm9r4VF9ix6/S2tjaxZWLfBHb09nPpf2h84Kkd+AT/Y1CrrlsAiQCWHqwljSEKAd6/jCD17dG7usFNQBuVbvtwaWJiYWJiPvo+xo3V5ej9cN7tBkAWJfrx2/6d9C5M/PmNBMdROXwX/pfKYA+zj1kmkam2DmnmKUbroxqJIx6p3cU1ARKc3+HahBEtt1VrG6wWjB1E/GbubDQ01mjXWq51ztk5Mjk5stOZGLk6n7965E9tPR+LG9mMarhZ2zVU3cioem5SD1MpkVOc+vxNd8V5REzDjlOpZJJ8/K6b5ut2DPbee3Mrl2vdfG/SKlYqRfOJzBDEJDfB1kRJs9I5LpNhVTfGBoKs2kbuNUU+HusoYoHv6eaXWCIVtR/BdKp5B8wvftF8+GFSQt08d878dLTvr6xz56w1naZnpzJLKD2f2ChJmpB5CUWQAKkXsVF5nXE2WE9KpAC1LaQmTA04yNMbZCcd9NSviz8wsXnWExRF8EiObZWuWpnB+CzzWw7NCDxPiKIn8HDVazuAZAi2u6eGrblfmTP+gck+XPkh9uDnQbM9P3N0juOF/jQuvDnkyGps5+gcz7HdF7Ecm8+cGUu/AjhzrljuI55dazrzDMWUXdw0TGyUXKyR8IWK2tIbXDd/bOklqXe/w5HrOXTG8Ey0xzf1zIWMbvrzZuICgu/2cc97jedJ7/Oe8OA9bvT8yJBlDY2AGT2fKxZzYHa+/e1vwwOdAwf6vxdQeefXkSwGhH7GhGaDr+kBwx5a/a9x4gma34LzZ85gu49JwdpsLt1gTV0kkNDt4sP+XQ7FhRWMSJNME3NqtAsYBIRA/QRxE0jFiORgSVpVEyN/KDl4kj4ivHkIxvH8KHrjiBcpzaMqUOhHPArRDmC237W4eNf7SBF9EzHl7tmR5FSnmTeN6hhoXhHCjOXuuq5Um+T+1RPrRSthZTaXhzbFdg3vyWdBTMBozTCFRqk6dzvL9FbC4hKDi42P21l30nWGk8bipkSicP09djWm3bAcU8NKrDCpOqJStQtjTjp62Mu6YGxaNJLDTiIRFpYmcDrNeV4kMYzKo3s3yFQ5TGo4kcadZjUH5HxbBB2/+AJv8Bc4WYZVjPzV73znxwQYO/BvkhR5clxWFfhctOtA/Xv3E+2hsZEFXNfAVTN4nhWmRn9BaCBGnmO2Mn8NO9ESNwDxNvoafxYwzQx8dDPtkPwm4Lcly2lYolRzLKQ5jZCkoeTngYYYtsKyXyNDEXeRXyAwyRFJM1gLoyIOrvV6zALgCfave9CVEYo9RTAbrrl+LdnGV9u9HrIqaYaN3o0d0X6yP5ri4iATF0aYi+8gJIteKXXvV2phK+iR6YgmLodKQ0kDNzDIUY9MR0zhmgUgpNbANZWNQuiR6Qjy1u4GGt1bnMjv+H5nkRRmKWcKS6aul9iEqRvpGbe4nxdgf9E196YNvQxI1c2ZXGk/L76J5RMyBheFTyQS8SAuKELKAMilzXQOIJ3iFQGp2JdSRCedy6VRqVK9obKQSq8NNVJCfyiviLhkXMLhgElwSjYQwwoaZigCPpOCqApazM6o2GlKKrBqzlYVQROwK4FDVCkmJkUuLikpSaXz4xwSYuvzNT4Ws3Pr8zN2TBucr+GTM8QYzoeT5c72TpkW+znTyV+V42JqxuXUGFc0uXy+zsbzSHevIIcAekqICfEachtHnjAn0ghPaVGTkEFJiCOzNcRERlcGaURH3bFEoGJ3LE7BiQrfHYvLpfSeyBZ6W1fiG7YuJkQuJetSj/UkJ8YvZ93Jxtke7yi6WGyj6OIil1yfn+JwwQHRo5yUrujXMdtXWA6R+QLWRImmLRLxaZib+mUCE9CUqLIjEZUfcQFNbsIuaBC7N0Gh2RbIYBHOV0KX42Z32VpCTQLMDiG/ipLL6OWGYQtJcAHiejA2njZEZanW5qWlLa2x0lWBEr2A6d5iBbZlsq/at41l9wuGlt/hJcfryWyRZfNjtm7Bq4eKhsVxhXiqYAdubfTaxc5hLydMPaOa5W3M/wENGeDgeJxjYGRgYADizTzM3vH8Nl8ZuJkYQODOQYfNMPr/r/+fmbiZ2IBcDgawNAAzJQvmeJxjYGRgYGIAAj0mhv+//n9l4mZgZEAFOgBfLARbAAB4nGNgYGBgwon//8cth6H2F5T+DcHE6iPK7L8wNgCFGwo+AAAAAAAAARIBJAE2AUYBWAIWAsgDNAP2BJgFIgVYBWoFugXUBkIGuAbsBxAHjAfkCEIIcgioCRgJZAmQCjQKpAssC0ALcAu4C/QMegyWDQ4NTg1+DgYOMhAGEG4AAHicY2BkYGDQYfRiEGEAASYg5gJCBob/YD4DABYOAaIAeJxtjz1uwkAQhZ/5iwJShBIpUrpVijQR5qeg4ADQU9Abs/5BttdaFiQukBPkDDlDTpAyZ8hR8mxGLhJ2pdX33rzZ0QAY4gsequPhtn6r08IN1YXbpKFwh/wk3MUAz8I9+iPhPl4xFx7gAQF/8DrVb/dwwi3c4U24Tf9duEP+EO7iEZ/CPfrfwn1s8CM8wIs3P6cuGaWhKdY6PmaBbXQDG20PqSnU1J803koX2gZO79T2rA6neOZcpCJrcrU0hdNZZlRpzV6Hzk+cKxfjcSS+H5ocZ6TcJuHWKUIYFFhDI8YRGTe2V+r/nQ07LA7UlVKYwsfkSm7FXFFnA1Y0dsxumVPsPXHmjK5DRB0xY5CTlnVnlc54DZ2yru3phPR9Tqi6Siww5o3+5P16dv4LqwRgqnicbZDZktwgDEV9p3HH43Y6k33f92T4KAVkmxoMBHC6/PfB7SRP0YPqHEpSIVUX1RZ19f+4xgV2EKixxy00uESLAzrcxhF3cIW7uIf7eICHeITHeIKneIbneIGXeIXXeIO3eIf3+ICP+ITP+IKv+IbvuIasWlLKzy4bN7QUoz9J7U/uD1ru82HDaIYxNxvPof1B7kaqkdWNWLFTZNlpipK0Pv6TyTtemr8qFKWxOzdJZaKyXJ+lVrbUrTmxUD4sBxVZmywVRS10pEGs2vLC8lykdwVrM9HAnXG9l+nnTKVFrHJZnp3pDcdmImOln7OYfOR9oCWQ3QXd7wP7YFkEO6c6crBLyYmzSPSLuzQatnr7u0g+5jabibdl6xzLDvs5WE+6mRNH6fv+6kTRlQPKHA25wfLx5GMZUUaud01iMXmsqt9gz4ZxAAA=") format("woff"),
|
12 |
+
url("../fonts/yith-icon.ttf?0e894d67ed2e93cb5f295baa68aeba0d") format("truetype");
|
13 |
font-weight: 400;
|
14 |
font-style: normal;
|
15 |
}
|
123 |
content: "\e911";
|
124 |
}
|
125 |
|
126 |
+
.yith-icon-image:before {
|
127 |
+
content: "\f10a";
|
128 |
+
}
|
129 |
+
|
130 |
.yith-icon-info-squared:before {
|
131 |
content: "\e922";
|
132 |
}
|
175 |
content: "\e910";
|
176 |
}
|
177 |
|
178 |
+
.yith-icon-save:before {
|
179 |
+
content: "\f10b";
|
180 |
+
}
|
181 |
+
|
182 |
.yith-icon-shield-money:before {
|
183 |
content: "\e917";
|
184 |
}
|
225 |
|
226 |
/** Deprecated: use yith-icon-paypal instead */
|
227 |
.yith-icon-paypal-svgrepo-com:before {
|
228 |
+
content: "\e91b";
|
229 |
}
|
230 |
|
231 |
/** Deprecated: use yith-icon-arrow-down instead */
|
290 |
|
291 |
/** Deprecated: use yith-icon-edit instead */
|
292 |
.yith-icon-pencil:before {
|
293 |
+
content: "\e907";
|
294 |
}
|
295 |
|
296 |
/** Deprecated: use yith-icon-reset instead */
|
297 |
.yith-icon-update:before {
|
298 |
+
content: "\e910";
|
299 |
}
|
plugin-fw/assets/css/yith-plugin-ui.css
ADDED
@@ -0,0 +1,1593 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "UTF-8";
|
2 |
+
/**
|
3 |
+
* YITH Plugin UI style
|
4 |
+
*
|
5 |
+
* IMPORTANT: This file is automatically generated through SCSS files.
|
6 |
+
* Please don't edit it manually!
|
7 |
+
*/
|
8 |
+
/**
|
9 |
+
* YITH CSS Variables
|
10 |
+
*/
|
11 |
+
:root {
|
12 |
+
--yith-content-bg: #ffffff;
|
13 |
+
--yith-content-text: #3c434a;
|
14 |
+
--yith-primary: #00799f;
|
15 |
+
--yith-primary-hover: #0094c4;
|
16 |
+
--yith-primary-focus: #bddce6;
|
17 |
+
--yith-primary-text: #ffffff;
|
18 |
+
--yith-delete: #c41d04;
|
19 |
+
--yith-delete-hover: #dd2105;
|
20 |
+
--yith-delete-text: #ffffff;
|
21 |
+
--yith-delete-focus: #f0d2cd;
|
22 |
+
--yith-update: #94aa09;
|
23 |
+
--yith-update-hover: #7f9208;
|
24 |
+
--yith-update-text: #ffffff;
|
25 |
+
--yith-update-focus: #e7eccc;
|
26 |
+
--yith-outline-text: #0087b3;
|
27 |
+
--yith-outline-border: #0094c4;
|
28 |
+
--yith-outline-bg: #ffffff;
|
29 |
+
--yith-outline-bg-hover: rgba(157, 198, 205, 0.2);
|
30 |
+
--yith-outline-border-hover: #007ba3;
|
31 |
+
--yith-outline-focus: #dfeef2;
|
32 |
+
--yith-accent: #98aa36;
|
33 |
+
--yith-light-bg: #f0f6fb;
|
34 |
+
--yith-light-border-color: #d7e3e7;
|
35 |
+
--yith-light-shadow: rgba(145, 191, 227, 0.11);
|
36 |
+
--yith-light-accent: #0079b0;
|
37 |
+
--yith-success: #98aa36;
|
38 |
+
--yith-success-light: #d4df9a;
|
39 |
+
--yith-success-lighter: #eaefcc;
|
40 |
+
--yith-success-lightest: #f5f8e7;
|
41 |
+
--yith-table-row-highlight: #f0f6fb;
|
42 |
+
--yith-table-row-striped: #f6f7f7;
|
43 |
+
--yith-table-border-light: #eff0f0;
|
44 |
+
--yith-field-border-color: #d8d8d8;
|
45 |
+
--yith-field-border-weight: #d8d8d8;
|
46 |
+
--yith-field-border: 1px solid #d8d8d8;
|
47 |
+
--yith-link: #0079b0;
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* YITH Plugin UI - WP Pages
|
52 |
+
*/
|
53 |
+
.yith-plugin-fw-wp-page-wrapper .yith-plugin-fw__back-to-wp-list__wrapper {
|
54 |
+
margin: -5px 0 15px;
|
55 |
+
}
|
56 |
+
|
57 |
+
.yith-plugin-fw-wp-page-wrapper .yith-plugin-fw__back-to-wp-list__wrapper .yith-plugin-fw__back-to-wp-list {
|
58 |
+
text-decoration: none;
|
59 |
+
font-weight: 600;
|
60 |
+
text-transform: uppercase;
|
61 |
+
color: var(--yith-link);
|
62 |
+
vertical-align: middle;
|
63 |
+
}
|
64 |
+
|
65 |
+
.yith-plugin-fw-wp-page-wrapper .yith-plugin-fw__back-to-wp-list__wrapper .yith-plugin-fw__back-to-wp-list:before {
|
66 |
+
content: "\e901";
|
67 |
+
font-family: yith-icon;
|
68 |
+
margin-right: 5px;
|
69 |
+
font-size: .8em;
|
70 |
+
vertical-align: middle;
|
71 |
+
}
|
72 |
+
|
73 |
+
.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated {
|
74 |
+
display: none;
|
75 |
+
padding: 15px 40px 15px 45px;
|
76 |
+
margin: 15px 0 20px;
|
77 |
+
border-radius: 5px;
|
78 |
+
background: var(--yith-success-lightest);
|
79 |
+
border: 1px solid var(--yith-success-light);
|
80 |
+
font-weight: 600;
|
81 |
+
font-size: 14px;
|
82 |
+
text-align: left;
|
83 |
+
color: var(--yith-content-text);
|
84 |
+
box-shadow: 1px 1px 2px var(--yith-success-lighter);
|
85 |
+
}
|
86 |
+
|
87 |
+
.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated:before {
|
88 |
+
font-family: yith-icon;
|
89 |
+
content: "\e921";
|
90 |
+
position: absolute;
|
91 |
+
top: 50%;
|
92 |
+
left: 13px;
|
93 |
+
font-size: 21px;
|
94 |
+
font-weight: 400;
|
95 |
+
transform: translateY(-50%);
|
96 |
+
color: var(--yith-success);
|
97 |
+
}
|
98 |
+
|
99 |
+
.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated p {
|
100 |
+
padding: 0;
|
101 |
+
margin: 0;
|
102 |
+
}
|
103 |
+
|
104 |
+
.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss {
|
105 |
+
position: absolute;
|
106 |
+
top: 50%;
|
107 |
+
right: 10px;
|
108 |
+
transform: translateY(-50%);
|
109 |
+
border-radius: 50%;
|
110 |
+
color: var(--yith-success);
|
111 |
+
padding: 7px;
|
112 |
+
background: transparent;
|
113 |
+
box-shadow: 0 0 0 5px rgba(0, 0, 0, 0);
|
114 |
+
transition: all .3s ease-in-out;
|
115 |
+
}
|
116 |
+
|
117 |
+
.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:before {
|
118 |
+
font-family: yith-icon;
|
119 |
+
content: "\e906";
|
120 |
+
font-weight: 600;
|
121 |
+
font-size: 12px;
|
122 |
+
color: inherit;
|
123 |
+
}
|
124 |
+
|
125 |
+
.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:hover {
|
126 |
+
box-shadow: 0 0 0 0 var(--yith-success-lighter);
|
127 |
+
background: var(--yith-success-lighter);
|
128 |
+
}
|
129 |
+
|
130 |
+
.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:hover:before, .yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:active:before, .yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:focus:before {
|
131 |
+
color: inherit;
|
132 |
+
}
|
133 |
+
|
134 |
+
/**
|
135 |
+
* YITH Plugin UI - Taxonomy Style
|
136 |
+
*/
|
137 |
+
.yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-container, .yith-plugin-ui--taxonomy-type #col-container {
|
138 |
+
display: flex;
|
139 |
+
}
|
140 |
+
|
141 |
+
.yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-left, .yith-plugin-ui--taxonomy-type #col-left {
|
142 |
+
padding: 20px;
|
143 |
+
background: #f1f1f1;
|
144 |
+
border-radius: 8px;
|
145 |
+
box-sizing: border-box;
|
146 |
+
margin-right: 15px;
|
147 |
+
}
|
148 |
+
|
149 |
+
.yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-right, .yith-plugin-ui--taxonomy-type #col-right {
|
150 |
+
flex: 1;
|
151 |
+
}
|
152 |
+
|
153 |
+
.yith-plugin-ui.yith-plugin-ui--taxonomy-type h2, .yith-plugin-ui--taxonomy-type h2 {
|
154 |
+
border: none;
|
155 |
+
padding: 0;
|
156 |
+
font-size: 14px;
|
157 |
+
background: transparent;
|
158 |
+
}
|
159 |
+
|
160 |
+
.yith-plugin-ui.yith-plugin-ui--taxonomy-type .wrap h1, .yith-plugin-ui--taxonomy-type .wrap h1 {
|
161 |
+
color: #2a8db0;
|
162 |
+
font-size: 16px;
|
163 |
+
font-weight: 600;
|
164 |
+
}
|
165 |
+
|
166 |
+
@media screen and (max-width: 782px) {
|
167 |
+
.yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-container {
|
168 |
+
display: block;
|
169 |
+
}
|
170 |
+
.yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-left, .yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-right {
|
171 |
+
float: none;
|
172 |
+
width: 100%;
|
173 |
+
}
|
174 |
+
}
|
175 |
+
|
176 |
+
/**
|
177 |
+
* YITH Plugin UI - Components
|
178 |
+
*/
|
179 |
+
.yith-plugin-ui .yith-plugin-fw__action-button, .yith-plugin-fw__action-button {
|
180 |
+
height: 35px;
|
181 |
+
width: 35px;
|
182 |
+
background-color: var(--yith-content-bg);
|
183 |
+
display: inline-block;
|
184 |
+
border: 0;
|
185 |
+
border-radius: 50%;
|
186 |
+
transition: .3s;
|
187 |
+
cursor: pointer;
|
188 |
+
box-shadow: 0 2px 7px rgba(170, 198, 222, 0.5);
|
189 |
+
outline: none;
|
190 |
+
position: relative;
|
191 |
+
margin: 0 5px 5px 0;
|
192 |
+
vertical-align: middle;
|
193 |
+
}
|
194 |
+
|
195 |
+
.yith-plugin-ui .yith-plugin-fw__action-button .yith-plugin-fw__action-button__link, .yith-plugin-fw__action-button .yith-plugin-fw__action-button__link {
|
196 |
+
height: 100%;
|
197 |
+
width: 100%;
|
198 |
+
display: inline-block;
|
199 |
+
}
|
200 |
+
|
201 |
+
.yith-plugin-ui .yith-plugin-fw__action-button .yith-plugin-fw__action-button__icon, .yith-plugin-fw__action-button .yith-plugin-fw__action-button__icon {
|
202 |
+
position: absolute;
|
203 |
+
color: var(--yith-link);
|
204 |
+
font-size: 17px;
|
205 |
+
top: 50%;
|
206 |
+
left: 50%;
|
207 |
+
transform: translateX(-50%) translateY(-50%);
|
208 |
+
}
|
209 |
+
|
210 |
+
.yith-plugin-ui .yith-plugin-fw__action-button.yith-plugin-fw__action-button--trash-action .yith-plugin-fw__action-button__icon,
|
211 |
+
.yith-plugin-ui .yith-plugin-fw__action-button.yith-plugin-fw__action-button--delete-action .yith-plugin-fw__action-button__icon, .yith-plugin-fw__action-button.yith-plugin-fw__action-button--trash-action .yith-plugin-fw__action-button__icon,
|
212 |
+
.yith-plugin-fw__action-button.yith-plugin-fw__action-button--delete-action .yith-plugin-fw__action-button__icon {
|
213 |
+
color: #a10000;
|
214 |
+
}
|
215 |
+
|
216 |
+
.yith-plugin-ui .yith-plugin-fw__action-button .yith-plugin-fw__action-button__menu, .yith-plugin-fw__action-button .yith-plugin-fw__action-button__menu {
|
217 |
+
position: absolute;
|
218 |
+
display: none;
|
219 |
+
flex-direction: column;
|
220 |
+
width: max-content;
|
221 |
+
right: 0;
|
222 |
+
margin: 5px 0 0 0;
|
223 |
+
padding: 8px 0;
|
224 |
+
background: var(--yith-content-bg);
|
225 |
+
border-radius: 5px;
|
226 |
+
box-shadow: 0 2px 7px rgba(170, 198, 222, 0.5);
|
227 |
+
z-index: 10;
|
228 |
+
animation: yith-plugin-fw-appear-from-top .3s forwards;
|
229 |
+
}
|
230 |
+
|
231 |
+
.yith-plugin-ui .yith-plugin-fw__action-button .yith-plugin-fw__action-button__menu__item, .yith-plugin-fw__action-button .yith-plugin-fw__action-button__menu__item {
|
232 |
+
margin: 0;
|
233 |
+
display: block;
|
234 |
+
padding: 7px 25px;
|
235 |
+
color: var(--yith-content-text);
|
236 |
+
cursor: pointer;
|
237 |
+
text-decoration: none;
|
238 |
+
text-align: right;
|
239 |
+
}
|
240 |
+
|
241 |
+
.yith-plugin-ui .yith-plugin-fw__action-button .yith-plugin-fw__action-button__menu__item:hover, .yith-plugin-fw__action-button .yith-plugin-fw__action-button__menu__item:hover {
|
242 |
+
color: var(--yith-link);
|
243 |
+
}
|
244 |
+
|
245 |
+
.yith-plugin-ui .yith-plugin-fw__action-button.yith-plugin-fw__action-button--has-menu .yith-plugin-fw__action-button__icon, .yith-plugin-fw__action-button.yith-plugin-fw__action-button--has-menu .yith-plugin-fw__action-button__icon {
|
246 |
+
color: var(--yith-content-text);
|
247 |
+
}
|
248 |
+
|
249 |
+
.yith-plugin-ui .yith-plugin-fw__action-button.yith-plugin-fw__action-button--has-menu.yith-plugin-fw__action-button--opened .yith-plugin-fw__action-button__icon, .yith-plugin-fw__action-button.yith-plugin-fw__action-button--has-menu.yith-plugin-fw__action-button--opened .yith-plugin-fw__action-button__icon {
|
250 |
+
color: var(--yith-link);
|
251 |
+
}
|
252 |
+
|
253 |
+
.yith-plugin-ui .yith-plugin-fw__action-button.yith-plugin-fw__action-button--has-menu.yith-plugin-fw__action-button--opened .yith-plugin-fw__action-button__menu, .yith-plugin-fw__action-button.yith-plugin-fw__action-button--has-menu.yith-plugin-fw__action-button--opened .yith-plugin-fw__action-button__menu {
|
254 |
+
display: flex;
|
255 |
+
}
|
256 |
+
|
257 |
+
.yith-plugin-ui .button-primary, .yith-plugin-ui .button-secondary, .wp-core-ui .yith-plugin-ui .button-primary, .wp-core-ui .yith-plugin-ui .button-secondary {
|
258 |
+
border-radius: 3px;
|
259 |
+
text-transform: none;
|
260 |
+
box-shadow: none;
|
261 |
+
border: 1px solid;
|
262 |
+
font-weight: 600;
|
263 |
+
padding: 0 12px;
|
264 |
+
outline: none;
|
265 |
+
height: auto;
|
266 |
+
transition: all ease 0.3s;
|
267 |
+
text-shadow: none;
|
268 |
+
display: inline-block;
|
269 |
+
text-decoration: none;
|
270 |
+
cursor: pointer;
|
271 |
+
}
|
272 |
+
|
273 |
+
.yith-plugin-ui .button-primary:focus, .yith-plugin-ui .button-secondary:focus, .wp-core-ui .yith-plugin-ui .button-primary:focus, .wp-core-ui .yith-plugin-ui .button-secondary:focus {
|
274 |
+
outline: none;
|
275 |
+
box-shadow: none;
|
276 |
+
}
|
277 |
+
|
278 |
+
.yith-plugin-ui .button-primary.button-small, .yith-plugin-ui .button-secondary.button-small, .wp-core-ui .yith-plugin-ui .button-primary.button-small, .wp-core-ui .yith-plugin-ui .button-secondary.button-small {
|
279 |
+
padding: 0 8px;
|
280 |
+
}
|
281 |
+
|
282 |
+
.yith-plugin-ui .button-secondary, .wp-core-ui .yith-plugin-ui .button-secondary {
|
283 |
+
background: var(--yith-outline-bg);
|
284 |
+
border: 1px solid var(--yith-outline-border);
|
285 |
+
color: var(--yith-outline-text);
|
286 |
+
}
|
287 |
+
|
288 |
+
.yith-plugin-ui .button-secondary:focus, .wp-core-ui .yith-plugin-ui .button-secondary:focus {
|
289 |
+
background: var(--yith-outline-bg);
|
290 |
+
border: 1px solid var(--yith-outline-border);
|
291 |
+
color: var(--yith-outline-text);
|
292 |
+
box-shadow: 0 0 0 3px var(--yith-outline-focus);
|
293 |
+
}
|
294 |
+
|
295 |
+
.yith-plugin-ui .button-secondary:hover, .yith-plugin-ui .button-secondary:active, .wp-core-ui .yith-plugin-ui .button-secondary:hover, .wp-core-ui .yith-plugin-ui .button-secondary:active {
|
296 |
+
background: var(--yith-outline-bg-hover);
|
297 |
+
border-color: var(--yith-outline-border-hover);
|
298 |
+
color: var(--yith-outline-text);
|
299 |
+
}
|
300 |
+
|
301 |
+
.yith-plugin-ui .button-primary, .wp-core-ui .yith-plugin-ui .button-primary {
|
302 |
+
background: var(--yith-primary);
|
303 |
+
color: var(--yith-primary-text);
|
304 |
+
border: 1px solid var(--yith-primary);
|
305 |
+
}
|
306 |
+
|
307 |
+
.yith-plugin-ui .button-primary:focus, .wp-core-ui .yith-plugin-ui .button-primary:focus {
|
308 |
+
background: var(--yith-primary);
|
309 |
+
color: var(--yith-primary-text);
|
310 |
+
border: 1px solid var(--yith-primary);
|
311 |
+
box-shadow: 0 0 0 3px var(--yith-primary-focus);
|
312 |
+
}
|
313 |
+
|
314 |
+
.yith-plugin-ui .button-primary:hover, .yith-plugin-ui .button-primary:active, .wp-core-ui .yith-plugin-ui .button-primary:hover, .wp-core-ui .yith-plugin-ui .button-primary:active {
|
315 |
+
background: var(--yith-primary-hover);
|
316 |
+
color: var(--yith-primary-text);
|
317 |
+
border: 1px solid var(--yith-primary-hover);
|
318 |
+
}
|
319 |
+
|
320 |
+
.yith-plugin-ui .button.action,
|
321 |
+
.yith-plugin-ui #doaction,
|
322 |
+
.yith-plugin-ui #doaction2,
|
323 |
+
.yith-plugin-ui #post-query-submit,
|
324 |
+
.yith-plugin-ui #search-submit,
|
325 |
+
.yith-plugin-ui .button.filter-button, .wp-core-ui .yith-plugin-ui .button.action,
|
326 |
+
.wp-core-ui .yith-plugin-ui #doaction,
|
327 |
+
.wp-core-ui .yith-plugin-ui #doaction2,
|
328 |
+
.wp-core-ui .yith-plugin-ui #post-query-submit,
|
329 |
+
.wp-core-ui .yith-plugin-ui #search-submit,
|
330 |
+
.wp-core-ui .yith-plugin-ui .button.filter-button {
|
331 |
+
background: var(--yith-outline-bg);
|
332 |
+
border: 1px solid var(--yith-outline-border);
|
333 |
+
color: var(--yith-outline-text);
|
334 |
+
height: auto;
|
335 |
+
line-height: 33px;
|
336 |
+
border-radius: 8px;
|
337 |
+
padding: 0 15px;
|
338 |
+
font-weight: 600;
|
339 |
+
}
|
340 |
+
|
341 |
+
.yith-plugin-ui .button.action:focus,
|
342 |
+
.yith-plugin-ui #doaction:focus,
|
343 |
+
.yith-plugin-ui #doaction2:focus,
|
344 |
+
.yith-plugin-ui #post-query-submit:focus,
|
345 |
+
.yith-plugin-ui #search-submit:focus,
|
346 |
+
.yith-plugin-ui .button.filter-button:focus, .wp-core-ui .yith-plugin-ui .button.action:focus,
|
347 |
+
.wp-core-ui .yith-plugin-ui #doaction:focus,
|
348 |
+
.wp-core-ui .yith-plugin-ui #doaction2:focus,
|
349 |
+
.wp-core-ui .yith-plugin-ui #post-query-submit:focus,
|
350 |
+
.wp-core-ui .yith-plugin-ui #search-submit:focus,
|
351 |
+
.wp-core-ui .yith-plugin-ui .button.filter-button:focus {
|
352 |
+
background: var(--yith-outline-bg);
|
353 |
+
border: 1px solid var(--yith-outline-border);
|
354 |
+
color: var(--yith-outline-text);
|
355 |
+
box-shadow: 0 0 0 3px var(--yith-outline-focus);
|
356 |
+
}
|
357 |
+
|
358 |
+
.yith-plugin-ui .button.action:hover, .yith-plugin-ui .button.action:active,
|
359 |
+
.yith-plugin-ui #doaction:hover,
|
360 |
+
.yith-plugin-ui #doaction:active,
|
361 |
+
.yith-plugin-ui #doaction2:hover,
|
362 |
+
.yith-plugin-ui #doaction2:active,
|
363 |
+
.yith-plugin-ui #post-query-submit:hover,
|
364 |
+
.yith-plugin-ui #post-query-submit:active,
|
365 |
+
.yith-plugin-ui #search-submit:hover,
|
366 |
+
.yith-plugin-ui #search-submit:active,
|
367 |
+
.yith-plugin-ui .button.filter-button:hover,
|
368 |
+
.yith-plugin-ui .button.filter-button:active, .wp-core-ui .yith-plugin-ui .button.action:hover, .wp-core-ui .yith-plugin-ui .button.action:active,
|
369 |
+
.wp-core-ui .yith-plugin-ui #doaction:hover,
|
370 |
+
.wp-core-ui .yith-plugin-ui #doaction:active,
|
371 |
+
.wp-core-ui .yith-plugin-ui #doaction2:hover,
|
372 |
+
.wp-core-ui .yith-plugin-ui #doaction2:active,
|
373 |
+
.wp-core-ui .yith-plugin-ui #post-query-submit:hover,
|
374 |
+
.wp-core-ui .yith-plugin-ui #post-query-submit:active,
|
375 |
+
.wp-core-ui .yith-plugin-ui #search-submit:hover,
|
376 |
+
.wp-core-ui .yith-plugin-ui #search-submit:active,
|
377 |
+
.wp-core-ui .yith-plugin-ui .button.filter-button:hover,
|
378 |
+
.wp-core-ui .yith-plugin-ui .button.filter-button:active {
|
379 |
+
background: var(--yith-outline-bg-hover);
|
380 |
+
border-color: var(--yith-outline-border-hover);
|
381 |
+
color: var(--yith-outline-text);
|
382 |
+
}
|
383 |
+
|
384 |
+
.yith-plugin-ui .tablenav .tablenav-pages .button,
|
385 |
+
.yith-plugin-ui .tablenav .tablenav-pages .tablenav-pages-navspan, .wp-core-ui .yith-plugin-ui .tablenav .tablenav-pages .button,
|
386 |
+
.wp-core-ui .yith-plugin-ui .tablenav .tablenav-pages .tablenav-pages-navspan {
|
387 |
+
background: var(--yith-outline-bg);
|
388 |
+
border: 1px solid var(--yith-outline-border);
|
389 |
+
color: var(--yith-outline-text);
|
390 |
+
}
|
391 |
+
|
392 |
+
.yith-plugin-ui .tablenav .tablenav-pages .button:focus,
|
393 |
+
.yith-plugin-ui .tablenav .tablenav-pages .tablenav-pages-navspan:focus, .wp-core-ui .yith-plugin-ui .tablenav .tablenav-pages .button:focus,
|
394 |
+
.wp-core-ui .yith-plugin-ui .tablenav .tablenav-pages .tablenav-pages-navspan:focus {
|
395 |
+
background: var(--yith-outline-bg);
|
396 |
+
border: 1px solid var(--yith-outline-border);
|
397 |
+
color: var(--yith-outline-text);
|
398 |
+
box-shadow: 0 0 0 3px var(--yith-outline-focus);
|
399 |
+
}
|
400 |
+
|
401 |
+
.yith-plugin-ui .tablenav .tablenav-pages .button:hover, .yith-plugin-ui .tablenav .tablenav-pages .button:active,
|
402 |
+
.yith-plugin-ui .tablenav .tablenav-pages .tablenav-pages-navspan:hover,
|
403 |
+
.yith-plugin-ui .tablenav .tablenav-pages .tablenav-pages-navspan:active, .wp-core-ui .yith-plugin-ui .tablenav .tablenav-pages .button:hover, .wp-core-ui .yith-plugin-ui .tablenav .tablenav-pages .button:active,
|
404 |
+
.wp-core-ui .yith-plugin-ui .tablenav .tablenav-pages .tablenav-pages-navspan:hover,
|
405 |
+
.wp-core-ui .yith-plugin-ui .tablenav .tablenav-pages .tablenav-pages-navspan:active {
|
406 |
+
background: var(--yith-outline-bg-hover);
|
407 |
+
border-color: var(--yith-outline-border-hover);
|
408 |
+
color: var(--yith-outline-text);
|
409 |
+
}
|
410 |
+
|
411 |
+
@media screen and (max-width: 782px) {
|
412 |
+
.yith-plugin-ui .tablenav .tablenav-pages .button, .yith-plugin-ui .tablenav .tablenav-pages .tablenav-pages-navspan, .wp-core-ui .yith-plugin-ui .tablenav .tablenav-pages .button, .wp-core-ui .yith-plugin-ui .tablenav .tablenav-pages .tablenav-pages-navspan {
|
413 |
+
min-width: 44px;
|
414 |
+
padding: 12px 8px;
|
415 |
+
font-size: 18px;
|
416 |
+
line-height: 1;
|
417 |
+
}
|
418 |
+
}
|
419 |
+
|
420 |
+
.yith-plugin-ui .yith-plugin-fw__button, .yith-plugin-ui [class^="yith-plugin-fw__button--"], .yith-plugin-ui [class*=" yith-plugin-fw__button--"],
|
421 |
+
.yith-plugin-ui .yith-add-button, .yith-plugin-ui .yith-edit-button, .yith-plugin-ui .yith-update-button, .yith-plugin-ui .yith-remove-button, .yith-plugin-ui .yith-plugin-fw-upload-button, .yith-plugin-ui .yith-save-button, .yith-plugin-ui .yith-plugin-fw-select-all, .yith-plugin-ui .yith-plugin-fw-deselect-all, .yith-plugin-ui .yith-plugin-fw-upload-button-reset, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button, .wp-core-ui .yith-plugin-ui [class^="yith-plugin-fw__button--"], .wp-core-ui .yith-plugin-ui [class*=" yith-plugin-fw__button--"],
|
422 |
+
.wp-core-ui .yith-plugin-ui .yith-add-button, .wp-core-ui .yith-plugin-ui .yith-edit-button, .wp-core-ui .yith-plugin-ui .yith-update-button, .wp-core-ui .yith-plugin-ui .yith-remove-button, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button, .wp-core-ui .yith-plugin-ui .yith-save-button, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-select-all, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-deselect-all, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button-reset {
|
423 |
+
display: inline-block;
|
424 |
+
height: auto;
|
425 |
+
line-height: 30px;
|
426 |
+
border-radius: 4px;
|
427 |
+
padding: 0 17px;
|
428 |
+
font-weight: 600;
|
429 |
+
cursor: pointer;
|
430 |
+
transition: all .3s ease-in-out;
|
431 |
+
text-decoration: none;
|
432 |
+
}
|
433 |
+
|
434 |
+
.yith-plugin-ui .yith-plugin-fw__button:focus, .yith-plugin-ui [class^="yith-plugin-fw__button--"]:focus, .yith-plugin-ui [class*=" yith-plugin-fw__button--"]:focus,
|
435 |
+
.yith-plugin-ui .yith-add-button:focus, .yith-plugin-ui .yith-edit-button:focus, .yith-plugin-ui .yith-update-button:focus, .yith-plugin-ui .yith-remove-button:focus, .yith-plugin-ui .yith-plugin-fw-upload-button:focus, .yith-plugin-ui .yith-save-button:focus, .yith-plugin-ui .yith-plugin-fw-select-all:focus, .yith-plugin-ui .yith-plugin-fw-deselect-all:focus, .yith-plugin-ui .yith-plugin-fw-upload-button-reset:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button:focus, .wp-core-ui .yith-plugin-ui [class^="yith-plugin-fw__button--"]:focus, .wp-core-ui .yith-plugin-ui [class*=" yith-plugin-fw__button--"]:focus,
|
436 |
+
.wp-core-ui .yith-plugin-ui .yith-add-button:focus, .wp-core-ui .yith-plugin-ui .yith-edit-button:focus, .wp-core-ui .yith-plugin-ui .yith-update-button:focus, .wp-core-ui .yith-plugin-ui .yith-remove-button:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button:focus, .wp-core-ui .yith-plugin-ui .yith-save-button:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-select-all:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-deselect-all:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button-reset:focus {
|
437 |
+
outline: none;
|
438 |
+
box-shadow: none;
|
439 |
+
}
|
440 |
+
|
441 |
+
.yith-plugin-ui .yith-plugin-fw__button--primary, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--primary {
|
442 |
+
background: var(--yith-primary);
|
443 |
+
color: var(--yith-primary-text);
|
444 |
+
border: 1px solid var(--yith-primary);
|
445 |
+
}
|
446 |
+
|
447 |
+
.yith-plugin-ui .yith-plugin-fw__button--primary:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--primary:focus {
|
448 |
+
background: var(--yith-primary);
|
449 |
+
color: var(--yith-primary-text);
|
450 |
+
border: 1px solid var(--yith-primary);
|
451 |
+
box-shadow: 0 0 0 3px var(--yith-primary-focus);
|
452 |
+
}
|
453 |
+
|
454 |
+
.yith-plugin-ui .yith-plugin-fw__button--primary:hover, .yith-plugin-ui .yith-plugin-fw__button--primary:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--primary:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--primary:active {
|
455 |
+
background: var(--yith-primary-hover);
|
456 |
+
color: var(--yith-primary-text);
|
457 |
+
border: 1px solid var(--yith-primary-hover);
|
458 |
+
}
|
459 |
+
|
460 |
+
.yith-plugin-ui .yith-plugin-fw__button--secondary, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--secondary {
|
461 |
+
background: var(--yith-outline-bg);
|
462 |
+
border: 1px solid var(--yith-outline-border);
|
463 |
+
color: var(--yith-outline-text);
|
464 |
+
}
|
465 |
+
|
466 |
+
.yith-plugin-ui .yith-plugin-fw__button--secondary:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--secondary:focus {
|
467 |
+
background: var(--yith-outline-bg);
|
468 |
+
border: 1px solid var(--yith-outline-border);
|
469 |
+
color: var(--yith-outline-text);
|
470 |
+
box-shadow: 0 0 0 3px var(--yith-outline-focus);
|
471 |
+
}
|
472 |
+
|
473 |
+
.yith-plugin-ui .yith-plugin-fw__button--secondary:hover, .yith-plugin-ui .yith-plugin-fw__button--secondary:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--secondary:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--secondary:active {
|
474 |
+
background: var(--yith-outline-bg-hover);
|
475 |
+
border-color: var(--yith-outline-border-hover);
|
476 |
+
color: var(--yith-outline-text);
|
477 |
+
}
|
478 |
+
|
479 |
+
.yith-plugin-ui .yith-plugin-fw__button--delete, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--delete {
|
480 |
+
background: var(--yith-delete);
|
481 |
+
color: var(--yith-delete-text);
|
482 |
+
border: 1px solid var(--yith-delete);
|
483 |
+
}
|
484 |
+
|
485 |
+
.yith-plugin-ui .yith-plugin-fw__button--delete:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--delete:focus {
|
486 |
+
background: var(--yith-delete);
|
487 |
+
color: var(--yith-delete-text);
|
488 |
+
border: 1px solid var(--yith-delete);
|
489 |
+
box-shadow: 0 0 0 3px var(--yith-delete-focus);
|
490 |
+
}
|
491 |
+
|
492 |
+
.yith-plugin-ui .yith-plugin-fw__button--delete:hover, .yith-plugin-ui .yith-plugin-fw__button--delete:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--delete:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--delete:active {
|
493 |
+
background: var(--yith-delete-hover);
|
494 |
+
color: var(--yith-delete-text);
|
495 |
+
border: 1px solid var(--yith-delete-hover);
|
496 |
+
}
|
497 |
+
|
498 |
+
.yith-plugin-ui .yith-plugin-fw__button--add, .yith-plugin-ui .yith-add-button, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--add, .wp-core-ui .yith-plugin-ui .yith-add-button {
|
499 |
+
background: var(--yith-primary);
|
500 |
+
color: var(--yith-primary-text);
|
501 |
+
border: 1px solid var(--yith-primary);
|
502 |
+
}
|
503 |
+
|
504 |
+
.yith-plugin-ui .yith-plugin-fw__button--add:focus, .yith-plugin-ui .yith-add-button:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--add:focus, .wp-core-ui .yith-plugin-ui .yith-add-button:focus {
|
505 |
+
background: var(--yith-primary);
|
506 |
+
color: var(--yith-primary-text);
|
507 |
+
border: 1px solid var(--yith-primary);
|
508 |
+
box-shadow: 0 0 0 3px var(--yith-primary-focus);
|
509 |
+
}
|
510 |
+
|
511 |
+
.yith-plugin-ui .yith-plugin-fw__button--add:hover, .yith-plugin-ui .yith-plugin-fw__button--add:active, .yith-plugin-ui .yith-add-button:hover, .yith-plugin-ui .yith-add-button:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--add:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--add:active, .wp-core-ui .yith-plugin-ui .yith-add-button:hover, .wp-core-ui .yith-plugin-ui .yith-add-button:active {
|
512 |
+
background: var(--yith-primary-hover);
|
513 |
+
color: var(--yith-primary-text);
|
514 |
+
border: 1px solid var(--yith-primary-hover);
|
515 |
+
}
|
516 |
+
|
517 |
+
.yith-plugin-ui .yith-plugin-fw__button--add:before, .yith-plugin-ui .yith-add-button:before, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--add:before, .wp-core-ui .yith-plugin-ui .yith-add-button:before {
|
518 |
+
font-family: yith-icon;
|
519 |
+
content: "";
|
520 |
+
margin: 0 8px 0 -5px;
|
521 |
+
font-size: 15px;
|
522 |
+
font-weight: 400;
|
523 |
+
vertical-align: top;
|
524 |
+
}
|
525 |
+
|
526 |
+
.yith-plugin-ui .yith-plugin-fw__button--add.closed, .yith-plugin-ui .yith-add-button.closed, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--add.closed, .wp-core-ui .yith-plugin-ui .yith-add-button.closed {
|
527 |
+
background: var(--yith-outline-bg);
|
528 |
+
border: 1px solid var(--yith-outline-border);
|
529 |
+
color: var(--yith-outline-text);
|
530 |
+
}
|
531 |
+
|
532 |
+
.yith-plugin-ui .yith-plugin-fw__button--add.closed:focus, .yith-plugin-ui .yith-add-button.closed:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--add.closed:focus, .wp-core-ui .yith-plugin-ui .yith-add-button.closed:focus {
|
533 |
+
background: var(--yith-outline-bg);
|
534 |
+
border: 1px solid var(--yith-outline-border);
|
535 |
+
color: var(--yith-outline-text);
|
536 |
+
box-shadow: 0 0 0 3px var(--yith-outline-focus);
|
537 |
+
}
|
538 |
+
|
539 |
+
.yith-plugin-ui .yith-plugin-fw__button--add.closed:hover, .yith-plugin-ui .yith-plugin-fw__button--add.closed:active, .yith-plugin-ui .yith-add-button.closed:hover, .yith-plugin-ui .yith-add-button.closed:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--add.closed:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--add.closed:active, .wp-core-ui .yith-plugin-ui .yith-add-button.closed:hover, .wp-core-ui .yith-plugin-ui .yith-add-button.closed:active {
|
540 |
+
background: var(--yith-outline-bg-hover);
|
541 |
+
border-color: var(--yith-outline-border-hover);
|
542 |
+
color: var(--yith-outline-text);
|
543 |
+
}
|
544 |
+
|
545 |
+
.yith-plugin-ui .yith-plugin-fw__button--add.closed:before, .yith-plugin-ui .yith-add-button.closed:before, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--add.closed:before, .wp-core-ui .yith-plugin-ui .yith-add-button.closed:before {
|
546 |
+
font-family: yith-icon;
|
547 |
+
content: "";
|
548 |
+
margin: 0 8px 0 -5px;
|
549 |
+
font-size: 15px;
|
550 |
+
font-weight: 400;
|
551 |
+
vertical-align: top;
|
552 |
+
}
|
553 |
+
|
554 |
+
.yith-plugin-ui .yith-plugin-fw__button--close, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--close {
|
555 |
+
background: var(--yith-outline-bg);
|
556 |
+
border: 1px solid var(--yith-outline-border);
|
557 |
+
color: var(--yith-outline-text);
|
558 |
+
}
|
559 |
+
|
560 |
+
.yith-plugin-ui .yith-plugin-fw__button--close:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--close:focus {
|
561 |
+
background: var(--yith-outline-bg);
|
562 |
+
border: 1px solid var(--yith-outline-border);
|
563 |
+
color: var(--yith-outline-text);
|
564 |
+
box-shadow: 0 0 0 3px var(--yith-outline-focus);
|
565 |
+
}
|
566 |
+
|
567 |
+
.yith-plugin-ui .yith-plugin-fw__button--close:hover, .yith-plugin-ui .yith-plugin-fw__button--close:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--close:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--close:active {
|
568 |
+
background: var(--yith-outline-bg-hover);
|
569 |
+
border-color: var(--yith-outline-border-hover);
|
570 |
+
color: var(--yith-outline-text);
|
571 |
+
}
|
572 |
+
|
573 |
+
.yith-plugin-ui .yith-plugin-fw__button--close:before, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--close:before {
|
574 |
+
font-family: yith-icon;
|
575 |
+
content: "";
|
576 |
+
margin: 0 8px 0 -5px;
|
577 |
+
font-size: 15px;
|
578 |
+
font-weight: 400;
|
579 |
+
vertical-align: top;
|
580 |
+
}
|
581 |
+
|
582 |
+
.yith-plugin-ui .yith-plugin-fw__button--edit, .yith-plugin-ui .yith-edit-button, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--edit, .wp-core-ui .yith-plugin-ui .yith-edit-button {
|
583 |
+
background: var(--yith-outline-bg);
|
584 |
+
border: 1px solid var(--yith-outline-border);
|
585 |
+
color: var(--yith-outline-text);
|
586 |
+
}
|
587 |
+
|
588 |
+
.yith-plugin-ui .yith-plugin-fw__button--edit:focus, .yith-plugin-ui .yith-edit-button:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--edit:focus, .wp-core-ui .yith-plugin-ui .yith-edit-button:focus {
|
589 |
+
background: var(--yith-outline-bg);
|
590 |
+
border: 1px solid var(--yith-outline-border);
|
591 |
+
color: var(--yith-outline-text);
|
592 |
+
box-shadow: 0 0 0 3px var(--yith-outline-focus);
|
593 |
+
}
|
594 |
+
|
595 |
+
.yith-plugin-ui .yith-plugin-fw__button--edit:hover, .yith-plugin-ui .yith-plugin-fw__button--edit:active, .yith-plugin-ui .yith-edit-button:hover, .yith-plugin-ui .yith-edit-button:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--edit:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--edit:active, .wp-core-ui .yith-plugin-ui .yith-edit-button:hover, .wp-core-ui .yith-plugin-ui .yith-edit-button:active {
|
596 |
+
background: var(--yith-outline-bg-hover);
|
597 |
+
border-color: var(--yith-outline-border-hover);
|
598 |
+
color: var(--yith-outline-text);
|
599 |
+
}
|
600 |
+
|
601 |
+
.yith-plugin-ui .yith-plugin-fw__button--edit:before, .yith-plugin-ui .yith-edit-button:before, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--edit:before, .wp-core-ui .yith-plugin-ui .yith-edit-button:before {
|
602 |
+
font-family: yith-icon;
|
603 |
+
content: "";
|
604 |
+
margin: 0 8px 0 -5px;
|
605 |
+
font-size: 15px;
|
606 |
+
font-weight: 400;
|
607 |
+
vertical-align: top;
|
608 |
+
}
|
609 |
+
|
610 |
+
.yith-plugin-ui .yith-plugin-fw__button--update, .yith-plugin-ui .yith-update-button, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--update, .wp-core-ui .yith-plugin-ui .yith-update-button {
|
611 |
+
background: var(--yith-update);
|
612 |
+
color: var(--yith-update-text);
|
613 |
+
border: 1px solid var(--yith-update);
|
614 |
+
}
|
615 |
+
|
616 |
+
.yith-plugin-ui .yith-plugin-fw__button--update:focus, .yith-plugin-ui .yith-update-button:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--update:focus, .wp-core-ui .yith-plugin-ui .yith-update-button:focus {
|
617 |
+
background: var(--yith-update);
|
618 |
+
color: var(--yith-update-text);
|
619 |
+
border: 1px solid var(--yith-update);
|
620 |
+
box-shadow: 0 0 0 3px var(--yith-update-focus);
|
621 |
+
}
|
622 |
+
|
623 |
+
.yith-plugin-ui .yith-plugin-fw__button--update:hover, .yith-plugin-ui .yith-plugin-fw__button--update:active, .yith-plugin-ui .yith-update-button:hover, .yith-plugin-ui .yith-update-button:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--update:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--update:active, .wp-core-ui .yith-plugin-ui .yith-update-button:hover, .wp-core-ui .yith-plugin-ui .yith-update-button:active {
|
624 |
+
background: var(--yith-update-hover);
|
625 |
+
color: var(--yith-update-text);
|
626 |
+
border: 1px solid var(--yith-update-hover);
|
627 |
+
}
|
628 |
+
|
629 |
+
.yith-plugin-ui .yith-plugin-fw__button--update:before, .yith-plugin-ui .yith-update-button:before, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--update:before, .wp-core-ui .yith-plugin-ui .yith-update-button:before {
|
630 |
+
font-family: yith-icon;
|
631 |
+
content: "";
|
632 |
+
margin: 0 8px 0 -5px;
|
633 |
+
font-size: 15px;
|
634 |
+
font-weight: 400;
|
635 |
+
vertical-align: top;
|
636 |
+
}
|
637 |
+
|
638 |
+
.yith-plugin-ui .yith-plugin-fw__button--trash, .yith-plugin-ui .yith-remove-button, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--trash, .wp-core-ui .yith-plugin-ui .yith-remove-button {
|
639 |
+
background: var(--yith-delete);
|
640 |
+
color: var(--yith-delete-text);
|
641 |
+
border: 1px solid var(--yith-delete);
|
642 |
+
}
|
643 |
+
|
644 |
+
.yith-plugin-ui .yith-plugin-fw__button--trash:focus, .yith-plugin-ui .yith-remove-button:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--trash:focus, .wp-core-ui .yith-plugin-ui .yith-remove-button:focus {
|
645 |
+
background: var(--yith-delete);
|
646 |
+
color: var(--yith-delete-text);
|
647 |
+
border: 1px solid var(--yith-delete);
|
648 |
+
box-shadow: 0 0 0 3px var(--yith-delete-focus);
|
649 |
+
}
|
650 |
+
|
651 |
+
.yith-plugin-ui .yith-plugin-fw__button--trash:hover, .yith-plugin-ui .yith-plugin-fw__button--trash:active, .yith-plugin-ui .yith-remove-button:hover, .yith-plugin-ui .yith-remove-button:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--trash:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--trash:active, .wp-core-ui .yith-plugin-ui .yith-remove-button:hover, .wp-core-ui .yith-plugin-ui .yith-remove-button:active {
|
652 |
+
background: var(--yith-delete-hover);
|
653 |
+
color: var(--yith-delete-text);
|
654 |
+
border: 1px solid var(--yith-delete-hover);
|
655 |
+
}
|
656 |
+
|
657 |
+
.yith-plugin-ui .yith-plugin-fw__button--trash:before, .yith-plugin-ui .yith-remove-button:before, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--trash:before, .wp-core-ui .yith-plugin-ui .yith-remove-button:before {
|
658 |
+
font-family: yith-icon;
|
659 |
+
content: "";
|
660 |
+
margin: 0 8px 0 -5px;
|
661 |
+
font-size: 15px;
|
662 |
+
font-weight: 400;
|
663 |
+
vertical-align: top;
|
664 |
+
}
|
665 |
+
|
666 |
+
.yith-plugin-ui .yith-plugin-fw__button--upload, .yith-plugin-ui .yith-plugin-fw-upload-button, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--upload, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button {
|
667 |
+
background: var(--yith-primary);
|
668 |
+
color: var(--yith-primary-text);
|
669 |
+
border: 1px solid var(--yith-primary);
|
670 |
+
}
|
671 |
+
|
672 |
+
.yith-plugin-ui .yith-plugin-fw__button--upload:focus, .yith-plugin-ui .yith-plugin-fw-upload-button:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--upload:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button:focus {
|
673 |
+
background: var(--yith-primary);
|
674 |
+
color: var(--yith-primary-text);
|
675 |
+
border: 1px solid var(--yith-primary);
|
676 |
+
box-shadow: 0 0 0 3px var(--yith-primary-focus);
|
677 |
+
}
|
678 |
+
|
679 |
+
.yith-plugin-ui .yith-plugin-fw__button--upload:hover, .yith-plugin-ui .yith-plugin-fw__button--upload:active, .yith-plugin-ui .yith-plugin-fw-upload-button:hover, .yith-plugin-ui .yith-plugin-fw-upload-button:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--upload:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--upload:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button:active {
|
680 |
+
background: var(--yith-primary-hover);
|
681 |
+
color: var(--yith-primary-text);
|
682 |
+
border: 1px solid var(--yith-primary-hover);
|
683 |
+
}
|
684 |
+
|
685 |
+
.yith-plugin-ui .yith-plugin-fw__button--upload:before, .yith-plugin-ui .yith-plugin-fw-upload-button:before, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--upload:before, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button:before {
|
686 |
+
font-family: yith-icon;
|
687 |
+
content: "";
|
688 |
+
margin: 0 8px 0 -5px;
|
689 |
+
font-size: 15px;
|
690 |
+
font-weight: 400;
|
691 |
+
vertical-align: top;
|
692 |
+
}
|
693 |
+
|
694 |
+
.yith-plugin-ui .yith-save-button, .wp-core-ui .yith-plugin-ui .yith-save-button {
|
695 |
+
background: var(--yith-primary);
|
696 |
+
color: var(--yith-primary-text);
|
697 |
+
border: 1px solid var(--yith-primary);
|
698 |
+
}
|
699 |
+
|
700 |
+
.yith-plugin-ui .yith-save-button:focus, .wp-core-ui .yith-plugin-ui .yith-save-button:focus {
|
701 |
+
background: var(--yith-primary);
|
702 |
+
color: var(--yith-primary-text);
|
703 |
+
border: 1px solid var(--yith-primary);
|
704 |
+
box-shadow: 0 0 0 3px var(--yith-primary-focus);
|
705 |
+
}
|
706 |
+
|
707 |
+
.yith-plugin-ui .yith-save-button:hover, .yith-plugin-ui .yith-save-button:active, .wp-core-ui .yith-plugin-ui .yith-save-button:hover, .wp-core-ui .yith-plugin-ui .yith-save-button:active {
|
708 |
+
background: var(--yith-primary-hover);
|
709 |
+
color: var(--yith-primary-text);
|
710 |
+
border: 1px solid var(--yith-primary-hover);
|
711 |
+
}
|
712 |
+
|
713 |
+
.yith-plugin-ui .yith-plugin-fw-select-all,
|
714 |
+
.yith-plugin-ui .yith-plugin-fw-deselect-all,
|
715 |
+
.yith-plugin-ui .yith-plugin-fw-upload-button-reset, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-select-all,
|
716 |
+
.wp-core-ui .yith-plugin-ui .yith-plugin-fw-deselect-all,
|
717 |
+
.wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button-reset {
|
718 |
+
background: var(--yith-outline-bg);
|
719 |
+
border: 1px solid var(--yith-outline-border);
|
720 |
+
color: var(--yith-outline-text);
|
721 |
+
}
|
722 |
+
|
723 |
+
.yith-plugin-ui .yith-plugin-fw-select-all:focus,
|
724 |
+
.yith-plugin-ui .yith-plugin-fw-deselect-all:focus,
|
725 |
+
.yith-plugin-ui .yith-plugin-fw-upload-button-reset:focus, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-select-all:focus,
|
726 |
+
.wp-core-ui .yith-plugin-ui .yith-plugin-fw-deselect-all:focus,
|
727 |
+
.wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button-reset:focus {
|
728 |
+
background: var(--yith-outline-bg);
|
729 |
+
border: 1px solid var(--yith-outline-border);
|
730 |
+
color: var(--yith-outline-text);
|
731 |
+
box-shadow: 0 0 0 3px var(--yith-outline-focus);
|
732 |
+
}
|
733 |
+
|
734 |
+
.yith-plugin-ui .yith-plugin-fw-select-all:hover, .yith-plugin-ui .yith-plugin-fw-select-all:active,
|
735 |
+
.yith-plugin-ui .yith-plugin-fw-deselect-all:hover,
|
736 |
+
.yith-plugin-ui .yith-plugin-fw-deselect-all:active,
|
737 |
+
.yith-plugin-ui .yith-plugin-fw-upload-button-reset:hover,
|
738 |
+
.yith-plugin-ui .yith-plugin-fw-upload-button-reset:active, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-select-all:hover, .wp-core-ui .yith-plugin-ui .yith-plugin-fw-select-all:active,
|
739 |
+
.wp-core-ui .yith-plugin-ui .yith-plugin-fw-deselect-all:hover,
|
740 |
+
.wp-core-ui .yith-plugin-ui .yith-plugin-fw-deselect-all:active,
|
741 |
+
.wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button-reset:hover,
|
742 |
+
.wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button-reset:active {
|
743 |
+
background: var(--yith-outline-bg-hover);
|
744 |
+
border-color: var(--yith-outline-border-hover);
|
745 |
+
color: var(--yith-outline-text);
|
746 |
+
}
|
747 |
+
|
748 |
+
.yith-plugin-ui .button-secondary span.yith-icon, .wp-core-ui .yith-plugin-ui .button-secondary span.yith-icon {
|
749 |
+
margin-left: 0;
|
750 |
+
margin-right: 10px;
|
751 |
+
line-height: normal;
|
752 |
+
}
|
753 |
+
|
754 |
+
.yith-plugin-ui .button-secondary span.yith-icon:before, .wp-core-ui .yith-plugin-ui .button-secondary span.yith-icon:before {
|
755 |
+
color: inherit;
|
756 |
+
font-size: 15px;
|
757 |
+
font-weight: 400;
|
758 |
+
}
|
759 |
+
|
760 |
+
.yith-plugin-ui .yith-plugin-fw__button--with-icon, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--with-icon {
|
761 |
+
position: relative;
|
762 |
+
padding-left: 30px;
|
763 |
+
}
|
764 |
+
|
765 |
+
.yith-plugin-ui .yith-plugin-fw__button--with-icon i, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--with-icon i {
|
766 |
+
position: absolute;
|
767 |
+
top: 50%;
|
768 |
+
left: 10px;
|
769 |
+
transform: translateY(-50%);
|
770 |
+
font-size: 1.15em;
|
771 |
+
font-weight: 400;
|
772 |
+
}
|
773 |
+
|
774 |
+
.yith-plugin-ui .yith-plugin-fw__button--xl, .yith-plugin-ui .button-xl, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--xl, .wp-core-ui .yith-plugin-ui .button-xl {
|
775 |
+
padding: 0 20px;
|
776 |
+
font-size: 14px;
|
777 |
+
line-height: 38px;
|
778 |
+
}
|
779 |
+
|
780 |
+
.yith-plugin-ui .yith-plugin-fw__button--xl::before, .yith-plugin-ui .button-xl::before, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--xl::before, .wp-core-ui .yith-plugin-ui .button-xl::before {
|
781 |
+
margin: 0 10px 0 -5px;
|
782 |
+
}
|
783 |
+
|
784 |
+
.yith-plugin-ui .yith-plugin-fw__button--xl.yith-plugin-fw__button--with-icon, .yith-plugin-ui .button-xl.yith-plugin-fw__button--with-icon, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--xl.yith-plugin-fw__button--with-icon, .wp-core-ui .yith-plugin-ui .button-xl.yith-plugin-fw__button--with-icon {
|
785 |
+
padding-left: 40px;
|
786 |
+
}
|
787 |
+
|
788 |
+
.yith-plugin-ui .yith-plugin-fw__button--xl.yith-plugin-fw__button--with-icon i, .yith-plugin-ui .button-xl.yith-plugin-fw__button--with-icon i, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--xl.yith-plugin-fw__button--with-icon i, .wp-core-ui .yith-plugin-ui .button-xl.yith-plugin-fw__button--with-icon i {
|
789 |
+
left: 14px;
|
790 |
+
}
|
791 |
+
|
792 |
+
.yith-plugin-ui .yith-plugin-fw__button--xxl, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--xxl {
|
793 |
+
padding: 0 28px;
|
794 |
+
font-size: 16px;
|
795 |
+
line-height: 45px;
|
796 |
+
}
|
797 |
+
|
798 |
+
.yith-plugin-ui .yith-plugin-fw__button--xxl::before, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--xxl::before {
|
799 |
+
margin: 0 15px 0 -10px;
|
800 |
+
}
|
801 |
+
|
802 |
+
.yith-plugin-ui .yith-plugin-fw__button--xxl.yith-plugin-fw__button--with-icon, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--xxl.yith-plugin-fw__button--with-icon {
|
803 |
+
padding-left: 45px;
|
804 |
+
}
|
805 |
+
|
806 |
+
.yith-plugin-ui .yith-plugin-fw__button--xxl.yith-plugin-fw__button--with-icon i, .wp-core-ui .yith-plugin-ui .yith-plugin-fw__button--xxl.yith-plugin-fw__button--with-icon i {
|
807 |
+
left: 15px;
|
808 |
+
}
|
809 |
+
|
810 |
+
.yith-plugin-fw__boxed-row, .yith-plugin-fw__boxed-row--hover-highlight {
|
811 |
+
background: var(--yith-content-bg);
|
812 |
+
border-radius: 5px;
|
813 |
+
box-shadow: 0 0 0 1px var(--yith-light-border-color), 0 3px 11px 6px var(--yith-light-shadow);
|
814 |
+
transition: background-color .2s ease-in-out;
|
815 |
+
padding: 25px;
|
816 |
+
margin-bottom: 25px;
|
817 |
+
margin-top: 25px;
|
818 |
+
}
|
819 |
+
|
820 |
+
.yith-plugin-fw__boxed-row--hover-highlight:hover {
|
821 |
+
background: var(--yith-table-row-highlight);
|
822 |
+
}
|
823 |
+
|
824 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__message {
|
825 |
+
margin-bottom: 20px;
|
826 |
+
}
|
827 |
+
|
828 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__footer {
|
829 |
+
text-align: right;
|
830 |
+
}
|
831 |
+
|
832 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button {
|
833 |
+
height: auto;
|
834 |
+
line-height: 33px;
|
835 |
+
border-radius: 4px;
|
836 |
+
padding: 0 20px;
|
837 |
+
font-weight: 600;
|
838 |
+
cursor: pointer;
|
839 |
+
display: inline-block;
|
840 |
+
margin-right: 10px;
|
841 |
+
}
|
842 |
+
|
843 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button:last-child {
|
844 |
+
margin-right: 0;
|
845 |
+
}
|
846 |
+
|
847 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--cancel {
|
848 |
+
background: var(--yith-outline-bg);
|
849 |
+
border: 1px solid var(--yith-outline-border);
|
850 |
+
color: var(--yith-outline-text);
|
851 |
+
}
|
852 |
+
|
853 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--cancel:focus {
|
854 |
+
background: var(--yith-outline-bg);
|
855 |
+
border: 1px solid var(--yith-outline-border);
|
856 |
+
color: var(--yith-outline-text);
|
857 |
+
box-shadow: 0 0 0 3px var(--yith-outline-focus);
|
858 |
+
}
|
859 |
+
|
860 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--cancel:hover, .yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--cancel:active {
|
861 |
+
background: var(--yith-outline-bg-hover);
|
862 |
+
border-color: var(--yith-outline-border-hover);
|
863 |
+
color: var(--yith-outline-text);
|
864 |
+
}
|
865 |
+
|
866 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--confirm {
|
867 |
+
background: var(--yith-primary);
|
868 |
+
color: var(--yith-primary-text);
|
869 |
+
border: 1px solid var(--yith-primary);
|
870 |
+
}
|
871 |
+
|
872 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--confirm:focus {
|
873 |
+
background: var(--yith-primary);
|
874 |
+
color: var(--yith-primary-text);
|
875 |
+
border: 1px solid var(--yith-primary);
|
876 |
+
box-shadow: 0 0 0 3px var(--yith-primary-focus);
|
877 |
+
}
|
878 |
+
|
879 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--confirm:hover, .yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--confirm:active {
|
880 |
+
background: var(--yith-primary-hover);
|
881 |
+
color: var(--yith-primary-text);
|
882 |
+
border: 1px solid var(--yith-primary-hover);
|
883 |
+
}
|
884 |
+
|
885 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--delete {
|
886 |
+
background: var(--yith-delete);
|
887 |
+
color: var(--yith-delete-text);
|
888 |
+
border: 1px solid var(--yith-delete);
|
889 |
+
}
|
890 |
+
|
891 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--delete:focus {
|
892 |
+
background: var(--yith-delete);
|
893 |
+
color: var(--yith-delete-text);
|
894 |
+
border: 1px solid var(--yith-delete);
|
895 |
+
box-shadow: 0 0 0 3px var(--yith-delete-focus);
|
896 |
+
}
|
897 |
+
|
898 |
+
.yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--delete:hover, .yith-plugin-fw__confirm__wrap .yith-plugin-fw__confirm__button.yith-plugin-fw__confirm__button--delete:active {
|
899 |
+
background: var(--yith-delete-hover);
|
900 |
+
color: var(--yith-delete-text);
|
901 |
+
border: 1px solid var(--yith-delete-hover);
|
902 |
+
}
|
903 |
+
|
904 |
+
.yith-plugin-fw__list-table-blank-state {
|
905 |
+
padding: 30px 30px 0;
|
906 |
+
text-align: center;
|
907 |
+
display: flex;
|
908 |
+
flex-direction: column;
|
909 |
+
}
|
910 |
+
|
911 |
+
.yith-plugin-fw__list-table-blank-state > * {
|
912 |
+
margin-bottom: 30px;
|
913 |
+
}
|
914 |
+
|
915 |
+
.yith-plugin-fw__list-table-blank-state img.yith-plugin-fw__list-table-blank-state__icon {
|
916 |
+
width: 100px;
|
917 |
+
margin: 0 auto 30px;
|
918 |
+
}
|
919 |
+
|
920 |
+
.yith-plugin-fw__list-table-blank-state i.yith-plugin-fw__list-table-blank-state__icon {
|
921 |
+
font-size: 65px;
|
922 |
+
margin: 0 auto 30px;
|
923 |
+
}
|
924 |
+
|
925 |
+
.yith-plugin-fw__list-table-blank-state .yith-plugin-fw__list-table-blank-state__message {
|
926 |
+
font-size: 1.4em;
|
927 |
+
line-height: 1.5;
|
928 |
+
}
|
929 |
+
|
930 |
+
.yith-plugin-fw__modal__wrap {
|
931 |
+
display: flex;
|
932 |
+
align-items: center;
|
933 |
+
justify-content: center;
|
934 |
+
position: fixed;
|
935 |
+
top: 0;
|
936 |
+
left: 0;
|
937 |
+
width: 100%;
|
938 |
+
height: 100%;
|
939 |
+
z-index: 999999;
|
940 |
+
background: rgba(34, 59, 80, 0.7);
|
941 |
+
animation: yith-plugin-fw-fade-in .3s forwards;
|
942 |
+
box-sizing: border-box;
|
943 |
+
}
|
944 |
+
|
945 |
+
.yith-plugin-fw__modal__wrap .yith-plugin-fw__modal__main {
|
946 |
+
position: relative;
|
947 |
+
background: #fff;
|
948 |
+
border-radius: 10px;
|
949 |
+
box-shadow: 1px 3px 16px rgba(0, 22, 59, 0.4);
|
950 |
+
animation: yith-plugin-fw-appear-from-top .3s forwards;
|
951 |
+
overflow: hidden;
|
952 |
+
max-width: calc(100% - 20px);
|
953 |
+
max-height: calc(100% - 20px);
|
954 |
+
display: flex;
|
955 |
+
flex-direction: column;
|
956 |
+
}
|
957 |
+
|
958 |
+
.yith-plugin-fw__modal__wrap .yith-plugin-fw__modal__close {
|
959 |
+
position: absolute;
|
960 |
+
top: 0;
|
961 |
+
right: 0;
|
962 |
+
padding: 8px;
|
963 |
+
font-size: 14px;
|
964 |
+
font-weight: 600;
|
965 |
+
color: #aaa;
|
966 |
+
cursor: pointer;
|
967 |
+
}
|
968 |
+
|
969 |
+
.yith-plugin-fw__modal__wrap .yith-plugin-fw__modal__close:hover {
|
970 |
+
color: #444;
|
971 |
+
}
|
972 |
+
|
973 |
+
.yith-plugin-fw__modal__wrap .yith-plugin-fw__modal__title {
|
974 |
+
padding: 20px 25px;
|
975 |
+
font-size: 1.5em;
|
976 |
+
font-weight: 600;
|
977 |
+
line-height: 1.5em;
|
978 |
+
color: var(--yith-primary);
|
979 |
+
}
|
980 |
+
|
981 |
+
.yith-plugin-fw__modal__wrap .yith-plugin-fw__modal__content {
|
982 |
+
padding: 0 25px 25px;
|
983 |
+
}
|
984 |
+
|
985 |
+
.yith-plugin-fw__modal__wrap .yith-plugin-fw__modal__footer {
|
986 |
+
padding: 25px;
|
987 |
+
background: #f7f7f7;
|
988 |
+
}
|
989 |
+
|
990 |
+
.yith-plugin-fw__modal__wrap.yith-plugin-fw__modal__wrap--scroll-content .yith-plugin-fw__modal__content {
|
991 |
+
overflow-y: auto;
|
992 |
+
}
|
993 |
+
|
994 |
+
.yith-plugin-fw__modal--opened {
|
995 |
+
overflow: hidden;
|
996 |
+
}
|
997 |
+
|
998 |
+
.yith-plugin-fw__modal--allow-wp-menu .yith-plugin-fw__modal__wrap {
|
999 |
+
z-index: 99;
|
1000 |
+
padding-left: 160px;
|
1001 |
+
padding-top: 32px;
|
1002 |
+
}
|
1003 |
+
|
1004 |
+
.yith-plugin-fw__modal--allow-wp-menu #adminmenuback {
|
1005 |
+
z-index: 100;
|
1006 |
+
}
|
1007 |
+
|
1008 |
+
@media only screen and (max-width: 960px) {
|
1009 |
+
.folded .yith-plugin-fw__modal__wrap {
|
1010 |
+
padding-left: 36px;
|
1011 |
+
}
|
1012 |
+
.auto-fold .yith-plugin-fw__modal--allow-wp-menu .yith-plugin-fw__modal__wrap {
|
1013 |
+
padding-left: 36px;
|
1014 |
+
}
|
1015 |
+
}
|
1016 |
+
|
1017 |
+
@media screen and (max-width: 782px) {
|
1018 |
+
.auto-fold .yith-plugin-fw__modal--allow-wp-menu .yith-plugin-fw__modal__wrap {
|
1019 |
+
z-index: 999999;
|
1020 |
+
width: 100%;
|
1021 |
+
height: 100%;
|
1022 |
+
padding-left: 0;
|
1023 |
+
padding-top: 0;
|
1024 |
+
}
|
1025 |
+
.auto-fold .yith-plugin-fw__modal--allow-wp-menu-in-mobile .yith-plugin-fw__modal__wrap {
|
1026 |
+
z-index: 99;
|
1027 |
+
padding-top: 46px;
|
1028 |
+
}
|
1029 |
+
.auto-fold .yith-plugin-fw__modal--allow-wp-menu-in-mobile.wp-responsive-open .yith-plugin-fw__modal__wrap {
|
1030 |
+
padding-left: 190px;
|
1031 |
+
}
|
1032 |
+
}
|
1033 |
+
|
1034 |
+
#tiptip_holder {
|
1035 |
+
display: none;
|
1036 |
+
z-index: 8675309;
|
1037 |
+
position: absolute;
|
1038 |
+
top: 0;
|
1039 |
+
/*rtl:ignore*/
|
1040 |
+
left: 0;
|
1041 |
+
}
|
1042 |
+
|
1043 |
+
#tiptip_holder.tip_top {
|
1044 |
+
padding-bottom: 5px;
|
1045 |
+
}
|
1046 |
+
|
1047 |
+
#tiptip_holder.tip_top #tiptip_arrow_inner {
|
1048 |
+
margin-top: -7px;
|
1049 |
+
margin-left: -6px;
|
1050 |
+
border-top-color: #333;
|
1051 |
+
}
|
1052 |
+
|
1053 |
+
#tiptip_holder.tip_bottom {
|
1054 |
+
padding-top: 5px;
|
1055 |
+
}
|
1056 |
+
|
1057 |
+
#tiptip_holder.tip_bottom #tiptip_arrow_inner {
|
1058 |
+
margin-top: -5px;
|
1059 |
+
margin-left: -6px;
|
1060 |
+
border-bottom-color: #333;
|
1061 |
+
}
|
1062 |
+
|
1063 |
+
#tiptip_holder.tip_right {
|
1064 |
+
padding-left: 5px;
|
1065 |
+
}
|
1066 |
+
|
1067 |
+
#tiptip_holder.tip_right #tiptip_arrow_inner {
|
1068 |
+
margin-top: -6px;
|
1069 |
+
margin-left: -5px;
|
1070 |
+
border-right-color: #333;
|
1071 |
+
}
|
1072 |
+
|
1073 |
+
#tiptip_holder.tip_left {
|
1074 |
+
padding-right: 5px;
|
1075 |
+
}
|
1076 |
+
|
1077 |
+
#tiptip_holder.tip_left #tiptip_arrow_inner {
|
1078 |
+
margin-top: -6px;
|
1079 |
+
margin-left: -7px;
|
1080 |
+
border-left-color: #333;
|
1081 |
+
}
|
1082 |
+
|
1083 |
+
#tiptip_holder #tiptip_content {
|
1084 |
+
color: #fff;
|
1085 |
+
font-size: 0.8em;
|
1086 |
+
max-width: 150px;
|
1087 |
+
background: #333;
|
1088 |
+
text-align: center;
|
1089 |
+
border-radius: 3px;
|
1090 |
+
padding: 0.618em 1em;
|
1091 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
1092 |
+
}
|
1093 |
+
|
1094 |
+
#tiptip_holder #tiptip_content code {
|
1095 |
+
padding: 1px;
|
1096 |
+
background: #888;
|
1097 |
+
}
|
1098 |
+
|
1099 |
+
#tiptip_holder #tiptip_arrow,
|
1100 |
+
#tiptip_holder #tiptip_arrow_inner {
|
1101 |
+
position: absolute;
|
1102 |
+
border-color: transparent;
|
1103 |
+
border-style: solid;
|
1104 |
+
border-width: 6px;
|
1105 |
+
height: 0;
|
1106 |
+
width: 0;
|
1107 |
+
}
|
1108 |
+
|
1109 |
+
/**
|
1110 |
+
* YITH Plugin UI - Post Type Style
|
1111 |
+
*/
|
1112 |
+
table.yith-plugin-fw__classic-table {
|
1113 |
+
border: 2px solid var(--yith-table-border-light);
|
1114 |
+
background: var(--yith-content-bg);
|
1115 |
+
box-shadow: none;
|
1116 |
+
border-spacing: 0;
|
1117 |
+
}
|
1118 |
+
|
1119 |
+
table.yith-plugin-fw__classic-table th, table.yith-plugin-fw__classic-table thead td, table.yith-plugin-fw__classic-table tfoot td {
|
1120 |
+
text-align: left;
|
1121 |
+
line-height: 1.3em;
|
1122 |
+
font-size: 14px;
|
1123 |
+
}
|
1124 |
+
|
1125 |
+
table.yith-plugin-fw__classic-table thead th, table.yith-plugin-fw__classic-table thead td {
|
1126 |
+
border-bottom: 0;
|
1127 |
+
}
|
1128 |
+
|
1129 |
+
table.yith-plugin-fw__classic-table tfoot th, table.yith-plugin-fw__classic-table tfoot td {
|
1130 |
+
border-top: 0;
|
1131 |
+
}
|
1132 |
+
|
1133 |
+
table.yith-plugin-fw__classic-table tbody tr th, table.yith-plugin-fw__classic-table tbody tr td {
|
1134 |
+
vertical-align: middle;
|
1135 |
+
padding: 15px;
|
1136 |
+
}
|
1137 |
+
|
1138 |
+
table.yith-plugin-fw__classic-table tbody tr:hover {
|
1139 |
+
background: var(--yith-table-row-highlight);
|
1140 |
+
}
|
1141 |
+
|
1142 |
+
table.yith-plugin-fw__classic-table thead td, table.yith-plugin-fw__classic-table thead th, table.yith-plugin-fw__classic-table tfoot td, table.yith-plugin-fw__classic-table tfoot th {
|
1143 |
+
padding: 15px;
|
1144 |
+
font-weight: 600;
|
1145 |
+
}
|
1146 |
+
|
1147 |
+
table.yith-plugin-fw__classic-table tbody > :nth-child(odd) {
|
1148 |
+
background-color: var(--yith-table-row-striped);
|
1149 |
+
}
|
1150 |
+
|
1151 |
+
table.yith-plugin-fw__classic-table.wp-list-table tfoot {
|
1152 |
+
display: none;
|
1153 |
+
}
|
1154 |
+
|
1155 |
+
table.yith-plugin-fw__classic-table.wp-list-table .check-column {
|
1156 |
+
width: 2em;
|
1157 |
+
}
|
1158 |
+
|
1159 |
+
table.yith-plugin-fw__classic-table.wp-list-table th.sortable a, table.yith-plugin-fw__classic-table.wp-list-table th.sorted a {
|
1160 |
+
padding: 0 8px 0 0;
|
1161 |
+
color: inherit;
|
1162 |
+
}
|
1163 |
+
|
1164 |
+
table.yith-plugin-fw__classic-table.wp-list-table th.sortable a:hover, table.yith-plugin-fw__classic-table.wp-list-table th.sorted a:hover {
|
1165 |
+
color: var(--yith-link);
|
1166 |
+
}
|
1167 |
+
|
1168 |
+
table.yith-plugin-fw__classic-table.wp-list-table .sorting-indicator {
|
1169 |
+
visibility: visible;
|
1170 |
+
}
|
1171 |
+
|
1172 |
+
table.yith-plugin-fw__classic-table.wp-list-table .sorting-indicator:before {
|
1173 |
+
font-family: yith-icon;
|
1174 |
+
content: "\f106";
|
1175 |
+
color: inherit;
|
1176 |
+
font-size: 10px;
|
1177 |
+
top: 0;
|
1178 |
+
left: 0;
|
1179 |
+
}
|
1180 |
+
|
1181 |
+
table.yith-plugin-fw__classic-table.wp-list-table th.sorted.asc .sorting-indicator:before,
|
1182 |
+
table.yith-plugin-fw__classic-table.wp-list-table th.desc:hover span.sorting-indicator:before,
|
1183 |
+
table.yith-plugin-fw__classic-table.wp-list-table th.desc a:focus span.sorting-indicator:before {
|
1184 |
+
content: "\e903";
|
1185 |
+
font-weight: 600;
|
1186 |
+
}
|
1187 |
+
|
1188 |
+
table.yith-plugin-fw__classic-table.wp-list-table th.sorted.desc .sorting-indicator:before,
|
1189 |
+
table.yith-plugin-fw__classic-table.wp-list-table th.asc:hover span.sorting-indicator:before,
|
1190 |
+
table.yith-plugin-fw__classic-table.wp-list-table th.asc a:focus span.sorting-indicator:before {
|
1191 |
+
content: "\e900";
|
1192 |
+
font-weight: 600;
|
1193 |
+
}
|
1194 |
+
|
1195 |
+
table.yith-plugin-fw__classic-table.wp-list-table thead th.column-actions, table.yith-plugin-fw__classic-table.wp-list-table tfoot th.column-actions {
|
1196 |
+
visibility: hidden;
|
1197 |
+
}
|
1198 |
+
|
1199 |
+
table.yith-plugin-fw__classic-table.wp-list-table th.column-actions, table.yith-plugin-fw__classic-table.wp-list-table td.column-actions {
|
1200 |
+
text-align: right;
|
1201 |
+
}
|
1202 |
+
|
1203 |
+
table.yith-plugin-fw__classic-table.wp-list-table .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible) {
|
1204 |
+
opacity: 0;
|
1205 |
+
transition: .3s;
|
1206 |
+
}
|
1207 |
+
|
1208 |
+
table.yith-plugin-fw__classic-table.wp-list-table tbody tr:hover .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible) {
|
1209 |
+
opacity: 1;
|
1210 |
+
}
|
1211 |
+
|
1212 |
+
table.yith-plugin-fw__boxed-table {
|
1213 |
+
border: 0;
|
1214 |
+
border-spacing: 0 20px;
|
1215 |
+
box-shadow: none;
|
1216 |
+
background: transparent;
|
1217 |
+
}
|
1218 |
+
|
1219 |
+
table.yith-plugin-fw__boxed-table th, table.yith-plugin-fw__boxed-table thead td, table.yith-plugin-fw__boxed-table tfoot td {
|
1220 |
+
text-align: left;
|
1221 |
+
line-height: 1.3em;
|
1222 |
+
font-size: 14px;
|
1223 |
+
}
|
1224 |
+
|
1225 |
+
table.yith-plugin-fw__boxed-table thead th, table.yith-plugin-fw__boxed-table thead td {
|
1226 |
+
border-bottom: 0;
|
1227 |
+
padding: 0 0 0 25px;
|
1228 |
+
font-weight: 600;
|
1229 |
+
}
|
1230 |
+
|
1231 |
+
table.yith-plugin-fw__boxed-table tbody tr {
|
1232 |
+
background: var(--yith-content-bg);
|
1233 |
+
border-radius: 5px;
|
1234 |
+
box-shadow: 0 0 0 1px var(--yith-light-border-color), 0 3px 11px 6px var(--yith-light-shadow);
|
1235 |
+
transition: background-color .2s ease-in-out;
|
1236 |
+
}
|
1237 |
+
|
1238 |
+
table.yith-plugin-fw__boxed-table tbody tr th, table.yith-plugin-fw__boxed-table tbody tr td {
|
1239 |
+
background: transparent;
|
1240 |
+
border-radius: 5px;
|
1241 |
+
vertical-align: middle;
|
1242 |
+
padding: 25px 0 25px 25px;
|
1243 |
+
}
|
1244 |
+
|
1245 |
+
table.yith-plugin-fw__boxed-table tbody tr td:last-child {
|
1246 |
+
padding-right: 25px;
|
1247 |
+
}
|
1248 |
+
|
1249 |
+
table.yith-plugin-fw__boxed-table tbody tr:hover {
|
1250 |
+
background: var(--yith-table-row-highlight);
|
1251 |
+
}
|
1252 |
+
|
1253 |
+
table.yith-plugin-fw__boxed-table.wp-list-table tfoot {
|
1254 |
+
display: none;
|
1255 |
+
}
|
1256 |
+
|
1257 |
+
table.yith-plugin-fw__boxed-table.wp-list-table .check-column {
|
1258 |
+
width: 2em;
|
1259 |
+
}
|
1260 |
+
|
1261 |
+
table.yith-plugin-fw__boxed-table.wp-list-table th.sortable a, table.yith-plugin-fw__boxed-table.wp-list-table th.sorted a {
|
1262 |
+
padding: 0 8px 0 0;
|
1263 |
+
color: inherit;
|
1264 |
+
}
|
1265 |
+
|
1266 |
+
table.yith-plugin-fw__boxed-table.wp-list-table th.sortable a:hover, table.yith-plugin-fw__boxed-table.wp-list-table th.sorted a:hover {
|
1267 |
+
color: var(--yith-link);
|
1268 |
+
}
|
1269 |
+
|
1270 |
+
table.yith-plugin-fw__boxed-table.wp-list-table .sorting-indicator {
|
1271 |
+
visibility: visible;
|
1272 |
+
}
|
1273 |
+
|
1274 |
+
table.yith-plugin-fw__boxed-table.wp-list-table .sorting-indicator:before {
|
1275 |
+
font-family: yith-icon;
|
1276 |
+
content: "\f106";
|
1277 |
+
color: inherit;
|
1278 |
+
font-size: 10px;
|
1279 |
+
top: 0;
|
1280 |
+
left: 0;
|
1281 |
+
}
|
1282 |
+
|
1283 |
+
table.yith-plugin-fw__boxed-table.wp-list-table th.sorted.asc .sorting-indicator:before,
|
1284 |
+
table.yith-plugin-fw__boxed-table.wp-list-table th.desc:hover span.sorting-indicator:before,
|
1285 |
+
table.yith-plugin-fw__boxed-table.wp-list-table th.desc a:focus span.sorting-indicator:before {
|
1286 |
+
content: "\e903";
|
1287 |
+
font-weight: 600;
|
1288 |
+
}
|
1289 |
+
|
1290 |
+
table.yith-plugin-fw__boxed-table.wp-list-table th.sorted.desc .sorting-indicator:before,
|
1291 |
+
table.yith-plugin-fw__boxed-table.wp-list-table th.asc:hover span.sorting-indicator:before,
|
1292 |
+
table.yith-plugin-fw__boxed-table.wp-list-table th.asc a:focus span.sorting-indicator:before {
|
1293 |
+
content: "\e900";
|
1294 |
+
font-weight: 600;
|
1295 |
+
}
|
1296 |
+
|
1297 |
+
table.yith-plugin-fw__boxed-table.wp-list-table thead th.column-actions, table.yith-plugin-fw__boxed-table.wp-list-table tfoot th.column-actions {
|
1298 |
+
visibility: hidden;
|
1299 |
+
}
|
1300 |
+
|
1301 |
+
table.yith-plugin-fw__boxed-table.wp-list-table th.column-actions, table.yith-plugin-fw__boxed-table.wp-list-table td.column-actions {
|
1302 |
+
text-align: right;
|
1303 |
+
}
|
1304 |
+
|
1305 |
+
table.yith-plugin-fw__boxed-table.wp-list-table .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible) {
|
1306 |
+
opacity: 0;
|
1307 |
+
transition: .3s;
|
1308 |
+
}
|
1309 |
+
|
1310 |
+
table.yith-plugin-fw__boxed-table.wp-list-table tbody tr:hover .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible) {
|
1311 |
+
opacity: 1;
|
1312 |
+
}
|
1313 |
+
|
1314 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table {
|
1315 |
+
border: 2px solid var(--yith-table-border-light);
|
1316 |
+
background: var(--yith-content-bg);
|
1317 |
+
box-shadow: none;
|
1318 |
+
border-spacing: 0;
|
1319 |
+
}
|
1320 |
+
|
1321 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table th, .yith-plugin-ui--classic-wp-list-style table.wp-list-table thead td, .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot td, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table thead td, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot td {
|
1322 |
+
text-align: left;
|
1323 |
+
line-height: 1.3em;
|
1324 |
+
font-size: 14px;
|
1325 |
+
}
|
1326 |
+
|
1327 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table thead th, .yith-plugin-ui--classic-wp-list-style table.wp-list-table thead td, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table thead th, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table thead td {
|
1328 |
+
border-bottom: 0;
|
1329 |
+
}
|
1330 |
+
|
1331 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot th, .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot td, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot th, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot td {
|
1332 |
+
border-top: 0;
|
1333 |
+
}
|
1334 |
+
|
1335 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table tbody tr th, .yith-plugin-ui--classic-wp-list-style table.wp-list-table tbody tr td, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tbody tr th, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tbody tr td {
|
1336 |
+
vertical-align: middle;
|
1337 |
+
padding: 15px;
|
1338 |
+
}
|
1339 |
+
|
1340 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table tbody tr:hover, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tbody tr:hover {
|
1341 |
+
background: var(--yith-table-row-highlight);
|
1342 |
+
}
|
1343 |
+
|
1344 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table thead td, .yith-plugin-ui--classic-wp-list-style table.wp-list-table thead th, .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot td, .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot th, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table thead td, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table thead th, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot td, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot th {
|
1345 |
+
padding: 15px;
|
1346 |
+
font-weight: 600;
|
1347 |
+
}
|
1348 |
+
|
1349 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table tbody > :nth-child(odd), .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tbody > :nth-child(odd) {
|
1350 |
+
background-color: var(--yith-table-row-striped);
|
1351 |
+
}
|
1352 |
+
|
1353 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot {
|
1354 |
+
display: none;
|
1355 |
+
}
|
1356 |
+
|
1357 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table .check-column, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table .check-column {
|
1358 |
+
width: 2em;
|
1359 |
+
}
|
1360 |
+
|
1361 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sortable a, .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sorted a, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sortable a, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sorted a {
|
1362 |
+
padding: 0 8px 0 0;
|
1363 |
+
color: inherit;
|
1364 |
+
}
|
1365 |
+
|
1366 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sortable a:hover, .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sorted a:hover, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sortable a:hover, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sorted a:hover {
|
1367 |
+
color: var(--yith-link);
|
1368 |
+
}
|
1369 |
+
|
1370 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table .sorting-indicator, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table .sorting-indicator {
|
1371 |
+
visibility: visible;
|
1372 |
+
}
|
1373 |
+
|
1374 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table .sorting-indicator:before, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table .sorting-indicator:before {
|
1375 |
+
font-family: yith-icon;
|
1376 |
+
content: "\f106";
|
1377 |
+
color: inherit;
|
1378 |
+
font-size: 10px;
|
1379 |
+
top: 0;
|
1380 |
+
left: 0;
|
1381 |
+
}
|
1382 |
+
|
1383 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sorted.asc .sorting-indicator:before,
|
1384 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table th.desc:hover span.sorting-indicator:before,
|
1385 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table th.desc a:focus span.sorting-indicator:before, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sorted.asc .sorting-indicator:before,
|
1386 |
+
.yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.desc:hover span.sorting-indicator:before,
|
1387 |
+
.yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.desc a:focus span.sorting-indicator:before {
|
1388 |
+
content: "\e903";
|
1389 |
+
font-weight: 600;
|
1390 |
+
}
|
1391 |
+
|
1392 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sorted.desc .sorting-indicator:before,
|
1393 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table th.asc:hover span.sorting-indicator:before,
|
1394 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table th.asc a:focus span.sorting-indicator:before, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.sorted.desc .sorting-indicator:before,
|
1395 |
+
.yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.asc:hover span.sorting-indicator:before,
|
1396 |
+
.yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.asc a:focus span.sorting-indicator:before {
|
1397 |
+
content: "\e900";
|
1398 |
+
font-weight: 600;
|
1399 |
+
}
|
1400 |
+
|
1401 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table thead th.column-actions, .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot th.column-actions, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table thead th.column-actions, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tfoot th.column-actions {
|
1402 |
+
visibility: hidden;
|
1403 |
+
}
|
1404 |
+
|
1405 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table th.column-actions, .yith-plugin-ui--classic-wp-list-style table.wp-list-table td.column-actions, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.column-actions, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table td.column-actions {
|
1406 |
+
text-align: right;
|
1407 |
+
}
|
1408 |
+
|
1409 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible), .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible) {
|
1410 |
+
opacity: 0;
|
1411 |
+
transition: .3s;
|
1412 |
+
}
|
1413 |
+
|
1414 |
+
.yith-plugin-ui--classic-wp-list-style table.wp-list-table tbody tr:hover .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible), .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table tbody tr:hover .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible) {
|
1415 |
+
opacity: 1;
|
1416 |
+
}
|
1417 |
+
|
1418 |
+
.yith-plugin-ui--classic-wp-list-style .tablenav.bottom, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style .tablenav.bottom {
|
1419 |
+
display: none;
|
1420 |
+
}
|
1421 |
+
|
1422 |
+
.yith-plugin-ui--classic-wp-list-style .tablenav.bottom .yith-plugin-fw__list-table-blank-state, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style .tablenav.bottom .yith-plugin-fw__list-table-blank-state {
|
1423 |
+
display: flex;
|
1424 |
+
}
|
1425 |
+
|
1426 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table {
|
1427 |
+
border: 0;
|
1428 |
+
border-spacing: 0 20px;
|
1429 |
+
box-shadow: none;
|
1430 |
+
background: transparent;
|
1431 |
+
}
|
1432 |
+
|
1433 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table th, .yith-plugin-ui--boxed-wp-list-style table.wp-list-table thead td, .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tfoot td, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table thead td, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tfoot td {
|
1434 |
+
text-align: left;
|
1435 |
+
line-height: 1.3em;
|
1436 |
+
font-size: 14px;
|
1437 |
+
}
|
1438 |
+
|
1439 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table thead th, .yith-plugin-ui--boxed-wp-list-style table.wp-list-table thead td, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table thead th, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table thead td {
|
1440 |
+
border-bottom: 0;
|
1441 |
+
padding: 0 0 0 25px;
|
1442 |
+
font-weight: 600;
|
1443 |
+
}
|
1444 |
+
|
1445 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr {
|
1446 |
+
background: var(--yith-content-bg);
|
1447 |
+
border-radius: 5px;
|
1448 |
+
box-shadow: 0 0 0 1px var(--yith-light-border-color), 0 3px 11px 6px var(--yith-light-shadow);
|
1449 |
+
transition: background-color .2s ease-in-out;
|
1450 |
+
}
|
1451 |
+
|
1452 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr th, .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr td, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr th, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr td {
|
1453 |
+
background: transparent;
|
1454 |
+
border-radius: 5px;
|
1455 |
+
vertical-align: middle;
|
1456 |
+
padding: 25px 0 25px 25px;
|
1457 |
+
}
|
1458 |
+
|
1459 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr td:last-child, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr td:last-child {
|
1460 |
+
padding-right: 25px;
|
1461 |
+
}
|
1462 |
+
|
1463 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr:hover, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr:hover {
|
1464 |
+
background: var(--yith-table-row-highlight);
|
1465 |
+
}
|
1466 |
+
|
1467 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table tfoot, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tfoot {
|
1468 |
+
display: none;
|
1469 |
+
}
|
1470 |
+
|
1471 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table .check-column, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table .check-column {
|
1472 |
+
width: 2em;
|
1473 |
+
}
|
1474 |
+
|
1475 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sortable a, .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sorted a, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sortable a, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sorted a {
|
1476 |
+
padding: 0 8px 0 0;
|
1477 |
+
color: inherit;
|
1478 |
+
}
|
1479 |
+
|
1480 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sortable a:hover, .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sorted a:hover, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sortable a:hover, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sorted a:hover {
|
1481 |
+
color: var(--yith-link);
|
1482 |
+
}
|
1483 |
+
|
1484 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table .sorting-indicator, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table .sorting-indicator {
|
1485 |
+
visibility: visible;
|
1486 |
+
}
|
1487 |
+
|
1488 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table .sorting-indicator:before, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table .sorting-indicator:before {
|
1489 |
+
font-family: yith-icon;
|
1490 |
+
content: "\f106";
|
1491 |
+
color: inherit;
|
1492 |
+
font-size: 10px;
|
1493 |
+
top: 0;
|
1494 |
+
left: 0;
|
1495 |
+
}
|
1496 |
+
|
1497 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sorted.asc .sorting-indicator:before,
|
1498 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.desc:hover span.sorting-indicator:before,
|
1499 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.desc a:focus span.sorting-indicator:before, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sorted.asc .sorting-indicator:before,
|
1500 |
+
.yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.desc:hover span.sorting-indicator:before,
|
1501 |
+
.yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.desc a:focus span.sorting-indicator:before {
|
1502 |
+
content: "\e903";
|
1503 |
+
font-weight: 600;
|
1504 |
+
}
|
1505 |
+
|
1506 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sorted.desc .sorting-indicator:before,
|
1507 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.asc:hover span.sorting-indicator:before,
|
1508 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.asc a:focus span.sorting-indicator:before, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.sorted.desc .sorting-indicator:before,
|
1509 |
+
.yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.asc:hover span.sorting-indicator:before,
|
1510 |
+
.yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.asc a:focus span.sorting-indicator:before {
|
1511 |
+
content: "\e900";
|
1512 |
+
font-weight: 600;
|
1513 |
+
}
|
1514 |
+
|
1515 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table thead th.column-actions, .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tfoot th.column-actions, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table thead th.column-actions, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tfoot th.column-actions {
|
1516 |
+
visibility: hidden;
|
1517 |
+
}
|
1518 |
+
|
1519 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.column-actions, .yith-plugin-ui--boxed-wp-list-style table.wp-list-table td.column-actions, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.column-actions, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table td.column-actions {
|
1520 |
+
text-align: right;
|
1521 |
+
}
|
1522 |
+
|
1523 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible), .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible) {
|
1524 |
+
opacity: 0;
|
1525 |
+
transition: .3s;
|
1526 |
+
}
|
1527 |
+
|
1528 |
+
.yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr:hover .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible), .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table tbody tr:hover .yith-plugin-fw__action-button:not(.yith-plugin-fw__action-button--visible) {
|
1529 |
+
opacity: 1;
|
1530 |
+
}
|
1531 |
+
|
1532 |
+
.yith-plugin-ui--boxed-wp-list-style .tablenav.bottom, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style .tablenav.bottom {
|
1533 |
+
display: none;
|
1534 |
+
}
|
1535 |
+
|
1536 |
+
.yith-plugin-ui--boxed-wp-list-style .tablenav.bottom .yith-plugin-fw__list-table-blank-state, .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style .tablenav.bottom .yith-plugin-fw__list-table-blank-state {
|
1537 |
+
display: flex;
|
1538 |
+
}
|
1539 |
+
|
1540 |
+
/**
|
1541 |
+
* YITH Animations
|
1542 |
+
*/
|
1543 |
+
.yith-plugin-fw-animate__appear-from-top {
|
1544 |
+
animation: yith-plugin-fw-appear-from-top .3s forwards;
|
1545 |
+
}
|
1546 |
+
|
1547 |
+
.yith-plugin-fw-animate__fade-in {
|
1548 |
+
animation: yith-plugin-fw-fade-in .3s forwards;
|
1549 |
+
}
|
1550 |
+
|
1551 |
+
@-webkit-keyframes yith-plugin-fw-appear-from-top {
|
1552 |
+
from {
|
1553 |
+
opacity: 0;
|
1554 |
+
transform: translateY(-30%);
|
1555 |
+
-webkit-transform: translateY(-30%);
|
1556 |
+
}
|
1557 |
+
to {
|
1558 |
+
opacity: 1;
|
1559 |
+
transform: translateY(0);
|
1560 |
+
-webkit-transform: translateY(0);
|
1561 |
+
}
|
1562 |
+
}
|
1563 |
+
|
1564 |
+
@keyframes yith-plugin-fw-appear-from-top {
|
1565 |
+
from {
|
1566 |
+
opacity: 0;
|
1567 |
+
transform: translateY(-30%);
|
1568 |
+
-webkit-transform: translateY(-30%);
|
1569 |
+
}
|
1570 |
+
to {
|
1571 |
+
opacity: 1;
|
1572 |
+
transform: translateY(0);
|
1573 |
+
-webkit-transform: translateY(0);
|
1574 |
+
}
|
1575 |
+
}
|
1576 |
+
|
1577 |
+
@-webkit-keyframes yith-plugin-fw-fade-in {
|
1578 |
+
from {
|
1579 |
+
opacity: 0;
|
1580 |
+
}
|
1581 |
+
to {
|
1582 |
+
opacity: 1;
|
1583 |
+
}
|
1584 |
+
}
|
1585 |
+
|
1586 |
+
@keyframes yith-plugin-fw-fade-in {
|
1587 |
+
from {
|
1588 |
+
opacity: 0;
|
1589 |
+
}
|
1590 |
+
to {
|
1591 |
+
opacity: 1;
|
1592 |
+
}
|
1593 |
+
}
|
plugin-fw/assets/fonts/yith-icon.eot
CHANGED
Binary file
|
plugin-fw/assets/fonts/yith-icon.ttf
CHANGED
Binary file
|
plugin-fw/assets/fonts/yith-icon.woff2
CHANGED
Binary file
|
plugin-fw/assets/js/jquery-tiptip/jquery.tipTip.js
ADDED
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* TipTip
|
3 |
+
* Copyright 2010 Drew Wilson
|
4 |
+
* www.drewwilson.com
|
5 |
+
* code.drewwilson.com/entry/tiptip-jquery-plugin
|
6 |
+
*
|
7 |
+
* Version 1.3 - Updated: Mar. 23, 2010
|
8 |
+
*
|
9 |
+
* This Plug-In will create a custom tooltip to replace the default
|
10 |
+
* browser tooltip. It is extremely lightweight and very smart in
|
11 |
+
* that it detects the edges of the browser window and will make sure
|
12 |
+
* the tooltip stays within the current window size. As a result the
|
13 |
+
* tooltip will adjust itself to be displayed above, below, to the left
|
14 |
+
* or to the right depending on what is necessary to stay within the
|
15 |
+
* browser window. It is completely customizable as well via CSS.
|
16 |
+
*
|
17 |
+
* This TipTip jQuery plug-in is dual licensed under the MIT and GPL licenses:
|
18 |
+
* http://www.opensource.org/licenses/mit-license.php
|
19 |
+
* http://www.gnu.org/licenses/gpl.html
|
20 |
+
*/
|
21 |
+
|
22 |
+
(function($){
|
23 |
+
$.fn.tipTip = function(options) {
|
24 |
+
var defaults = {
|
25 |
+
activation: "hover",
|
26 |
+
keepAlive: false,
|
27 |
+
maxWidth: "200px",
|
28 |
+
edgeOffset: 3,
|
29 |
+
defaultPosition: "bottom",
|
30 |
+
delay: 400,
|
31 |
+
fadeIn: 200,
|
32 |
+
fadeOut: 200,
|
33 |
+
attribute: "title",
|
34 |
+
content: false, // HTML or String to fill TipTIp with
|
35 |
+
enter: function(){},
|
36 |
+
exit: function(){}
|
37 |
+
};
|
38 |
+
var opts = $.extend(defaults, options);
|
39 |
+
|
40 |
+
// Setup tip tip elements and render them to the DOM
|
41 |
+
if($("#tiptip_holder").length <= 0){
|
42 |
+
var tiptip_holder = $('<div id="tiptip_holder" style="max-width:'+ opts.maxWidth +';"></div>');
|
43 |
+
var tiptip_content = $('<div id="tiptip_content"></div>');
|
44 |
+
var tiptip_arrow = $('<div id="tiptip_arrow"></div>');
|
45 |
+
$("body").append(tiptip_holder.html(tiptip_content).prepend(tiptip_arrow.html('<div id="tiptip_arrow_inner"></div>')));
|
46 |
+
} else {
|
47 |
+
var tiptip_holder = $("#tiptip_holder");
|
48 |
+
var tiptip_content = $("#tiptip_content");
|
49 |
+
var tiptip_arrow = $("#tiptip_arrow");
|
50 |
+
}
|
51 |
+
|
52 |
+
return this.each(function(){
|
53 |
+
var org_elem = $(this);
|
54 |
+
if(opts.content){
|
55 |
+
var org_title = opts.content;
|
56 |
+
} else {
|
57 |
+
var org_title = org_elem.attr(opts.attribute);
|
58 |
+
}
|
59 |
+
if(org_title != ""){
|
60 |
+
if(!opts.content){
|
61 |
+
org_elem.removeAttr(opts.attribute); //remove original Attribute
|
62 |
+
}
|
63 |
+
var timeout = false;
|
64 |
+
|
65 |
+
if(opts.activation == "hover"){
|
66 |
+
org_elem.hover(function(){
|
67 |
+
active_tiptip();
|
68 |
+
}, function(){
|
69 |
+
if(!opts.keepAlive || !tiptip_holder.is(':hover')){
|
70 |
+
deactive_tiptip();
|
71 |
+
}
|
72 |
+
});
|
73 |
+
if(opts.keepAlive){
|
74 |
+
tiptip_holder.hover(function(){}, function(){
|
75 |
+
deactive_tiptip();
|
76 |
+
});
|
77 |
+
}
|
78 |
+
} else if(opts.activation == "focus"){
|
79 |
+
org_elem.focus(function(){
|
80 |
+
active_tiptip();
|
81 |
+
}).blur(function(){
|
82 |
+
deactive_tiptip();
|
83 |
+
});
|
84 |
+
} else if(opts.activation == "click"){
|
85 |
+
org_elem.click(function(){
|
86 |
+
active_tiptip();
|
87 |
+
return false;
|
88 |
+
}).hover(function(){},function(){
|
89 |
+
if(!opts.keepAlive){
|
90 |
+
deactive_tiptip();
|
91 |
+
}
|
92 |
+
});
|
93 |
+
if(opts.keepAlive){
|
94 |
+
tiptip_holder.hover(function(){}, function(){
|
95 |
+
deactive_tiptip();
|
96 |
+
});
|
97 |
+
}
|
98 |
+
}
|
99 |
+
|
100 |
+
function active_tiptip(){
|
101 |
+
opts.enter.call(this);
|
102 |
+
tiptip_content.html(org_title);
|
103 |
+
tiptip_holder.hide().removeAttr("class").css("margin","0");
|
104 |
+
tiptip_arrow.removeAttr("style");
|
105 |
+
|
106 |
+
var top = parseInt(org_elem.offset()['top']);
|
107 |
+
var left = parseInt(org_elem.offset()['left']);
|
108 |
+
var org_width = parseInt(org_elem.outerWidth());
|
109 |
+
var org_height = parseInt(org_elem.outerHeight());
|
110 |
+
var tip_w = tiptip_holder.outerWidth();
|
111 |
+
var tip_h = tiptip_holder.outerHeight();
|
112 |
+
var w_compare = Math.round((org_width - tip_w) / 2);
|
113 |
+
var h_compare = Math.round((org_height - tip_h) / 2);
|
114 |
+
var marg_left = Math.round(left + w_compare);
|
115 |
+
var marg_top = Math.round(top + org_height + opts.edgeOffset);
|
116 |
+
var t_class = "";
|
117 |
+
var arrow_top = "";
|
118 |
+
var arrow_left = Math.round(tip_w - 12) / 2;
|
119 |
+
|
120 |
+
if(opts.defaultPosition == "bottom"){
|
121 |
+
t_class = "_bottom";
|
122 |
+
} else if(opts.defaultPosition == "top"){
|
123 |
+
t_class = "_top";
|
124 |
+
} else if(opts.defaultPosition == "left"){
|
125 |
+
t_class = "_left";
|
126 |
+
} else if(opts.defaultPosition == "right"){
|
127 |
+
t_class = "_right";
|
128 |
+
}
|
129 |
+
|
130 |
+
var right_compare = (w_compare + left) < parseInt($(window).scrollLeft());
|
131 |
+
var left_compare = (tip_w + left) > parseInt($(window).width());
|
132 |
+
|
133 |
+
if((right_compare && w_compare < 0) || (t_class == "_right" && !left_compare) || (t_class == "_left" && left < (tip_w + opts.edgeOffset + 5))){
|
134 |
+
t_class = "_right";
|
135 |
+
arrow_top = Math.round(tip_h - 13) / 2;
|
136 |
+
arrow_left = -12;
|
137 |
+
marg_left = Math.round(left + org_width + opts.edgeOffset);
|
138 |
+
marg_top = Math.round(top + h_compare);
|
139 |
+
} else if((left_compare && w_compare < 0) || (t_class == "_left" && !right_compare)){
|
140 |
+
t_class = "_left";
|
141 |
+
arrow_top = Math.round(tip_h - 13) / 2;
|
142 |
+
arrow_left = Math.round(tip_w);
|
143 |
+
marg_left = Math.round(left - (tip_w + opts.edgeOffset + 5));
|
144 |
+
marg_top = Math.round(top + h_compare);
|
145 |
+
}
|
146 |
+
|
147 |
+
var top_compare = (top + org_height + opts.edgeOffset + tip_h + 8) > parseInt($(window).height() + $(window).scrollTop());
|
148 |
+
var bottom_compare = ((top + org_height) - (opts.edgeOffset + tip_h + 8)) < 0;
|
149 |
+
|
150 |
+
if(top_compare || (t_class == "_bottom" && top_compare) || (t_class == "_top" && !bottom_compare)){
|
151 |
+
if(t_class == "_top" || t_class == "_bottom"){
|
152 |
+
t_class = "_top";
|
153 |
+
} else {
|
154 |
+
t_class = t_class+"_top";
|
155 |
+
}
|
156 |
+
arrow_top = tip_h;
|
157 |
+
marg_top = Math.round(top - (tip_h + 5 + opts.edgeOffset));
|
158 |
+
} else if(bottom_compare | (t_class == "_top" && bottom_compare) || (t_class == "_bottom" && !top_compare)){
|
159 |
+
if(t_class == "_top" || t_class == "_bottom"){
|
160 |
+
t_class = "_bottom";
|
161 |
+
} else {
|
162 |
+
t_class = t_class+"_bottom";
|
163 |
+
}
|
164 |
+
arrow_top = -12;
|
165 |
+
marg_top = Math.round(top + org_height + opts.edgeOffset);
|
166 |
+
}
|
167 |
+
|
168 |
+
if(t_class == "_right_top" || t_class == "_left_top"){
|
169 |
+
marg_top = marg_top + 5;
|
170 |
+
} else if(t_class == "_right_bottom" || t_class == "_left_bottom"){
|
171 |
+
marg_top = marg_top - 5;
|
172 |
+
}
|
173 |
+
if(t_class == "_left_top" || t_class == "_left_bottom"){
|
174 |
+
marg_left = marg_left + 5;
|
175 |
+
}
|
176 |
+
tiptip_arrow.css({"margin-left": arrow_left+"px", "margin-top": arrow_top+"px"});
|
177 |
+
tiptip_holder.css({"margin-left": marg_left+"px", "margin-top": marg_top+"px"}).attr("class","tip"+t_class);
|
178 |
+
|
179 |
+
if (timeout){ clearTimeout(timeout); }
|
180 |
+
timeout = setTimeout(function(){ tiptip_holder.stop(true,true).fadeIn(opts.fadeIn); }, opts.delay);
|
181 |
+
}
|
182 |
+
|
183 |
+
function deactive_tiptip(){
|
184 |
+
opts.exit.call(this);
|
185 |
+
if (timeout){ clearTimeout(timeout); }
|
186 |
+
tiptip_holder.fadeOut(opts.fadeOut);
|
187 |
+
}
|
188 |
+
}
|
189 |
+
});
|
190 |
+
}
|
191 |
+
})(jQuery);
|
plugin-fw/assets/js/jquery-tiptip/jquery.tipTip.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(O){O.fn.tipTip=function(t){var g,b,M,w=O.extend({activation:"hover",keepAlive:!1,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:!1,enter:function(){},exit:function(){}},t);return O("#tiptip_holder").length<=0?(g=O('<div id="tiptip_holder" style="max-width:'+w.maxWidth+';"></div>'),b=O('<div id="tiptip_content"></div>'),M=O('<div id="tiptip_arrow"></div>'),O("body").append(g.html(b).prepend(M.html('<div id="tiptip_arrow_inner"></div>')))):(g=O("#tiptip_holder"),b=O("#tiptip_content"),M=O("#tiptip_arrow")),this.each(function(){var _,v,m=O(this);function t(){w.enter.call(this),b.html(_),g.hide().removeAttr("class").css("margin","0"),M.removeAttr("style");var t=parseInt(m.offset().top),e=parseInt(m.offset().left),o=parseInt(m.outerWidth()),i=parseInt(m.outerHeight()),n=g.outerWidth(),r=g.outerHeight(),a=Math.round((o-n)/2),f=Math.round((i-r)/2),d=Math.round(e+a),u=Math.round(t+i+w.edgeOffset),p="",h="",l=Math.round(n-12)/2;"bottom"==w.defaultPosition?p="_bottom":"top"==w.defaultPosition?p="_top":"left"==w.defaultPosition?p="_left":"right"==w.defaultPosition&&(p="_right");var c=a+e<parseInt(O(window).scrollLeft()),s=n+e>parseInt(O(window).width());c&&a<0||"_right"==p&&!s||"_left"==p&&e<n+w.edgeOffset+5?(p="_right",h=Math.round(r-13)/2,l=-12,d=Math.round(e+o+w.edgeOffset),u=Math.round(t+f)):(s&&a<0||"_left"==p&&!c)&&(p="_left",h=Math.round(r-13)/2,l=Math.round(n),d=Math.round(e-(n+w.edgeOffset+5)),u=Math.round(t+f));n=t+i+w.edgeOffset+r+8>parseInt(O(window).height()+O(window).scrollTop()),f=t+i-(w.edgeOffset+r+8)<0;n||"_bottom"==p&&n||"_top"==p&&!f?("_top"==p||"_bottom"==p?p="_top":p+="_top",h=r,u=Math.round(t-(r+5+w.edgeOffset))):(f|("_top"==p&&f)||"_bottom"==p&&!n)&&("_top"==p||"_bottom"==p?p="_bottom":p+="_bottom",h=-12,u=Math.round(t+i+w.edgeOffset)),"_right_top"==p||"_left_top"==p?u+=5:"_right_bottom"!=p&&"_left_bottom"!=p||(u-=5),"_left_top"!=p&&"_left_bottom"!=p||(d+=5),M.css({"margin-left":l+"px","margin-top":h+"px"}),g.css({"margin-left":d+"px","margin-top":u+"px"}).attr("class","tip"+p),v&&clearTimeout(v),v=setTimeout(function(){g.stop(!0,!0).fadeIn(w.fadeIn)},w.delay)}function e(){w.exit.call(this),v&&clearTimeout(v),g.fadeOut(w.fadeOut)}""!=(_=w.content?w.content:m.attr(w.attribute))&&(w.content||m.removeAttr(w.attribute),v=!1,"hover"==w.activation?(m.hover(function(){t()},function(){w.keepAlive&&g.is(":hover")||e()}),w.keepAlive&&g.hover(function(){},function(){e()})):"focus"==w.activation?m.focus(function(){t()}).blur(function(){e()}):"click"==w.activation&&(m.click(function(){return t(),!1}).hover(function(){},function(){w.keepAlive||e()}),w.keepAlive&&g.hover(function(){},function(){e()})))})}}(jQuery);
|
plugin-fw/assets/js/metabox.js
CHANGED
@@ -89,22 +89,22 @@
|
|
89 |
function dependencies_handler( id, deps, values, type ) {
|
90 |
var result = true;
|
91 |
|
92 |
-
|
93 |
-
//Single dependency
|
94 |
if ( typeof ( deps ) == 'string' ) {
|
95 |
-
if ( deps.substr( 0, 6 )
|
96 |
deps = deps + ':checked';
|
97 |
}
|
98 |
|
99 |
-
var
|
|
|
|
|
100 |
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
val = '
|
107 |
-
|
108 |
}
|
109 |
|
110 |
values = values.split( ',' );
|
89 |
function dependencies_handler( id, deps, values, type ) {
|
90 |
var result = true;
|
91 |
|
|
|
|
|
92 |
if ( typeof ( deps ) == 'string' ) {
|
93 |
+
if ( deps.substr( 0, 6 ) === ':radio' ) {
|
94 |
deps = deps + ':checked';
|
95 |
}
|
96 |
|
97 |
+
var depsOn = $( deps ),
|
98 |
+
depsOnType = depsOn.attr( 'type' ),
|
99 |
+
val = depsOn.val();
|
100 |
|
101 |
+
switch ( depsOnType ){
|
102 |
+
case 'checkbox':
|
103 |
+
val = depsOn.is( ':checked' ) ? 'yes' : 'no';
|
104 |
+
break;
|
105 |
+
case 'radio':
|
106 |
+
val = depsOn.find( 'input[type="radio"]' ).filter( ':checked' ).val();
|
107 |
+
break;
|
108 |
}
|
109 |
|
110 |
values = values.split( ',' );
|
plugin-fw/assets/js/metabox.min.js
CHANGED
@@ -1 +1 @@
|
|
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"
|
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),o=d.attr("type"),r=d.val();switch(o){case"checkbox":r=d.is(":checked")?"yes":"no";break;case"radio":r=d.find('input[type="radio"]').filter(":checked").val()}i=i.split(",");for(var c=0;c<i.length;c++){if(r==i[c]){n=!0;break}n=!1}}var h,b=e(t),l=e(t+"-container").parent(),p=s.split("-");for(h in p){var f=p[h];if(n)switch(f){case"disable":l.removeClass("yith-disabled"),b.attr("disabled",!1);break;case"hide":case"hideNow":l.show();break;case"hideme":b.show();break;case"fadeOut":l.show();break;case"fadeInOut":case"fadeIn":default:l.show(500)}else switch(f){case"disable":l.addClass("yith-disabled"),b.attr("disabled",!0);break;case"hide":case"hideNow":l.hide();break;case"hideme":b.hide();break;case"fadeInOut":case"fadeOut":l.hide(500);break;case"fadeIn":default:l.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);
|
plugin-fw/assets/js/wp-pages.js
CHANGED
@@ -8,16 +8,27 @@
|
|
8 |
*/
|
9 |
|
10 |
jQuery( function ( $ ) {
|
11 |
-
|
12 |
-
|
|
|
13 |
|
14 |
-
|
15 |
-
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
} );
|
8 |
*/
|
9 |
|
10 |
jQuery( function ( $ ) {
|
11 |
+
var wrap = $( '.yith-plugin-fw-wp-page-wrapper' ),
|
12 |
+
notices = $( 'div.updated, div.error, div.notice' ).not( '#message' ),
|
13 |
+
message = $( 'div#message.updated' );
|
14 |
|
15 |
+
// prevents the WC message for changes when leaving the panel page
|
16 |
+
$( '.yith-plugin-fw-wp-page-wrapper .woo-nav-tab-wrapper' ).removeClass( 'woo-nav-tab-wrapper' ).addClass( 'yith-nav-tab-wrapper' );
|
17 |
|
18 |
+
// prevent moving notices withing the tab in WP Pages and move them into the wrapper
|
19 |
+
notices.addClass( 'inline' );
|
20 |
+
if ( wrap.length ) {
|
21 |
+
wrap.prepend( notices );
|
22 |
+
}
|
23 |
+
|
24 |
+
// Update message animation.
|
25 |
+
if ( message.length ) {
|
26 |
+
message.addClass( 'yith-plugin-fw-animate__appear-from-top' ).show();
|
27 |
+
message.on( 'click', '.notice-dismiss', function ( e ) {
|
28 |
+
e.stopPropagation();
|
29 |
+
message.removeClass( 'yith-plugin-fw-animate__appear-from-top' ).slideUp( 200 );
|
30 |
+
} )
|
31 |
+
|
32 |
+
}
|
33 |
|
34 |
} );
|
plugin-fw/assets/js/wp-pages.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(a){var
|
1 |
+
jQuery(function(a){var e=a(".yith-plugin-fw-wp-page-wrapper"),p=a("div.updated, div.error, div.notice").not("#message"),i=a("div#message.updated");a(".yith-plugin-fw-wp-page-wrapper .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper"),p.addClass("inline"),e.length&&e.prepend(p),i.length&&(i.addClass("yith-plugin-fw-animate__appear-from-top").show(),i.on("click",".notice-dismiss",function(a){a.stopPropagation(),i.removeClass("yith-plugin-fw-animate__appear-from-top").slideUp(200)}))});
|
plugin-fw/assets/js/yit-plugin-panel.js
CHANGED
@@ -11,24 +11,22 @@ jQuery( function ( $ ) {
|
|
11 |
// Handle dependencies.
|
12 |
function dependencies_handler( id, deps, values, type ) {
|
13 |
var result = true;
|
14 |
-
//Single dependency
|
15 |
if ( typeof ( deps ) == 'string' ) {
|
16 |
-
|
17 |
-
if ( deps.substr( 0, 6 ) == ':radio' ) {
|
18 |
deps = deps + ':checked';
|
19 |
}
|
20 |
|
21 |
-
var
|
22 |
-
|
|
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
val = $( deps + '-wrapper' ).find( 'select' ).first().val();
|
32 |
}
|
33 |
|
34 |
values = values.split( ',' );
|
@@ -174,38 +172,109 @@ jQuery( function ( $ ) {
|
|
174 |
} );
|
175 |
|
176 |
|
177 |
-
//
|
178 |
$( '.yith-plugin-fw-panel .woo-nav-tab-wrapper' ).removeClass( 'woo-nav-tab-wrapper' ).addClass( 'yith-nav-tab-wrapper' );
|
179 |
|
180 |
var wrap = $( '.wrap.yith-plugin-ui' ).first(),
|
181 |
notices = $( 'div.updated, div.error, div.notice' );
|
182 |
|
183 |
-
//
|
184 |
notices.addClass( 'inline' );
|
185 |
if ( wrap.length ) {
|
186 |
wrap.prepend( notices );
|
187 |
}
|
188 |
|
189 |
|
190 |
-
//
|
191 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
|
|
|
|
|
|
|
|
198 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
if ( wrap.length ) {
|
204 |
-
wrap.addClass( 'has-subnav' );
|
205 |
} else {
|
206 |
-
|
207 |
-
mainWrapper.find( '.wrap' ).wrap( '<div class="wrap subnav-wrap"></div>' );
|
208 |
}
|
209 |
}
|
210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
} );
|
11 |
// Handle dependencies.
|
12 |
function dependencies_handler( id, deps, values, type ) {
|
13 |
var result = true;
|
|
|
14 |
if ( typeof ( deps ) == 'string' ) {
|
15 |
+
if ( deps.substr( 0, 6 ) === ':radio' ) {
|
|
|
16 |
deps = deps + ':checked';
|
17 |
}
|
18 |
|
19 |
+
var depsOn = $( deps ),
|
20 |
+
depsOnType = depsOn.attr( 'type' ),
|
21 |
+
val = depsOn.val();
|
22 |
|
23 |
+
switch ( depsOnType ) {
|
24 |
+
case 'checkbox':
|
25 |
+
val = depsOn.is( ':checked' ) ? 'yes' : 'no';
|
26 |
+
break;
|
27 |
+
case 'radio':
|
28 |
+
val = depsOn.find( 'input[type="radio"]' ).filter( ':checked' ).val();
|
29 |
+
break;
|
|
|
30 |
}
|
31 |
|
32 |
values = values.split( ',' );
|
172 |
} );
|
173 |
|
174 |
|
175 |
+
// Prevent the WC message for changes when leaving the panel page
|
176 |
$( '.yith-plugin-fw-panel .woo-nav-tab-wrapper' ).removeClass( 'woo-nav-tab-wrapper' ).addClass( 'yith-nav-tab-wrapper' );
|
177 |
|
178 |
var wrap = $( '.wrap.yith-plugin-ui' ).first(),
|
179 |
notices = $( 'div.updated, div.error, div.notice' );
|
180 |
|
181 |
+
// Prevent moving notices into the wrapper
|
182 |
notices.addClass( 'inline' );
|
183 |
if ( wrap.length ) {
|
184 |
wrap.prepend( notices );
|
185 |
}
|
186 |
|
187 |
|
188 |
+
// Additional wrapping just in case 'wrap' div is placed within a sub-tab and it's not already wrapped twice.
|
189 |
+
// TODO: Deprecated usage, it'll be removed, since also custom panels should use the automatic-wrapping through 'show_container' param.
|
190 |
+
( function () {
|
191 |
+
var active_subnav = $( '.yith-nav-sub-tab.nav-tab-active' ),
|
192 |
+
subnav_wrap = $( '.yith-plugin-fw-wp-page__sub-tab-wrap' );
|
193 |
+
|
194 |
+
if ( active_subnav.length && !subnav_wrap.length ) {
|
195 |
+
var mainWrapper = $( '.yith-plugin-fw-wp-page-wrapper' );
|
196 |
+
if ( !mainWrapper.length ) {
|
197 |
+
mainWrapper = $( '#wpbody-content > .yith-plugin-ui' );
|
198 |
+
}
|
199 |
|
200 |
+
if ( mainWrapper ) {
|
201 |
+
var defaultWrap = mainWrapper.find( '.yit-admin-panel-content-wrap' ); // at first, search for default wrap.
|
202 |
+
if ( defaultWrap.length ) {
|
203 |
+
defaultWrap.addClass( 'has-subnav' );
|
204 |
+
} else {
|
205 |
+
// try to wrap a generic wrap div in main wrapper
|
206 |
+
mainWrapper.find( '.wrap' ).wrap( '<div class="yith-plugin-fw-wp-page__sub-tab-wrap"></div>' );
|
207 |
+
}
|
208 |
+
}
|
209 |
}
|
210 |
+
} )();
|
211 |
+
|
212 |
+
// Float save button.
|
213 |
+
( function () {
|
214 |
+
var floatSaveButton = $( '#yith-plugin-fw-float-save-button' ),
|
215 |
+
mainForm = $( '#plugin-fw-wc' ),
|
216 |
+
saveButton = document.querySelector( '#main-save-button' );
|
217 |
|
218 |
+
function checkButtonPosition() {
|
219 |
+
if ( isInViewport( saveButton ) ) {
|
220 |
+
floatSaveButton.fadeOut( 150 );
|
|
|
|
|
221 |
} else {
|
222 |
+
floatSaveButton.fadeIn( 300 );
|
|
|
223 |
}
|
224 |
}
|
225 |
+
|
226 |
+
function isInViewport( el ) {
|
227 |
+
var rect = el.getBoundingClientRect(),
|
228 |
+
viewport = {
|
229 |
+
width : window.innerWidth || document.documentElement.clientWidth,
|
230 |
+
height: window.innerHeight || document.documentElement.clientHeight
|
231 |
+
};
|
232 |
+
return (
|
233 |
+
rect.top >= 0 &&
|
234 |
+
rect.left >= 0 &&
|
235 |
+
rect.top <= viewport.height &&
|
236 |
+
rect.left <= viewport.width
|
237 |
+
);
|
238 |
+
}
|
239 |
+
|
240 |
+
if ( floatSaveButton.length > 0 && mainForm.length > 0 ) {
|
241 |
+
floatSaveButton.hide();
|
242 |
+
checkButtonPosition();
|
243 |
+
document.addEventListener( 'scroll', checkButtonPosition, { passive: true } );
|
244 |
+
|
245 |
+
$( document ).on( 'click', '#yith-plugin-fw-float-save-button', function ( e ) {
|
246 |
+
e.preventDefault();
|
247 |
+
floatSaveButton.block(
|
248 |
+
{
|
249 |
+
message : null,
|
250 |
+
overlayCSS: {
|
251 |
+
background: 'transparent',
|
252 |
+
opacity : 0.6
|
253 |
+
}
|
254 |
+
}
|
255 |
+
);
|
256 |
+
$.post( document.location.href, mainForm.serialize() )
|
257 |
+
.done( function ( result ) {
|
258 |
+
floatSaveButton.unblock()
|
259 |
+
.addClass( 'green' )
|
260 |
+
.fadeOut( 300 )
|
261 |
+
.html( '<i class="yith-icon yith-icon-check"></i>' + floatSaveButton.data( 'saved-label' ) )
|
262 |
+
.fadeIn( 300 )
|
263 |
+
.delay( 2500 )
|
264 |
+
.queue(
|
265 |
+
function ( next ) {
|
266 |
+
floatSaveButton.fadeOut(
|
267 |
+
500,
|
268 |
+
function () {
|
269 |
+
$( this ).removeClass( 'green' );
|
270 |
+
$( this ).html( '<i class="yith-icon yith-icon-save"></i>' + $( this ).data( 'default-label' ) ).fadeIn( 500 );
|
271 |
+
}
|
272 |
+
);
|
273 |
+
next();
|
274 |
+
} );
|
275 |
+
} );
|
276 |
+
} )
|
277 |
+
}
|
278 |
+
} )();
|
279 |
+
|
280 |
} );
|
plugin-fw/assets/js/yit-plugin-panel.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(e){function
|
1 |
+
jQuery(function(e){function t(){e("[data-dep-target]:not( .deps-initialized )").each(function(){var t=e(this);if(!t.closest(".metaboxes-tab").length){t.addClass("deps-initialized");var a="#"+t.data("dep-target"),i="#"+t.data("dep-id"),n=t.data("dep-value"),d=t.data("dep-type");e(i).on("change",function(){!function(t,a,i,n){var d=!0;if("string"==typeof a){":radio"===a.substr(0,6)&&(a+=":checked");var s=e(a),o=s.attr("type"),c=s.val();switch(o){case"checkbox":c=s.is(":checked")?"yes":"no";break;case"radio":c=s.find('input[type="radio"]').filter(":checked").val()}i=i.split(",");for(var r=0;r<i.length;r++){if(c==i[r]){d=!0;break}d=!1}}var l=e(t),h=e(t+"-container").closest("tr");h.length<1&&(h=l.closest(".yith-plugin-fw-panel-wc-row, .yith-toggle-content-row"));var u,p=n.split("-");for(u in p){var f=p[u];if(d)switch(f){case"disable":h.removeClass("yith-disabled"),l.attr("disabled",!1);break;case"hide":case"hideNow":h.show();break;case"hideme":l.show();break;case"fadeOut":h.show();break;case"fadeInOut":case"fadeIn":default:h.show(500)}else switch(f){case"disable":h.addClass("yith-disabled"),l.attr("disabled",!0);break;case"hide":case"hideNow":h.hide();break;case"hideme":l.hide();break;case"fadeInOut":case"fadeOut":h.hide(500);break;case"fadeIn":default:h.hide()}}}(a,i,n.toString(),d)}).trigger("change")}})}t(),e(document).on("yith-add-box-button-toggle",t),e(".rm_connectedlist").each(function(){var t=e(this).find("ul"),a=e(this).find(":hidden");t.sortable({connectWith:t,update:function(i,n){var d={};t.each(function(){var t={};e(this).children().each(function(){t[e(this).data("option")]=e(this).text()}),d[e(this).data("list")]=t}),a.val(JSON.stringify(d).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()}),e(function(){e(".google-analytic-generate").click(function(){var t=e("#"+e(this).data("textarea")).data("codemirrorInstance"),a="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n";a+="(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\n",a+="m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n",a+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n",a+="ga('create', '"+e("#"+e(this).data("input")).val()+"', '"+e(this).data("basename")+"');\n",a+="ga('send', 'pageview');\n",t.replaceRange(a,t.getCursor("start"),t.getCursor("end"))})}),e(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper");var a=e(".wrap.yith-plugin-ui").first(),i=e("div.updated, div.error, div.notice");i.addClass("inline"),a.length&&a.prepend(i),function(){var t=e(".yith-nav-sub-tab.nav-tab-active"),a=e(".yith-plugin-fw-wp-page__sub-tab-wrap");if(t.length&&!a.length){var i=e(".yith-plugin-fw-wp-page-wrapper");if(i.length||(i=e("#wpbody-content > .yith-plugin-ui")),i){var n=i.find(".yit-admin-panel-content-wrap");n.length?n.addClass("has-subnav"):i.find(".wrap").wrap('<div class="yith-plugin-fw-wp-page__sub-tab-wrap"></div>')}}}(),function(){var t=e("#yith-plugin-fw-float-save-button"),a=e("#plugin-fw-wc"),i=document.querySelector("#main-save-button");function n(){var e,a;e=i.getBoundingClientRect(),a={width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight},e.top>=0&&e.left>=0&&e.top<=a.height&&e.left<=a.width?t.fadeOut(150):t.fadeIn(300)}t.length>0&&a.length>0&&(t.hide(),n(),document.addEventListener("scroll",n,{passive:!0}),e(document).on("click","#yith-plugin-fw-float-save-button",function(i){i.preventDefault(),t.block({message:null,overlayCSS:{background:"transparent",opacity:.6}}),e.post(document.location.href,a.serialize()).done(function(a){t.unblock().addClass("green").fadeOut(300).html('<i class="yith-icon yith-icon-check"></i>'+t.data("saved-label")).fadeIn(300).delay(2500).queue(function(a){t.fadeOut(500,function(){e(this).removeClass("green"),e(this).html('<i class="yith-icon yith-icon-save"></i>'+e(this).data("default-label")).fadeIn(500)}),a()})})}))}()});
|
plugin-fw/assets/js/yith-fields.js
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
sliderWrapper : $( '.yith-plugin-fw-image-gallery ul.slides-wrapper' )
|
18 |
},
|
19 |
$sidebars = $( '.yith-plugin-fw-sidebar-layout' ),
|
20 |
-
$slider = $( '.yith-plugin-fw
|
21 |
$icons = $( '.yit-icons-manager-wrapper' ),
|
22 |
$checkgroup = $( ".yith-plugin-ui td.forminp-checkbox" );
|
23 |
|
@@ -859,6 +859,92 @@
|
|
859 |
tip.fadeOut( 400 );
|
860 |
}, 1500 );
|
861 |
wrap.data( 'tip-timeout', timeout );
|
862 |
-
} )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
863 |
|
864 |
} )( jQuery );
|
17 |
sliderWrapper : $( '.yith-plugin-fw-image-gallery ul.slides-wrapper' )
|
18 |
},
|
19 |
$sidebars = $( '.yith-plugin-fw-sidebar-layout' ),
|
20 |
+
$slider = $( '.yith-plugin-fw-slider-container .ui-slider-horizontal' ),
|
21 |
$icons = $( '.yit-icons-manager-wrapper' ),
|
22 |
$checkgroup = $( ".yith-plugin-ui td.forminp-checkbox" );
|
23 |
|
859 |
tip.fadeOut( 400 );
|
860 |
}, 1500 );
|
861 |
wrap.data( 'tip-timeout', timeout );
|
862 |
+
} );
|
863 |
+
|
864 |
+
/**
|
865 |
+
* Action buttons
|
866 |
+
*/
|
867 |
+
var actionButtons = {
|
868 |
+
init : function () {
|
869 |
+
$( document ).on( 'click', '.yith-plugin-fw__action-button--has-menu', actionButtons.open );
|
870 |
+
$( document ).on( 'click', '.yith-plugin-fw__action-button__menu', actionButtons.stopPropagation );
|
871 |
+
$( document ).on( 'click', actionButtons.closeAll );
|
872 |
+
},
|
873 |
+
closeAll : function () {
|
874 |
+
$( '.yith-plugin-fw__action-button--opened' ).removeClass( 'yith-plugin-fw__action-button--opened' );
|
875 |
+
},
|
876 |
+
open : function ( e ) {
|
877 |
+
var button = $( this ).closest( '.yith-plugin-fw__action-button' ),
|
878 |
+
wasOpened = button.hasClass( 'yith-plugin-fw__action-button--opened' );
|
879 |
+
e.preventDefault();
|
880 |
+
e.stopPropagation();
|
881 |
+
|
882 |
+
actionButtons.closeAll();
|
883 |
+
|
884 |
+
if ( !wasOpened ) {
|
885 |
+
button.addClass( 'yith-plugin-fw__action-button--opened' );
|
886 |
+
}
|
887 |
+
},
|
888 |
+
stopPropagation: function ( e ) {
|
889 |
+
e.stopPropagation();
|
890 |
+
}
|
891 |
+
};
|
892 |
+
actionButtons.init();
|
893 |
+
|
894 |
+
/**
|
895 |
+
* Require confirmation link
|
896 |
+
*/
|
897 |
+
$( document ).on( 'click', 'a.yith-plugin-fw__require-confirmation-link', function ( e ) {
|
898 |
+
var link = $( this ).closest( 'a.yith-plugin-fw__require-confirmation-link' ),
|
899 |
+
url = link.attr( 'href' );
|
900 |
+
|
901 |
+
if ( url && '#' !== url ) {
|
902 |
+
e.preventDefault();
|
903 |
+
e.stopPropagation();
|
904 |
+
if ( 'yith' in window && 'ui' in yith ) {
|
905 |
+
var dataForOptions = [
|
906 |
+
'title',
|
907 |
+
'message',
|
908 |
+
'confirmButtonType',
|
909 |
+
'cancelButton',
|
910 |
+
'confirmButton'
|
911 |
+
],
|
912 |
+
options = {}, i;
|
913 |
+
|
914 |
+
for ( i in dataForOptions ) {
|
915 |
+
var key = dataForOptions[ i ],
|
916 |
+
value = link.data( key );
|
917 |
+
|
918 |
+
if ( typeof value !== 'undefined' ) {
|
919 |
+
options[ key ] = value;
|
920 |
+
}
|
921 |
+
}
|
922 |
+
|
923 |
+
options.onConfirm = function () {
|
924 |
+
window.location.href = url;
|
925 |
+
};
|
926 |
+
|
927 |
+
options.closeAfterConfirm = false;
|
928 |
+
|
929 |
+
yith.ui.confirm( options );
|
930 |
+
|
931 |
+
}
|
932 |
+
}
|
933 |
+
|
934 |
+
} );
|
935 |
+
|
936 |
+
/**
|
937 |
+
* Tips
|
938 |
+
*/
|
939 |
+
$( document ).on( 'yith-plugin-fw-tips-init', function () {
|
940 |
+
$( '.yith-plugin-fw__tips' ).tipTip(
|
941 |
+
{
|
942 |
+
attribute: 'data-tip',
|
943 |
+
fadeIn : 50,
|
944 |
+
fadeOut : 50,
|
945 |
+
delay : 200
|
946 |
+
}
|
947 |
+
);
|
948 |
+
} ).trigger( 'yith-plugin-fw-tips-init' );
|
949 |
|
950 |
} )( jQuery );
|
plugin-fw/assets/js/yith-fields.min.js
CHANGED
@@ -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").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 |
+
!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-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)});var i={init:function(){e(document).on("click",".yith-plugin-fw__action-button--has-menu",i.open),e(document).on("click",".yith-plugin-fw__action-button__menu",i.stopPropagation),e(document).on("click",i.closeAll)},closeAll:function(){e(".yith-plugin-fw__action-button--opened").removeClass("yith-plugin-fw__action-button--opened")},open:function(t){var n=e(this).closest(".yith-plugin-fw__action-button"),a=n.hasClass("yith-plugin-fw__action-button--opened");t.preventDefault(),t.stopPropagation(),i.closeAll(),a||n.addClass("yith-plugin-fw__action-button--opened")},stopPropagation:function(e){e.stopPropagation()}};i.init(),e(document).on("click","a.yith-plugin-fw__require-confirmation-link",function(t){var i=e(this).closest("a.yith-plugin-fw__require-confirmation-link"),n=i.attr("href");if(n&&"#"!==n&&(t.preventDefault(),t.stopPropagation(),"yith"in window&&"ui"in yith)){var a,l=["title","message","confirmButtonType","cancelButton","confirmButton"],o={};for(a in l){var s=l[a],r=i.data(s);void 0!==r&&(o[s]=r)}o.onConfirm=function(){window.location.href=n},o.closeAfterConfirm=!1,yith.ui.confirm(o)}}),e(document).on("yith-plugin-fw-tips-init",function(){e(".yith-plugin-fw__tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200})}).trigger("yith-plugin-fw-tips-init")}(jQuery);
|
plugin-fw/assets/js/yith-ui.js
ADDED
@@ -0,0 +1,306 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* globals yith_plugin_fw_ui */
|
2 |
+
|
3 |
+
// Make sure the yith object exists.
|
4 |
+
window.yith = window.yith || {};
|
5 |
+
|
6 |
+
( function ( $, yith ) {
|
7 |
+
yith.ui = yith.ui || {};
|
8 |
+
|
9 |
+
var cssClasses = function ( classes ) {
|
10 |
+
if ( typeof classes === 'string' ) {
|
11 |
+
return classes;
|
12 |
+
} else {
|
13 |
+
var filteredClasses = [];
|
14 |
+
|
15 |
+
for ( var value of classes ) {
|
16 |
+
if ( value && filteredClasses.indexOf( value ) < 0 ) {
|
17 |
+
filteredClasses.push( cssClasses( value ) );
|
18 |
+
}
|
19 |
+
}
|
20 |
+
return filteredClasses.join( ' ' );
|
21 |
+
}
|
22 |
+
}
|
23 |
+
|
24 |
+
var stopEventPropagation = function ( e ) {
|
25 |
+
e.stopPropagation();
|
26 |
+
};
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Confirm window.
|
30 |
+
*/
|
31 |
+
yith.ui.confirm = function ( options ) {
|
32 |
+
var defaults = {
|
33 |
+
title : false,
|
34 |
+
message : false,
|
35 |
+
onConfirm : false,
|
36 |
+
onCancel : false,
|
37 |
+
onClose : false,
|
38 |
+
classes : {
|
39 |
+
wrap : '',
|
40 |
+
content: '',
|
41 |
+
title : '',
|
42 |
+
message: '',
|
43 |
+
footer : '',
|
44 |
+
cancel : '',
|
45 |
+
confirm: ''
|
46 |
+
},
|
47 |
+
confirmButtonType : 'confirm',
|
48 |
+
cancelButton : yith_plugin_fw_ui.i18n.cancel,
|
49 |
+
confirmButton : yith_plugin_fw_ui.i18n.confirm,
|
50 |
+
width : 350,
|
51 |
+
closeAfterConfirm : true,
|
52 |
+
allowWpMenu : false,
|
53 |
+
allowWpMenuInMobile : false,
|
54 |
+
showClose : true,
|
55 |
+
closeWhenClickingOnOverlay: false
|
56 |
+
},
|
57 |
+
self = {};
|
58 |
+
|
59 |
+
options = typeof options !== 'undefined' ? options : {};
|
60 |
+
options = $.extend( {}, defaults, options );
|
61 |
+
options.classes = $.extend( {}, defaults.classes, options.classes );
|
62 |
+
|
63 |
+
var classes = {
|
64 |
+
wrap : cssClasses( ['yith-plugin-fw__confirm__wrap', options.classes.wrap] ),
|
65 |
+
content: cssClasses( ['yith-plugin-fw__confirm__content', options.classes.content] ),
|
66 |
+
title : cssClasses( ['yith-plugin-fw__confirm__title', options.classes.title] ),
|
67 |
+
message: cssClasses( ['yith-plugin-fw__confirm__message', options.classes.message] ),
|
68 |
+
footer : cssClasses( ['yith-plugin-fw__confirm__footer', options.classes.footer] ),
|
69 |
+
cancel : cssClasses( ['yith-plugin-fw__confirm__button', 'yith-plugin-fw__confirm__button--cancel', options.classes.cancel] ),
|
70 |
+
confirm: cssClasses( ['yith-plugin-fw__confirm__button', 'yith-plugin-fw__confirm__button--' + options.confirmButtonType, options.classes.confirm] )
|
71 |
+
},
|
72 |
+
dom = {
|
73 |
+
message: false,
|
74 |
+
footer : false,
|
75 |
+
cancel : false,
|
76 |
+
confirm: false
|
77 |
+
},
|
78 |
+
modal = false,
|
79 |
+
initialize = function () {
|
80 |
+
create();
|
81 |
+
initEvents();
|
82 |
+
},
|
83 |
+
handleClose = function () {
|
84 |
+
modal && modal.close();
|
85 |
+
modal = false;
|
86 |
+
},
|
87 |
+
create = function () {
|
88 |
+
dom.message = $( '<div class="' + classes.message + '">' );
|
89 |
+
dom.footer = $( '<div class="' + classes.footer + '">' );
|
90 |
+
dom.cancel = $( '<span class="' + classes.cancel + '">' + options.cancelButton + '</span>' );
|
91 |
+
dom.confirm = $( '<span class="' + classes.confirm + '">' + options.confirmButton + '</span>' );
|
92 |
+
|
93 |
+
|
94 |
+
if ( options.message ) {
|
95 |
+
dom.message.html( options.message );
|
96 |
+
}
|
97 |
+
|
98 |
+
dom.footer.append( dom.cancel );
|
99 |
+
dom.footer.append( dom.confirm );
|
100 |
+
|
101 |
+
modal = yith.ui.modal(
|
102 |
+
{
|
103 |
+
classes : {
|
104 |
+
wrap : classes.wrap,
|
105 |
+
title : classes.title,
|
106 |
+
content: classes.content
|
107 |
+
},
|
108 |
+
title : options.title,
|
109 |
+
content : [dom.message, dom.footer],
|
110 |
+
width : options.width,
|
111 |
+
allowWpMenu : options.allowWpMenu,
|
112 |
+
allowWpMenuInMobile : options.allowWpMenuInMobile,
|
113 |
+
showClose : options.showClose,
|
114 |
+
onClose : options.onClose,
|
115 |
+
closeWhenClickingOnOverlay: options.closeWhenClickingOnOverlay
|
116 |
+
}
|
117 |
+
);
|
118 |
+
},
|
119 |
+
handleCancel = function () {
|
120 |
+
if ( typeof options.onCancel === 'function' ) {
|
121 |
+
options.onCancel();
|
122 |
+
}
|
123 |
+
|
124 |
+
handleClose();
|
125 |
+
},
|
126 |
+
handleConfirm = function () {
|
127 |
+
if ( typeof options.onConfirm === 'function' ) {
|
128 |
+
options.onConfirm();
|
129 |
+
}
|
130 |
+
|
131 |
+
if ( options.closeAfterConfirm ) {
|
132 |
+
handleClose();
|
133 |
+
}
|
134 |
+
},
|
135 |
+
initEvents = function () {
|
136 |
+
dom.cancel.on( 'click', handleCancel );
|
137 |
+
dom.confirm.on( 'click', handleConfirm );
|
138 |
+
};
|
139 |
+
|
140 |
+
initialize();
|
141 |
+
|
142 |
+
self.elements = $.extend( {}, dom );
|
143 |
+
self.modal = $.extend( {}, modal );
|
144 |
+
self.close = handleClose;
|
145 |
+
self.cancel = handleCancel;
|
146 |
+
};
|
147 |
+
|
148 |
+
|
149 |
+
/**
|
150 |
+
* Modal window.
|
151 |
+
*/
|
152 |
+
yith.ui.modal = function ( options ) {
|
153 |
+
var defaults = {
|
154 |
+
allowWpMenu : true,
|
155 |
+
allowWpMenuInMobile : false,
|
156 |
+
title : false,
|
157 |
+
content : false,
|
158 |
+
footer : false,
|
159 |
+
showClose : true,
|
160 |
+
closeSelector : false,
|
161 |
+
classes : {
|
162 |
+
wrap : '',
|
163 |
+
main : '',
|
164 |
+
close : '',
|
165 |
+
title : '',
|
166 |
+
content: '',
|
167 |
+
footer : ''
|
168 |
+
},
|
169 |
+
width : 500,
|
170 |
+
allowClosingWithEsc : true,
|
171 |
+
closeWhenClickingOnOverlay: false,
|
172 |
+
scrollContent : true,
|
173 |
+
onClose : false
|
174 |
+
},
|
175 |
+
self = {};
|
176 |
+
|
177 |
+
options = typeof options !== 'undefined' ? options : {};
|
178 |
+
options = $.extend( {}, defaults, options );
|
179 |
+
options.classes = $.extend( {}, defaults.classes, options.classes );
|
180 |
+
|
181 |
+
var container = $( '#wpwrap' ),
|
182 |
+
classes = {
|
183 |
+
wrap : ['yith-plugin-ui', 'yith-plugin-fw__modal__wrap', options.classes.wrap],
|
184 |
+
main : ['yith-plugin-fw__modal__main', options.classes.main],
|
185 |
+
close : ['yith-plugin-fw__modal__close', 'yith-icon', 'yith-icon-close', options.classes.close],
|
186 |
+
title : ['yith-plugin-fw__modal__title', options.classes.title],
|
187 |
+
content: ['yith-plugin-fw__modal__content', options.classes.content],
|
188 |
+
footer : ['yith-plugin-fw__modal__footer', options.classes.footer]
|
189 |
+
},
|
190 |
+
dom = {
|
191 |
+
wrap : false,
|
192 |
+
main : false,
|
193 |
+
close : false,
|
194 |
+
title : false,
|
195 |
+
content: false,
|
196 |
+
footer : false
|
197 |
+
},
|
198 |
+
initialize = function () {
|
199 |
+
handleClose();
|
200 |
+
|
201 |
+
create();
|
202 |
+
initEvents();
|
203 |
+
},
|
204 |
+
handleClose = function () {
|
205 |
+
$( '.yith-plugin-fw__modal__wrap' ).remove();
|
206 |
+
container.removeClass( 'yith-plugin-fw__modal--opened' );
|
207 |
+
container.removeClass( 'yith-plugin-fw__modal--allow-wp-menu' );
|
208 |
+
container.removeClass( 'yith-plugin-fw__modal--allow-wp-menu-in-mobile' );
|
209 |
+
|
210 |
+
if ( typeof options.onClose === 'function' ) {
|
211 |
+
options.onClose();
|
212 |
+
}
|
213 |
+
},
|
214 |
+
create = function () {
|
215 |
+
dom.wrap = $( '<div class="' + cssClasses( classes.wrap ) + '">' );
|
216 |
+
dom.main = $( '<div class="' + cssClasses( classes.main ) + '">' );
|
217 |
+
dom.close = $( '<span class="' + cssClasses( classes.close ) + '">' );
|
218 |
+
dom.title = $( '<div class="' + cssClasses( classes.title ) + '">' );
|
219 |
+
dom.content = $( '<div class="' + cssClasses( classes.content ) + '">' );
|
220 |
+
dom.footer = $( '<div class="' + cssClasses( classes.footer ) + '">' );
|
221 |
+
|
222 |
+
dom.main.css( { width: options.width } );
|
223 |
+
|
224 |
+
|
225 |
+
if ( options.title ) {
|
226 |
+
if ( typeof options.title === 'string' ) {
|
227 |
+
dom.title.html( options.title );
|
228 |
+
} else {
|
229 |
+
dom.title.append( options.title );
|
230 |
+
}
|
231 |
+
}
|
232 |
+
|
233 |
+
if ( options.content ) {
|
234 |
+
if ( typeof options.content === 'string' ) {
|
235 |
+
dom.content.html( options.content );
|
236 |
+
} else {
|
237 |
+
dom.content.append( options.content );
|
238 |
+
}
|
239 |
+
}
|
240 |
+
|
241 |
+
if ( options.showClose ) {
|
242 |
+
dom.main.append( dom.close );
|
243 |
+
}
|
244 |
+
|
245 |
+
dom.main.append( dom.title );
|
246 |
+
dom.main.append( dom.content );
|
247 |
+
|
248 |
+
|
249 |
+
if ( options.footer ) {
|
250 |
+
if ( typeof options.footer === 'string' ) {
|
251 |
+
dom.footer.html( options.footer );
|
252 |
+
} else {
|
253 |
+
dom.footer.append( options.footer );
|
254 |
+
}
|
255 |
+
|
256 |
+
dom.main.append( dom.footer );
|
257 |
+
}
|
258 |
+
|
259 |
+
|
260 |
+
dom.wrap.append( dom.main );
|
261 |
+
|
262 |
+
if ( options.scrollContent ) {
|
263 |
+
dom.wrap.addClass( 'yith-plugin-fw__modal__wrap--scroll-content' );
|
264 |
+
}
|
265 |
+
|
266 |
+
container.append( dom.wrap );
|
267 |
+
container.addClass( 'yith-plugin-fw__modal--opened' );
|
268 |
+
if ( options.allowWpMenu ) {
|
269 |
+
container.addClass( 'yith-plugin-fw__modal--allow-wp-menu' );
|
270 |
+
}
|
271 |
+
|
272 |
+
if ( options.allowWpMenuInMobile ) {
|
273 |
+
container.addClass( 'yith-plugin-fw__modal--allow-wp-menu-in-mobile' );
|
274 |
+
}
|
275 |
+
|
276 |
+
|
277 |
+
},
|
278 |
+
initEvents = function () {
|
279 |
+
dom.close.on( 'click', handleClose );
|
280 |
+
if ( options.closeSelector ) {
|
281 |
+
container.on( 'click', options.closeSelector, handleClose );
|
282 |
+
}
|
283 |
+
|
284 |
+
if ( options.closeWhenClickingOnOverlay ) {
|
285 |
+
dom.wrap.on( 'click', handleClose );
|
286 |
+
dom.main.on( 'click', stopEventPropagation );
|
287 |
+
}
|
288 |
+
|
289 |
+
$( document ).on( 'keydown', handleKeyboard );
|
290 |
+
},
|
291 |
+
handleKeyboard = function ( event ) {
|
292 |
+
if ( options.allowClosingWithEsc && event.keyCode === 27 ) {
|
293 |
+
handleClose();
|
294 |
+
}
|
295 |
+
}
|
296 |
+
|
297 |
+
initialize();
|
298 |
+
|
299 |
+
self.elements = $.extend( {}, dom );
|
300 |
+
self.close = handleClose;
|
301 |
+
|
302 |
+
return self;
|
303 |
+
|
304 |
+
}
|
305 |
+
|
306 |
+
} )( window.jQuery, window.yith );
|
plugin-fw/assets/js/yith-ui.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
window.yith=window.yith||{},function(n,e){e.ui=e.ui||{};var o=function(n){if("string"==typeof n)return n;var e=[];for(var t of n)t&&e.indexOf(t)<0&&e.push(o(t));return e.join(" ")},t=function(n){n.stopPropagation()};e.ui.confirm=function(t){var l={title:!1,message:!1,onConfirm:!1,onCancel:!1,onClose:!1,classes:{wrap:"",content:"",title:"",message:"",footer:"",cancel:"",confirm:""},confirmButtonType:"confirm",cancelButton:yith_plugin_fw_ui.i18n.cancel,confirmButton:yith_plugin_fw_ui.i18n.confirm,width:350,closeAfterConfirm:!0,allowWpMenu:!1,allowWpMenuInMobile:!1,showClose:!0,closeWhenClickingOnOverlay:!1},i={};t=void 0!==t?t:{},(t=n.extend({},l,t)).classes=n.extend({},l.classes,t.classes);var s={wrap:o(["yith-plugin-fw__confirm__wrap",t.classes.wrap]),content:o(["yith-plugin-fw__confirm__content",t.classes.content]),title:o(["yith-plugin-fw__confirm__title",t.classes.title]),message:o(["yith-plugin-fw__confirm__message",t.classes.message]),footer:o(["yith-plugin-fw__confirm__footer",t.classes.footer]),cancel:o(["yith-plugin-fw__confirm__button","yith-plugin-fw__confirm__button--cancel",t.classes.cancel]),confirm:o(["yith-plugin-fw__confirm__button","yith-plugin-fw__confirm__button--"+t.confirmButtonType,t.classes.confirm])},c={message:!1,footer:!1,cancel:!1,confirm:!1},a=!1,r=function(){a&&a.close(),a=!1},f=function(){"function"==typeof t.onCancel&&t.onCancel(),r()},p=function(){"function"==typeof t.onConfirm&&t.onConfirm(),t.closeAfterConfirm&&r()},m=function(){c.cancel.on("click",f),c.confirm.on("click",p)};(function(){c.message=n('<div class="'+s.message+'">'),c.footer=n('<div class="'+s.footer+'">'),c.cancel=n('<span class="'+s.cancel+'">'+t.cancelButton+"</span>"),c.confirm=n('<span class="'+s.confirm+'">'+t.confirmButton+"</span>"),t.message&&c.message.html(t.message),c.footer.append(c.cancel),c.footer.append(c.confirm),a=e.ui.modal({classes:{wrap:s.wrap,title:s.title,content:s.content},title:t.title,content:[c.message,c.footer],width:t.width,allowWpMenu:t.allowWpMenu,allowWpMenuInMobile:t.allowWpMenuInMobile,showClose:t.showClose,onClose:t.onClose,closeWhenClickingOnOverlay:t.closeWhenClickingOnOverlay})})(),m(),i.elements=n.extend({},c),i.modal=n.extend({},a),i.close=r,i.cancel=f},e.ui.modal=function(e){var l={allowWpMenu:!0,allowWpMenuInMobile:!1,title:!1,content:!1,footer:!1,showClose:!0,closeSelector:!1,classes:{wrap:"",main:"",close:"",title:"",content:"",footer:""},width:500,allowClosingWithEsc:!0,closeWhenClickingOnOverlay:!1,scrollContent:!0,onClose:!1},i={};e=void 0!==e?e:{},(e=n.extend({},l,e)).classes=n.extend({},l.classes,e.classes);var s=n("#wpwrap"),c={wrap:["yith-plugin-ui","yith-plugin-fw__modal__wrap",e.classes.wrap],main:["yith-plugin-fw__modal__main",e.classes.main],close:["yith-plugin-fw__modal__close","yith-icon","yith-icon-close",e.classes.close],title:["yith-plugin-fw__modal__title",e.classes.title],content:["yith-plugin-fw__modal__content",e.classes.content],footer:["yith-plugin-fw__modal__footer",e.classes.footer]},a={wrap:!1,main:!1,close:!1,title:!1,content:!1,footer:!1},r=function(){n(".yith-plugin-fw__modal__wrap").remove(),s.removeClass("yith-plugin-fw__modal--opened"),s.removeClass("yith-plugin-fw__modal--allow-wp-menu"),s.removeClass("yith-plugin-fw__modal--allow-wp-menu-in-mobile"),"function"==typeof e.onClose&&e.onClose()},f=function(){a.wrap=n('<div class="'+o(c.wrap)+'">'),a.main=n('<div class="'+o(c.main)+'">'),a.close=n('<span class="'+o(c.close)+'">'),a.title=n('<div class="'+o(c.title)+'">'),a.content=n('<div class="'+o(c.content)+'">'),a.footer=n('<div class="'+o(c.footer)+'">'),a.main.css({width:e.width}),e.title&&("string"==typeof e.title?a.title.html(e.title):a.title.append(e.title)),e.content&&("string"==typeof e.content?a.content.html(e.content):a.content.append(e.content)),e.showClose&&a.main.append(a.close),a.main.append(a.title),a.main.append(a.content),e.footer&&("string"==typeof e.footer?a.footer.html(e.footer):a.footer.append(e.footer),a.main.append(a.footer)),a.wrap.append(a.main),e.scrollContent&&a.wrap.addClass("yith-plugin-fw__modal__wrap--scroll-content"),s.append(a.wrap),s.addClass("yith-plugin-fw__modal--opened"),e.allowWpMenu&&s.addClass("yith-plugin-fw__modal--allow-wp-menu"),e.allowWpMenuInMobile&&s.addClass("yith-plugin-fw__modal--allow-wp-menu-in-mobile")},p=function(){a.close.on("click",r),e.closeSelector&&s.on("click",e.closeSelector,r),e.closeWhenClickingOnOverlay&&(a.wrap.on("click",r),a.main.on("click",t)),n(document).on("keydown",m)},m=function(n){e.allowClosingWithEsc&&27===n.keyCode&&r()};return r(),f(),p(),i.elements=n.extend({},a),i.close=r,i}}(window.jQuery,window.yith);
|
plugin-fw/dist/gutenberg/style-index.css
CHANGED
@@ -1,2 +1,4 @@
|
|
1 |
-
.block-editor-yith-plugin-fw-shortcode-block.block-editor-yith-plugin-fw-shortcode-block--
|
|
|
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--first-loading,.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--empty-html{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:0.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 |
+
|
3 |
.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}
|
4 |
+
|
plugin-fw/includes/class-yit-assets.php
CHANGED
@@ -68,23 +68,25 @@ if ( ! class_exists( 'YIT_Assets' ) ) {
|
|
68 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
69 |
|
70 |
// Register scripts.
|
|
|
71 |
wp_register_script( 'yith-colorpicker', YIT_CORE_PLUGIN_URL . '/assets/js/yith-colorpicker.min.js', array( 'jquery', 'wp-color-picker' ), '3.0.0', true );
|
72 |
-
wp_register_script( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/js/yith-fields' . $suffix . '.js', array( 'jquery', 'jquery-ui-datepicker', 'yith-colorpicker', 'jquery-ui-slider', 'jquery-ui-sortable' ), $this->version, true );
|
73 |
wp_register_script( 'yith-date-format', YIT_CORE_PLUGIN_URL . '/assets/js/yith-date-format' . $suffix . '.js', array( 'jquery', 'jquery-ui-datepicker' ), $this->version, true );
|
74 |
|
75 |
-
wp_register_script( 'yit-metabox', YIT_CORE_PLUGIN_URL . '/assets/js/metabox' . $suffix . '.js', array( 'jquery', 'wp-color-picker', 'yith-plugin-fw-fields' ), $this->version, true );
|
76 |
-
wp_register_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel' . $suffix . '.js', array( 'jquery', 'wp-color-picker', 'jquery-ui-sortable', 'yith-plugin-fw-fields' ), $this->version, true );
|
77 |
wp_register_script( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/js/jquery.colorbox' . $suffix . '.js', array( 'jquery' ), '1.6.3', true );
|
78 |
wp_register_script( 'yith_how_to', YIT_CORE_PLUGIN_URL . '/assets/js/how-to' . $suffix . '.js', array( 'jquery' ), $this->version, true );
|
79 |
wp_register_script( 'yith-plugin-fw-wp-pages', YIT_CORE_PLUGIN_URL . '/assets/js/wp-pages' . $suffix . '.js', array( 'jquery' ), $this->version, false );
|
80 |
|
81 |
// Register styles.
|
82 |
-
wp_register_style( '
|
|
|
83 |
wp_register_style( 'jquery-ui-style', YIT_CORE_PLUGIN_URL . '/assets/css/jquery-ui/jquery-ui.min.css', array(), '1.11.4' );
|
84 |
wp_register_style( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/css/colorbox.css', array(), $this->version );
|
85 |
wp_register_style( 'yit-upgrade-to-pro', YIT_CORE_PLUGIN_URL . '/assets/css/yit-upgrade-to-pro.css', array( 'colorbox' ), $this->version );
|
86 |
-
wp_register_style( 'yit-plugin-metaboxes', YIT_CORE_PLUGIN_URL . '/assets/css/metaboxes.css', array(), $this->version );
|
87 |
-
wp_register_style( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/css/yith-fields.css', array( 'yith-plugin-
|
88 |
|
89 |
wp_register_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900', array(), $this->version );
|
90 |
|
@@ -95,6 +97,7 @@ if ( ! class_exists( 'YIT_Assets' ) ) {
|
|
95 |
|
96 |
wp_register_style( 'woocommerce_admin_styles', $woocommerce->plugin_url() . '/assets/css/admin.css', array(), $woocommerce_version );
|
97 |
} else {
|
|
|
98 |
wp_register_script( 'select2', YIT_CORE_PLUGIN_URL . '/assets/js/select2/select2.min.js', array( 'jquery' ), '4.0.3', true );
|
99 |
wp_register_style( 'yith-select2-no-wc', YIT_CORE_PLUGIN_URL . '/assets/css/yith-select2-no-wc.css', false, $this->version );
|
100 |
}
|
@@ -120,6 +123,17 @@ if ( ! class_exists( 'YIT_Assets' ) ) {
|
|
120 |
)
|
121 |
);
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
// Localize color-picker to avoid issues with WordPress 5.5.
|
124 |
if ( version_compare( $wp_version, '5.5-RC', '>=' ) ) {
|
125 |
wp_localize_script(
|
68 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
69 |
|
70 |
// Register scripts.
|
71 |
+
wp_register_script( 'yith-ui', YIT_CORE_PLUGIN_URL . '/assets/js/yith-ui' . $suffix . '.js', array( 'jquery' ), $this->version, true );
|
72 |
wp_register_script( 'yith-colorpicker', YIT_CORE_PLUGIN_URL . '/assets/js/yith-colorpicker.min.js', array( 'jquery', 'wp-color-picker' ), '3.0.0', true );
|
73 |
+
wp_register_script( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/js/yith-fields' . $suffix . '.js', array( 'jquery', 'jquery-ui-datepicker', 'yith-colorpicker', 'jquery-ui-slider', 'jquery-ui-sortable', 'jquery-tiptip', 'yith-ui' ), $this->version, true );
|
74 |
wp_register_script( 'yith-date-format', YIT_CORE_PLUGIN_URL . '/assets/js/yith-date-format' . $suffix . '.js', array( 'jquery', 'jquery-ui-datepicker' ), $this->version, true );
|
75 |
|
76 |
+
wp_register_script( 'yit-metabox', YIT_CORE_PLUGIN_URL . '/assets/js/metabox' . $suffix . '.js', array( 'jquery', 'wp-color-picker', 'yith-plugin-fw-fields', 'yith-ui' ), $this->version, true );
|
77 |
+
wp_register_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel' . $suffix . '.js', array( 'jquery', 'wp-color-picker', 'jquery-ui-sortable', 'yith-plugin-fw-fields', 'yith-ui' ), $this->version, true );
|
78 |
wp_register_script( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/js/jquery.colorbox' . $suffix . '.js', array( 'jquery' ), '1.6.3', true );
|
79 |
wp_register_script( 'yith_how_to', YIT_CORE_PLUGIN_URL . '/assets/js/how-to' . $suffix . '.js', array( 'jquery' ), $this->version, true );
|
80 |
wp_register_script( 'yith-plugin-fw-wp-pages', YIT_CORE_PLUGIN_URL . '/assets/js/wp-pages' . $suffix . '.js', array( 'jquery' ), $this->version, false );
|
81 |
|
82 |
// Register styles.
|
83 |
+
wp_register_style( 'yith-plugin-ui', YIT_CORE_PLUGIN_URL . '/assets/css/yith-plugin-ui.css', array( 'yith-plugin-fw-icon-font' ), $this->version );
|
84 |
+
wp_register_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', array( 'yith-plugin-ui' ), $this->version );
|
85 |
wp_register_style( 'jquery-ui-style', YIT_CORE_PLUGIN_URL . '/assets/css/jquery-ui/jquery-ui.min.css', array(), '1.11.4' );
|
86 |
wp_register_style( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/css/colorbox.css', array(), $this->version );
|
87 |
wp_register_style( 'yit-upgrade-to-pro', YIT_CORE_PLUGIN_URL . '/assets/css/yit-upgrade-to-pro.css', array( 'colorbox' ), $this->version );
|
88 |
+
wp_register_style( 'yit-plugin-metaboxes', YIT_CORE_PLUGIN_URL . '/assets/css/metaboxes.css', array( 'yith-plugin-ui' ), $this->version );
|
89 |
+
wp_register_style( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/css/yith-fields.css', array( 'yith-plugin-ui' ), $this->version );
|
90 |
|
91 |
wp_register_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700,800,900', array(), $this->version );
|
92 |
|
97 |
|
98 |
wp_register_style( 'woocommerce_admin_styles', $woocommerce->plugin_url() . '/assets/css/admin.css', array(), $woocommerce_version );
|
99 |
} else {
|
100 |
+
wp_register_script( 'jquery-tiptip', YIT_CORE_PLUGIN_URL . '/assets/js/jquery-tiptip/jquery.tipTip' . $suffix . '.js', array( 'jquery' ), '1.3', true );
|
101 |
wp_register_script( 'select2', YIT_CORE_PLUGIN_URL . '/assets/js/select2/select2.min.js', array( 'jquery' ), '4.0.3', true );
|
102 |
wp_register_style( 'yith-select2-no-wc', YIT_CORE_PLUGIN_URL . '/assets/css/yith-select2-no-wc.css', false, $this->version );
|
103 |
}
|
123 |
)
|
124 |
);
|
125 |
|
126 |
+
wp_localize_script(
|
127 |
+
'yith-ui',
|
128 |
+
'yith_plugin_fw_ui',
|
129 |
+
array(
|
130 |
+
'i18n' => array(
|
131 |
+
'confirm' => _x( 'Confirm', 'Button text', 'yith-plugin-fw' ),
|
132 |
+
'cancel' => _x( 'Cancel', 'Button text', 'yith-plugin-fw' ),
|
133 |
+
),
|
134 |
+
)
|
135 |
+
);
|
136 |
+
|
137 |
// Localize color-picker to avoid issues with WordPress 5.5.
|
138 |
if ( version_compare( $wp_version, '5.5-RC', '>=' ) ) {
|
139 |
wp_localize_script(
|
plugin-fw/includes/class-yit-metabox.php
CHANGED
@@ -293,8 +293,11 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
|
|
293 |
|
294 |
/**
|
295 |
* Show the meta-box
|
|
|
|
|
|
|
296 |
*/
|
297 |
-
public function show() {
|
298 |
$this->reorder_tabs();
|
299 |
|
300 |
$args = array(
|
@@ -302,6 +305,10 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
|
|
302 |
'class' => isset( $this->options['class'] ) ? $this->options['class'] : '',
|
303 |
);
|
304 |
|
|
|
|
|
|
|
|
|
305 |
yit_plugin_get_template( YIT_CORE_PLUGIN_PATH, 'metaboxes/tab.php', $args );
|
306 |
}
|
307 |
|
293 |
|
294 |
/**
|
295 |
* Show the meta-box
|
296 |
+
*
|
297 |
+
* @param WP_Post $post The post.
|
298 |
+
* @param array $meta_box The meta-box info array.
|
299 |
*/
|
300 |
+
public function show( $post, $meta_box ) {
|
301 |
$this->reorder_tabs();
|
302 |
|
303 |
$args = array(
|
305 |
'class' => isset( $this->options['class'] ) ? $this->options['class'] : '',
|
306 |
);
|
307 |
|
308 |
+
if ( isset( $meta_box, $meta_box['id'] ) ) {
|
309 |
+
do_action( "yith_plugin_fw_metabox_before_render_{$meta_box['id']}", $post, $meta_box );
|
310 |
+
}
|
311 |
+
|
312 |
yit_plugin_get_template( YIT_CORE_PLUGIN_PATH, 'metaboxes/tab.php', $args );
|
313 |
}
|
314 |
|
plugin-fw/includes/class-yit-plugin-panel.php
CHANGED
@@ -178,6 +178,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
178 |
'page' => $this->settings['page'],
|
179 |
'current_tab' => isset( $tabs['tab'] ) ? $tabs['tab'] : '',
|
180 |
'current_sub_tab' => isset( $tabs['sub_tab'] ) ? $tabs['sub_tab'] : '',
|
|
|
181 |
);
|
182 |
|
183 |
if ( ! $is_block_editor ) {
|
@@ -692,8 +693,10 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
692 |
*/
|
693 |
public function get_tab_info_by_options( $tab_options ) {
|
694 |
$type = $this->get_tab_type_by_options( $tab_options );
|
695 |
-
$info = array( 'type' => $type );
|
696 |
$first = ! ! $tab_options && is_array( $tab_options ) ? current( $tab_options ) : array();
|
|
|
|
|
|
|
697 |
if ( 'post_type' === $type ) {
|
698 |
$info['post_type'] = isset( $first['post_type'] ) ? $first['post_type'] : '';
|
699 |
} elseif ( 'taxonomy' === $type ) {
|
@@ -1376,7 +1379,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
1376 |
if ( 'admin.php' === $pagenow && $screen && strpos( $screen->id, $this->settings['page'] ) !== false ) {
|
1377 |
switch ( $field['type'] ) {
|
1378 |
case 'datepicker':
|
1379 |
-
echo '<span class="yith-icon yith-icon-calendar"></span>';
|
1380 |
break;
|
1381 |
default:
|
1382 |
break;
|
@@ -1400,9 +1403,13 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
1400 |
$tabs = array(
|
1401 |
'tab' => $info['parent'],
|
1402 |
'sub_tab' => $key,
|
|
|
1403 |
);
|
1404 |
} else {
|
1405 |
-
$tabs = array(
|
|
|
|
|
|
|
1406 |
}
|
1407 |
break;
|
1408 |
}
|
@@ -1429,9 +1436,13 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
1429 |
$tabs = array(
|
1430 |
'tab' => $info['parent'],
|
1431 |
'sub_tab' => $key,
|
|
|
1432 |
);
|
1433 |
} else {
|
1434 |
-
$tabs = array(
|
|
|
|
|
|
|
1435 |
}
|
1436 |
break;
|
1437 |
}
|
@@ -1478,17 +1489,45 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
1478 |
*/
|
1479 |
public function print_panel_tabs_in_wp_pages() {
|
1480 |
if ( self::$panel_tabs_in_wp_pages ) {
|
|
|
|
|
1481 |
wp_enqueue_style( 'yit-plugin-style' );
|
1482 |
wp_enqueue_script( 'yit-plugin-panel' );
|
1483 |
|
1484 |
$wrap_class = isset( $this->settings['class'] ) ? $this->settings['class'] : '';
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1488 |
echo '<div class="' . esc_attr( $wrap_class ) . '">';
|
|
|
1489 |
$this->add_plugin_banner( $this->settings['page'] );
|
1490 |
$this->print_tabs_nav( self::$panel_tabs_in_wp_pages );
|
1491 |
echo '</div>';
|
|
|
|
|
|
|
|
|
1492 |
}
|
1493 |
}
|
1494 |
|
@@ -1500,6 +1539,11 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
1500 |
*/
|
1501 |
public function print_panel_tabs_in_wp_pages_end() {
|
1502 |
if ( self::$panel_tabs_in_wp_pages ) {
|
|
|
|
|
|
|
|
|
|
|
1503 |
echo '</div><!-- /yith-plugin-fw-wp-page-wrapper -->';
|
1504 |
}
|
1505 |
}
|
178 |
'page' => $this->settings['page'],
|
179 |
'current_tab' => isset( $tabs['tab'] ) ? $tabs['tab'] : '',
|
180 |
'current_sub_tab' => isset( $tabs['sub_tab'] ) ? $tabs['sub_tab'] : '',
|
181 |
+
'options' => isset( $tabs['options'] ) ? $tabs['options'] : array(),
|
182 |
);
|
183 |
|
184 |
if ( ! $is_block_editor ) {
|
693 |
*/
|
694 |
public function get_tab_info_by_options( $tab_options ) {
|
695 |
$type = $this->get_tab_type_by_options( $tab_options );
|
|
|
696 |
$first = ! ! $tab_options && is_array( $tab_options ) ? current( $tab_options ) : array();
|
697 |
+
$info = $first;
|
698 |
+
|
699 |
+
$info['type'] = $type;
|
700 |
if ( 'post_type' === $type ) {
|
701 |
$info['post_type'] = isset( $first['post_type'] ) ? $first['post_type'] : '';
|
702 |
} elseif ( 'taxonomy' === $type ) {
|
1379 |
if ( 'admin.php' === $pagenow && $screen && strpos( $screen->id, $this->settings['page'] ) !== false ) {
|
1380 |
switch ( $field['type'] ) {
|
1381 |
case 'datepicker':
|
1382 |
+
echo '<span class="yith-icon yith-icon-calendar yith-icon--right-overlay"></span>';
|
1383 |
break;
|
1384 |
default:
|
1385 |
break;
|
1403 |
$tabs = array(
|
1404 |
'tab' => $info['parent'],
|
1405 |
'sub_tab' => $key,
|
1406 |
+
'options' => $info,
|
1407 |
);
|
1408 |
} else {
|
1409 |
+
$tabs = array(
|
1410 |
+
'tab' => $key,
|
1411 |
+
'options' => $info,
|
1412 |
+
);
|
1413 |
}
|
1414 |
break;
|
1415 |
}
|
1436 |
$tabs = array(
|
1437 |
'tab' => $info['parent'],
|
1438 |
'sub_tab' => $key,
|
1439 |
+
'options' => $info,
|
1440 |
);
|
1441 |
} else {
|
1442 |
+
$tabs = array(
|
1443 |
+
'tab' => $key,
|
1444 |
+
'options' => $info,
|
1445 |
+
);
|
1446 |
}
|
1447 |
break;
|
1448 |
}
|
1489 |
*/
|
1490 |
public function print_panel_tabs_in_wp_pages() {
|
1491 |
if ( self::$panel_tabs_in_wp_pages ) {
|
1492 |
+
global $pagenow;
|
1493 |
+
|
1494 |
wp_enqueue_style( 'yit-plugin-style' );
|
1495 |
wp_enqueue_script( 'yit-plugin-panel' );
|
1496 |
|
1497 |
$wrap_class = isset( $this->settings['class'] ) ? $this->settings['class'] : '';
|
1498 |
+
$options = isset( self::$panel_tabs_in_wp_pages['options'] ) ? self::$panel_tabs_in_wp_pages['options'] : array();
|
1499 |
+
|
1500 |
+
$options_to_classes = array( 'type', 'post_type', 'taxonomy' );
|
1501 |
+
$page_wrapper_classes = array(
|
1502 |
+
'yith-plugin-fw-wp-page-wrapper',
|
1503 |
+
isset( $options['wrapper-class'] ) ? $options['wrapper-class'] : '',
|
1504 |
+
);
|
1505 |
+
|
1506 |
+
if ( in_array( $pagenow, array( 'edit.php', 'edit-tags.php' ), true ) ) {
|
1507 |
+
$options_to_classes[] = 'wp-list-style';
|
1508 |
+
$page_wrapper_classes[] = 'yith-plugin-ui';
|
1509 |
+
}
|
1510 |
+
|
1511 |
+
foreach ( $options_to_classes as $key ) {
|
1512 |
+
if ( isset( $options[ $key ] ) ) {
|
1513 |
+
$option = $options[ $key ];
|
1514 |
+
$page_wrapper_classes[] = "yith-plugin-ui--{$option}-{$key}";
|
1515 |
+
}
|
1516 |
+
}
|
1517 |
+
|
1518 |
+
$page_wrapper_classes = implode( ' ', array_filter( $page_wrapper_classes ) );
|
1519 |
+
|
1520 |
+
echo '<div class="' . esc_attr( $page_wrapper_classes ) . '">';
|
1521 |
+
|
1522 |
echo '<div class="' . esc_attr( $wrap_class ) . '">';
|
1523 |
+
|
1524 |
$this->add_plugin_banner( $this->settings['page'] );
|
1525 |
$this->print_tabs_nav( self::$panel_tabs_in_wp_pages );
|
1526 |
echo '</div>';
|
1527 |
+
|
1528 |
+
if ( self::$panel_tabs_in_wp_pages['current_sub_tab'] ) {
|
1529 |
+
echo '<div class="yith-plugin-fw-wp-page__sub-tab-wrap">';
|
1530 |
+
}
|
1531 |
}
|
1532 |
}
|
1533 |
|
1539 |
*/
|
1540 |
public function print_panel_tabs_in_wp_pages_end() {
|
1541 |
if ( self::$panel_tabs_in_wp_pages ) {
|
1542 |
+
|
1543 |
+
if ( self::$panel_tabs_in_wp_pages['current_sub_tab'] ) {
|
1544 |
+
echo '</div><!-- /yith-plugin-fw-wp-page__sub-tab-wrap -->';
|
1545 |
+
}
|
1546 |
+
|
1547 |
echo '</div><!-- /yith-plugin-fw-wp-page-wrapper -->';
|
1548 |
}
|
1549 |
}
|
plugin-fw/includes/class-yith-post-type-admin.php
ADDED
@@ -0,0 +1,474 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Post Type Admin
|
4 |
+
*
|
5 |
+
* @class YITH_Post_Type_Admin
|
6 |
+
* @package YITH\PluginFramework\Classes
|
7 |
+
*/
|
8 |
+
|
9 |
+
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
10 |
+
|
11 |
+
if ( ! class_exists( 'YITH_Post_Type_Admin' ) ) {
|
12 |
+
/**
|
13 |
+
* YITH_Post_Type_Admin class.
|
14 |
+
*
|
15 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
16 |
+
*/
|
17 |
+
abstract class YITH_Post_Type_Admin {
|
18 |
+
|
19 |
+
/**
|
20 |
+
* The post type.
|
21 |
+
*
|
22 |
+
* @var string
|
23 |
+
*/
|
24 |
+
protected $post_type = '';
|
25 |
+
|
26 |
+
/**
|
27 |
+
* The object to be shown for each row.
|
28 |
+
*
|
29 |
+
* @var object|null
|
30 |
+
*/
|
31 |
+
protected $object = null;
|
32 |
+
|
33 |
+
/**
|
34 |
+
* The ID of the Post to be shown for each row.
|
35 |
+
*
|
36 |
+
* @var int|null
|
37 |
+
*/
|
38 |
+
protected $post_id = null;
|
39 |
+
|
40 |
+
/**
|
41 |
+
* The single instance of the class.
|
42 |
+
*
|
43 |
+
* @var YITH_Post_Type_Admin[]
|
44 |
+
*/
|
45 |
+
private static $instances = array();
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Singleton implementation.
|
49 |
+
*
|
50 |
+
* @return YITH_Post_Type_Admin
|
51 |
+
*/
|
52 |
+
public static function instance() {
|
53 |
+
$class = get_called_class();
|
54 |
+
|
55 |
+
return ! empty( self::$instances[ $class ] ) ? self::$instances[ $class ] : self::$instances[ $class ] = new $class();
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* YITH_Admin_Post_List_Table constructor.
|
60 |
+
*/
|
61 |
+
protected function __construct() {
|
62 |
+
if ( $this->post_type && $this->is_enabled() ) {
|
63 |
+
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
64 |
+
// use "admin_init" for AJAX calls, since in case of AJAX, "current_screen" is not fired.
|
65 |
+
add_action( 'admin_init', array( $this, 'init_wp_list_handlers' ) );
|
66 |
+
} else {
|
67 |
+
add_action( 'current_screen', array( $this, 'init_wp_list_handlers' ) );
|
68 |
+
}
|
69 |
+
|
70 |
+
add_action( 'edit_form_top', array( $this, 'print_back_to_wp_list_button' ) );
|
71 |
+
}
|
72 |
+
}
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Return true if it's enabled.
|
76 |
+
*
|
77 |
+
* @return bool
|
78 |
+
*/
|
79 |
+
protected function is_enabled() {
|
80 |
+
return is_admin();
|
81 |
+
}
|
82 |
+
|
83 |
+
/**
|
84 |
+
* Return true if you want to use the object when you render columns. False otherwise.
|
85 |
+
* This is useful if you have an object representing your Custom Post Type that handles the CRUD.
|
86 |
+
* Note: if you use the object, you should set it by overriding the YITH_Post_Type_Admin::prepare_row_data method.
|
87 |
+
*
|
88 |
+
* @return bool
|
89 |
+
*/
|
90 |
+
protected function use_object() {
|
91 |
+
return true;
|
92 |
+
}
|
93 |
+
|
94 |
+
/**
|
95 |
+
* Return true if the wp-list handlers should be loaded.
|
96 |
+
*
|
97 |
+
* @return bool
|
98 |
+
*/
|
99 |
+
protected function should_wp_list_handlers_be_loaded() {
|
100 |
+
$screen_id = false;
|
101 |
+
|
102 |
+
if ( function_exists( 'get_current_screen' ) ) {
|
103 |
+
$screen = get_current_screen();
|
104 |
+
$screen_id = isset( $screen, $screen->id ) ? $screen->id : '';
|
105 |
+
}
|
106 |
+
|
107 |
+
if ( ! empty( $_REQUEST['screen'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
108 |
+
$screen_id = sanitize_text_field( wp_unslash( $_REQUEST['screen'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
109 |
+
}
|
110 |
+
|
111 |
+
return ! ! $screen_id && ( 'edit-' . $this->post_type === $screen_id );
|
112 |
+
}
|
113 |
+
|
114 |
+
/**
|
115 |
+
* Initialize the WP List handlers.
|
116 |
+
*/
|
117 |
+
public function init_wp_list_handlers() {
|
118 |
+
if ( $this->should_wp_list_handlers_be_loaded() ) {
|
119 |
+
add_action( 'manage_posts_extra_tablenav', array( $this, 'maybe_render_blank_state' ) );
|
120 |
+
|
121 |
+
add_action( 'restrict_manage_posts', array( $this, 'maybe_render_filters' ) );
|
122 |
+
add_filter( 'request', array( $this, 'request_query' ) );
|
123 |
+
|
124 |
+
add_filter( 'list_table_primary_column', array( $this, 'list_table_primary_column' ), 10, 2 );
|
125 |
+
add_filter( 'post_row_actions', array( $this, 'row_actions' ), 100, 2 );
|
126 |
+
|
127 |
+
add_filter( 'default_hidden_columns', array( $this, 'default_hidden_columns' ), 10, 2 );
|
128 |
+
add_filter( 'manage_edit-' . $this->post_type . '_sortable_columns', array( $this, 'define_sortable_columns' ) );
|
129 |
+
add_filter( 'manage_' . $this->post_type . '_posts_columns', array( $this, 'define_columns' ) );
|
130 |
+
add_filter( 'bulk_actions-edit-' . $this->post_type, array( $this, 'define_bulk_actions' ) );
|
131 |
+
|
132 |
+
add_action( 'manage_' . $this->post_type . '_posts_custom_column', array( $this, 'render_columns' ), 10, 2 );
|
133 |
+
add_filter( 'handle_bulk_actions-edit-' . $this->post_type, array( $this, 'handle_bulk_actions' ), 10, 3 );
|
134 |
+
|
135 |
+
add_action( 'disable_months_dropdown', array( $this, 'disable_months_dropdown' ), 10, 2 );
|
136 |
+
}
|
137 |
+
}
|
138 |
+
|
139 |
+
/**
|
140 |
+
* --------------------------------------------------------------------------
|
141 |
+
* Getters and definers methods
|
142 |
+
* --------------------------------------------------------------------------
|
143 |
+
*
|
144 |
+
* Methods for getting data from the objects. Usually you need to override them in your class.
|
145 |
+
*/
|
146 |
+
|
147 |
+
/**
|
148 |
+
* Get actions to show in the list table as action-buttons
|
149 |
+
*
|
150 |
+
* @return array
|
151 |
+
*/
|
152 |
+
protected function get_item_actions() {
|
153 |
+
return array();
|
154 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Retrieve an array of parameters for blank state.
|
158 |
+
*
|
159 |
+
* @return array{
|
160 |
+
* @type string $icon The YITH icon. You can use this one (to use an YITH icon) or icon_class or icon_url.
|
161 |
+
* @type string $icon_class The icon class. You can use this one (to use a custom class for your icon) or icon or icon_url.
|
162 |
+
* @type string $icon_url The icon URL. You can use this one (to specify an icon URL) or icon_icon or icon_class.
|
163 |
+
* @type string $message The message to be shown.
|
164 |
+
* @type string $cta {
|
165 |
+
* The call-to-action button params.
|
166 |
+
* @type string $title The call-to-action button title.
|
167 |
+
* @type string $icon The call-to-action button icon.
|
168 |
+
* @type string $url The call-to-action button URL.
|
169 |
+
* @type string $class The call-to-action button class.
|
170 |
+
* }
|
171 |
+
* }
|
172 |
+
*/
|
173 |
+
protected function get_blank_state_params() {
|
174 |
+
return array();
|
175 |
+
}
|
176 |
+
|
177 |
+
/**
|
178 |
+
* Define primary column.
|
179 |
+
*
|
180 |
+
* @return string
|
181 |
+
*/
|
182 |
+
protected function get_primary_column() {
|
183 |
+
return '';
|
184 |
+
}
|
185 |
+
|
186 |
+
/**
|
187 |
+
* Define hidden columns.
|
188 |
+
*
|
189 |
+
* @return array
|
190 |
+
*/
|
191 |
+
protected function get_default_hidden_columns() {
|
192 |
+
return array();
|
193 |
+
}
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Define which columns are sortable.
|
197 |
+
*
|
198 |
+
* @param array $columns Existing columns.
|
199 |
+
*
|
200 |
+
* @return array
|
201 |
+
*/
|
202 |
+
public function define_sortable_columns( $columns ) {
|
203 |
+
return $columns;
|
204 |
+
}
|
205 |
+
|
206 |
+
/**
|
207 |
+
* Define which columns to show on this screen.
|
208 |
+
*
|
209 |
+
* @param array $columns Existing columns.
|
210 |
+
*
|
211 |
+
* @return array
|
212 |
+
*/
|
213 |
+
public function define_columns( $columns ) {
|
214 |
+
return $columns;
|
215 |
+
}
|
216 |
+
|
217 |
+
/**
|
218 |
+
* Define bulk actions.
|
219 |
+
*
|
220 |
+
* @param array $actions Existing actions.
|
221 |
+
*
|
222 |
+
* @return array
|
223 |
+
*/
|
224 |
+
public function define_bulk_actions( $actions ) {
|
225 |
+
return $actions;
|
226 |
+
}
|
227 |
+
|
228 |
+
/**
|
229 |
+
* Pre-fetch any data for the row each column has access to it, by loading $this->object.
|
230 |
+
*
|
231 |
+
* @param int $post_id Post ID being shown.
|
232 |
+
*/
|
233 |
+
protected function prepare_row_data( $post_id ) {
|
234 |
+
}
|
235 |
+
|
236 |
+
/**
|
237 |
+
* Render any custom filters and search inputs for the list table.
|
238 |
+
*/
|
239 |
+
protected function render_filters() {
|
240 |
+
}
|
241 |
+
|
242 |
+
/**
|
243 |
+
* Handle any custom filters.
|
244 |
+
*
|
245 |
+
* @param array $query_vars Query vars.
|
246 |
+
*
|
247 |
+
* @return array
|
248 |
+
*/
|
249 |
+
protected function query_filters( $query_vars ) {
|
250 |
+
return $query_vars;
|
251 |
+
}
|
252 |
+
|
253 |
+
/**
|
254 |
+
* Handle bulk actions.
|
255 |
+
*
|
256 |
+
* @param string $redirect_to URL to redirect to.
|
257 |
+
* @param string $action Action name.
|
258 |
+
* @param array $ids List of ids.
|
259 |
+
*
|
260 |
+
* @return string
|
261 |
+
*/
|
262 |
+
public function handle_bulk_actions( $redirect_to, $action, $ids ) {
|
263 |
+
return esc_url_raw( $redirect_to );
|
264 |
+
}
|
265 |
+
|
266 |
+
/**
|
267 |
+
* Has the months dropdown enabled?
|
268 |
+
*
|
269 |
+
* @return bool
|
270 |
+
*/
|
271 |
+
protected function has_months_dropdown_enabled() {
|
272 |
+
return false;
|
273 |
+
}
|
274 |
+
|
275 |
+
/**
|
276 |
+
* Return the text of the "back to WP List" button.
|
277 |
+
* Return empty string if you want to hide the button.
|
278 |
+
*
|
279 |
+
* @return string
|
280 |
+
*/
|
281 |
+
protected function get_back_to_wp_list_text() {
|
282 |
+
$post_type_object = get_post_type_object( $this->post_type );
|
283 |
+
$name = ! ! $post_type_object ? get_post_type_labels( $post_type_object )->name : '';
|
284 |
+
|
285 |
+
// translators: %s is the name of the post type (example Back to "Membership Plans").
|
286 |
+
return ! ! $name ? sprintf( __( 'Back to "%s"', 'yith-plugin-fw' ), $name ) : __( 'Back to the list', 'yith-plugin-fw' );
|
287 |
+
}
|
288 |
+
|
289 |
+
/**
|
290 |
+
* --------------------------------------------------------------------------
|
291 |
+
* Utils hook handlers
|
292 |
+
* --------------------------------------------------------------------------
|
293 |
+
*
|
294 |
+
* Methods for handling hooks.
|
295 |
+
*/
|
296 |
+
|
297 |
+
/**
|
298 |
+
* Adjust which columns are displayed by default.
|
299 |
+
*
|
300 |
+
* @param array $hidden Current hidden columns.
|
301 |
+
* @param object $screen Current screen.
|
302 |
+
*
|
303 |
+
* @return array
|
304 |
+
*/
|
305 |
+
public function default_hidden_columns( $hidden, $screen ) {
|
306 |
+
if ( isset( $screen->id ) && 'edit-' . $this->post_type === $screen->id ) {
|
307 |
+
$hidden = array_merge( $hidden, $this->get_default_hidden_columns() );
|
308 |
+
}
|
309 |
+
|
310 |
+
return $hidden;
|
311 |
+
}
|
312 |
+
|
313 |
+
/**
|
314 |
+
* Set list table primary column.
|
315 |
+
*
|
316 |
+
* @param string $default Default value.
|
317 |
+
* @param string $screen_id Current screen ID.
|
318 |
+
*
|
319 |
+
* @return string
|
320 |
+
*/
|
321 |
+
public function list_table_primary_column( $default, $screen_id ) {
|
322 |
+
if ( 'edit-' . $this->post_type === $screen_id && $this->get_primary_column() ) {
|
323 |
+
return $this->get_primary_column();
|
324 |
+
}
|
325 |
+
|
326 |
+
return $default;
|
327 |
+
}
|
328 |
+
|
329 |
+
/**
|
330 |
+
* Show blank slate.
|
331 |
+
*
|
332 |
+
* @param string $which String which table-nav is being shown.
|
333 |
+
*/
|
334 |
+
public function maybe_render_blank_state( $which ) {
|
335 |
+
global $post_type;
|
336 |
+
|
337 |
+
if ( $this->get_blank_state_params() && $post_type === $this->post_type && 'bottom' === $which ) {
|
338 |
+
$counts = (array) wp_count_posts( $post_type );
|
339 |
+
unset( $counts['auto-draft'] );
|
340 |
+
$count = array_sum( $counts );
|
341 |
+
|
342 |
+
if ( 0 < $count ) {
|
343 |
+
return;
|
344 |
+
}
|
345 |
+
|
346 |
+
$this->render_blank_state();
|
347 |
+
|
348 |
+
echo '<style type="text/css">#posts-filter .wp-list-table, #posts-filter .tablenav.top, .tablenav.bottom > *, .wrap .subsubsub { display: none; } #posts-filter .tablenav.bottom { height: auto; display: block } </style>';
|
349 |
+
}
|
350 |
+
}
|
351 |
+
|
352 |
+
/**
|
353 |
+
* Render blank state. Extend to add content.
|
354 |
+
*/
|
355 |
+
protected function render_blank_state() {
|
356 |
+
$component = $this->get_blank_state_params();
|
357 |
+
$component['type'] = 'list-table-blank-state';
|
358 |
+
|
359 |
+
yith_plugin_fw_get_component( $component, true );
|
360 |
+
}
|
361 |
+
|
362 |
+
/**
|
363 |
+
* Render individual columns.
|
364 |
+
*
|
365 |
+
* @param string $column Column ID to render.
|
366 |
+
* @param int $post_id Post ID being shown.
|
367 |
+
*/
|
368 |
+
public function render_columns( $column, $post_id ) {
|
369 |
+
if ( empty( $this->post_id ) || $this->post_id !== $post_id ) {
|
370 |
+
$this->post_id = $post_id;
|
371 |
+
$this->prepare_row_data( $post_id );
|
372 |
+
}
|
373 |
+
|
374 |
+
if ( $this->use_object() && ! $this->object ) {
|
375 |
+
return;
|
376 |
+
}
|
377 |
+
|
378 |
+
$render_method = 'render_' . str_replace( '-', '_', $column ) . '_column';
|
379 |
+
|
380 |
+
if ( is_callable( array( $this, $render_method ) ) ) {
|
381 |
+
$this->{$render_method}();
|
382 |
+
}
|
383 |
+
}
|
384 |
+
|
385 |
+
/**
|
386 |
+
* Set row actions: remove row actions, since we show actions through action-buttons.
|
387 |
+
*
|
388 |
+
* @param array $actions Array of actions.
|
389 |
+
* @param WP_Post $post Current post object.
|
390 |
+
*
|
391 |
+
* @return array
|
392 |
+
*/
|
393 |
+
public function row_actions( $actions, $post ) {
|
394 |
+
if ( $this->post_type === $post->post_type ) {
|
395 |
+
return array();
|
396 |
+
}
|
397 |
+
|
398 |
+
return $actions;
|
399 |
+
}
|
400 |
+
|
401 |
+
/**
|
402 |
+
* See if we should render search filters or not.
|
403 |
+
*/
|
404 |
+
public function maybe_render_filters() {
|
405 |
+
global $typenow;
|
406 |
+
|
407 |
+
if ( $this->post_type === $typenow ) {
|
408 |
+
$this->render_filters();
|
409 |
+
}
|
410 |
+
}
|
411 |
+
|
412 |
+
/**
|
413 |
+
* Handle any filters.
|
414 |
+
*
|
415 |
+
* @param array $query_vars Query vars.
|
416 |
+
*
|
417 |
+
* @return array
|
418 |
+
*/
|
419 |
+
public function request_query( $query_vars ) {
|
420 |
+
global $typenow;
|
421 |
+
|
422 |
+
if ( $this->post_type === $typenow ) {
|
423 |
+
return $this->query_filters( $query_vars );
|
424 |
+
}
|
425 |
+
|
426 |
+
return $query_vars;
|
427 |
+
}
|
428 |
+
|
429 |
+
/**
|
430 |
+
* Disable Months dropdown for Bookings
|
431 |
+
*
|
432 |
+
* @param bool $disable Set true to disable.
|
433 |
+
* @param string $post_type The post type.
|
434 |
+
*
|
435 |
+
* @return bool
|
436 |
+
*/
|
437 |
+
public function disable_months_dropdown( $disable, $post_type ) {
|
438 |
+
if ( $this->post_type === $post_type ) {
|
439 |
+
$disable = ! $this->has_months_dropdown_enabled();
|
440 |
+
}
|
441 |
+
|
442 |
+
return $disable;
|
443 |
+
}
|
444 |
+
|
445 |
+
/**
|
446 |
+
* Print the "Back to WP List" button in Edit Post pages
|
447 |
+
*/
|
448 |
+
public function print_back_to_wp_list_button() {
|
449 |
+
$screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
|
450 |
+
$screen_id = $screen ? $screen->id : false;
|
451 |
+
|
452 |
+
if ( $screen_id === $this->post_type ) {
|
453 |
+
$url = add_query_arg( array( 'post_type' => $this->post_type ), admin_url( 'edit.php' ) );
|
454 |
+
$text = $this->get_back_to_wp_list_text();
|
455 |
+
if ( $text ) {
|
456 |
+
?>
|
457 |
+
<div id='yith-plugin-fw__back-to-wp-list__wrapper' class='yith-plugin-fw__back-to-wp-list__wrapper'>
|
458 |
+
<a id='yith-plugin-fw__back-to-wp-list' class='yith-plugin-fw__back-to-wp-list' href='<?php echo esc_url( $url ); ?>'><?php echo esc_html( $text ); ?></a>
|
459 |
+
</div>
|
460 |
+
<script type="text/javascript">
|
461 |
+
( function () {
|
462 |
+
var wrap = document.querySelector( '.wrap' ),
|
463 |
+
backTo = document.querySelector( '#yith-plugin-fw__back-to-wp-list__wrapper' );
|
464 |
+
|
465 |
+
wrap.insertBefore( backTo, wrap.childNodes[ 0 ] );
|
466 |
+
} )();
|
467 |
+
</script>
|
468 |
+
<?php
|
469 |
+
}
|
470 |
+
}
|
471 |
+
}
|
472 |
+
|
473 |
+
}
|
474 |
+
}
|
plugin-fw/init.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 3.
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
-
* @version 3.
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 3.7.0
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
+
* @version 3.7.0
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
plugin-fw/languages/yith-plugin-fw-el.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-el.po
CHANGED
@@ -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"
|
@@ -13,27 +13,27 @@ msgstr ""
|
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
-
#: includes/class-yit-assets.php:
|
17 |
msgid "Clear"
|
18 |
msgstr "Καθαρισμός"
|
19 |
|
20 |
-
#: includes/class-yit-assets.php:
|
21 |
msgid "Clear color"
|
22 |
msgstr "Καθαρισμός χρώματος"
|
23 |
|
24 |
-
#: includes/class-yit-assets.php:
|
25 |
msgid "Default"
|
26 |
msgstr "Προεπιλεγμένο"
|
27 |
|
28 |
-
#: includes/class-yit-assets.php:
|
29 |
msgid "Select default color"
|
30 |
msgstr "Επιλογή προεπιλεγμένου χρώματος"
|
31 |
|
32 |
-
#: includes/class-yit-assets.php:
|
33 |
msgid "Select Color"
|
34 |
msgstr "Επιλογή Χρώματος"
|
35 |
|
36 |
-
#: includes/class-yit-assets.php:
|
37 |
msgid "Color value"
|
38 |
msgstr "Αξία χρώματος"
|
39 |
|
@@ -50,18 +50,17 @@ msgstr "Ρυθμίσεις Προσθέτου"
|
|
50 |
msgid "Settings"
|
51 |
msgstr "Ρυθμίσεις"
|
52 |
|
53 |
-
#: includes/class-yit-plugin-panel.php:
|
54 |
-
#: includes/class-yit-plugin-panel.php:
|
55 |
msgid "How to install premium version"
|
56 |
msgstr "Πώς να εγκαταστήσετε την προηγμένη έκδοση"
|
57 |
|
58 |
-
#: includes/class-yit-plugin-panel.php:
|
59 |
#: includes/class-yit-plugin-subpanel.php:132
|
60 |
-
#: templates/panel/woocommerce/woocommerce-form.php:28
|
61 |
msgid "Save Changes"
|
62 |
msgstr "Αποθήκευση Αλλαγών"
|
63 |
|
64 |
-
#: includes/class-yit-plugin-panel.php:
|
65 |
#: includes/class-yit-plugin-subpanel.php:136
|
66 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
67 |
msgid ""
|
@@ -70,74 +69,73 @@ msgstr ""
|
|
70 |
"Αν συνεχίσετε με αυτή την ενέργεια θα επαναφέρετε όλες τις επιλογές στη "
|
71 |
"σελίδα."
|
72 |
|
73 |
-
#: includes/class-yit-plugin-panel.php:
|
74 |
#: includes/class-yit-plugin-subpanel.php:136
|
75 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
76 |
msgid "Are you sure?"
|
77 |
msgstr "Είστε σίγουρος;"
|
78 |
|
79 |
-
#: includes/class-yit-plugin-panel.php:
|
80 |
#: includes/class-yit-plugin-subpanel.php:139
|
81 |
msgid "Reset to default"
|
82 |
msgstr "Επαναφορά σε προεπιλεγμένο"
|
83 |
|
84 |
-
#: includes/class-yit-plugin-panel.php:
|
85 |
msgid ""
|
86 |
"The element you have entered already exists. Please, enter another name."
|
87 |
msgstr "Το στοιχείο που εισάγατε υπάρχει ήδη. Παρακαλώ, εισάγετε άλλο όνομα."
|
88 |
|
89 |
-
#: includes/class-yit-plugin-panel.php:
|
90 |
msgid "Settings saved"
|
91 |
msgstr "Ρυθμίσεις αποθηκεύτηκαν"
|
92 |
|
93 |
-
#: includes/class-yit-plugin-panel.php:
|
94 |
msgid "Settings reset"
|
95 |
msgstr "Επαναφορά ρυθμίσεων"
|
96 |
|
97 |
-
#: includes/class-yit-plugin-panel.php:
|
98 |
msgid "Element deleted correctly."
|
99 |
msgstr "Το στοιχείο διαγράφηκε επιτυχώς."
|
100 |
|
101 |
-
#: includes/class-yit-plugin-panel.php:
|
102 |
-
#: includes/class-yit-plugin-panel.php:
|
103 |
msgid "Element updated correctly."
|
104 |
msgstr "Το στοιχείο αναβαθμίστηκε επιτυχώς."
|
105 |
|
106 |
-
#: includes/class-yit-plugin-panel.php:
|
107 |
msgid "Database imported correctly."
|
108 |
msgstr "Επιτυχής εισαγωγή βάσης δεδομένων."
|
109 |
|
110 |
-
#: includes/class-yit-plugin-panel.php:
|
111 |
msgid "An error has occurred during import. Please try again."
|
112 |
msgstr "Παρουσιάστηκε σφάλμα κατά την εισαγωγή. Παρακαλώ προσπαθήστε ξανά."
|
113 |
|
114 |
-
#: includes/class-yit-plugin-panel.php:
|
115 |
msgid "The added file is not valid."
|
116 |
msgstr "Το προστιθέμενο αρχείο δεν είναι έγκυρο."
|
117 |
|
118 |
-
#: includes/class-yit-plugin-panel.php:
|
119 |
msgid "Sorry, import is disabled."
|
120 |
msgstr "Συγνώμη, η εισαγωγή είναι απενεργοποιημένη."
|
121 |
|
122 |
-
#: includes/class-yit-plugin-panel.php:
|
123 |
msgid "Sorting successful."
|
124 |
msgstr "Διαλογή επιτυχής."
|
125 |
|
126 |
-
#: includes/class-yit-plugin-panel.php:
|
127 |
msgid "We need your support"
|
128 |
msgstr "Χρειαζόμαστε την υποστήριξή σας"
|
129 |
|
130 |
-
#: includes/class-yit-plugin-panel.php:
|
131 |
msgid "to keep updating and improving the plugin. Please,"
|
132 |
msgstr ""
|
133 |
"για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
|
134 |
|
135 |
-
#: includes/class-yit-plugin-panel.php:
|
136 |
-
#, fuzzy
|
137 |
msgid "help us by leaving a good review"
|
138 |
-
msgstr "
|
139 |
|
140 |
-
#: includes/class-yit-plugin-panel.php:
|
141 |
msgid ":) Thanks!"
|
142 |
msgstr ":) Ευχαριστώ!"
|
143 |
|
@@ -189,6 +187,16 @@ msgstr ""
|
|
189 |
"Παρουσιάστηκε σφάλμα, που πιθανότατα σημαίνει ότι έπεσε το τροφοδοτικό. "
|
190 |
"Προσπαθήστε ξανά αργότερα."
|
191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
#: includes/class-yith-system-status.php:110
|
193 |
msgid "WordPress Version"
|
194 |
msgstr "Έκδοση WordPress"
|
@@ -487,7 +495,16 @@ msgstr "Ανέβασμα"
|
|
487 |
msgid "Reset"
|
488 |
msgstr "Επαναφορά"
|
489 |
|
490 |
-
#: templates/panel/woocommerce/woocommerce-form.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
491 |
msgid "Reset Defaults"
|
492 |
msgstr "Επαναφορά Προεπιλεγμένων"
|
493 |
|
@@ -570,7 +587,34 @@ msgstr "Cache εξωτερικού αντικειμένου"
|
|
570 |
msgid "Plugins Requirements"
|
571 |
msgstr "Προϋποθέσεις Πρόσθετων"
|
572 |
|
573 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
574 |
msgid "License"
|
575 |
msgstr "Άδεια χρήσης προϊόντος"
|
576 |
|
@@ -589,6 +633,16 @@ msgctxt "[gutenberg]: Category Name"
|
|
589 |
msgid "YITH"
|
590 |
msgstr "YITH"
|
591 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
592 |
#: includes/class-yith-dashboard.php:96
|
593 |
msgctxt "Plugin FW"
|
594 |
msgid "View Changelog"
|
@@ -693,27 +747,92 @@ msgctxt "YES/NO button: use MAX 4 characters!"
|
|
693 |
msgid "NO"
|
694 |
msgstr "ΟΧΙ"
|
695 |
|
696 |
-
#: yit-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
697 |
msgctxt "Plugin Row Meta"
|
698 |
msgid "Live Demo"
|
699 |
msgstr "Live Demo"
|
700 |
|
701 |
-
#: yit-plugin.php:
|
702 |
msgctxt "Plugin Row Meta"
|
703 |
msgid "Documentation"
|
704 |
msgstr "Εγχειρίδιο χρήσης"
|
705 |
|
706 |
-
#: yit-plugin.php:
|
707 |
msgctxt "Plugin Row Meta"
|
708 |
msgid "Support"
|
709 |
msgstr "Υποστήριξη"
|
710 |
|
711 |
-
#: yit-plugin.php:
|
712 |
msgctxt "Plugin Row Meta"
|
713 |
msgid "Premium version"
|
714 |
msgstr "Premium έκδοση"
|
715 |
|
716 |
-
#: yit-plugin.php:
|
717 |
msgctxt "Action links"
|
718 |
msgid "Settings"
|
719 |
msgstr "Ρυθμίσεις"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-05-17 13:16:23+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"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
+
#: includes/class-yit-assets.php:143
|
17 |
msgid "Clear"
|
18 |
msgstr "Καθαρισμός"
|
19 |
|
20 |
+
#: includes/class-yit-assets.php:144
|
21 |
msgid "Clear color"
|
22 |
msgstr "Καθαρισμός χρώματος"
|
23 |
|
24 |
+
#: includes/class-yit-assets.php:145
|
25 |
msgid "Default"
|
26 |
msgstr "Προεπιλεγμένο"
|
27 |
|
28 |
+
#: includes/class-yit-assets.php:146
|
29 |
msgid "Select default color"
|
30 |
msgstr "Επιλογή προεπιλεγμένου χρώματος"
|
31 |
|
32 |
+
#: includes/class-yit-assets.php:147
|
33 |
msgid "Select Color"
|
34 |
msgstr "Επιλογή Χρώματος"
|
35 |
|
36 |
+
#: includes/class-yit-assets.php:148
|
37 |
msgid "Color value"
|
38 |
msgstr "Αξία χρώματος"
|
39 |
|
50 |
msgid "Settings"
|
51 |
msgstr "Ρυθμίσεις"
|
52 |
|
53 |
+
#: includes/class-yit-plugin-panel.php:451
|
54 |
+
#: includes/class-yit-plugin-panel.php:454
|
55 |
msgid "How to install premium version"
|
56 |
msgstr "Πώς να εγκαταστήσετε την προηγμένη έκδοση"
|
57 |
|
58 |
+
#: includes/class-yit-plugin-panel.php:620
|
59 |
#: includes/class-yit-plugin-subpanel.php:132
|
|
|
60 |
msgid "Save Changes"
|
61 |
msgstr "Αποθήκευση Αλλαγών"
|
62 |
|
63 |
+
#: includes/class-yit-plugin-panel.php:625
|
64 |
#: includes/class-yit-plugin-subpanel.php:136
|
65 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
66 |
msgid ""
|
69 |
"Αν συνεχίσετε με αυτή την ενέργεια θα επαναφέρετε όλες τις επιλογές στη "
|
70 |
"σελίδα."
|
71 |
|
72 |
+
#: includes/class-yit-plugin-panel.php:625
|
73 |
#: includes/class-yit-plugin-subpanel.php:136
|
74 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
75 |
msgid "Are you sure?"
|
76 |
msgstr "Είστε σίγουρος;"
|
77 |
|
78 |
+
#: includes/class-yit-plugin-panel.php:629
|
79 |
#: includes/class-yit-plugin-subpanel.php:139
|
80 |
msgid "Reset to default"
|
81 |
msgstr "Επαναφορά σε προεπιλεγμένο"
|
82 |
|
83 |
+
#: includes/class-yit-plugin-panel.php:868
|
84 |
msgid ""
|
85 |
"The element you have entered already exists. Please, enter another name."
|
86 |
msgstr "Το στοιχείο που εισάγατε υπάρχει ήδη. Παρακαλώ, εισάγετε άλλο όνομα."
|
87 |
|
88 |
+
#: includes/class-yit-plugin-panel.php:869
|
89 |
msgid "Settings saved"
|
90 |
msgstr "Ρυθμίσεις αποθηκεύτηκαν"
|
91 |
|
92 |
+
#: includes/class-yit-plugin-panel.php:870
|
93 |
msgid "Settings reset"
|
94 |
msgstr "Επαναφορά ρυθμίσεων"
|
95 |
|
96 |
+
#: includes/class-yit-plugin-panel.php:871
|
97 |
msgid "Element deleted correctly."
|
98 |
msgstr "Το στοιχείο διαγράφηκε επιτυχώς."
|
99 |
|
100 |
+
#: includes/class-yit-plugin-panel.php:872
|
101 |
+
#: includes/class-yit-plugin-panel.php:873
|
102 |
msgid "Element updated correctly."
|
103 |
msgstr "Το στοιχείο αναβαθμίστηκε επιτυχώς."
|
104 |
|
105 |
+
#: includes/class-yit-plugin-panel.php:874
|
106 |
msgid "Database imported correctly."
|
107 |
msgstr "Επιτυχής εισαγωγή βάσης δεδομένων."
|
108 |
|
109 |
+
#: includes/class-yit-plugin-panel.php:875
|
110 |
msgid "An error has occurred during import. Please try again."
|
111 |
msgstr "Παρουσιάστηκε σφάλμα κατά την εισαγωγή. Παρακαλώ προσπαθήστε ξανά."
|
112 |
|
113 |
+
#: includes/class-yit-plugin-panel.php:876
|
114 |
msgid "The added file is not valid."
|
115 |
msgstr "Το προστιθέμενο αρχείο δεν είναι έγκυρο."
|
116 |
|
117 |
+
#: includes/class-yit-plugin-panel.php:877
|
118 |
msgid "Sorry, import is disabled."
|
119 |
msgstr "Συγνώμη, η εισαγωγή είναι απενεργοποιημένη."
|
120 |
|
121 |
+
#: includes/class-yit-plugin-panel.php:878
|
122 |
msgid "Sorting successful."
|
123 |
msgstr "Διαλογή επιτυχής."
|
124 |
|
125 |
+
#: includes/class-yit-plugin-panel.php:1346
|
126 |
msgid "We need your support"
|
127 |
msgstr "Χρειαζόμαστε την υποστήριξή σας"
|
128 |
|
129 |
+
#: includes/class-yit-plugin-panel.php:1347
|
130 |
msgid "to keep updating and improving the plugin. Please,"
|
131 |
msgstr ""
|
132 |
"για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
|
133 |
|
134 |
+
#: includes/class-yit-plugin-panel.php:1349
|
|
|
135 |
msgid "help us by leaving a good review"
|
136 |
+
msgstr ""
|
137 |
|
138 |
+
#: includes/class-yit-plugin-panel.php:1350
|
139 |
msgid ":) Thanks!"
|
140 |
msgstr ":) Ευχαριστώ!"
|
141 |
|
187 |
"Παρουσιάστηκε σφάλμα, που πιθανότατα σημαίνει ότι έπεσε το τροφοδοτικό. "
|
188 |
"Προσπαθήστε ξανά αργότερα."
|
189 |
|
190 |
+
#. translators: %s is the name of the post type (example Back to "Membership
|
191 |
+
#. Plans").
|
192 |
+
#: includes/class-yith-post-type-admin.php:286
|
193 |
+
msgid "Back to \"%s\""
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#: includes/class-yith-post-type-admin.php:286
|
197 |
+
msgid "Back to the list"
|
198 |
+
msgstr ""
|
199 |
+
|
200 |
#: includes/class-yith-system-status.php:110
|
201 |
msgid "WordPress Version"
|
202 |
msgstr "Έκδοση WordPress"
|
495 |
msgid "Reset"
|
496 |
msgstr "Επαναφορά"
|
497 |
|
498 |
+
#: templates/panel/woocommerce/woocommerce-form.php:28
|
499 |
+
#: templates/panel/woocommerce/woocommerce-form.php:32
|
500 |
+
msgid "Save Options"
|
501 |
+
msgstr ""
|
502 |
+
|
503 |
+
#: templates/panel/woocommerce/woocommerce-form.php:32
|
504 |
+
msgid "Options Saved"
|
505 |
+
msgstr ""
|
506 |
+
|
507 |
+
#: templates/panel/woocommerce/woocommerce-form.php:38
|
508 |
msgid "Reset Defaults"
|
509 |
msgstr "Επαναφορά Προεπιλεγμένων"
|
510 |
|
587 |
msgid "Plugins Requirements"
|
588 |
msgstr "Προϋποθέσεις Πρόσθετων"
|
589 |
|
590 |
+
#. translators: %s is the title of the post object.
|
591 |
+
#: yit-functions.php:1823
|
592 |
+
msgid "Are you sure you want to move \"%s\" to trash?"
|
593 |
+
msgstr ""
|
594 |
+
|
595 |
+
#. translators: %s is the title of the post object.
|
596 |
+
#: yit-functions.php:1825 yit-functions.php:1983
|
597 |
+
msgid "Are you sure you want to delete \"%s\"?"
|
598 |
+
msgstr ""
|
599 |
+
|
600 |
+
#: yit-functions.php:1825 yit-functions.php:1983
|
601 |
+
msgid ""
|
602 |
+
"This action cannot be undone and you will be not able to recover this data."
|
603 |
+
msgstr ""
|
604 |
+
|
605 |
+
#: yit-functions.php:1891
|
606 |
+
msgid "Confirm trash"
|
607 |
+
msgstr ""
|
608 |
+
|
609 |
+
#: yit-functions.php:1908 yit-functions.php:2035
|
610 |
+
msgid "Confirm delete"
|
611 |
+
msgstr ""
|
612 |
+
|
613 |
+
#: yit-functions.php:1921 yit-functions.php:1929 yit-functions.php:2046
|
614 |
+
msgid "Further actions"
|
615 |
+
msgstr ""
|
616 |
+
|
617 |
+
#: yit-plugin.php:203
|
618 |
msgid "License"
|
619 |
msgstr "Άδεια χρήσης προϊόντος"
|
620 |
|
633 |
msgid "YITH"
|
634 |
msgstr "YITH"
|
635 |
|
636 |
+
#: includes/class-yit-assets.php:131
|
637 |
+
msgctxt "Button text"
|
638 |
+
msgid "Confirm"
|
639 |
+
msgstr ""
|
640 |
+
|
641 |
+
#: includes/class-yit-assets.php:132
|
642 |
+
msgctxt "Button text"
|
643 |
+
msgid "Cancel"
|
644 |
+
msgstr ""
|
645 |
+
|
646 |
#: includes/class-yith-dashboard.php:96
|
647 |
msgctxt "Plugin FW"
|
648 |
msgid "View Changelog"
|
747 |
msgid "NO"
|
748 |
msgstr "ΟΧΙ"
|
749 |
|
750 |
+
#: yit-functions.php:1837
|
751 |
+
msgctxt "Post action"
|
752 |
+
msgid "Preview"
|
753 |
+
msgstr ""
|
754 |
+
|
755 |
+
#: yit-functions.php:1846
|
756 |
+
msgctxt "Post action"
|
757 |
+
msgid "View"
|
758 |
+
msgstr ""
|
759 |
+
|
760 |
+
#: yit-functions.php:1857
|
761 |
+
msgctxt "Post action"
|
762 |
+
msgid "Edit"
|
763 |
+
msgstr ""
|
764 |
+
|
765 |
+
#: yit-functions.php:1865
|
766 |
+
msgctxt "Post action"
|
767 |
+
msgid "Duplicate"
|
768 |
+
msgstr ""
|
769 |
+
|
770 |
+
#: yit-functions.php:1877
|
771 |
+
msgctxt "Post action"
|
772 |
+
msgid "Restore"
|
773 |
+
msgstr ""
|
774 |
+
|
775 |
+
#: yit-functions.php:1885
|
776 |
+
msgctxt "Post action"
|
777 |
+
msgid "Trash"
|
778 |
+
msgstr ""
|
779 |
+
|
780 |
+
#: yit-functions.php:1901
|
781 |
+
msgctxt "Post action"
|
782 |
+
msgid "Delete Permanently"
|
783 |
+
msgstr ""
|
784 |
+
|
785 |
+
#: yit-functions.php:1893
|
786 |
+
msgctxt "Trash confirmation action"
|
787 |
+
msgid "Yes, trash"
|
788 |
+
msgstr ""
|
789 |
+
|
790 |
+
#: yit-functions.php:1910 yit-functions.php:2037
|
791 |
+
msgctxt "Delete confirmation action"
|
792 |
+
msgid "Yes, delete"
|
793 |
+
msgstr ""
|
794 |
+
|
795 |
+
#: yit-functions.php:1997
|
796 |
+
msgctxt "Term action"
|
797 |
+
msgid "View"
|
798 |
+
msgstr ""
|
799 |
+
|
800 |
+
#: yit-functions.php:2007
|
801 |
+
msgctxt "Term action"
|
802 |
+
msgid "Edit"
|
803 |
+
msgstr ""
|
804 |
+
|
805 |
+
#: yit-functions.php:2015
|
806 |
+
msgctxt "Term action"
|
807 |
+
msgid "Duplicate"
|
808 |
+
msgstr ""
|
809 |
+
|
810 |
+
#: yit-functions.php:2028
|
811 |
+
msgctxt "Term action"
|
812 |
+
msgid "Delete"
|
813 |
+
msgstr ""
|
814 |
+
|
815 |
+
#: yit-plugin.php:84
|
816 |
msgctxt "Plugin Row Meta"
|
817 |
msgid "Live Demo"
|
818 |
msgstr "Live Demo"
|
819 |
|
820 |
+
#: yit-plugin.php:88
|
821 |
msgctxt "Plugin Row Meta"
|
822 |
msgid "Documentation"
|
823 |
msgstr "Εγχειρίδιο χρήσης"
|
824 |
|
825 |
+
#: yit-plugin.php:92
|
826 |
msgctxt "Plugin Row Meta"
|
827 |
msgid "Support"
|
828 |
msgstr "Υποστήριξη"
|
829 |
|
830 |
+
#: yit-plugin.php:96
|
831 |
msgctxt "Plugin Row Meta"
|
832 |
msgid "Premium version"
|
833 |
msgstr "Premium έκδοση"
|
834 |
|
835 |
+
#: yit-plugin.php:199
|
836 |
msgctxt "Action links"
|
837 |
msgid "Settings"
|
838 |
msgstr "Ρυθμίσεις"
|
plugin-fw/languages/yith-plugin-fw-es_ES.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-es_ES.po
CHANGED
@@ -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"
|
@@ -13,27 +13,27 @@ msgstr ""
|
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
-
#: includes/class-yit-assets.php:
|
17 |
msgid "Clear"
|
18 |
msgstr "Borrar"
|
19 |
|
20 |
-
#: includes/class-yit-assets.php:
|
21 |
msgid "Clear color"
|
22 |
msgstr "Borrar color"
|
23 |
|
24 |
-
#: includes/class-yit-assets.php:
|
25 |
msgid "Default"
|
26 |
msgstr "Predeterminado"
|
27 |
|
28 |
-
#: includes/class-yit-assets.php:
|
29 |
msgid "Select default color"
|
30 |
msgstr "Seleccionar color predeterminado"
|
31 |
|
32 |
-
#: includes/class-yit-assets.php:
|
33 |
msgid "Select Color"
|
34 |
msgstr "Seleccionar color"
|
35 |
|
36 |
-
#: includes/class-yit-assets.php:
|
37 |
msgid "Color value"
|
38 |
msgstr "Valor del color"
|
39 |
|
@@ -49,18 +49,17 @@ msgstr "Ajustes del plugin"
|
|
49 |
msgid "Settings"
|
50 |
msgstr "Ajustes"
|
51 |
|
52 |
-
#: includes/class-yit-plugin-panel.php:
|
53 |
-
#: includes/class-yit-plugin-panel.php:
|
54 |
msgid "How to install premium version"
|
55 |
msgstr "Cómo instalar la versión premium"
|
56 |
|
57 |
-
#: includes/class-yit-plugin-panel.php:
|
58 |
#: includes/class-yit-plugin-subpanel.php:132
|
59 |
-
#: templates/panel/woocommerce/woocommerce-form.php:28
|
60 |
msgid "Save Changes"
|
61 |
msgstr "Guardar cambios"
|
62 |
|
63 |
-
#: includes/class-yit-plugin-panel.php:
|
64 |
#: includes/class-yit-plugin-subpanel.php:136
|
65 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
66 |
msgid ""
|
@@ -69,75 +68,74 @@ msgstr ""
|
|
69 |
"Si continúas con esta acción, restablecerás todas las opciones en esta "
|
70 |
"página."
|
71 |
|
72 |
-
#: includes/class-yit-plugin-panel.php:
|
73 |
#: includes/class-yit-plugin-subpanel.php:136
|
74 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
75 |
msgid "Are you sure?"
|
76 |
msgstr "¿Estás seguro?"
|
77 |
|
78 |
-
#: includes/class-yit-plugin-panel.php:
|
79 |
#: includes/class-yit-plugin-subpanel.php:139
|
80 |
msgid "Reset to default"
|
81 |
msgstr "Restablecer valores predeterminados"
|
82 |
|
83 |
-
#: includes/class-yit-plugin-panel.php:
|
84 |
msgid ""
|
85 |
"The element you have entered already exists. Please, enter another name."
|
86 |
msgstr ""
|
87 |
"El elemento que has introducido ya existe. Por favor, introduce otro nombre."
|
88 |
|
89 |
-
#: includes/class-yit-plugin-panel.php:
|
90 |
msgid "Settings saved"
|
91 |
msgstr "Ajustes guardados"
|
92 |
|
93 |
-
#: includes/class-yit-plugin-panel.php:
|
94 |
msgid "Settings reset"
|
95 |
msgstr "Restablecer ajustes"
|
96 |
|
97 |
-
#: includes/class-yit-plugin-panel.php:
|
98 |
msgid "Element deleted correctly."
|
99 |
msgstr "Elemento eliminado correctamente."
|
100 |
|
101 |
-
#: includes/class-yit-plugin-panel.php:
|
102 |
-
#: includes/class-yit-plugin-panel.php:
|
103 |
msgid "Element updated correctly."
|
104 |
msgstr "Elemento actualizado correctamente."
|
105 |
|
106 |
-
#: includes/class-yit-plugin-panel.php:
|
107 |
msgid "Database imported correctly."
|
108 |
msgstr "Base de datos importada correctamente."
|
109 |
|
110 |
-
#: includes/class-yit-plugin-panel.php:
|
111 |
msgid "An error has occurred during import. Please try again."
|
112 |
msgstr ""
|
113 |
"Ha ocurrido un error durante la importación. Por favor, inténtalo de nuevo."
|
114 |
|
115 |
-
#: includes/class-yit-plugin-panel.php:
|
116 |
msgid "The added file is not valid."
|
117 |
msgstr "El archivo añadido no es válido."
|
118 |
|
119 |
-
#: includes/class-yit-plugin-panel.php:
|
120 |
msgid "Sorry, import is disabled."
|
121 |
msgstr "Lo siento, la importación está desactivada."
|
122 |
|
123 |
-
#: includes/class-yit-plugin-panel.php:
|
124 |
msgid "Sorting successful."
|
125 |
msgstr "Clasificación realizada con éxito"
|
126 |
|
127 |
-
#: includes/class-yit-plugin-panel.php:
|
128 |
msgid "We need your support"
|
129 |
msgstr "Necesitamos tu apoyo"
|
130 |
|
131 |
-
#: includes/class-yit-plugin-panel.php:
|
132 |
msgid "to keep updating and improving the plugin. Please,"
|
133 |
msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor,"
|
134 |
|
135 |
-
#: includes/class-yit-plugin-panel.php:
|
136 |
-
#, fuzzy
|
137 |
msgid "help us by leaving a good review"
|
138 |
-
msgstr "ayúdanos
|
139 |
|
140 |
-
#: includes/class-yit-plugin-panel.php:
|
141 |
msgid ":) Thanks!"
|
142 |
msgstr ":) ¡Gracias!"
|
143 |
|
@@ -198,6 +196,16 @@ msgstr ""
|
|
198 |
"Ha ocurrido un error, lo que puede que signifique que el feed ha caído. "
|
199 |
"Inténtalo de nuevo más tarde."
|
200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
#: includes/class-yith-system-status.php:110
|
202 |
msgid "WordPress Version"
|
203 |
msgstr "Versión de WordPress"
|
@@ -494,7 +502,16 @@ msgstr "Subir"
|
|
494 |
msgid "Reset"
|
495 |
msgstr "Restablecer"
|
496 |
|
497 |
-
#: templates/panel/woocommerce/woocommerce-form.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
msgid "Reset Defaults"
|
499 |
msgstr "Restablecer valores predeterminados"
|
500 |
|
@@ -576,7 +593,34 @@ msgstr "Caché objeto externo"
|
|
576 |
msgid "Plugins Requirements"
|
577 |
msgstr "Requerimientos de los plugins"
|
578 |
|
579 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
580 |
msgid "License"
|
581 |
msgstr "Licencia"
|
582 |
|
@@ -595,6 +639,16 @@ msgctxt "[gutenberg]: Category Name"
|
|
595 |
msgid "YITH"
|
596 |
msgstr "YITH"
|
597 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
#: includes/class-yith-dashboard.php:96
|
599 |
msgctxt "Plugin FW"
|
600 |
msgid "View Changelog"
|
@@ -697,27 +751,92 @@ msgctxt "YES/NO button: use MAX 4 characters!"
|
|
697 |
msgid "NO"
|
698 |
msgstr "NO"
|
699 |
|
700 |
-
#: yit-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
701 |
msgctxt "Plugin Row Meta"
|
702 |
msgid "Live Demo"
|
703 |
msgstr "Demostración en vivo"
|
704 |
|
705 |
-
#: yit-plugin.php:
|
706 |
msgctxt "Plugin Row Meta"
|
707 |
msgid "Documentation"
|
708 |
msgstr "Documentación"
|
709 |
|
710 |
-
#: yit-plugin.php:
|
711 |
msgctxt "Plugin Row Meta"
|
712 |
msgid "Support"
|
713 |
msgstr "Soporte"
|
714 |
|
715 |
-
#: yit-plugin.php:
|
716 |
msgctxt "Plugin Row Meta"
|
717 |
msgid "Premium version"
|
718 |
msgstr "Versión premium"
|
719 |
|
720 |
-
#: yit-plugin.php:
|
721 |
msgctxt "Action links"
|
722 |
msgid "Settings"
|
723 |
msgstr "Ajustes"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-05-17 13:16:23+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-05-17 07:56:00+0000\n"
|
9 |
"Language: es\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
+
#: includes/class-yit-assets.php:143
|
17 |
msgid "Clear"
|
18 |
msgstr "Borrar"
|
19 |
|
20 |
+
#: includes/class-yit-assets.php:144
|
21 |
msgid "Clear color"
|
22 |
msgstr "Borrar color"
|
23 |
|
24 |
+
#: includes/class-yit-assets.php:145
|
25 |
msgid "Default"
|
26 |
msgstr "Predeterminado"
|
27 |
|
28 |
+
#: includes/class-yit-assets.php:146
|
29 |
msgid "Select default color"
|
30 |
msgstr "Seleccionar color predeterminado"
|
31 |
|
32 |
+
#: includes/class-yit-assets.php:147
|
33 |
msgid "Select Color"
|
34 |
msgstr "Seleccionar color"
|
35 |
|
36 |
+
#: includes/class-yit-assets.php:148
|
37 |
msgid "Color value"
|
38 |
msgstr "Valor del color"
|
39 |
|
49 |
msgid "Settings"
|
50 |
msgstr "Ajustes"
|
51 |
|
52 |
+
#: includes/class-yit-plugin-panel.php:451
|
53 |
+
#: includes/class-yit-plugin-panel.php:454
|
54 |
msgid "How to install premium version"
|
55 |
msgstr "Cómo instalar la versión premium"
|
56 |
|
57 |
+
#: includes/class-yit-plugin-panel.php:620
|
58 |
#: includes/class-yit-plugin-subpanel.php:132
|
|
|
59 |
msgid "Save Changes"
|
60 |
msgstr "Guardar cambios"
|
61 |
|
62 |
+
#: includes/class-yit-plugin-panel.php:625
|
63 |
#: includes/class-yit-plugin-subpanel.php:136
|
64 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
65 |
msgid ""
|
68 |
"Si continúas con esta acción, restablecerás todas las opciones en esta "
|
69 |
"página."
|
70 |
|
71 |
+
#: includes/class-yit-plugin-panel.php:625
|
72 |
#: includes/class-yit-plugin-subpanel.php:136
|
73 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
74 |
msgid "Are you sure?"
|
75 |
msgstr "¿Estás seguro?"
|
76 |
|
77 |
+
#: includes/class-yit-plugin-panel.php:629
|
78 |
#: includes/class-yit-plugin-subpanel.php:139
|
79 |
msgid "Reset to default"
|
80 |
msgstr "Restablecer valores predeterminados"
|
81 |
|
82 |
+
#: includes/class-yit-plugin-panel.php:868
|
83 |
msgid ""
|
84 |
"The element you have entered already exists. Please, enter another name."
|
85 |
msgstr ""
|
86 |
"El elemento que has introducido ya existe. Por favor, introduce otro nombre."
|
87 |
|
88 |
+
#: includes/class-yit-plugin-panel.php:869
|
89 |
msgid "Settings saved"
|
90 |
msgstr "Ajustes guardados"
|
91 |
|
92 |
+
#: includes/class-yit-plugin-panel.php:870
|
93 |
msgid "Settings reset"
|
94 |
msgstr "Restablecer ajustes"
|
95 |
|
96 |
+
#: includes/class-yit-plugin-panel.php:871
|
97 |
msgid "Element deleted correctly."
|
98 |
msgstr "Elemento eliminado correctamente."
|
99 |
|
100 |
+
#: includes/class-yit-plugin-panel.php:872
|
101 |
+
#: includes/class-yit-plugin-panel.php:873
|
102 |
msgid "Element updated correctly."
|
103 |
msgstr "Elemento actualizado correctamente."
|
104 |
|
105 |
+
#: includes/class-yit-plugin-panel.php:874
|
106 |
msgid "Database imported correctly."
|
107 |
msgstr "Base de datos importada correctamente."
|
108 |
|
109 |
+
#: includes/class-yit-plugin-panel.php:875
|
110 |
msgid "An error has occurred during import. Please try again."
|
111 |
msgstr ""
|
112 |
"Ha ocurrido un error durante la importación. Por favor, inténtalo de nuevo."
|
113 |
|
114 |
+
#: includes/class-yit-plugin-panel.php:876
|
115 |
msgid "The added file is not valid."
|
116 |
msgstr "El archivo añadido no es válido."
|
117 |
|
118 |
+
#: includes/class-yit-plugin-panel.php:877
|
119 |
msgid "Sorry, import is disabled."
|
120 |
msgstr "Lo siento, la importación está desactivada."
|
121 |
|
122 |
+
#: includes/class-yit-plugin-panel.php:878
|
123 |
msgid "Sorting successful."
|
124 |
msgstr "Clasificación realizada con éxito"
|
125 |
|
126 |
+
#: includes/class-yit-plugin-panel.php:1346
|
127 |
msgid "We need your support"
|
128 |
msgstr "Necesitamos tu apoyo"
|
129 |
|
130 |
+
#: includes/class-yit-plugin-panel.php:1347
|
131 |
msgid "to keep updating and improving the plugin. Please,"
|
132 |
msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor,"
|
133 |
|
134 |
+
#: includes/class-yit-plugin-panel.php:1349
|
|
|
135 |
msgid "help us by leaving a good review"
|
136 |
+
msgstr "ayúdanos dejando una buena valoración"
|
137 |
|
138 |
+
#: includes/class-yit-plugin-panel.php:1350
|
139 |
msgid ":) Thanks!"
|
140 |
msgstr ":) ¡Gracias!"
|
141 |
|
196 |
"Ha ocurrido un error, lo que puede que signifique que el feed ha caído. "
|
197 |
"Inténtalo de nuevo más tarde."
|
198 |
|
199 |
+
#. translators: %s is the name of the post type (example Back to "Membership
|
200 |
+
#. Plans").
|
201 |
+
#: includes/class-yith-post-type-admin.php:286
|
202 |
+
msgid "Back to \"%s\""
|
203 |
+
msgstr "Volver a \"%s\""
|
204 |
+
|
205 |
+
#: includes/class-yith-post-type-admin.php:286
|
206 |
+
msgid "Back to the list"
|
207 |
+
msgstr "Volver a la lista"
|
208 |
+
|
209 |
#: includes/class-yith-system-status.php:110
|
210 |
msgid "WordPress Version"
|
211 |
msgstr "Versión de WordPress"
|
502 |
msgid "Reset"
|
503 |
msgstr "Restablecer"
|
504 |
|
505 |
+
#: templates/panel/woocommerce/woocommerce-form.php:28
|
506 |
+
#: templates/panel/woocommerce/woocommerce-form.php:32
|
507 |
+
msgid "Save Options"
|
508 |
+
msgstr "Guardar Opciones"
|
509 |
+
|
510 |
+
#: templates/panel/woocommerce/woocommerce-form.php:32
|
511 |
+
msgid "Options Saved"
|
512 |
+
msgstr "Opciones guardadas"
|
513 |
+
|
514 |
+
#: templates/panel/woocommerce/woocommerce-form.php:38
|
515 |
msgid "Reset Defaults"
|
516 |
msgstr "Restablecer valores predeterminados"
|
517 |
|
593 |
msgid "Plugins Requirements"
|
594 |
msgstr "Requerimientos de los plugins"
|
595 |
|
596 |
+
#. translators: %s is the title of the post object.
|
597 |
+
#: yit-functions.php:1823
|
598 |
+
msgid "Are you sure you want to move \"%s\" to trash?"
|
599 |
+
msgstr "¿Estás seguro de que quieres mover \"%s\" a la papelera?"
|
600 |
+
|
601 |
+
#. translators: %s is the title of the post object.
|
602 |
+
#: yit-functions.php:1825 yit-functions.php:1983
|
603 |
+
msgid "Are you sure you want to delete \"%s\"?"
|
604 |
+
msgstr "¿Estás seguro de que quieres borrar \"%s\"?"
|
605 |
+
|
606 |
+
#: yit-functions.php:1825 yit-functions.php:1983
|
607 |
+
msgid ""
|
608 |
+
"This action cannot be undone and you will be not able to recover this data."
|
609 |
+
msgstr "Esta acción no se puede revertir y no podrá recuperar estos datos."
|
610 |
+
|
611 |
+
#: yit-functions.php:1891
|
612 |
+
msgid "Confirm trash"
|
613 |
+
msgstr "Confirmar el traslado a la papelera"
|
614 |
+
|
615 |
+
#: yit-functions.php:1908 yit-functions.php:2035
|
616 |
+
msgid "Confirm delete"
|
617 |
+
msgstr "Confirmar el borrado"
|
618 |
+
|
619 |
+
#: yit-functions.php:1921 yit-functions.php:1929 yit-functions.php:2046
|
620 |
+
msgid "Further actions"
|
621 |
+
msgstr "Otras acciones"
|
622 |
+
|
623 |
+
#: yit-plugin.php:203
|
624 |
msgid "License"
|
625 |
msgstr "Licencia"
|
626 |
|
639 |
msgid "YITH"
|
640 |
msgstr "YITH"
|
641 |
|
642 |
+
#: includes/class-yit-assets.php:131
|
643 |
+
msgctxt "Button text"
|
644 |
+
msgid "Confirm"
|
645 |
+
msgstr "Confirmar"
|
646 |
+
|
647 |
+
#: includes/class-yit-assets.php:132
|
648 |
+
msgctxt "Button text"
|
649 |
+
msgid "Cancel"
|
650 |
+
msgstr "Cancelar"
|
651 |
+
|
652 |
#: includes/class-yith-dashboard.php:96
|
653 |
msgctxt "Plugin FW"
|
654 |
msgid "View Changelog"
|
751 |
msgid "NO"
|
752 |
msgstr "NO"
|
753 |
|
754 |
+
#: yit-functions.php:1837
|
755 |
+
msgctxt "Post action"
|
756 |
+
msgid "Preview"
|
757 |
+
msgstr "Previsualizar"
|
758 |
+
|
759 |
+
#: yit-functions.php:1846
|
760 |
+
msgctxt "Post action"
|
761 |
+
msgid "View"
|
762 |
+
msgstr "Ver"
|
763 |
+
|
764 |
+
#: yit-functions.php:1857
|
765 |
+
msgctxt "Post action"
|
766 |
+
msgid "Edit"
|
767 |
+
msgstr "Editar"
|
768 |
+
|
769 |
+
#: yit-functions.php:1865
|
770 |
+
msgctxt "Post action"
|
771 |
+
msgid "Duplicate"
|
772 |
+
msgstr "Duplicar"
|
773 |
+
|
774 |
+
#: yit-functions.php:1877
|
775 |
+
msgctxt "Post action"
|
776 |
+
msgid "Restore"
|
777 |
+
msgstr "Restaurar"
|
778 |
+
|
779 |
+
#: yit-functions.php:1885
|
780 |
+
msgctxt "Post action"
|
781 |
+
msgid "Trash"
|
782 |
+
msgstr "A la papelera"
|
783 |
+
|
784 |
+
#: yit-functions.php:1901
|
785 |
+
msgctxt "Post action"
|
786 |
+
msgid "Delete Permanently"
|
787 |
+
msgstr "Borrar permanentemente"
|
788 |
+
|
789 |
+
#: yit-functions.php:1893
|
790 |
+
msgctxt "Trash confirmation action"
|
791 |
+
msgid "Yes, trash"
|
792 |
+
msgstr "Si, a la papelera"
|
793 |
+
|
794 |
+
#: yit-functions.php:1910 yit-functions.php:2037
|
795 |
+
msgctxt "Delete confirmation action"
|
796 |
+
msgid "Yes, delete"
|
797 |
+
msgstr "Si, borrar"
|
798 |
+
|
799 |
+
#: yit-functions.php:1997
|
800 |
+
msgctxt "Term action"
|
801 |
+
msgid "View"
|
802 |
+
msgstr "Ver"
|
803 |
+
|
804 |
+
#: yit-functions.php:2007
|
805 |
+
msgctxt "Term action"
|
806 |
+
msgid "Edit"
|
807 |
+
msgstr "Editar"
|
808 |
+
|
809 |
+
#: yit-functions.php:2015
|
810 |
+
msgctxt "Term action"
|
811 |
+
msgid "Duplicate"
|
812 |
+
msgstr "Duplicar"
|
813 |
+
|
814 |
+
#: yit-functions.php:2028
|
815 |
+
msgctxt "Term action"
|
816 |
+
msgid "Delete"
|
817 |
+
msgstr "Borrar"
|
818 |
+
|
819 |
+
#: yit-plugin.php:84
|
820 |
msgctxt "Plugin Row Meta"
|
821 |
msgid "Live Demo"
|
822 |
msgstr "Demostración en vivo"
|
823 |
|
824 |
+
#: yit-plugin.php:88
|
825 |
msgctxt "Plugin Row Meta"
|
826 |
msgid "Documentation"
|
827 |
msgstr "Documentación"
|
828 |
|
829 |
+
#: yit-plugin.php:92
|
830 |
msgctxt "Plugin Row Meta"
|
831 |
msgid "Support"
|
832 |
msgstr "Soporte"
|
833 |
|
834 |
+
#: yit-plugin.php:96
|
835 |
msgctxt "Plugin Row Meta"
|
836 |
msgid "Premium version"
|
837 |
msgstr "Versión premium"
|
838 |
|
839 |
+
#: yit-plugin.php:199
|
840 |
msgctxt "Action links"
|
841 |
msgid "Settings"
|
842 |
msgstr "Ajustes"
|
plugin-fw/languages/yith-plugin-fw-it_IT.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-it_IT.po
CHANGED
@@ -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"
|
@@ -13,27 +13,27 @@ msgstr ""
|
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
-
#: includes/class-yit-assets.php:
|
17 |
msgid "Clear"
|
18 |
msgstr "Rimuovi"
|
19 |
|
20 |
-
#: includes/class-yit-assets.php:
|
21 |
msgid "Clear color"
|
22 |
msgstr "Rimuovi colore"
|
23 |
|
24 |
-
#: includes/class-yit-assets.php:
|
25 |
msgid "Default"
|
26 |
msgstr "Predefinito"
|
27 |
|
28 |
-
#: includes/class-yit-assets.php:
|
29 |
msgid "Select default color"
|
30 |
msgstr "Seleziona il colore predefinito"
|
31 |
|
32 |
-
#: includes/class-yit-assets.php:
|
33 |
msgid "Select Color"
|
34 |
msgstr "Seleziona il colore"
|
35 |
|
36 |
-
#: includes/class-yit-assets.php:
|
37 |
msgid "Color value"
|
38 |
msgstr "Valore del colore"
|
39 |
|
@@ -49,18 +49,17 @@ msgstr "Impostazioni plugin"
|
|
49 |
msgid "Settings"
|
50 |
msgstr "Impostazioni"
|
51 |
|
52 |
-
#: includes/class-yit-plugin-panel.php:
|
53 |
-
#: includes/class-yit-plugin-panel.php:
|
54 |
msgid "How to install premium version"
|
55 |
msgstr "Come installare la versione premium"
|
56 |
|
57 |
-
#: includes/class-yit-plugin-panel.php:
|
58 |
#: includes/class-yit-plugin-subpanel.php:132
|
59 |
-
#: templates/panel/woocommerce/woocommerce-form.php:28
|
60 |
msgid "Save Changes"
|
61 |
msgstr "Salva modifiche"
|
62 |
|
63 |
-
#: includes/class-yit-plugin-panel.php:
|
64 |
#: includes/class-yit-plugin-subpanel.php:136
|
65 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
66 |
msgid ""
|
@@ -69,73 +68,72 @@ msgstr ""
|
|
69 |
"Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
|
70 |
"reimpostate."
|
71 |
|
72 |
-
#: includes/class-yit-plugin-panel.php:
|
73 |
#: includes/class-yit-plugin-subpanel.php:136
|
74 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
75 |
msgid "Are you sure?"
|
76 |
msgstr "Sei sicuro?"
|
77 |
|
78 |
-
#: includes/class-yit-plugin-panel.php:
|
79 |
#: includes/class-yit-plugin-subpanel.php:139
|
80 |
msgid "Reset to default"
|
81 |
msgstr "Ripristina configurazione predefinita"
|
82 |
|
83 |
-
#: includes/class-yit-plugin-panel.php:
|
84 |
msgid ""
|
85 |
"The element you have entered already exists. Please, enter another name."
|
86 |
msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
|
87 |
|
88 |
-
#: includes/class-yit-plugin-panel.php:
|
89 |
msgid "Settings saved"
|
90 |
msgstr "Impostazioni salvate"
|
91 |
|
92 |
-
#: includes/class-yit-plugin-panel.php:
|
93 |
msgid "Settings reset"
|
94 |
msgstr "Impostazioni azzerate"
|
95 |
|
96 |
-
#: includes/class-yit-plugin-panel.php:
|
97 |
msgid "Element deleted correctly."
|
98 |
msgstr "Elemento rimosso correttamente."
|
99 |
|
100 |
-
#: includes/class-yit-plugin-panel.php:
|
101 |
-
#: includes/class-yit-plugin-panel.php:
|
102 |
msgid "Element updated correctly."
|
103 |
msgstr "Elemento aggiornato correttamente."
|
104 |
|
105 |
-
#: includes/class-yit-plugin-panel.php:
|
106 |
msgid "Database imported correctly."
|
107 |
msgstr "Database importato correttamente."
|
108 |
|
109 |
-
#: includes/class-yit-plugin-panel.php:
|
110 |
msgid "An error has occurred during import. Please try again."
|
111 |
msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
|
112 |
|
113 |
-
#: includes/class-yit-plugin-panel.php:
|
114 |
msgid "The added file is not valid."
|
115 |
msgstr "Il file aggiunto non è valido."
|
116 |
|
117 |
-
#: includes/class-yit-plugin-panel.php:
|
118 |
msgid "Sorry, import is disabled."
|
119 |
msgstr "Ci dispiace, l'importazione è disabilitata."
|
120 |
|
121 |
-
#: includes/class-yit-plugin-panel.php:
|
122 |
msgid "Sorting successful."
|
123 |
msgstr "Ordinamento effettuato con successo."
|
124 |
|
125 |
-
#: includes/class-yit-plugin-panel.php:
|
126 |
msgid "We need your support"
|
127 |
msgstr "Abbiamo bisogno del tuo sostegno"
|
128 |
|
129 |
-
#: includes/class-yit-plugin-panel.php:
|
130 |
msgid "to keep updating and improving the plugin. Please,"
|
131 |
msgstr "per poter continuare ad aggiornare e migliorare il plugin."
|
132 |
|
133 |
-
#: includes/class-yit-plugin-panel.php:
|
134 |
-
#, fuzzy
|
135 |
msgid "help us by leaving a good review"
|
136 |
-
msgstr "Puoi darci una mano lasciando una recensione
|
137 |
|
138 |
-
#: includes/class-yit-plugin-panel.php:
|
139 |
msgid ":) Thanks!"
|
140 |
msgstr ":) Grazie!"
|
141 |
|
@@ -195,6 +193,16 @@ msgstr ""
|
|
195 |
"Si è verificato un errore probabilmente causato dal feed non disponibile. "
|
196 |
"Riprova più tardi."
|
197 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
#: includes/class-yith-system-status.php:110
|
199 |
msgid "WordPress Version"
|
200 |
msgstr "Versione di WordPress"
|
@@ -425,7 +433,7 @@ msgstr "Personalizzato:"
|
|
425 |
|
426 |
#: templates/fields/date-format.php:70
|
427 |
msgid "Preview:"
|
428 |
-
msgstr "Anteprima"
|
429 |
|
430 |
#: templates/fields/icons.php:63
|
431 |
msgid "Set Default"
|
@@ -492,7 +500,16 @@ msgstr "Carica"
|
|
492 |
msgid "Reset"
|
493 |
msgstr "Ripristina"
|
494 |
|
495 |
-
#: templates/panel/woocommerce/woocommerce-form.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
496 |
msgid "Reset Defaults"
|
497 |
msgstr "Ripristina impostazioni iniziali"
|
498 |
|
@@ -576,7 +593,36 @@ msgstr "External object cache"
|
|
576 |
msgid "Plugins Requirements"
|
577 |
msgstr "Requisiti plugin"
|
578 |
|
579 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
580 |
msgid "License"
|
581 |
msgstr "Chiave di licenza"
|
582 |
|
@@ -595,6 +641,16 @@ msgctxt "[gutenberg]: Category Name"
|
|
595 |
msgid "YITH"
|
596 |
msgstr "YITH"
|
597 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
#: includes/class-yith-dashboard.php:96
|
599 |
msgctxt "Plugin FW"
|
600 |
msgid "View Changelog"
|
@@ -698,27 +754,92 @@ msgctxt "YES/NO button: use MAX 4 characters!"
|
|
698 |
msgid "NO"
|
699 |
msgstr "NO"
|
700 |
|
701 |
-
#: yit-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
702 |
msgctxt "Plugin Row Meta"
|
703 |
msgid "Live Demo"
|
704 |
msgstr "Live Demo"
|
705 |
|
706 |
-
#: yit-plugin.php:
|
707 |
msgctxt "Plugin Row Meta"
|
708 |
msgid "Documentation"
|
709 |
msgstr "Documentazione"
|
710 |
|
711 |
-
#: yit-plugin.php:
|
712 |
msgctxt "Plugin Row Meta"
|
713 |
msgid "Support"
|
714 |
msgstr "Assistenza"
|
715 |
|
716 |
-
#: yit-plugin.php:
|
717 |
msgctxt "Plugin Row Meta"
|
718 |
msgid "Premium version"
|
719 |
msgstr "Versione premium"
|
720 |
|
721 |
-
#: yit-plugin.php:
|
722 |
msgctxt "Action links"
|
723 |
msgid "Settings"
|
724 |
msgstr "Impostazioni"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-05-17 13:16:23+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-05-17 07:27:22+0000\n"
|
9 |
"Language: it\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
+
#: includes/class-yit-assets.php:143
|
17 |
msgid "Clear"
|
18 |
msgstr "Rimuovi"
|
19 |
|
20 |
+
#: includes/class-yit-assets.php:144
|
21 |
msgid "Clear color"
|
22 |
msgstr "Rimuovi colore"
|
23 |
|
24 |
+
#: includes/class-yit-assets.php:145
|
25 |
msgid "Default"
|
26 |
msgstr "Predefinito"
|
27 |
|
28 |
+
#: includes/class-yit-assets.php:146
|
29 |
msgid "Select default color"
|
30 |
msgstr "Seleziona il colore predefinito"
|
31 |
|
32 |
+
#: includes/class-yit-assets.php:147
|
33 |
msgid "Select Color"
|
34 |
msgstr "Seleziona il colore"
|
35 |
|
36 |
+
#: includes/class-yit-assets.php:148
|
37 |
msgid "Color value"
|
38 |
msgstr "Valore del colore"
|
39 |
|
49 |
msgid "Settings"
|
50 |
msgstr "Impostazioni"
|
51 |
|
52 |
+
#: includes/class-yit-plugin-panel.php:451
|
53 |
+
#: includes/class-yit-plugin-panel.php:454
|
54 |
msgid "How to install premium version"
|
55 |
msgstr "Come installare la versione premium"
|
56 |
|
57 |
+
#: includes/class-yit-plugin-panel.php:620
|
58 |
#: includes/class-yit-plugin-subpanel.php:132
|
|
|
59 |
msgid "Save Changes"
|
60 |
msgstr "Salva modifiche"
|
61 |
|
62 |
+
#: includes/class-yit-plugin-panel.php:625
|
63 |
#: includes/class-yit-plugin-subpanel.php:136
|
64 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
65 |
msgid ""
|
68 |
"Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
|
69 |
"reimpostate."
|
70 |
|
71 |
+
#: includes/class-yit-plugin-panel.php:625
|
72 |
#: includes/class-yit-plugin-subpanel.php:136
|
73 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
74 |
msgid "Are you sure?"
|
75 |
msgstr "Sei sicuro?"
|
76 |
|
77 |
+
#: includes/class-yit-plugin-panel.php:629
|
78 |
#: includes/class-yit-plugin-subpanel.php:139
|
79 |
msgid "Reset to default"
|
80 |
msgstr "Ripristina configurazione predefinita"
|
81 |
|
82 |
+
#: includes/class-yit-plugin-panel.php:868
|
83 |
msgid ""
|
84 |
"The element you have entered already exists. Please, enter another name."
|
85 |
msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
|
86 |
|
87 |
+
#: includes/class-yit-plugin-panel.php:869
|
88 |
msgid "Settings saved"
|
89 |
msgstr "Impostazioni salvate"
|
90 |
|
91 |
+
#: includes/class-yit-plugin-panel.php:870
|
92 |
msgid "Settings reset"
|
93 |
msgstr "Impostazioni azzerate"
|
94 |
|
95 |
+
#: includes/class-yit-plugin-panel.php:871
|
96 |
msgid "Element deleted correctly."
|
97 |
msgstr "Elemento rimosso correttamente."
|
98 |
|
99 |
+
#: includes/class-yit-plugin-panel.php:872
|
100 |
+
#: includes/class-yit-plugin-panel.php:873
|
101 |
msgid "Element updated correctly."
|
102 |
msgstr "Elemento aggiornato correttamente."
|
103 |
|
104 |
+
#: includes/class-yit-plugin-panel.php:874
|
105 |
msgid "Database imported correctly."
|
106 |
msgstr "Database importato correttamente."
|
107 |
|
108 |
+
#: includes/class-yit-plugin-panel.php:875
|
109 |
msgid "An error has occurred during import. Please try again."
|
110 |
msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
|
111 |
|
112 |
+
#: includes/class-yit-plugin-panel.php:876
|
113 |
msgid "The added file is not valid."
|
114 |
msgstr "Il file aggiunto non è valido."
|
115 |
|
116 |
+
#: includes/class-yit-plugin-panel.php:877
|
117 |
msgid "Sorry, import is disabled."
|
118 |
msgstr "Ci dispiace, l'importazione è disabilitata."
|
119 |
|
120 |
+
#: includes/class-yit-plugin-panel.php:878
|
121 |
msgid "Sorting successful."
|
122 |
msgstr "Ordinamento effettuato con successo."
|
123 |
|
124 |
+
#: includes/class-yit-plugin-panel.php:1346
|
125 |
msgid "We need your support"
|
126 |
msgstr "Abbiamo bisogno del tuo sostegno"
|
127 |
|
128 |
+
#: includes/class-yit-plugin-panel.php:1347
|
129 |
msgid "to keep updating and improving the plugin. Please,"
|
130 |
msgstr "per poter continuare ad aggiornare e migliorare il plugin."
|
131 |
|
132 |
+
#: includes/class-yit-plugin-panel.php:1349
|
|
|
133 |
msgid "help us by leaving a good review"
|
134 |
+
msgstr "Puoi darci una mano lasciando una recensione positiva"
|
135 |
|
136 |
+
#: includes/class-yit-plugin-panel.php:1350
|
137 |
msgid ":) Thanks!"
|
138 |
msgstr ":) Grazie!"
|
139 |
|
193 |
"Si è verificato un errore probabilmente causato dal feed non disponibile. "
|
194 |
"Riprova più tardi."
|
195 |
|
196 |
+
#. translators: %s is the name of the post type (example Back to "Membership
|
197 |
+
#. Plans").
|
198 |
+
#: includes/class-yith-post-type-admin.php:286
|
199 |
+
msgid "Back to \"%s\""
|
200 |
+
msgstr "Torna a \"%s\""
|
201 |
+
|
202 |
+
#: includes/class-yith-post-type-admin.php:286
|
203 |
+
msgid "Back to the list"
|
204 |
+
msgstr "Torna all'elenco"
|
205 |
+
|
206 |
#: includes/class-yith-system-status.php:110
|
207 |
msgid "WordPress Version"
|
208 |
msgstr "Versione di WordPress"
|
433 |
|
434 |
#: templates/fields/date-format.php:70
|
435 |
msgid "Preview:"
|
436 |
+
msgstr "Anteprima:"
|
437 |
|
438 |
#: templates/fields/icons.php:63
|
439 |
msgid "Set Default"
|
500 |
msgid "Reset"
|
501 |
msgstr "Ripristina"
|
502 |
|
503 |
+
#: templates/panel/woocommerce/woocommerce-form.php:28
|
504 |
+
#: templates/panel/woocommerce/woocommerce-form.php:32
|
505 |
+
msgid "Save Options"
|
506 |
+
msgstr "Salva le opzioni"
|
507 |
+
|
508 |
+
#: templates/panel/woocommerce/woocommerce-form.php:32
|
509 |
+
msgid "Options Saved"
|
510 |
+
msgstr "Opzioni salvate"
|
511 |
+
|
512 |
+
#: templates/panel/woocommerce/woocommerce-form.php:38
|
513 |
msgid "Reset Defaults"
|
514 |
msgstr "Ripristina impostazioni iniziali"
|
515 |
|
593 |
msgid "Plugins Requirements"
|
594 |
msgstr "Requisiti plugin"
|
595 |
|
596 |
+
#. translators: %s is the title of the post object.
|
597 |
+
#: yit-functions.php:1823
|
598 |
+
msgid "Are you sure you want to move \"%s\" to trash?"
|
599 |
+
msgstr "Sei sicuro di voler spostare \"%s\" nel cestino?"
|
600 |
+
|
601 |
+
#. translators: %s is the title of the post object.
|
602 |
+
#: yit-functions.php:1825 yit-functions.php:1983
|
603 |
+
msgid "Are you sure you want to delete \"%s\"?"
|
604 |
+
msgstr "Sei sicuro di voler eliminare \"%s\"?"
|
605 |
+
|
606 |
+
#: yit-functions.php:1825 yit-functions.php:1983
|
607 |
+
msgid ""
|
608 |
+
"This action cannot be undone and you will be not able to recover this data."
|
609 |
+
msgstr ""
|
610 |
+
"Quest'azione non può essere annullata e non sarà possibile recuperare questi "
|
611 |
+
"dati."
|
612 |
+
|
613 |
+
#: yit-functions.php:1891
|
614 |
+
msgid "Confirm trash"
|
615 |
+
msgstr "Conferma eliminazione"
|
616 |
+
|
617 |
+
#: yit-functions.php:1908 yit-functions.php:2035
|
618 |
+
msgid "Confirm delete"
|
619 |
+
msgstr "Conferma eliminazione"
|
620 |
+
|
621 |
+
#: yit-functions.php:1921 yit-functions.php:1929 yit-functions.php:2046
|
622 |
+
msgid "Further actions"
|
623 |
+
msgstr "Altre azioni"
|
624 |
+
|
625 |
+
#: yit-plugin.php:203
|
626 |
msgid "License"
|
627 |
msgstr "Chiave di licenza"
|
628 |
|
641 |
msgid "YITH"
|
642 |
msgstr "YITH"
|
643 |
|
644 |
+
#: includes/class-yit-assets.php:131
|
645 |
+
msgctxt "Button text"
|
646 |
+
msgid "Confirm"
|
647 |
+
msgstr "Conferma"
|
648 |
+
|
649 |
+
#: includes/class-yit-assets.php:132
|
650 |
+
msgctxt "Button text"
|
651 |
+
msgid "Cancel"
|
652 |
+
msgstr "Annulla"
|
653 |
+
|
654 |
#: includes/class-yith-dashboard.php:96
|
655 |
msgctxt "Plugin FW"
|
656 |
msgid "View Changelog"
|
754 |
msgid "NO"
|
755 |
msgstr "NO"
|
756 |
|
757 |
+
#: yit-functions.php:1837
|
758 |
+
msgctxt "Post action"
|
759 |
+
msgid "Preview"
|
760 |
+
msgstr "Anteprima"
|
761 |
+
|
762 |
+
#: yit-functions.php:1846
|
763 |
+
msgctxt "Post action"
|
764 |
+
msgid "View"
|
765 |
+
msgstr "Visualizza"
|
766 |
+
|
767 |
+
#: yit-functions.php:1857
|
768 |
+
msgctxt "Post action"
|
769 |
+
msgid "Edit"
|
770 |
+
msgstr "Modifica"
|
771 |
+
|
772 |
+
#: yit-functions.php:1865
|
773 |
+
msgctxt "Post action"
|
774 |
+
msgid "Duplicate"
|
775 |
+
msgstr "Duplica"
|
776 |
+
|
777 |
+
#: yit-functions.php:1877
|
778 |
+
msgctxt "Post action"
|
779 |
+
msgid "Restore"
|
780 |
+
msgstr "Ripristina"
|
781 |
+
|
782 |
+
#: yit-functions.php:1885
|
783 |
+
msgctxt "Post action"
|
784 |
+
msgid "Trash"
|
785 |
+
msgstr "Cestina"
|
786 |
+
|
787 |
+
#: yit-functions.php:1901
|
788 |
+
msgctxt "Post action"
|
789 |
+
msgid "Delete Permanently"
|
790 |
+
msgstr "Cancella definitivamente"
|
791 |
+
|
792 |
+
#: yit-functions.php:1893
|
793 |
+
msgctxt "Trash confirmation action"
|
794 |
+
msgid "Yes, trash"
|
795 |
+
msgstr "Sì, cestina"
|
796 |
+
|
797 |
+
#: yit-functions.php:1910 yit-functions.php:2037
|
798 |
+
msgctxt "Delete confirmation action"
|
799 |
+
msgid "Yes, delete"
|
800 |
+
msgstr "Sì, elimina"
|
801 |
+
|
802 |
+
#: yit-functions.php:1997
|
803 |
+
msgctxt "Term action"
|
804 |
+
msgid "View"
|
805 |
+
msgstr "Visualizza"
|
806 |
+
|
807 |
+
#: yit-functions.php:2007
|
808 |
+
msgctxt "Term action"
|
809 |
+
msgid "Edit"
|
810 |
+
msgstr "Modifica"
|
811 |
+
|
812 |
+
#: yit-functions.php:2015
|
813 |
+
msgctxt "Term action"
|
814 |
+
msgid "Duplicate"
|
815 |
+
msgstr "Duplica"
|
816 |
+
|
817 |
+
#: yit-functions.php:2028
|
818 |
+
msgctxt "Term action"
|
819 |
+
msgid "Delete"
|
820 |
+
msgstr "Elimina"
|
821 |
+
|
822 |
+
#: yit-plugin.php:84
|
823 |
msgctxt "Plugin Row Meta"
|
824 |
msgid "Live Demo"
|
825 |
msgstr "Live Demo"
|
826 |
|
827 |
+
#: yit-plugin.php:88
|
828 |
msgctxt "Plugin Row Meta"
|
829 |
msgid "Documentation"
|
830 |
msgstr "Documentazione"
|
831 |
|
832 |
+
#: yit-plugin.php:92
|
833 |
msgctxt "Plugin Row Meta"
|
834 |
msgid "Support"
|
835 |
msgstr "Assistenza"
|
836 |
|
837 |
+
#: yit-plugin.php:96
|
838 |
msgctxt "Plugin Row Meta"
|
839 |
msgid "Premium version"
|
840 |
msgstr "Versione premium"
|
841 |
|
842 |
+
#: yit-plugin.php:199
|
843 |
msgctxt "Action links"
|
844 |
msgid "Settings"
|
845 |
msgstr "Impostazioni"
|
plugin-fw/languages/yith-plugin-fw-nl_NL.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-nl_NL.po
CHANGED
@@ -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"
|
@@ -13,27 +13,27 @@ msgstr ""
|
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
-
#: includes/class-yit-assets.php:
|
17 |
msgid "Clear"
|
18 |
msgstr "Wissen"
|
19 |
|
20 |
-
#: includes/class-yit-assets.php:
|
21 |
msgid "Clear color"
|
22 |
msgstr "Kleur wissen"
|
23 |
|
24 |
-
#: includes/class-yit-assets.php:
|
25 |
msgid "Default"
|
26 |
msgstr "Standaard"
|
27 |
|
28 |
-
#: includes/class-yit-assets.php:
|
29 |
msgid "Select default color"
|
30 |
msgstr "Standaardkleur selecteren"
|
31 |
|
32 |
-
#: includes/class-yit-assets.php:
|
33 |
msgid "Select Color"
|
34 |
msgstr "Kleur selecteren"
|
35 |
|
36 |
-
#: includes/class-yit-assets.php:
|
37 |
msgid "Color value"
|
38 |
msgstr "Kleurwaarde"
|
39 |
|
@@ -49,18 +49,17 @@ msgstr "Plugin instellingen"
|
|
49 |
msgid "Settings"
|
50 |
msgstr "Instellingen"
|
51 |
|
52 |
-
#: includes/class-yit-plugin-panel.php:
|
53 |
-
#: includes/class-yit-plugin-panel.php:
|
54 |
msgid "How to install premium version"
|
55 |
msgstr "Hoe installeer ik de premium versie"
|
56 |
|
57 |
-
#: includes/class-yit-plugin-panel.php:
|
58 |
#: includes/class-yit-plugin-subpanel.php:132
|
59 |
-
#: templates/panel/woocommerce/woocommerce-form.php:28
|
60 |
msgid "Save Changes"
|
61 |
msgstr "Wijzigingen opslaan"
|
62 |
|
63 |
-
#: includes/class-yit-plugin-panel.php:
|
64 |
#: includes/class-yit-plugin-subpanel.php:136
|
65 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
66 |
msgid ""
|
@@ -68,73 +67,72 @@ msgid ""
|
|
68 |
msgstr ""
|
69 |
"Als je doorgaat met deze actie, zal je alle opties op deze pagina resetten."
|
70 |
|
71 |
-
#: includes/class-yit-plugin-panel.php:
|
72 |
#: includes/class-yit-plugin-subpanel.php:136
|
73 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
74 |
msgid "Are you sure?"
|
75 |
msgstr "Weet je het zeker?"
|
76 |
|
77 |
-
#: includes/class-yit-plugin-panel.php:
|
78 |
#: includes/class-yit-plugin-subpanel.php:139
|
79 |
msgid "Reset to default"
|
80 |
msgstr "Resetten naar standaard"
|
81 |
|
82 |
-
#: includes/class-yit-plugin-panel.php:
|
83 |
msgid ""
|
84 |
"The element you have entered already exists. Please, enter another name."
|
85 |
msgstr "Het element dat je hebt ingevoerd bestaat al. Voer een andere naam in."
|
86 |
|
87 |
-
#: includes/class-yit-plugin-panel.php:
|
88 |
msgid "Settings saved"
|
89 |
msgstr "Instellingen opgeslagen"
|
90 |
|
91 |
-
#: includes/class-yit-plugin-panel.php:
|
92 |
msgid "Settings reset"
|
93 |
msgstr "Instellingen resetten"
|
94 |
|
95 |
-
#: includes/class-yit-plugin-panel.php:
|
96 |
msgid "Element deleted correctly."
|
97 |
msgstr "Element juist verwijderd."
|
98 |
|
99 |
-
#: includes/class-yit-plugin-panel.php:
|
100 |
-
#: includes/class-yit-plugin-panel.php:
|
101 |
msgid "Element updated correctly."
|
102 |
msgstr "Element juist geüpdatet."
|
103 |
|
104 |
-
#: includes/class-yit-plugin-panel.php:
|
105 |
msgid "Database imported correctly."
|
106 |
msgstr "Database juist geïmporteerd."
|
107 |
|
108 |
-
#: includes/class-yit-plugin-panel.php:
|
109 |
msgid "An error has occurred during import. Please try again."
|
110 |
msgstr "Er is een fout opgetreden tijdens importeren. Probeer opnieuw."
|
111 |
|
112 |
-
#: includes/class-yit-plugin-panel.php:
|
113 |
msgid "The added file is not valid."
|
114 |
msgstr "Het toegevoegde bestand is niet geldig."
|
115 |
|
116 |
-
#: includes/class-yit-plugin-panel.php:
|
117 |
msgid "Sorry, import is disabled."
|
118 |
msgstr "Sorry, importeren is uitgeschakeld."
|
119 |
|
120 |
-
#: includes/class-yit-plugin-panel.php:
|
121 |
msgid "Sorting successful."
|
122 |
msgstr "Succesvol gesorteerd."
|
123 |
|
124 |
-
#: includes/class-yit-plugin-panel.php:
|
125 |
msgid "We need your support"
|
126 |
msgstr "We hebben je hulp nodig"
|
127 |
|
128 |
-
#: includes/class-yit-plugin-panel.php:
|
129 |
msgid "to keep updating and improving the plugin. Please,"
|
130 |
msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.,"
|
131 |
|
132 |
-
#: includes/class-yit-plugin-panel.php:
|
133 |
-
#, fuzzy
|
134 |
msgid "help us by leaving a good review"
|
135 |
-
msgstr "help ons door een
|
136 |
|
137 |
-
#: includes/class-yit-plugin-panel.php:
|
138 |
msgid ":) Thanks!"
|
139 |
msgstr ":) Bedankt!"
|
140 |
|
@@ -194,6 +192,16 @@ msgstr ""
|
|
194 |
"Er is een fout opgetreden, wat waarschijnlijk betekent dat de feed niet "
|
195 |
"werkt. Probeer het later opnieuw."
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
#: includes/class-yith-system-status.php:110
|
198 |
msgid "WordPress Version"
|
199 |
msgstr "WordPress Versie"
|
@@ -490,7 +498,16 @@ msgstr "Upload"
|
|
490 |
msgid "Reset"
|
491 |
msgstr "Resetten"
|
492 |
|
493 |
-
#: templates/panel/woocommerce/woocommerce-form.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
494 |
msgid "Reset Defaults"
|
495 |
msgstr "Reset Standaard instellingen"
|
496 |
|
@@ -573,7 +590,36 @@ msgstr "Externe object cache"
|
|
573 |
msgid "Plugins Requirements"
|
574 |
msgstr "Plugin benodigdheden"
|
575 |
|
576 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
577 |
msgid "License"
|
578 |
msgstr "Licentie"
|
579 |
|
@@ -592,6 +638,16 @@ msgctxt "[gutenberg]: Category Name"
|
|
592 |
msgid "YITH"
|
593 |
msgstr "YITH"
|
594 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
595 |
#: includes/class-yith-dashboard.php:96
|
596 |
msgctxt "Plugin FW"
|
597 |
msgid "View Changelog"
|
@@ -694,27 +750,92 @@ msgctxt "YES/NO button: use MAX 4 characters!"
|
|
694 |
msgid "NO"
|
695 |
msgstr "NEE"
|
696 |
|
697 |
-
#: yit-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
698 |
msgctxt "Plugin Row Meta"
|
699 |
msgid "Live Demo"
|
700 |
msgstr "Live Demo"
|
701 |
|
702 |
-
#: yit-plugin.php:
|
703 |
msgctxt "Plugin Row Meta"
|
704 |
msgid "Documentation"
|
705 |
msgstr "Documentatie"
|
706 |
|
707 |
-
#: yit-plugin.php:
|
708 |
msgctxt "Plugin Row Meta"
|
709 |
msgid "Support"
|
710 |
msgstr "Ondersteuning"
|
711 |
|
712 |
-
#: yit-plugin.php:
|
713 |
msgctxt "Plugin Row Meta"
|
714 |
msgid "Premium version"
|
715 |
msgstr "Premium versie"
|
716 |
|
717 |
-
#: yit-plugin.php:
|
718 |
msgctxt "Action links"
|
719 |
msgid "Settings"
|
720 |
msgstr "Instellingen"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-05-17 13:16:23+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-05-17 13:15:16+0000\n"
|
9 |
"Language: nl\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
14 |
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
15 |
|
16 |
+
#: includes/class-yit-assets.php:143
|
17 |
msgid "Clear"
|
18 |
msgstr "Wissen"
|
19 |
|
20 |
+
#: includes/class-yit-assets.php:144
|
21 |
msgid "Clear color"
|
22 |
msgstr "Kleur wissen"
|
23 |
|
24 |
+
#: includes/class-yit-assets.php:145
|
25 |
msgid "Default"
|
26 |
msgstr "Standaard"
|
27 |
|
28 |
+
#: includes/class-yit-assets.php:146
|
29 |
msgid "Select default color"
|
30 |
msgstr "Standaardkleur selecteren"
|
31 |
|
32 |
+
#: includes/class-yit-assets.php:147
|
33 |
msgid "Select Color"
|
34 |
msgstr "Kleur selecteren"
|
35 |
|
36 |
+
#: includes/class-yit-assets.php:148
|
37 |
msgid "Color value"
|
38 |
msgstr "Kleurwaarde"
|
39 |
|
49 |
msgid "Settings"
|
50 |
msgstr "Instellingen"
|
51 |
|
52 |
+
#: includes/class-yit-plugin-panel.php:451
|
53 |
+
#: includes/class-yit-plugin-panel.php:454
|
54 |
msgid "How to install premium version"
|
55 |
msgstr "Hoe installeer ik de premium versie"
|
56 |
|
57 |
+
#: includes/class-yit-plugin-panel.php:620
|
58 |
#: includes/class-yit-plugin-subpanel.php:132
|
|
|
59 |
msgid "Save Changes"
|
60 |
msgstr "Wijzigingen opslaan"
|
61 |
|
62 |
+
#: includes/class-yit-plugin-panel.php:625
|
63 |
#: includes/class-yit-plugin-subpanel.php:136
|
64 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
65 |
msgid ""
|
67 |
msgstr ""
|
68 |
"Als je doorgaat met deze actie, zal je alle opties op deze pagina resetten."
|
69 |
|
70 |
+
#: includes/class-yit-plugin-panel.php:625
|
71 |
#: includes/class-yit-plugin-subpanel.php:136
|
72 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
73 |
msgid "Are you sure?"
|
74 |
msgstr "Weet je het zeker?"
|
75 |
|
76 |
+
#: includes/class-yit-plugin-panel.php:629
|
77 |
#: includes/class-yit-plugin-subpanel.php:139
|
78 |
msgid "Reset to default"
|
79 |
msgstr "Resetten naar standaard"
|
80 |
|
81 |
+
#: includes/class-yit-plugin-panel.php:868
|
82 |
msgid ""
|
83 |
"The element you have entered already exists. Please, enter another name."
|
84 |
msgstr "Het element dat je hebt ingevoerd bestaat al. Voer een andere naam in."
|
85 |
|
86 |
+
#: includes/class-yit-plugin-panel.php:869
|
87 |
msgid "Settings saved"
|
88 |
msgstr "Instellingen opgeslagen"
|
89 |
|
90 |
+
#: includes/class-yit-plugin-panel.php:870
|
91 |
msgid "Settings reset"
|
92 |
msgstr "Instellingen resetten"
|
93 |
|
94 |
+
#: includes/class-yit-plugin-panel.php:871
|
95 |
msgid "Element deleted correctly."
|
96 |
msgstr "Element juist verwijderd."
|
97 |
|
98 |
+
#: includes/class-yit-plugin-panel.php:872
|
99 |
+
#: includes/class-yit-plugin-panel.php:873
|
100 |
msgid "Element updated correctly."
|
101 |
msgstr "Element juist geüpdatet."
|
102 |
|
103 |
+
#: includes/class-yit-plugin-panel.php:874
|
104 |
msgid "Database imported correctly."
|
105 |
msgstr "Database juist geïmporteerd."
|
106 |
|
107 |
+
#: includes/class-yit-plugin-panel.php:875
|
108 |
msgid "An error has occurred during import. Please try again."
|
109 |
msgstr "Er is een fout opgetreden tijdens importeren. Probeer opnieuw."
|
110 |
|
111 |
+
#: includes/class-yit-plugin-panel.php:876
|
112 |
msgid "The added file is not valid."
|
113 |
msgstr "Het toegevoegde bestand is niet geldig."
|
114 |
|
115 |
+
#: includes/class-yit-plugin-panel.php:877
|
116 |
msgid "Sorry, import is disabled."
|
117 |
msgstr "Sorry, importeren is uitgeschakeld."
|
118 |
|
119 |
+
#: includes/class-yit-plugin-panel.php:878
|
120 |
msgid "Sorting successful."
|
121 |
msgstr "Succesvol gesorteerd."
|
122 |
|
123 |
+
#: includes/class-yit-plugin-panel.php:1346
|
124 |
msgid "We need your support"
|
125 |
msgstr "We hebben je hulp nodig"
|
126 |
|
127 |
+
#: includes/class-yit-plugin-panel.php:1347
|
128 |
msgid "to keep updating and improving the plugin. Please,"
|
129 |
msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.,"
|
130 |
|
131 |
+
#: includes/class-yit-plugin-panel.php:1349
|
|
|
132 |
msgid "help us by leaving a good review"
|
133 |
+
msgstr "help ons door een goede beoordeling achter te laten"
|
134 |
|
135 |
+
#: includes/class-yit-plugin-panel.php:1350
|
136 |
msgid ":) Thanks!"
|
137 |
msgstr ":) Bedankt!"
|
138 |
|
192 |
"Er is een fout opgetreden, wat waarschijnlijk betekent dat de feed niet "
|
193 |
"werkt. Probeer het later opnieuw."
|
194 |
|
195 |
+
#. translators: %s is the name of the post type (example Back to "Membership
|
196 |
+
#. Plans").
|
197 |
+
#: includes/class-yith-post-type-admin.php:286
|
198 |
+
msgid "Back to \"%s\""
|
199 |
+
msgstr "Terug naar \"%s\""
|
200 |
+
|
201 |
+
#: includes/class-yith-post-type-admin.php:286
|
202 |
+
msgid "Back to the list"
|
203 |
+
msgstr "Terug naar de lijst"
|
204 |
+
|
205 |
#: includes/class-yith-system-status.php:110
|
206 |
msgid "WordPress Version"
|
207 |
msgstr "WordPress Versie"
|
498 |
msgid "Reset"
|
499 |
msgstr "Resetten"
|
500 |
|
501 |
+
#: templates/panel/woocommerce/woocommerce-form.php:28
|
502 |
+
#: templates/panel/woocommerce/woocommerce-form.php:32
|
503 |
+
msgid "Save Options"
|
504 |
+
msgstr "Opties opslaan"
|
505 |
+
|
506 |
+
#: templates/panel/woocommerce/woocommerce-form.php:32
|
507 |
+
msgid "Options Saved"
|
508 |
+
msgstr "Opties opgeslagen"
|
509 |
+
|
510 |
+
#: templates/panel/woocommerce/woocommerce-form.php:38
|
511 |
msgid "Reset Defaults"
|
512 |
msgstr "Reset Standaard instellingen"
|
513 |
|
590 |
msgid "Plugins Requirements"
|
591 |
msgstr "Plugin benodigdheden"
|
592 |
|
593 |
+
#. translators: %s is the title of the post object.
|
594 |
+
#: yit-functions.php:1823
|
595 |
+
msgid "Are you sure you want to move \"%s\" to trash?"
|
596 |
+
msgstr "Weet je zeker dat je \"%s\" naar de prullenbak wilt verplaatsen?"
|
597 |
+
|
598 |
+
#. translators: %s is the title of the post object.
|
599 |
+
#: yit-functions.php:1825 yit-functions.php:1983
|
600 |
+
msgid "Are you sure you want to delete \"%s\"?"
|
601 |
+
msgstr "Weet je zeker dat je \"%s\" wilt verwijderen?"
|
602 |
+
|
603 |
+
#: yit-functions.php:1825 yit-functions.php:1983
|
604 |
+
msgid ""
|
605 |
+
"This action cannot be undone and you will be not able to recover this data."
|
606 |
+
msgstr ""
|
607 |
+
"Deze actie kan niet ongedaan gemaakt worden and je zult deze gegevens niet "
|
608 |
+
"kunnen herstellen."
|
609 |
+
|
610 |
+
#: yit-functions.php:1891
|
611 |
+
msgid "Confirm trash"
|
612 |
+
msgstr "Verplaatsen naar prullenbak bevestigen"
|
613 |
+
|
614 |
+
#: yit-functions.php:1908 yit-functions.php:2035
|
615 |
+
msgid "Confirm delete"
|
616 |
+
msgstr "Verwijderen bevestigen"
|
617 |
+
|
618 |
+
#: yit-functions.php:1921 yit-functions.php:1929 yit-functions.php:2046
|
619 |
+
msgid "Further actions"
|
620 |
+
msgstr "Verdere acties"
|
621 |
+
|
622 |
+
#: yit-plugin.php:203
|
623 |
msgid "License"
|
624 |
msgstr "Licentie"
|
625 |
|
638 |
msgid "YITH"
|
639 |
msgstr "YITH"
|
640 |
|
641 |
+
#: includes/class-yit-assets.php:131
|
642 |
+
msgctxt "Button text"
|
643 |
+
msgid "Confirm"
|
644 |
+
msgstr "Bevestigen"
|
645 |
+
|
646 |
+
#: includes/class-yit-assets.php:132
|
647 |
+
msgctxt "Button text"
|
648 |
+
msgid "Cancel"
|
649 |
+
msgstr "Annuleren"
|
650 |
+
|
651 |
#: includes/class-yith-dashboard.php:96
|
652 |
msgctxt "Plugin FW"
|
653 |
msgid "View Changelog"
|
750 |
msgid "NO"
|
751 |
msgstr "NEE"
|
752 |
|
753 |
+
#: yit-functions.php:1837
|
754 |
+
msgctxt "Post action"
|
755 |
+
msgid "Preview"
|
756 |
+
msgstr "Voorbeeld"
|
757 |
+
|
758 |
+
#: yit-functions.php:1846
|
759 |
+
msgctxt "Post action"
|
760 |
+
msgid "View"
|
761 |
+
msgstr "Bekijken"
|
762 |
+
|
763 |
+
#: yit-functions.php:1857
|
764 |
+
msgctxt "Post action"
|
765 |
+
msgid "Edit"
|
766 |
+
msgstr "Bewerken"
|
767 |
+
|
768 |
+
#: yit-functions.php:1865
|
769 |
+
msgctxt "Post action"
|
770 |
+
msgid "Duplicate"
|
771 |
+
msgstr "Dupliceren"
|
772 |
+
|
773 |
+
#: yit-functions.php:1877
|
774 |
+
msgctxt "Post action"
|
775 |
+
msgid "Restore"
|
776 |
+
msgstr "Herstellen"
|
777 |
+
|
778 |
+
#: yit-functions.php:1885
|
779 |
+
msgctxt "Post action"
|
780 |
+
msgid "Trash"
|
781 |
+
msgstr "Prullenbak"
|
782 |
+
|
783 |
+
#: yit-functions.php:1901
|
784 |
+
msgctxt "Post action"
|
785 |
+
msgid "Delete Permanently"
|
786 |
+
msgstr "Permanent verijwderen"
|
787 |
+
|
788 |
+
#: yit-functions.php:1893
|
789 |
+
msgctxt "Trash confirmation action"
|
790 |
+
msgid "Yes, trash"
|
791 |
+
msgstr "Ja, verplaatsen naar prullenbak"
|
792 |
+
|
793 |
+
#: yit-functions.php:1910 yit-functions.php:2037
|
794 |
+
msgctxt "Delete confirmation action"
|
795 |
+
msgid "Yes, delete"
|
796 |
+
msgstr "Ja, verwijderen"
|
797 |
+
|
798 |
+
#: yit-functions.php:1997
|
799 |
+
msgctxt "Term action"
|
800 |
+
msgid "View"
|
801 |
+
msgstr "Bekijken"
|
802 |
+
|
803 |
+
#: yit-functions.php:2007
|
804 |
+
msgctxt "Term action"
|
805 |
+
msgid "Edit"
|
806 |
+
msgstr "Bewerken"
|
807 |
+
|
808 |
+
#: yit-functions.php:2015
|
809 |
+
msgctxt "Term action"
|
810 |
+
msgid "Duplicate"
|
811 |
+
msgstr "Dupliceren"
|
812 |
+
|
813 |
+
#: yit-functions.php:2028
|
814 |
+
msgctxt "Term action"
|
815 |
+
msgid "Delete"
|
816 |
+
msgstr "Verwijderen"
|
817 |
+
|
818 |
+
#: yit-plugin.php:84
|
819 |
msgctxt "Plugin Row Meta"
|
820 |
msgid "Live Demo"
|
821 |
msgstr "Live Demo"
|
822 |
|
823 |
+
#: yit-plugin.php:88
|
824 |
msgctxt "Plugin Row Meta"
|
825 |
msgid "Documentation"
|
826 |
msgstr "Documentatie"
|
827 |
|
828 |
+
#: yit-plugin.php:92
|
829 |
msgctxt "Plugin Row Meta"
|
830 |
msgid "Support"
|
831 |
msgstr "Ondersteuning"
|
832 |
|
833 |
+
#: yit-plugin.php:96
|
834 |
msgctxt "Plugin Row Meta"
|
835 |
msgid "Premium version"
|
836 |
msgstr "Premium versie"
|
837 |
|
838 |
+
#: yit-plugin.php:199
|
839 |
msgctxt "Action links"
|
840 |
msgid "Settings"
|
841 |
msgstr "Instellingen"
|
plugin-fw/languages/yith-plugin-fw.pot
CHANGED
@@ -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"
|
@@ -24,27 +24,27 @@ msgstr ""
|
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
-
#: includes/class-yit-assets.php:
|
28 |
msgid "Clear"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: includes/class-yit-assets.php:
|
32 |
msgid "Clear color"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: includes/class-yit-assets.php:
|
36 |
msgid "Default"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: includes/class-yit-assets.php:
|
40 |
msgid "Select default color"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: includes/class-yit-assets.php:
|
44 |
msgid "Select Color"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: includes/class-yit-assets.php:
|
48 |
msgid "Color value"
|
49 |
msgstr ""
|
50 |
|
@@ -60,88 +60,87 @@ msgstr ""
|
|
60 |
msgid "Settings"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: includes/class-yit-plugin-panel.php:
|
64 |
-
#: includes/class-yit-plugin-panel.php:
|
65 |
msgid "How to install premium version"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: includes/class-yit-plugin-panel.php:
|
69 |
#: includes/class-yit-plugin-subpanel.php:132
|
70 |
-
#: templates/panel/woocommerce/woocommerce-form.php:28
|
71 |
msgid "Save Changes"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: includes/class-yit-plugin-panel.php:
|
75 |
#: includes/class-yit-plugin-subpanel.php:136
|
76 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
77 |
msgid "If you continue with this action, you will reset all options in this page."
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: includes/class-yit-plugin-panel.php:
|
81 |
#: includes/class-yit-plugin-subpanel.php:136
|
82 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
83 |
msgid "Are you sure?"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: includes/class-yit-plugin-panel.php:
|
87 |
#: includes/class-yit-plugin-subpanel.php:139
|
88 |
msgid "Reset to default"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: includes/class-yit-plugin-panel.php:
|
92 |
msgid "The element you have entered already exists. Please, enter another name."
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: includes/class-yit-plugin-panel.php:
|
96 |
msgid "Settings saved"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: includes/class-yit-plugin-panel.php:
|
100 |
msgid "Settings reset"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: includes/class-yit-plugin-panel.php:
|
104 |
msgid "Element deleted correctly."
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: includes/class-yit-plugin-panel.php:
|
108 |
-
#: includes/class-yit-plugin-panel.php:
|
109 |
msgid "Element updated correctly."
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: includes/class-yit-plugin-panel.php:
|
113 |
msgid "Database imported correctly."
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: includes/class-yit-plugin-panel.php:
|
117 |
msgid "An error has occurred during import. Please try again."
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: includes/class-yit-plugin-panel.php:
|
121 |
msgid "The added file is not valid."
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: includes/class-yit-plugin-panel.php:
|
125 |
msgid "Sorry, import is disabled."
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: includes/class-yit-plugin-panel.php:
|
129 |
msgid "Sorting successful."
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: includes/class-yit-plugin-panel.php:
|
133 |
msgid "We need your support"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: includes/class-yit-plugin-panel.php:
|
137 |
msgid "to keep updating and improving the plugin. Please,"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: includes/class-yit-plugin-panel.php:
|
141 |
msgid "help us by leaving a good review"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: includes/class-yit-plugin-panel.php:
|
145 |
msgid ":) Thanks!"
|
146 |
msgstr ""
|
147 |
|
@@ -191,6 +190,16 @@ msgid ""
|
|
191 |
"later."
|
192 |
msgstr ""
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
#: includes/class-yith-system-status.php:110
|
195 |
msgid "WordPress Version"
|
196 |
msgstr ""
|
@@ -475,7 +484,16 @@ msgstr ""
|
|
475 |
msgid "Reset"
|
476 |
msgstr ""
|
477 |
|
478 |
-
#: templates/panel/woocommerce/woocommerce-form.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
479 |
msgid "Reset Defaults"
|
480 |
msgstr ""
|
481 |
|
@@ -555,7 +573,33 @@ msgstr ""
|
|
555 |
msgid "Plugins Requirements"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: yit-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
msgid "License"
|
560 |
msgstr ""
|
561 |
|
@@ -574,6 +618,16 @@ msgctxt "[gutenberg]: Category Name"
|
|
574 |
msgid "YITH"
|
575 |
msgstr ""
|
576 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
577 |
#: includes/class-yith-dashboard.php:96
|
578 |
msgctxt "Plugin FW"
|
579 |
msgid "View Changelog"
|
@@ -670,27 +724,92 @@ msgctxt "YES/NO button: use MAX 4 characters!"
|
|
670 |
msgid "NO"
|
671 |
msgstr ""
|
672 |
|
673 |
-
#: yit-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
674 |
msgctxt "Plugin Row Meta"
|
675 |
msgid "Live Demo"
|
676 |
msgstr ""
|
677 |
|
678 |
-
#: yit-plugin.php:
|
679 |
msgctxt "Plugin Row Meta"
|
680 |
msgid "Documentation"
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: yit-plugin.php:
|
684 |
msgctxt "Plugin Row Meta"
|
685 |
msgid "Support"
|
686 |
msgstr ""
|
687 |
|
688 |
-
#: yit-plugin.php:
|
689 |
msgctxt "Plugin Row Meta"
|
690 |
msgid "Premium version"
|
691 |
msgstr ""
|
692 |
|
693 |
-
#: yit-plugin.php:
|
694 |
msgctxt "Action links"
|
695 |
msgid "Settings"
|
696 |
msgstr ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-05-17 13:16:23+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
+
#: includes/class-yit-assets.php:143
|
28 |
msgid "Clear"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: includes/class-yit-assets.php:144
|
32 |
msgid "Clear color"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: includes/class-yit-assets.php:145
|
36 |
msgid "Default"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: includes/class-yit-assets.php:146
|
40 |
msgid "Select default color"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: includes/class-yit-assets.php:147
|
44 |
msgid "Select Color"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: includes/class-yit-assets.php:148
|
48 |
msgid "Color value"
|
49 |
msgstr ""
|
50 |
|
60 |
msgid "Settings"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: includes/class-yit-plugin-panel.php:451
|
64 |
+
#: includes/class-yit-plugin-panel.php:454
|
65 |
msgid "How to install premium version"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: includes/class-yit-plugin-panel.php:620
|
69 |
#: includes/class-yit-plugin-subpanel.php:132
|
|
|
70 |
msgid "Save Changes"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: includes/class-yit-plugin-panel.php:625
|
74 |
#: includes/class-yit-plugin-subpanel.php:136
|
75 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
76 |
msgid "If you continue with this action, you will reset all options in this page."
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: includes/class-yit-plugin-panel.php:625
|
80 |
#: includes/class-yit-plugin-subpanel.php:136
|
81 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
82 |
msgid "Are you sure?"
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: includes/class-yit-plugin-panel.php:629
|
86 |
#: includes/class-yit-plugin-subpanel.php:139
|
87 |
msgid "Reset to default"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: includes/class-yit-plugin-panel.php:868
|
91 |
msgid "The element you have entered already exists. Please, enter another name."
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: includes/class-yit-plugin-panel.php:869
|
95 |
msgid "Settings saved"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: includes/class-yit-plugin-panel.php:870
|
99 |
msgid "Settings reset"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: includes/class-yit-plugin-panel.php:871
|
103 |
msgid "Element deleted correctly."
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: includes/class-yit-plugin-panel.php:872
|
107 |
+
#: includes/class-yit-plugin-panel.php:873
|
108 |
msgid "Element updated correctly."
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: includes/class-yit-plugin-panel.php:874
|
112 |
msgid "Database imported correctly."
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: includes/class-yit-plugin-panel.php:875
|
116 |
msgid "An error has occurred during import. Please try again."
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: includes/class-yit-plugin-panel.php:876
|
120 |
msgid "The added file is not valid."
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: includes/class-yit-plugin-panel.php:877
|
124 |
msgid "Sorry, import is disabled."
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: includes/class-yit-plugin-panel.php:878
|
128 |
msgid "Sorting successful."
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: includes/class-yit-plugin-panel.php:1346
|
132 |
msgid "We need your support"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: includes/class-yit-plugin-panel.php:1347
|
136 |
msgid "to keep updating and improving the plugin. Please,"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: includes/class-yit-plugin-panel.php:1349
|
140 |
msgid "help us by leaving a good review"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: includes/class-yit-plugin-panel.php:1350
|
144 |
msgid ":) Thanks!"
|
145 |
msgstr ""
|
146 |
|
190 |
"later."
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: includes/class-yith-post-type-admin.php:286
|
194 |
+
#. translators: %s is the name of the post type (example Back to "Membership
|
195 |
+
#. Plans").
|
196 |
+
msgid "Back to \"%s\""
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: includes/class-yith-post-type-admin.php:286
|
200 |
+
msgid "Back to the list"
|
201 |
+
msgstr ""
|
202 |
+
|
203 |
#: includes/class-yith-system-status.php:110
|
204 |
msgid "WordPress Version"
|
205 |
msgstr ""
|
484 |
msgid "Reset"
|
485 |
msgstr ""
|
486 |
|
487 |
+
#: templates/panel/woocommerce/woocommerce-form.php:28
|
488 |
+
#: templates/panel/woocommerce/woocommerce-form.php:32
|
489 |
+
msgid "Save Options"
|
490 |
+
msgstr ""
|
491 |
+
|
492 |
+
#: templates/panel/woocommerce/woocommerce-form.php:32
|
493 |
+
msgid "Options Saved"
|
494 |
+
msgstr ""
|
495 |
+
|
496 |
+
#: templates/panel/woocommerce/woocommerce-form.php:38
|
497 |
msgid "Reset Defaults"
|
498 |
msgstr ""
|
499 |
|
573 |
msgid "Plugins Requirements"
|
574 |
msgstr ""
|
575 |
|
576 |
+
#: yit-functions.php:1823
|
577 |
+
#. translators: %s is the title of the post object.
|
578 |
+
msgid "Are you sure you want to move \"%s\" to trash?"
|
579 |
+
msgstr ""
|
580 |
+
|
581 |
+
#: yit-functions.php:1825 yit-functions.php:1983
|
582 |
+
#. translators: %s is the title of the post object.
|
583 |
+
msgid "Are you sure you want to delete \"%s\"?"
|
584 |
+
msgstr ""
|
585 |
+
|
586 |
+
#: yit-functions.php:1825 yit-functions.php:1983
|
587 |
+
msgid "This action cannot be undone and you will be not able to recover this data."
|
588 |
+
msgstr ""
|
589 |
+
|
590 |
+
#: yit-functions.php:1891
|
591 |
+
msgid "Confirm trash"
|
592 |
+
msgstr ""
|
593 |
+
|
594 |
+
#: yit-functions.php:1908 yit-functions.php:2035
|
595 |
+
msgid "Confirm delete"
|
596 |
+
msgstr ""
|
597 |
+
|
598 |
+
#: yit-functions.php:1921 yit-functions.php:1929 yit-functions.php:2046
|
599 |
+
msgid "Further actions"
|
600 |
+
msgstr ""
|
601 |
+
|
602 |
+
#: yit-plugin.php:203
|
603 |
msgid "License"
|
604 |
msgstr ""
|
605 |
|
618 |
msgid "YITH"
|
619 |
msgstr ""
|
620 |
|
621 |
+
#: includes/class-yit-assets.php:131
|
622 |
+
msgctxt "Button text"
|
623 |
+
msgid "Confirm"
|
624 |
+
msgstr ""
|
625 |
+
|
626 |
+
#: includes/class-yit-assets.php:132
|
627 |
+
msgctxt "Button text"
|
628 |
+
msgid "Cancel"
|
629 |
+
msgstr ""
|
630 |
+
|
631 |
#: includes/class-yith-dashboard.php:96
|
632 |
msgctxt "Plugin FW"
|
633 |
msgid "View Changelog"
|
724 |
msgid "NO"
|
725 |
msgstr ""
|
726 |
|
727 |
+
#: yit-functions.php:1837
|
728 |
+
msgctxt "Post action"
|
729 |
+
msgid "Preview"
|
730 |
+
msgstr ""
|
731 |
+
|
732 |
+
#: yit-functions.php:1846
|
733 |
+
msgctxt "Post action"
|
734 |
+
msgid "View"
|
735 |
+
msgstr ""
|
736 |
+
|
737 |
+
#: yit-functions.php:1857
|
738 |
+
msgctxt "Post action"
|
739 |
+
msgid "Edit"
|
740 |
+
msgstr ""
|
741 |
+
|
742 |
+
#: yit-functions.php:1865
|
743 |
+
msgctxt "Post action"
|
744 |
+
msgid "Duplicate"
|
745 |
+
msgstr ""
|
746 |
+
|
747 |
+
#: yit-functions.php:1877
|
748 |
+
msgctxt "Post action"
|
749 |
+
msgid "Restore"
|
750 |
+
msgstr ""
|
751 |
+
|
752 |
+
#: yit-functions.php:1885
|
753 |
+
msgctxt "Post action"
|
754 |
+
msgid "Trash"
|
755 |
+
msgstr ""
|
756 |
+
|
757 |
+
#: yit-functions.php:1901
|
758 |
+
msgctxt "Post action"
|
759 |
+
msgid "Delete Permanently"
|
760 |
+
msgstr ""
|
761 |
+
|
762 |
+
#: yit-functions.php:1893
|
763 |
+
msgctxt "Trash confirmation action"
|
764 |
+
msgid "Yes, trash"
|
765 |
+
msgstr ""
|
766 |
+
|
767 |
+
#: yit-functions.php:1910 yit-functions.php:2037
|
768 |
+
msgctxt "Delete confirmation action"
|
769 |
+
msgid "Yes, delete"
|
770 |
+
msgstr ""
|
771 |
+
|
772 |
+
#: yit-functions.php:1997
|
773 |
+
msgctxt "Term action"
|
774 |
+
msgid "View"
|
775 |
+
msgstr ""
|
776 |
+
|
777 |
+
#: yit-functions.php:2007
|
778 |
+
msgctxt "Term action"
|
779 |
+
msgid "Edit"
|
780 |
+
msgstr ""
|
781 |
+
|
782 |
+
#: yit-functions.php:2015
|
783 |
+
msgctxt "Term action"
|
784 |
+
msgid "Duplicate"
|
785 |
+
msgstr ""
|
786 |
+
|
787 |
+
#: yit-functions.php:2028
|
788 |
+
msgctxt "Term action"
|
789 |
+
msgid "Delete"
|
790 |
+
msgstr ""
|
791 |
+
|
792 |
+
#: yit-plugin.php:84
|
793 |
msgctxt "Plugin Row Meta"
|
794 |
msgid "Live Demo"
|
795 |
msgstr ""
|
796 |
|
797 |
+
#: yit-plugin.php:88
|
798 |
msgctxt "Plugin Row Meta"
|
799 |
msgid "Documentation"
|
800 |
msgstr ""
|
801 |
|
802 |
+
#: yit-plugin.php:92
|
803 |
msgctxt "Plugin Row Meta"
|
804 |
msgid "Support"
|
805 |
msgstr ""
|
806 |
|
807 |
+
#: yit-plugin.php:96
|
808 |
msgctxt "Plugin Row Meta"
|
809 |
msgid "Premium version"
|
810 |
msgstr ""
|
811 |
|
812 |
+
#: yit-plugin.php:199
|
813 |
msgctxt "Action links"
|
814 |
msgid "Settings"
|
815 |
msgstr ""
|
plugin-fw/templates/components/action-button.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Template for displaying the action-button component
|
4 |
+
*
|
5 |
+
* @var array $component The component.
|
6 |
+
* @package YITH\PluginFramework\Templates\Components
|
7 |
+
*/
|
8 |
+
|
9 |
+
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
10 |
+
|
11 |
+
list ( $component_id, $class, $the_title, $html_attributes, $html_data, $button_action, $icon, $icon_class, $url, $action_button_menu, $confirm_data ) = yith_plugin_fw_extract( $component, 'id', 'class', 'title', 'html_attributes', 'html_data', 'action', 'icon', 'icon_class', 'url', 'menu', 'confirm_data' );
|
12 |
+
|
13 |
+
$button_action = isset( $button_action ) ? $button_action : '';
|
14 |
+
$icon = isset( $icon ) ? $icon : $button_action;
|
15 |
+
$icon_class = isset( $icon_class ) ? $icon_class : "yith-icon yith-icon-{$icon}";
|
16 |
+
$url = isset( $url ) ? $url : '#';
|
17 |
+
$class = isset( $class ) ? $class : '';
|
18 |
+
$the_title = isset( $the_title ) ? $the_title : '';
|
19 |
+
$action_button_menu = isset( $action_button_menu ) ? $action_button_menu : array();
|
20 |
+
$confirm_data = isset( $confirm_data ) ? $confirm_data : array();
|
21 |
+
|
22 |
+
$classes = array( 'yith-plugin-fw__action-button', "yith-plugin-fw__action-button--{$button_action}-action", $class );
|
23 |
+
|
24 |
+
if ( ! ! $action_button_menu ) {
|
25 |
+
$classes[] = 'yith-plugin-fw__action-button--has-menu';
|
26 |
+
}
|
27 |
+
|
28 |
+
$link_classes = array( 'yith-plugin-fw__action-button__link' );
|
29 |
+
$link_data = array();
|
30 |
+
if ( isset( $confirm_data['title'], $confirm_data['message'] ) && '#' !== $url ) {
|
31 |
+
$link_classes[] = 'yith-plugin-fw__require-confirmation-link';
|
32 |
+
$link_data = $confirm_data;
|
33 |
+
}
|
34 |
+
|
35 |
+
if ( $the_title ) {
|
36 |
+
$link_classes[] = 'yith-plugin-fw__tips';
|
37 |
+
}
|
38 |
+
|
39 |
+
$class = implode( ' ', $classes );
|
40 |
+
$link_class = implode( ' ', array_filter( $link_classes ) );
|
41 |
+
?>
|
42 |
+
<span
|
43 |
+
id="<?php echo esc_attr( $component_id ); ?>"
|
44 |
+
class="<?php echo esc_attr( $class ); ?>"
|
45 |
+
<?php echo $html_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
46 |
+
<?php echo $html_data; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
47 |
+
>
|
48 |
+
<a class="<?php echo esc_attr( $link_class ); ?>"
|
49 |
+
|
50 |
+
href="<?php echo esc_url( $url ); ?>"
|
51 |
+
<?php if ( $the_title ) : ?>
|
52 |
+
data-tip="<?php echo esc_attr( $the_title ); ?>"
|
53 |
+
<?php endif; ?>
|
54 |
+
|
55 |
+
<?php yith_plugin_fw_html_data_to_string( $link_data, true ); ?>
|
56 |
+
>
|
57 |
+
<?php if ( $icon ) : ?>
|
58 |
+
<i class="yith-plugin-fw__action-button__icon <?php echo esc_attr( $icon_class ); ?>"></i>
|
59 |
+
<?php endif; ?>
|
60 |
+
</a>
|
61 |
+
<?php if ( $action_button_menu ) : ?>
|
62 |
+
<?php yith_plugin_fw_include_fw_template( '/components/resources/action-button-menu.php', compact( 'action_button_menu' ) ); ?>
|
63 |
+
<?php endif; ?>
|
64 |
+
</span>
|
plugin-fw/templates/components/list-table-blank-state.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Template for displaying the list-table-blank-state component
|
4 |
+
*
|
5 |
+
* @var array $component The component.
|
6 |
+
* @package YITH\PluginFramework\Templates\Components
|
7 |
+
*/
|
8 |
+
|
9 |
+
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
10 |
+
|
11 |
+
list ( $component_id, $class, $icon, $icon_class, $icon_url, $message, $cta, $html_attributes, $html_data ) = yith_plugin_fw_extract( $component, 'id', 'class', 'icon', 'icon_class', 'icon_url', 'message', 'cta', 'html_attributes', 'html_data' );
|
12 |
+
?>
|
13 |
+
<div id="<?php echo esc_attr( $component_id ); ?>"
|
14 |
+
class="yith-plugin-fw__list-table-blank-state <?php echo esc_attr( $class ); ?>"
|
15 |
+
<?php echo $html_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
16 |
+
<?php echo $html_data; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
17 |
+
>
|
18 |
+
<?php if ( $icon ) : ?>
|
19 |
+
<i class="yith-plugin-fw__list-table-blank-state__icon yith-icon yith-icon-<?php echo esc_attr( $icon ); ?>"></i>
|
20 |
+
<?php elseif ( $icon_class ) : ?>
|
21 |
+
<i class="yith-plugin-fw__list-table-blank-state__icon <?php echo esc_attr( $icon_class ); ?>"></i>
|
22 |
+
<?php elseif ( $icon_url ) : ?>
|
23 |
+
<img class="yith-plugin-fw__list-table-blank-state__icon" src="<?php echo esc_url( $icon_url ); ?>"/>
|
24 |
+
<?php endif; ?>
|
25 |
+
<div class="yith-plugin-fw__list-table-blank-state__message"><?php echo wp_kses_post( $message ); ?></div>
|
26 |
+
<?php if ( $cta && ! empty( $cta['title'] ) ) : ?>
|
27 |
+
<?php
|
28 |
+
$cta_url = ! empty( $cta['url'] ) ? $cta['url'] : '';
|
29 |
+
$cta_classes = array( 'yith-plugin-fw__list-table-blank-state__cta', 'yith-plugin-fw__button--primary', 'yith-plugin-fw__button--xxl' );
|
30 |
+
if ( ! empty( $cta['class'] ) ) {
|
31 |
+
$cta_classes[] = $cta['class'];
|
32 |
+
}
|
33 |
+
if ( ! empty( $cta['icon'] ) ) {
|
34 |
+
$cta_classes[] = 'yith-plugin-fw__button--with-icon';
|
35 |
+
}
|
36 |
+
$cta_classes = implode( ' ', $cta_classes );
|
37 |
+
?>
|
38 |
+
<div class="yith-plugin-fw__list-table-blank-state__cta-wrapper">
|
39 |
+
<a href="<?php echo esc_url( $cta_url ); ?>" class="<?php echo esc_attr( $cta_classes ); ?>">
|
40 |
+
<?php if ( ! empty( $cta['icon'] ) ) : ?>
|
41 |
+
<i class="yith-icon yith-icon-<?php echo esc_attr( $cta['icon'] ); ?>"></i>
|
42 |
+
<?php endif; ?>
|
43 |
+
<?php echo esc_html( $cta['title'] ); ?>
|
44 |
+
</a>
|
45 |
+
</div>
|
46 |
+
<?php endif; ?>
|
47 |
+
</div>
|
plugin-fw/templates/components/resources/action-button-menu.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Template for displaying the action-button-submenu
|
4 |
+
*
|
5 |
+
* @var array $action_button_menu The menu.
|
6 |
+
* @package YITH\PluginFramework\Templates\Components\Resources
|
7 |
+
*/
|
8 |
+
|
9 |
+
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
10 |
+
?>
|
11 |
+
<span class="yith-plugin-fw__action-button__menu">
|
12 |
+
<?php foreach ( $action_button_menu as $menu_key => $menu_item ) : ?>
|
13 |
+
<?php
|
14 |
+
$item_name = isset( $menu_item['name'] ) ? $menu_item['name'] : '';
|
15 |
+
$item_url = isset( $menu_item['url'] ) ? $menu_item['url'] : '';
|
16 |
+
$item_class = isset( $menu_item['class'] ) ? $menu_item['class'] : '';
|
17 |
+
$item_attributes = isset( $menu_item['attributes'] ) ? $menu_item['attributes'] : array();
|
18 |
+
$item_data = isset( $menu_item['data'] ) ? $menu_item['data'] : array();
|
19 |
+
$item_open_in_new_tab = isset( $menu_item['open_in_new_tab'] ) ? ! ! $menu_item['open_in_new_tab'] : false;
|
20 |
+
$item_confirm_data = isset( $menu_item['confirm_data'] ) ? $menu_item['confirm_data'] : array();
|
21 |
+
|
22 |
+
$item_classes = array( 'yith-plugin-fw__action-button__menu__item', "yith-plugin-fw__action-button__menu__item--{$menu_key}-key", $item_class );
|
23 |
+
|
24 |
+
if ( isset( $item_confirm_data['title'], $item_confirm_data['message'] ) && ! ! $item_url ) {
|
25 |
+
$item_classes[] = 'yith-plugin-fw__require-confirmation-link';
|
26 |
+
$item_data = array_merge( $item_data, $item_confirm_data );
|
27 |
+
}
|
28 |
+
|
29 |
+
$item_classes = implode( ' ', array_filter( $item_classes ) );
|
30 |
+
?>
|
31 |
+
<?php if ( ! ! $item_url ) : ?>
|
32 |
+
<a
|
33 |
+
class="<?php echo esc_attr( $item_classes ); ?>"
|
34 |
+
href="<?php echo esc_url( $item_url ); ?>"
|
35 |
+
<?php if ( ! ! $item_open_in_new_tab ) : ?>
|
36 |
+
target="_blank"
|
37 |
+
<?php endif; ?>
|
38 |
+
<?php
|
39 |
+
yith_plugin_fw_html_attributes_to_string( $item_attributes, true );
|
40 |
+
yith_plugin_fw_html_data_to_string( $item_data, true );
|
41 |
+
?>
|
42 |
+
><?php echo esc_html( $item_name ); ?></a>
|
43 |
+
<?php else : ?>
|
44 |
+
<span
|
45 |
+
class="<?php echo esc_attr( $item_classes ); ?>"
|
46 |
+
<?php
|
47 |
+
yith_plugin_fw_html_attributes_to_string( $item_attributes, true );
|
48 |
+
yith_plugin_fw_html_data_to_string( $item_data, true );
|
49 |
+
?>
|
50 |
+
><?php echo esc_html( $item_name ); ?></span>
|
51 |
+
<?php endif; ?>
|
52 |
+
|
53 |
+
<?php endforeach; ?>
|
54 |
+
</span>
|
plugin-fw/templates/fields/image-gallery.php
CHANGED
@@ -33,7 +33,7 @@ $image_ids = ! empty( $value ) ? array_filter( explode( ',', $value ) ) : array(
|
|
33 |
</ul>
|
34 |
<input type="button"
|
35 |
id="<?php echo esc_attr( $field_id ); ?>-button"
|
36 |
-
class="image-gallery-button button"
|
37 |
data-choose="<?php esc_attr_e( 'Add Images to Gallery', 'yith-plugin-fw' ); ?>"
|
38 |
data-update="<?php esc_attr_e( 'Add to gallery', 'yith-plugin-fw' ); ?>"
|
39 |
value="<?php esc_attr_e( 'Add images', 'yith-plugin-fw' ); ?>"
|
33 |
</ul>
|
34 |
<input type="button"
|
35 |
id="<?php echo esc_attr( $field_id ); ?>-button"
|
36 |
+
class="image-gallery-button button button-secondary"
|
37 |
data-choose="<?php esc_attr_e( 'Add Images to Gallery', 'yith-plugin-fw' ); ?>"
|
38 |
data-update="<?php esc_attr_e( 'Add to gallery', 'yith-plugin-fw' ); ?>"
|
39 |
value="<?php esc_attr_e( 'Add images', 'yith-plugin-fw' ); ?>"
|
plugin-fw/templates/fields/slider.php
CHANGED
@@ -11,8 +11,7 @@ defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
|
11 |
list ( $field_id, $class, $name, $value,
|
12 |
/**
|
13 |
* Array of option containing min and max value
|
14 |
-
*
|
15 |
-
* @deprecated 'option' since 3.5 | use 'min' and 'max' instead
|
16 |
*/
|
17 |
$option,
|
18 |
$min, $max, $step, $custom_attributes, $data ) = yith_plugin_fw_extract( $field, 'id', 'class', 'name', 'value', 'option', 'min', 'max', 'step', 'custom_attributes', 'data' );
|
11 |
list ( $field_id, $class, $name, $value,
|
12 |
/**
|
13 |
* Array of option containing min and max value
|
14 |
+
* This is deprecated since 3.5 | use 'min' and 'max' instead.
|
|
|
15 |
*/
|
16 |
$option,
|
17 |
$min, $max, $step, $custom_attributes, $data ) = yith_plugin_fw_extract( $field, 'id', 'class', 'name', 'value', 'option', 'min', 'max', 'step', 'custom_attributes', 'data' );
|
plugin-fw/templates/fields/upload.php
CHANGED
@@ -31,10 +31,10 @@ $file = $value;
|
|
31 |
<?php echo $custom_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
32 |
<?php echo isset( $data ) ? yith_plugin_fw_html_data_to_string( $data ) : ''; ?>
|
33 |
/>
|
34 |
-
<button class="
|
35 |
<button type="button"
|
36 |
id="<?php echo esc_attr( $field_id ); ?>-button-reset"
|
37 |
-
class="yith-plugin-fw-upload-button-reset
|
38 |
data-default="<?php echo isset( $default ) ? esc_attr( $default ) : ''; ?>"
|
39 |
><?php esc_html_e( 'Reset', 'yith-plugin-fw' ); ?></button>
|
40 |
</div>
|
31 |
<?php echo $custom_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
32 |
<?php echo isset( $data ) ? yith_plugin_fw_html_data_to_string( $data ) : ''; ?>
|
33 |
/>
|
34 |
+
<button class="yith-plugin-fw-upload-button" id="<?php echo esc_attr( $field_id ); ?>-button"><?php esc_html_e( 'Upload', 'yith-plugin-fw' ); ?></button>
|
35 |
<button type="button"
|
36 |
id="<?php echo esc_attr( $field_id ); ?>-button-reset"
|
37 |
+
class="yith-plugin-fw-upload-button-reset"
|
38 |
data-default="<?php echo isset( $default ) ? esc_attr( $default ) : ''; ?>"
|
39 |
><?php esc_html_e( 'Reset', 'yith-plugin-fw' ); ?></button>
|
40 |
</div>
|
plugin-fw/templates/panel/sub-tabs-nav.php
CHANGED
@@ -36,7 +36,7 @@ defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
|
36 |
<a href="<?php echo esc_url( $_tab->url ); ?>" class="yith-nav-sub-tab nav-tab <?php echo esc_attr( $_tab->class ); ?>">
|
37 |
<span class="yith-nav-sub-tab__title"><?php echo esc_html( $_tab->title ); ?></span>
|
38 |
<?php if ( $_tab->icon ) : ?>
|
39 |
-
<span class="yith-nav-sub-tab__icon yith-icon-<?php echo esc_attr( $_tab->icon ); ?>"></span>
|
40 |
<?php endif; ?>
|
41 |
</a>
|
42 |
<?php endforeach; ?>
|
36 |
<a href="<?php echo esc_url( $_tab->url ); ?>" class="yith-nav-sub-tab nav-tab <?php echo esc_attr( $_tab->class ); ?>">
|
37 |
<span class="yith-nav-sub-tab__title"><?php echo esc_html( $_tab->title ); ?></span>
|
38 |
<?php if ( $_tab->icon ) : ?>
|
39 |
+
<span class="yith-nav-sub-tab__icon yith-icon yith-icon-<?php echo esc_attr( $_tab->icon ); ?>"></span>
|
40 |
<?php endif; ?>
|
41 |
</a>
|
42 |
<?php endforeach; ?>
|
plugin-fw/templates/panel/woocommerce/woocommerce-form.php
CHANGED
@@ -25,8 +25,12 @@ $reset_warning = __( 'If you continue with this action, you will reset all optio
|
|
25 |
|
26 |
<p class="submit" style="float: left;margin: 0 10px 0 0;">
|
27 |
<?php wp_nonce_field( 'yit_panel_wc_options_' . $this->settings['page'], 'yit_panel_wc_options_nonce' ); ?>
|
28 |
-
<input class="button-primary" type="submit" value="<?php esc_html_e( 'Save
|
29 |
</p>
|
|
|
|
|
|
|
|
|
30 |
</form>
|
31 |
<form id="plugin-fw-wc-reset" method="post">
|
32 |
<input type="hidden" name="yit-action" value="wc-options-reset"/>
|
25 |
|
26 |
<p class="submit" style="float: left;margin: 0 10px 0 0;">
|
27 |
<?php wp_nonce_field( 'yit_panel_wc_options_' . $this->settings['page'], 'yit_panel_wc_options_nonce' ); ?>
|
28 |
+
<input class="button-primary" id="main-save-button" type="submit" value="<?php esc_html_e( 'Save Options', 'yith-plugin-fw' ); ?>"/>
|
29 |
</p>
|
30 |
+
|
31 |
+
<?php if ( apply_filters( 'yit_framework_show_float_save_button', true ) ) : ?>
|
32 |
+
<button id="yith-plugin-fw-float-save-button" class="button-primary" data-default-label="<?php esc_attr_e( 'Save Options', 'yith-plugin-fw' ); ?>" data-saved-label="<?php esc_attr_e( 'Options Saved', 'yith-plugin-fw' ); ?>"><i class="yith-icon yith-icon-save"></i> <?php esc_html_e( 'Save Options', 'yith-plugin-fw' ); ?></button>
|
33 |
+
<?php endif; ?>
|
34 |
</form>
|
35 |
<form id="plugin-fw-wc-reset" method="post">
|
36 |
<input type="hidden" name="yit-action" value="wc-options-reset"/>
|
plugin-fw/templates/panel/woocommerce/woocommerce-upload.php
CHANGED
@@ -35,7 +35,7 @@ $hidden_val = get_option( $id . '-yith-attachment-id', 0 );
|
|
35 |
value="<?php echo in_array( $value, array( '1', 1 ), true ) ? '' : esc_attr( $value ); ?>" class="yith-plugin-fw-upload-img-url"/>
|
36 |
<input type="hidden" name="<?php echo esc_attr( $id ); ?>-yith-attachment-id" id="<?php echo esc_attr( $id ); ?>-yith-attachment-id" value="<?php echo esc_attr( $hidden_val ); ?>"/>
|
37 |
<input type="button" value="<?php esc_attr_e( 'Upload', 'yith-plugin-fw' ); ?>" id="<?php echo esc_attr( $id ); ?>-button"
|
38 |
-
class="yith-plugin-fw-upload-button
|
39 |
</div>
|
40 |
<div class="clear"></div>
|
41 |
<span class="description"><?php echo wp_kses_post( $desc ); ?></span>
|
35 |
value="<?php echo in_array( $value, array( '1', 1 ), true ) ? '' : esc_attr( $value ); ?>" class="yith-plugin-fw-upload-img-url"/>
|
36 |
<input type="hidden" name="<?php echo esc_attr( $id ); ?>-yith-attachment-id" id="<?php echo esc_attr( $id ); ?>-yith-attachment-id" value="<?php echo esc_attr( $hidden_val ); ?>"/>
|
37 |
<input type="button" value="<?php esc_attr_e( 'Upload', 'yith-plugin-fw' ); ?>" id="<?php echo esc_attr( $id ); ?>-button"
|
38 |
+
class="yith-plugin-fw-upload-button"/>
|
39 |
</div>
|
40 |
<div class="clear"></div>
|
41 |
<span class="description"><?php echo wp_kses_post( $desc ); ?></span>
|
plugin-fw/yit-functions.php
CHANGED
@@ -1352,17 +1352,29 @@ if ( ! function_exists( 'yith_plugin_fw_get_default_logo' ) ) {
|
|
1352 |
}
|
1353 |
}
|
1354 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1355 |
if ( ! function_exists( 'yith_set_wrapper_class' ) ) {
|
1356 |
/**
|
1357 |
-
* Return the class for the
|
1358 |
*
|
1359 |
-
* @param array|string $class List of additional classes to add
|
1360 |
*
|
1361 |
* @return string
|
1362 |
* @author Emanuela Castorina
|
1363 |
*/
|
1364 |
function yith_set_wrapper_class( $class = '' ) {
|
1365 |
-
$new_class =
|
1366 |
$class = ( ! empty( $class ) && is_array( $class ) ) ? implode( ' ', $class ) : $class;
|
1367 |
|
1368 |
return $new_class . ' ' . $class;
|
@@ -1659,3 +1671,409 @@ if ( ! function_exists( 'yith_plugin_fw_copy_to_clipboard' ) ) {
|
|
1659 |
yith_plugin_fw_get_field( $field, true, false );
|
1660 |
}
|
1661 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1352 |
}
|
1353 |
}
|
1354 |
|
1355 |
+
if ( ! function_exists( 'yith_get_wrapper_class' ) ) {
|
1356 |
+
/**
|
1357 |
+
* Return the wrapper class for the UI style.
|
1358 |
+
*
|
1359 |
+
* @return string
|
1360 |
+
* @since 3.7.0
|
1361 |
+
*/
|
1362 |
+
function yith_get_wrapper_class() {
|
1363 |
+
return 'yith-plugin-ui';
|
1364 |
+
}
|
1365 |
+
}
|
1366 |
+
|
1367 |
if ( ! function_exists( 'yith_set_wrapper_class' ) ) {
|
1368 |
/**
|
1369 |
+
* Return the wrapper class for the UI style, by setting any additional class passed through the $class parameter.
|
1370 |
*
|
1371 |
+
* @param array|string $class List of additional classes to add to the UI style class.
|
1372 |
*
|
1373 |
* @return string
|
1374 |
* @author Emanuela Castorina
|
1375 |
*/
|
1376 |
function yith_set_wrapper_class( $class = '' ) {
|
1377 |
+
$new_class = yith_get_wrapper_class();
|
1378 |
$class = ( ! empty( $class ) && is_array( $class ) ) ? implode( ' ', $class ) : $class;
|
1379 |
|
1380 |
return $new_class . ' ' . $class;
|
1671 |
yith_plugin_fw_get_field( $field, true, false );
|
1672 |
}
|
1673 |
}
|
1674 |
+
|
1675 |
+
if ( ! function_exists( 'yith_plugin_fw_add_utm_data' ) ) {
|
1676 |
+
/**
|
1677 |
+
* Add UTM data in backend url
|
1678 |
+
*
|
1679 |
+
* @param string $url The url that want to track.
|
1680 |
+
* @param string $slug Plugin slug.
|
1681 |
+
* @param string $campaign Campaign to track. Default: plugin-version-author-uri.
|
1682 |
+
* @param string $source Where the link came from. Default: wp-dashboard.
|
1683 |
+
*
|
1684 |
+
* @since 3.6.10
|
1685 |
+
*/
|
1686 |
+
function yith_plugin_fw_add_utm_data( $url, $slug, $campaign = 'plugin-version-author-uri', $source = 'wp-dashboard' ) {
|
1687 |
+
$url = trailingslashit( $url );
|
1688 |
+
if ( ! empty( $slug ) ) {
|
1689 |
+
$utm_track_data = array(
|
1690 |
+
'utm_source' => $source,
|
1691 |
+
'utm_medium' => $slug,
|
1692 |
+
'utm_campaign' => $campaign,
|
1693 |
+
);
|
1694 |
+
|
1695 |
+
$url = add_query_arg( $utm_track_data, $url );
|
1696 |
+
}
|
1697 |
+
|
1698 |
+
return $url;
|
1699 |
+
}
|
1700 |
+
}
|
1701 |
+
|
1702 |
+
if ( ! function_exists( 'yith_plugin_fw_include_fw_template' ) ) {
|
1703 |
+
/**
|
1704 |
+
* Include a FW template
|
1705 |
+
*
|
1706 |
+
* @param string $template The template.
|
1707 |
+
* @param array $args Arguments.
|
1708 |
+
*
|
1709 |
+
* @since 3.7.0
|
1710 |
+
*/
|
1711 |
+
function yith_plugin_fw_include_fw_template( $template, $args = array() ) {
|
1712 |
+
$_template_path = trailingslashit( YIT_CORE_PLUGIN_TEMPLATE_PATH ) . $template;
|
1713 |
+
|
1714 |
+
if ( file_exists( $_template_path ) ) {
|
1715 |
+
extract( $args ); // phpcs:ignore WordPress.PHP.DontExtract.extract_extract
|
1716 |
+
include $_template_path;
|
1717 |
+
}
|
1718 |
+
}
|
1719 |
+
}
|
1720 |
+
|
1721 |
+
if ( ! function_exists( 'yith_plugin_fw_html_attributes_to_string' ) ) {
|
1722 |
+
/**
|
1723 |
+
* Transform attributes array to HTML attributes string.
|
1724 |
+
*
|
1725 |
+
* @param array $attributes The array of attributes.
|
1726 |
+
* @param bool $echo Set to true to print it directly; false otherwise.
|
1727 |
+
*
|
1728 |
+
* @return string
|
1729 |
+
* @since 3.7.0
|
1730 |
+
*/
|
1731 |
+
function yith_plugin_fw_html_attributes_to_string( $attributes = array(), $echo = false ) {
|
1732 |
+
$html_attributes = '';
|
1733 |
+
|
1734 |
+
if ( is_array( $attributes ) ) {
|
1735 |
+
$html_attributes = array();
|
1736 |
+
foreach ( $attributes as $key => $value ) {
|
1737 |
+
$html_attributes[] = esc_attr( $key ) . '="' . esc_attr( $value ) . '"';
|
1738 |
+
}
|
1739 |
+
$html_attributes = implode( ' ', $html_attributes );
|
1740 |
+
}
|
1741 |
+
|
1742 |
+
if ( $echo ) {
|
1743 |
+
echo $html_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
1744 |
+
}
|
1745 |
+
|
1746 |
+
return $html_attributes;
|
1747 |
+
}
|
1748 |
+
}
|
1749 |
+
|
1750 |
+
if ( ! function_exists( 'yith_plugin_fw_get_component' ) ) {
|
1751 |
+
/**
|
1752 |
+
* Retrieve a component.
|
1753 |
+
*
|
1754 |
+
* @param array $component The component.
|
1755 |
+
* @param bool $echo Set to true to print the component directly; false otherwise.
|
1756 |
+
*
|
1757 |
+
* @return false|string
|
1758 |
+
* @since 3.7.0
|
1759 |
+
*/
|
1760 |
+
function yith_plugin_fw_get_component( $component, $echo = true ) {
|
1761 |
+
if ( ! empty( $component['type'] ) ) {
|
1762 |
+
$type = sanitize_title( $component['type'] );
|
1763 |
+
$defaults = array(
|
1764 |
+
'id' => '',
|
1765 |
+
'class' => '',
|
1766 |
+
'attributes' => array(),
|
1767 |
+
'data' => array(),
|
1768 |
+
);
|
1769 |
+
|
1770 |
+
$component = wp_parse_args( $component, $defaults );
|
1771 |
+
|
1772 |
+
$component['html_attributes'] = yith_plugin_fw_html_attributes_to_string( $component['attributes'] );
|
1773 |
+
$component['html_data'] = yith_plugin_fw_html_data_to_string( $component['data'] );
|
1774 |
+
|
1775 |
+
$component_template = '/components/' . $type . '.php';
|
1776 |
+
|
1777 |
+
if ( ! $echo ) {
|
1778 |
+
ob_start();
|
1779 |
+
}
|
1780 |
+
|
1781 |
+
yith_plugin_fw_include_fw_template( $component_template, compact( 'component' ) );
|
1782 |
+
|
1783 |
+
if ( ! $echo ) {
|
1784 |
+
return ob_get_clean();
|
1785 |
+
}
|
1786 |
+
}
|
1787 |
+
|
1788 |
+
return '';
|
1789 |
+
}
|
1790 |
+
}
|
1791 |
+
|
1792 |
+
if ( ! function_exists( 'yith_plugin_fw_get_default_post_actions' ) ) {
|
1793 |
+
/**
|
1794 |
+
* Retrieve the default post actions to be used in WP List tables to show action buttons.
|
1795 |
+
*
|
1796 |
+
* @param WP_Post|int $post The post.
|
1797 |
+
* @param array $args {
|
1798 |
+
* Optional. Arguments to retrieve actions.
|
1799 |
+
*
|
1800 |
+
* @type array $more-menu Array of more-menu items.
|
1801 |
+
* @type array|bool $more-menu-in-trash false: the menu will be not shown in trash | true: the menu will be shown in trash | array: set specific menu for trash.
|
1802 |
+
* @type string|false $duplicate-url The Duplicate URL. Default: false (the duplicate action will be not shown).
|
1803 |
+
* @type string|false $confirm-trash-message The 'confirm trash' message. Set to false to not ask for trash confirmation.
|
1804 |
+
* @type string|false $confirm-delete-message The 'confirm delete' message. Set to false to not ask for delete confirmation.
|
1805 |
+
* }
|
1806 |
+
*
|
1807 |
+
* @return array
|
1808 |
+
* @since 3.7.0
|
1809 |
+
*/
|
1810 |
+
function yith_plugin_fw_get_default_post_actions( $post, $args = array() ) {
|
1811 |
+
$post = get_post( $post );
|
1812 |
+
$actions = array();
|
1813 |
+
if ( $post ) {
|
1814 |
+
$title = _draft_or_post_title( $post );
|
1815 |
+
$post_type_object = get_post_type_object( $post->post_type );
|
1816 |
+
$can_edit_post = current_user_can( 'edit_post', $post->ID );
|
1817 |
+
|
1818 |
+
$defaults = array(
|
1819 |
+
'more-menu' => array(),
|
1820 |
+
'more-menu-in-trash' => false,
|
1821 |
+
'duplicate-url' => false,
|
1822 |
+
// translators: %s is the title of the post object.
|
1823 |
+
'confirm-trash-message' => sprintf( __( 'Are you sure you want to move "%s" to trash?', 'yith-plugin-fw' ), '<strong>' . $title . '</strong>' ),
|
1824 |
+
// translators: %s is the title of the post object.
|
1825 |
+
'confirm-delete-message' => sprintf( __( 'Are you sure you want to delete "%s"?', 'yith-plugin-fw' ), '<strong>' . $title . '</strong>' ) . '<br /><br />' . __( 'This action cannot be undone and you will be not able to recover this data.', 'yith-plugin-fw' ),
|
1826 |
+
);
|
1827 |
+
|
1828 |
+
$args = wp_parse_args( $args, $defaults );
|
1829 |
+
|
1830 |
+
if ( is_post_type_viewable( $post_type_object ) ) {
|
1831 |
+
if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ), true ) ) {
|
1832 |
+
if ( $can_edit_post ) {
|
1833 |
+
$preview_link = get_preview_post_link( $post );
|
1834 |
+
|
1835 |
+
$actions['view'] = array(
|
1836 |
+
'type' => 'action-button',
|
1837 |
+
'title' => _x( 'Preview', 'Post action', 'yith-plugin-fw' ),
|
1838 |
+
'action' => 'view',
|
1839 |
+
'icon' => 'eye',
|
1840 |
+
'url' => $preview_link,
|
1841 |
+
);
|
1842 |
+
}
|
1843 |
+
} elseif ( 'trash' !== $post->post_status ) {
|
1844 |
+
$actions['view'] = array(
|
1845 |
+
'type' => 'action-button',
|
1846 |
+
'title' => _x( 'View', 'Post action', 'yith-plugin-fw' ),
|
1847 |
+
'action' => 'view',
|
1848 |
+
'icon' => 'eye',
|
1849 |
+
'url' => get_permalink( $post->ID ),
|
1850 |
+
);
|
1851 |
+
}
|
1852 |
+
}
|
1853 |
+
|
1854 |
+
if ( $can_edit_post && 'trash' !== $post->post_status ) {
|
1855 |
+
$actions['edit'] = array(
|
1856 |
+
'type' => 'action-button',
|
1857 |
+
'title' => _x( 'Edit', 'Post action', 'yith-plugin-fw' ),
|
1858 |
+
'action' => 'edit',
|
1859 |
+
'url' => get_edit_post_link( $post->ID ),
|
1860 |
+
);
|
1861 |
+
|
1862 |
+
if ( $args['duplicate-url'] ) {
|
1863 |
+
$actions['duplicate'] = array(
|
1864 |
+
'type' => 'action-button',
|
1865 |
+
'title' => _x( 'Duplicate', 'Post action', 'yith-plugin-fw' ),
|
1866 |
+
'action' => 'duplicate',
|
1867 |
+
'icon' => 'clone',
|
1868 |
+
'url' => $args['duplicate-url'],
|
1869 |
+
);
|
1870 |
+
}
|
1871 |
+
}
|
1872 |
+
|
1873 |
+
if ( current_user_can( 'delete_post', $post->ID ) ) {
|
1874 |
+
if ( 'trash' === $post->post_status ) {
|
1875 |
+
$actions['untrash'] = array(
|
1876 |
+
'type' => 'action-button',
|
1877 |
+
'title' => _x( 'Restore', 'Post action', 'yith-plugin-fw' ),
|
1878 |
+
'action' => 'untrash',
|
1879 |
+
'icon' => 'reply',
|
1880 |
+
'url' => wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ),
|
1881 |
+
);
|
1882 |
+
} elseif ( EMPTY_TRASH_DAYS ) {
|
1883 |
+
$actions['trash'] = array(
|
1884 |
+
'type' => 'action-button',
|
1885 |
+
'title' => _x( 'Trash', 'Post action', 'yith-plugin-fw' ),
|
1886 |
+
'action' => 'trash',
|
1887 |
+
'url' => get_delete_post_link( $post->ID ),
|
1888 |
+
);
|
1889 |
+
if ( $args['confirm-trash-message'] ) {
|
1890 |
+
$actions['trash']['confirm_data'] = array(
|
1891 |
+
'title' => __( 'Confirm trash', 'yith-plugin-fw' ),
|
1892 |
+
'message' => $args['confirm-trash-message'],
|
1893 |
+
'confirm-button' => _x( 'Yes, trash', 'Trash confirmation action', 'yith-plugin-fw' ),
|
1894 |
+
'confirm-button-type' => 'delete',
|
1895 |
+
);
|
1896 |
+
}
|
1897 |
+
}
|
1898 |
+
if ( 'trash' === $post->post_status || ! EMPTY_TRASH_DAYS ) {
|
1899 |
+
$actions['delete'] = array(
|
1900 |
+
'type' => 'action-button',
|
1901 |
+
'title' => _x( 'Delete Permanently', 'Post action', 'yith-plugin-fw' ),
|
1902 |
+
'action' => 'delete',
|
1903 |
+
'icon' => 'trash',
|
1904 |
+
'url' => get_delete_post_link( $post->ID, '', true ),
|
1905 |
+
);
|
1906 |
+
if ( $args['confirm-delete-message'] ) {
|
1907 |
+
$actions['delete']['confirm_data'] = array(
|
1908 |
+
'title' => __( 'Confirm delete', 'yith-plugin-fw' ),
|
1909 |
+
'message' => $args['confirm-delete-message'],
|
1910 |
+
'confirm-button' => _x( 'Yes, delete', 'Delete confirmation action', 'yith-plugin-fw' ),
|
1911 |
+
'confirm-button-type' => 'delete',
|
1912 |
+
);
|
1913 |
+
}
|
1914 |
+
}
|
1915 |
+
}
|
1916 |
+
|
1917 |
+
if ( $args['more-menu'] ) {
|
1918 |
+
if ( 'trash' !== $post->post_status || true === $args['more-menu-in-trash'] ) {
|
1919 |
+
$actions['more'] = array(
|
1920 |
+
'type' => 'action-button',
|
1921 |
+
'title' => __( 'Further actions', 'yith-plugin-fw' ),
|
1922 |
+
'action' => 'more',
|
1923 |
+
'url' => '#',
|
1924 |
+
'menu' => $args['more-menu'],
|
1925 |
+
);
|
1926 |
+
} elseif ( ! ! $args['more-menu-in-trash'] ) {
|
1927 |
+
$actions['more'] = array(
|
1928 |
+
'type' => 'action-button',
|
1929 |
+
'title' => __( 'Further actions', 'yith-plugin-fw' ),
|
1930 |
+
'action' => 'more',
|
1931 |
+
'url' => '#',
|
1932 |
+
'menu' => $args['more-menu-in-trash'],
|
1933 |
+
);
|
1934 |
+
}
|
1935 |
+
}
|
1936 |
+
}
|
1937 |
+
|
1938 |
+
return $actions;
|
1939 |
+
}
|
1940 |
+
}
|
1941 |
+
|
1942 |
+
if ( ! function_exists( 'yith_plugin_fw_get_default_term_actions' ) ) {
|
1943 |
+
/**
|
1944 |
+
* Retrieve the default term actions to be used in WP List tables to show action buttons.
|
1945 |
+
*
|
1946 |
+
* @param WP_Term|int $term The term.
|
1947 |
+
* @param array $args {
|
1948 |
+
* Optional. Arguments to retrieve actions.
|
1949 |
+
*
|
1950 |
+
* @type string $taxonomy The taxonomy. If not set, the taxonomy will be retrieved by $_REQUEST.
|
1951 |
+
* @type string $object-type The object type the term is assigned to (ex: the post-type).
|
1952 |
+
* @type array $more-menu Array of more-menu items.
|
1953 |
+
* @type string|false $duplicate-url The Duplicate URL. Default: false (the duplicate action will be not shown).
|
1954 |
+
* @type string|false $confirm-delete-message The 'confirm delete' message. Set to false to not ask for delete confirmation.
|
1955 |
+
* }
|
1956 |
+
*
|
1957 |
+
* @return array
|
1958 |
+
* @since 3.7.0
|
1959 |
+
*/
|
1960 |
+
function yith_plugin_fw_get_default_term_actions( $term, $args = array() ) {
|
1961 |
+
if ( isset( $args['taxonomy'] ) ) {
|
1962 |
+
$taxonomy = $args['taxonomy'];
|
1963 |
+
} else {
|
1964 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
1965 |
+
$taxonomy = isset( $_REQUEST['taxonomy'] ) ? sanitize_title( wp_unslash( $_REQUEST['taxonomy'] ) ) : false;
|
1966 |
+
}
|
1967 |
+
|
1968 |
+
if ( is_numeric( $term ) ) {
|
1969 |
+
$term_id = absint( $term );
|
1970 |
+
$term = get_term_by( 'id', $term_id, $taxonomy );
|
1971 |
+
}
|
1972 |
+
|
1973 |
+
$actions = array();
|
1974 |
+
$tax = get_taxonomy( $taxonomy );
|
1975 |
+
if ( ! empty( $term->term_id ) && $tax ) {
|
1976 |
+
$title = $term->name;
|
1977 |
+
$uri = wp_doing_ajax() ? wp_get_referer() : esc_url_raw( wp_unslash( isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '' ) );
|
1978 |
+
$defaults = array(
|
1979 |
+
'object-type' => '',
|
1980 |
+
'more-menu' => array(),
|
1981 |
+
'duplicate-url' => false,
|
1982 |
+
// translators: %s is the title of the post object.
|
1983 |
+
'confirm-delete-message' => sprintf( __( 'Are you sure you want to delete "%s"?', 'yith-plugin-fw' ), '<strong>' . $title . '</strong>' ) . '<br /><br />' . __( 'This action cannot be undone and you will be not able to recover this data.', 'yith-plugin-fw' ),
|
1984 |
+
);
|
1985 |
+
|
1986 |
+
$args = wp_parse_args( $args, $defaults );
|
1987 |
+
|
1988 |
+
$edit_link = add_query_arg(
|
1989 |
+
'wp_http_referer',
|
1990 |
+
$uri,
|
1991 |
+
get_edit_term_link( $term->term_id, $taxonomy, $args['object-type'] )
|
1992 |
+
);
|
1993 |
+
|
1994 |
+
if ( is_taxonomy_viewable( $tax ) ) {
|
1995 |
+
$actions['view'] = array(
|
1996 |
+
'type' => 'action-button',
|
1997 |
+
'title' => _x( 'View', 'Term action', 'yith-plugin-fw' ),
|
1998 |
+
'action' => 'view',
|
1999 |
+
'icon' => 'eye',
|
2000 |
+
'url' => get_term_link( $term ),
|
2001 |
+
);
|
2002 |
+
}
|
2003 |
+
|
2004 |
+
if ( current_user_can( 'edit_term', $term->term_id ) ) {
|
2005 |
+
$actions['edit'] = array(
|
2006 |
+
'type' => 'action-button',
|
2007 |
+
'title' => _x( 'Edit', 'Term action', 'yith-plugin-fw' ),
|
2008 |
+
'action' => 'edit',
|
2009 |
+
'url' => $edit_link,
|
2010 |
+
);
|
2011 |
+
|
2012 |
+
if ( $args['duplicate-url'] ) {
|
2013 |
+
$actions['duplicate'] = array(
|
2014 |
+
'type' => 'action-button',
|
2015 |
+
'title' => _x( 'Duplicate', 'Term action', 'yith-plugin-fw' ),
|
2016 |
+
'action' => 'duplicate',
|
2017 |
+
'icon' => 'clone',
|
2018 |
+
'url' => $args['duplicate-url'],
|
2019 |
+
);
|
2020 |
+
}
|
2021 |
+
}
|
2022 |
+
|
2023 |
+
if ( current_user_can( 'delete_term', $term->term_id ) ) {
|
2024 |
+
$delete_url = wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$term->term_id", 'delete-tag_' . $term->term_id );
|
2025 |
+
|
2026 |
+
$actions['delete'] = array(
|
2027 |
+
'type' => 'action-button',
|
2028 |
+
'title' => _x( 'Delete', 'Term action', 'yith-plugin-fw' ),
|
2029 |
+
'action' => 'delete',
|
2030 |
+
'icon' => 'trash',
|
2031 |
+
'url' => $delete_url,
|
2032 |
+
);
|
2033 |
+
if ( $args['confirm-delete-message'] ) {
|
2034 |
+
$actions['delete']['confirm_data'] = array(
|
2035 |
+
'title' => __( 'Confirm delete', 'yith-plugin-fw' ),
|
2036 |
+
'message' => $args['confirm-delete-message'],
|
2037 |
+
'confirm-button' => _x( 'Yes, delete', 'Delete confirmation action', 'yith-plugin-fw' ),
|
2038 |
+
'confirm-button-type' => 'delete',
|
2039 |
+
);
|
2040 |
+
}
|
2041 |
+
}
|
2042 |
+
|
2043 |
+
if ( $args['more-menu'] ) {
|
2044 |
+
$actions['more'] = array(
|
2045 |
+
'type' => 'action-button',
|
2046 |
+
'title' => __( 'Further actions', 'yith-plugin-fw' ),
|
2047 |
+
'action' => 'more',
|
2048 |
+
'url' => '#',
|
2049 |
+
'menu' => $args['more-menu'],
|
2050 |
+
);
|
2051 |
+
}
|
2052 |
+
}
|
2053 |
+
|
2054 |
+
return $actions;
|
2055 |
+
}
|
2056 |
+
}
|
2057 |
+
|
2058 |
+
if ( ! function_exists( 'yith_plugin_fw_get_action_buttons' ) ) {
|
2059 |
+
/**
|
2060 |
+
* Retrieve action buttons.
|
2061 |
+
*
|
2062 |
+
* @param array $actions The actions.
|
2063 |
+
* @param bool $echo Set to true to print the field directly; false otherwise.
|
2064 |
+
*
|
2065 |
+
* @return string
|
2066 |
+
* @since 3.7.0
|
2067 |
+
*/
|
2068 |
+
function yith_plugin_fw_get_action_buttons( $actions, $echo = true ) {
|
2069 |
+
$actions_html = '';
|
2070 |
+
|
2071 |
+
foreach ( $actions as $action ) {
|
2072 |
+
$action['type'] = 'action-button';
|
2073 |
+
|
2074 |
+
$actions_html .= yith_plugin_fw_get_component( $action, $echo );
|
2075 |
+
}
|
2076 |
+
|
2077 |
+
return $actions_html;
|
2078 |
+
}
|
2079 |
+
}
|
plugin-fw/yit-plugin.php
CHANGED
@@ -36,6 +36,7 @@ require_once 'includes/privacy/class-yith-privacy.php';
|
|
36 |
require_once 'includes/privacy/class-yith-privacy-plugin-abstract.php';
|
37 |
require_once 'includes/promo/yith-promo.php';
|
38 |
require_once 'includes/class-yith-system-status.php';
|
|
|
39 |
|
40 |
// Gutenberg Support.
|
41 |
if ( class_exists( 'WP_Block_Type_Registry' ) ) {
|
@@ -65,6 +66,11 @@ if ( ! function_exists( 'yit_plugin_fw_row_meta' ) ) {
|
|
65 |
* @since 3.0.17
|
66 |
*/
|
67 |
function yit_plugin_fw_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
|
|
|
|
|
|
|
|
|
|
|
68 |
$base_uri = array(
|
69 |
'live_demo' => 'https://plugins.yithemes.com/',
|
70 |
'documentation' => 'https://docs.yithemes.com/',
|
@@ -155,13 +161,20 @@ if ( ! function_exists( 'yit_plugin_fw_row_meta' ) ) {
|
|
155 |
}
|
156 |
|
157 |
if ( ! empty( $url ) && ! empty( $label ) ) {
|
158 |
-
$url =
|
159 |
$plugin_meta[] = sprintf( '<a href="%s" target="_blank"><span class="%s"></span>%s</a>', $url, $icon, $label );
|
160 |
}
|
161 |
}
|
162 |
|
163 |
-
|
164 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
|
166 |
return $plugin_meta;
|
167 |
}
|
36 |
require_once 'includes/privacy/class-yith-privacy-plugin-abstract.php';
|
37 |
require_once 'includes/promo/yith-promo.php';
|
38 |
require_once 'includes/class-yith-system-status.php';
|
39 |
+
require_once 'includes/class-yith-post-type-admin.php';
|
40 |
|
41 |
// Gutenberg Support.
|
42 |
if ( class_exists( 'WP_Block_Type_Registry' ) ) {
|
66 |
* @since 3.0.17
|
67 |
*/
|
68 |
function yit_plugin_fw_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
|
69 |
+
if ( false === strstr( $plugin_file, 'yith' ) ) {
|
70 |
+
// Not an YITH plugin.
|
71 |
+
return $plugin_meta;
|
72 |
+
}
|
73 |
+
|
74 |
$base_uri = array(
|
75 |
'live_demo' => 'https://plugins.yithemes.com/',
|
76 |
'documentation' => 'https://docs.yithemes.com/',
|
161 |
}
|
162 |
|
163 |
if ( ! empty( $url ) && ! empty( $label ) ) {
|
164 |
+
$url = yith_plugin_fw_add_utm_data( $url, $slug, 'plugin-version-author-uri', 'wp-dashboard' );
|
165 |
$plugin_meta[] = sprintf( '<a href="%s" target="_blank"><span class="%s"></span>%s</a>', $url, $icon, $label );
|
166 |
}
|
167 |
}
|
168 |
|
169 |
+
if ( isset( $plugin_meta[1] ) ) {
|
170 |
+
$utm_author_uri = yith_plugin_fw_add_utm_data( $plugin_data['AuthorURI'], $slug, 'plugin-version-author-uri', 'wp-dashboard' );
|
171 |
+
$plugin_meta[1] = str_replace( $plugin_data['AuthorURI'], $utm_author_uri, $plugin_meta[1] );
|
172 |
+
}
|
173 |
+
|
174 |
+
if ( isset( $plugin_meta[2] ) ) {
|
175 |
+
$utm_plugin_uri = yith_plugin_fw_add_utm_data( $plugin_data['PluginURI'], $slug, 'plugin-version-author-uri', 'wp-dashboard' );
|
176 |
+
$plugin_meta[2] = str_replace( $plugin_data['PluginURI'], $utm_plugin_uri, $plugin_meta[2] );
|
177 |
+
}
|
178 |
|
179 |
return $plugin_meta;
|
180 |
}
|
templates/filters/filter-tax/filter-start.php
CHANGED
@@ -10,9 +10,10 @@
|
|
10 |
/**
|
11 |
* Variables available for this template:
|
12 |
*
|
13 |
-
* @var $preset
|
14 |
-
* @var $filter
|
15 |
-
* @var $level
|
|
|
16 |
*/
|
17 |
|
18 |
if ( ! defined( 'YITH_WCAN' ) ) {
|
@@ -21,9 +22,9 @@ if ( ! defined( 'YITH_WCAN' ) ) {
|
|
21 |
?>
|
22 |
|
23 |
<?php if ( 'select' == $filter->get_filter_design() ) : ?>
|
24 |
-
<select class="filter-items <?php echo esc_attr( $filter->get_items_container_classes() ); ?>" name="filter[<?php echo esc_attr( $preset->get_id() ); ?>][<?php echo esc_attr( $filter->get_id() ); ?>]" id="filter_<?php echo esc_attr( $preset->get_id() ); ?>_<?php echo esc_attr( $filter->get_id() ); ?>" <?php echo $filter->is_multiple_allowed() ? 'multiple="multiple"' : ''; ?> data-show_search="<?php echo esc_attr( $filter->is_search_enabled() ? 1 : 0 ); ?>" >
|
25 |
<?php if ( ! $filter->is_multiple_allowed() ) : ?>
|
26 |
-
<option class="filter-item select" value=""><?php echo
|
27 |
<?php endif; ?>
|
28 |
<?php else : ?>
|
29 |
<ul class="filter-items <?php echo esc_attr( $filter->get_items_container_classes() ); ?> level-<?php echo esc_attr( $level ); ?>">
|
10 |
/**
|
11 |
* Variables available for this template:
|
12 |
*
|
13 |
+
* @var $preset YITH_WCAN_Preset
|
14 |
+
* @var $filter YITH_WCAN_Filter_Tax
|
15 |
+
* @var $level int
|
16 |
+
* @var $all_label string
|
17 |
*/
|
18 |
|
19 |
if ( ! defined( 'YITH_WCAN' ) ) {
|
22 |
?>
|
23 |
|
24 |
<?php if ( 'select' == $filter->get_filter_design() ) : ?>
|
25 |
+
<select class="filter-items <?php echo esc_attr( $filter->get_items_container_classes() ); ?>" name="filter[<?php echo esc_attr( $preset->get_id() ); ?>][<?php echo esc_attr( $filter->get_id() ); ?>]" id="filter_<?php echo esc_attr( $preset->get_id() ); ?>_<?php echo esc_attr( $filter->get_id() ); ?>" <?php echo $filter->is_multiple_allowed() ? 'multiple="multiple"' : ''; ?> data-show_search="<?php echo esc_attr( $filter->is_search_enabled() ? 1 : 0 ); ?>" data-all-label="<?php echo esc_attr( $all_label ); ?>" >
|
26 |
<?php if ( ! $filter->is_multiple_allowed() ) : ?>
|
27 |
+
<option class="filter-item select" value=""><?php echo esc_html( $all_label ); ?></option>
|
28 |
<?php endif; ?>
|
29 |
<?php else : ?>
|
30 |
<ul class="filter-items <?php echo esc_attr( $filter->get_items_container_classes() ); ?> level-<?php echo esc_attr( $level ); ?>">
|
templates/filters/filter-tax/items/checkbox.php
CHANGED
@@ -30,7 +30,7 @@ if ( ! defined( 'YITH_WCAN' ) ) {
|
|
30 |
|
31 |
<li class="filter-item checkbox <?php echo $filter->is_term_active( $term ) ? 'active' : ''; ?> <?php echo esc_attr( $additional_classes ); ?>">
|
32 |
<label for="<?php echo esc_attr( $item_id ); ?>">
|
33 |
-
<input type="checkbox" id="<?php echo esc_attr( $item_id ); ?>" name="<?php echo esc_attr( $item_name ); ?>" value="<?php echo esc_attr( $term->slug ); ?>" <?php checked( $filter->is_term_active( $term ) ); ?> />
|
34 |
|
35 |
<a href="<?php echo esc_url( $filter->get_term_url( $term ) ); ?>" <?php yith_wcan_add_rel_nofollow_to_url( true, true ); ?> role="button" class="term-label" <?php echo ! empty( $tooltip ) ? 'data-title="' . esc_attr( $tooltip ) . '"' : ''; ?> >
|
36 |
<?php echo esc_html( ! empty( $label ) ? $label : $term->name ); ?>
|
30 |
|
31 |
<li class="filter-item checkbox <?php echo $filter->is_term_active( $term ) ? 'active' : ''; ?> <?php echo esc_attr( $additional_classes ); ?>">
|
32 |
<label for="<?php echo esc_attr( $item_id ); ?>">
|
33 |
+
<input type="checkbox" id="<?php echo esc_attr( $item_id ); ?>" name="<?php echo esc_attr( $item_name ); ?>" value="<?php echo esc_attr( yith_wcan_esc_term_slug( $term->slug ) ); ?>" <?php checked( $filter->is_term_active( $term ) ); ?> />
|
34 |
|
35 |
<a href="<?php echo esc_url( $filter->get_term_url( $term ) ); ?>" <?php yith_wcan_add_rel_nofollow_to_url( true, true ); ?> role="button" class="term-label" <?php echo ! empty( $tooltip ) ? 'data-title="' . esc_attr( $tooltip ) . '"' : ''; ?> >
|
36 |
<?php echo esc_html( ! empty( $label ) ? $label : $term->name ); ?>
|
templates/filters/filter-tax/items/color.php
CHANGED
@@ -32,7 +32,7 @@ if ( ! defined( 'YITH_WCAN' ) ) {
|
|
32 |
?>
|
33 |
|
34 |
<li class="filter-item color <?php echo $filter->is_term_active( $term ) ? 'active' : ''; ?> <?php echo esc_attr( $additional_classes ); ?>">
|
35 |
-
<a href="<?php echo esc_url( $filter->get_term_url( $term ) ); ?>" <?php yith_wcan_add_rel_nofollow_to_url( true, true ); ?> role="button" data-term-id="<?php echo esc_attr( $term->term_id ); ?>" data-term-slug="<?php echo esc_attr( $term->slug ); ?>" <?php echo ! empty( $tooltip ) ? 'data-title="' . esc_attr( $tooltip ) . '"' : ''; ?>>
|
36 |
<?php if ( 'image' === $mode && ! empty( $image ) ) : ?>
|
37 |
<span class="term-image">
|
38 |
<?php echo wp_get_attachment_image( $image ); ?>
|
32 |
?>
|
33 |
|
34 |
<li class="filter-item color <?php echo $filter->is_term_active( $term ) ? 'active' : ''; ?> <?php echo esc_attr( $additional_classes ); ?>">
|
35 |
+
<a href="<?php echo esc_url( $filter->get_term_url( $term ) ); ?>" <?php yith_wcan_add_rel_nofollow_to_url( true, true ); ?> role="button" data-term-id="<?php echo esc_attr( $term->term_id ); ?>" data-term-slug="<?php echo esc_attr( yith_wcan_esc_term_slug( $term->slug ) ); ?>" <?php echo ! empty( $tooltip ) ? 'data-title="' . esc_attr( $tooltip ) . '"' : ''; ?>>
|
36 |
<?php if ( 'image' === $mode && ! empty( $image ) ) : ?>
|
37 |
<span class="term-image">
|
38 |
<?php echo wp_get_attachment_image( $image ); ?>
|
templates/filters/filter-tax/items/label.php
CHANGED
@@ -29,7 +29,7 @@ if ( ! defined( 'YITH_WCAN' ) ) {
|
|
29 |
?>
|
30 |
|
31 |
<li class="filter-item label <?php echo $filter->is_term_active( $term ) ? 'active' : ''; ?> <?php echo esc_attr( $additional_classes ); ?>">
|
32 |
-
<a href="<?php echo esc_url( $filter->get_term_url( $term ) ); ?>" <?php yith_wcan_add_rel_nofollow_to_url( true, true ); ?> role="button" data-term-id="<?php echo esc_attr( $term->term_id ); ?>" data-term-slug="<?php echo esc_attr( $term->slug ); ?>" <?php echo ! empty( $tooltip ) ? 'data-title="' . esc_attr( $tooltip ) . '"' : ''; ?>>
|
33 |
<?php if ( ! empty( $image ) ) : ?>
|
34 |
<span class="term-image">
|
35 |
<?php echo wp_get_attachment_image( $image ); ?>
|
29 |
?>
|
30 |
|
31 |
<li class="filter-item label <?php echo $filter->is_term_active( $term ) ? 'active' : ''; ?> <?php echo esc_attr( $additional_classes ); ?>">
|
32 |
+
<a href="<?php echo esc_url( $filter->get_term_url( $term ) ); ?>" <?php yith_wcan_add_rel_nofollow_to_url( true, true ); ?> role="button" data-term-id="<?php echo esc_attr( $term->term_id ); ?>" data-term-slug="<?php echo esc_attr( yith_wcan_esc_term_slug( $term->slug ) ); ?>" <?php echo ! empty( $tooltip ) ? 'data-title="' . esc_attr( $tooltip ) . '"' : ''; ?>>
|
33 |
<?php if ( ! empty( $image ) ) : ?>
|
34 |
<span class="term-image">
|
35 |
<?php echo wp_get_attachment_image( $image ); ?>
|
templates/filters/filter-tax/items/select.php
CHANGED
@@ -27,7 +27,7 @@ if ( ! defined( 'YITH_WCAN' ) ) {
|
|
27 |
} // Exit if accessed directly
|
28 |
?>
|
29 |
|
30 |
-
<option class="filter-item select <?php echo $filter->is_term_active( $term ) ? 'active' : ''; ?> <?php echo esc_attr( $additional_classes ); ?>" value="<?php echo esc_attr( $term->slug ); ?>" <?php echo selected( $filter->is_term_active( $term ) ); ?> <?php echo ! empty( $tooltip ) ? 'data-title="' . esc_attr( $tooltip ) . '"' : ''; ?> data-filter_url="<?php echo esc_url( $filter->get_term_url( $term ) ); ?>" data-count="<?php echo esc_attr( $filter->render_term_count( $term, $count ) ); ?>" >
|
31 |
<?php echo esc_html( ! empty( $label ) ? $label : $term->name ); ?>
|
32 |
</option>
|
33 |
|
27 |
} // Exit if accessed directly
|
28 |
?>
|
29 |
|
30 |
+
<option class="filter-item select <?php echo $filter->is_term_active( $term ) ? 'active' : ''; ?> <?php echo esc_attr( $additional_classes ); ?>" value="<?php echo esc_attr( yith_wcan_esc_term_slug( $term->slug ) ); ?>" <?php echo selected( $filter->is_term_active( $term ) ); ?> <?php echo ! empty( $tooltip ) ? 'data-title="' . esc_attr( $tooltip ) . '"' : ''; ?> data-filter_url="<?php echo esc_url( $filter->get_term_url( $term ) ); ?>" data-count="<?php echo esc_attr( $filter->render_term_count( $term, $count ) ); ?>" >
|
31 |
<?php echo esc_html( ! empty( $label ) ? $label : $term->name ); ?>
|
32 |
</option>
|
33 |
|
templates/filters/filter-tax/items/text.php
CHANGED
@@ -28,7 +28,7 @@ if ( ! defined( 'YITH_WCAN' ) ) {
|
|
28 |
?>
|
29 |
|
30 |
<li class="filter-item text <?php echo $filter->is_term_active( $term ) ? 'active' : ''; ?> <?php echo esc_attr( $additional_classes ); ?>">
|
31 |
-
<a href="<?php echo esc_url( $filter->get_term_url( $term ) ); ?>" <?php yith_wcan_add_rel_nofollow_to_url( true, true ); ?> role="button" data-term-id="<?php echo esc_attr( $term->term_id ); ?>" data-term-slug="<?php echo esc_attr( $term->slug ); ?>" class="term-label" <?php echo ! empty( $tooltip ) ? 'data-title="' . esc_attr( $tooltip ) . '"' : ''; ?>>
|
32 |
<?php echo esc_html( ! empty( $label ) ? $label : $term->name ); ?>
|
33 |
<?php echo $filter->render_term_count( $term, $count ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
34 |
</a>
|
28 |
?>
|
29 |
|
30 |
<li class="filter-item text <?php echo $filter->is_term_active( $term ) ? 'active' : ''; ?> <?php echo esc_attr( $additional_classes ); ?>">
|
31 |
+
<a href="<?php echo esc_url( $filter->get_term_url( $term ) ); ?>" <?php yith_wcan_add_rel_nofollow_to_url( true, true ); ?> role="button" data-term-id="<?php echo esc_attr( $term->term_id ); ?>" data-term-slug="<?php echo esc_attr( yith_wcan_esc_term_slug( $term->slug ) ); ?>" class="term-label" <?php echo ! empty( $tooltip ) ? 'data-title="' . esc_attr( $tooltip ) . '"' : ''; ?>>
|
32 |
<?php echo esc_html( ! empty( $label ) ? $label : $term->name ); ?>
|
33 |
<?php echo $filter->render_term_count( $term, $count ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
34 |
</a>
|