diff --git a/includes/class-yith-wcwl-frontend.php b/includes/class-yith-wcwl-frontend.php index ffb1715..9b770d3 100644 --- a/includes/class-yith-wcwl-frontend.php +++ b/includes/class-yith-wcwl-frontend.php @@ -33,7 +33,7 @@ class YITH_WCWL_Frontend { * @var string * @since 1.0.0 */ - public $version = '3.18.0'; + public $version = '3.19.0'; /** * Plugin database version diff --git a/init.php b/init.php index 4741b3f..fbbc7bf 100644 --- a/init.php +++ b/init.php @@ -3,13 +3,13 @@ * Plugin Name: YITH WooCommerce Wishlist * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-wishlist/ * Description: YITH WooCommerce Wishlist gives your users the possibility to create, fill, manage and share their wishlists allowing you to analyze their interests and needs to improve your marketing strategies. Get more plugins for your e-commerce on YITH - * Version: 3.18.0 + * Version: 3.19.0 * Author: YITH * Author URI: https://yithemes.com/ * Text Domain: yith-woocommerce-wishlist * Domain Path: /languages/ - * WC requires at least: 7.2 - * WC tested up to: 7.4 + * WC requires at least: 7.3 + * WC tested up to: 7.5 * * @author YITH * @package YITH\Wishlist diff --git a/languages/yith-woocommerce-wishlist-da_DK.po b/languages/yith-woocommerce-wishlist-da_DK.po index d3382ec..74882ca 100644 --- a/languages/yith-woocommerce-wishlist-da_DK.po +++ b/languages/yith-woocommerce-wishlist-da_DK.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WCWL\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:04+0200\n" "Last-Translator: Morten Ruus \n" "Language-Team: Your Inspiration Themes \n" @@ -445,7 +445,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "" @@ -743,27 +743,24 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." +#: plugin-options/settings-options.php:60 +msgid "Enable the slider with linked products on the Wishlist page." msgstr "" #: plugin-options/wishlist_page-options.php:28 @@ -1211,29 +1208,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1265,20 +1262,20 @@ msgstr "" msgid "In Stock" msgstr "På lager" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "Flyt" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Fjern denne vare" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1303,11 +1300,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "Fjern" diff --git a/languages/yith-woocommerce-wishlist-de_DE.po b/languages/yith-woocommerce-wishlist-de_DE.po index 1e7c85e..ae1b609 100644 --- a/languages/yith-woocommerce-wishlist-de_DE.po +++ b/languages/yith-woocommerce-wishlist-de_DE.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:04+0200\n" "Last-Translator: \n" "Language-Team: Your Inspiration Themes \n" @@ -452,7 +452,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Allgemeine Einstellungen" @@ -751,28 +751,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "YITH WooCommerce Frequently Bought Together integration" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "Slider in Wunschliste aktivieren" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "Fehler: Artikel konnte nicht von der Wunschliste entfernt werden." #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1219,29 +1217,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1273,20 +1271,20 @@ msgstr "" msgid "In Stock" msgstr "Auf Lager" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "Verschieben" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Artikel entfernen" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1311,11 +1309,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "Entfernen" diff --git a/languages/yith-woocommerce-wishlist-es_AR.po b/languages/yith-woocommerce-wishlist-es_AR.po index 90bca35..d0d0494 100644 --- a/languages/yith-woocommerce-wishlist-es_AR.po +++ b/languages/yith-woocommerce-wishlist-es_AR.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:04+0200\n" "Last-Translator: YIThemes \n" "Language-Team: Your Inspiration Themes \n" @@ -453,7 +453,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Configuraciones generales" @@ -752,28 +752,28 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." msgstr "" +"¡Ups! Ha ocurrido un error al eliminar el producto de tu lista. Intenta " +"nuevamente, por favor." #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1220,29 +1220,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1274,20 +1274,20 @@ msgstr "" msgid "In Stock" msgstr "¡Disponible!" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Ya no lo quiero" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1312,11 +1312,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "" diff --git a/languages/yith-woocommerce-wishlist-es_ES.po b/languages/yith-woocommerce-wishlist-es_ES.po index 274e741..34ec3e5 100644 --- a/languages/yith-woocommerce-wishlist-es_ES.po +++ b/languages/yith-woocommerce-wishlist-es_ES.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:04+0200\n" "Last-Translator: Nicola Mustone \n" "Language-Team: Your Inspiration Themes \n" @@ -486,7 +486,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Ajustes Generales" @@ -820,29 +820,26 @@ msgstr "" msgid "Search list" msgstr "Compartir lista de deseos" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "Activar carga de AJAX" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "Cargar cualquier artículo de lista de deseos cacheable via AJX" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" "Integración de productos YITH WooCommerce comprados juntos frecuentemente" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "Habilitar deslizador en la lista de deseos" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 +#: plugin-options/settings-options.php:60 #, fuzzy -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." +msgid "Enable the slider with linked products on the Wishlist page." msgstr "" "Activa el carrusel con los productos relacionados en la página de Lista de " "deseos (Ejemplo). %s" @@ -1339,29 +1336,29 @@ msgstr "este enlace a la lista de deseos y compártelo en cualquier parte)" msgid "Apply this action to all the selected items:" msgstr "Aplicar esta acción a todos los artículos seleccionados:" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "Eliminar de la lista de deseos" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "Aplicar" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "Actualizar" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "Añadir todo al carrito" @@ -1393,20 +1390,20 @@ msgstr "Agotado" msgid "In Stock" msgstr "En stock" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "Mover" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "Mover a otra lista ›" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Eliminar este producto" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "No se han añadido productos a la lista de deseos" @@ -1431,11 +1428,11 @@ msgid "Arrange" msgstr "Ordenar" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "Añadido el: %s" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "Quitar" diff --git a/languages/yith-woocommerce-wishlist-es_MX.po b/languages/yith-woocommerce-wishlist-es_MX.po index cee6cde..11181f7 100644 --- a/languages/yith-woocommerce-wishlist-es_MX.po +++ b/languages/yith-woocommerce-wishlist-es_MX.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:04+0200\n" "Last-Translator: Gabriel Azarias Dzul Cocom \n" "Language-Team: Your Inspiration Themes \n" @@ -451,7 +451,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Ajustes Generales" @@ -750,28 +750,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "Error. No fue posible eliminar el producto de la Lista." #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1218,29 +1216,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1272,20 +1270,20 @@ msgstr "" msgid "In Stock" msgstr "Disponilbe." -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Remover este producto" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1310,11 +1308,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "" diff --git a/languages/yith-woocommerce-wishlist-fa_IR.po b/languages/yith-woocommerce-wishlist-fa_IR.po index 472d83c..d2fbec1 100644 --- a/languages/yith-woocommerce-wishlist-fa_IR.po +++ b/languages/yith-woocommerce-wishlist-fa_IR.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:05+0200\n" "Last-Translator: Am!n \n" "Language-Team: YITH - translated to persian by dornaweb \n" @@ -454,7 +454,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "تنظیمات عمومی" @@ -753,28 +753,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "خطا : محصول از لیست علاقه مندی ها حذف نشد." #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1221,29 +1219,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1275,20 +1273,20 @@ msgstr "" msgid "In Stock" msgstr "موجود" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "حذف این محصول" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1313,11 +1311,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "حذف" diff --git a/languages/yith-woocommerce-wishlist-fr_FR.po b/languages/yith-woocommerce-wishlist-fr_FR.po index 115dd7d..d2c9bd4 100644 --- a/languages/yith-woocommerce-wishlist-fr_FR.po +++ b/languages/yith-woocommerce-wishlist-fr_FR.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:05+0200\n" "Last-Translator: \n" "Language-Team: \n" @@ -493,7 +493,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Réglages Généraux" @@ -827,30 +827,27 @@ msgstr "" msgid "Search list" msgstr "Liste de recherche" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "Activer le chargement AJAX" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" "Charger n'importe quel élément de liste de souhaits pouvant être mis en " "cache via AJAX" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "YITH WooCommerce a fréquemment acheté ensemble l'intégrationd" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "Activer diaporama dans la liste de Souhaits" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 +#: plugin-options/settings-options.php:60 #, fuzzy -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." +msgid "Enable the slider with linked products on the Wishlist page." msgstr "" "Activez le curseur avec les produits liés sur la page Liste de souhaits ( Exemple ). %s" @@ -1353,29 +1350,29 @@ msgstr "ce lien de liste de souhaits et le partager n'importe où)" msgid "Apply this action to all the selected items:" msgstr "Appliquez cette action à tous les éléments sélectionnés:" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "Supprimer de la liste de souhaits" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "Déplacer vers %s" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "Appliquer" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "Mise à jour" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "Tout ajouter au panier" @@ -1407,20 +1404,20 @@ msgstr "En rupture de stock" msgid "In Stock" msgstr "En Stock" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "Déplacer" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "Déplacer vers une autre liste ›" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Supprimer ce produit" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "Aucun produit ajouté à la liste de souhaits" @@ -1445,11 +1442,11 @@ msgid "Arrange" msgstr "Organiser" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "Ajouté le: %s" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "Supprimé" diff --git a/languages/yith-woocommerce-wishlist-he_IL.po b/languages/yith-woocommerce-wishlist-he_IL.po index 8dcafdf..50d8d8b 100644 --- a/languages/yith-woocommerce-wishlist-he_IL.po +++ b/languages/yith-woocommerce-wishlist-he_IL.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:05+0200\n" "Last-Translator: Nicola Mustone \n" "Language-Team: Your Inspiration Themes \n" @@ -451,7 +451,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "הגדרות כלליות" @@ -750,28 +750,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "שגיאה. לא הצלחנו להסיר את המוצר מרשימת המשאלות." #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1218,29 +1216,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1272,20 +1270,20 @@ msgstr "" msgid "In Stock" msgstr "קיים במלאי" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "הסרת מוצר מהרשימה" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1310,11 +1308,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "" diff --git a/languages/yith-woocommerce-wishlist-hr.po b/languages/yith-woocommerce-wishlist-hr.po index dce2274..c718fcc 100644 --- a/languages/yith-woocommerce-wishlist-hr.po +++ b/languages/yith-woocommerce-wishlist-hr.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:05+0200\n" "Last-Translator: \n" "Language-Team: Your Inspiration Themes \n" @@ -458,7 +458,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Osnovne postavke" @@ -758,28 +758,26 @@ msgstr "" msgid "Search list" msgstr "Pretraga listi želja" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "YITH WooCommerse skupna Integracija" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "Omogući slider u listi želja" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "Greška. Proizvod se ne može obrisati iz liste želja." #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1226,29 +1224,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1280,20 +1278,20 @@ msgstr "" msgid "In Stock" msgstr "Na zalihi" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "Premjesti" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Obriši ovaj proizvod" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1318,11 +1316,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "Obriši" diff --git a/languages/yith-woocommerce-wishlist-it_IT.po b/languages/yith-woocommerce-wishlist-it_IT.po index 1550b1c..f30c33d 100644 --- a/languages/yith-woocommerce-wishlist-it_IT.po +++ b/languages/yith-woocommerce-wishlist-it_IT.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:05+0200\n" "Last-Translator: Nicola Mustone \n" "Language-Team: Your Inspiration Themes \n" @@ -487,7 +487,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Impostazioni generali" @@ -816,30 +816,27 @@ msgstr "" msgid "Search list" msgstr "Condividi la lista" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "Abilita caricamento in AJAX" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" "Carica in AJAX qualsiasi elemento di YITH Wishlist che possa essere messo in " "cache" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "Integrazione con YITH WooCommerce Frequently Bought Together" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "Abilita lo slider nella lista dei desideri" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 +#: plugin-options/settings-options.php:60 #, fuzzy -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." +msgid "Enable the slider with linked products on the Wishlist page." msgstr "" "Abilita lo slider con i prodotti correlati nella pagina Lista dei desideri " "(Esempio). %s" @@ -1339,29 +1336,29 @@ msgstr "questo URL e condividilo dove vuoi)" msgid "Apply this action to all the selected items:" msgstr "Applica a tutti gli articoli selezionati:" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "Rimuovi dalla lista" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "Applica" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "Aggiorna" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "Aggiungi tutti al carrello" @@ -1393,20 +1390,20 @@ msgstr "Esaurito" msgid "In Stock" msgstr "Disponibile" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "Sposta" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "Sposta in un'altra lista ›" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Rimuovi questo prodotto" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "Non è stato ancora aggiunto nessun prodotto alla lista" @@ -1431,11 +1428,11 @@ msgid "Arrange" msgstr "Riordina" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "Aggiunto il: %s" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "Rimuovi" diff --git a/languages/yith-woocommerce-wishlist-ko_KR.po b/languages/yith-woocommerce-wishlist-ko_KR.po index c1ec561..eba3c91 100644 --- a/languages/yith-woocommerce-wishlist-ko_KR.po +++ b/languages/yith-woocommerce-wishlist-ko_KR.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:05+0200\n" "Last-Translator: Valentyn Zubenko \n" "Language-Team: Your Inspiration Themes \n" @@ -454,7 +454,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "일반 설정 " @@ -754,28 +754,26 @@ msgstr "" msgid "Search list" msgstr "위시리스트 찾기 " -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "YITH WooCommerce 와 함께 자주 구매되는 연결" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "위시리스트내 슬라이더 사용 " -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "에러, 위시리스트에서 상품제거 불가능 " #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1222,29 +1220,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1276,20 +1274,20 @@ msgstr "" msgid "In Stock" msgstr "재고 있음 " -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "이동 " -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "이 상품 제거 " -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1314,11 +1312,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "제거 " diff --git a/languages/yith-woocommerce-wishlist-nl_NL.po b/languages/yith-woocommerce-wishlist-nl_NL.po index 6369054..7a769c2 100644 --- a/languages/yith-woocommerce-wishlist-nl_NL.po +++ b/languages/yith-woocommerce-wishlist-nl_NL.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:06+0200\n" "Last-Translator: \n" "Language-Team: Your Inspiration Themes \n" @@ -486,7 +486,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Algemene Instellingen" @@ -819,28 +819,25 @@ msgstr "" msgid "Search list" msgstr "Verlanglijst delen" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "AJAX loading inschakelen" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "YITH WooCommerce Frequently Bought Together Integratie" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "Slider in verlanglijst inschakelen" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 +#: plugin-options/settings-options.php:60 #, fuzzy -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." +msgid "Enable the slider with linked products on the Wishlist page." msgstr "" "Slider inschakelen met gelinkte producten op de verlanglijst pagina (Voorbeeld). %s" @@ -1342,29 +1339,29 @@ msgstr "en overal delen)" msgid "Apply this action to all the selected items:" msgstr "Deze actie toepassen op alle geselecteerde items:" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "Verwijderen van verlanglijst" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "Toepassen" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "Bijwerken" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "Allen toevoegen aan winkelwagen" @@ -1396,20 +1393,20 @@ msgstr "Niet op voorraad" msgid "In Stock" msgstr "Op voorraad" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "Verplaatsen" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "Verplaatsen naar een andere lijst ›" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Verwijder dit product" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "Geen producten toegevoegd aan de verlanglijst" @@ -1434,11 +1431,11 @@ msgid "Arrange" msgstr "Schikken" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "Toegevoegd op: %s" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "Verwijderen" diff --git a/languages/yith-woocommerce-wishlist-pl_PL.po b/languages/yith-woocommerce-wishlist-pl_PL.po index c1a7893..7c619be 100644 --- a/languages/yith-woocommerce-wishlist-pl_PL.po +++ b/languages/yith-woocommerce-wishlist-pl_PL.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:06+0200\n" "Last-Translator: \n" "Language-Team: Your Inspiration Themes \n" @@ -453,7 +453,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Ustawienia ogólne" @@ -751,28 +751,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "Błąd. Nie można usunąć produktu z listy życzeń." #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1219,29 +1217,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1273,20 +1271,20 @@ msgstr "" msgid "In Stock" msgstr "Dostępny" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "Przenieś" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Usuń" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1311,11 +1309,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "Usuń" diff --git a/languages/yith-woocommerce-wishlist-pt_BR.po b/languages/yith-woocommerce-wishlist-pt_BR.po index 0fbc0df..5d64585 100644 --- a/languages/yith-woocommerce-wishlist-pt_BR.po +++ b/languages/yith-woocommerce-wishlist-pt_BR.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:06+0200\n" "Last-Translator: YIThemes \n" "Language-Team: Your Inspiration Themes \n" @@ -451,7 +451,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Opções gerais" @@ -750,28 +750,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "Erro. Não foi possível remover o produto da lista de desejos." #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1218,29 +1216,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1272,20 +1270,20 @@ msgstr "" msgid "In Stock" msgstr "Em estoque" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Remover este produto" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1310,11 +1308,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "" diff --git a/languages/yith-woocommerce-wishlist-pt_PT.po b/languages/yith-woocommerce-wishlist-pt_PT.po index 6bf0d29..fd6faaf 100644 --- a/languages/yith-woocommerce-wishlist-pt_PT.po +++ b/languages/yith-woocommerce-wishlist-pt_PT.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:06+0200\n" "Last-Translator: YIThemes \n" "Language-Team: Your Inspiration Themes \n" @@ -451,7 +451,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Opções gerais" @@ -750,28 +750,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "Erro. Não foi possível remover o produto da lista de desejos." #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1218,29 +1216,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1272,20 +1270,20 @@ msgstr "" msgid "In Stock" msgstr "Em stock" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Remover este produto" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1310,11 +1308,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "" diff --git a/languages/yith-woocommerce-wishlist-ru_RU.po b/languages/yith-woocommerce-wishlist-ru_RU.po index b3a68cb..81906c7 100644 --- a/languages/yith-woocommerce-wishlist-ru_RU.po +++ b/languages/yith-woocommerce-wishlist-ru_RU.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WCWL\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:06+0200\n" "Last-Translator: Valentyn Zubenko \n" "Language-Team: Your Inspiration Themes \n" @@ -450,7 +450,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "" @@ -749,28 +749,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "Ошибка. Невозможно удалить продукт из избранного." #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1217,29 +1215,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1271,20 +1269,20 @@ msgstr "" msgid "In Stock" msgstr "в наличии" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1309,11 +1307,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "" diff --git a/languages/yith-woocommerce-wishlist-sv_SE.po b/languages/yith-woocommerce-wishlist-sv_SE.po index 0eca335..8863a6d 100644 --- a/languages/yith-woocommerce-wishlist-sv_SE.po +++ b/languages/yith-woocommerce-wishlist-sv_SE.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WCWL\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:06+0200\n" "Last-Translator: Nicola Mustone \n" "Language-Team: Your Inspiration Themes \n" @@ -451,7 +451,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Generella inställningar" @@ -750,28 +750,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "YITH WooCommerce Vanliga köpte tillsammans integritet" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "Aktivera slider i önskelistan" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "Fel. Kunde inte ta bort produkten ifrån önskelistan." #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1218,29 +1216,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1272,20 +1270,20 @@ msgstr "" msgid "In Stock" msgstr "Finns i lager" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "Flytta" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Ta bort denna produkt" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1310,11 +1308,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "Ta bort" diff --git a/languages/yith-woocommerce-wishlist-tr_TR.po b/languages/yith-woocommerce-wishlist-tr_TR.po index eb9234e..b2093fc 100644 --- a/languages/yith-woocommerce-wishlist-tr_TR.po +++ b/languages/yith-woocommerce-wishlist-tr_TR.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:06+0200\n" "Last-Translator: Caner Öncel \n" "Language-Team: Caner Öncel (@egonomik) \n" @@ -451,7 +451,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "Genel Ayarlar" @@ -750,28 +750,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "Hata. Ürün istek listenizden kaldırılamadı. " #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1218,29 +1216,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1272,20 +1270,20 @@ msgstr "" msgid "In Stock" msgstr "Stokta" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "Bu ürünü kaldır" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1310,11 +1308,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "" diff --git a/languages/yith-woocommerce-wishlist-uk_UA.po b/languages/yith-woocommerce-wishlist-uk_UA.po index 808c377..be480f1 100644 --- a/languages/yith-woocommerce-wishlist-uk_UA.po +++ b/languages/yith-woocommerce-wishlist-uk_UA.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:07+0200\n" "Last-Translator: Valentyn Zubenko \n" "Language-Team: Your Inspiration Themes \n" @@ -449,7 +449,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "" @@ -748,27 +748,24 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." +#: plugin-options/settings-options.php:60 +msgid "Enable the slider with linked products on the Wishlist page." msgstr "" #: plugin-options/wishlist_page-options.php:28 @@ -1216,29 +1213,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1270,20 +1267,20 @@ msgstr "" msgid "In Stock" msgstr "в наявності" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1308,11 +1305,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "" diff --git a/languages/yith-woocommerce-wishlist-zh_CN.po b/languages/yith-woocommerce-wishlist-zh_CN.po index 27c1fc3..3957526 100644 --- a/languages/yith-woocommerce-wishlist-zh_CN.po +++ b/languages/yith-woocommerce-wishlist-zh_CN.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:07+0200\n" "Last-Translator: 李明軒 \n" "Language-Team: Your Inspiration Themes \n" @@ -450,7 +450,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "" @@ -749,28 +749,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "错误。无法从「愿望清单」移除这个商品。" #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1217,29 +1215,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1271,20 +1269,20 @@ msgstr "" msgid "In Stock" msgstr "有货" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "移除这个商品" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1309,11 +1307,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "" diff --git a/languages/yith-woocommerce-wishlist-zh_TW.po b/languages/yith-woocommerce-wishlist-zh_TW.po index 3e17b0e..dce5c60 100644 --- a/languages/yith-woocommerce-wishlist-zh_TW.po +++ b/languages/yith-woocommerce-wishlist-zh_TW.po @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yith-woocommerce-" "wishlist\n" -"POT-Creation-Date: 2023-02-14 11:22:40+00:00\n" +"POT-Creation-Date: 2023-03-14 12:20:55+00:00\n" "PO-Revision-Date: 2020-10-16 14:07+0200\n" "Last-Translator: 李明軒 \n" "Language-Team: Your Inspiration Themes \n" @@ -450,7 +450,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "" @@ -749,28 +749,26 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#. translators: 1. Example image of the integration. -#: plugin-options/settings-options.php:62 -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." -msgstr "" +#: plugin-options/settings-options.php:60 +#, fuzzy +msgid "Enable the slider with linked products on the Wishlist page." +msgstr "錯誤。無法從「願望清單」移除這個商品。" #: plugin-options/wishlist_page-options.php:28 #: plugin-options/wishlist_page-options.php:35 @@ -1217,29 +1215,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" #. translators: 1. Wishlist formatted name. -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1271,20 +1269,20 @@ msgstr "" msgid "In Stock" msgstr "有貨" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "移除這個商品" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1309,11 +1307,11 @@ msgid "Arrange" msgstr "" #. translators: date added label: 1 date added. -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "" diff --git a/languages/yith-woocommerce-wishlist.pot b/languages/yith-woocommerce-wishlist.pot index 009c1df..376c87b 100644 --- a/languages/yith-woocommerce-wishlist.pot +++ b/languages/yith-woocommerce-wishlist.pot @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: YITH WooCommerce Wishlist Premium\n" "Report-Msgid-Bugs-To: " "https://wordpress.org/support/plugin/yith-woocommerce-wishlist\n" -"POT-Creation-Date: 2023-02-14 11:44:20+00:00\n" +"POT-Creation-Date: 2023-03-14 12:31:48+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -455,7 +455,7 @@ msgid "" msgstr "" #: plugin-options/add_to_wishlist-options.php:29 -#: plugin-options/settings-options.php:32 +#: plugin-options/settings-options.php:31 msgid "General Settings" msgstr "" @@ -752,27 +752,24 @@ msgstr "" msgid "Search list" msgstr "" -#: plugin-options/settings-options.php:39 +#: plugin-options/settings-options.php:38 msgid "Enable AJAX loading" msgstr "" -#: plugin-options/settings-options.php:40 +#: plugin-options/settings-options.php:39 msgid "Load any cacheable wishlist item via AJAX" msgstr "" -#: plugin-options/settings-options.php:54 +#: plugin-options/settings-options.php:53 msgid "YITH WooCommerce Frequently Bought Together Integration" msgstr "" -#: plugin-options/settings-options.php:60 +#: plugin-options/settings-options.php:59 msgid "Enable slider in wishlist" msgstr "" -#: plugin-options/settings-options.php:62 -#. translators: 1. Example image of the integration. -msgid "" -"Enable the slider with linked products on the Wishlist page (Example)." +#: plugin-options/settings-options.php:60 +msgid "Enable the slider with linked products on the Wishlist page." msgstr "" #: plugin-options/wishlist_page-options.php:28 @@ -1218,29 +1215,29 @@ msgstr "" msgid "Apply this action to all the selected items:" msgstr "" -#: templates/wishlist-view-footer-mobile.php:62 -#: templates/wishlist-view-footer.php:62 +#: templates/wishlist-view-footer-mobile.php:73 +#: templates/wishlist-view-footer.php:73 msgid "Remove from wishlist" msgstr "" -#: templates/wishlist-view-footer-mobile.php:80 -#: templates/wishlist-view-footer.php:80 +#: templates/wishlist-view-footer-mobile.php:93 +#: templates/wishlist-view-footer.php:93 #. translators: 1. Wishlist formatted name. msgid "Move to %s" msgstr "" -#: templates/wishlist-view-footer-mobile.php:86 -#: templates/wishlist-view-footer.php:86 +#: templates/wishlist-view-footer-mobile.php:99 +#: templates/wishlist-view-footer.php:99 msgid "Apply" msgstr "" -#: templates/wishlist-view-footer-mobile.php:94 -#: templates/wishlist-view-footer.php:94 +#: templates/wishlist-view-footer-mobile.php:107 +#: templates/wishlist-view-footer.php:107 msgid "Update" msgstr "" -#: templates/wishlist-view-footer-mobile.php:100 -#: templates/wishlist-view-footer.php:138 +#: templates/wishlist-view-footer-mobile.php:113 +#: templates/wishlist-view-footer.php:151 msgid "Add all to cart" msgstr "" @@ -1272,20 +1269,20 @@ msgstr "" msgid "In Stock" msgstr "" -#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:531 +#: templates/wishlist-view-mobile.php:219 templates/wishlist-view.php:544 msgid "Move" msgstr "" -#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:562 +#: templates/wishlist-view-mobile.php:250 templates/wishlist-view.php:575 msgid "Move to another list ›" msgstr "" #: templates/wishlist-view-mobile.php:270 templates/wishlist-view.php:250 -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove this product" msgstr "" -#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:636 +#: templates/wishlist-view-mobile.php:291 templates/wishlist-view.php:649 msgid "No products added to the wishlist" msgstr "" @@ -1309,12 +1306,12 @@ msgstr "" msgid "Arrange" msgstr "" -#: templates/wishlist-view.php:466 +#: templates/wishlist-view.php:479 #. translators: date added label: 1 date added. msgid "Added on: %s" msgstr "" -#: templates/wishlist-view.php:594 +#: templates/wishlist-view.php:607 msgid "Remove" msgstr "" diff --git a/plugin-fw/assets/css/scss/yith-plugin-panel.scss b/plugin-fw/assets/css/scss/yith-plugin-panel.scss new file mode 100644 index 0000000..9727574 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-panel.scss @@ -0,0 +1,9 @@ +@import "yith-plugin-panel/head_comment"; + +@import "yith-plugin-panel/panel"; +@import "yith-plugin-panel/wp-pages"; +@import "yith-plugin-panel/taxonomy"; +@import "yith-plugin-panel/premium-tab"; +@import "yith-plugin-panel/help-tab"; + + diff --git a/plugin-fw/assets/css/scss/yith-plugin-panel/_head_comment.scss b/plugin-fw/assets/css/scss/yith-plugin-panel/_head_comment.scss new file mode 100644 index 0000000..9410f63 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-panel/_head_comment.scss @@ -0,0 +1,6 @@ +/** + * YITH Plugin Panel style + * + * IMPORTANT: This file is automatically generated through SCSS files. + * Please don't edit it manually! + */ diff --git a/plugin-fw/assets/css/scss/yith-plugin-panel/_help-tab.scss b/plugin-fw/assets/css/scss/yith-plugin-panel/_help-tab.scss new file mode 100644 index 0000000..99bf323 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-panel/_help-tab.scss @@ -0,0 +1,311 @@ +/** + Help tab + */ + +.yith-plugin-fw-panel-help-tab-container { + padding: 60px 25px; +} + +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-1 { + .yith-plugin-fw-panel-help-tab-container { + background-color: white; + padding: 40px; + margin-right: 15px; + border: 1px solid #d8d8d8; + border-top: none; + } +} + +.yith-plugin-fw-panel-help-tab-content { + background-color: #f4f4f4; + border-radius: 15px; + max-width: 1100px; + margin: 0 auto; + padding: 40px 40px 60px; + + p, + a { + font-size: 16px; + } + + .row { + margin: 0 -15px 50px; + white-space: nowrap; + + &:last-child { + margin-bottom: 0; + } + + .column-left, + .column-right { + display: inline-block; + padding: 0 15px; + vertical-align: top; + width: 66%; + } + + .column-right { + width: 33%; + } + } + + .yith-plugin-fw-help-tab-video, + .yith-plugin-fw-help-tab-actions, + .yith-plugin-fw-hc-articles, + .yith-plugin-fw-submit-ticket { + box-sizing: border-box; + white-space: normal; + } + + h2.yith-plugin-fw-panel-help-tab-title { + background: none; + border: none; + font-size: 22px; + line-height: 1.5em; + padding: 0; + text-align: center; + } + + h3 { + color: #03689f; + font-size: 15px; + } + + .yith-plugin-fw-panel-tab-description { + font-size: 18px; + text-align: center; + margin-bottom: 40px; + } + + .yith-plugin-fw-help-tab-video { + text-align: center; + + p.video-description { + margin-bottom: 25px; + } + + .video-caption p { + margin: 5px 0; + } + + .video-container { + margin: 0 auto 50px; + overflow: hidden; + padding-top: 56.25%; + position: relative; + + iframe { + border: 0; + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; + } + } + } + + .box-with-shadow { + display: block; + background-color: #fff; + border-radius: 5px; + box-shadow: 0 0 15px 5px rgba(174, 201, 207, 0.3); + transition: all .2s ease; + } + + .box-with-image { + display: grid; + grid-template-columns: repeat(2, 1fr); + column-gap: 40px; + background-color: #fff; + border: 1px solid #ebebeb; + padding: 30px 40px; + max-width: 60%; + margin: 0 auto 40px; + + img { + margin: 0 auto; + max-width: 100%; + } + + .box-content { + white-space: initial; + + .button { + border-radius: 0; + padding: 10px 20px; + min-width: 230px; + margin-top: 20px; + text-align: center; + white-space: initial; + + @media (max-width: 480px) { + min-width: 0; + max-width: 100%; + } + } + } + + @media (max-width: 1210px) { + max-width: 100%; + } + } + + ul.yith-plugin-fw-help-tab-actions, + .yith-plugin-fw-submit-ticket { + margin: 0 auto; + max-width: 640px; + } + + ul.yith-plugin-fw-help-tab-actions { + + &:not( .full-width ) { + padding-top: 65px !important; + } + + li { + margin-bottom: 20px; + + & > a { + display: block; + padding: 15px 20px 15px 75px !important; + text-decoration: none; + } + + &:hover { + box-shadow: 0 0 15px 5px rgba(177, 220, 228, 0.6); + transform: scale(1.04); + } + + a:before { + color: #03689f; + float: left; + font-family: 'yith-icon'; + font-size: 36px; + line-height: 1; + margin-left: -50px; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + } + + &.read-documentation a:before { + content: '\f10d'; + } + + &.watch-videotutorials a:before { + content: '\f10e'; + } + + &.check-faqs a:before { + content: '\f10c'; + } + + h4 { + margin: 0 0 5px; + + a { + color: #03689f; + text-decoration: none; + } + } + + .description { + margin: 0; + font-size: 14px; + } + + .separator { + display: inline-block; + margin: 0 5px; + } + } + } + + .yith-plugin-fw-hc-articles { + h3 { + font-size: 18px; + margin: 0; + padding: 10px 0; + position: relative; + + &:before { + content: ''; + background: #03689f; + display: block; + height: 100%; + left: -40px; + position: absolute; + top: 0; + width: 15px; + } + } + + a.button { + font-size: 16px; + } + } + + .yith-plugin-fw-hc-articles-list { + margin: 15px 0 30px; + + li { + display: block; + margin-bottom: 10px; + + &:before { + content: '-'; + } + } + + a { + text-decoration: none; + } + } + + .yith-plugin-fw-submit-ticket { + & > .box-with-shadow { + padding: 30px !important; + } + + h3 { + color: #b90a0a; + font-size: 18px; + margin: 0 0 15px; + } + + p { + margin-bottom: 35px; + } + + .button { + border-radius: 7px; + display: block; + font-size: 15px; + padding: 7px 15px; + text-align: center; + } + } + + @media (max-width: 992px) { + .row { + white-space: normal; + margin-bottom: 0; + + .column-left, + .column-right { + width: 100%; + margin-bottom: 50px; + } + } + ul.yith-plugin-fw-help-tab-actions { + padding-top: 0 !important; + } + + .box-with-image { + display: block; + text-align: center; + } + } +} + + diff --git a/plugin-fw/assets/css/scss/yith-plugin-panel/_panel.scss b/plugin-fw/assets/css/scss/yith-plugin-panel/_panel.scss new file mode 100644 index 0000000..c480733 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-panel/_panel.scss @@ -0,0 +1,717 @@ +/** + * The panel + */ + +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-2 { + background: rgb(241, 245, 249); + + h1, h2 { + color: inherit; + } + + .wrap { + margin: 0; + } + + #screen-meta-links { + position: absolute; + right: 0; + } + + #yith-plugin-fw__panel__notices { + margin: 35px 20px -24px 0; + + .notice { + margin-left: 0; + margin-right: 0; + } + } + + #wpbody { + @media screen and (max-width: 600px) { + padding-top: 46px; + } + } + + .yith-plugin-fw-rate { + margin: 0 25px 20px 0; + transform: translateY(20px); + @media screen and (max-width: 782px) { + font-size: .9em; + } + } +} + +.yith-plugin-fw__panel__mobile__header { + flex-direction: row; + align-items: center; + background: #fff; + width: calc(100% + 10px); + position: sticky; + top: 0; + left: 0; + height: 64px; + border-bottom: 1px solid rgb(226, 232, 240); + display: none; + margin-left: -10px; + z-index: 9999997; + + .yith-plugin-fw__panel__mobile__header__toggle { + display: flex; + align-items: center; + justify-content: center; + align-self: stretch; + margin-right: 16px; + box-sizing: border-box; + padding: 0 20px; + border-right: 1px solid rgb(226, 232, 240); + cursor: pointer; + color: #94a3b8; + + svg { + stroke-width: 2; + width: 24px; + } + } + + .yith-plugin-fw__panel__mobile__header__logo { + width: 100%; + max-width: 50px; + margin-right: 8px; + } + + .yith-plugin-fw__panel__mobile__header__title { + font-size: 1.2em; + font-weight: 600; + padding-right: 8px; + color: #005b7c; + } + + @media screen and (max-width: 782px) { + display: flex; + } +} + +.yith-plugin-fw__panel { + display: flex; + padding: 35px 24px 16px 0; + color: var(--yith-content-text); + align-items: flex-start; + width: 100%; + box-sizing: border-box; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + + @media screen and (max-width: 782px) { + padding-right: 8px; + } + + p { + margin-top: 4px; + margin-bottom: 0; + } +} + +.yith-plugin-fw__panel__sidebar { + flex: 1 0 240px; + display: flex; + flex-direction: column; + line-height: 1.5; + + .yith-plugin-fw__panel__sidebar__header { + display: flex; + flex-direction: column; + padding: 0 16px 0 12px; + + .yith-plugin-fw__panel__sidebar__header__logo { + width: 100%; + max-width: 70px; + } + + .yith-plugin-fw__panel__sidebar__header__name { + font-size: 1em; + font-weight: 600; + color: #005b7c; + margin-top: .75em; + margin-bottom: .25em; + } + } + + .yith-plugin-fw__panel__menu__wrapper { + color: #1e293b; + font-size: 13px; + margin: 40px 16px 0 0; + font-weight: 500; + } + + .yith-plugin-fw__panel__menu { + display: flex; + flex-direction: column; + gap: 8px; + } + + .yith-plugin-fw__panel__menu-item { + display: flex; + flex-direction: column; + + &.yith-plugin-fw--active { + a.yith-plugin-fw__panel__menu-item__content { + background: rgb(226, 232, 240); + } + } + + &.yith-plugin-fw--open { + .yith-plugin-fw__panel__menu-item__toggle { + transform: rotate(180deg); + } + + .yith-plugin-fw__panel__submenu { + display: flex; + } + } + } + + .yith-plugin-fw__panel__menu-item__icon { + width: 24px; + line-height: 12px; + margin-right: 12px; + margin-left: -4px; + color: rgb(148, 163, 184); + + svg { + stroke-width: 2px; + } + } + + .yith-plugin-fw__panel__menu-item__name, + .yith-plugin-fw__panel__submenu__head__title { + flex: 1; + } + + .yith-plugin-fw__panel__menu-item__toggle { + width: 16px; + color: rgb(148, 163, 184); + stroke-width: 3px; + } + + a.yith-plugin-fw__panel__menu-item__content { + display: flex; + align-items: center; + text-decoration: none; + color: inherit; + padding: 8px 12px; + border-radius: 4px; + + &:hover { + background: rgb(248, 250, 252); + + .yith-plugin-fw__panel__menu-item__icon, + .yith-plugin-fw__panel__menu-item__toggle { + color: rgb(100, 116, 139); + } + } + + &:focus { + box-shadow: none; + outline: none; + } + + &:focus-visible { + box-shadow: 0 0 0 2px var(--yith-primary); + outline: none; + } + } + + .yith-plugin-fw__panel__submenu { + display: flex; + flex-direction: column; + margin-left: 32px; + margin-top: .25rem; + } + + .yith-plugin-fw__panel__submenu__head { + display: none; + } + + .yith-plugin-fw__panel__submenu-item { + display: flex; + flex-direction: column; + margin: .25rem 0; + + &.yith-plugin-fw--active { + a.yith-plugin-fw__panel__submenu-item__content { + background: rgb(226, 232, 240); + opacity: 1; + } + } + } + + a.yith-plugin-fw__panel__submenu-item__content { + display: flex; + align-items: center; + text-decoration: none; + color: #475569; + padding: 8px 12px; + border-radius: 4px; + + &:hover { + background: rgba(255, 255, 255, 0.4); + opacity: 1; + color: inherit; + } + + &:focus { + box-shadow: none; + outline: none; + } + + &:focus-visible { + box-shadow: 0 0 0 2px var(--yith-primary); + outline: none; + } + } + + .yith-plugin-fw__panel__submenu-item__name { + flex: 1 + } + + @media screen and (max-width: 782px) { + display: none; + position: fixed; + top: 0; + left: 0; + width: 320px; + height: 100%; + z-index: 9999999; + background: rgb(241, 245, 249); + padding: 24px 8px; + box-sizing: border-box; + + &.yith-plugin-fw--open { + display: block; + } + + a.yith-plugin-fw__panel__menu-item__content.yith-plugin-fw__panel__sidebar__collapse { + display: none; + } + } + + @media screen and (min-width: 781px) { + &.yith-plugin-fw__panel__sidebar--collapsed { + flex: 1; + transition: all .3s ease-in-out; + + .yith-plugin-fw__panel__sidebar__header { + padding-top: 8px; + padding-left: 0; + } + + .yith-plugin-fw__panel__sidebar__header__logo { + max-width: 48px; + } + + .yith-plugin-fw__panel__sidebar__header__name, + .yith-plugin-fw__panel__menu-item__name, + .yith-plugin-fw__panel__menu-item__toggle { + display: none; + } + + .yith-plugin-fw__panel__menu-item.yith-plugin-fw__panel__menu-item--current { + a.yith-plugin-fw__panel__menu-item__content { + background: rgb(226, 232, 240); + } + } + + .yith-plugin-fw__panel__submenu { + position: absolute; + display: none !important; + top: 0; + left: 100%; + margin: 0; + padding-left: 8px; + width: 200px; + z-index: 999999; + animation: yith-plugin-fw-fade-in .3s forwards; + } + + .yith-plugin-fw__panel__submenu__wrap { + box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15); + border-radius: 8px; + background: rgb(248, 250, 252); + padding: 4px 0; + } + + .yith-plugin-fw__panel__submenu__head { + display: flex; + padding: 6px 12px 10px; + font-size: 1.1em; + } + + .yith-plugin-fw__panel__submenu__content { + background: rgb(248, 250, 252); + padding: 8px 12px; + } + + a.yith-plugin-fw__panel__submenu-item__content { + border-radius: 0; + } + + .yith-plugin-fw__panel__menu-item.yith-plugin-fw--has-submenu:hover { + position: relative; + + .yith-plugin-fw__panel__submenu { + display: block !important; + } + } + + .yith-plugin-fw__panel__menu-item__icon { + margin: 0 !important; + } + + .yith-plugin-fw__panel__sidebar__collapse { + .yith-plugin-fw__panel__menu-item__icon { + transform: rotate(180deg); + } + } + } + } +} + +.yith-plugin-fw__panel__content { + display: flex; + flex-direction: column; + flex: 1 1 100%; + min-width: 0; + background: var(--yith-content-bg); + color: var(--yith-content-text); + border-radius: 8px; + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); + + .yith-plugin-fw__panel__content__page { + display: flex; + flex-direction: column; + flex: 1; + + h1 { + color: inherit; + font-size: 1.5rem; + margin: 0; + padding: 0; + font-weight: 500; + } + + h2 { + color: inherit; + font-size: 1rem; + margin: 0; + padding: 0; + } + + .yith-plugin-fw__panel__content__page__heading { + border-bottom: 1px solid var(--yith-field-border-color); + padding: 32px; + + h1 { + padding-bottom: 0; + } + + .yith-plugin-fw__panel__content__page__description { + margin-top: .75rem; + font-size: .875rem; + line-height: 1.5; + } + } + + .yith-plugin-fw-panel-custom-tab-container { + padding: 32px; + } + + #plugin-fw-wc, + #yith-plugin-fw-panel { + display: flex; + flex-direction: column; + gap: 32px; + padding: 32px; + } + + .yith-plugin-fw__panel__section { + display: flex; + gap: 32px; + position: relative; + + .yith-plugin-fw__panel__section__title { + display: flex; + flex-direction: column; + gap: 8px; + flex: 0 1 300px; + max-width: 25%; + } + + .yith-plugin-fw__panel__section__content { + flex: 1 + } + + @media screen and (max-width: 1280px) { + flex-direction: column; + .yith-plugin-fw__panel__section__title { + flex: 1; + max-width: 100%; + } + } + } + } + + .yith-plugin-fw__panel__section + .yith-plugin-fw__panel__section:before { + content: ''; + width: 100%; + border-top: 1px solid #ddd; + margin-top: -32px; + position: absolute; + } + + .yith-plugin-fw__panel__option { + display: flex; + flex-direction: column; + margin-bottom: 24px; + max-width: 670px; + gap: 8px; + + .yith-plugin-fw__panel__option__label { + font-size: inherit; + font-weight: 500; + padding: 0; + width: 100%; + color: #1e293b; + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: wrap; + gap: 8px; + } + + .yith-plugin-fw__panel__option__label__tags { + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: wrap; + gap: 8px; + } + + .yith-plugin-fw__panel__option__description { + display: block; + font-weight: 400; + font-size: inherit; + margin-bottom: 8px; + } + + &.yith-plugin-fw__panel__option--onoff { + display: flex; + align-items: center; + flex-direction: row; + flex-wrap: wrap; + + .yith-plugin-fw__panel__option__label { + flex: 1; + } + + .yith-plugin-fw__panel__option__description { + flex: 100%; + } + } + + &.yith-plugin-fw__panel__option--hidden { + display: none !important; + } + + .yith-plugin-fw__panel__option__wc-row-table { + font-size: inherit; + + & > tbody > tr { + & > th { + display: none; + } + + & > td { + padding: 0; + font-size: inherit; + + p.description { + display: block; + font-weight: 400; + font-size: inherit; + color: inherit; + } + } + } + } + + &.yith-plugin-fw__panel__option--is-disabled { + .yith-plugin-fw__panel__option__label label, + .yith-plugin-fw__panel__option__description, + .yith-plugin-fw__panel__option__content { + opacity: 0.5; + pointer-events: none; + filter: grayscale(100%); + user-select: none; + } + } + } + + .yith-plugin-fw__panel__content__actions { + position: sticky; + bottom: 0; + padding: 32px; + display: flex; + align-items: center; + justify-content: flex-start; + border-bottom-left-radius: inherit; + border-bottom-right-radius: inherit; + background: rgb(248, 250, 252); + + :not(style) + :not(style) { + margin-left: 8px; + } + } +} + +#yith-plugin-fw__panel__sidebar__mobile-backdrop { + position: fixed; + width: 100%; + height: 100%; + top: 0; + left: 0; + z-index: 9999998; + background: rgba(71, 85, 105, 0.75); +} + +// RTL. + +body.rtl { + + .yith-plugin-fw__panel { + padding-left: 24px; + padding-right: 0; + + @media screen and (max-width: 782px) { + padding-left: 8px; + padding-right: 0; + } + } + + .yith-plugin-fw__panel__sidebar { + .yith-plugin-fw__panel__menu__wrapper { + margin-left: 16px; + margin-right: 0; + } + + .yith-plugin-fw__panel__menu-item__icon { + margin-left: 12px; + margin-right: -4px; + } + + .yith-plugin-fw__panel__submenu { + margin-left: 0; + margin-right: 32px; + } + + .yith-plugin-fw__panel__sidebar__collapse .yith-plugin-fw__panel__menu-item__icon { + transform: rotate(180deg); + } + + &.yith-plugin-fw__panel__sidebar--collapsed { + .yith-plugin-fw__panel__sidebar__collapse .yith-plugin-fw__panel__menu-item__icon { + transform: rotate(0deg); + } + + @media screen and (min-width: 781px) { + .yith-plugin-fw__panel__sidebar__header { + padding-left: 16px; + padding-right: 0; + } + + .yith-plugin-fw__panel__submenu { + margin: 0; + right: 100%; + left: auto; + padding-right: 8px; + padding-left: 0; + } + } + } + + @media screen and (max-width: 782px) { + left: auto; + right: 0; + } + } + + .yith-plugin-fw__panel__mobile__header { + margin-left: 0; + margin-right: -10px; + + .yith-plugin-fw__panel__mobile__header__toggle { + margin-right: 0; + margin-left: 16px; + } + } + + .yith-plugin-fw__panel__content { + .yith-plugin-fw__panel__content__actions { + :not(style) + :not(style) { + margin-left: 0; + margin-right: 8px; + } + } + } +} + +// Option Fields. +.yith-plugin-fw__panel__content__page--options { + .yith-plugin-fw-slider-container, + .yith-plugin-fw-text-array-table, + .yith-plugin-fw-textarea, + input[type=email], + input[type=text]:not(.select2-search__field), + select { + width: 400px; + max-width: 100%; + + @media screen and (max-width: 782px) { + width: 100%; + max-width: 400px; + } + + &.small-text { + width: 100px; + } + } + + input[type=number] { + width: 70px; + min-width: 70px; + } + + .yith-plugin-fw-text-array-table input { + width: 100%; + } +} + +.yith-plugin-fw-select, +.yith-plugin-fw-slider-container, +.yith-plugin-fw-text-input, +.yith-plugin-fw-text-array-table, +.yith-plugin-fw-textarea { + width: 400px; + max-width: 100%; + + @media screen and (max-width: 782px) { + width: 100%; + max-width: 400px; + } +} + +.yith-plugin-fw__panel__checkbox-group { + display: flex; + flex-direction: column; + gap: 8px; +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-panel/_premium-tab.scss b/plugin-fw/assets/css/scss/yith-plugin-panel/_premium-tab.scss new file mode 100644 index 0000000..53c72c7 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-panel/_premium-tab.scss @@ -0,0 +1,187 @@ +/** + Premium Tab + */ + +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-1 { + #yith_plugin_fw_panel_premium_tab { + background-color: white; + padding: 40px; + margin-right: 15px; + border: 1px solid #d8d8d8; + border-top: none; + } +} + +#yith_plugin_fw_panel_premium_tab { + padding: 40px; + + .yith-plugin-fw-panel-premium-tab { + background-color: #f9f9f9; + padding: 40px; + border: 1px solid #dbdbdb; + border-radius: 5px; + max-width: 1400px; + margin: auto; + } + + .yith-plugin-fw-panel-premium-tab__header { + display: flex; + align-items: center; + gap: 35px 20px; + } + + .yith-plugin-fw-panel-premium-tab__header-title { + color: #c28d31; + text-transform: uppercase; + font-weight: 600; + font-size: 18px; + width: 100%; + } + + .yith-plugin-fw-panel-premium-tab__header-cta { + color: white; + background-color: #e58f00; + display: flex; + align-items: center; + justify-content: space-between; + padding: 12px 24px; + column-gap: 12px; + font-size: 14px; + font-weight: 600; + + &:before { + content: '\f11b'; + font-family: 'yith-icon'; + font-size: 18px; + line-height: 1em; + font-weight: 400; + } + + &:hover:before { + transform-origin: center center; + animation: .3s yith-plugin-fw-jiggle linear; + animation-iteration-count: 3; + } + } + + .yith-plugin-fw-panel-premium-tab__header-cta-arrow { + background: url("../images/arrow.svg") no-repeat center; + background-size: contain; + width: 100px; + height: 30px; + } + + .yith-plugin-fw-panel-premium-tab__content { + display: flex; + column-gap: 20px; + padding-top: 30px; + } + + .yith-plugin-fw-panel-premium-tab__main-image { + max-width: 50%; + object-fit: contain; + object-position: top; + flex: 1; + } + + .yith-plugin-fw-panel-premium-tab__features { + display: flex; + flex-direction: column; + row-gap: 45px; + font-size: 18px; + line-height: 24px; + padding-top: 30px; + flex: 1; + max-width: 100%; + } + + .yith-plugin-fw-panel-premium-tab__feature { + display: flex; + align-items: center; + column-gap: 25px; + + &:before { + content: ''; + display: block; + width: 12px; + height: 20px; + border: 8px solid #96ca20; + border-left: 0; + border-top: 0; + transform: rotate(45deg) translate(30%, -15%); + margin-right: 10px; + margin-bottom: 6px; + } + } + + .yith-plugin-fw-panel-premium-tab__feature-content { + width: calc(100% - 55px); + } + + .yith-plugin-fw-panel-premium-tab__cta-button { + background-color: #e58f00; + color: white; + text-transform: uppercase; + text-decoration: none; + border-radius: 5px; + white-space: nowrap; + transition: .3s; + + &:hover { + background-color: #c67c00; + } + } + + .yith-plugin-fw-panel-premium-tab__content-cta { + padding: 20px; + font-size: 20px; + font-weight: 600; + text-align: center; + line-height: normal; + } + + @media (max-width: 1210px) { + .yith-plugin-fw-panel-premium-tab__main-image, + .yith-plugin-fw-panel-premium-tab__header-cta-arrow { + display: none; + } + + .yith-plugin-fw-panel-premium-tab__header { + flex-wrap: wrap; + } + + .yith-plugin-fw-panel-premium-tab__features { + padding-top: 15px; + } + } + + @media (max-width: 600px) { + padding: 20px; + + .yith-plugin-fw-panel-premium-tab { + padding: 30px; + } + } + + @media (max-width: 480px) { + .yith-plugin-fw-panel-premium-tab__feature { + flex-direction: column; + align-items: flex-start; + row-gap: 13px; + + &:before { + width: 8px; + height: 15px; + border-width: 5px; + } + } + + .yith-plugin-fw-panel-premium-tab__feature-content { + width: 100%; + } + + .yith-plugin-fw-panel-premium-tab__cta-button { + white-space: unset; + } + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-panel/_taxonomy.scss b/plugin-fw/assets/css/scss/yith-plugin-panel/_taxonomy.scss new file mode 100644 index 0000000..c33fb66 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-panel/_taxonomy.scss @@ -0,0 +1,149 @@ +/** + * Taxonomy Style + */ + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type, .yith-plugin-ui--taxonomy-type { + + #col-container { + display: flex; + } + + #col-left { + padding: 20px; + background: rgba(241, 245, 249, .5); + border-radius: 8px; + box-sizing: border-box; + margin-right: 15px; + } + + #col-right { + flex: 1; + } + + h2 { + border: none; + padding: 0; + font-size: 14px; + background: transparent; + } + + // Edit Tax + .wrap h1 { + color: #2a8db0; + font-size: 16px; + font-weight: 600; + } + + + .notice { + --yith-fw-notice-bg: #f2f7ff; + --yith-fw-notice-icon: '\e90e'; + --yith-fw-notice-border-color: #d2dbea; + --yith-fw-notice-color: #4361c4; + padding: 15px 40px 15px 45px; + margin: 15px 0 20px; + border-radius: 6px; + background: var(--yith-fw-notice-bg); + font-weight: 400; + font-size: 14px; + text-align: left; + color: var(--yith-fw-notice-color); + border: 1px solid var(--yith-fw-notice-border-color); + position: relative; + + &.notice-success { + --yith-fw-notice-bg: #f7fbe9; + --yith-fw-notice-icon: '\e921'; + --yith-fw-notice-border-color: #d7e0b0; + --yith-fw-notice-color: #6e861d; + } + + &.notice-error { + --yith-fw-notice-bg: #fff3f1; + --yith-fw-notice-icon: '\e923'; + --yith-fw-notice-border-color: #dbbcb7; + --yith-fw-notice-color: #a91803; + } + + a { + color: inherit; + font-weight: 500; + } + + &:before { + font-family: yith-icon; + content: var(--yith-fw-notice-icon); + position: absolute; + top: 50%; + left: 13px; + font-size: 20px; + font-weight: 400; + transform: translateY(-50%); + } + + p { + padding: 0; + margin: 0; + } + + .notice-dismiss { + cursor: pointer; + position: absolute; + width: 32px; + height: 32px; + border-radius: 50%; + right: 15px; + top: 50%; + transform: translateY(-50%); + color: inherit; + + &:before { + content: ''; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + border-radius: 50%; + opacity: 0; + box-shadow: 0 0 0 5px; + color: inherit; + background: currentColor; + transition: all .3s ease-in-out; + } + + &:after { + position: absolute; + top: 50%; + left: 50%; + font-family: 'yith-icon'; + content: '\f117'; + font-size: 12px; + transform: translateY(-50%) translateX(-50%); + } + + &:hover:before { + box-shadow: 0 0 0 0; + opacity: .1; + } + + &:hover:after, &:active:after, &:focus:after { + color: inherit; + } + } + } +} + +@media screen and (max-width: 782px) { + .yith-plugin-ui.yith-plugin-ui--taxonomy-type { + #col-container { + display: block; + } + + #col-left, #col-right { + float: none; + width: 100%; + } + } +} + diff --git a/plugin-fw/assets/css/scss/yith-plugin-panel/_wp-pages.scss b/plugin-fw/assets/css/scss/yith-plugin-panel/_wp-pages.scss new file mode 100644 index 0000000..409cc93 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-panel/_wp-pages.scss @@ -0,0 +1,185 @@ +/** + * WP Pages + */ + +.yith-plugin-fw-wp-page-wrapper { + + .yith-plugin-fw__back-to-wp-list__wrapper { + margin: -5px 0 15px; + + .yith-plugin-fw__back-to-wp-list { + text-decoration: none; + font-weight: 600; + text-transform: uppercase; + color: var(--yith-link); + vertical-align: middle; + + &:before { + content: "\e901"; + font-family: yith-icon; + margin-right: 5px; + font-size: .8em; + vertical-align: middle; + } + } + } + + .yith-plugin-fw-wp-page__description { + margin-top: .75rem; + font-size: .875rem; + line-height: 1.5; + } + + #poststuff { + min-width: 0; + } + + .postbox { + box-shadow: none; + } + + .wrap { + + div#message.updated { + --yith-fw-notice-bg: #f7fbe9; + --yith-fw-notice-icon: '\e921'; + --yith-fw-notice-border-color: #d7e0b0; + --yith-fw-notice-color: #6e861d; + display: none; + padding: 15px 40px 15px 45px; + margin: 15px 0 20px; + border-radius: 6px; + background: var(--yith-fw-notice-bg); + font-weight: 400; + font-size: 14px; + text-align: left; + color: var(--yith-fw-notice-color); + border: 1px solid var(--yith-fw-notice-border-color); + + a { + color: inherit; + font-weight: 500; + } + + &:before { + font-family: yith-icon; + content: var(--yith-fw-notice-icon); + position: absolute; + top: 50%; + left: 13px; + font-size: 20px; + font-weight: 400; + transform: translateY(-50%); + } + + p { + padding: 0; + margin: 0; + } + + .notice-dismiss { + cursor: pointer; + position: absolute; + width: 32px; + height: 32px; + border-radius: 50%; + right: 15px; + top: 50%; + transform: translateY(-50%); + color: inherit; + + &:before { + content: ''; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + border-radius: 50%; + opacity: 0; + box-shadow: 0 0 0 5px; + color: inherit; + background: currentColor; + transition: all .3s ease-in-out; + } + + &:after { + position: absolute; + top: 50%; + left: 50%; + font-family: 'yith-icon'; + content: '\f117'; + font-size: 12px; + transform: translateY(-50%) translateX(-50%); + } + + &:hover:before { + box-shadow: 0 0 0 0; + opacity: .1; + } + + &:hover:after, &:active:after, &:focus:after { + color: inherit; + } + } + } + } + + #wp-content-editor-tools { + background: transparent; + } + + @media screen and (max-width: 782px) { + p.search-box { + display: none; + } + } +} + +body.yith-plugin-fw-panel--version-2 { + + .yith-plugin-fw-wp-page-wrapper { + .wrap { + padding: 32px; + margin: 0; + + #yith-plugin-fw__back-to-wp-list__wrapper { + margin: -16px 0 15px -14px; + } + + h1 { + color: inherit; + font-size: 1.5rem; + margin: 0 8px 0 0; + padding: 0; + font-weight: 500; + } + + hr.wp-header-end { + margin: 32px -32px; + border: 0; + border-bottom: 1px solid var(--yith-field-border-color); + visibility: visible; + } + } + } + + &.term-php { + .yith-plugin-fw-wp-page-wrapper { + &.yith-plugin-ui--taxonomy-type { + #ajax-response:after { + content: ''; + width: calc(100% + 64px); + margin: 32px -32px; + border: 0; + border-bottom: 1px solid var(--yith-field-border-color); + display: block; + } + } + + #message { + display: none; + } + } + } +} diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui.scss b/plugin-fw/assets/css/scss/yith-plugin-ui.scss index e4d53ca..7fd45b3 100644 --- a/plugin-fw/assets/css/scss/yith-plugin-ui.scss +++ b/plugin-fw/assets/css/scss/yith-plugin-ui.scss @@ -1,8 +1,6 @@ @import "yith-plugin-ui/head_comment"; @import "yith-plugin-ui/variables"; -@import "yith-plugin-ui/wp-pages"; -@import "yith-plugin-ui/taxonomy"; @import "yith-plugin-ui/components"; @import "yith-plugin-ui/tables"; -@import "yith-plugin-ui/animations"; +@import "yith-plugin-ui/animations"; \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/_animations.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/_animations.scss index 8eafaef..9bb21ff 100644 --- a/plugin-fw/assets/css/scss/yith-plugin-ui/_animations.scss +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/_animations.scss @@ -2,15 +2,23 @@ * YITH Animations */ -.yith-plugin-fw-animate__appear-from-bottom{ +.yith-plugin-fw-animate__appear-from-bottom { animation: yith-plugin-fw-appear-from-bottom .3s forwards; } -.yith-plugin-fw-animate__appear-from-top{ +.yith-plugin-fw-animate__appear-from-top { animation: yith-plugin-fw-appear-from-top .3s forwards; } -.yith-plugin-fw-animate__fade-in{ +.yith-plugin-fw-animate__appear-from-left-full { + animation: yith-plugin-fw-appear-from-left-full .3s forwards; +} + +.yith-plugin-fw-animate__appear-from-right-full { + animation: yith-plugin-fw-appear-from-right-full .3s forwards; +} + +.yith-plugin-fw-animate__fade-in { animation: yith-plugin-fw-fade-in .3s forwards; } @@ -71,6 +79,62 @@ } } +@-webkit-keyframes yith-plugin-fw-appear-from-left-full { + from { + opacity: 0; + transform: translateX(-100%); + -webkit-transform: translateX(-100%); + } + + to { + opacity: 1; + transform: translateX(0); + -webkit-transform: translateX(0); + } +} + +@keyframes yith-plugin-fw-appear-from-left-full { + from { + opacity: 0; + transform: translateX(-100%); + -webkit-transform: translateX(-100%); + } + + to { + opacity: 1; + transform: translateX(0); + -webkit-transform: translateX(0); + } +} + +@-webkit-keyframes yith-plugin-fw-appear-from-right-full { + from { + opacity: 0; + transform: translateX(100%); + -webkit-transform: translateX(100%); + } + + to { + opacity: 1; + transform: translateX(0); + -webkit-transform: translateX(0); + } +} + +@keyframes yith-plugin-fw-appear-from-right-full { + from { + opacity: 0; + transform: translateX(100%); + -webkit-transform: translateX(100%); + } + + to { + opacity: 1; + transform: translateX(0); + -webkit-transform: translateX(0); + } +} + @-webkit-keyframes yith-plugin-fw-fade-in { from { opacity: 0; @@ -89,4 +153,22 @@ to { opacity: 1; } +} + +@-webkit-keyframes yith-plugin-fw-jiggle { + 25% { + transform: rotate(-20deg); + } + 75% { + transform: rotate(20deg); + } +} + +@keyframes yith-plugin-fw-jiggle { + 25% { + transform: rotate(-20deg); + } + 75% { + transform: rotate(20deg); + } } \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/_components.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/_components.scss index 16f360c..8404b57 100644 --- a/plugin-fw/assets/css/scss/yith-plugin-ui/_components.scss +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/_components.scss @@ -9,5 +9,7 @@ @import "components/list-items"; @import "components/list-table-blank-state"; @import "components/modal"; +@import "components/notices"; @import "components/tip-tip"; @import "components/tabs"; +@import "components/tags"; diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/_tables.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/_tables.scss index 2ed9429..c44ba43 100644 --- a/plugin-fw/assets/css/scss/yith-plugin-ui/_tables.scss +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/_tables.scss @@ -7,7 +7,7 @@ table.yith-plugin-fw__classic-table { @include classic-table; - &.wp-list-table{ + &.wp-list-table { @include wp-table-commons; } } @@ -15,7 +15,7 @@ table.yith-plugin-fw__classic-table { table.yith-plugin-fw__boxed-table { @include boxed-table; - &.wp-list-table{ + &.wp-list-table { @include wp-table-commons; } } @@ -54,3 +54,23 @@ table.yith-plugin-fw__boxed-table { } } } + +// RTL +.rtl { + .yith-plugin-ui--classic-wp-list-style, + .yith-plugin-ui--boxed-wp-list-style, + .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style, + .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style { + .sorting-indicator:before { + left: auto; + right: 0; + } + + table.wp-list-table { + th.column-actions, td.column-actions { + text-align: left; + } + } + } + +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/_variables.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/_variables.scss index d7c728b..fb2dcfe 100644 --- a/plugin-fw/assets/css/scss/yith-plugin-ui/_variables.scss +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/_variables.scss @@ -3,7 +3,7 @@ */ $content_bg: #ffffff; // Content Background. -$content_text: #3c434a; // Content Text. +$content_text: #475569; // Content Text. $primary: #00799f; // Primary color, for buttons $primary_hover: #0094c4; // Primary hover color, for buttons @@ -47,14 +47,17 @@ $success_light: lighten($success, 30%); $success_lighter: lighten($success, 43%); $success_lightest: lighten($success, 50%); - $table_row_highlight: #f0f6fb; $table_row_striped: #f6f7f7; $table_border_light: #eff0f0; -$field_border_color: #d8d8d8; +$field_border_color: #cbd5e1; $field_border_weight: 1px; $field_border: $field_border_weight solid $field_border_color; +$field_shadow_color: rgba(0, 0, 0, 0.05); +$field_shadow: 0 1px 2px 0 $field_shadow_color; +$field_border_radius: 6px; +$field_placeholder_color: #8f9eb0; $link: #0079b0; // Link Color. @@ -117,5 +120,10 @@ $wp_top_bar_mobile_size: 46px; --yith-field-border-color: #{$field_border_color}; --yith-field-border-weight: #{$field_border_color}; --yith-field-border: #{$field_border}; + --yith-field-shadow: #{$field_shadow}; + --yith-field-shadow-color: #{$field_shadow_color}; + --yith-field-border-radius: #{$field_border_radius}; + --yith-field-placeholder-color: #{$field_placeholder_color}; + --yith-link: #{$link}; } diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_buttons.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_buttons.scss index be66111..c020f45 100644 --- a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_buttons.scss +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_buttons.scss @@ -2,223 +2,230 @@ .yith-plugin-ui, .wp-core-ui .yith-plugin-ui { - // WordPress Buttons. - .button-primary, .button-secondary { - border-radius : 3px; - text-transform : none; - box-shadow : none; - border : 1px solid; - font-weight : 600; - padding : 0 12px; - outline : none; - height : auto; - transition : all ease 0.3s; - text-shadow : none; - display : inline-block; - text-decoration : none; - cursor : pointer; - white-space : nowrap; - - &:focus { - outline : none; - box-shadow : none; - } - - &.button-small { - padding : 0 8px; - } + // WordPress Buttons. + .button-primary, + .button-secondary, + &.yith-plugin-fw-wp-page-wrapper .page-title-action { + border-radius: 3px; + text-transform: none; + box-shadow: none; + border: 1px solid; + font-weight: 600; + padding: 0 12px; + outline: none; + height: auto; + transition: all ease 0.3s; + text-shadow: none; + display: inline-block; + text-decoration: none; + cursor: pointer; + white-space: nowrap; + + &:focus { + outline: none; + box-shadow: none; + } + + &.button-small { + padding: 0 8px; + } + } + + .button-secondary { + @include button-secondary; + } + + .button-primary, + &.yith-plugin-fw-wp-page-wrapper .page-title-action { + @include button-primary; + } + + &.yith-plugin-fw-wp-page-wrapper .page-title-action { + line-height: 2.15em; + } + + .button.action, + #doaction, + #doaction2, + #post-query-submit, + #posts-filter #delete_all, + #search-submit, + .button.filter-button { + @include button; + @include button-secondary; + height: auto; + line-height: 38px; + border-radius: var(--yith-field-border-radius); + padding: 0 15px; + font-weight: 600; + } + + #posts-filter #delete_all { + @include button-delete-outline; + } + + .tablenav .tablenav-pages .button, + .tablenav .tablenav-pages .tablenav-pages-navspan { + @include button-secondary; + } + + @media screen and (max-width: 782px) { + .tablenav .tablenav-pages .button, .tablenav .tablenav-pages .tablenav-pages-navspan { + min-width: 44px; + padding: 12px 8px; + font-size: 18px; + line-height: 1; + } + } + + // YITH Buttons. + .yith-plugin-fw__button, [class^="yith-plugin-fw__button--"], [class*=" yith-plugin-fw__button--"], + .yith-add-button, .yith-edit-button, .yith-update-button, .yith-remove-button, .yith-plugin-fw-upload-button, .yith-save-button, .yith-plugin-fw-select-all, .yith-plugin-fw-deselect-all, .yith-plugin-fw-upload-button-reset // Old buttons. + { + @include button; + } + + .yith-plugin-fw__button--primary { + @include button-primary; + } + + .yith-plugin-fw__button--secondary { + @include button-secondary; + } + + .yith-plugin-fw__button--delete { + @include button-delete; + } + + .yith-plugin-fw__button--add, .yith-add-button { + @include button-primary; + + @include button-with-icon("\f115"); + + &:before { + display: inline-block; + margin: 0 10px 0 -5px; + font-size: .95em; + transition: transform .2s, margin .2s, font-size .2s; + transition-timing-function: ease-in-out; + } + + &.closed { + @include button-secondary; + + &:before { + font-size: 1.15em; + margin: 0 8px 0 -5px; + transform: rotate(-45deg); + } } + } - .button-secondary { - @include button-secondary; - } + .yith-plugin-fw__button--close { + @include button-secondary; - .button-primary { - @include button-primary; - } + @include button-with-icon("\f117"); + } - .button.action, - #doaction, - #doaction2, - #post-query-submit, - #posts-filter #delete_all, - #search-submit, - .button.filter-button { - @include button; - @include button-secondary; - height : auto; - line-height : 33px; - border-radius : 8px; - padding : 0 15px; - font-weight : 600; - } + .yith-plugin-fw__button--edit, .yith-edit-button { + @include button-secondary; - #posts-filter #delete_all { - @include button-delete-outline; - } + @include button-with-icon("\e907"); + } - .tablenav .tablenav-pages .button, - .tablenav .tablenav-pages .tablenav-pages-navspan { - @include button-secondary; - } + .yith-plugin-fw__button--update, .yith-update-button { + @include button-update; - @media screen and (max-width : 782px) { - .tablenav .tablenav-pages .button, .tablenav .tablenav-pages .tablenav-pages-navspan { - min-width : 44px; - padding : 12px 8px; - font-size : 18px; - line-height : 1; - } - } + @include button-with-icon("\e90b"); + } - // YITH Buttons. - .yith-plugin-fw__button, [class^="yith-plugin-fw__button--"], [class*=" yith-plugin-fw__button--"], - .yith-add-button, .yith-edit-button, .yith-update-button, .yith-remove-button, .yith-plugin-fw-upload-button, .yith-save-button, .yith-plugin-fw-select-all, .yith-plugin-fw-deselect-all, .yith-plugin-fw-upload-button-reset // Old buttons. - { - @include button; - } + .yith-plugin-fw__button--trash, .yith-remove-button { + @include button-delete; - .yith-plugin-fw__button--primary { - @include button-primary; - } + @include button-with-icon("\e90d"); + } - .yith-plugin-fw__button--secondary { - @include button-secondary; - } - - .yith-plugin-fw__button--delete { - @include button-delete; - } + .yith-plugin-fw__button--upload, .yith-plugin-fw-upload-button { + @include button-primary; - .yith-plugin-fw__button--add, .yith-add-button { - @include button-primary; + @include button-with-icon("\e90c"); + } - @include button-with-icon("\f115"); + // Old buttons. + .yith-save-button { + @include button-primary; + } - &:before { - display : inline-block; - margin : 0 10px 0 -5px; - font-size : .95em; - transition : transform .2s, margin .2s, font-size .2s; - transition-timing-function : ease-in-out; - } + .yith-plugin-fw-select-all, + .yith-plugin-fw-deselect-all, + .yith-plugin-fw-upload-button-reset { + @include button-secondary; + } - &.closed { - @include button-secondary; + // with icons. + .button-secondary span.yith-icon { + margin-left: 0; + margin-right: 10px; + line-height: normal; - &:before { - font-size : 1.15em; - margin : 0 8px 0 -5px; - transform : rotate(-45deg); - } - } + &:before { + color: inherit; + font-size: 15px; + font-weight: 400; } + } - .yith-plugin-fw__button--close { - @include button-secondary; + // With icon + .yith-plugin-fw__button--with-icon { + position: relative; + padding-left: 30px; - @include button-with-icon("\f117"); + i { + position: absolute; + top: 50%; + left: 10px; + transform: translateY(-50%); + font-size: 1em; + font-weight: 400; } + } - .yith-plugin-fw__button--edit, .yith-edit-button { - @include button-secondary; - @include button-with-icon("\e907"); - } + // Button Sizes + .yith-plugin-fw__button--xl, .button-xl { + padding: 0 20px; + font-size: 14px; + line-height: 38px; - .yith-plugin-fw__button--update, .yith-update-button { - @include button-update; - - @include button-with-icon("\e90b"); + &::before { + margin: 0 10px 0 -5px; } - .yith-plugin-fw__button--trash, .yith-remove-button { - @include button-delete; + &.yith-plugin-fw__button--with-icon { + padding-left: 40px; - @include button-with-icon("\e90d"); + i { + left: 14px; + } } + } - .yith-plugin-fw__button--upload, .yith-plugin-fw-upload-button { - @include button-primary; - - @include button-with-icon("\e90c"); - } + .yith-plugin-fw__button--xxl { + padding: 0 28px; + font-size: 16px; + line-height: 45px; - // Old buttons. - .yith-save-button { - @include button-primary; + &::before { + margin: 0 15px 0 -10px; } - .yith-plugin-fw-select-all, - .yith-plugin-fw-deselect-all, - .yith-plugin-fw-upload-button-reset { - @include button-secondary; - } - - // with icons. - .button-secondary span.yith-icon { - margin-left : 0; - margin-right : 10px; - line-height : normal; - - &:before { - color : inherit; - font-size : 15px; - font-weight : 400; - } - } - - // With icon - .yith-plugin-fw__button--with-icon { - position : relative; - padding-left : 30px; - - i { - position : absolute; - top : 50%; - left : 10px; - transform : translateY(-50%); - font-size : 1em; - font-weight : 400; - } - } - - - // Button Sizes - .yith-plugin-fw__button--xl, .button-xl { - padding : 0 20px; - font-size : 14px; - line-height : 38px; - - &::before { - margin : 0 10px 0 -5px; - } - - &.yith-plugin-fw__button--with-icon { - padding-left : 40px; - - i { - left : 14px; - } - } - } - - .yith-plugin-fw__button--xxl { - padding : 0 28px; - font-size : 16px; - line-height : 45px; - - &::before { - margin : 0 15px 0 -10px; - } - - &.yith-plugin-fw__button--with-icon { - padding-left : 45px; + &.yith-plugin-fw__button--with-icon { + padding-left: 45px; - i { - left : 15px; - } - } + i { + left: 15px; + } } + } } diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_notices.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_notices.scss new file mode 100644 index 0000000..6fdd48f --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_notices.scss @@ -0,0 +1,98 @@ +.yith-plugin-fw__notice { + --yith-fw-notice-bg: #f2f7ff; + --yith-fw-notice-icon: '\e90e'; + --yith-fw-notice-border-color: #d2dbea; + --yith-fw-notice-color: #4361c4; + + &.yith-plugin-fw__notice--success { + --yith-fw-notice-bg: #f7fbe9; + --yith-fw-notice-icon: '\e921'; + --yith-fw-notice-border-color: #d7e0b0; + --yith-fw-notice-color: #6e861d; + } + + &.yith-plugin-fw__notice--warning { + --yith-fw-notice-bg: #fef5ea; + --yith-fw-notice-icon: '\e923'; + --yith-fw-notice-border-color: #e2cbb0; + --yith-fw-notice-color: #b86e16; + } + + &.yith-plugin-fw__notice--error { + --yith-fw-notice-bg: #fff3f1; + --yith-fw-notice-icon: '\e923'; + --yith-fw-notice-border-color: #dbbcb7; + --yith-fw-notice-color: #a91803; + } + + position: relative; + padding: 15px 40px 15px 45px; + margin: 15px 0 20px; + border-radius: 6px; + background: var(--yith-fw-notice-bg); + font-weight: 400; + font-size: 14px; + text-align: left; + color: var(--yith-fw-notice-color); + border: 1px solid var(--yith-fw-notice-border-color); + + a { + color: inherit; + font-weight: 500; + } + + &:before { + font-family: yith-icon; + content: var(--yith-fw-notice-icon); + position: absolute; + top: 50%; + left: 13px; + font-size: 20px; + font-weight: 400; + transform: translateY(-50%); + } + + .yith-plugin-fw__notice__dismiss { + cursor: pointer; + position: absolute; + width: 32px; + height: 32px; + border-radius: 50%; + right: 15px; + top: 50%; + transform: translateY(-50%); + + &:before { + content: ''; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + border-radius: 50%; + opacity: 0; + box-shadow: 0 0 0 5px; + background: currentColor; + transition: all .3s ease-in-out; + } + + &:after { + position: absolute; + top: 50%; + left: 50%; + font-family: 'yith-icon'; + content: '\f117'; + font-size: 12px; + transform: translateY(-50%) translateX(-50%); + } + + &:hover:before { + box-shadow: 0 0 0 0; + opacity: .1; + } + + &:hover:after, &:active:after, &:focus:after { + color: inherit; + } + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/scss/yith-plugin-ui/components/_tags.scss b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_tags.scss new file mode 100644 index 0000000..67a6206 --- /dev/null +++ b/plugin-fw/assets/css/scss/yith-plugin-ui/components/_tags.scss @@ -0,0 +1,23 @@ +.yith-plugin-fw__tag { + --yith-fw-tag-border-color: #4f6ede; + --yith-fw-tag-color: #4361c4; + + &.yith-plugin-fw__tag--premium-color { + --yith-fw-tag-border-color: #e76400; + --yith-fw-tag-color: #cd501f; + } + + font-size: 10px; + padding: 6px 10px; + border-radius: 6px; + font-weight: 600; + color: var(--yith-fw-tag-color); + border: 1px solid var(--yith-fw-tag-border-color); + line-height: 14px; + display: inline-block; + + a { + color: inherit; + font-weight: 500; + } +} \ No newline at end of file diff --git a/plugin-fw/assets/css/yit-plugin-panel.css b/plugin-fw/assets/css/yit-plugin-panel.css index b2becec..e001038 100644 --- a/plugin-fw/assets/css/yit-plugin-panel.css +++ b/plugin-fw/assets/css/yit-plugin-panel.css @@ -37,7 +37,7 @@ #plugin-fw-wc table.form-table, #yith-plugin-fw-panel table.form-table, .yith-plugin-fw-panel-custom-tab-container { background-color : #fff; - margin-bottom : 20px; + margin : 0 0 20px; } .yith-plugin-fw-panel-custom-tab-container { @@ -78,424 +78,12 @@ margin : 0; } -/** - Help tab - */ - -.yith-plugin-fw-panel-help-tab-container { - background-color : #fff; - padding : 60px 25px; -} - -.yith-plugin-fw-panel-help-tab-content { - background-color : #f4f4f4; - border-radius : 15px; - max-width : 1100px; - margin : 0 auto; - padding : 40px 40px 60px; -} - -.yith-plugin-fw-panel-help-tab-content p, -.yith-plugin-fw-panel-help-tab-content a { - font-size : 16px; -} - -.yith-plugin-fw-panel-help-tab-content .row { - margin : 0 -15px 50px; - white-space : nowrap; -} - -.yith-plugin-fw-panel-help-tab-content .row:last-child { - margin-bottom : 0; -} - -.yith-plugin-fw-panel-help-tab-content .row .column-left, -.yith-plugin-fw-panel-help-tab-content .row .column-right { - display : inline-block; - padding : 0 15px; - vertical-align : top; - width : 66%; -} - -.yith-plugin-fw-panel-help-tab-content .row .column-right { - width : 33%; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video, -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-actions, -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles, -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket { - box-sizing : border-box; - white-space : normal; -} - -.yith-plugin-fw-panel-help-tab-content h2.yith-plugin-fw-panel-help-tab-title { - background : none; - border : none; - font-size : 22px; - line-height : 1.5em; - padding : 0; - text-align : center; -} - -.yith-plugin-fw-panel-help-tab-content h3 { - color : #03689f; - font-size : 15px; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-panel-tab-description { - font-size : 18px; - text-align : center; - margin-bottom : 40px; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video { - text-align : center; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video p.video-description { - margin-bottom : 25px; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video .video-caption p { - margin : 5px 0; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video .video-container { - margin : 0 auto 50px; - overflow : hidden; - padding-top : 56.25%; - position : relative; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video .video-container iframe { - border : 0; - height : 100%; - left : 0; - position : absolute; - top : 0; - width : 100%; -} - -.yith-plugin-fw-panel-help-tab-content .box-with-shadow { - display : block; - background-color : #fff; - border-radius : 5px; - box-shadow : 0 0 15px 5px rgba(174, 201, 207, 0.3); - transition : all .2s ease; -} - -.yith-plugin-fw-panel-help-tab-content .box-with-image { - display : grid; - grid-template-columns: repeat(2, 1fr); - column-gap : 40px; - background-color : #fff; - border : 1px solid #ebebeb; - padding : 30px 40px; - max-width : 60%; - margin : 0 auto 40px; -} - -.yith-plugin-fw-panel-help-tab-content .box-with-image img{ - margin : 0 auto; - max-width: 100%; -} - -.yith-plugin-fw-panel-help-tab-content .box-with-image .box-content { - white-space: initial; -} - -.yith-plugin-fw-panel-help-tab-content .box-with-image .box-content .button { - border-radius: 0; - padding : 10px 20px; - min-width : 230px; - margin-top : 20px; - text-align : center; - white-space: initial; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions, -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket { - margin : 0 auto; - max-width : 640px; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions:not( .full-width ) { - padding-top : 65px !important; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li { - margin-bottom : 20px; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li > a { - display : block; - padding : 15px 20px 15px 75px !important; - text-decoration : none; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li:hover { - box-shadow : 0 0 15px 5px rgba(177, 220, 228, 0.6); - transform : scale(1.04); -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li a:before { - color : #03689f; - float : left; - font-family : 'yith-icon'; - font-size : 36px; - line-height : 1; - margin-left : -50px; - -webkit-font-smoothing : antialiased; - -moz-osx-font-smoothing : grayscale; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li.read-documentation a:before { - content : '\f10d'; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li.watch-videotutorials a:before { - content : '\f10e'; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li.check-faqs a:before { - content : '\f10c'; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li h4 { - margin : 0 0 5px; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li h4 a { - color : #03689f; - text-decoration : none; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li .description { - margin : 0; - font-size : 14px; -} - -.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li .separator { - display : inline-block; - margin : 0 5px; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles h3 { - font-size : 18px; - margin : 0; - padding : 10px 0; - position : relative; - -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles h3:before { - content : ''; - background : #03689f; - display : block; - height : 100%; - left : -40px; - position : absolute; - top : 0; - width : 15px; - -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles a.button { - font-size : 16px; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles-list { - margin : 15px 0 30px; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles-list li { - display : block; - margin-bottom : 10px; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles-list li:before { - content : '-'; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles-list a { - text-decoration : none; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket > .box-with-shadow { - padding : 30px !important; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket h3 { - color : #b90a0a; - font-size : 18px; - margin : 0 0 15px; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket p { - margin-bottom : 35px; -} - -.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket .button { - border-radius : 7px; - display : block; - font-size : 15px; - padding : 7px 15px; - text-align : center; -} - -/** - Premium Tab - */ - -#yith_plugin_fw_panel_premium_tab { - background-color : white; - padding : 40px; - margin-right : 15px; - border : 1px solid #d8d8d8; - border-top : none; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab { - background-color : #f9f9f9; - padding : 40px; - border : 1px solid #dbdbdb; - border-radius : 5px; - max-width : 1400px; - margin : auto; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header { - display : flex; - align-items : center; - gap : 35px 20px; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-title { - color : #C28D31; - text-transform : uppercase; - font-weight : 600; - font-size : 18px; - width : 100%; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta:before { - content : '\f11b'; - font-family : 'yith-icon'; - font-size : 18px; - line-height : 1em; - font-weight : 400; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta:hover:before { - transform-origin : center center; - animation : .3s yith-plugin-fw-jiggle linear; - animation-iteration-count : 3; -} - -@keyframes yith-plugin-fw-jiggle { - 25% { - transform : rotate(-20deg); - } - 75% { - transform : rotate(20deg); - } -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta { - color : white; - background-color : #e58f00; - display : flex; - align-items : center; - justify-content : space-between; - padding : 12px 24px; - column-gap : 12px; - font-size : 14px; - font-weight : 600; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta-arrow { - background : url("../images/arrow.svg") no-repeat center; - background-size : contain; - width : 100px; - height : 30px; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__content { - display : flex; - column-gap : 20px; - padding-top : 30px; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__main-image { - max-width : 50%; - object-fit : contain; - object-position : top; - flex : 1; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__features { - display : flex; - flex-direction : column; - row-gap : 45px; - font-size : 18px; - line-height : 24px; - padding-top : 30px; - flex : 1; - max-width : 100%; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature { - display : flex; - align-items : center; - column-gap : 25px; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature:before { - content : ''; - display : block; - width : 12px; - height : 20px; - border : 8px solid #96ca20; - border-left : 0; - border-top : 0; - transform : rotate(45deg) translate(30%, -15%); - margin-right : 10px; - margin-bottom : 6px; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature-content { - width : calc(100% - 55px); -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__cta-button { - background-color : #e58f00; - color : white; - text-transform : uppercase; - text-decoration : none; - border-radius : 5px; - white-space : nowrap; - transition : .3s; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__cta-button:hover { - background-color : #c67c00; -} - -#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__content-cta { - padding : 20px; - font-size : 20px; - font-weight : 600; - text-align : center; - line-height : normal; -} - /** Post type Edit */ .yith-plugin-fw-wp-page-wrapper { - margin : 23px 20px 0 2px; + margin : 23px 20px 0 2px; } .yith-plugin-fw-wp-page-wrapper .notice, @@ -539,18 +127,17 @@ .yith-plugin-fw-wp-page-wrapper .wrap a.page-title-action, .yith-plugin-fw-wp-page-wrapper .wrap a.page-title-action:active { border-radius : 3px; - text-transform : uppercase; box-shadow : none; border : 0; font-weight : 700; font-size : 11px; - padding : 0 14px; + padding : 0 14px !important; outline : none; height : auto; transition : all ease 0.3s; text-shadow : none; vertical-align : middle; - line-height : 26px; + line-height : 26px !important; display : inline-block; text-decoration : none; cursor : pointer; @@ -927,8 +514,8 @@ } #wpwrap h2.nav-tab-wrapper, #wpbody-content h2.nav-tab-wrapper { - border-bottom : 1px solid #ccc; - margin-right : 15px; + border-bottom : 1px solid #ccc; + margin-right : 15px; } /* === YIT FRAMEWORK === */ @@ -1204,96 +791,177 @@ button#yith-plugin-fw-float-save-button.green { left : 70px; } -/* === Responsive === */ +.yith-plugin-ui #wpwrap h2.nav-tab-wrapper, .yith-plugin-ui #wpbody-content h2.nav-tab-wrapper { + margin-top : 10px; +} -@media (max-width : 1210px) { - #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__main-image, - #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta-arrow { - display : none; - } +.yith-plugin-ui .nav-tab { + background-color : #336374; + color : #fff; + font-size : 13px; + padding : 7px 15px; + border : 0; + margin : 0 4px 0 0; + transition : background-color 0.3s linear; + float : none; + display : inline-block; +} - #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header { - flex-wrap : wrap; - } +.yith-plugin-ui .nav-tab.yith-premium { + background-color : #c28d31; + padding-left : 40px; + position : relative; +} - #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__features { - padding-top : 15px; - } +.yith-plugin-ui .nav-tab.yith-premium:before { + content : '\f11b'; + font-family : 'yith-icon'; + position : absolute; + font-size : 18px; + top : 50%; + left : 12px; + line-height : 1em; + width : 1em; + height : 1em; + transform : translateY(-50%); + font-weight : 400; +} - .yith-plugin-fw-panel-help-tab-content .box-with-image { - max-width: 100%; - } +.yith-plugin-ui .yith-nav-tab-wrapper .yith-plugin-fw-tab-element:hover > a.nav-tab:not(.nav-tab-active), +.yith-plugin-ui .yith-nav-tab-wrapper .nav-tab:not(.nav-tab-active):hover { + background-color : #207a92; } -@media (max-width : 600px) { - #yith_plugin_fw_panel_premium_tab { - padding : 20px; - } +.yith-plugin-ui .yith-nav-tab-wrapper .yith-plugin-fw-tab-element:hover > a.nav-tab.yith-premium:not(.nav-tab-active), +.yith-plugin-ui .yith-nav-tab-wrapper .nav-tab.yith-premium:not(.nav-tab-active):hover { + background-color : #d89216; +} - #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab { - padding : 30px; - } +.yith-plugin-ui .nav-tab-active, +.yith-plugin-ui .nav-tab-active:hover, +.yith-plugin-ui .nav-tab-active:focus, +.yith-plugin-ui .nav-tab-active:focus:active { + background-color : #fff; + color : #336374; + box-shadow : 0 3px 0 -1px #fff; + border-bottom : 0; } -@media (max-width : 767px) { +.yith-plugin-ui .nav-tab-active.yith-premium, +.yith-plugin-ui .nav-tab-active.yith-premium:hover, +.yith-plugin-ui .nav-tab-active.yith-premium:focus, +.yith-plugin-ui .nav-tab-active.yith-premium:focus:active { + background-color : #fff; + color : #c28d31; + box-shadow : none; +} +.yith-plugin-ui .yith-plugin-fw-tab-element:first-child .nav-tab-active { + border-left : 1px solid #ddd; } -@media (max-width : 480px) { - #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature:before { - width : 8px; - height : 15px; - border-width : 5px; - } +.yith-plugin-ui #plugin-fw-wc { + padding-top : 0px; +} - #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature { - flex-direction : column; - align-items : flex-start; - row-gap : 13px; - } +.yith-plugin-ui span.description { + display : block; + color : #716269; + font-size : 13px; + font-style : normal; + font-weight : 400; + margin-top : 10px; + margin-left : 0; + line-height : 20px; +} - #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature-content { - width : 100%; - } +#wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper { + border : 0; + border-bottom : 1px solid #ddd; + margin-right : 15px; + margin-bottom : 0; + background-color : transparent; + padding-left : 0; +} - #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__cta-button { - white-space : unset; - } +.yith-plugin-ui #plugin-fw-wc table.form-table, +.yith-plugin-ui #yith-plugin-fw-panel table.form-table, +.yith-plugin-ui table.form-table { + border : 1px solid #d8d8d8; + border-top : 0; + margin-bottom : 40px; +} - .yith-plugin-fw-panel-help-tab-content .box-with-image .box-content a.button { - min-width: 0; - max-width: 100%; - } +.yith-plugin-ui #wpwrap h2.nav-tab-wrapper, .yith-plugin-ui #wpbody-content h2.nav-tab-wrapper { + background-color : transparent; + border : 0; + text-transform : none; + border-bottom : 1px solid #ddd; } -@media (max-width : 992px) { - .yith-plugin-fw-panel-help-tab-content .row { - white-space : normal; - margin-bottom : 0; - } +.yith-plugin-ui h2 { + color : #2a8db0; + font-size : 16px; + border : 1px solid #d8d8d8; + border-bottom : 0; + background-color : #fff; + padding : 35px 20px; + margin : 0px; +} - .yith-plugin-fw-panel-help-tab-content .row .column-left, - .yith-plugin-fw-panel-help-tab-content .row .column-right { - width : 100%; - margin-bottom : 50px; - } +.yith-plugin-ui .yith-plugin-fw-custom-tab h2 { + border : 0px solid #d8d8d8; + padding-left : 0; +} - .yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions { - padding-top : 0 !important; - } +.yith-plugin-ui #plugin-fw-wc table.form-table th, #yith-plugin-fw-panel table.form-table th.titledesc, .yith-plugin-ui #plugin-fw-wc table.form-table td, #yith-plugin-fw-panel table.form-table td.forminp { + padding : 30px 20px; +} - .yith-plugin-fw-panel-help-tab-content .box-with-image { - display: block; - text-align: center; - } +.yith-plugin-ui #plugin-fw-wc table.form-table tr.toggle-element-fixed td, #yith-plugin-fw-panel table.form-table tr.toggle-element-fixed td.forminp { + padding : 0 20px 30px; +} + +.yith-plugin-ui #plugin-fw-wc h2 + div { + background : #fff; + border-left : 1px solid #d9d9d9; + border-right : 1px solid #d9d9d9; + margin : -20px 0 0 0; + padding-left : 20px; + padding-bottom : 5px; +} + +.yith-plugin-ui #plugin-fw-wc h2 + div p, .yith-plugin-ui p.info-box { + background : #f1f1f1; + font-size : 14px; + font-weight : 700; + width : 50%; + display : block; + padding : 15px; + margin-bottom : 0; } -@media (min-width : 768px) and (max-width : 992px) { +.yith-plugin-ui #plugin-fw-wc h2 + div p:before, .yith-plugin-ui p.info-box:before { + content : "\e90e"; + font-family : yith-icon; + font-size : 30px; + font-weight : normal; + display : block; + margin-top : -12px; + float : left; + margin-right : 15px; } -@media (min-width : 980px) and (max-width : 1199px) { +.yith-plugin-ui h2:first-child { + border-top : 0; } +.yith-plugin-ui .form-table th { + width : 200px; + padding-right : 50px; +} + +/* === Responsive === */ @media (min-width : 1200px) { .yit-container.plugin-licence-activation { width : 900px; diff --git a/plugin-fw/assets/css/yith-fields.css b/plugin-fw/assets/css/yith-fields.css index fab9a42..3cfc0df 100644 --- a/plugin-fw/assets/css/yith-fields.css +++ b/plugin-fw/assets/css/yith-fields.css @@ -1,58 +1,58 @@ .yith-plugin-fw span.description { - display : block; - margin-top : 5px; - font-size : 12px; - color : #777; - font-style : italic; - clear : both; + display : block; + margin-top : 5px; + font-size : 12px; + color : #777; + font-style : italic; + clear : both; } .yith-plugin-fw span.description.inline { - display : inline-block; - margin : 0 0 0 5px; - min-width : 0; - max-width : 100%; + display : inline-block; + margin : 0 0 0 5px; + min-width : 0; + max-width : 100%; } .yith-disabled { - opacity : 0.3; - pointer-events : none; + opacity : 0.3; + pointer-events : none; } .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper) { - display : block; - width : 100%; + display : block; + width : 100%; } .yith-plugin-fw-field-wrapper .yith-inline-fields > div { - display : inline-block; - vertical-align : middle; - margin-right : 5px; + display : inline-block; + vertical-align : middle; + margin-right : 5px; } .yith-plugin-fw-field-wrapper span.desc { - display : block; - width : 100%; + display : block; + width : 100%; } .yith-plugin-fw-title-field-wrapper h3.title { - width : 100%; - padding : 0 !important; + width : 100%; + padding : 0 !important; } .the-metabox .yith-plugin-fw-title-field-wrapper h3.title { - float : left; + float : left; } .yith-plugin-fw span.color-alpha { - height : 100% !important; - width : 100% !important; - border : 1px solid #d9d9d9; - margin : -1px; + height : 100% !important; + width : 100% !important; + border : 1px solid #d9d9d9; + margin : -1px; } .yith-plugin-fw .wp-color-result-text { - height : 100%; + height : 100%; } .yith-plugin-fw input[type=email], @@ -64,675 +64,573 @@ .yith-plugin-ui input[type=password], .woocommerce .yith-plugin-fw table.form-table input[type=text]:not(.select2-search__field), .woocommerce .yith-plugin-fw table.form-table select { - width : 400px; - max-width : 100%; - height : 30px; - padding : 5px; - line-height : 1; + width : 400px; + max-width : 100%; + height : 30px; + padding : 5px; + line-height : 1; } .yith-plugin-fw input[type=number], .woocommerce .yith-plugin-fw table.form-table input[type=number] { - width : 70px; - min-width : 70px; + width : 70px; + min-width : 70px; } .woocommerce .yith-plugin-fw table.form-table input[type=text].wp-color-picker, .woocommerce .yith-plugin-fw table.form-table input[type=text].yith-plugin-fw-colorpicker, .yith-plugin-fw input[type=text].wp-color-picker, .yith-plugin-fw input[type=text].yith-plugin-fw-colorpicker { - width : 6em; - max-width : none; - height : auto; - padding : 3px 5px; + width : 6em; + max-width : none; + height : auto; + padding : 3px 5px; } .wp-core-ui .yith-plugin-fw-colorpicker-field-wrapper button { - border-color : #7e8993; + border-color : #7e8993; } .woocommerce .yith-plugin-fw table.form-table input[type=text].colorpick, .yith-plugin-fw input[type=text].colorpick { - width : 6em; - max-width : none; - height : auto; - padding : 6px; + width : 6em; + max-width : none; + height : auto; + padding : 6px; } .yith-plugin-fw input.select2-search__field, .yith-plugin-fw .select2-container .select2-search--inline .select2-search__field, .woocommerce .yith-plugin-fw input.select2-search__field, .woocommerce .yith-plugin-fw table.form-table input.select2-search__field { - padding : 3px; - min-width : 380px; + padding : 3px; + min-width : 380px; } .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered { - line-height : 27px; + line-height : 27px; } .yith-plugin-fw textarea:not(.wp-editor-area) { - width : 400px; - max-width : 100%; - padding : 5px; + width : 400px; + max-width : 100%; + padding : 5px; } /* ------------- ICONS ------------- */ .yit-icons-manager-wrapper { - width : 100%; - max-width : 400px; + width : 100%; + max-width : 400px; } .yit-icons-manager-text { - width : 100%; + width : 100%; } .yit-icons-manager-icon-text { - width : calc(100% - 35px) !important; - height : 30px; - float : left; - margin : 0; + width : calc(100% - 35px) !important; + height : 30px; + float : left; + margin : 0; } .yit-icons-manager-icon-preview { - width : 30px; - height : 30px; - margin-right : 5px; - float : left; - padding-top : 6px; - box-sizing : border-box; - text-align : center; - background : #f1f1f1; + width : 30px; + height : 30px; + margin-right : 5px; + float : left; + padding-top : 6px; + box-sizing : border-box; + text-align : center; + background : #f1f1f1; } .yit-icons-manager-list-wrapper { - margin : 10px 0; - box-shadow : 0 0 0 1px #ddd; + margin : 10px 0; + box-shadow : 0 0 0 1px #ddd; } ul.yit-icons-manager-list { - width : 100%; - height : 300px; - overflow-y : scroll; - margin : 0; + width : 100%; + height : 300px; + overflow-y : scroll; + margin : 0; } ul.yit-icons-manager-list li { - float : left; - width : 30px; - height : 30px; - padding-top : 6px; - box-sizing : border-box; - text-align : center; - background : #f1f1f1; - margin : 1px; - cursor : pointer; + float : left; + width : 30px; + height : 30px; + padding-top : 6px; + box-sizing : border-box; + text-align : center; + background : #f1f1f1; + margin : 1px; + cursor : pointer; } ul.yit-icons-manager-list li:hover { - background : #c5dcf6; + background : #c5dcf6; } ul.yit-icons-manager-list li.active { - background : #d4f0ff; + background : #d4f0ff; } .yit-icons-manager-action-set-default { - margin-bottom : 0; + margin-bottom : 0; } .yit-icons-manager-default-icon-preview { - height : 100%; - display : inline-block; - padding-left : 10px; - border-left : 1px solid #ccc; - margin-left : 10px; + height : 100%; + display : inline-block; + padding-left : 10px; + border-left : 1px solid #ccc; + margin-left : 10px; } /* ------- Text Array ------- */ .yith-plugin-fw-text-array-table td { - padding : 1px; + padding : 1px; } .yith-plugin-fw-text-array-table input[type=text], .woocommerce table.form-table table.yith-plugin-fw-text-array-table input[type=text] { - width : 100%; + width : 100%; } /* ------- Image Gallery ------- */ .yith-plugin-fw .yith-plugin-fw-image-gallery ul li { - display : inline-block; - width : 80px; - margin-left : 10px; - position : relative; + display : inline-block; + width : 80px; + margin-left : 10px; + position : relative; } .yith-plugin-fw .yith-plugin-fw-image-gallery ul li img { - width : 80px; - border : 1px solid #ccc; + width : 80px; + border : 1px solid #ccc; } .yith-plugin-fw .yith-plugin-fw-image-gallery ul li ul { - position : absolute; - top : -6px; - right : -1px; - width : 20px; - height : 20px; + position : absolute; + top : -6px; + right : -1px; + width : 20px; + height : 20px; } .yith-plugin-fw .yith-plugin-fw-image-gallery ul a.delete { - background : url(../images/x.png) no-repeat; - width : 20px; - height : 20px; - display : block; - text-indent : -99999px; + background : url(../images/x.png) no-repeat; + width : 20px; + height : 20px; + display : block; + text-indent : -99999px; } /* ------- OnOff ------- */ .yith-plugin-fw-onoff-container { - display : inline-block; - text-align : left; + display : inline-block; + text-align : left; } .yith-plugin-fw-onoff-container input { - display : none; + display : none; } .yith-plugin-fw-onoff-container input + span { - cursor : pointer; - text-indent : -9999px; - display : block; - width : 36px; - line-height : 1; - height : 20px; - background : #a4a4a4; - border-radius : 24px; - position : relative; - transition : all 0.3s; -} - - -.yith-plugin-fw-onoff-container input + span:before { - content : ''; - background : #fff; - width : 16px; - height : 16px; - border-radius : 50%; - position : absolute; - top : 2px; - left : 2px; - transition : all 0.3s; + cursor : pointer; + text-indent : -9999px; + display : block; + width : 36px; + line-height : 1; + height : 20px; + background : #a4a4a4; + border-radius : 24px; + position : relative; + transition : all 0.3s; +} + +.yith-plugin-fw-onoff-container input + span .yith-plugin-fw-onoff__handle { + background : #fff; + width : 16px; + height : 16px; + border-radius : 50%; + position : absolute; + top : 2px; + left : 2px; + transition : all 0.3s; +} + +.yith-plugin-fw-onoff__icon { + display : none; + stroke : currentColor; + stroke-width : 2; } .yith-plugin-fw-onoff-container input:checked + span, .yith-plugin-fw-onoff-container input.onoffchecked + span { - background : #0073aa; + background : #0073aa; } -.yith-plugin-fw-onoff-container input:checked + span:before, -.yith-plugin-fw-onoff-container input.onoffchecked + span:before { - left : 18px; +.yith-plugin-fw-onoff-container input:checked + span .yith-plugin-fw-onoff__handle, +.yith-plugin-fw-onoff-container input.onoffchecked + span .yith-plugin-fw-onoff__handle { + left : 18px; } /* ------- Preview ------- */ .yith-plugin-fw-preview-field { - max-height : 200px; + max-height : 200px; } /* ------- Radio ------- */ .yith-plugin-fw-radio input[type=radio] { - margin : 0 3px 0 0; + margin : 0 3px 0 0; } .yith-plugin-fw-radio__row { - margin-bottom : 8px; + margin-bottom : 8px; } /* ------- Checkbox Array ------- */ .yith-plugin-fw-checkbox-array input[type=checkbox] { - margin : 2px 3px 0 0; + margin : 2px 3px 0 0; } .yith-plugin-fw-checkbox-array__row { - margin-bottom : 10px; - display : flex; + margin-bottom : 10px; + display : flex; } .yith-plugin-fw-checkbox-array__row label { - display : inline-block !important; - width : auto !important; - float : none !important; - margin : 0 0 0 10px !important; - padding : 0 !important; - font-weight : 400 !important; + display : inline-block !important; + width : auto !important; + float : none !important; + margin : 0 0 0 10px !important; + padding : 0 !important; + font-weight : 400 !important; } .yith-plugin-fw-checkbox-array__row label small { - display : block; - line-height : 2em; + display : block; + line-height : 2em; } .rtl .yith-plugin-fw-checkbox-array__row label { - margin : 0 10px 0 0 !important; + margin : 0 10px 0 0 !important; } /* ------- Sidebar Layout ------- */ .yith-plugin-fw-sidebar-layout input[type="radio"] { - display : none; - width : 0px; + display : none; + width : 0px; } .yith-plugin-fw-sidebar-layout input[type="radio"]:first-child { - margin-right : -2px; + margin-right : -2px; } .yith-plugin-fw-sidebar-layout input[type="radio"] + img { - border : 2px solid #fff; - padding : 1px; + border : 2px solid #fff; + padding : 1px; } .yith-plugin-fw-sidebar-layout input[type="radio"] + img:hover { - cursor : pointer; + cursor : pointer; } .yith-plugin-fw-sidebar-layout input[checked] + img { - border : 2px solid #f2ad35; - padding : 1px; + border : 2px solid #f2ad35; + padding : 1px; } .yith-plugin-fw-sidebar-layout select { - vertical-align : 12px; + vertical-align : 12px; } .yit-admin-panel-content-wrap .yith-plugin-fw-sidebar-layout label { - font-weight : bold; - width : 200px; - float : left; - line-height : 23px; - margin-left : -230px; + font-weight : bold; + width : 200px; + float : left; + line-height : 23px; + margin-left : -230px; } /* ------- Slider ------- */ .yith-plugin-fw .slider { - padding-top : 20px; + padding-top : 20px; } .yith-plugin-fw-slider-container .ui-slider .minCaption { - position : absolute; - right : 95%; - top : -6px; - margin-right : 11px; + position : absolute; + right : 95%; + top : -6px; + margin-right : 11px; } .yith-plugin-fw-slider-container .ui-slider .maxCaption { - position : absolute; - left : 95%; - top : -6px; - margin-left : 20px; + position : absolute; + left : 95%; + top : -6px; + margin-left : 20px; } .yith-plugin-fw-slider-container .ui-slider-horizontal .ui-slider-handle { - background : #fff; - border : 0px !important; - top : -12px !important; - border-radius : 50%; - width : 27px !important; - height : 27px !important; - box-sizing : border-box; - box-shadow : 0 1px 7px -1px rgba(0, 0, 0, 0.5); - font-size : 13px; - padding : 6px 0; - font-weight : 600; - color : #555; - text-align : center; + background : #fff; + border : 0px !important; + top : -12px !important; + border-radius : 50%; + width : 27px !important; + height : 27px !important; + box-sizing : border-box; + box-shadow : 0 1px 7px -1px rgba(0, 0, 0, 0.5); + font-size : 13px; + padding : 6px 0; + font-weight : 600; + color : #555; + text-align : center; } .yith-plugin-fw-slider-container .ui-slider.ui-widget-content { - background : #ccc; - border : none !important; - height : 3px !important; - border-radius : 3px !important; - width : 90%; - margin : 15px 5% 20px 5%; + background : #ccc; + border : none !important; + height : 3px !important; + border-radius : 3px !important; + width : 90%; + margin : 15px 5% 20px 5%; } .yith-plugin-fw-slider-container .ui-slider.ui-widget-content .ui-widget-header { - background : #4b93ff; - left : 0px !important; - -webkit-border-radius : 3px; - -moz-border-radius : 3px; - -khtml-border-radius : 3px; - border-radius : 3px; + background : #4b93ff; + left : 0px !important; + -webkit-border-radius : 3px; + -moz-border-radius : 3px; + -khtml-border-radius : 3px; + border-radius : 3px; } /* ------- Select2 ------- */ .yith-plugin-fw-select2-wrapper { - width : 400px; + width : 400px; } /* ------- Textarea ------- */ .yith-plugin-fw-textarea-editor-field-wrapper { - max-width : 1000px; - clear : both; + max-width : 1000px; + clear : both; } .yith-plugin-fw-textarea-editor-field-wrapper textarea.wp-editor-area, .woocommerce table.form-table .yith-plugin-fw-textarea-editor-field-wrapper textarea.wp-editor-area { - width : 100%; + width : 100%; } /* ------- Buttons ------- */ .yith-plugin-fw-buttons-field-wrapper { - margin-top : 7px; + margin-top : 7px; } /* ------- Select Images ------- */ .yith-plugin-fw-select-images__list { - margin : 0; - display : flex; - flex-wrap : wrap; + margin : 0; + display : flex; + flex-wrap : wrap; } .yith-plugin-fw-select-images__item { - width : calc(20% - 10px); - min-width : 150px; - margin : 0 10px 10px 0; - padding : 10px; - box-sizing : border-box; - cursor : pointer; - transition : all .3s; - border : 2px solid #eee; - display : flex; - flex-direction : column; - justify-content : space-between; + width : calc(20% - 10px); + min-width : 150px; + margin : 0 10px 10px 0; + padding : 10px; + box-sizing : border-box; + cursor : pointer; + transition : all .3s; + border : var(--yith-field-border); + border-radius : var(--yith-field-border-radius); + box-shadow : var(--yith-field-shadow); + display : flex; + flex-direction : column; + justify-content : space-between; + position : relative; +} + +.yith-plugin-fw-select-images__item__selected-icon { + position : absolute; + top : -8px; + right : -8px; + display : none; + align-items : center; + justify-content : center; + width : 20px; + height : 20px; + border-radius : 50%; + background : var(--yith-primary); + color : var(--yith-primary-text); + font-size : 14px; +} + +.yith-plugin-fw-select-images__item__selected-icon svg { + width : 1em; + stroke : currentColor; + stroke-width : 1px; } .yith-plugin-fw-select-images__item:hover, .yith-plugin-fw-select-images__item.yith-plugin-fw-select-images__item--selected { - border-color : #07bcce; + border-color : transparent; + box-shadow : var(--yith-field-shadow), 0 0 0 2px var(--yith-primary); +} + +.yith-plugin-fw-select-images__item--selected .yith-plugin-fw-select-images__item__selected-icon { + display : flex; } .yith-plugin-fw-select-images__item__label { - text-align : center; - font-weight : 600; - margin-bottom : 10px; + text-align : center; + font-weight : 600; + margin-bottom : 10px; } .yith-plugin-fw-select-images__item img { - display : block; - max-width : 100%; - margin : 0 auto; + display : block; + max-width : 100%; + margin : 0 auto; } /**************** WordPress 5.3 with old panel fixes ****************/ .yith-plugin-fw-field-wrapper .select2-container .select2-selection--single { - height : auto; - line-height : 1; + height : auto; + line-height : 1; } .yith-plugin-fw-field-wrapper .select2-container .select2-selection--single .select2-selection__arrow { - height : 100%; + height : 100%; } /**************** YITH UI ****************/ .yith-plugin-fw-banner { - width : 100%; - height : 45px; - background : #cfd9dd url(../images/banner-premium.png) no-repeat; - display : flex; - align-items : center; - padding-right : -23px; + width : calc(100% - 35px); + height : 45px; + background : #cfd9dd url(../images/banner-premium.png) no-repeat; + display : flex; + align-items : center; } .yith-plugin-fw-banner h1 { - color : #0c5777; - font-size : 16px; - padding : 0 0 0 110px; - font-weight : 700; - text-align : left; - display : inline-block; - box-sizing : border-box; + color : #0c5777; + font-size : 16px; + padding : 0 0 0 110px; + font-weight : 700; + text-align : left; + display : inline-block; + box-sizing : border-box; } .yith-plugin-fw-banner span { - font-style : italic; - display : block; - font-size : 15px; - color : #214249; - text-transform : none; - text-align : right; + font-style : italic; + display : block; + font-size : 15px; + color : #214249; + text-transform : none; + text-align : right; } .yith-plugin-fw-banner a, .yith-plugin-fw-banner a:focus { - text-decoration : none; - outline : none; - box-shadow : none; + text-decoration : none; + outline : none; + box-shadow : none; } .yith-plugin-fw-rate { - margin : 20px 0; + margin : 20px 35px 20px 0; } .yith-plugin-fw-rate .dashicons-star-filled { - font-size : 12px; - margin : 4px -4px; - color : #0c5777; + font-size : 12px; + margin : 4px -4px; + color : #0c5777; } .yith-plugin-fw-rate a { - text-decoration : none; + text-decoration : none; } .yith-plugin-ui a { - outline : none; - box-shadow : none; + outline : none; + box-shadow : none; } .yith-plugin-ui { - font-family : -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; -} - -.yith-plugin-ui #wpwrap h2.nav-tab-wrapper, .yith-plugin-ui #wpbody-content h2.nav-tab-wrapper { - margin-top : 10px; -} - -.yith-plugin-ui .nav-tab { - background-color : #336374; - color : #fff; - font-size : 13px; - padding : 7px 15px; - border : 0; - margin : 0 4px 0 0; - transition : background-color 0.3s linear; - float : none; - display : inline-block; -} - -.yith-plugin-ui .nav-tab.yith-premium { - background-color : #c28d31; - padding-left : 40px; - position : relative; -} - -.yith-plugin-ui .nav-tab.yith-premium:before { - content : '\f11b'; - font-family : 'yith-icon'; - position : absolute; - font-size : 18px; - top : 50%; - left : 12px; - line-height : 1em; - width : 1em; - height : 1em; - transform : translateY(-50%); - font-weight : 400; -} - -.yith-plugin-ui .yith-nav-tab-wrapper .yith-plugin-fw-tab-element:hover > a.nav-tab:not(.nav-tab-active), -.yith-plugin-ui .yith-nav-tab-wrapper .nav-tab:not(.nav-tab-active):hover { - background-color : #207a92; -} - -.yith-plugin-ui .yith-nav-tab-wrapper .yith-plugin-fw-tab-element:hover > a.nav-tab.yith-premium:not(.nav-tab-active), -.yith-plugin-ui .yith-nav-tab-wrapper .nav-tab.yith-premium:not(.nav-tab-active):hover { - background-color : #d89216; -} - -.yith-plugin-ui .nav-tab-active, -.yith-plugin-ui .nav-tab-active:hover, -.yith-plugin-ui .nav-tab-active:focus, -.yith-plugin-ui .nav-tab-active:focus:active { - background-color : #fff; - color : #336374; - box-shadow : 0 3px 0 -1px #fff; - border-bottom : 0; -} - -.yith-plugin-ui .nav-tab-active.yith-premium, -.yith-plugin-ui .nav-tab-active.yith-premium:hover, -.yith-plugin-ui .nav-tab-active.yith-premium:focus, -.yith-plugin-ui .nav-tab-active.yith-premium:focus:active { - background-color : #fff; - color : #c28d31; - box-shadow : none; -} - -.yith-plugin-ui .yith-plugin-fw-tab-element:first-child .nav-tab-active { - border-left : 1px solid #ddd; -} - -.yith-plugin-ui #plugin-fw-wc { - padding-top : 0px; + font-family : -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } .yith-plugin-ui .form-table td { - padding : 15px 20px; + padding : 15px 20px; } .yith-plugin-ui.metaboxes-tab label { - color : #33373b; - font-size : 14px; - margin-left : -248px; + color : #33373b; + font-size : 14px; + margin-left : -248px; } .yith-plugin-ui.metaboxes-tab .the-metabox { - margin : 40px 0 40px 290px; - margin-left : 264px; + margin : 40px 0 40px 290px; + margin-left : 264px; } .yith-plugin-ui.metaboxes-tab label { - width : 200px; - font-weight : 600; -} - -.yith-plugin-ui span.description { - display : block; - color : #716269; - font-size : 13px; - font-style : normal; - font-weight : 400; - margin-top : 10px; - margin-left : 0; - line-height : 20px; -} - -#wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper { - border : 0; - border-bottom : 1px solid #ddd; - margin-right : 15px; - margin-bottom : 0; - background-color : transparent; - padding-left : 0; -} - -.yith-plugin-ui #plugin-fw-wc table.form-table, -.yith-plugin-ui #yith-plugin-fw-panel table.form-table, -.yith-plugin-ui table.form-table { - border : 1px solid #d8d8d8; - border-top : 0; - margin-bottom : 40px; -} - -.yith-plugin-ui #wpwrap h2.nav-tab-wrapper, .yith-plugin-ui #wpbody-content h2.nav-tab-wrapper { - background-color : transparent; - border : 0; - text-transform : none; - border-bottom : 1px solid #ddd; + width : 200px; + font-weight : 600; } .yith-plugin-ui h2 { - color : #2a8db0; - font-size : 16px; - border : 1px solid #d8d8d8; - border-bottom : 0; - background-color : #fff; - padding : 35px 20px; - margin : 0px; + color : #2a8db0; + font-size : 16px; } .yith-plugin-ui .yith-plugin-fw-custom-tab h2 { - border : 0px solid #d8d8d8; - padding-left : 0; -} - -.yith-plugin-ui #plugin-fw-wc table.form-table th, #yith-plugin-fw-panel table.form-table th.titledesc, .yith-plugin-ui #plugin-fw-wc table.form-table td, #yith-plugin-fw-panel table.form-table td.forminp { - padding : 30px 20px; -} - -.yith-plugin-ui #plugin-fw-wc table.form-table tr.toggle-element-fixed td, #yith-plugin-fw-panel table.form-table tr.toggle-element-fixed td.forminp { - padding : 0 20px 30px; -} - -.yith-plugin-ui #plugin-fw-wc h2 + div { - background : #fff; - border-left : 1px solid #d9d9d9; - border-right : 1px solid #d9d9d9; - margin : -20px 0 0 0; - padding-left : 20px; - padding-bottom : 5px; -} - -.yith-plugin-ui #plugin-fw-wc h2 + div p, .yith-plugin-ui p.info-box { - background : #f1f1f1; - font-size : 14px; - font-weight : 700; - width : 50%; - display : block; - padding : 15px; - margin-bottom : 0; + border : 0px solid #d8d8d8; + padding-left : 0; } -.yith-plugin-ui #plugin-fw-wc h2 + div p:before, .yith-plugin-ui p.info-box:before { - content : "\e90e"; - font-family : yith-icon; - font-size : 30px; - font-weight : normal; - display : block; - margin-top : -12px; - float : left; - margin-right : 15px; +.yith-plugin-ui p.info-box { + background : #f1f1f1; + font-size : 14px; + font-weight : 700; + width : 50%; + display : block; + padding : 15px; + margin-bottom : 0; } -.yith-plugin-ui h2:first-child { - border-top : 0; +.yith-plugin-ui p.info-box:before { + content : "\e90e"; + font-family : yith-icon; + font-size : 30px; + font-weight : normal; + display : block; + margin-top : -12px; + float : left; + margin-right : 15px; } /*** Icon ***/ .yith-plugin-ui .yith-icon--right-overlay { - position : relative; - left : -33px; - line-height : 36px; - width : 0; + position : relative; + left : -33px; + line-height : 36px; + width : 0; } .rtl .yith-plugin-ui .yith-icon--right-overlay { - left : auto; - right : -33px; + left : auto; + right : -33px; } /*** General Input Style ***/ @@ -754,61 +652,64 @@ YITH UI .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=number], .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text], .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=email] { - border : 1px solid #d8d8d8; - border-radius : 8px; - padding : 8px 10px; - height : 38px; - min-width : 90px; - box-shadow : none; - color : #716269; + border : var(--yith-field-border); + border-radius : var(--yith-field-border-radius); + padding : 8px 10px; + height : 40px; + min-width : 90px; + box-shadow : var(--yith-field-shadow); + color : var(--yith-content-text); } .yith-plugin-ui input::-webkit-input-placeholder { - color : #999999; + color : var(--yith-field-placeholder-color); } .yith-plugin-ui input:-ms-input-placeholder { - color : #999999; + color : var(--yith-field-placeholder-color); } .yith-plugin-ui input::-ms-input-placeholder { - color : #999999; + color : var(--yith-field-placeholder-color); } .yith-plugin-ui input::placeholder { - color : #999999; + color : var(--yith-field-placeholder-color); } .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=number] { - min-width : 70px; + min-width : 70px; } .yith-plugin-ui textarea:not(.wp-editor-area), .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table textarea:not(.wp-editor-area) { - height : auto; - padding : 8px; + height : auto; + padding : 8px; } .yith-plugin-ui input[type=text]:not(.select2-search__field).wp-color-picker, .yith-plugin-ui table.form-table input[type=text].wp-color-picker, .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].wp-color-picker { - border : 0; - height : 30px; - max-width : 121px; - font-size : 11px; - padding : 0; + border : 0; + height : 30px; + max-width : 121px !important; + font-size : 11px; + padding : 0; + box-shadow : none; } -.yith-plugin-ui .search-box input[name="s"] { - height : 35px; +.yith-plugin-ui input[type=text]:not(.select2-search__field).wp-color-picker:focus, +.yith-plugin-ui table.form-table input[type=text].wp-color-picker:focus, +.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].wp-color-picker:focus { + box-shadow : none; } .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].small-text, .yith-plugin-ui input[type=text].small-text { - width : 100px; - height : 25px; - border : 1px solid #d9d9d9; + width : 100px; + height : 25px; + border : var(--yith-field-border); } @@ -822,39 +723,47 @@ YITH UI .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=number]:focus, .yith-plugin-ui textarea:not(.wp-editor-area):focus, .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table textarea:not(.wp-editor-area):focus { - border-color : #a7d9ec; - outline : none; - box-shadow : none; + border-color : var(--yith-primary); + outline : none; + box-shadow : var(--yith-field-shadow), 0 0 0 1px var(--yith-primary); } .woocommerce .yith-plugin-ui table.form-table select, .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table select, -.yith-plugin-ui select { - -webkit-appearance : none; - line-height : 1.2em; - min-height : 35px; - background : #fff url("../images/arrow_down.svg") no-repeat right center; - background-size : 35px 13px; - border-radius : 8px; - padding : 8px 30px 8px 10px; - border-color : #d8d8d8; +.yith-plugin-ui select, +.yith-plugin-ui select:disabled { + -webkit-appearance : none; + line-height : 1.5em; + min-height : 40px; + background : #fff url("../images/select-indicator.svg") no-repeat right center; + background-size : 33px 20px; + border-radius : var(--yith-field-border-radius); + padding : 8px 30px 8px 10px; + border : var(--yith-field-border); + box-shadow : var(--yith-field-shadow); +} + +.yith-plugin-ui select:disabled { + background-color : #f7f8f9; } .yith-plugin-ui option:disabled { - color : #aaa; + color : #aaa; } -.yith-plugin-ui .form-table th { - width : 200px; - padding-right : 50px; +.rtl.woocommerce .yith-plugin-ui table.form-table select, +.rtl.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table select, +.rtl .yith-plugin-ui select, +.rtl .yith-plugin-ui select:disabled { + background-position-x : left; } /** SELECT 2 **/ .yith-plugin-ui .select2-container, .yith-plugin-ui .select2-selection--single { - height : auto; - padding : 2px; - outline : none; + height : auto; + padding : 2px; + outline : none; } .yith-plugin-ui .select2-container .select2-selection--single, @@ -863,354 +772,401 @@ YITH UI .yith-plugin-ui .select2-container.select2-container--focus .select2-selection--multiple, .yith-plugin-ui .select2-container.select2-container--open .select2-selection--single, .yith-plugin-ui .select2-container.select2-container--open .select2-selection--multiple { - margin : 0; - border : 0; - box-shadow : none !important; + margin : 0; + border : 0; + box-shadow : none !important; +} + +.yith-plugin-ui .select2-container .select2-selection--single { + height : auto; + line-height : 1; } .yith-plugin-ui .select2-container .select2-selection--single .select2-selection__arrow { - background : none; + background : none; } /* old panel*/ .yith-plugin-fw-select2-container { - z-index : 9999; + z-index : 9999; } .yith-plugin-ui span.select2.select2-container.select2-container--default, span.select2.select2-container.select2-container--default.yith-plugin-fw-select2-container { - border : 1px solid #d8d8d8; - border-radius : 8px; + border : var(--yith-field-border); + border-radius : var(--yith-field-border-radius); + box-shadow : var(--yith-field-shadow); + color : var(--yith-content-text); +} + +.yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__rendered, +.yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__rendered:hover { + color : var(--yith-content-text); + line-height : 30px; +} + +.yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__placeholder { + color : var(--yith-field-placeholder-color); } .yith-plugin-ui span.select2.select2-container.select2-container--default:hover, -.yith-plugin-ui span.select2.select2-container.select2-container--default:active, -.yith-plugin-ui span.select2.select2-container.select2-container--default:focus { - border-color : #a7d9ec; +.yith-plugin-ui span.select2.select2-container.select2-container--default:active { + border-color : var(--yith-field-border-color); +} + +.yith-plugin-ui span.select2.select2-container.select2-container--default.select2-container--focus, +.yith-plugin-ui span.select2.select2-container.select2-container--default.select2-container--open { + border-color : var(--yith-primary); + box-shadow : var(--yith-field-shadow), 0 0 0 1px var(--yith-primary); } .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { - color : #fff; + color : #fff; } .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].select2-search__field, .yith-plugin-ui .yith-plugin-fw table.form-table input.select2-search__field { - border : 0; - padding : 0; - height : initial; - min-width : 380px; + border : 0; + padding : 0; + height : initial; + min-width : 380px; } .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice, .yith-plugin-ui .select2-selection__choice { - color : #fff; - background-color : #4e8ba2; - border-radius : 12px; - padding : 3px 30px 3px 11px; - border-color : #4e8ba2; - font-size : 13px; - max-width : 100%; - box-sizing : border-box; - position : relative; - white-space : nowrap; - overflow : hidden; - text-overflow : ellipsis; + color : #333; + background-color : rgba(0, 0, 0, 0.08); + border-radius : 50px; + padding : 1px 30px 1px 12px; + border-color : #0000; + font-size : 13px; + max-width : 100%; + box-sizing : border-box; + position : relative; + white-space : nowrap; + overflow : hidden; + text-overflow : ellipsis; } .wc-wp-version-gte-53 .yith-plugin-ui .select2-container .select2-selection--single .select2-selection__arrow { - background-image : none; + background-image : none; } .yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__arrow:before { - content : "\e900"; - font-family : 'yith-icon' !important; - line-height : 36px; - color : #d9d9d9; + content : ""; + background : url(../images/select-indicator.svg) no-repeat right center; + background-size : 35px 20px; + width : 38px; + height : 38px; + display : block; + position : absolute; + top : -1px; + right : -1px; +} + +.rtl .yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__arrow:before { + right : auto; + left : -1px; } .yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__arrow b { - display : none; + display : none; } .yith-plugin-fw-select2-container.select2-container--open .select2-dropdown:after { - display : none; + display : none; } .yith-plugin-fw-select2-container.select2-container--open .select2-dropdown--below, .yith-plugin-fw-select2-container.select2-container--open .select2-dropdown--above { - margin-top : 10px; - border-radius : 8px; - box-shadow : 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important; - border : 0; + margin-top : 10px; + border-radius : 8px; + box-shadow : 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important; + border : 0; } .yith-plugin-fw-select2-container.select2-container--open .select2-dropdown--above { - margin-top : -10px; + margin-top : -10px; } .yith-plugin-fw-select2-container.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .yith-plugin-fw-select2-container.select2-container--default.select2-container--open.select2-container--above .select2-selection--single { - border-radius : 8px; + border-radius : 8px; } .yith-plugin-fw-select2-container .select2-results .select2-results__group, .select2-results .select2-results__option:first-child { - border-top-left-radius : 8px; - border-top-right-radius : 8px; + border-top-left-radius : 8px; + border-top-right-radius : 8px; } .yith-plugin-fw-select2-container .select2-results .select2-results__group, .yith-plugin-fw-select2-container .select2-results .select2-results__option:last-child { - border-bottom-left-radius : 8px; - border-bottom-right-radius : 8px; + border-bottom-left-radius : 8px; + border-bottom-right-radius : 8px; } .yith-plugin-fw-select2-container .select2-dropdown { - border : 0; + border : 0; } -.yith-plugin-fw-select2-container.select2-container--default .select2-results__option[data-selected=true], .yith-plugin-fw-select2-container.select2-container--default .select2-results__option--highlighted[aria-selected] { - background-color : #e8eff1; - color : #4e8ba2; - outline : none; + background-color : #e2e8f0; + color : inherit; + outline : none; +} + +.yith-plugin-fw-select2-container.select2-container--default .select2-results__option[data-selected=true] { + background-color : var(--yith-primary); + color : var(--yith-primary-text); + outline : none; } .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove, .yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { - position : absolute; - text-indent : -9999px; - right : 2px; - padding : 0 7px; - margin : 0; + position : absolute; + text-indent : -9999px; + right : 5px; + top : 50%; + width : 16px; + margin : 0; + background : rgba(0, 0, 0, 0.1); + border-radius : 50%; + height : 16px; + padding : 0; + transform : translateY(-50%); } .yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after, .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after { - float : right; - color : #fff; - content : "\e906"; - font-family : 'yith-icon' !important; - font-size : 9px; - line-height : 21px; - text-indent : 0; + position : absolute; + color : inherit; + content : "\f117"; + font-family : 'yith-icon' !important; + font-size : 9px; + line-height : 16px; + text-indent : 0; + right : 3px; + color : #333; + font-weight : 400; } .yith-plugin-ui .select2-container .select2-selection--multiple, .yith-plugin-ui .select2-container--default.select2-container--focus .select2-selection--multiple, .wc-wp-version-gte-53 .yith-plugin-ui .select2-container.select2-container--open .select2-selection--multiple { - border : 0; - box-shadow : none; + border : 0; + box-shadow : none; } .yith-plugin-fw .select2-search input[type=text] { - border : 0; - padding : 0; - height : auto; + border : 0; + padding : 0; + height : auto; } .yith-plugin-ui .yith-plugin-fw-select-field-wrapper span.yith-icon.yith-icon-magnifier, .yith-plugin-fw-panel .yith-plugin-fw-select-field-wrapper span.yith-icon.yith-icon-magnifier { - position : absolute; - padding-top : 5px; + position : absolute; + padding-top : 5px; } .yith-plugin-ui input[type=text].select2-search__field { - border : 0; - padding : 0; - height : 30px; + border : 0 !important; + padding : 0 !important; + height : 30px !important; } .yith-plugin-ui .select2-container--default .select2-search--dropdown .select2-search__field, .yith-plugin-fw-panel .select2-container--default .select2-search--dropdown .select2-search__field { - border : 1px solid #d9d9d9; - border-radius : 8px; - box-shadow : none; + border : 1px solid #d9d9d9; + border-radius : 8px; + box-shadow : none; } .yith-plugin-ui .select2-dropdown, .yith-plugin-fw-panel .select2-dropdown { - border : 1px solid #d9d9d9; + border : 1px solid #d9d9d9; } /** RADIO BUTTON **/ .yith-plugin-ui [type="radio"]:checked, .yith-plugin-ui [type="radio"]:not(:checked) { - display : none !important; + display : none !important; } .yith-plugin-ui [type="radio"]:checked + label, .yith-plugin-ui [type="radio"]:not(:checked) + label { - position : relative; - padding-left : 35px; - cursor : pointer; - line-height : 20px; - display : inline-block; - color : #716269; - font-size : 14px; + position : relative; + padding-left : 35px; + cursor : pointer; + line-height : 20px; + display : inline-block; } .yith-plugin-ui [type="radio"]:checked + label:before, .yith-plugin-ui [type="radio"]:not(:checked) + label:before { - content : ''; - position : absolute; - left : 0; - top : 0; - width : 19px; - height : 19px; - border : 1px solid #d8d8d8; - border-radius : 100%; - background : #fff; + content : ''; + position : absolute; + left : 0; + top : 0; + width : 16px; + height : 16px; + border : 1px solid var(--yith-field-border-color); + border-radius : 50%; + background : #fff; + box-sizing : border-box; + margin : 2px; +} + +.yith-plugin-ui [type="radio"]:checked + label:before { + background : var(--yith-primary); + border-color : transparent; } .yith-plugin-ui [type="radio"]:checked + label:after, .yith-plugin-ui [type="radio"]:not(:checked) + label:after { - content : ''; - width : 13px; - height : 13px; - background : #4e8ba2; - position : absolute; - top : 4px; - left : 4px; - border-radius : 100%; - -webkit-transition : all 0.2s ease; - transition : all 0.2s ease; + content : ''; + width : 6px; + height : 6px; + background : #fff; + position : absolute; + top : 7px; + left : 7px; + border-radius : 50%; + -webkit-transition : all 0.2s ease; + transition : all 0.2s ease; } .yith-plugin-ui [type="radio"]:not(:checked) + label:after { - opacity : 0; - -webkit-transform : scale(0); - transform : scale(0); + opacity : 0; + -webkit-transform : scale(0); + transform : scale(0); } .yith-plugin-ui [type="radio"]:checked + label:after { - opacity : 1; - -webkit-transform : scale(1); - transform : scale(1); + opacity : 1; + -webkit-transform : scale(1); + transform : scale(1); } .rtl .yith-plugin-ui [type="radio"]:checked + label, .rtl .yith-plugin-ui [type="radio"]:not(:checked) + label { - padding-left : 0; - padding-right : 35px; + padding-left : 0; + padding-right : 35px; } .rtl .yith-plugin-ui [type="radio"]:checked + label:before, .rtl .yith-plugin-ui [type="radio"]:not(:checked) + label:before { - left : auto; - right : 0; + left : auto; + right : 0; } .rtl .yith-plugin-ui [type="radio"]:checked + label:after, .rtl .yith-plugin-ui [type="radio"]:not(:checked) + label:after { - left : auto; - right : 4px; + left : auto; + right : 7px; } /** CHECKBOX **/ .yith-plugin-ui input[type="checkbox"] { - -webkit-appearance : none; - background-color : #fff; - border : 1px solid #d8d8d8; - box-shadow : none; - width : 18px; - height : 18px; - border-radius : 3px; - display : inline-block; - position : relative; + -webkit-appearance : none; + background-color : #fff; + border : 1px solid var(--yith-field-border-color); + box-shadow : none; + width : 16px; + height : 16px; + border-radius : 3px; + display : inline-block; + position : relative; +} + +.yith-plugin-ui input[type="checkbox"]:focus:after { + box-shadow : 0 0 0 2px var(--yith-primary); + content : ''; + position : absolute; + border-radius : 4px; + width : 20px; + height : 20px; + top : -3px; + left : -3px; } .yith-plugin-ui input[type="checkbox"]:checked { - background-color : #4e8ba2; - border-color : #488197; + background-color : var(--yith-primary); + border-color : var(--yith-primary); + background-image : url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E"); + background-position : 50%; + background-repeat : no-repeat; + background-size : 100% 100%; } .yith-plugin-ui .forminp-checkbox span.description.inline { - margin-left : 10px; + margin-left : 10px; } .yith-plugin-ui input[type="checkbox"]:checked:before { - display : none; -} - -.yith-plugin-ui input[type="checkbox"]:checked:after { - content : "\e905"; - font-family : 'yith-icon'; - font-size : 10px; - position : absolute; - font-weight : 600; - top : 8px; - left : 3px; - color : #fff; + display : none; } /** ONOFF **/ .yith-plugin-ui .yith-plugin-fw-onoff-container input[type="checkbox"] { - display : none; + display : none; } .yith-plugin-ui .yith-plugin-fw-onoff-container input + span { - border : 1px solid #d8d8d8; - background-color : #fff; - width : 60px; - height : 24px; - line-height : 14px; - padding : 4px; - box-sizing : border-box; + border : 1px solid #0000; + background-color : #e2e8f0; + width : 44px; + height : 24px; + line-height : 14px; + padding : 4px; + box-sizing : border-box; } -.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before { - background-color : #d8d8d8; +.yith-plugin-ui .yith-plugin-fw-onoff__icon { + display : block; } -.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before { - width : 13px; - height : 13px; - top : 5px; - left : 6px; - background-color : #d8d8d8; +.yith-plugin-ui .yith-plugin-fw-onoff__icon--on { + display : none; } -.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after { - content : attr(data-text-off); - height : 14px; - font-size : 12px; - font-weight : 600; - padding-left : 18px; - color : #979797; - display : block; - white-space : nowrap; - text-align : center; +.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span .yith-plugin-fw-onoff__icon--on { + display : block; } -.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span, -.yith-plugin-ui .yith-plugin-fw-onoff-container input.onoffchecked + span { - background-color : #fff; - border-color : #98aa36; +.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span .yith-plugin-fw-onoff__icon--off { + display : none; +} + +.yith-plugin-ui .yith-plugin-fw-onoff-container input + span .yith-plugin-fw-onoff__handle { + width : 20px; + height : 20px; + top : 1px; + left : 1px; + background-color : #fff; + display : inline-flex; + align-items : center; + justify-content : center; + color : #94a3b8; + padding : 5px; + box-sizing : border-box; + box-shadow : 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1); } -.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before, -.yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before { - background-color : #98aa36; - left : 38px; +.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span, +.yith-plugin-ui .yith-plugin-fw-onoff-container input.onoffchecked + span { + background-color : #98aa36; } -.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after, -.yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after { - content : attr(data-text-on); - color : #98aa36; - height : 14px; - font-size : 12px; - font-weight : 600; - padding-left : 0; - padding-right : 18px; - display : block; - white-space : nowrap; - text-align : center; +.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span .yith-plugin-fw-onoff__handle, +.yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span .yith-plugin-fw-onoff__handle { + color : #98aa36; + left : 21px; } .yith-plugin-ui .yith-plugin-fw-onoff-container input + span { - text-indent : 0; + text-indent : 0; } @@ -1219,31 +1175,49 @@ DATEPICKER */ .yith-plugin-ui .yith-plugin-fw-datepicker + .yith-icon-calendar, .yith-plugin-fw-datepicker + .yith-icon-calendar { - color : #ccc; - font-size : 18px; + color : #94a3b8; + font-size : 18px; +} + +.yith-plugin-fw-datepicker-field-wrapper .yith-plugin-fw-datepicker + .yith-icon-calendar { + position : relative; + left : auto; + line-height : 0; + width : 0; + top : 3px; + bottom : auto; + right : auto; + margin-left : -35px; + display : inline; +} + +.rtl .yith-plugin-fw-datepicker-field-wrapper .yith-plugin-fw-datepicker + .yith-icon-calendar { + margin-left : 0; + margin-right : -33px; } div#ui-datepicker-div.yith-plugin-fw-datepicker-div { - border : 0; - box-shadow : 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important; - padding : 0.8em; + border : 0; + box-shadow : 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important; + padding : 0.8em; + font-family : inherit; } #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-datepicker-header.ui-widget-header { - background : #4e8ba2; - color : #fff; - font-size : 11px; - line-height : 25px; - border : 0; - min-height : 25px; + background : transparent; + color : inherit; + font-size : 15px; + line-height : 25px; + border : 0; + min-height : 25px; } #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-datepicker-title { - line-height : 25px; + line-height : 36px; } #ui-datepicker-div.yith-plugin-fw-datepicker-div.ui-datepicker th { - color : #716269; + color : inherit; } #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-widget-header .ui-icon, @@ -1252,62 +1226,66 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div { #ui-datepicker-div.yith-plugin-fw-datepicker-div.ui-datepicker .ui-datepicker-next, #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-icon.ui-icon-circle-triangle-w, #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-icon.ui-icon-circle-triangle-e { - background : none; - content : ""; - border : 0; - text-indent : 0; - width : 15px; - height : 20px; - display : block; - overflow : hidden; + background : none; + content : ""; + border : 0; + text-indent : 0; + width : 15px; + height : 20px; + display : block; + overflow : hidden; } .yith-plugin-ui .yith-password-wrapper { - display : inline-block; - width : auto; - position : relative; + display : inline-block; + width : auto; + position : relative; } .yith-plugin-ui .yith-password-wrapper .yith-password-eye-closed:before, .yith-plugin-ui .yith-password-wrapper .yith-password-eye:before { - content : '\e911'; - color : #999; - font-family : 'yith-icon'; - font-size : 20px; - font-weight : normal; - width : 15px; - display : block; - position : absolute; - right : 13px; - top : 0; - line-height : 38px; - bottom : 0; - cursor : pointer; + content : '\e911'; + color : #999; + font-family : 'yith-icon'; + font-size : 20px; + font-weight : normal; + width : 15px; + display : block; + position : absolute; + right : 13px; + top : 0; + line-height : 38px; + bottom : 0; + cursor : pointer; } .yith-plugin-ui .yith-password-wrapper .yith-password-eye-closed:before { - content : '\e912'; + content : '\e912'; +} + +#ui-datepicker-div.yith-plugin-fw-datepicker-div { + width : 300px; } #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-icon.ui-icon-circle-triangle-w:before { - content : "\e901"; - color : #fff; - font-family : 'yith-icon'; - font-size : 12px; - font-weight : normal; - width : 15px; - display : block; + content : "\e901"; + color : inherit; + font-family : 'yith-icon'; + font-size : 12px; + font-weight : normal; + width : 15px; + display : block; } #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-icon.ui-icon-circle-triangle-e:before { - content : "\e902"; - color : #fff; - text-indent : 0; - font-family : 'yith-icon'; - font-size : 12px; - font-weight : normal; - width : 15px; - display : block; + content : "\e902"; + color : inherit; + text-indent : 0; + font-family : 'yith-icon'; + font-size : 12px; + font-weight : normal; + width : 15px; + display : block; } /* arrow */ @@ -1315,30 +1293,32 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div { #ui-datepicker-div.yith-plugin-fw-datepicker-div.ui-datepicker .ui-datepicker-next, #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-datepicker-prev.ui-datepicker-prev-hover, #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-datepicker-prev.ui-datepicker-next-hover { - top : 1px; - cursor : pointer; + padding : 6px 8px; + top : 1px; + cursor : pointer; } #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-datepicker-prev.ui-datepicker-prev, #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-datepicker-prev.ui-datepicker-prev-hover { - left : 5px; + left : 5px; } #ui-datepicker-div.yith-plugin-fw-datepicker-div.ui-datepicker .ui-datepicker-next, #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-datepicker-next.ui-datepicker-next-hover { - right : 1px; + right : 1px; } #ui-datepicker-div.yith-plugin-fw-datepicker-div.ui-datepicker table { - font-size : 10px; + font-size : 13px; } #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-state-default, #ui-datepicker-div.yith-plugin-fw-datepicker-div.ui-widget-content .ui-state-default, #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-widget-header .ui-state-default { - background : #fff; - border : 1px solid #d9d9d9; - + background : #fff; + border : 1px solid transparent; + text-align : center; + padding : 0.4em 0.2em; } #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-state-hover, @@ -1346,536 +1326,542 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div { #ui-datepicker-div.yith-plugin-fw-datepicker-div a.ui-state-default:focus, #ui-datepicker-div.yith-plugin-fw-datepicker-div.ui-widget-content .ui-state-focus, #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-widget-header .ui-state-focus { - background : #ebf1f3; - border : 1px solid #bfd5dd; - outline : none; - box-shadow : none; + background : #ebf1f3; + border : 1px solid transparent; + outline : none; + box-shadow : none; +} + +#ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-state-default.ui-state-active { + background : var(--yith-primary); + color : var(--yith-primary-text); } #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-widget-header .ui-state-hover, .woocommerce #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-state-focus { - background : none; - border : 0; + background : none; + border : 0; } .rtl #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-datepicker-prev.ui-datepicker-prev, .rtl #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-datepicker-prev.ui-datepicker-prev-hover { - left : auto; - right : 5px; + left : auto; + right : 5px; } .rtl #ui-datepicker-div.yith-plugin-fw-datepicker-div.ui-datepicker .ui-datepicker-next, .rtl #ui-datepicker-div.yith-plugin-fw-datepicker-div .ui-datepicker-next.ui-datepicker-next-hover { - right : auto; - left : 1px; + right : auto; + left : 1px; } /** colorpicker **/ .yith-plugin-ui .iris-slider-offset.ui-slider.ui-widget-content { - background : transparent !important; - height : auto !important; + background : transparent !important; + height : auto !important; } .yith-plugin-ui .yith-plugin-fw-field-wrapper .yith-colorpicker-group:not(:first-child) { - margin-top : 20px; + margin-top : 20px; } .yith-plugin-ui .yith-plugin-fw-field-wrapper .iris-picker, .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-holder { - display : none !important; + display : none !important; } .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-input-wrap, .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-input-wrap > * { - display : inline-block !important; - vertical-align : middle; + display : inline-block !important; + vertical-align : middle; } .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-active .iris-picker, .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-active .wp-picker-holder { - display : block !important; + display : block !important; } .woocommerce .yith-plugin-ui .wp-picker-container .iris-picker, .yith-plugin-ui .wp-picker-container .iris-picker { - z-index : 100; - position : absolute; - margin-top : 20px; - border : 1px solid #d8d8d8; - border-radius : 4px; - box-shadow : 0 1px 3px rgba(0, 0, 0, .2); + z-index : 100; + position : absolute; + margin-top : 20px; + border : 1px solid #d8d8d8; + border-radius : 4px; + box-shadow : 0 1px 3px rgba(0, 0, 0, .2); } .yith-plugin-ui .yith-plugin-fw input[type=text].wp-color-picker { - border : 0; - padding : 2px 5px; - height : 30px; + border : 0; + padding : 2px 5px; + height : 30px; } .yith-plugin-ui .wp-color-result-text { - display : none; + display : none; } .yith-plugin-ui .wp-picker-container .wp-color-result.button { - width : 30px; - height : 30px; - box-shadow : none; - border : 1px solid #d9d9d9; - margin-bottom : 0; - padding : 0; - display : inline-block; - vertical-align : middle; - box-sizing : content-box; + width : 30px; + height : 30px; + box-shadow : none; + border : 1px solid #d9d9d9; + margin-bottom : 0; + padding : 0; + display : inline-block; + vertical-align : middle; + box-sizing : content-box; } .yith-plugin-ui .wp-picker-default-custom { - cursor : pointer; - width : 25px; - padding : 0 5px; - display : inline-block; - vertical-align : middle; - position : relative; + cursor : pointer; + width : 25px; + padding : 0 5px; + display : inline-block; + vertical-align : middle; + position : relative; } .yith-plugin-ui .wp-picker-default-custom input.button { - opacity : 0; - margin : 0; - padding : 0; - position : absolute; - top : 0; - right : 0; - left : 0; - bottom : 0; - z-index : 2; + opacity : 0; + margin : 0; + padding : 0; + position : absolute; + top : 0; + right : 0; + left : 0; + bottom : 0; + z-index : 2; } .yith-plugin-ui .wp-picker-default-custom:before { - content : "\e91a"; - text-indent : 0; - font-family : 'yith-icon'; - font-size : 16px; - color : #d8d8d8; - font-weight : normal; - width : 15px; - display : block; - background : none; - line-height : 20px; - margin-left : 8px; + content : "\e91a"; + text-indent : 0; + font-family : 'yith-icon'; + font-size : 16px; + color : #d8d8d8; + font-weight : normal; + width : 15px; + display : block; + background : none; + line-height : 20px; + margin-left : 8px; } .yith-plugin-ui .wp-picker-container { - width : auto; - display : inline-block; - border : 1px solid #d9d9d9; - border-radius : 8px; - padding : 5px; + width : auto; + display : inline-block; + padding : 5px; + border-radius : var(--yith-field-border-radius); + border : var(--yith-field-border); + box-shadow : var(--yith-field-shadow); } .yith-plugin-ui .iris-picker .iris-square-inner { - box-shadow : 0 0 0 1px #d9d9d9 inset; + box-shadow : 0 0 0 1px #d9d9d9 inset; } .yith-plugin-ui .iris-picker .iris-square-value { - width : 0; - height : 0; - background : transparent; - border : 0; + width : 0; + height : 0; + background : transparent; + border : 0; } .yith-plugin-ui .yith-single-colorpicker { - display : inline-block; - width : 220px; - margin-bottom : 10px; + display : inline-block; + width : 220px; + margin-bottom : 10px; } .yith-plugin-ui .yith-single-colorpicker > label { - display : block; - font-size : 11px; - font-weight : 600; - margin : 0 0 10px 0; - text-transform : uppercase; + display : block; + font-size : 11px; + font-weight : 600; + margin : 0 0 10px 0; + text-transform : uppercase; } .yith-plugin-ui .the-metabox.multi-colorpicker span.description, .yith-plugin-ui .yith-plugin-fw-panel-wc-row.multi-colorpicker span.description, .yith-plugin-ui .yith-plugin-fw-multi-colorpicker-field-wrapper span.description { - margin-top : 0; + margin-top : 0; } /* RANGE SLIDER */ .yith-plugin-ui .yith-plugin-fw-slider-container .ui-slider-horizontal .ui-slider-handle { - top : -45px !important; + top : -45px !important; } .yith-plugin-ui .yith-plugin-fw-slider-container .ui-slider-horizontal .ui-slider-handle { - position : absolute; - top : -33px; - left : 0; - width : auto !important; - height : auto !important; - padding : 2px 8px; - margin-left : -15px; - font-size : 12px; - line-height : 20px; - color : #4e8ba2; - text-align : center; - background-color : #fff; - border : 1px solid #fff; - border-radius : 3px; - -webkit-transition : opacity .3s ease-in-out 0s; - transition : opacity .3s ease-in-out 0s; - box-shadow : 0px 1px 7px 0px rgba(1, 1, 1, 0.13); + position : absolute; + top : -33px; + left : 0; + width : auto !important; + height : auto !important; + padding : 2px 8px; + margin-left : -15px; + font-size : 12px; + line-height : 20px; + color : #4e8ba2; + text-align : center; + background-color : #fff; + border : 1px solid #fff; + border-radius : 3px; + -webkit-transition : opacity .3s ease-in-out 0s; + transition : opacity .3s ease-in-out 0s; + box-shadow : 0px 1px 7px 0px rgba(1, 1, 1, 0.13); } .yith-plugin-ui .yith-plugin-fw-slider-container .ui-slider-horizontal .ui-slider-handle:before { - position : absolute; - bottom : -3px; - left : 50%; - display : inline-block; - width : 6px; - height : 6px; - margin-left : -3px; - content : ""; - background-color : #fff; - -webkit-transform : rotate(-45deg); - -ms-transform : rotate(-45deg); - transform : rotate(-45deg); + position : absolute; + bottom : -3px; + left : 50%; + display : inline-block; + width : 6px; + height : 6px; + margin-left : -3px; + content : ""; + background-color : #fff; + -webkit-transform : rotate(-45deg); + -ms-transform : rotate(-45deg); + transform : rotate(-45deg); } .yith-plugin-ui .yith-plugin-fw-slider-container .ui-slider.ui-widget-content .ui-widget-header { - background : #4e8ba2; + background : #4e8ba2; } .yith-plugin-ui .yith-plugin-fw-slider-container .ui-slider-horizontal .ui-slider-handle:after { - content : ''; - width : 17px; - height : 17px; - display : block; - position : absolute; - background : #fff; - top : 37px; - border-radius : 50%; - box-shadow : 0px 1px 6px 0px rgba(1, 1, 1, 0.25); - cursor : grab; + content : ''; + width : 17px; + height : 17px; + display : block; + position : absolute; + background : #fff; + top : 37px; + border-radius : 50%; + box-shadow : 0px 1px 6px 0px rgba(1, 1, 1, 0.25); + cursor : grab; } .yith-plugin-ui .yith-plugin-fw-slider-container .ui-slider-horizontal .ui-slider-handle:active:after { - cursor : grabbing; + cursor : grabbing; } .yith-plugin-ui .yith-plugin-fw-slider-container .ui-slider.ui-widget-content { - height : 5px !important; + height : 5px !important; } .yith-plugin-ui .yith-plugin-fw-slider-container .ui-slider .minCaption, .yith-plugin-ui .yith-plugin-fw-slider-container .ui-slider .maxCaption { - font-weight : 700; - font-size : 12px; + font-weight : 700; + font-size : 12px; } /* ADD_BOX AND TOGGLE */ .yith-plugin-ui .yith-add-box, .yith-plugin-ui .yith-toggle-row { - width : 70%; - border : 1px solid #d9d9d9; - box-shadow : none; - border-radius : 4px; - margin : 20px 0; - padding : 10px; - box-sizing : border-box; - background : white; + width : 70%; + border : 1px solid #d9d9d9; + box-shadow : none; + border-radius : 4px; + margin : 20px 0; + padding : 10px; + box-sizing : border-box; + background : white; } .yith-plugin-ui .yith-toggle-row { - cursor : pointer; - transition : all ease 0.5s; + cursor : pointer; + transition : all ease 0.5s; } .yith-plugin-ui .yith-toggle-row.fixed { - margin : 0; + margin : 0; } .yith-plugin-ui .yith-toggle-row.highlight { - transition : all ease 0.5s; - /*box-shadow: 0 0 7px rgb(81, 117, 129);*/ - box-shadow : 0 0 7px rgb(30, 140, 190); + transition : all ease 0.5s; + /*box-shadow: 0 0 7px rgb(81, 117, 129);*/ + box-shadow : 0 0 7px rgb(30, 140, 190); - display : block; + display : block; } .yith-plugin-ui .yith-add-box { - padding : 25px; - display : none; + padding : 25px; + display : none; } .yith-plugin-ui .yith-toggle-title { - position : relative; + position : relative; } .yith-plugin-ui #plugin-fw-wc .yith-toggle-title h3, .yith-plugin-ui.metaboxes-tab h3, .yith-plugin-ui .yith-toggle-title h3, .metaboxes-tab.yith-plugin-ui .yith-toggle-title h3 { - padding : 0px 20px 0px 30px; - margin : 3px 0; - display : inline-block; - position : relative; - min-width : 173px; - box-sizing : border-box; - font-weight : 600; - font-size : 15px; - color : #23282d; - text-transform : inherit; + padding : 0px 20px 0px 30px; + margin : 3px 0; + display : inline-block; + position : relative; + min-width : 173px; + box-sizing : border-box; + font-weight : 600; + font-size : 15px; + color : #23282d; + text-transform : inherit; } .yith-plugin-ui .yith-toggle-title .subtitle { - padding-left : 0; - padding-top : 8px; - font-size : 12px; + padding-left : 0; + padding-top : 8px; + font-size : 12px; } .yith-plugin-ui .yith-toggle { - position : absolute; - width : 25px; - cursor : pointer; - left : 0; - top : 0; - bottom : 0; - margin : auto; - display : flex; - align-items : center; - box-sizing : border-box; - align-items : center; - justify-content : center; + position : absolute; + width : 25px; + cursor : pointer; + left : 0; + top : 0; + bottom : 0; + margin : auto; + display : flex; + align-items : center; + box-sizing : border-box; + align-items : center; + justify-content : center; } .yith-plugin-ui .yith-toggle > span:before { - color : #405e69; + color : #405e69; } .yith-plugin-ui .yith-toggle > span { - position : absolute; - /* right : 50%; */ - transition : transform .3s; - line-height : 1; - font-size : 13px; - font-weight : 600; + position : absolute; + /* right : 50%; */ + transition : transform .3s; + line-height : 1; + font-size : 13px; + font-weight : 600; } .yith-plugin-ui .yith-toggle-row-opened .yith-toggle span { - transform : rotateZ(90deg); + transform : rotateZ(90deg); } .yith-plugin-ui .yith-toggle-content { - display : none; - position : relative; - padding : 30px 25px; + display : none; + position : relative; + padding : 30px 25px; } .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content { - /* display: block;*/ + /* display: block;*/ } .yith-plugin-ui .yith-add-box-row, .yith-plugin-ui .yith-toggle-content .yith-toggle-content-row { - display : table; - margin-bottom : 40px; + display : table; + margin-bottom : 40px; } .yith-plugin-ui .yith-add-box-row > label, .yith-plugin-ui .yith-toggle-content .yith-toggle-content-row > label { - display : table-cell; - min-width : 180px; - padding-right : 20px; - color : #33373b; - font-size : 14px; - vertical-align : top; - font-weight : 600; + display : table-cell; + min-width : 180px; + padding-right : 20px; + color : #33373b; + font-size : 14px; + vertical-align : top; + font-weight : 600; } .yith-plugin-ui .yith-add-box-row .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper), .yith-plugin-ui .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper) { - /* display: table-cell;*/ - width : auto; - float : none; - vertical-align : middle; - position : relative; + /* display: table-cell;*/ + width : auto; + float : none; + vertical-align : middle; + position : relative; } .yith-plugin-ui .yith-add-box-row span.yith-icon, .yith-plugin-ui .yith-toggle-content .yith-toggle-content-row span.yith-icon { - position : absolute; - right : 15px; - top : 0; - bottom : 0; + position : absolute; + right : 15px; + top : 0; + bottom : 0; } .yith-plugin-ui .yith-add-box-buttons, .yith-plugin-ui .yith-toggle-content-buttons { - text-align : right; + text-align : right; } .yith-plugin-ui .yith-toggle-onoff { - position : absolute; - cursor : pointer; - right : 0; + position : absolute; + cursor : pointer; + right : 0; } .yith-plugin-ui .yith-toggle_wrapper.ui-sortable .yith-toggle-onoff { - right : 30px; + right : 30px; } .yith-plugin-ui .yith-toggle-row .yith-icon-drag { - position : absolute; - right : 2px; - top : 50%; - transform : translateY(-50%); - font-size : 18px; + position : absolute; + right : 2px; + top : 50%; + transform : translateY(-50%); + font-size : 18px; } .yith-plugin-ui .yith-toggle-row.with-subtitle .yith-toggle-onoff { - top : 25%; + top : 25%; } /** SPINNER **/ .yith-plugin-ui .spinner { - vertical-align : -5px; - float : none; + vertical-align : -5px; + float : none; } .yith-plugin-ui .spinner.show { - visibility : visible; + visibility : visible; } /* LIST TABLE */ .yith-plugin-ui .form-table .list-table td { - padding : 15px 0px; + padding : 15px 0px; } .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table .bulkactions select { - border : 1px solid #d8d8d8; - max-width : 200px; - max-height : 30px; - padding : 0 10px; + border : 1px solid #d8d8d8; + max-width : 200px; + max-height : 30px; + padding : 0 10px; } .yith-plugin-ui .form-table .list-table th { - width : initial; + width : initial; } .yith-plugin-ui #plugin-fw-wc table.form-table th.check-column { - padding-left : 3px; + padding-left : 3px; } .yith-plugin-ui #plugin-fw-wc table.wp-list-table tbody td { - padding-left : 20px; + padding-left : 20px; } .yith-plugin-ui #plugin-fw-wc table.wp-list-table th, .yith-plugin-ui #plugin-fw-wc table.wp-list-table td { - padding : 15px 20px 15px 20px; + padding : 15px 20px 15px 20px; } .yith-plugin-ui #plugin-fw-wc table.wp-list-table thead td, .yith-plugin-ui #plugin-fw-wc table.wp-list-table thead th, .yith-plugin-ui #plugin-fw-wc table.wp-list-table tfoot td, .yith-plugin-ui #plugin-fw-wc table.wp-list-table tfoot th { - padding : 3px 20px; + padding : 3px 20px; } .yith-plugin-ui #plugin-fw-wc table.wp-list-table thead a, .yith-plugin-ui #plugin-fw-wc table.wp-list-table tfoot a { - padding-left : 0; + padding-left : 0; } .yith-plugin-ui .yith-plugin-fw-list-table .list-table-title { - margin-bottom : 20px; - line-height : 1.2; + margin-bottom : 20px; + line-height : 1.2; } .yith-plugin-ui .yith-plugin-fw-list-table .list-table-title > * { - vertical-align : middle; + vertical-align : middle; } .yith-plugin-ui .yith-plugin-fw-list-table h2 { - border : 0; - padding : 0; - display : inline-block; - margin-right : 10px; - line-height : inherit; + border : 0; + padding : 0; + display : inline-block; + margin-right : 10px; + line-height : inherit; } .yith-plugin-ui .form-table .yith-plugin-fw-list-table table th { - vertical-align : middle; + vertical-align : middle; } .yith-plugin-ui #doaction, .yith-plugin-ui #doaction2, .yith-plugin-ui #post-query-submit, .yith-plugin-ui #search-submit, .yith-plugin-ui .button.filter-button { - line-height : 33px; + line-height : 33px; } .yith-plugin-ui .tablenav { - margin : 20px 0; + margin : 20px 0; } .yith-plugin-ui .form-table td p.yith-section-description { - color : #716269; - margin-bottom : 20px; + color : #716269; + margin-bottom : 20px; } /** Time picker width*/ .yith-plugin-ui input.ui-timepicker-input { - width : 100px !important; + width : 100px !important; } /** date format **/ .yith-plugin-ui .yith-plugin-fw-date-format code { - margin-left : 30px; + margin-left : 30px; } .yith-plugin-ui .yith-plugin-fw-date-format input[type=text].small-text { - margin-left : 45px; + margin-left : 45px; } /** checkbox columns **/ .yith-plugin-ui td.forminp-checkbox.two-cols fieldset { - width : calc(50% - 20px); - padding-right : 20px; - float : left; + width : calc(50% - 20px); + padding-right : 20px; + float : left; } .yith-plugin-ui td.forminp-checkbox.two-cols fieldset:nth-child(2n+1) { - clear : both; + clear : both; } .yith-plugin-ui td.forminp-checkbox.three-cols fieldset { - width : calc(33% - 10px); - padding-right : 10px; - float : left; + width : calc(33% - 10px); + padding-right : 10px; + float : left; } .yith-plugin-ui td.forminp-checkbox.three-cols fieldset:nth-child(3n+1) { - clear : both; + clear : both; } .yith-plugin-fw-checkbox-field-wrapper { - display : inline-block !important; - margin-right : 10px; + display : inline-block !important; + margin-right : 10px; } .yith-plugin-fw-checkbox-field-wrapper + span.description { - display : inline-block; - vertical-align : middle; - margin : 0; + display : inline-block; + vertical-align : middle; + margin : 0; } .yith-plugin-fw-option-with-description { - display : table-cell; - width : 90%; - vertical-align : top; + display : table-cell; + width : 90%; + vertical-align : top; } @@ -1885,47 +1871,53 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div { .yith-plugin-fw-panel-wc-row.yith-plugin-fw--required th.titledesc > label:after, .yith-plugin-fw-metabox-field-row.yith-plugin-fw--required label:first-child:after, .yith-plugin-fw-toggle-element-field-wrapper .yith-plugin-fw--required > label:first-child:after { - content : '*'; - color : #ea0034; - font-weight : 800; - margin-left : 4px; + content : '*'; + color : #ea0034; + font-weight : 800; + margin-left : 4px; } /** YITH PANEL **/ .yith-plugin-ui #yith-plugin-fw-panel { - margin-top : -10px; + margin-top : -10px; } .yith-plugin-ui #plugin-fw-wc, .yith-plugin-ui #yith-plugin-fw-panel { - padding-top : 0; + padding-top : 0; } .yith-plugin-ui .plugin-option tr { - border : 0; + border : 0; } /** MULTI SELECT AND TEXT ARRAY INLINE STYLE **/ -.yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select, -.yith-plugin-ui .yith-plugin-fw-text-array-inline .yith-single-text { - display : inline-block; - width : 30%; - margin-right : 3%; - max-width : 400px; + +.yith-plugin-fw-multi-select, +.yith-plugin-fw-text-array-inline { + display : grid; + grid-gap : 16px; + grid-template-columns : repeat( auto-fit, minmax(150px, 1fr) ); + max-width : 400px; +} + +.yith-plugin-fw-multi-select .yith-single-select, +.yith-plugin-fw-text-array-inline .yith-single-text { + width : 100%; } .yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select label, .yith-plugin-ui .yith-plugin-fw-text-array-inline .yith-single-text label { - display : block; - font-size : 11px; - font-weight : 600; - margin : 0 0 10px 0; + display : block; + font-size : 11px; + font-weight : 600; + margin : 0 0 10px 0; } .yith-plugin-ui .yith-plugin-fw-text-array-inline .yith-single-text input, -.yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select select, +.yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select select:not(.select2-hidden-accessible), .yith-plugin-ui .yith-plugin-fw-multi-select .yith-single-select span.select2 { - width : 100% !important; - min-width : auto !important; + width : 100% !important; + min-width : auto !important; } /** @@ -1933,431 +1925,640 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div { */ .yith-plugin-fw-dimensions { - display : flex; - align-items : flex-end; + display : flex; + align-items : flex-end; } .yith-plugin-fw-dimensions__units { - flex : 1; - display : flex; - margin-left : 5px; - width : calc(100% - 105px); - flex-wrap : wrap; - min-height : 38px; - margin-bottom : -8px; + flex : 1; + display : flex; + margin-left : 5px; + width : calc(100% - 105px); + flex-wrap : wrap; + min-height : 38px; + margin-bottom : -8px; } .yith-plugin-fw-dimensions__unit { - display : inline-block; - padding : 0 3px; - cursor : pointer; - font-weight : 700; + display : inline-block; + padding : 0 3px; + cursor : pointer; + font-weight : 700; } .yith-plugin-fw-dimensions__unit--selected { - text-decoration : underline; - color : #007694; + text-decoration : underline; + color : #007694; } .yith-plugin-fw-dimensions__unit--unique { - text-decoration : none; - cursor : default; + text-decoration : none; + cursor : default; } .yith-plugin-fw-dimensions__dimensions { - display : flex; - margin : 0; - align-items : flex-end; - max-width : 400px; - width : 400px; + display : flex; + margin : 0; + align-items : flex-end; + max-width : 400px; + width : 400px; } .yith-plugin-fw-dimensions__dimension { - text-align : center; - flex : 1; + text-align : center; + flex : 1; } .yith-plugin-fw-dimensions__dimension > input[type=number].yith-plugin-fw-dimensions__dimension__number, .woocommerce.yith-plugin-fw-panel .yith-plugin-ui .yith-plugin-fw-dimensions__dimension > input[type=number].yith-plugin-fw-dimensions__dimension__number, .yith-plugin-ui .yith-plugin-fw-dimensions__dimension > input[type=number].yith-plugin-fw-dimensions__dimension__number, .woocommerce .yith-plugin-fw table.form-table .yith-plugin-fw-dimensions__dimension > input[type=number].yith-plugin-fw-dimensions__dimension__number { - width : 100%; - min-width : 0; - border-radius : 0; - border : 1px solid #d8d8d8; - border-left : none; - height : 38px; - text-align : center; - padding-right : 0; + width : 100%; + min-width : 0; + border-radius : 0; + border : var(--yith-field-border); + border-left : none; + height : 38px; + text-align : center; + padding-right : 0; } .yith-plugin-fw-dimen sions__dimension:first-child > input[type=number].yith-plugin-fw-dimensions__dimension__number, .woocommerce.yith-plugin-fw-panel .yith-plugin-ui .yith-plugin-fw-dimensions__dimension:first-child > input[type=number].yith-plugin-fw-dimensions__dimension__number, .yith-plugin-ui .yith-plugin-fw-dimensions__dimension:first-child > input[type=number].yith-plugin-fw-dimensions__dimension__number, .woocommerce .yith-plugin-fw table.form-table .yith-plugin-fw-dimensions__dimension:first-child > input[type=number].yith-plugin-fw-dimensions__dimension__number { - border-left : 1px solid #d8d8d8; - border-radius : 6px 0 0 6px; + border-left : var(--yith-field-border); + border-radius : 6px 0 0 6px; } .yith-plugin-fw-dimensions__dimension:last-child > input[type=number].yith-plugin-fw-dimensions__dimension__number, .woocommerce.yith-plugin-fw-panel .yith-plugin-ui .yith-plugin-fw-dimensions__dimension:last-child > input[type=number].yith-plugin-fw-dimensions__dimension__number, .yith-plugin-ui .yith-plugin-fw-dimensions__dimension:last-child > input[type=number].yith-plugin-fw-dimensions__dimension__number { - border-radius : 0 6px 6px 0; + border-radius : 0 6px 6px 0; } .metaboxes-tab .yith-plugin-fw-dimensions__dimension__label, .yith-plugin-ui.metaboxes-tab label.yith-plugin-fw-dimensions__dimension__label { - float : none; - margin : 0; - width : auto; - font-weight : inherit; - line-height : inherit; + float : none; + margin : 0; + width : auto; + font-weight : inherit; + line-height : inherit; } .yith-plugin-fw-dimensions__dimension__label, .metaboxes-tab .yith-plugin-fw-dimensions__dimension__label, .yith-plugin-ui.metaboxes-tab label.yith-plugin-fw-dimensions__dimension__label { - text-transform : uppercase; - letter-spacing : 1px; - font-size : 9px; - margin-bottom : 5px; - display : inline-block; + text-transform : uppercase; + letter-spacing : 1px; + font-size : 9px; + margin-bottom : 5px; + display : inline-block; } .yith-plugin-fw-dimensions__linked { - cursor : pointer; + cursor : pointer; } .yith-plugin-fw-dimensions__linked span { - border : 1px solid #d8d8d8; - border-left : none; - height : 38px; - border-radius : 0 6px 6px 0; - box-sizing : border-box; - padding : 8px 10px; - width : 100%; + border : 1px solid #d8d8d8; + border-left : none; + height : 38px; + border-radius : 0 6px 6px 0; + box-sizing : border-box; + padding : 8px 10px; + width : 100%; } .yith-plugin-fw-dimensions--linked-active .yith-plugin-fw-dimensions__linked span { - color : #fff; - background : #007694; - border-color : #007694; + color : #fff; + background : #007694; + border-color : #007694; } .rtl .yith-plugin-fw-dimensions__linked span { - border-radius : 6px 0 0 6px; + border-radius : 6px 0 0 6px; } .rtl .yith-plugin-fw-dimensions__dimension:first-child > input[type=number].yith-plugin-fw-dimensions__dimension__number, .rtl.woocommerce.yith-plugin-fw-panel .yith-plugin-ui .yith-plugin-fw-dimensions__dimension:first-child > input[type=number].yith-plugin-fw-dimensions__dimension__number, .rtl .yith-plugin-ui .yith-plugin-fw-dimensions__dimension:first-child > input[type=number].yith-plugin-fw-dimensions__dimension__number, .rtl.woocommerce .yith-plugin-fw table.form-table .yith-plugin-fw-dimensions__dimension:first-child > input[type=number].yith-plugin-fw-dimensions__dimension__number { - border-radius : 0 6px 6px 0; + border-radius : 0 6px 6px 0; } .rtl .yith-plugin-fw-dimensions__dimension:last-child > input[type=number].yith-plugin-fw-dimensions__dimension__number, .rtl.woocommerce.yith-plugin-fw-panel .yith-plugin-ui .yith-plugin-fw-dimensions__dimension:last-child > input[type=number].yith-plugin-fw-dimensions__dimension__number, .rtl .yith-plugin-ui .yith-plugin-fw-dimensions__dimension:last-child > input[type=number].yith-plugin-fw-dimensions__dimension__number { - border-radius : 6px 0 0 6px; + border-radius : 6px 0 0 6px; } /** * Image dimensions */ .yith-plugin-ui .yith-plugin-fw-image-dimensions > div { - display : inline-block; - width : 30%; - margin-right : 3%; - max-width : 100px; + display : inline-block; + width : 30%; + margin-right : 3%; + max-width : 100px; } .yith-plugin-ui .yith-plugin-fw-image-dimensions label { - display : block; - font-size : 11px; - font-weight : 600; - text-transform : uppercase; - margin : 0 0 10px 0; + display : block; + font-size : 11px; + font-weight : 600; + text-transform : uppercase; + margin : 0 0 10px 0; } +/** + * File + */ + +.yith-plugin-fw-file { + position : relative; + width : 100%; + max-width : 400px; + border : 1px dashed var(--yith-field-border-color); + background : rgba(203, 213, 225, .25); + padding : 30px; + cursor : pointer; + display : flex; + justify-content : center; + align-items : center; + box-sizing : border-box; +} + +.yith-plugin-fw-file__field { + cursor : pointer; + position : absolute; + opacity : 0; + top : 0; + right : 0; + bottom : 0; + left : 0; + z-index : 10; +} + +.yith-plugin-fw-file__preview { + display : flex; + width : 100%; + align-items : center; + background : #fff; + padding : 16px; + justify-content : center; +} + +.yith-plugin-fw-file__preview__icon { + flex : 0 0 24px; + margin-right : 8px; +} + +.yith-plugin-fw-file.yith-plugin-fw--is-dragging { + border-color : var(--yith-primary); +} + +.yith-plugin-fw-file.yith-plugin-fw--is-dragging:before { + content : ''; + position : absolute; + top : 0; + left : 0; + width : 100%; + height : 100%; + background : rgba(0, 121, 176, .4); + z-index : 1; + backdrop-filter : blur(3px); + -webkit-backdrop-filter : blur(3px); + animation : yith-plugin-fw-fade-in .3s forwards; +} + +.yith-plugin-fw-file:not(.yith-plugin-fw--filled) .yith-plugin-fw-file__preview { + display : none; +} + +.yith-plugin-fw-file.yith-plugin-fw--filled .yith-plugin-fw-file__message { + display : none; +} + +/** + * Media + */ + +.yith-plugin-fw-media { + max-width : 400px; +} + +.yith-plugin-fw-media.yith-plugin-fw-media--has-tabs { + border : 1px solid var(--yith-field-border-color); + border-radius : var(--yith-field-border-radius); + box-shadow : var(--yith-field-shadow); +} + +.yith-plugin-fw-media__tabs { + display : flex; + align-items : center; + justify-content : space-between; +} + +.yith-plugin-fw-media__tab { + flex : 1; + display : flex; + align-items : center; + justify-content : center; + padding : 12px 24px; + border-radius : var(--yith-field-border-radius); + border : 1px solid var(--yith-field-border-color); + background : rgba(203, 213, 225, .25); + margin : -1px; + cursor : pointer; +} + +.yith-plugin-fw-media__tab:hover { + color : var(--yith-link); +} + +.yith-plugin-fw-media__tab--active { + color : var(--yith-link); + font-weight : 500; + border : none; + background : transparent; + cursor : default; +} + +.yith-plugin-fw-media__tab__icon { + width : 20px; + margin-right : 8px; +} + +.rtl .yith-plugin-fw-media__tab__icon { + margin-right : 0; + margin-left : 8px; +} + +.yith-plugin-fw-media.yith-plugin-fw-media--has-tabs .yith-plugin-fw-media__content { + padding : 24px; +} + +.yith-plugin-fw-media__preview { + position : relative; + padding : 30px; + border : 1px dashed var(--yith-field-border-color); + background : rgba(203, 213, 225, .25); + display : flex; + align-items : center; + justify-content : center; +} + +.yith-plugin-fw-media__preview__file { + display : flex; + width : 100%; + align-items : center; + background : #fff; + padding : 16px; + justify-content : center; +} + +.yith-plugin-fw-media__preview:not([data-type=image]) .yith-plugin-fw-media__preview__image, +.yith-plugin-fw-media__preview:not([data-type=file]) .yith-plugin-fw-media__preview__file, +.yith-plugin-fw-media__preview:not([data-type=upload]) .yith-plugin-fw-media__preview__upload { + display : none; +} + +.yith-plugin-fw-media__preview.yith-plugin-fw--is-dragging { + border-color : var(--yith-link); +} + +.yith-plugin-fw-media__preview.yith-plugin-fw--is-loading { + border-color : transparent; +} + +.yith-plugin-fw-media__preview.yith-plugin-fw--is-dragging:before, +.yith-plugin-fw-media__preview.yith-plugin-fw--is-loading:before { + content : ''; + position : absolute; + top : 0; + left : 0; + width : 100%; + height : 100%; + background : rgba(0, 121, 176, .4); + z-index : 998; + backdrop-filter : blur(3px); + -webkit-backdrop-filter : blur(3px); + animation : yith-plugin-fw-fade-in .3s forwards; +} + +.yith-plugin-fw-media__preview.yith-plugin-fw--is-loading:before { + background : rgba(0, 121, 176, .7); +} + +.yith-plugin-fw-media__preview.yith-plugin-fw--is-loading:after { + content : ''; + position : absolute; + top : calc(50% - 12px); + left : calc(50% - 12px); + width : 24px; + height : 24px; + border-radius : 50%; + z-index : 999; + border : 3px solid #fff; + border-top-color : transparent; + animation : rotation .8s infinite linear; +} + +.yith-plugin-fw-media__preview__dropzone { + position : absolute; + top : 0; + left : 0; + width : 100%; + height : 100%; + background : transparent; + z-index : 999; + visibility : hidden; + opacity : 0; +} + +.yith-plugin-fw--dropzone-active .yith-plugin-fw-media__preview__dropzone { + visibility : visible; + opacity : 1; +} + +.yith-plugin-fw-media__preview__file__icon { + flex : 0 0 24px; + margin-right : 8px; +} + +.yith-plugin-fw-media__preview__actions { + position : absolute; + top : 7px; + right : 7px; + display : flex; +} + +.yith-plugin-fw-media__preview[data-type=upload] .yith-plugin-fw-media__preview__actions { + display : none; +} + +.yith-plugin-fw-media__preview__action { + font-size : 15px; + margin-left : 8px; + cursor : pointer; +} + +.yith-plugin-fw-media__preview__action--delete { + color : var(--yith-delete); +} + +.yith-plugin-fw-media__preview__image { + width : 100%; + pointer-events : none; +} + +.yith-plugin-fw-media .yith-plugin-fw__notice { + margin : 0 24px 24px; +} + + /** * Copy to clipboard */ .yith-plugin-fw-copy-to-clipboard { - background : #ffffff; - border-radius : 8px; - border : 1px solid #d8d8d8; - display : flex; - align-items : center; - padding : 0 12px; - max-width : 400px; - box-sizing : border-box; + background : #ffffff; + border-radius : var(--yith-field-border-radius); + border : var(--yith-field-border); + display : flex; + align-items : center; + padding : 0 12px; + max-width : 400px; + box-sizing : border-box; + box-shadow : var(--yith-field-shadow); } .yith-plugin-fw-copy-to-clipboard.yith-plugin-fw-copy-to-clipboard--readonly { - background : #f1f1f1; - border : 1px dashed #cccccc; + background : rgba(203, 213, 225, .25); + border-style : dashed; } .yith-plugin-fw-copy-to-clipboard__field-wrap { - position : relative; - flex : 1; + position : relative; + flex : 1; } .yith-plugin-fw-copy-to-clipboard__tip { - display : none; - position : absolute; - background : rgba(30, 30, 30, 0.9); - color : #ffffff; - padding : 7px 10px; - border-radius : 3px; - right : 8px; - top : 50%; - transform : translateY(-50%); - pointer-events : none; - font-size : 12px; - line-height : 1; + display : none; + position : absolute; + background : rgba(30, 30, 30, 0.9); + color : #ffffff; + padding : 7px 10px; + border-radius : 3px; + right : 8px; + top : 50%; + transform : translateY(-50%); + pointer-events : none; + font-size : 12px; + line-height : 1; } .yith-plugin-fw-copy-to-clipboard input[type=text].yith-plugin-fw-copy-to-clipboard__field, .yith-plugin-fw.yith-plugin-ui .yith-plugin-fw-copy-to-clipboard input[type=text].yith-plugin-fw-copy-to-clipboard__field, .yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].yith-plugin-fw-copy-to-clipboard__field, -.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].yith-plugin-fw-copy-to-clipboard__field { - height : 38px; - width : 100%; - background : transparent; - padding : 0 10px 0 0; - border : 0; - border-radius : 0; - box-shadow : none; - outline : none; +.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].yith-plugin-fw-copy-to-clipboard__field, +.yith-plugin-fw__panel__content__page--options .yith-plugin-fw-copy-to-clipboard__field-wrap input[type=text].yith-plugin-fw-copy-to-clipboard__field { + height : 38px; + width : 100%; + background : transparent; + padding : 0 10px 0 0; + border : 0; + border-radius : 0; + box-shadow : none !important; + outline : none !important; + min-width : 0; } .yith-plugin-fw-copy-to-clipboard.yith-plugin-fw-copy-to-clipboard--readonly input[type=text].yith-plugin-fw-copy-to-clipboard__field, .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table .yith-plugin-fw-copy-to-clipboard--readonly input[type=text].yith-plugin-fw-copy-to-clipboard__field { - color : #999; - cursor : default; + color : #6c7a8b; + cursor : default; } .yith-plugin-fw-copy-to-clipboard__copy { - display : flex; - align-items : center; - cursor : pointer; - border-radius : 2px; - padding : 1px; - user-select : none; - line-height : 1; - transition : all .2s ease-in-out; + display : flex; + align-items : center; + cursor : pointer; + border-radius : 2px; + padding : 1px; + user-select : none; + line-height : 1; + transition : all .2s ease-in-out; } .yith-plugin-fw-copy-to-clipboard__copy:hover { - box-shadow : 0 0 0 4px rgba(15, 67, 60, .12); - background-color : rgba(15, 67, 60, .12); + box-shadow : 0 0 0 4px rgba(15, 67, 60, .12); + background-color : rgba(15, 67, 60, .12); } .yith-plugin-fw-copy-to-clipboard__copy__text { - font-size : 12px; - font-weight : 600; + font-size : 12px; + font-weight : 600; } .yith-plugin-fw-copy-to-clipboard__copy__icon { - margin-right : 4px; - font-size : 14px; + margin-right : 4px; + font-size : 14px; } .rtl .yith-plugin-fw-copy-to-clipboard__copy__icon { - margin-right : 0; - margin-left : 4px; + margin-right : 0; + margin-left : 4px; } /** OVERRIDE WOOCOMMERCE CLASSES FOR 5.3 */ .branch-5-3 .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__arrow { - background : none; + background : none; } .branch-5-3 .yith-plugin-fw .select2-container.select2-container--focus .select2-selection--single, .branch-5-3 .yith-plugin-fw .select2-container.select2-container--open .select2-selection--multiple, .branch-5-3 .yith-plugin-fw .select2-container.select2-container--open .select2-selection--single { - box-shadow : none; + box-shadow : none; } @media screen and (max-width : 1440px) { - .yith-plugin-ui .yith-add-box, - .yith-plugin-ui .yith-toggle-row:not(.fixed) { - width : 80%; - } + .yith-plugin-ui .yith-add-box, + .yith-plugin-ui .yith-toggle-row:not(.fixed) { + width : 80%; + } - .yith-plugin-ui .yith-add-box-row, - .yith-plugin-ui .yith-toggle-content .yith-toggle-content-row, - .yith-plugin-ui .yith-add-box-row label { - display : block; - } + .yith-plugin-ui .yith-add-box-row, + .yith-plugin-ui .yith-toggle-content .yith-toggle-content-row, + .yith-plugin-ui .yith-add-box-row label { + display : block; + } - .yith-plugin-ui .yith-toggle-content .yith-toggle-content-row > label { - display : block; - } + .yith-plugin-ui .yith-toggle-content .yith-toggle-content-row > label { + display : block; + } - .yith-plugin-ui .yith-plugin-fw-option-with-description { - width : 100%; - } + .yith-plugin-ui .yith-plugin-fw-option-with-description { + width : 100%; + } - .yith-plugin-ui .yith-add-box-row, - .yith-plugin-ui .yith-add-box-row label { - display : block; - } + .yith-plugin-ui .yith-add-box-row, + .yith-plugin-ui .yith-add-box-row label { + display : block; + } - .yith-plugin-ui .yith-toggle-content .yith-plugin-fw-option-with-description, - .yith-plugin-ui .yith-add-box-row .yith-plugin-fw-option-with-description { - display : block; - padding-top : 20px; - } + .yith-plugin-ui .yith-toggle-content .yith-plugin-fw-option-with-description, + .yith-plugin-ui .yith-add-box-row .yith-plugin-fw-option-with-description { + display : block; + padding-top : 20px; + } - .yith-plugin-ui .yith-add-box-row .yith-plugin-fw-option-with-description span.description { - max-width : 100%; - } + .yith-plugin-ui .yith-add-box-row .yith-plugin-fw-option-with-description span.description { + max-width : 100%; + } } @media screen and (max-width : 1024px) { - .yith-plugin-ui .yith-add-box, - .yith-plugin-ui .yith-toggle-row:not(.fixed) { - width : 90%; - } + .yith-plugin-ui .yith-add-box, + .yith-plugin-ui .yith-toggle-row:not(.fixed) { + width : 90%; + } - .yith-plugin-ui td.forminp-checkbox.two-cols fieldset { - width : 100%; - padding-right : 20px; - float : left; - } + .yith-plugin-ui td.forminp-checkbox.two-cols fieldset { + width : 100%; + padding-right : 20px; + float : left; + } - .yith-plugin-ui td.forminp-checkbox.three-cols fieldset { - width : calc(50% - 10px); - padding-right : 10px; - float : left; - } + .yith-plugin-ui td.forminp-checkbox.three-cols fieldset { + width : calc(50% - 10px); + padding-right : 10px; + float : left; + } - .yith-plugin-ui td.forminp-checkbox.two-cols fieldset:nth-child(2n+1) { - clear : both; - } + .yith-plugin-ui td.forminp-checkbox.two-cols fieldset:nth-child(2n+1) { + clear : both; + } - .yith-plugin-ui td.forminp-checkbox.three-cols fieldset:nth-child(3n+1) { - clear : initial; - } + .yith-plugin-ui td.forminp-checkbox.three-cols fieldset:nth-child(3n+1) { + clear : initial; + } } @media screen and (max-width : 782px) { - .yith-plugin-fw-banner h1 { - line-height : 1.2em; - } - - .yith-plugin-fw-banner h1 { - font-size : 12px; - padding-right : 10px; - } - - .yith-plugin-ui .yith-add-box, - .yith-plugin-ui .yith-toggle-row { - width : 100%; - } - - .yith-plugin-ui td.forminp-checkbox.two-cols fieldset, - .yith-plugin-ui td.forminp-checkbox.three-cols fieldset { - width : 100%; - clear : initial; - } - - .yith-plugin-ui .wp-picker-container .wp-color-result.button { - padding : 0; - } - - .yith-plugin-ui #plugin-fw-wc table.form-table th, - #yith-plugin-fw-panel table.form-table th.titledesc, - .yith-plugin-ui #plugin-fw-wc table.form-table td, - #yith-plugin-fw-panel table.form-table td.forminp { - padding : 20px 20px; - } - - .yith-plugin-ui #plugin-fw-wc table.form-table th.titledesc, - #yith-plugin-fw-panel table.form-table th.titledesc { - padding-bottom : 0; - } + .yith-plugin-fw-banner h1 { + line-height : 1.2em; + } + + .yith-plugin-fw-banner h1 { + font-size : 12px; + padding-right : 10px; + } + + .yith-plugin-ui .yith-add-box, + .yith-plugin-ui .yith-toggle-row { + width : 100%; + } + + .yith-plugin-ui td.forminp-checkbox.two-cols fieldset, + .yith-plugin-ui td.forminp-checkbox.three-cols fieldset { + width : 100%; + clear : initial; + } + + .yith-plugin-ui .wp-picker-container .wp-color-result.button { + padding : 0; + } + + .yith-plugin-ui #plugin-fw-wc table.form-table th, + #yith-plugin-fw-panel table.form-table th.titledesc, + .yith-plugin-ui #plugin-fw-wc table.form-table td, + #yith-plugin-fw-panel table.form-table td.forminp { + padding : 20px 20px; + } + + .yith-plugin-ui #plugin-fw-wc table.form-table th.titledesc, + #yith-plugin-fw-panel table.form-table th.titledesc { + padding-bottom : 0; + } } @media (max-width : 480px) { - .yith-plugin-ui .nav-tab { - font-size : 12px; - } - - .yith-plugin-ui h2 { - padding : 20px 20px; - } - - .yith-plugin-ui [type="radio"]:checked + label:before, .yith-plugin-ui [type="radio"]:not(:checked) + label:before { - width : 14px; - height : 14px; - } - - .yith-plugin-ui [type="radio"]:checked + label:after, .yith-plugin-ui [type="radio"]:not(:checked) + label:after { - width : 10px; - height : 10px; - top : 3px; - left : 3px; - } - - .yith-plugin-ui [type="radio"]:checked + label, .yith-plugin-ui [type="radio"]:not(:checked) + label { - padding-left : 25px; - } - - .yith-plugin-ui [type="radio"]:checked + label, .yith-plugin-ui [type="radio"]:not(:checked) + label { - font-size : 13px; - } - - .yith-plugin-ui span.description { - font-size : 12px; - } - - .yith-plugin-ui #plugin-fw-wc table.form-table th, - #yith-plugin-fw-panel table.form-table th.titledesc, - .yith-plugin-ui #plugin-fw-wc table.form-table td, - #yith-plugin-fw-panel table.form-table td.forminp { - padding : 15px 20px; - } - - .yith-plugin-ui .yith-plugin-fw-onoff-container input + span { - width : 48px; - height : 20px; - padding : 2px; - } - - .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before { - top : 4px; - left : 3px; - width : 10px; - height : 10px; - } - - .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before { - left : 30px; - } - - .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after { - font-size : 11px; - padding-right : 12px; - margin-top : 0; - } - - .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after { - font-size : 11px; - padding-left : 12px; - margin-top : 0; - } - - .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered { - font-size : 14px; - } - - .yith-plugin-ui input { - font-size : 14px; - } + .yith-plugin-ui .nav-tab { + font-size : 12px; + } + + .yith-plugin-ui h2 { + padding : 20px 20px; + } + + .yith-plugin-ui [type="radio"]:checked + label, .yith-plugin-ui [type="radio"]:not(:checked) + label { + padding-left : 25px; + } + + .yith-plugin-ui [type="radio"]:checked + label, .yith-plugin-ui [type="radio"]:not(:checked) + label { + font-size : 13px; + } + + .yith-plugin-ui span.description { + font-size : 12px; + } + + .yith-plugin-ui #plugin-fw-wc table.form-table th, + #yith-plugin-fw-panel table.form-table th.titledesc, + .yith-plugin-ui #plugin-fw-wc table.form-table td, + #yith-plugin-fw-panel table.form-table td.forminp { + padding : 15px 20px; + } + + .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered { + font-size : 14px; + } + + .yith-plugin-ui input { + font-size : 14px; + } } diff --git a/plugin-fw/assets/css/yith-plugin-panel.css b/plugin-fw/assets/css/yith-plugin-panel.css new file mode 100644 index 0000000..265e6ab --- /dev/null +++ b/plugin-fw/assets/css/yith-plugin-panel.css @@ -0,0 +1,1500 @@ +/** + * YITH Plugin Panel style + * + * IMPORTANT: This file is automatically generated through SCSS files. + * Please don't edit it manually! + */ +/** + * The panel + */ +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-2 { + background: #f1f5f9; +} + +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-2 h1, body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-2 h2 { + color: inherit; +} + +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-2 .wrap { + margin: 0; +} + +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-2 #screen-meta-links { + position: absolute; + right: 0; +} + +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-2 #yith-plugin-fw__panel__notices { + margin: 35px 20px -24px 0; +} + +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-2 #yith-plugin-fw__panel__notices .notice { + margin-left: 0; + margin-right: 0; +} + +@media screen and (max-width: 600px) { + body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-2 #wpbody { + padding-top: 46px; + } +} + +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-2 .yith-plugin-fw-rate { + margin: 0 25px 20px 0; + transform: translateY(20px); +} + +@media screen and (max-width: 782px) { + body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-2 .yith-plugin-fw-rate { + font-size: .9em; + } +} + +.yith-plugin-fw__panel__mobile__header { + flex-direction: row; + align-items: center; + background: #fff; + width: calc(100% + 10px); + position: sticky; + top: 0; + left: 0; + height: 64px; + border-bottom: 1px solid #e2e8f0; + display: none; + margin-left: -10px; + z-index: 9999997; +} + +.yith-plugin-fw__panel__mobile__header .yith-plugin-fw__panel__mobile__header__toggle { + display: flex; + align-items: center; + justify-content: center; + align-self: stretch; + margin-right: 16px; + box-sizing: border-box; + padding: 0 20px; + border-right: 1px solid #e2e8f0; + cursor: pointer; + color: #94a3b8; +} + +.yith-plugin-fw__panel__mobile__header .yith-plugin-fw__panel__mobile__header__toggle svg { + stroke-width: 2; + width: 24px; +} + +.yith-plugin-fw__panel__mobile__header .yith-plugin-fw__panel__mobile__header__logo { + width: 100%; + max-width: 50px; + margin-right: 8px; +} + +.yith-plugin-fw__panel__mobile__header .yith-plugin-fw__panel__mobile__header__title { + font-size: 1.2em; + font-weight: 600; + padding-right: 8px; + color: #005b7c; +} + +@media screen and (max-width: 782px) { + .yith-plugin-fw__panel__mobile__header { + display: flex; + } +} + +.yith-plugin-fw__panel { + display: flex; + padding: 35px 24px 16px 0; + color: var(--yith-content-text); + align-items: flex-start; + width: 100%; + box-sizing: border-box; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +@media screen and (max-width: 782px) { + .yith-plugin-fw__panel { + padding-right: 8px; + } +} + +.yith-plugin-fw__panel p { + margin-top: 4px; + margin-bottom: 0; +} + +.yith-plugin-fw__panel__sidebar { + flex: 1 0 240px; + display: flex; + flex-direction: column; + line-height: 1.5; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__sidebar__header { + display: flex; + flex-direction: column; + padding: 0 16px 0 12px; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__sidebar__header .yith-plugin-fw__panel__sidebar__header__logo { + width: 100%; + max-width: 70px; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__sidebar__header .yith-plugin-fw__panel__sidebar__header__name { + font-size: 1em; + font-weight: 600; + color: #005b7c; + margin-top: .75em; + margin-bottom: .25em; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu__wrapper { + color: #1e293b; + font-size: 13px; + margin: 40px 16px 0 0; + font-weight: 500; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu { + display: flex; + flex-direction: column; + gap: 8px; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu-item { + display: flex; + flex-direction: column; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu-item.yith-plugin-fw--active a.yith-plugin-fw__panel__menu-item__content { + background: #e2e8f0; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu-item.yith-plugin-fw--open .yith-plugin-fw__panel__menu-item__toggle { + transform: rotate(180deg); +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu-item.yith-plugin-fw--open .yith-plugin-fw__panel__submenu { + display: flex; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu-item__icon { + width: 24px; + line-height: 12px; + margin-right: 12px; + margin-left: -4px; + color: #94a3b8; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu-item__icon svg { + stroke-width: 2px; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu-item__name, +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__submenu__head__title { + flex: 1; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu-item__toggle { + width: 16px; + color: #94a3b8; + stroke-width: 3px; +} + +.yith-plugin-fw__panel__sidebar a.yith-plugin-fw__panel__menu-item__content { + display: flex; + align-items: center; + text-decoration: none; + color: inherit; + padding: 8px 12px; + border-radius: 4px; +} + +.yith-plugin-fw__panel__sidebar a.yith-plugin-fw__panel__menu-item__content:hover { + background: #f8fafc; +} + +.yith-plugin-fw__panel__sidebar a.yith-plugin-fw__panel__menu-item__content:hover .yith-plugin-fw__panel__menu-item__icon, +.yith-plugin-fw__panel__sidebar a.yith-plugin-fw__panel__menu-item__content:hover .yith-plugin-fw__panel__menu-item__toggle { + color: #64748b; +} + +.yith-plugin-fw__panel__sidebar a.yith-plugin-fw__panel__menu-item__content:focus { + box-shadow: none; + outline: none; +} + +.yith-plugin-fw__panel__sidebar a.yith-plugin-fw__panel__menu-item__content:focus-visible { + box-shadow: 0 0 0 2px var(--yith-primary); + outline: none; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__submenu { + display: flex; + flex-direction: column; + margin-left: 32px; + margin-top: .25rem; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__submenu__head { + display: none; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__submenu-item { + display: flex; + flex-direction: column; + margin: .25rem 0; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__submenu-item.yith-plugin-fw--active a.yith-plugin-fw__panel__submenu-item__content { + background: #e2e8f0; + opacity: 1; +} + +.yith-plugin-fw__panel__sidebar a.yith-plugin-fw__panel__submenu-item__content { + display: flex; + align-items: center; + text-decoration: none; + color: #475569; + padding: 8px 12px; + border-radius: 4px; +} + +.yith-plugin-fw__panel__sidebar a.yith-plugin-fw__panel__submenu-item__content:hover { + background: rgba(255, 255, 255, 0.4); + opacity: 1; + color: inherit; +} + +.yith-plugin-fw__panel__sidebar a.yith-plugin-fw__panel__submenu-item__content:focus { + box-shadow: none; + outline: none; +} + +.yith-plugin-fw__panel__sidebar a.yith-plugin-fw__panel__submenu-item__content:focus-visible { + box-shadow: 0 0 0 2px var(--yith-primary); + outline: none; +} + +.yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__submenu-item__name { + flex: 1; +} + +@media screen and (max-width: 782px) { + .yith-plugin-fw__panel__sidebar { + display: none; + position: fixed; + top: 0; + left: 0; + width: 320px; + height: 100%; + z-index: 9999999; + background: #f1f5f9; + padding: 24px 8px; + box-sizing: border-box; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw--open { + display: block; + } + .yith-plugin-fw__panel__sidebar a.yith-plugin-fw__panel__menu-item__content.yith-plugin-fw__panel__sidebar__collapse { + display: none; + } +} + +@media screen and (min-width: 781px) { + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed { + flex: 1; + transition: all .3s ease-in-out; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__sidebar__header { + padding-top: 8px; + padding-left: 0; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__sidebar__header__logo { + max-width: 48px; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__sidebar__header__name, + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__menu-item__name, + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__menu-item__toggle { + display: none; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__menu-item.yith-plugin-fw__panel__menu-item--current a.yith-plugin-fw__panel__menu-item__content { + background: #e2e8f0; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__submenu { + position: absolute; + display: none !important; + top: 0; + left: 100%; + margin: 0; + padding-left: 8px; + width: 200px; + z-index: 999999; + animation: yith-plugin-fw-fade-in .3s forwards; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__submenu__wrap { + box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15); + border-radius: 8px; + background: #f8fafc; + padding: 4px 0; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__submenu__head { + display: flex; + padding: 6px 12px 10px; + font-size: 1.1em; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__submenu__content { + background: #f8fafc; + padding: 8px 12px; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed a.yith-plugin-fw__panel__submenu-item__content { + border-radius: 0; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__menu-item.yith-plugin-fw--has-submenu:hover { + position: relative; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__menu-item.yith-plugin-fw--has-submenu:hover .yith-plugin-fw__panel__submenu { + display: block !important; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__menu-item__icon { + margin: 0 !important; + } + .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__sidebar__collapse .yith-plugin-fw__panel__menu-item__icon { + transform: rotate(180deg); + } +} + +.yith-plugin-fw__panel__content { + display: flex; + flex-direction: column; + flex: 1 1 100%; + min-width: 0; + background: var(--yith-content-bg); + color: var(--yith-content-text); + border-radius: 8px; + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page { + display: flex; + flex-direction: column; + flex: 1; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page h1 { + color: inherit; + font-size: 1.5rem; + margin: 0; + padding: 0; + font-weight: 500; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page h2 { + color: inherit; + font-size: 1rem; + margin: 0; + padding: 0; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page .yith-plugin-fw__panel__content__page__heading { + border-bottom: 1px solid var(--yith-field-border-color); + padding: 32px; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page .yith-plugin-fw__panel__content__page__heading h1 { + padding-bottom: 0; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page .yith-plugin-fw__panel__content__page__heading .yith-plugin-fw__panel__content__page__description { + margin-top: .75rem; + font-size: .875rem; + line-height: 1.5; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page .yith-plugin-fw-panel-custom-tab-container { + padding: 32px; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page #plugin-fw-wc, +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page #yith-plugin-fw-panel { + display: flex; + flex-direction: column; + gap: 32px; + padding: 32px; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page .yith-plugin-fw__panel__section { + display: flex; + gap: 32px; + position: relative; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page .yith-plugin-fw__panel__section .yith-plugin-fw__panel__section__title { + display: flex; + flex-direction: column; + gap: 8px; + flex: 0 1 300px; + max-width: 25%; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page .yith-plugin-fw__panel__section .yith-plugin-fw__panel__section__content { + flex: 1; +} + +@media screen and (max-width: 1280px) { + .yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page .yith-plugin-fw__panel__section { + flex-direction: column; + } + .yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__page .yith-plugin-fw__panel__section .yith-plugin-fw__panel__section__title { + flex: 1; + max-width: 100%; + } +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__section + .yith-plugin-fw__panel__section:before { + content: ''; + width: 100%; + border-top: 1px solid #ddd; + margin-top: -32px; + position: absolute; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option { + display: flex; + flex-direction: column; + margin-bottom: 24px; + max-width: 670px; + gap: 8px; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option .yith-plugin-fw__panel__option__label { + font-size: inherit; + font-weight: 500; + padding: 0; + width: 100%; + color: #1e293b; + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: wrap; + gap: 8px; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option .yith-plugin-fw__panel__option__label__tags { + display: flex; + flex-direction: row; + align-items: center; + flex-wrap: wrap; + gap: 8px; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option .yith-plugin-fw__panel__option__description { + display: block; + font-weight: 400; + font-size: inherit; + margin-bottom: 8px; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option.yith-plugin-fw__panel__option--onoff { + display: flex; + align-items: center; + flex-direction: row; + flex-wrap: wrap; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option.yith-plugin-fw__panel__option--onoff .yith-plugin-fw__panel__option__label { + flex: 1; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option.yith-plugin-fw__panel__option--onoff .yith-plugin-fw__panel__option__description { + flex: 100%; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option.yith-plugin-fw__panel__option--hidden { + display: none !important; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option .yith-plugin-fw__panel__option__wc-row-table { + font-size: inherit; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option .yith-plugin-fw__panel__option__wc-row-table > tbody > tr > th { + display: none; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option .yith-plugin-fw__panel__option__wc-row-table > tbody > tr > td { + padding: 0; + font-size: inherit; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option .yith-plugin-fw__panel__option__wc-row-table > tbody > tr > td p.description { + display: block; + font-weight: 400; + font-size: inherit; + color: inherit; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option.yith-plugin-fw__panel__option--is-disabled .yith-plugin-fw__panel__option__label label, +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option.yith-plugin-fw__panel__option--is-disabled .yith-plugin-fw__panel__option__description, +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__option.yith-plugin-fw__panel__option--is-disabled .yith-plugin-fw__panel__option__content { + opacity: 0.5; + pointer-events: none; + filter: grayscale(100%); + user-select: none; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__actions { + position: sticky; + bottom: 0; + padding: 32px; + display: flex; + align-items: center; + justify-content: flex-start; + border-bottom-left-radius: inherit; + border-bottom-right-radius: inherit; + background: #f8fafc; +} + +.yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__actions :not(style) + :not(style) { + margin-left: 8px; +} + +#yith-plugin-fw__panel__sidebar__mobile-backdrop { + position: fixed; + width: 100%; + height: 100%; + top: 0; + left: 0; + z-index: 9999998; + background: rgba(71, 85, 105, 0.75); +} + +body.rtl .yith-plugin-fw__panel { + padding-left: 24px; + padding-right: 0; +} + +@media screen and (max-width: 782px) { + body.rtl .yith-plugin-fw__panel { + padding-left: 8px; + padding-right: 0; + } +} + +body.rtl .yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu__wrapper { + margin-left: 16px; + margin-right: 0; +} + +body.rtl .yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__menu-item__icon { + margin-left: 12px; + margin-right: -4px; +} + +body.rtl .yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__submenu { + margin-left: 0; + margin-right: 32px; +} + +body.rtl .yith-plugin-fw__panel__sidebar .yith-plugin-fw__panel__sidebar__collapse .yith-plugin-fw__panel__menu-item__icon { + transform: rotate(180deg); +} + +body.rtl .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__sidebar__collapse .yith-plugin-fw__panel__menu-item__icon { + transform: rotate(0deg); +} + +@media screen and (min-width: 781px) { + body.rtl .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__sidebar__header { + padding-left: 16px; + padding-right: 0; + } + body.rtl .yith-plugin-fw__panel__sidebar.yith-plugin-fw__panel__sidebar--collapsed .yith-plugin-fw__panel__submenu { + margin: 0; + right: 100%; + left: auto; + padding-right: 8px; + padding-left: 0; + } +} + +@media screen and (max-width: 782px) { + body.rtl .yith-plugin-fw__panel__sidebar { + left: auto; + right: 0; + } +} + +body.rtl .yith-plugin-fw__panel__mobile__header { + margin-left: 0; + margin-right: -10px; +} + +body.rtl .yith-plugin-fw__panel__mobile__header .yith-plugin-fw__panel__mobile__header__toggle { + margin-right: 0; + margin-left: 16px; +} + +body.rtl .yith-plugin-fw__panel__content .yith-plugin-fw__panel__content__actions :not(style) + :not(style) { + margin-left: 0; + margin-right: 8px; +} + +.yith-plugin-fw__panel__content__page--options .yith-plugin-fw-slider-container, +.yith-plugin-fw__panel__content__page--options .yith-plugin-fw-text-array-table, +.yith-plugin-fw__panel__content__page--options .yith-plugin-fw-textarea, +.yith-plugin-fw__panel__content__page--options input[type=email], +.yith-plugin-fw__panel__content__page--options input[type=text]:not(.select2-search__field), +.yith-plugin-fw__panel__content__page--options select { + width: 400px; + max-width: 100%; +} + +@media screen and (max-width: 782px) { + .yith-plugin-fw__panel__content__page--options .yith-plugin-fw-slider-container, + .yith-plugin-fw__panel__content__page--options .yith-plugin-fw-text-array-table, + .yith-plugin-fw__panel__content__page--options .yith-plugin-fw-textarea, + .yith-plugin-fw__panel__content__page--options input[type=email], + .yith-plugin-fw__panel__content__page--options input[type=text]:not(.select2-search__field), + .yith-plugin-fw__panel__content__page--options select { + width: 100%; + max-width: 400px; + } +} + +.yith-plugin-fw__panel__content__page--options .yith-plugin-fw-slider-container.small-text, +.yith-plugin-fw__panel__content__page--options .yith-plugin-fw-text-array-table.small-text, +.yith-plugin-fw__panel__content__page--options .yith-plugin-fw-textarea.small-text, +.yith-plugin-fw__panel__content__page--options input[type=email].small-text, +.yith-plugin-fw__panel__content__page--options input[type=text]:not(.select2-search__field).small-text, +.yith-plugin-fw__panel__content__page--options select.small-text { + width: 100px; +} + +.yith-plugin-fw__panel__content__page--options input[type=number] { + width: 70px; + min-width: 70px; +} + +.yith-plugin-fw__panel__content__page--options .yith-plugin-fw-text-array-table input { + width: 100%; +} + +.yith-plugin-fw-select, +.yith-plugin-fw-slider-container, +.yith-plugin-fw-text-input, +.yith-plugin-fw-text-array-table, +.yith-plugin-fw-textarea { + width: 400px; + max-width: 100%; +} + +@media screen and (max-width: 782px) { + .yith-plugin-fw-select, + .yith-plugin-fw-slider-container, + .yith-plugin-fw-text-input, + .yith-plugin-fw-text-array-table, + .yith-plugin-fw-textarea { + width: 100%; + max-width: 400px; + } +} + +.yith-plugin-fw__panel__checkbox-group { + display: flex; + flex-direction: column; + gap: 8px; +} + +/** + * WP Pages + */ +.yith-plugin-fw-wp-page-wrapper .yith-plugin-fw__back-to-wp-list__wrapper { + margin: -5px 0 15px; +} + +.yith-plugin-fw-wp-page-wrapper .yith-plugin-fw__back-to-wp-list__wrapper .yith-plugin-fw__back-to-wp-list { + text-decoration: none; + font-weight: 600; + text-transform: uppercase; + color: var(--yith-link); + vertical-align: middle; +} + +.yith-plugin-fw-wp-page-wrapper .yith-plugin-fw__back-to-wp-list__wrapper .yith-plugin-fw__back-to-wp-list:before { + content: "\e901"; + font-family: yith-icon; + margin-right: 5px; + font-size: .8em; + vertical-align: middle; +} + +.yith-plugin-fw-wp-page-wrapper .yith-plugin-fw-wp-page__description { + margin-top: .75rem; + font-size: .875rem; + line-height: 1.5; +} + +.yith-plugin-fw-wp-page-wrapper #poststuff { + min-width: 0; +} + +.yith-plugin-fw-wp-page-wrapper .postbox { + box-shadow: none; +} + +.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated { + --yith-fw-notice-bg: #f7fbe9; + --yith-fw-notice-icon: '\e921'; + --yith-fw-notice-border-color: #d7e0b0; + --yith-fw-notice-color: #6e861d; + display: none; + padding: 15px 40px 15px 45px; + margin: 15px 0 20px; + border-radius: 6px; + background: var(--yith-fw-notice-bg); + font-weight: 400; + font-size: 14px; + text-align: left; + color: var(--yith-fw-notice-color); + border: 1px solid var(--yith-fw-notice-border-color); +} + +.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated a { + color: inherit; + font-weight: 500; +} + +.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated:before { + font-family: yith-icon; + content: var(--yith-fw-notice-icon); + position: absolute; + top: 50%; + left: 13px; + font-size: 20px; + font-weight: 400; + transform: translateY(-50%); +} + +.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated p { + padding: 0; + margin: 0; +} + +.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss { + cursor: pointer; + position: absolute; + width: 32px; + height: 32px; + border-radius: 50%; + right: 15px; + top: 50%; + transform: translateY(-50%); + color: inherit; +} + +.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:before { + content: ''; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + border-radius: 50%; + opacity: 0; + box-shadow: 0 0 0 5px; + color: inherit; + background: currentColor; + transition: all .3s ease-in-out; +} + +.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:after { + position: absolute; + top: 50%; + left: 50%; + font-family: 'yith-icon'; + content: '\f117'; + font-size: 12px; + transform: translateY(-50%) translateX(-50%); +} + +.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:hover:before { + box-shadow: 0 0 0 0; + opacity: .1; +} + +.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:hover:after, .yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:active:after, .yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:focus:after { + color: inherit; +} + +.yith-plugin-fw-wp-page-wrapper #wp-content-editor-tools { + background: transparent; +} + +@media screen and (max-width: 782px) { + .yith-plugin-fw-wp-page-wrapper p.search-box { + display: none; + } +} + +body.yith-plugin-fw-panel--version-2 .yith-plugin-fw-wp-page-wrapper .wrap { + padding: 32px; + margin: 0; +} + +body.yith-plugin-fw-panel--version-2 .yith-plugin-fw-wp-page-wrapper .wrap #yith-plugin-fw__back-to-wp-list__wrapper { + margin: -16px 0 15px -14px; +} + +body.yith-plugin-fw-panel--version-2 .yith-plugin-fw-wp-page-wrapper .wrap h1 { + color: inherit; + font-size: 1.5rem; + margin: 0 8px 0 0; + padding: 0; + font-weight: 500; +} + +body.yith-plugin-fw-panel--version-2 .yith-plugin-fw-wp-page-wrapper .wrap hr.wp-header-end { + margin: 32px -32px; + border: 0; + border-bottom: 1px solid var(--yith-field-border-color); + visibility: visible; +} + +body.yith-plugin-fw-panel--version-2.term-php .yith-plugin-fw-wp-page-wrapper.yith-plugin-ui--taxonomy-type #ajax-response:after { + content: ''; + width: calc(100% + 64px); + margin: 32px -32px; + border: 0; + border-bottom: 1px solid var(--yith-field-border-color); + display: block; +} + +body.yith-plugin-fw-panel--version-2.term-php .yith-plugin-fw-wp-page-wrapper #message { + display: none; +} + +/** + * Taxonomy Style + */ +.yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-container, .yith-plugin-ui--taxonomy-type #col-container { + display: flex; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-left, .yith-plugin-ui--taxonomy-type #col-left { + padding: 20px; + background: rgba(241, 245, 249, 0.5); + border-radius: 8px; + box-sizing: border-box; + margin-right: 15px; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-right, .yith-plugin-ui--taxonomy-type #col-right { + flex: 1; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type h2, .yith-plugin-ui--taxonomy-type h2 { + border: none; + padding: 0; + font-size: 14px; + background: transparent; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .wrap h1, .yith-plugin-ui--taxonomy-type .wrap h1 { + color: #2a8db0; + font-size: 16px; + font-weight: 600; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice, .yith-plugin-ui--taxonomy-type .notice { + --yith-fw-notice-bg: #f2f7ff; + --yith-fw-notice-icon: '\e90e'; + --yith-fw-notice-border-color: #d2dbea; + --yith-fw-notice-color: #4361c4; + padding: 15px 40px 15px 45px; + margin: 15px 0 20px; + border-radius: 6px; + background: var(--yith-fw-notice-bg); + font-weight: 400; + font-size: 14px; + text-align: left; + color: var(--yith-fw-notice-color); + border: 1px solid var(--yith-fw-notice-border-color); + position: relative; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice.notice-success, .yith-plugin-ui--taxonomy-type .notice.notice-success { + --yith-fw-notice-bg: #f7fbe9; + --yith-fw-notice-icon: '\e921'; + --yith-fw-notice-border-color: #d7e0b0; + --yith-fw-notice-color: #6e861d; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice.notice-error, .yith-plugin-ui--taxonomy-type .notice.notice-error { + --yith-fw-notice-bg: #fff3f1; + --yith-fw-notice-icon: '\e923'; + --yith-fw-notice-border-color: #dbbcb7; + --yith-fw-notice-color: #a91803; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice a, .yith-plugin-ui--taxonomy-type .notice a { + color: inherit; + font-weight: 500; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice:before, .yith-plugin-ui--taxonomy-type .notice:before { + font-family: yith-icon; + content: var(--yith-fw-notice-icon); + position: absolute; + top: 50%; + left: 13px; + font-size: 20px; + font-weight: 400; + transform: translateY(-50%); +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice p, .yith-plugin-ui--taxonomy-type .notice p { + padding: 0; + margin: 0; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice .notice-dismiss, .yith-plugin-ui--taxonomy-type .notice .notice-dismiss { + cursor: pointer; + position: absolute; + width: 32px; + height: 32px; + border-radius: 50%; + right: 15px; + top: 50%; + transform: translateY(-50%); + color: inherit; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice .notice-dismiss:before, .yith-plugin-ui--taxonomy-type .notice .notice-dismiss:before { + content: ''; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + border-radius: 50%; + opacity: 0; + box-shadow: 0 0 0 5px; + color: inherit; + background: currentColor; + transition: all .3s ease-in-out; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice .notice-dismiss:after, .yith-plugin-ui--taxonomy-type .notice .notice-dismiss:after { + position: absolute; + top: 50%; + left: 50%; + font-family: 'yith-icon'; + content: '\f117'; + font-size: 12px; + transform: translateY(-50%) translateX(-50%); +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice .notice-dismiss:hover:before, .yith-plugin-ui--taxonomy-type .notice .notice-dismiss:hover:before { + box-shadow: 0 0 0 0; + opacity: .1; +} + +.yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice .notice-dismiss:hover:after, .yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice .notice-dismiss:active:after, .yith-plugin-ui.yith-plugin-ui--taxonomy-type .notice .notice-dismiss:focus:after, .yith-plugin-ui--taxonomy-type .notice .notice-dismiss:hover:after, .yith-plugin-ui--taxonomy-type .notice .notice-dismiss:active:after, .yith-plugin-ui--taxonomy-type .notice .notice-dismiss:focus:after { + color: inherit; +} + +@media screen and (max-width: 782px) { + .yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-container { + display: block; + } + .yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-left, .yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-right { + float: none; + width: 100%; + } +} + +/** + Premium Tab + */ +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-1 #yith_plugin_fw_panel_premium_tab { + background-color: white; + padding: 40px; + margin-right: 15px; + border: 1px solid #d8d8d8; + border-top: none; +} + +#yith_plugin_fw_panel_premium_tab { + padding: 40px; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab { + background-color: #f9f9f9; + padding: 40px; + border: 1px solid #dbdbdb; + border-radius: 5px; + max-width: 1400px; + margin: auto; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header { + display: flex; + align-items: center; + gap: 35px 20px; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-title { + color: #c28d31; + text-transform: uppercase; + font-weight: 600; + font-size: 18px; + width: 100%; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta { + color: white; + background-color: #e58f00; + display: flex; + align-items: center; + justify-content: space-between; + padding: 12px 24px; + column-gap: 12px; + font-size: 14px; + font-weight: 600; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta:before { + content: '\f11b'; + font-family: 'yith-icon'; + font-size: 18px; + line-height: 1em; + font-weight: 400; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta:hover:before { + transform-origin: center center; + animation: .3s yith-plugin-fw-jiggle linear; + animation-iteration-count: 3; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta-arrow { + background: url("../images/arrow.svg") no-repeat center; + background-size: contain; + width: 100px; + height: 30px; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__content { + display: flex; + column-gap: 20px; + padding-top: 30px; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__main-image { + max-width: 50%; + object-fit: contain; + object-position: top; + flex: 1; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__features { + display: flex; + flex-direction: column; + row-gap: 45px; + font-size: 18px; + line-height: 24px; + padding-top: 30px; + flex: 1; + max-width: 100%; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature { + display: flex; + align-items: center; + column-gap: 25px; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature:before { + content: ''; + display: block; + width: 12px; + height: 20px; + border: 8px solid #96ca20; + border-left: 0; + border-top: 0; + transform: rotate(45deg) translate(30%, -15%); + margin-right: 10px; + margin-bottom: 6px; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature-content { + width: calc(100% - 55px); +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__cta-button { + background-color: #e58f00; + color: white; + text-transform: uppercase; + text-decoration: none; + border-radius: 5px; + white-space: nowrap; + transition: .3s; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__cta-button:hover { + background-color: #c67c00; +} + +#yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__content-cta { + padding: 20px; + font-size: 20px; + font-weight: 600; + text-align: center; + line-height: normal; +} + +@media (max-width: 1210px) { + #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__main-image, + #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header-cta-arrow { + display: none; + } + #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__header { + flex-wrap: wrap; + } + #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__features { + padding-top: 15px; + } +} + +@media (max-width: 600px) { + #yith_plugin_fw_panel_premium_tab { + padding: 20px; + } + #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab { + padding: 30px; + } +} + +@media (max-width: 480px) { + #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature { + flex-direction: column; + align-items: flex-start; + row-gap: 13px; + } + #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature:before { + width: 8px; + height: 15px; + border-width: 5px; + } + #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__feature-content { + width: 100%; + } + #yith_plugin_fw_panel_premium_tab .yith-plugin-fw-panel-premium-tab__cta-button { + white-space: unset; + } +} + +/** + Help tab + */ +.yith-plugin-fw-panel-help-tab-container { + padding: 60px 25px; +} + +body.yith-plugin-fw-panel.yith-plugin-fw-panel--version-1 .yith-plugin-fw-panel-help-tab-container { + background-color: white; + padding: 40px; + margin-right: 15px; + border: 1px solid #d8d8d8; + border-top: none; +} + +.yith-plugin-fw-panel-help-tab-content { + background-color: #f4f4f4; + border-radius: 15px; + max-width: 1100px; + margin: 0 auto; + padding: 40px 40px 60px; +} + +.yith-plugin-fw-panel-help-tab-content p, +.yith-plugin-fw-panel-help-tab-content a { + font-size: 16px; +} + +.yith-plugin-fw-panel-help-tab-content .row { + margin: 0 -15px 50px; + white-space: nowrap; +} + +.yith-plugin-fw-panel-help-tab-content .row:last-child { + margin-bottom: 0; +} + +.yith-plugin-fw-panel-help-tab-content .row .column-left, +.yith-plugin-fw-panel-help-tab-content .row .column-right { + display: inline-block; + padding: 0 15px; + vertical-align: top; + width: 66%; +} + +.yith-plugin-fw-panel-help-tab-content .row .column-right { + width: 33%; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video, +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-actions, +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles, +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket { + box-sizing: border-box; + white-space: normal; +} + +.yith-plugin-fw-panel-help-tab-content h2.yith-plugin-fw-panel-help-tab-title { + background: none; + border: none; + font-size: 22px; + line-height: 1.5em; + padding: 0; + text-align: center; +} + +.yith-plugin-fw-panel-help-tab-content h3 { + color: #03689f; + font-size: 15px; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-panel-tab-description { + font-size: 18px; + text-align: center; + margin-bottom: 40px; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video { + text-align: center; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video p.video-description { + margin-bottom: 25px; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video .video-caption p { + margin: 5px 0; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video .video-container { + margin: 0 auto 50px; + overflow: hidden; + padding-top: 56.25%; + position: relative; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-help-tab-video .video-container iframe { + border: 0; + height: 100%; + left: 0; + position: absolute; + top: 0; + width: 100%; +} + +.yith-plugin-fw-panel-help-tab-content .box-with-shadow { + display: block; + background-color: #fff; + border-radius: 5px; + box-shadow: 0 0 15px 5px rgba(174, 201, 207, 0.3); + transition: all .2s ease; +} + +.yith-plugin-fw-panel-help-tab-content .box-with-image { + display: grid; + grid-template-columns: repeat(2, 1fr); + column-gap: 40px; + background-color: #fff; + border: 1px solid #ebebeb; + padding: 30px 40px; + max-width: 60%; + margin: 0 auto 40px; +} + +.yith-plugin-fw-panel-help-tab-content .box-with-image img { + margin: 0 auto; + max-width: 100%; +} + +.yith-plugin-fw-panel-help-tab-content .box-with-image .box-content { + white-space: initial; +} + +.yith-plugin-fw-panel-help-tab-content .box-with-image .box-content .button { + border-radius: 0; + padding: 10px 20px; + min-width: 230px; + margin-top: 20px; + text-align: center; + white-space: initial; +} + +@media (max-width: 480px) { + .yith-plugin-fw-panel-help-tab-content .box-with-image .box-content .button { + min-width: 0; + max-width: 100%; + } +} + +@media (max-width: 1210px) { + .yith-plugin-fw-panel-help-tab-content .box-with-image { + max-width: 100%; + } +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions, +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket { + margin: 0 auto; + max-width: 640px; +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions:not(.full-width) { + padding-top: 65px !important; +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li { + margin-bottom: 20px; +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li > a { + display: block; + padding: 15px 20px 15px 75px !important; + text-decoration: none; +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li:hover { + box-shadow: 0 0 15px 5px rgba(177, 220, 228, 0.6); + transform: scale(1.04); +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li a:before { + color: #03689f; + float: left; + font-family: 'yith-icon'; + font-size: 36px; + line-height: 1; + margin-left: -50px; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li.read-documentation a:before { + content: '\f10d'; +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li.watch-videotutorials a:before { + content: '\f10e'; +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li.check-faqs a:before { + content: '\f10c'; +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li h4 { + margin: 0 0 5px; +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li h4 a { + color: #03689f; + text-decoration: none; +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li .description { + margin: 0; + font-size: 14px; +} + +.yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions li .separator { + display: inline-block; + margin: 0 5px; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles h3 { + font-size: 18px; + margin: 0; + padding: 10px 0; + position: relative; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles h3:before { + content: ''; + background: #03689f; + display: block; + height: 100%; + left: -40px; + position: absolute; + top: 0; + width: 15px; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles a.button { + font-size: 16px; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles-list { + margin: 15px 0 30px; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles-list li { + display: block; + margin-bottom: 10px; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles-list li:before { + content: '-'; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-hc-articles-list a { + text-decoration: none; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket > .box-with-shadow { + padding: 30px !important; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket h3 { + color: #b90a0a; + font-size: 18px; + margin: 0 0 15px; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket p { + margin-bottom: 35px; +} + +.yith-plugin-fw-panel-help-tab-content .yith-plugin-fw-submit-ticket .button { + border-radius: 7px; + display: block; + font-size: 15px; + padding: 7px 15px; + text-align: center; +} + +@media (max-width: 992px) { + .yith-plugin-fw-panel-help-tab-content .row { + white-space: normal; + margin-bottom: 0; + } + .yith-plugin-fw-panel-help-tab-content .row .column-left, + .yith-plugin-fw-panel-help-tab-content .row .column-right { + width: 100%; + margin-bottom: 50px; + } + .yith-plugin-fw-panel-help-tab-content ul.yith-plugin-fw-help-tab-actions { + padding-top: 0 !important; + } + .yith-plugin-fw-panel-help-tab-content .box-with-image { + display: block; + text-align: center; + } +} diff --git a/plugin-fw/assets/css/yith-plugin-ui.css b/plugin-fw/assets/css/yith-plugin-ui.css index defe36b..708dacd 100644 --- a/plugin-fw/assets/css/yith-plugin-ui.css +++ b/plugin-fw/assets/css/yith-plugin-ui.css @@ -10,7 +10,7 @@ */ :root { --yith-content-bg: #ffffff; - --yith-content-text: #3c434a; + --yith-content-text: #475569; --yith-primary: #00799f; --yith-primary-hover: #0094c4; --yith-primary-focus: #bddce6; @@ -47,138 +47,16 @@ --yith-table-row-highlight: #f0f6fb; --yith-table-row-striped: #f6f7f7; --yith-table-border-light: #eff0f0; - --yith-field-border-color: #d8d8d8; - --yith-field-border-weight: #d8d8d8; - --yith-field-border: 1px solid #d8d8d8; + --yith-field-border-color: #cbd5e1; + --yith-field-border-weight: #cbd5e1; + --yith-field-border: 1px solid #cbd5e1; + --yith-field-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); + --yith-field-shadow-color: rgba(0, 0, 0, 0.05); + --yith-field-border-radius: 6px; + --yith-field-placeholder-color: #8f9eb0; --yith-link: #0079b0; } -/** - * YITH Plugin UI - WP Pages - */ -.yith-plugin-fw-wp-page-wrapper .yith-plugin-fw__back-to-wp-list__wrapper { - margin: -5px 0 15px; -} - -.yith-plugin-fw-wp-page-wrapper .yith-plugin-fw__back-to-wp-list__wrapper .yith-plugin-fw__back-to-wp-list { - text-decoration: none; - font-weight: 600; - text-transform: uppercase; - color: var(--yith-link); - vertical-align: middle; -} - -.yith-plugin-fw-wp-page-wrapper .yith-plugin-fw__back-to-wp-list__wrapper .yith-plugin-fw__back-to-wp-list:before { - content: "\e901"; - font-family: yith-icon; - margin-right: 5px; - font-size: .8em; - vertical-align: middle; -} - -.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated { - display: none; - padding: 15px 40px 15px 45px; - margin: 15px 0 20px; - border-radius: 5px; - background: var(--yith-success-lightest); - border: 1px solid var(--yith-success-light); - font-weight: 600; - font-size: 14px; - text-align: left; - color: var(--yith-content-text); - box-shadow: 1px 1px 2px var(--yith-success-lighter); -} - -.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated:before { - font-family: yith-icon; - content: "\e921"; - position: absolute; - top: 50%; - left: 13px; - font-size: 21px; - font-weight: 400; - transform: translateY(-50%); - color: var(--yith-success); -} - -.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated p { - padding: 0; - margin: 0; -} - -.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss { - position: absolute; - top: 50%; - right: 10px; - transform: translateY(-50%); - border-radius: 50%; - color: var(--yith-success); - padding: 7px; - background: transparent; - box-shadow: 0 0 0 5px rgba(0, 0, 0, 0); - transition: all .3s ease-in-out; -} - -.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:before { - font-family: yith-icon; - content: "\e906"; - font-weight: 600; - font-size: 12px; - color: inherit; -} - -.yith-plugin-fw-wp-page-wrapper .wrap div#message.updated .notice-dismiss:hover { - box-shadow: 0 0 0 0 var(--yith-success-lighter); - background: var(--yith-success-lighter); -} - -.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 { - color: inherit; -} - -/** - * YITH Plugin UI - Taxonomy Style - */ -.yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-container, .yith-plugin-ui--taxonomy-type #col-container { - display: flex; -} - -.yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-left, .yith-plugin-ui--taxonomy-type #col-left { - padding: 20px; - background: #f1f1f1; - border-radius: 8px; - box-sizing: border-box; - margin-right: 15px; -} - -.yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-right, .yith-plugin-ui--taxonomy-type #col-right { - flex: 1; -} - -.yith-plugin-ui.yith-plugin-ui--taxonomy-type h2, .yith-plugin-ui--taxonomy-type h2 { - border: none; - padding: 0; - font-size: 14px; - background: transparent; -} - -.yith-plugin-ui.yith-plugin-ui--taxonomy-type .wrap h1, .yith-plugin-ui--taxonomy-type .wrap h1 { - color: #2a8db0; - font-size: 16px; - font-weight: 600; -} - -@media screen and (max-width: 782px) { - .yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-container { - display: block; - } - .yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-left, .yith-plugin-ui.yith-plugin-ui--taxonomy-type #col-right { - float: none; - width: 100%; - } -} - /** * YITH Plugin UI - Components */ @@ -260,7 +138,11 @@ display: flex; } -.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 { +.yith-plugin-ui .button-primary, +.yith-plugin-ui .button-secondary, +.yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action, .wp-core-ui .yith-plugin-ui .button-primary, +.wp-core-ui .yith-plugin-ui .button-secondary, +.wp-core-ui .yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action { border-radius: 3px; text-transform: none; box-shadow: none; @@ -277,12 +159,20 @@ white-space: nowrap; } -.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 { +.yith-plugin-ui .button-primary:focus, +.yith-plugin-ui .button-secondary:focus, +.yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action:focus, .wp-core-ui .yith-plugin-ui .button-primary:focus, +.wp-core-ui .yith-plugin-ui .button-secondary:focus, +.wp-core-ui .yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action:focus { outline: none; box-shadow: none; } -.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 { +.yith-plugin-ui .button-primary.button-small, +.yith-plugin-ui .button-secondary.button-small, +.yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action.button-small, .wp-core-ui .yith-plugin-ui .button-primary.button-small, +.wp-core-ui .yith-plugin-ui .button-secondary.button-small, +.wp-core-ui .yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action.button-small { padding: 0 8px; } @@ -305,25 +195,37 @@ color: var(--yith-outline-text); } -.yith-plugin-ui .button-primary, .wp-core-ui .yith-plugin-ui .button-primary { +.yith-plugin-ui .button-primary, +.yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action, .wp-core-ui .yith-plugin-ui .button-primary, +.wp-core-ui .yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action { background: var(--yith-primary); color: var(--yith-primary-text); border: 1px solid var(--yith-primary); } -.yith-plugin-ui .button-primary:focus, .wp-core-ui .yith-plugin-ui .button-primary:focus { +.yith-plugin-ui .button-primary:focus, +.yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action:focus, .wp-core-ui .yith-plugin-ui .button-primary:focus, +.wp-core-ui .yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action:focus { background: var(--yith-primary); color: var(--yith-primary-text); border: 1px solid var(--yith-primary); box-shadow: 0 0 0 3px var(--yith-primary-focus); } -.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 { +.yith-plugin-ui .button-primary:hover, .yith-plugin-ui .button-primary:active, +.yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action:hover, +.yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action:active, .wp-core-ui .yith-plugin-ui .button-primary:hover, .wp-core-ui .yith-plugin-ui .button-primary:active, +.wp-core-ui .yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action:hover, +.wp-core-ui .yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action:active { background: var(--yith-primary-hover); color: var(--yith-primary-text); border: 1px solid var(--yith-primary-hover); } +.yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action, .wp-core-ui .yith-plugin-ui.yith-plugin-fw-wp-page-wrapper .page-title-action { + line-height: 2.15em; +} + .yith-plugin-ui .button.action, .yith-plugin-ui #doaction, .yith-plugin-ui #doaction2, @@ -351,8 +253,8 @@ border: 1px solid var(--yith-outline-border); color: var(--yith-outline-text); height: auto; - line-height: 33px; - border-radius: 8px; + line-height: 38px; + border-radius: var(--yith-field-border-radius); padding: 0 15px; font-weight: 600; } @@ -1172,6 +1074,104 @@ } } +.yith-plugin-fw__notice { + --yith-fw-notice-bg: #f2f7ff; + --yith-fw-notice-icon: '\e90e'; + --yith-fw-notice-border-color: #d2dbea; + --yith-fw-notice-color: #4361c4; + position: relative; + padding: 15px 40px 15px 45px; + margin: 15px 0 20px; + border-radius: 6px; + background: var(--yith-fw-notice-bg); + font-weight: 400; + font-size: 14px; + text-align: left; + color: var(--yith-fw-notice-color); + border: 1px solid var(--yith-fw-notice-border-color); +} + +.yith-plugin-fw__notice.yith-plugin-fw__notice--success { + --yith-fw-notice-bg: #f7fbe9; + --yith-fw-notice-icon: '\e921'; + --yith-fw-notice-border-color: #d7e0b0; + --yith-fw-notice-color: #6e861d; +} + +.yith-plugin-fw__notice.yith-plugin-fw__notice--warning { + --yith-fw-notice-bg: #fef5ea; + --yith-fw-notice-icon: '\e923'; + --yith-fw-notice-border-color: #e2cbb0; + --yith-fw-notice-color: #b86e16; +} + +.yith-plugin-fw__notice.yith-plugin-fw__notice--error { + --yith-fw-notice-bg: #fff3f1; + --yith-fw-notice-icon: '\e923'; + --yith-fw-notice-border-color: #dbbcb7; + --yith-fw-notice-color: #a91803; +} + +.yith-plugin-fw__notice a { + color: inherit; + font-weight: 500; +} + +.yith-plugin-fw__notice:before { + font-family: yith-icon; + content: var(--yith-fw-notice-icon); + position: absolute; + top: 50%; + left: 13px; + font-size: 20px; + font-weight: 400; + transform: translateY(-50%); +} + +.yith-plugin-fw__notice .yith-plugin-fw__notice__dismiss { + cursor: pointer; + position: absolute; + width: 32px; + height: 32px; + border-radius: 50%; + right: 15px; + top: 50%; + transform: translateY(-50%); +} + +.yith-plugin-fw__notice .yith-plugin-fw__notice__dismiss:before { + content: ''; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + border-radius: 50%; + opacity: 0; + box-shadow: 0 0 0 5px; + background: currentColor; + transition: all .3s ease-in-out; +} + +.yith-plugin-fw__notice .yith-plugin-fw__notice__dismiss:after { + position: absolute; + top: 50%; + left: 50%; + font-family: 'yith-icon'; + content: '\f117'; + font-size: 12px; + transform: translateY(-50%) translateX(-50%); +} + +.yith-plugin-fw__notice .yith-plugin-fw__notice__dismiss:hover:before { + box-shadow: 0 0 0 0; + opacity: .1; +} + +.yith-plugin-fw__notice .yith-plugin-fw__notice__dismiss:hover:after, .yith-plugin-fw__notice .yith-plugin-fw__notice__dismiss:active:after, .yith-plugin-fw__notice .yith-plugin-fw__notice__dismiss:focus:after { + color: inherit; +} + #tiptip_holder { display: none; pointer-events: none; @@ -1301,6 +1301,29 @@ border-color: var(--yith-light-border-color); } +.yith-plugin-fw__tag { + --yith-fw-tag-border-color: #4f6ede; + --yith-fw-tag-color: #4361c4; + font-size: 10px; + padding: 6px 10px; + border-radius: 6px; + font-weight: 600; + color: var(--yith-fw-tag-color); + border: 1px solid var(--yith-fw-tag-border-color); + line-height: 14px; + display: inline-block; +} + +.yith-plugin-fw__tag.yith-plugin-fw__tag--premium-color { + --yith-fw-tag-border-color: #e76400; + --yith-fw-tag-color: #cd501f; +} + +.yith-plugin-fw__tag a { + color: inherit; + font-weight: 500; +} + /** * YITH Plugin UI - Post Type Style */ @@ -1754,6 +1777,24 @@ table.yith-plugin-fw__boxed-table.wp-list-table tbody tr:hover .yith-plugin-fw__ display: flex; } +.rtl .yith-plugin-ui--classic-wp-list-style .sorting-indicator:before, +.rtl .yith-plugin-ui--boxed-wp-list-style .sorting-indicator:before, +.rtl .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style .sorting-indicator:before, +.rtl .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style .sorting-indicator:before { + left: auto; + right: 0; +} + +.rtl .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.column-actions, .rtl .yith-plugin-ui--classic-wp-list-style table.wp-list-table td.column-actions, +.rtl .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.column-actions, +.rtl .yith-plugin-ui--boxed-wp-list-style table.wp-list-table td.column-actions, +.rtl .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table th.column-actions, +.rtl .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--classic-wp-list-style table.wp-list-table td.column-actions, +.rtl .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table th.column-actions, +.rtl .yith-plugin-ui #plugin-fw-wc .yith-plugin-ui--boxed-wp-list-style table.wp-list-table td.column-actions { + text-align: left; +} + /** * YITH Animations */ @@ -1765,6 +1806,14 @@ table.yith-plugin-fw__boxed-table.wp-list-table tbody tr:hover .yith-plugin-fw__ animation: yith-plugin-fw-appear-from-top .3s forwards; } +.yith-plugin-fw-animate__appear-from-left-full { + animation: yith-plugin-fw-appear-from-left-full .3s forwards; +} + +.yith-plugin-fw-animate__appear-from-right-full { + animation: yith-plugin-fw-appear-from-right-full .3s forwards; +} + .yith-plugin-fw-animate__fade-in { animation: yith-plugin-fw-fade-in .3s forwards; } @@ -1821,6 +1870,58 @@ table.yith-plugin-fw__boxed-table.wp-list-table tbody tr:hover .yith-plugin-fw__ } } +@-webkit-keyframes yith-plugin-fw-appear-from-left-full { + from { + opacity: 0; + transform: translateX(-100%); + -webkit-transform: translateX(-100%); + } + to { + opacity: 1; + transform: translateX(0); + -webkit-transform: translateX(0); + } +} + +@keyframes yith-plugin-fw-appear-from-left-full { + from { + opacity: 0; + transform: translateX(-100%); + -webkit-transform: translateX(-100%); + } + to { + opacity: 1; + transform: translateX(0); + -webkit-transform: translateX(0); + } +} + +@-webkit-keyframes yith-plugin-fw-appear-from-right-full { + from { + opacity: 0; + transform: translateX(100%); + -webkit-transform: translateX(100%); + } + to { + opacity: 1; + transform: translateX(0); + -webkit-transform: translateX(0); + } +} + +@keyframes yith-plugin-fw-appear-from-right-full { + from { + opacity: 0; + transform: translateX(100%); + -webkit-transform: translateX(100%); + } + to { + opacity: 1; + transform: translateX(0); + -webkit-transform: translateX(0); + } +} + @-webkit-keyframes yith-plugin-fw-fade-in { from { opacity: 0; @@ -1838,3 +1939,21 @@ table.yith-plugin-fw__boxed-table.wp-list-table tbody tr:hover .yith-plugin-fw__ opacity: 1; } } + +@-webkit-keyframes yith-plugin-fw-jiggle { + 25% { + transform: rotate(-20deg); + } + 75% { + transform: rotate(20deg); + } +} + +@keyframes yith-plugin-fw-jiggle { + 25% { + transform: rotate(-20deg); + } + 75% { + transform: rotate(20deg); + } +} diff --git a/plugin-fw/assets/images/select-indicator.svg b/plugin-fw/assets/images/select-indicator.svg new file mode 100644 index 0000000..a708270 --- /dev/null +++ b/plugin-fw/assets/images/select-indicator.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/plugin-fw/assets/images/yith-logo.svg b/plugin-fw/assets/images/yith-logo.svg new file mode 100644 index 0000000..3970aac --- /dev/null +++ b/plugin-fw/assets/images/yith-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/plugin-fw/assets/js/wp-pages.js b/plugin-fw/assets/js/wp-pages.js index 8c4d3bc..7a13bf1 100644 --- a/plugin-fw/assets/js/wp-pages.js +++ b/plugin-fw/assets/js/wp-pages.js @@ -1,26 +1,35 @@ -/* global yith_plugin_fw_wp_pages */ +/* global yith_plugin_fw_wp_pages, yith */ jQuery( function ( $ ) { - var wrap = $( '.yith-plugin-fw-wp-page-wrapper' ), - notices = $( 'div.updated, div.error, div.notice' ).not( '#message' ), - message = $( 'div#message.updated' ); - // prevents the WC message for changes when leaving the panel page $( '.yith-plugin-fw-wp-page-wrapper .woo-nav-tab-wrapper' ).removeClass( 'woo-nav-tab-wrapper' ).addClass( 'yith-nav-tab-wrapper' ); - // prevent moving notices withing the tab in WP Pages and move them into the wrapper - notices.addClass( 'inline' ); - if ( wrap.length ) { - wrap.prepend( notices ); - } + var isTaxEdit = 'term-php' === window.adminpage; // Update message animation. - if ( message.length ) { - message.addClass( 'yith-plugin-fw-animate__appear-from-top' ).show(); - message.on( 'click', '.notice-dismiss', function ( e ) { - e.stopPropagation(); - message.removeClass( 'yith-plugin-fw-animate__appear-from-top' ).slideUp( 200 ); - } ) - } + ( function () { + var message; + if ( isTaxEdit ) { + message = $( 'div#message' ); + var ajaxResponseElement = $( '#ajax-response' ); + if ( message.length ) { + if ( ajaxResponseElement.length ) { + message.insertAfter( ajaxResponseElement ); + message.addClass( 'inline' ); + message.addClass( 'yith-plugin-fw-animate__appear-from-top' ).show(); + } + } + } else { + message = $( 'div#message.updated' ); + if ( message.length ) { + message.addClass( 'inline' ); + message.addClass( 'yith-plugin-fw-animate__appear-from-top' ).show(); + message.on( 'click', '.notice-dismiss', function ( e ) { + e.stopPropagation(); + message.removeClass( 'yith-plugin-fw-animate__appear-from-top' ).slideUp( 200 ); + } ); + } + } + } )(); // Confirmation window when deleting custom post types and custom terms through Bulk Actions. if ( yith_plugin_fw_wp_pages.bulk_delete_confirmation_enabled ) { @@ -73,4 +82,13 @@ jQuery( function ( $ ) { } ); } + // Fix the WP footer + ( function () { + var wrongWpFooter = $( '#wpbody #wpfooter' ), + wpContent = $( '#wpcontent' ); + + if ( wrongWpFooter.length && wpContent.length ) { + wpContent.append( wrongWpFooter ); + } + } )(); } ); \ No newline at end of file diff --git a/plugin-fw/assets/js/wp-pages.min.js b/plugin-fw/assets/js/wp-pages.min.js index 6429dee..8e21d06 100644 --- a/plugin-fw/assets/js/wp-pages.min.js +++ b/plugin-fw/assets/js/wp-pages.min.js @@ -1 +1 @@ -jQuery(function(e){var t=e(".yith-plugin-fw-wp-page-wrapper"),i=e("div.updated, div.error, div.notice").not("#message"),n=e("div#message.updated");if(e(".yith-plugin-fw-wp-page-wrapper .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper"),i.addClass("inline"),t.length&&t.prepend(i),n.length&&(n.addClass("yith-plugin-fw-animate__appear-from-top").show(),n.on("click",".notice-dismiss",function(e){e.stopPropagation(),n.removeClass("yith-plugin-fw-animate__appear-from-top").slideUp(200)})),yith_plugin_fw_wp_pages.bulk_delete_confirmation_enabled){var a=!1;e(document).on("click","#doaction, #doaction2",function(t){var i=e(this),n=i.siblings("#bulk-action-selector-top, #bulk-action-selector-bottom");if("yith"in window&&"ui"in yith)if(a)a=!1;else{var _={};if(e("#the-list .check-column input[type=checkbox]:checked").length){switch(n.val()){case"trash":_.title=yith_plugin_fw_wp_pages.i18n.bulk_trash_confirm_title,_.message=yith_plugin_fw_wp_pages.i18n.bulk_trash_confirm_message,_.cancelButton=yith_plugin_fw_wp_pages.i18n.bulk_trash_cancel_button,_.confirmButton=yith_plugin_fw_wp_pages.i18n.bulk_trash_confirm_button,_.confirmButtonType="delete";break;case"delete":_.title=yith_plugin_fw_wp_pages.i18n.bulk_delete_confirm_title,_.message=yith_plugin_fw_wp_pages.i18n.bulk_delete_confirm_message,_.cancelButton=yith_plugin_fw_wp_pages.i18n.bulk_delete_cancel_button,_.confirmButton=yith_plugin_fw_wp_pages.i18n.bulk_delete_confirm_button,_.confirmButtonType="delete"}e.isEmptyObject(_)||(t.preventDefault(),_.closeAfterConfirm=!1,_.onConfirm=function(){a=!0,i.trigger("click")},yith.ui.confirm(_))}}})}}); \ No newline at end of file +jQuery(function(e){e(".yith-plugin-fw-wp-page-wrapper .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper");var t,i,n="term-php"===window.adminpage;if(function(){var t;if(n){t=e("div#message");var i=e("#ajax-response");t.length&&i.length&&(t.insertAfter(i),t.addClass("inline"),t.addClass("yith-plugin-fw-animate__appear-from-top").show())}else(t=e("div#message.updated")).length&&(t.addClass("inline"),t.addClass("yith-plugin-fw-animate__appear-from-top").show(),t.on("click",".notice-dismiss",function(e){e.stopPropagation(),t.removeClass("yith-plugin-fw-animate__appear-from-top").slideUp(200)}))}(),yith_plugin_fw_wp_pages.bulk_delete_confirmation_enabled){var a=!1;e(document).on("click","#doaction, #doaction2",function(t){var i=e(this),n=i.siblings("#bulk-action-selector-top, #bulk-action-selector-bottom");if("yith"in window&&"ui"in yith)if(a)a=!1;else{var o={};if(e("#the-list .check-column input[type=checkbox]:checked").length){switch(n.val()){case"trash":o.title=yith_plugin_fw_wp_pages.i18n.bulk_trash_confirm_title,o.message=yith_plugin_fw_wp_pages.i18n.bulk_trash_confirm_message,o.cancelButton=yith_plugin_fw_wp_pages.i18n.bulk_trash_cancel_button,o.confirmButton=yith_plugin_fw_wp_pages.i18n.bulk_trash_confirm_button,o.confirmButtonType="delete";break;case"delete":o.title=yith_plugin_fw_wp_pages.i18n.bulk_delete_confirm_title,o.message=yith_plugin_fw_wp_pages.i18n.bulk_delete_confirm_message,o.cancelButton=yith_plugin_fw_wp_pages.i18n.bulk_delete_cancel_button,o.confirmButton=yith_plugin_fw_wp_pages.i18n.bulk_delete_confirm_button,o.confirmButtonType="delete"}e.isEmptyObject(o)||(t.preventDefault(),o.closeAfterConfirm=!1,o.onConfirm=function(){a=!0,i.trigger("click")},yith.ui.confirm(o))}}})}t=e("#wpbody #wpfooter"),i=e("#wpcontent"),t.length&&i.length&&i.append(t)}); \ No newline at end of file diff --git a/plugin-fw/assets/js/yit-plugin-panel.js b/plugin-fw/assets/js/yit-plugin-panel.js index d8a8bd5..c5907fd 100644 --- a/plugin-fw/assets/js/yit-plugin-panel.js +++ b/plugin-fw/assets/js/yit-plugin-panel.js @@ -1,12 +1,4 @@ -/** - * This file belongs to the YIT Plugin Framework. - * - * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) - * that is bundled with this package in the file LICENSE.txt. - * It is also available through the world-wide-web at this URL: - * http://www.gnu.org/licenses/gpl-3.0.txt - */ - +/* global setUserSetting, yith, yithFwPluginPanel */ jQuery( function ( $ ) { // Handle dependencies. function dependencies_handler( id, deps, values, type ) { @@ -46,7 +38,7 @@ jQuery( function ( $ ) { if ( $current_container.length < 1 ) { // container for YIT Plugin Panel WooCommerce - $current_container = $current_field.closest( '.yith-plugin-fw-panel-wc-row, .yith-toggle-content-row' ); + $current_container = $current_field.closest( '.yith-plugin-fw__panel__option, .yith-plugin-fw-panel-wc-row, .yith-toggle-content-row' ); } var types = type.split( '-' ), j; @@ -175,15 +167,19 @@ jQuery( function ( $ ) { // Prevent the WC message for changes when leaving the panel page $( '.yith-plugin-fw-panel .woo-nav-tab-wrapper' ).removeClass( 'woo-nav-tab-wrapper' ).addClass( 'yith-nav-tab-wrapper' ); - var wrap = $( '.wrap.yith-plugin-ui' ).first(), - notices = $( 'div.updated, div.error, div.notice' ); - - // Prevent moving notices into the wrapper - notices.addClass( 'inline' ); - if ( wrap.length ) { - wrap.prepend( notices ); - } - + ( function () { + var noticesWrapper = $( '#yith-plugin-fw__panel__notices' ), + wrap = $( '.wrap.yith-plugin-ui, .yith-plugin-fw-wp-page-wrapper' ).first(), // TODO: remove when all plugins will use the ui-version 2, since notices will be shown in the noticesWrapper. + notices = $( 'div.updated, div.error, div.notice, .yith-plugin-fw__notice' ).not( '.inline, .yith-plugin-fw--inline' ); + + // Prevent moving notices into the wrapper + notices.addClass( 'inline' ); + if ( noticesWrapper.length ) { + noticesWrapper.append( notices ); + } else if ( wrap.length ) { + wrap.prepend( notices ); + } + } )(); // Additional wrapping just in case 'wrap' div is placed within a sub-tab and it's not already wrapped twice. // TODO: Deprecated usage, it'll be removed, since also custom panels should use the automatic-wrapping through 'show_container' param. @@ -213,6 +209,7 @@ jQuery( function ( $ ) { ( function () { var floatSaveButton = $( '#yith-plugin-fw-float-save-button' ), mainForm = $( '#plugin-fw-wc' ), + mainFormElement = mainForm.length ? mainForm.get( 0 ) : false, saveButton = document.querySelector( '#main-save-button' ); function updateValuesForSpecialEditors() { @@ -261,6 +258,11 @@ jQuery( function ( $ ) { updateValuesForSpecialEditors(); + if ( !!mainFormElement && !mainFormElement.checkValidity() ) { + mainFormElement.reportValidity(); + return; + } + floatSaveButton.block( { message : null, @@ -295,8 +297,137 @@ jQuery( function ( $ ) { $( document ).trigger( 'yith-plugin-fw-float-save-button-after-saving', [response] ); } ); - } ) + } ); } } )(); + // Save - Reset. + ( function () { + $( document ).on( 'click', '#yith-plugin-fw__panel__content__save', function () { + // Prevent WooCommerce warning for changes without saving. + window.onbeforeunload = null; + var theForm = $( 'form#yith-plugin-fw-panel, form#plugin-fw-wc' ); + if ( theForm.length ) { + var formElement = theForm.get( 0 ); + if ( formElement.checkValidity() ) { + theForm.submit(); + } else { + formElement.reportValidity(); + } + } + } ); + + $( document ).on( 'click', '#yith-plugin-fw__panel__content__reset', function () { + // Prevent WooCommerce warning for changes without saving. + window.onbeforeunload = null; + $( 'form#yith-plugin-fw-panel-reset, form#plugin-fw-wc-reset' ).submit(); + } ); + + $( document ).on( 'submit', 'form#yith-plugin-fw-panel-reset, form#plugin-fw-wc-reset', function ( e ) { + var form = $( this ), + confirmed = form.data( 'confirmed' ); + + if ( confirmed === 'yes' ) { + return; + } + + e.preventDefault(); + + var modalOptions = { + title : yithFwPluginPanel.i18n.resetConfirmTitle, + message : yithFwPluginPanel.i18n.resetConfirmMessage, + closeAfterConfirm: false, + onConfirm : function () { + form.data( 'confirmed', 'yes' ); + form.submit(); + } + }; + + yith.ui.confirm( modalOptions ); + + } ); + } )(); + + // Panel menu. + ( function () { + function getSidebar() { + if ( !this.__sidebar || !( 'node' in this.__sidebar ) || !( 'hasClass' in this.__sidebar.node ) || !this.__sidebar.node.hasClass( 'yith-plugin-fw__panel__sidebar--initialized' ) ) { + var sidebar = {}; + + sidebar.node = $( '.yith-plugin-fw__panel__sidebar' ); + sidebar.node.addClass( 'yith-plugin-fw__panel__sidebar--initialized' ); + + sidebar.isCollapsed = function () { + return sidebar.node.hasClass( 'yith-plugin-fw__panel__sidebar--collapsed' ); + }; + + sidebar.isFixed = function () { + return 'fixed' !== sidebar.node.css( 'position' ); + }; + + sidebar.setCollapsed = function ( collapsed ) { + if ( collapsed ) { + sidebar.node.addClass( 'yith-plugin-fw__panel__sidebar--collapsed' ); + setUserSetting( 'yithFwSidebarFold', 'f' ); + } else { + sidebar.node.removeClass( 'yith-plugin-fw__panel__sidebar--collapsed' ); + setUserSetting( 'yithFwSidebarFold', 'o' ); + } + }; + + sidebar.setOpen = function ( open ) { + var animationClass = !document.body.classList.contains( 'rtl' ) ? 'yith-plugin-fw-animate__appear-from-left-full' : 'yith-plugin-fw-animate__appear-from-right-full'; + if ( open ) { + sidebar.node.addClass( ['yith-plugin-fw--open', animationClass] ); + } else { + sidebar.node.removeClass( ['yith-plugin-fw--open', animationClass] ); + } + }; + + this.__sidebar = sidebar; + } + + return this.__sidebar; + } + + $( document ).on( 'click', '.yith-plugin-fw__panel__mobile__header__toggle', function () { + var sidebar = getSidebar(); + sidebar.setOpen( true ); + $( document.body ).append( $( '
' ) ); + } ); + + $( document ).on( 'click', '#yith-plugin-fw__panel__sidebar__mobile-backdrop', function () { + var sidebar = getSidebar(); + sidebar.setOpen( false ); + $( this ).remove(); + } ); + + $( document ).on( 'click', '.yith-plugin-fw__panel__sidebar__collapse', function () { + var sidebar = getSidebar(); + sidebar.setCollapsed( !sidebar.isCollapsed() ); + } ); + + $( document ).on( 'click', '.yith-plugin-fw__panel__menu-item.yith-plugin-fw--has-submenu a.yith-plugin-fw__panel__menu-item__content', function ( event ) { + event.preventDefault(); + var sidebar = getSidebar(); + + if ( sidebar.isCollapsed() && sidebar.isFixed() ) { + return; + } + + var toggle = $( event.target ), + item = toggle.closest( '.yith-plugin-fw__panel__menu-item' ), + submenu = item.find( '.yith-plugin-fw__panel__submenu' ); + + if ( item.is( '.yith-plugin-fw--open' ) ) { + submenu.slideUp( 200 ); + } else { + submenu.slideDown( 200 ); + } + + item.toggleClass( 'yith-plugin-fw--open' ); + + } ); + + } )(); } ); diff --git a/plugin-fw/assets/js/yit-plugin-panel.min.js b/plugin-fw/assets/js/yit-plugin-panel.min.js index 6d84986..d762028 100644 --- a/plugin-fw/assets/js/yit-plugin-panel.min.js +++ b/plugin-fw/assets/js/yit-plugin-panel.min.js @@ -1 +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"),r=t.data("dep-type");e(i).on("change",function(){!function(t,a,i,n){var r=!0;if("string"==typeof a){":radio"===a.substr(0,6)&&(a+=":checked");var d=e(a),o=d.attr("type"),s=d.val();switch(o){case"checkbox":s=d.is(":checked")?"yes":"no";break;case"radio":s=d.find('input[type="radio"]').filter(":checked").val()}i=i.split(",");for(var c=0;c .yith-plugin-ui")),i){var n=i.find(".yit-admin-panel-content-wrap");n.length?n.addClass("has-subnav"):i.find(".wrap").wrap('
')}}}(),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.removeClass("visible"):t.addClass("visible")}t.length>0&&a.length>0&&(n(),document.addEventListener("scroll",n,{passive:!0}),e(document).on("click","#yith-plugin-fw-float-save-button",function(i){i.preventDefault(),"tinyMCE"in window&&"triggerSave"in window.tinyMCE&&window.tinyMCE.triggerSave(),e(".codemirror.codemirror--initialized").each(function(){var t=e(this).data("codemirrorInstance")||!1;t&&"codemirror"in t&&t.codemirror.save()}),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(t.data("saved-label")).fadeIn(300).delay(2500).queue(function(a){t.fadeOut(500,function(){e(this).removeClass("green"),e(this).html(e(this).data("default-label")).fadeIn(500)}),a()}),window.onbeforeunload=null,e(document).trigger("yith-plugin-fw-float-save-button-after-saving",[a])})}))}()}); \ No newline at end of file +jQuery(function(e){function i(){e("[data-dep-target]:not( .deps-initialized )").each(function(){var i=e(this);if(!i.closest(".metaboxes-tab").length){i.addClass("deps-initialized");var n="#"+i.data("dep-target"),t="#"+i.data("dep-id"),a=i.data("dep-value"),l=i.data("dep-type");e(t).on("change",function(){!function(i,n,t,a){var l=!0;if("string"==typeof n){":radio"===n.substr(0,6)&&(n+=":checked");var o=e(n),s=o.attr("type"),d=o.val();switch(s){case"checkbox":d=o.is(":checked")?"yes":"no";break;case"radio":d=o.find('input[type="radio"]').filter(":checked").val()}t=t.split(",");for(var r=0;r .yith-plugin-ui")),t){var a=t.find(".yit-admin-panel-content-wrap");a.length?a.addClass("has-subnav"):t.find(".wrap").wrap('
')}}}(),function(){var i=e("#yith-plugin-fw-float-save-button"),n=e("#plugin-fw-wc"),t=!!n.length&&n.get(0),a=document.querySelector("#main-save-button");function l(){var e,n;e=a.getBoundingClientRect(),n={width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight},e.top>=0&&e.left>=0&&e.top<=n.height&&e.left<=n.width?i.removeClass("visible"):i.addClass("visible")}i.length>0&&n.length>0&&(l(),document.addEventListener("scroll",l,{passive:!0}),e(document).on("click","#yith-plugin-fw-float-save-button",function(a){a.preventDefault(),"tinyMCE"in window&&"triggerSave"in window.tinyMCE&&window.tinyMCE.triggerSave(),e(".codemirror.codemirror--initialized").each(function(){var i=e(this).data("codemirrorInstance")||!1;i&&"codemirror"in i&&i.codemirror.save()}),!t||t.checkValidity()?(i.block({message:null,overlayCSS:{background:"transparent",opacity:.6}}),e.post(document.location.href,n.serialize()).done(function(n){i.unblock().addClass("green").fadeOut(300).html(i.data("saved-label")).fadeIn(300).delay(2500).queue(function(n){i.fadeOut(500,function(){e(this).removeClass("green"),e(this).html(e(this).data("default-label")).fadeIn(500)}),n()}),window.onbeforeunload=null,e(document).trigger("yith-plugin-fw-float-save-button-after-saving",[n])})):t.reportValidity()}))}(),e(document).on("click","#yith-plugin-fw__panel__content__save",function(){window.onbeforeunload=null;var i=e("form#yith-plugin-fw-panel, form#plugin-fw-wc");if(i.length){var n=i.get(0);n.checkValidity()?i.submit():n.reportValidity()}}),e(document).on("click","#yith-plugin-fw__panel__content__reset",function(){window.onbeforeunload=null,e("form#yith-plugin-fw-panel-reset, form#plugin-fw-wc-reset").submit()}),e(document).on("submit","form#yith-plugin-fw-panel-reset, form#plugin-fw-wc-reset",function(i){var n=e(this);if("yes"!==n.data("confirmed")){i.preventDefault();var t={title:yithFwPluginPanel.i18n.resetConfirmTitle,message:yithFwPluginPanel.i18n.resetConfirmMessage,closeAfterConfirm:!1,onConfirm:function(){n.data("confirmed","yes"),n.submit()}};yith.ui.confirm(t)}}),function(){function i(){if(!(this.__sidebar&&"node"in this.__sidebar&&"hasClass"in this.__sidebar.node&&this.__sidebar.node.hasClass("yith-plugin-fw__panel__sidebar--initialized"))){var i={};i.node=e(".yith-plugin-fw__panel__sidebar"),i.node.addClass("yith-plugin-fw__panel__sidebar--initialized"),i.isCollapsed=function(){return i.node.hasClass("yith-plugin-fw__panel__sidebar--collapsed")},i.isFixed=function(){return"fixed"!==i.node.css("position")},i.setCollapsed=function(e){e?(i.node.addClass("yith-plugin-fw__panel__sidebar--collapsed"),setUserSetting("yithFwSidebarFold","f")):(i.node.removeClass("yith-plugin-fw__panel__sidebar--collapsed"),setUserSetting("yithFwSidebarFold","o"))},i.setOpen=function(e){var n=document.body.classList.contains("rtl")?"yith-plugin-fw-animate__appear-from-right-full":"yith-plugin-fw-animate__appear-from-left-full";e?i.node.addClass(["yith-plugin-fw--open",n]):i.node.removeClass(["yith-plugin-fw--open",n])},this.__sidebar=i}return this.__sidebar}e(document).on("click",".yith-plugin-fw__panel__mobile__header__toggle",function(){i().setOpen(!0),e(document.body).append(e('
'))}),e(document).on("click","#yith-plugin-fw__panel__sidebar__mobile-backdrop",function(){i().setOpen(!1),e(this).remove()}),e(document).on("click",".yith-plugin-fw__panel__sidebar__collapse",function(){var e=i();e.setCollapsed(!e.isCollapsed())}),e(document).on("click",".yith-plugin-fw__panel__menu-item.yith-plugin-fw--has-submenu a.yith-plugin-fw__panel__menu-item__content",function(n){n.preventDefault();var t=i();if(!t.isCollapsed()||!t.isFixed()){var a=e(n.target).closest(".yith-plugin-fw__panel__menu-item"),l=a.find(".yith-plugin-fw__panel__submenu");a.is(".yith-plugin-fw--open")?l.slideUp(200):l.slideDown(200),a.toggleClass("yith-plugin-fw--open")}})}()}); \ No newline at end of file diff --git a/plugin-fw/assets/js/yith-fields.js b/plugin-fw/assets/js/yith-fields.js index 380a0a4..edb0903 100644 --- a/plugin-fw/assets/js/yith-fields.js +++ b/plugin-fw/assets/js/yith-fields.js @@ -1,4 +1,4 @@ -/* globals yith_framework_fw_fields, wp */ +/* globals yith_framework_fw_fields, wp, yith */ ( function ( $ ) { /* Upload */ @@ -601,11 +601,12 @@ }; $( document ).on( 'click', '.yith-toggle-title', function ( event ) { - var _toggle = $( event.target ), - _section = _toggle.closest( '.yith-toggle-row' ), - _content = _section.find( '.yith-toggle-content' ); + var _toggle = $( event.target ), + _section = _toggle.closest( '.yith-toggle-row' ), + _content = _section.find( '.yith-toggle-content' ), + _isOnOffClick = !!_toggle.closest( '.yith-toggle-onoff' ).length; - if ( _toggle.hasClass( 'yith-plugin-fw-onoff' ) || _toggle.hasClass( 'yith-icon-drag' ) ) { + if ( _isOnOffClick || _toggle.hasClass( 'yith-icon-drag' ) ) { return false; } @@ -800,10 +801,11 @@ if ( !e.target.multiple ) { setTimeout( function () { - document.querySelector( '.yith-plugin-fw-select2-container .select2-search__field' ).focus(); + var select2SearchField = document.querySelector( '.yith-plugin-fw-select2-container .select2-search__field' ); + select2SearchField && select2SearchField.focus(); }, 50 - ) + ); } } ); @@ -1043,4 +1045,320 @@ } ); } ).trigger( 'yith-plugin-fw-tabs-init' ); + /** + * Dismissible Notices + */ + $( document ).on( 'click', '.yith-plugin-fw__notice__dismiss', function () { + $( this ).closest( '.yith-plugin-fw__notice' ).fadeOut( 300 ); + } ); + + /** + * Media field + */ + ( function () { + var mediaUploader, + isDragging = false; + + /** + * Get the wrapper of the media field. + * @param element JQuery element or dom element. + * @returns {*} + */ + function getWrapper( element ) { + return $( element ).closest( '.yith-plugin-fw-media' ); + } + + /** + * Trigger the Media file change. + * @param wrapper + * @param media + */ + function triggerMediaChange( wrapper, media ) { + var preview = wrapper.find( '.yith-plugin-fw-media__preview' ), + previewImage = preview.find( '.yith-plugin-fw-media__preview__image' ), + previewFileName = preview.find( '.yith-plugin-fw-media__preview__file__name' ), + urlField = wrapper.find( '.yith-plugin-fw-media__url-value' ), + idField = wrapper.find( '.yith-plugin-fw-media__id-value' ); + + if ( !media ) { + urlField.length && urlField.val( '' ); + idField.length && idField.val( '' ); + previewImage.attr( 'src', '' ); + preview.attr( 'data-type', 'upload' ); + } else { + if ( typeof media.url !== 'undefined' && urlField.length ) { + urlField.val( media.url ); + } + + if ( typeof media.id !== 'undefined' && idField.length ) { + idField.val( media.id ); + } + + if ( typeof media.url !== 'undefined' ) { + var isImage = new RegExp( '(jpg|jpeg|png|gif|ico|svg|jpe|webp)$' ).test( media.url ), + mediaType = isImage ? 'image' : 'file'; + + preview.attr( 'data-type', mediaType ); + if ( 'image' === mediaType ) { + previewImage.attr( 'src', media.url ); + } else { + var filename = media.url.substring( media.url.lastIndexOf( '/' ) + 1 ); + previewFileName.html( filename ); + } + } + } + } + + /** + * Handle click on tab handler to switch between tabs. + * @param event + */ + function onTabHandlerClick( event ) { + var handler = $( event.target ).closest( '.yith-plugin-fw-media__tab' ), + wrapper = getWrapper( handler ), + tabs = wrapper.find( '.yith-plugin-fw-media__tab' ), + contentElements = wrapper.find( '.yith-plugin-fw-media__content > *' ), + tabSelector = handler.data( 'tab-selector' ), + activeElement = wrapper.find( tabSelector ); + + tabs.removeClass( 'yith-plugin-fw-media__tab--active' ); + handler.addClass( 'yith-plugin-fw-media__tab--active' ); + + contentElements.hide(); + activeElement.show(); + } + + /** + * Handler fired when clicking on the delete media icon. + * @param event + */ + function onDeleteMedia( event ) { + var wrapper = getWrapper( event.target ); + triggerMediaChange( wrapper, false ); + } + + /** + * Handler fired when manually changing the file URL in the URL field. + * @param event + */ + function onImageChange( event ) { + var field = $( event.target ), + wrapper = getWrapper( field ); + triggerMediaChange( wrapper, { url: field.val(), id: '' } ); + } + + function onDragEnter( event ) { + event.preventDefault(); + + if ( !event.dataTransfer ) { + event.dataTransfer = event.originalEvent.dataTransfer; + } + + event.dataTransfer.dropEffect = "copy"; + $( this ).closest( '.yith-plugin-fw-media__preview' ).addClass( 'yith-plugin-fw--is-dragging' ); + } + + function onDragOver( event ) { + event.preventDefault(); + } + + function onDragLeave() { + $( this ).closest( '.yith-plugin-fw-media__preview' ).removeClass( 'yith-plugin-fw--is-dragging' ); + } + + /** + * Add error notice. + * @param wrapper + * @param message + */ + function addErrorNotice( wrapper, message ) { + var errorNotice = $( '
' ); + errorNotice.addClass( ['yith-plugin-fw__notice', 'yith-plugin-fw__notice--error', 'yith-plugin-fw-animate__appear-from-top', 'yith-plugin-fw--inline'] ); + errorNotice.html( message ); + errorNotice.append( $( '' ) ); + + wrapper.append( errorNotice ); + } + + function onDrop( event ) { + event.preventDefault(); + + var preview = $( this ).closest( '.yith-plugin-fw-media__preview' ); + + preview.removeClass( 'yith-plugin-fw--is-dragging' ); + preview.addClass( 'yith-plugin-fw--is-loading' ); + + if ( !event.dataTransfer ) { + event.dataTransfer = event.originalEvent.dataTransfer; + } + + var files = event.dataTransfer.files, + wrapper = getWrapper( event.target ), + errorNotices = wrapper.find( '.yith-plugin-fw__notice' ), + onFinish = function () { + preview.removeClass( 'yith-plugin-fw--is-loading' ); + }; + + errorNotices.remove(); + + if ( files.length > 1 ) { + files = files[ 0 ]; + } + + if ( !files.length ) { + addErrorNotice( wrapper, yith_framework_fw_fields.i18n.noFileError ); + onFinish(); + } else if ( 'mediaUtils' in wp && 'uploadMedia' in wp.mediaUtils ) { + wp.mediaUtils.uploadMedia( + { + filesList : files, + onFileChange: function ( data ) { + // Check for the ID, since uploadMedia triggers onFileChange at the start with a temporary blob URL to allow previewing it before uploading. + if ( data && data.length && data[ 0 ] && 'id' in data[ 0 ] ) { + triggerMediaChange( wrapper, data[ 0 ] ); + onFinish(); + + // To allow re-loading media files on the next opening of the mediaUploader. + mediaUploader = null; + } + }, + onError : function ( data ) { + console.error( data ); + onFinish(); + addErrorNotice( wrapper, data.message ); + } + } + ); + } else { + addErrorNotice( wrapper, yith_framework_fw_fields.i18n.cannotDropError ); + onFinish(); + } + + maybeDragEnd(); + } + + function onUploadClick( e ) { + e.preventDefault(); + + var button = $( this ), + wrapper = getWrapper( button ); + + // If the uploader object has already been created, reopen the dialog + if ( mediaUploader ) { + mediaUploader.open(); + return; + } + + var mediaUploaderStates = [ + new wp.media.controller.Library( + { + library : wp.media.query(), + multiple : false, + priority : 20, + filterable: 'uploaded' + } + ) + ]; + + mediaUploader = wp.media.frames.downloadable_file = wp.media( + { + library : { type: '' }, + multiple: false, + states : mediaUploaderStates + } + ); + + // When a file is selected, grab the URL and set it as the text field's value + mediaUploader.on( 'select', function () { + var attachment = mediaUploader.state().get( 'selection' ).first().toJSON(); + + triggerMediaChange( wrapper, attachment ); + } ); + + mediaUploader.open(); + } + + $( document ) + .on( 'change', '.yith-plugin-fw-media__url-value', onImageChange ) + .on( 'click', '.yith-plugin-fw-media__preview__upload__link, .yith-plugin-fw-media__preview__action--edit', onUploadClick ) + .on( 'click', '.yith-plugin-fw-media__preview__action--delete', onDeleteMedia ) + .on( 'click', '.yith-plugin-fw-media__tab', onTabHandlerClick ) + .on( 'dragenter', '.yith-plugin-fw-media__preview__dropzone', onDragEnter ) + .on( 'dragover', '.yith-plugin-fw-media__preview__dropzone', onDragOver ) + .on( 'dragleave', '.yith-plugin-fw-media__preview__dropzone', onDragLeave ) + .on( 'drop', '.yith-plugin-fw-media__preview__dropzone', onDrop ); + + function maybeDragStart() { + if ( isDragging ) { + return; + } + + isDragging = true; + + document.addEventListener( 'dragend', maybeDragEnd ); + document.addEventListener( 'mousemove', maybeDragEnd ); + + document.body.classList.add( 'yith-plugin-fw--dropzone-active' ); + } + + function maybeDragEnd() { + if ( !isDragging ) { + return; + } + + isDragging = false; + + document.removeEventListener( 'dragend', maybeDragEnd ); + document.removeEventListener( 'mousemove', maybeDragEnd ); + + document.body.classList.remove( 'yith-plugin-fw--dropzone-active' ); + } + + document.addEventListener( 'dragenter', maybeDragStart ); + + } )(); + + /** + * File field. + */ + ( function () { + /** + * Get the wrapper of the file field. + * @param element JQuery element or dom element. + * @returns {*} + */ + function getWrapper( element ) { + return $( element ).closest( '.yith-plugin-fw-file' ); + } + + function onDragOver() { + getWrapper( this ).addClass( 'yith-plugin-fw--is-dragging' ); + } + + function onDragLeave() { + getWrapper( this ).addClass( 'yith-plugin-fw--is-dragging' ); + } + + function onChange() { + var wrapper = getWrapper( this ), + name = wrapper.find( '.yith-plugin-fw-file__preview__name' ), + file = this.files.length ? this.files[ 0 ] : false; + + wrapper.removeClass( 'yith-plugin-fw--is-dragging' ); + if ( file ) { + name.html( file.name ); + wrapper.addClass( 'yith-plugin-fw--filled' ); + } else { + wrapper.removeClass( 'yith-plugin-fw--filled' ); + } + } + + $( document ) + .on( 'dragover', '.yith-plugin-fw-file', onDragOver ) + .on( 'dragleave', '.yith-plugin-fw-file', onDragLeave ) + .on( 'change', '.yith-plugin-fw-file__field', onChange ); + + + } )(); + } )( jQuery ); diff --git a/plugin-fw/assets/js/yith-fields.min.js b/plugin-fw/assets/js/yith-fields.min.js index 5908684..71c9a05 100644 --- a/plugin-fw/assets/js/yith-fields.min.js +++ b/plugin-fw/assets/js/yith-fields.min.js @@ -1 +1 @@ -!function(t){var e={selectors:{imgPreview:".yith-plugin-fw-upload-img-preview",uploadButton:".yith-plugin-fw-upload-button",imgUrl:".yith-plugin-fw-upload-img-url",resetButton:".yith-plugin-fw-upload-button-reset"},onImageChange:function(){var i=t(this).val(),n=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),a=t(this).parent().find(e.selectors.imgPreview).first();a.length<1&&(a=t(this).parent().parent().find(e.selectors.imgPreview).first()),n.test(i)?a.html(''):a.html("")},onButtonClick:function(i){i.preventDefault();var n,a=t(this).attr("id").replace(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(n)n.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(n=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var i=n.state().get("selection").first().toJSON(),l=t("#"+a+"-yith-attachment-id");t("#"+a).val(i.url),l.length&&l.val(i.id),e.triggerImageChange()}),n.open()}},onResetClick:function(){var i=t(this),n=i.attr("id").replace(/(\[|\])/g,"\\$1"),a=i.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),l=t("#"+n).data("default");t("#"+a).val(l),e.triggerImageChange()},triggerImageChange:function(){t(e.selectors.imgUrl).trigger("change")},initOnce:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(t(document).on("change",e.selectors.imgUrl,e.onImageChange),t(document).on("click",e.selectors.uploadButton,e.onButtonClick),t(document).on("click",e.selectors.resetButton,e.onResetClick))}};e.initOnce();var i={selectors:{gallery:".yith-plugin-fw-image-gallery",notInitGallery:".yith-plugin-fw-image-gallery:not(.yith-plugin-fw-image-gallery--initialized)",button:".yith-plugin-fw-image-gallery .image-gallery-button",slideWrapper:"ul.slides-wrapper"},initOnce:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&t(document).on("click",i.selectors.button,function(e){var n=t(this),a=n.closest(i.selectors.gallery),l=a.find(".image_gallery_ids"),o=l.val(),s=a.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:n.data("choose"),button:{text:n.data("update")},states:[new wp.media.controller.Library({title:n.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(t){if((t=t.toJSON()).id){o=o?o+","+t.id:t.id;var e=t.sizes.thumbnail||t.sizes.medium||t.sizes.large||t.sizes.full;s.append('
  • ')}}),l.val(o),l.trigger("change")}),r.open()})},init:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&t(i.selectors.notInitGallery).each(function(){t(this).addClass("yith-plugin-fw-image-gallery--initialized");var e=t(this).find(i.selectors.slideWrapper);e.each(function(){var e=t(this);e.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(t,e){e.item.css("background-color","#f6f6f6")},stop:function(t,e){e.item.removeAttr("style")},update:function(n,a){var l="";e.find("li.image").css("cursor","default").each(function(){var e=t(this).attr("data-attachment_id");l=l+e+","}),e.closest(i.selectors.gallery).find(".image_gallery_ids").val(l)}})}),e.on("click","a.delete",function(e){e.preventDefault();var n=t(this).closest(i.selectors.gallery),a=n.find("ul.slides-wrapper"),l=n.find(".image_gallery_ids"),o="";t(this).closest("li.image").remove(),a.find("li.image").css("cursor","default").each(function(){var e=t(this).attr("data-attachment_id");o=o+e+","}),l.val(o)})})}};i.initOnce(),t(function(){t(document).on("yith-plugin-fw-codemirror-init",function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.codeEditor&&t(".codemirror:not(.codemirror--initialized)").each(function(){var e=t(this).data("settings"),i=wp.codeEditor.initialize(t(this),e);t(this).addClass("codemirror--initialized"),t(this).data("codemirrorInstance",i)})}).trigger("yith-plugin-fw-codemirror-init")});t(document).on("yith_fields_init",function(){var n=t(".yith-plugin-fw-datepicker:not(.yith-plugin-fw-datepicker--initialized)"),a=t(".yith-plugin-fw-colorpicker:not(.yith-plugin-fw-colorpicker--initialized)"),l=t(".yith-plugin-fw-sidebar-layout:not(.yith-plugin-fw-sidebar-layout--initialized)"),o=t(".yith-plugin-fw-slider-container:not(.yith-plugin-fw-slider-container--initialized)"),s=t(".yit-icons-manager-wrapper:not(.yit-icons-manager-wrapper--initialized)");n.each(function(){t(this).addClass("yith-plugin-fw-datepicker--initialized");var e=t(this),i=e.data(),n=e.next(".yith-icon-calendar");i.showAnim=!1,i.beforeShow=function(t,e){e.dpDiv.addClass("yith-plugin-fw-datepicker-div")},i.onClose=function(t,e){e.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},e.datepicker(i),n&&n.on("click",function(){e.datepicker("show")})}),a.each(function(){t(this).addClass("yith-plugin-fw-colorpicker--initialized"),t(this).wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var e=t(this);e.val(e.data("default-color")),e.trigger("change")}});var e=t(this).data("variations-label"),i=t(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=t(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",e),n.length&&n.find("a.wp-color-result").attr("title",e),!a.find(".wp-picker-default-custom").length){var o=t("").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=t("").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),l.each(function(){t(this).addClass("yith-plugin-fw-sidebar-layout--initialized"),t(this).find("img").on("click",function(){var e=t(this).closest(".yith-plugin-fw-sidebar-layout"),i=e.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=e.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=t(this).data("type");if(t(this).parent().children(":radio").attr("checked",!1),t(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()}})}),o.each(function(){t(this).addClass("yith-plugin-fw-slider-container--initialized");var e=t(this).find(".ui-slider-horizontal"),i=e.data("val"),n=e.data("min"),a=e.data("max"),l=e.data("step"),o=e.data("labels");e.slider({value:i,min:n,max:a,range:"min",step:l,create:function(){t(this).find(".ui-slider-handle").text(t(this).slider("value"))},slide:function(e,i){t(this).find("input").val(i.value).trigger("change"),t(this).find(".ui-slider-handle").text(i.value),t(this).siblings(".feedback").find("strong").text(i.value+o)}})}),s.each(function(){t(this).addClass("yit-icons-manager-wrapper--initialized");var e=t(this),i=e.find(".yit-icons-manager-icon-preview").first(),n=e.find(".yit-icons-manager-icon-text");e.on("click",".yit-icons-manager-list li",function(a){var l=t(a.target).closest("li"),o=l.data("font"),s=l.data("icon"),r=l.data("key"),c=l.data("name");i.attr("data-font",o),i.attr("data-icon",s),i.attr("data-key",r),i.attr("data-name",c),n.val(o+":"+c),e.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),e.on("click",".yit-icons-manager-action-set-default",function(){e.find(".yit-icons-manager-list li.default").trigger("click")})}),t(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(e,i){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a0&&t(this).closest(".toggle-element").saveToggleElement(null,l)}}),t(document.body).trigger("wc-enhanced-select-init"),t(document.body).trigger("yith-framework-enhanced-select-init"),t(document).trigger("yith-plugin-fw-codemirror-init"),e.triggerImageChange(),i.init()}).trigger("yith_fields_init"),t(document).on("click",".yith-plugin-fw-select-images__item",function(){var e=t(this),i=e.data("key"),n=e.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"),e.addClass("yith-plugin-fw-select-images__item--selected"))}),t(document).on("click",".yith-plugin-fw-select-all",function(){t("#"+t(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),t(document).on("click",".yith-plugin-fw-deselect-all",function(){t("#"+t(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),t(document).on("click",".yith-plugin-fw-onoff-container span",function(){var e=t(this).prev("input");e.prop("disabled")||e.trigger("click")}),t(document).on("click",".yith-plugin-fw-onoff-container input",function(e){t(this).is(":checked")?t(this).attr("value","yes").addClass("onoffchecked"):t(this).attr("value","no").removeClass("onoffchecked")}),t.fn.saveToggleElement=function(e,i){var n=t(this),a="yith_plugin_fw_save_toggle_element",l=n.serializeToggleElement(),o=n.find(".yith-toggle_wrapper"),s=o.attr("id"),r=t.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=t(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=t(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=t(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,t.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){e&&e.removeClass("show"),t(document).trigger("yith_save_toggle_element_done",[i,n])}})},t.fn.serializeToggleElement=function(){var e=t(this),i=new FormData,n=t(e).find(":input").serializeArray();return t.each(n,function(t,e){el_name=e.name,i.append(e.name,e.value)}),i},t.fn.formatToggleTitle=function(){var e=t(this),i=e.find(":input"),n=e.find("span.title").data("title_format"),a=e.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);t.each(i,function(e,i){void 0!==t(i).attr("id")&&($field_id=t(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=t(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&&e.find("span.title").html(n),""!==a&&e.find(".subtitle").html(a),t(document).trigger("yith-toggle-element-item-title",[e])},t.urlParam=function(t){var e=new RegExp("[?&]"+t+"=([^&#]*)").exec(window.location.search);return null!==e&&(e[1]||0)},t(document).on("click",".yith-toggle-title",function(e){var i=t(e.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")}),t(document).on("click",".yith-add-box-button",function(e){e.preventDefault();var i=t(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&&(t("#"+n).html(s({index:"box_id"})).slideToggle(),""!==a&&(i.html()===a?i.html(l).removeClass("closed"):i.html(a).addClass("closed")),t(document).trigger("yith_fields_init"),t(document).trigger("yith-add-box-button-toggle",[i]))}),t(document).on("click",".yith-add-box-buttons .yith-save-button",function(e){e.preventDefault();var i=t(this).parents(".yith-add-box"),n=t(this).closest(".yith-toggle_wrapper").attr("id"),a=i.find(".spinner"),l=t(this).parents(".toggle-element"),o=i.find(":input"),s=0,r=t('');l.find(".yith-toggle-row").each(function(){var e=parseInt(t(this).data("item_key"));s<=e&&(s=e+1)}),r.val(s),t(document).trigger("yith-toggle-change-counter",[r,i]),s=r.val();var c=wp.template("yith-toggle-element-item-"+n),d=t(c({index:s}));a.addClass("show"),t.each(o,function(e,i){if(void 0!==t(i).attr("id")){var n=t(i).attr("id"),a=t(i).val();n="radio"===t(i).attr("type")?(n=(n=t(i).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,t(i).is(":checked")&&t(d).find("#"+n).prop("checked",!0),(t(i).hasClass("yith-post-search")||t(i).hasClass("yith-term-search"))&&t(d).find("#"+n).html(t("#"+t(i).attr("id")).html()),t(d).find("#"+n).val(a)}}),t(d).formatToggleTitle();var u=t('').val("yes");t(document).trigger("yith-toggle-element-item-before-add",[i,d,u]);setTimeout(function(){if("yes"===u.val()){t(l).find(".yith-toggle-elements").append(d),t(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),t(i).html(""),t(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){t(l).find(".highlight").removeClass("highlight")},2e3),t(document).trigger("yith_fields_init")}},1e3)}),t(document).on("click",".yith-toggle-row .yith-save-button",function(e){e.preventDefault();var i=t(this).closest(".toggle-element"),n=t(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=t('').val("yes");t(document).trigger("yith-toggle-element-item-before-update",[i,n,l]),"yes"===l.val()&&(a.addClass("show"),i.saveToggleElement(a))}),t(document).on("click",".yith-toggle-row .yith-delete-button",function(e){e.preventDefault();var i=t(this).closest(".toggle-element");t(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),t(document).on("click",".yith-toggle-onoff",function(e){e.preventDefault(),t(this).closest(".toggle-element").saveToggleElement()}),t(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var e=t(this).closest(".yith-plugin-fw-radio"),i=t(this).val();e.val(i).data("value",i).trigger("change")}),t(document.body).on("yith-plugin-fw-init-radio",function(){t(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){t(this).find('input[type="radio"]').filter('[value="'+t(this).data("value")+'"]').click(),t(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),t(document).on("click",".yith-password-eye",function(){var e=t(this),i=t(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),e.addClass("yith-password-eye-closed")):(i.attr("type","password"),e.removeClass("yith-password-eye-closed"))}),t(document).on("select2:open",function(e){t(e.target).closest(".yith-plugin-ui").length&&t(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")}),t(document).on("select2:open",function(t){t.target.multiple||setTimeout(function(){document.querySelector(".yith-plugin-fw-select2-container .select2-search__field").focus()},50)});var n={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 e=n;t(document).on("click",e.selectors.units.single,e.unitChange),t(document).on("click",e.selectors.linked.button,e.linkedChange),t(document).on("change keyup",e.selectors.dimensions.number,e.numberChange)},unitChange:function(e){var i=t(this).closest(n.selectors.units.single),a=i.closest(n.selectors.units.wrapper),l=a.find(n.selectors.units.single),o=a.find(n.selectors.units.value).first(),s=i.data("value");l.removeClass(n.selectors.units.selectedClass),i.addClass(n.selectors.units.selectedClass),o.val(s).trigger("change")},linkedChange:function(){var e=t(this).closest(n.selectors.linked.button),i=e.closest(n.selectors.wrapper),a=e.find(n.selectors.linked.value);"yes"===a.val()?(i.removeClass(n.selectors.linked.wrapperActiveClass),a.val("no")):(i.addClass(n.selectors.linked.wrapperActiveClass),a.val("yes"),i.find(n.selectors.dimensions.number).first().trigger("change"))},numberChange:function(e){var i=t(this).closest(n.selectors.dimensions.number),a=i.closest(n.selectors.wrapper);a.hasClass(n.selectors.linked.wrapperActiveClass)&&a.find(n.selectors.dimensions.number).val(i.val())}};n.init();t(document).on("click",".yith-plugin-fw-copy-to-clipboard__copy",function(){var e,i=t(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"),(e="getSelection"in window&&window.getSelection())?"empty"in e?e.empty():"removeAllRanges"in e&&e.removeAllRanges():"selection"in document&&document.selection.empty(),a.fadeIn(400),l=setTimeout(function(){a.fadeOut(400)},1500),i.data("tip-timeout",l)});var a={init:function(){t(document).on("click",".yith-plugin-fw__action-button--has-menu",a.open),t(document).on("click",".yith-plugin-fw__action-button__menu",a.stopPropagation),t(document).on("click",a.closeAll)},closeAll:function(){t(".yith-plugin-fw__action-button--opened").removeClass("yith-plugin-fw__action-button--opened")},open:function(e){var i=t(this).closest(".yith-plugin-fw__action-button"),n=i.hasClass("yith-plugin-fw__action-button--opened");e.preventDefault(),e.stopPropagation(),a.closeAll(),n||i.addClass("yith-plugin-fw__action-button--opened")},stopPropagation:function(t){t.stopPropagation()}};a.init(),t(document).on("click","a.yith-plugin-fw__require-confirmation-link",function(e){var i=t(this).closest("a.yith-plugin-fw__require-confirmation-link"),n=i.attr("href");if(n&&"#"!==n&&(e.preventDefault(),e.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)}}),t(document).on("yith-plugin-fw-tips-init",function(){t(".yith-plugin-fw__tips").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200})}).trigger("yith-plugin-fw-tips-init"),t(document).on("yith-plugin-fw-tabs-init",function(){t(".yith-plugin-fw__tabs:not(.yith-plugin-fw__tabs--initialized)").each(function(){var e=t(this),i=e.data("tab-additional-active-class")||!1,n=e.find(".yith-plugin-fw__tab__handler"),a=e.find(".yith-plugin-fw__tab__handler").first(),l=n.get().map(function(t){return t.getAttribute("href")}).filter(function(t){return!!t}).join(", "),o=t(l),s=function(e){var n=e.parent(".yith-plugin-fw__tab"),a=n.siblings(".yith-plugin-fw__tab"),l=e.attr("href");n.addClass("yith-plugin-fw__tab--active"),i&&n.addClass(i),a.removeClass("yith-plugin-fw__tab--active"),i&&a.removeClass(i),o.hide(),t(l).show()};e.addClass("yith-plugin-fw__tabs--initialized"),e.on("click",".yith-plugin-fw__tab__handler",function(e){e.preventDefault();var i=t(this);i.parent(".yith-plugin-fw__tab").hasClass("yith-plugin-fw__tab--active")||s(i)}),a.length&&s(a)})}).trigger("yith-plugin-fw-tabs-init")}(jQuery); \ No newline at end of file +!function(e){var i={selectors:{imgPreview:".yith-plugin-fw-upload-img-preview",uploadButton:".yith-plugin-fw-upload-button",imgUrl:".yith-plugin-fw-upload-img-url",resetButton:".yith-plugin-fw-upload-button-reset"},onImageChange:function(){var t=e(this).val(),n=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),a=e(this).parent().find(i.selectors.imgPreview).first();a.length<1&&(a=e(this).parent().parent().find(i.selectors.imgPreview).first()),n.test(t)?a.html(''):a.html("")},onButtonClick:function(t){t.preventDefault();var n,a=e(this).attr("id").replace(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(n)n.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(n=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=n.state().get("selection").first().toJSON(),l=e("#"+a+"-yith-attachment-id");e("#"+a).val(t.url),l.length&&l.val(t.id),i.triggerImageChange()}),n.open()}},onResetClick:function(){var t=e(this),n=t.attr("id").replace(/(\[|\])/g,"\\$1"),a=t.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),l=e("#"+n).data("default");e("#"+a).val(l),i.triggerImageChange()},triggerImageChange:function(){e(i.selectors.imgUrl).trigger("change")},initOnce:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("change",i.selectors.imgUrl,i.onImageChange),e(document).on("click",i.selectors.uploadButton,i.onButtonClick),e(document).on("click",i.selectors.resetButton,i.onResetClick))}};i.initOnce();var t={selectors:{gallery:".yith-plugin-fw-image-gallery",notInitGallery:".yith-plugin-fw-image-gallery:not(.yith-plugin-fw-image-gallery--initialized)",button:".yith-plugin-fw-image-gallery .image-gallery-button",slideWrapper:"ul.slides-wrapper"},initOnce:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&e(document).on("click",t.selectors.button,function(i){var n=e(this),a=n.closest(t.selectors.gallery),l=a.find(".image_gallery_ids"),o=l.val(),s=a.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:n.data("choose"),button:{text:n.data("update")},states:[new wp.media.controller.Library({title:n.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){if((e=e.toJSON()).id){o=o?o+","+e.id:e.id;var i=e.sizes.thumbnail||e.sizes.medium||e.sizes.large||e.sizes.full;s.append('
  • ')}}),l.val(o),l.trigger("change")}),r.open()})},init:function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&e(t.selectors.notInitGallery).each(function(){e(this).addClass("yith-plugin-fw-image-gallery--initialized");var i=e(this).find(t.selectors.slideWrapper);i.each(function(){var i=e(this);i.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,i){i.item.css("background-color","#f6f6f6")},stop:function(e,i){i.item.removeAttr("style")},update:function(n,a){var l="";i.find("li.image").css("cursor","default").each(function(){var i=e(this).attr("data-attachment_id");l=l+i+","}),i.closest(t.selectors.gallery).find(".image_gallery_ids").val(l)}})}),i.on("click","a.delete",function(i){i.preventDefault();var n=e(this).closest(t.selectors.gallery),a=n.find("ul.slides-wrapper"),l=n.find(".image_gallery_ids"),o="";e(this).closest("li.image").remove(),a.find("li.image").css("cursor","default").each(function(){var i=e(this).attr("data-attachment_id");o=o+i+","}),l.val(o)})})}};t.initOnce(),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 i=e(this).data("settings"),t=wp.codeEditor.initialize(e(this),i);e(this).addClass("codemirror--initialized"),e(this).data("codemirrorInstance",t)})}).trigger("yith-plugin-fw-codemirror-init")});e(document).on("yith_fields_init",function(){var n=e(".yith-plugin-fw-datepicker:not(.yith-plugin-fw-datepicker--initialized)"),a=e(".yith-plugin-fw-colorpicker:not(.yith-plugin-fw-colorpicker--initialized)"),l=e(".yith-plugin-fw-sidebar-layout:not(.yith-plugin-fw-sidebar-layout--initialized)"),o=e(".yith-plugin-fw-slider-container:not(.yith-plugin-fw-slider-container--initialized)"),s=e(".yit-icons-manager-wrapper:not(.yit-icons-manager-wrapper--initialized)");n.each(function(){e(this).addClass("yith-plugin-fw-datepicker--initialized");var i=e(this),t=i.data(),n=i.next(".yith-icon-calendar");t.showAnim=!1,t.beforeShow=function(e,i){i.dpDiv.addClass("yith-plugin-fw-datepicker-div")},t.onClose=function(e,i){i.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},i.datepicker(t),n&&n.on("click",function(){i.datepicker("show")})}),a.each(function(){e(this).addClass("yith-plugin-fw-colorpicker--initialized"),e(this).wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var i=e(this);i.val(i.data("default-color")),i.trigger("change")}});var i=e(this).data("variations-label"),t=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=e(this).closest(".yith-single-colorpicker"),a=t.find(".wp-picker-input-wrap"),l=n.find(".wp-picker-input-wrap");if(a.length&&t.find("a.wp-color-result").attr("title",i),n.length&&n.find("a.wp-color-result").attr("title",i),!a.find(".wp-picker-default-custom").length){var o=e("").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=e("").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),l.each(function(){e(this).addClass("yith-plugin-fw-sidebar-layout--initialized"),e(this).find("img").on("click",function(){var i=e(this).closest(".yith-plugin-fw-sidebar-layout"),t=i.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=i.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":t.show(),n.hide();break;case"right":n.show(),t.hide();break;case"double":t.show(),n.show();break;default:t.hide(),n.hide()}})}),o.each(function(){e(this).addClass("yith-plugin-fw-slider-container--initialized");var i=e(this).find(".ui-slider-horizontal"),t=i.data("val"),n=i.data("min"),a=i.data("max"),l=i.data("step"),o=i.data("labels");i.slider({value:t,min:n,max:a,range:"min",step:l,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(i,t){e(this).find("input").val(t.value).trigger("change"),e(this).find(".ui-slider-handle").text(t.value),e(this).siblings(".feedback").find("strong").text(t.value+o)}})}),s.each(function(){e(this).addClass("yit-icons-manager-wrapper--initialized");var i=e(this),t=i.find(".yit-icons-manager-icon-preview").first(),n=i.find(".yit-icons-manager-icon-text");i.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");t.attr("data-font",o),t.attr("data-icon",s),t.attr("data-key",r),t.attr("data-name",d),n.val(o+":"+d),i.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),i.on("click",".yit-icons-manager-action-set-default",function(){i.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(i,t){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a0&&e(this).closest(".toggle-element").saveToggleElement(null,l)}}),e(document.body).trigger("wc-enhanced-select-init"),e(document.body).trigger("yith-framework-enhanced-select-init"),e(document).trigger("yith-plugin-fw-codemirror-init"),i.triggerImageChange(),t.init()}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var i=e(this),t=i.data("key"),n=i.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(t).trigger("yith_select_images_value_changed").trigger("change"),a.removeClass("yith-plugin-fw-select-images__item--selected"),i.addClass("yith-plugin-fw-select-images__item--selected"))}),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")}),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var i=e(this).prev("input");i.prop("disabled")||i.trigger("click")}),e(document).on("click",".yith-plugin-fw-onoff-container input",function(i){e(this).is(":checked")?e(this).attr("value","yes").addClass("onoffchecked"):e(this).attr("value","no").removeClass("onoffchecked")}),e.fn.saveToggleElement=function(i,t){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!==t&&t.length>0&&l.append("yith_toggle_elements_order_keys",t),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(t){i&&i.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[t,n])}})},e.fn.serializeToggleElement=function(){var i=e(this),t=new FormData,n=e(i).find(":input").serializeArray();return e.each(n,function(e,i){el_name=i.name,t.append(i.name,i.value)}),t},e.fn.formatToggleTitle=function(){var i=e(this),t=i.find(":input"),n=i.find("span.title").data("title_format"),a=i.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(t,function(i,t){void 0!==e(t).attr("id")&&($field_id=e(t).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(t).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&&i.find("span.title").html(n),""!==a&&i.find(".subtitle").html(a),e(document).trigger("yith-toggle-element-item-title",[i])},e.urlParam=function(e){var i=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==i&&(i[1]||0)},e(document).on("click",".yith-toggle-title",function(i){var t=e(i.target),n=t.closest(".yith-toggle-row"),a=n.find(".yith-toggle-content");if(!!t.closest(".yith-toggle-onoff").length||t.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(i){i.preventDefault();var t=e(this),n=t.data("box_id"),a=t.data("closed_label"),l=t.data("opened_label"),o=t.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&&(t.html()===a?t.html(l).removeClass("closed"):t.html(a).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[t]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(i){i.preventDefault();var t=e(this).parents(".yith-add-box"),n=e(this).closest(".yith-toggle_wrapper").attr("id"),a=t.find(".spinner"),l=e(this).parents(".toggle-element"),o=t.find(":input"),s=0,r=e('');l.find(".yith-toggle-row").each(function(){var i=parseInt(e(this).data("item_key"));s<=i&&(s=i+1)}),r.val(s),e(document).trigger("yith-toggle-change-counter",[r,t]),s=r.val();var d=wp.template("yith-toggle-element-item-"+n),c=e(d({index:s}));a.addClass("show"),e.each(o,function(i,t){if(void 0!==e(t).attr("id")){var n=e(t).attr("id"),a=e(t).val();n="radio"===e(t).attr("type")?(n=(n=e(t).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,e(t).is(":checked")&&e(c).find("#"+n).prop("checked",!0),(e(t).hasClass("yith-post-search")||e(t).hasClass("yith-term-search"))&&e(c).find("#"+n).html(e("#"+e(t).attr("id")).html()),e(c).find("#"+n).val(a)}}),e(c).formatToggleTitle();var u=e('').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[t,c,u]);setTimeout(function(){if("yes"===u.val()){e(l).find(".yith-toggle-elements").append(c),e(t).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(t).html(""),e(t).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(i){i.preventDefault();var t=e(this).closest(".toggle-element"),n=e(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=e('').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[t,n,l]),"yes"===l.val()&&(a.addClass("show"),t.saveToggleElement(a))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(i){i.preventDefault();var t=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),t.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(i){i.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var i=e(this).closest(".yith-plugin-fw-radio"),t=e(this).val();i.val(t).data("value",t).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).find('input[type="radio"]').filter('[value="'+e(this).data("value")+'"]').click(),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("click",".yith-password-eye",function(){var i=e(this),t=e(this).closest(".yith-password-wrapper").find("input");"password"===t.attr("type")?(t.attr("type","text"),i.addClass("yith-password-eye-closed")):(t.attr("type","password"),i.removeClass("yith-password-eye-closed"))}),e(document).on("select2:open",function(i){e(i.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")}),e(document).on("select2:open",function(e){e.target.multiple||setTimeout(function(){var e=document.querySelector(".yith-plugin-fw-select2-container .select2-search__field");e&&e.focus()},50)});var n={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=n;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 t=e(this).closest(n.selectors.units.single),a=t.closest(n.selectors.units.wrapper),l=a.find(n.selectors.units.single),o=a.find(n.selectors.units.value).first(),s=t.data("value");l.removeClass(n.selectors.units.selectedClass),t.addClass(n.selectors.units.selectedClass),o.val(s).trigger("change")},linkedChange:function(){var i=e(this).closest(n.selectors.linked.button),t=i.closest(n.selectors.wrapper),a=i.find(n.selectors.linked.value);"yes"===a.val()?(t.removeClass(n.selectors.linked.wrapperActiveClass),a.val("no")):(t.addClass(n.selectors.linked.wrapperActiveClass),a.val("yes"),t.find(n.selectors.dimensions.number).first().trigger("change"))},numberChange:function(i){var t=e(this).closest(n.selectors.dimensions.number),a=t.closest(n.selectors.wrapper);a.hasClass(n.selectors.linked.wrapperActiveClass)&&a.find(n.selectors.dimensions.number).val(t.val())}};n.init();e(document).on("click",".yith-plugin-fw-copy-to-clipboard__copy",function(){var i,t=e(this).closest(".yith-plugin-fw-copy-to-clipboard"),n=t.find(".yith-plugin-fw-copy-to-clipboard__field"),a=t.find(".yith-plugin-fw-copy-to-clipboard__tip"),l=t.data("tip-timeout");l&&clearTimeout(l),n.select(),document.execCommand("copy"),(i="getSelection"in window&&window.getSelection())?"empty"in i?i.empty():"removeAllRanges"in i&&i.removeAllRanges():"selection"in document&&document.selection.empty(),a.fadeIn(400),l=setTimeout(function(){a.fadeOut(400)},1500),t.data("tip-timeout",l)});var a={init:function(){e(document).on("click",".yith-plugin-fw__action-button--has-menu",a.open),e(document).on("click",".yith-plugin-fw__action-button__menu",a.stopPropagation),e(document).on("click",a.closeAll)},closeAll:function(){e(".yith-plugin-fw__action-button--opened").removeClass("yith-plugin-fw__action-button--opened")},open:function(i){var t=e(this).closest(".yith-plugin-fw__action-button"),n=t.hasClass("yith-plugin-fw__action-button--opened");i.preventDefault(),i.stopPropagation(),a.closeAll(),n||t.addClass("yith-plugin-fw__action-button--opened")},stopPropagation:function(e){e.stopPropagation()}};a.init(),e(document).on("click","a.yith-plugin-fw__require-confirmation-link",function(i){var t=e(this).closest("a.yith-plugin-fw__require-confirmation-link"),n=t.attr("href");if(n&&"#"!==n&&(i.preventDefault(),i.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=t.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"),e(document).on("yith-plugin-fw-tabs-init",function(){e(".yith-plugin-fw__tabs:not(.yith-plugin-fw__tabs--initialized)").each(function(){var i=e(this),t=i.data("tab-additional-active-class")||!1,n=i.find(".yith-plugin-fw__tab__handler"),a=i.find(".yith-plugin-fw__tab__handler").first(),l=n.get().map(function(e){return e.getAttribute("href")}).filter(function(e){return!!e}).join(", "),o=e(l),s=function(i){var n=i.parent(".yith-plugin-fw__tab"),a=n.siblings(".yith-plugin-fw__tab"),l=i.attr("href");n.addClass("yith-plugin-fw__tab--active"),t&&n.addClass(t),a.removeClass("yith-plugin-fw__tab--active"),t&&a.removeClass(t),o.hide(),e(l).show()};i.addClass("yith-plugin-fw__tabs--initialized"),i.on("click",".yith-plugin-fw__tab__handler",function(i){i.preventDefault();var t=e(this);t.parent(".yith-plugin-fw__tab").hasClass("yith-plugin-fw__tab--active")||s(t)}),a.length&&s(a)})}).trigger("yith-plugin-fw-tabs-init"),e(document).on("click",".yith-plugin-fw__notice__dismiss",function(){e(this).closest(".yith-plugin-fw__notice").fadeOut(300)}),function(){var i,t=!1;function n(i){return e(i).closest(".yith-plugin-fw-media")}function a(e,i){var t=e.find(".yith-plugin-fw-media__preview"),n=t.find(".yith-plugin-fw-media__preview__image"),a=t.find(".yith-plugin-fw-media__preview__file__name"),l=e.find(".yith-plugin-fw-media__url-value"),o=e.find(".yith-plugin-fw-media__id-value");if(i){if("undefined"!=typeof i.url&&l.length&&l.val(i.url),"undefined"!=typeof i.id&&o.length&&o.val(i.id),"undefined"!=typeof i.url){var s=new RegExp("(jpg|jpeg|png|gif|ico|svg|jpe|webp)$").test(i.url)?"image":"file";if(t.attr("data-type",s),"image"===s)n.attr("src",i.url);else{var r=i.url.substring(i.url.lastIndexOf("/")+1);a.html(r)}}}else l.length&&l.val(""),o.length&&o.val(""),n.attr("src",""),t.attr("data-type","upload")}function l(i,t){var n=e("
    ");n.addClass(["yith-plugin-fw__notice","yith-plugin-fw__notice--error","yith-plugin-fw-animate__appear-from-top","yith-plugin-fw--inline"]),n.html(t),n.append(e('')),i.append(n)}function o(){t&&(t=!1,document.removeEventListener("dragend",o),document.removeEventListener("mousemove",o),document.body.classList.remove("yith-plugin-fw--dropzone-active"))}e(document).on("change",".yith-plugin-fw-media__url-value",function(i){var t=e(i.target);a(n(t),{url:t.val(),id:""})}).on("click",".yith-plugin-fw-media__preview__upload__link, .yith-plugin-fw-media__preview__action--edit",function(t){t.preventDefault();var l=n(e(this));if(i)i.open();else{var o=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({library:{type:""},multiple:!1,states:o})).on("select",function(){var e=i.state().get("selection").first().toJSON();a(l,e)}),i.open()}}).on("click",".yith-plugin-fw-media__preview__action--delete",function(e){a(n(e.target),!1)}).on("click",".yith-plugin-fw-media__tab",function(i){var t=e(i.target).closest(".yith-plugin-fw-media__tab"),a=n(t),l=a.find(".yith-plugin-fw-media__tab"),o=a.find(".yith-plugin-fw-media__content > *"),s=t.data("tab-selector"),r=a.find(s);l.removeClass("yith-plugin-fw-media__tab--active"),t.addClass("yith-plugin-fw-media__tab--active"),o.hide(),r.show()}).on("dragenter",".yith-plugin-fw-media__preview__dropzone",function(i){i.preventDefault(),i.dataTransfer||(i.dataTransfer=i.originalEvent.dataTransfer),i.dataTransfer.dropEffect="copy",e(this).closest(".yith-plugin-fw-media__preview").addClass("yith-plugin-fw--is-dragging")}).on("dragover",".yith-plugin-fw-media__preview__dropzone",function(e){e.preventDefault()}).on("dragleave",".yith-plugin-fw-media__preview__dropzone",function(){e(this).closest(".yith-plugin-fw-media__preview").removeClass("yith-plugin-fw--is-dragging")}).on("drop",".yith-plugin-fw-media__preview__dropzone",function(t){t.preventDefault();var s=e(this).closest(".yith-plugin-fw-media__preview");s.removeClass("yith-plugin-fw--is-dragging"),s.addClass("yith-plugin-fw--is-loading"),t.dataTransfer||(t.dataTransfer=t.originalEvent.dataTransfer);var r=t.dataTransfer.files,d=n(t.target),c=function(){s.removeClass("yith-plugin-fw--is-loading")};d.find(".yith-plugin-fw__notice").remove(),r.length>1&&(r=r[0]),r.length?"mediaUtils"in wp&&"uploadMedia"in wp.mediaUtils?wp.mediaUtils.uploadMedia({filesList:r,onFileChange:function(e){e&&e.length&&e[0]&&"id"in e[0]&&(a(d,e[0]),c(),i=null)},onError:function(e){console.error(e),c(),l(d,e.message)}}):(l(d,yith_framework_fw_fields.i18n.cannotDropError),c()):(l(d,yith_framework_fw_fields.i18n.noFileError),c()),o()}),document.addEventListener("dragenter",function(){t||(t=!0,document.addEventListener("dragend",o),document.addEventListener("mousemove",o),document.body.classList.add("yith-plugin-fw--dropzone-active"))})}(),function(){function i(i){return e(i).closest(".yith-plugin-fw-file")}e(document).on("dragover",".yith-plugin-fw-file",function(){i(this).addClass("yith-plugin-fw--is-dragging")}).on("dragleave",".yith-plugin-fw-file",function(){i(this).addClass("yith-plugin-fw--is-dragging")}).on("change",".yith-plugin-fw-file__field",function(){var e=i(this),t=e.find(".yith-plugin-fw-file__preview__name"),n=!!this.files.length&&this.files[0];e.removeClass("yith-plugin-fw--is-dragging"),n?(t.html(n.name),e.addClass("yith-plugin-fw--filled")):e.removeClass("yith-plugin-fw--filled")})}()}(jQuery); \ No newline at end of file diff --git a/plugin-fw/dist/gutenberg/index.asset.php b/plugin-fw/dist/gutenberg/index.asset.php index d63e4ea..405189e 100644 --- a/plugin-fw/dist/gutenberg/index.asset.php +++ b/plugin-fw/dist/gutenberg/index.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '1cbb629d8e87f0566e85'); + array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '33106eaa4ba483a4c19c'); diff --git a/plugin-fw/dist/gutenberg/index.js b/plugin-fw/dist/gutenberg/index.js index 0a61501..f207819 100644 --- a/plugin-fw/dist/gutenberg/index.js +++ b/plugin-fw/dist/gutenberg/index.js @@ -1 +1 @@ -!function(){var e,t={784:function(e,t,n){"use strict";var o=window.wp.element,r=window.React,a=n(568),s=n.n(a),l=window.wp.blocks,c=window.wp.url;function i(e){if(e.status>=200&&e.status<300)return e;throw e}function u(e){return e.json?e.json():e.text()}const p=(0,o.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},(0,o.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"}));var h=window.lodash,d=n.n(h);const f=(e,t,n)=>{let o=!0;if(t&&t.id&&"value"in t){let r=t.value;["toggle","checkbox"].includes(n)&&(r=!0===r||"yes"===r||1===r),r=d().isArray(r)?r:[r],o=void 0!==e[t.id]&&r.includes(e[t.id])}return o},m=(e,t)=>{const{controlType:n}=e;let o=!0;if(e.deps)if(d().isArray(e.deps))for(let r in e.deps){const a=e.deps[r];if(o=f(t,a,n),!o)break}else o=f(t,e.deps,n);return o},g=(e,t)=>{let n="",o=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?o=jQuery.fn[e.callback]:e.callback in window&&(o=window[e.callback])),"function"==typeof o)n=o(t,e);else{const o=e.attributes?Object.entries(e.attributes).map((e=>{let[n,o]=e;const r=m(o,t),a=t[n];if(r&&void 0!==a)return n+"="+(o.remove_quotes?a:`"${a}"`)})):[],r=o.length?" "+o.join(" "):"";n=`[${e.shortcode_name}${r}]`}return n};var y=window.wp.components,_=window.wp.blockEditor,b=window.wp.hooks;class v extends r.Component{constructor(){super(...arguments),this.state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1,firstLoading:!0},this.ajaxTimeout=!1}componentDidMount(){this.updateShortcode()}componentDidUpdate(e,t,n){const{shortcode:o,shortcodeHash:r,ajaxSuccess:a,ajaxResponse:s,ajaxUpdated:l}=this.state;(0,h.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&l&&(a&&(0,b.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,r,s),(0,b.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,r,s),this.setState({ajaxUpdated:!1}))}updateShortcode(){const{attributes:e,blockArgs:t}=this.props;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});const n=g(t,e),o=s()(n);t.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),(0,b.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",n,o),this.ajaxTimeout=setTimeout((()=>{var e,t;(function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return e.security=null!==(t=e.security)&&void 0!==t?t:yithGutenberg.ajaxNonce,n=(0,c.addQueryArgs)(n,e),fetch(n).then(i).then(u)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:n,context:{...null!==(e=this.props.context)&&void 0!==e?e:{},adminPage:null!==(t=window?.adminpage)&&void 0!==t?t:""}}).then((e=>{this.setState({loading:!1,firstLoading:!1,html:e.html,shortcode:n,shortcodeHash:o,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:e})})).catch((e=>{console.log({error:e})}))}),300)):this.setState({loading:!1,firstLoading:!1,html:n,shortcode:n,shortcodeHash:o})}render(){const{html:e,loading:t,firstLoading:n,shortcode:r,shortcodeHash:a}=this.state,{blockArgs:s}=this.props,{do_shortcode:l,title:c,empty_message:i}=s,u="block-editor-yith-plugin-fw-shortcode-block";let h=[u],d=l?"html":"shortcode",f=e,m="";n&&t?d="first-loading":l&&!e&&(d="empty-html",f=r,!t&&i&&(m=i));const g=["first-loading","empty-html","shortcode"].includes(d),_=!["first-loading","empty-html"].includes(d),b=!!m;return h.push(`${u}--${d}`),h.push(b?`${u}--has-message`:`${u}--no-message`),h.push(`yith_block_${a}`),(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:h.join(" ")},t?(0,o.createElement)("div",{className:`${u}__spinner-wrap`},(0,o.createElement)(y.Spinner,null)):"",g&&(0,o.createElement)("div",{className:`${u}__title components-placeholder__label`},p,c),b&&(0,o.createElement)(o.RawHTML,{className:`${u}__message`},m),_&&(0,o.createElement)(o.RawHTML,{className:`${u}__content`},f)))}}var w=window.wp.compose;function C(e){let{className:t,label:n,onChange:r,value:a,help:s,disableAlpha:l}=e;const c=`inspector-yith-color-picker-control-${(0,w.useInstanceId)(C)}`;return(0,o.createElement)(y.BaseControl,{id:c,label:n,className:`block-editor-yith-color-control ${t}`,help:s},(0,o.createElement)(y.ColorPicker,{color:a,disableAlpha:l,onChangeComplete:r}))}function k(e){let{label:t,colorValue:n}=e;return(0,o.createElement)(o.Fragment,null,t,!!n&&(0,o.createElement)(y.ColorIndicator,{colorValue:n}))}function E(e){let{className:t,label:n,onChange:r,value:a,help:s,palette:l,clearable:c}=e;l=l||(0,_.useSetting)("color.palette");const i=`inspector-yith-color-palette-control-${(0,w.useInstanceId)(E)}`;return(0,o.createElement)(y.BaseControl,{id:i,className:`block-editor-yith-color-palette-control ${t}`,help:s},(0,o.createElement)("fieldset",null,(0,o.createElement)("legend",null,(0,o.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},(0,o.createElement)(y.BaseControl.VisualLabel,null,(0,o.createElement)(k,{colorValue:a,label:n})))),(0,o.createElement)(y.ColorPalette,{value:a,onChange:r,colors:l,clearable:c})))}var x=n(184),T=n.n(x),j=n(697),N=n.n(j),S=window.wp.i18n;const O={noItems:(0,S.__)("No items found.","yith-plugin-fw"),noResults:(0,S.__)('No results for "%s"',"yith-plugin-fw"),search:(0,S.__)("Search for items...","yith-plugin-fw")};function A(e){const t=(0,w.useInstanceId)(B);return e||`inspector-yith-multiple-select-control-${t}`}function R(e){var t;let{id:n,value:a,options:s,onChange:l,messages:c}=e;const[i,u]=(0,r.useState)(""),[p,h]=(0,r.useState)(!1),[d,f]=(0,r.useState)(248),m={...O,...c},g=(0,r.useRef)(),_=(0,r.useRef)(),b=(0,r.useRef)(),v=(0,r.useRef)(),w=(0,r.useRef)(),C=T()("yith-fw-components__multiple-select"),k=(0,r.useMemo)((()=>s.map((e=>e.value))),[s]),E=(0,r.useMemo)((()=>a.filter((e=>k.includes(e)))),[a,k]),x=(0,r.useMemo)((()=>s.filter((e=>e.label.toLowerCase().indexOf(i.toLowerCase())>=0))),[s,i]),j=(0,r.useMemo)((()=>s.filter((e=>E.includes(e.value)))),[s,E]),N=e=>{const t=[...E].filter((t=>t!==e));l(t)},R=()=>!!_.current&&_.current.focus(),B=e=>{const t=g?.current&&g.current.contains(e.target),n=v?.current&&v.current.contains(e.target);t||n||h(!1)};return(0,r.useEffect)((()=>(document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)))),(0,r.useEffect)((()=>{(()=>{if(!g.current)return;const e=g.current.getBoundingClientRect()?.width;f(e)})()}),[]),(0,o.createElement)("div",{className:C,ref:g},(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__input-container",ref:b,onClick:e=>{b?.current&&b.current===e.target&&R()}},j.map((e=>(0,o.createElement)("span",{key:e.value,className:"yith-fw-components__multiple-select__item"},(0,o.createElement)("span",{className:"yith-fw-components__multiple-select__item__label"},e.label),(0,o.createElement)("i",{className:"yith-fw-components__multiple-select__item__remove yith-icon-close-alt",onClick:()=>{N(e.value),h(!1)}})))),(0,o.createElement)("input",{className:"yith-fw-components__multiple-select__input",id:A(n),ref:_,type:"text",autoComplete:"off",placeholder:m.search,onFocus:()=>h(!0),value:i,onChange:e=>u(e.target.value)})),p&&(0,o.createElement)(y.Popover,{className:"yith-fw-components__multiple-select__popover",position:"bottom",offset:20,anchorRef:null!==(t=g?.current)&&void 0!==t?t:void 0,anchorRect:g?.current&&g?.current.getBoundingClientRect(),focusOnMount:!1,ref:v},(0,o.createElement)("div",{className:T()("yith-fw-components__multiple-select__suggestions",!x.length&&"no-results"),ref:w,style:{width:d}},s.length&&x.length?x.map((e=>{const t=E.includes(e.value);return(0,o.createElement)("div",{key:e.value,className:T()("yith-fw-components__multiple-select__suggestion",t&&"selected"),onClick:()=>{var n;t||(n=e.value,l([...E,n]),u(""),R())}},(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__suggestion__label"},e.label),t&&(0,o.createElement)("i",{className:"yith-fw-components__multiple-select__suggestion__remove yith-icon yith-icon-close-alt",onClick:()=>{N(e.value),R()}}))})):(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__suggestions__message"},s.length&&i?(0,S.sprintf)(m.noResults,i):m.noItems))))}function B(e){let{className:t,label:n,onChange:r,value:a,help:s,options:l,messages:c}=e;const i=`inspector-yith-multiple-select-control-${(0,w.useInstanceId)(B)}`;return(0,o.createElement)(y.BaseControl,{id:i,label:n,className:`block-editor-yith-multiple-select-control ${t}`,help:s},(0,o.createElement)(R,{id:i,value:a,options:l,onChange:r,messages:c}))}R.propTypes={id:N().string,className:N().string,value:N().array,options:N().arrayOf(N().shape({label:N().string,value:N().oneOfType([N().string,N().number])})),onChange:N().func},R.defaultProps={id:"",value:[],className:"",options:[],onChange:d()};const $=e=>{var t,n,r;let{attributeName:a,attributeArgs:s,attributes:l,onChange:c,blockName:i}=e;const{controlType:u,label:p,wrapper_class:h}=s,d=l[a],f=((e,t)=>{let n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n})(s,d),g=m(s,l),_=T()(`${i}__${a}-field-wrapper`,h);let b=!1;if(g)switch(u){case"select":var v,w,k;b=s.multiple?(0,o.createElement)(B,{className:_,value:d,label:p,options:null!==(v=s?.options)&&void 0!==v?v:[],help:f,onChange:c,messages:null!==(w=s?.messages)&&void 0!==w?w:{}}):(0,o.createElement)(y.SelectControl,{className:_,value:d,label:p,options:null!==(k=s?.options)&&void 0!==k?k:[],help:f,onChange:c});break;case"text":b=(0,o.createElement)(y.TextControl,{className:_,key:a,value:d,label:p,help:f,onChange:c});break;case"textarea":b=(0,o.createElement)(y.TextareaControl,{className:_,key:a,value:d,label:p,help:f,onChange:c});break;case"toggle":b=(0,o.createElement)(y.ToggleControl,{className:_,key:a,label:p,help:f,checked:d,onChange:c});break;case"checkbox":b=(0,o.createElement)(y.CheckboxControl,{className:_,key:a,label:p,help:f,checked:d,onChange:c});break;case"number":case"range":b=(0,o.createElement)(y.RangeControl,{className:_,key:a,value:d,label:p,help:f,min:s?.min,max:s?.max,onChange:c});break;case"color":case"colorpicker":b=(0,o.createElement)(C,{className:_,key:a,label:p,help:f,value:d,disableAlpha:null!==(t=s?.disableAlpha)&&void 0!==t&&t,onChange:c});break;case"color-palette":b=(0,o.createElement)(E,{className:_,key:a,label:p,help:f,value:d,clearable:null!==(n=s?.clearable)&&void 0!==n&&n,onChange:c});break;case"radio":b=(0,o.createElement)(y.RadioControl,{key:a,label:p,options:null!==(r=s?.options)&&void 0!==r?r:[],selected:d,help:f,onChange:c});break;default:b=!1}return b},I=(e,t)=>function(n){let{context:r,attributes:a,className:s,setAttributes:l}=n;return(0,o.createElement)(o.Fragment,null,!!t.attributes&&(0,o.createElement)(_.InspectorControls,null,(0,o.createElement)(y.PanelBody,null,Object.entries(t.attributes).map((t=>{let[n,r]=t;const{controlType:s}=r;return(0,o.createElement)($,{key:n,attributeArgs:r,attributeName:n,attributes:a,blockName:e,onChange:e=>((e,t,n)=>{if(["colorpicker","color"].includes(n))if("rgb"in e&&"hex"in e){const{r:t,g:n,b:o,a:r}=e.rgb;e=r<1?`rgba(${t}, ${n}, ${o}, ${r})`:e.hex}else e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString();l({[t]:e})})(e,n,s)})})))),(0,o.createElement)(v,{attributes:a,blockArgs:t,context:r}))},L=[{key:"yith_plugin_fw_gutenberg_before_do_shortcode",delay:0},{key:"yith_plugin_fw_gutenberg_success_do_shortcode",delay:200},{key:"yith_plugin_fw_gutenberg_after_do_shortcode",delay:200}];for(const e of L)(0,b.addAction)(e.key,"yith-plugin-fw/jquery-events",(function(){for(var t=arguments.length,n=new Array(t),o=0;o{jQuery(document).trigger(e.key,Object.values(n))}),e.delay):jQuery(document).trigger(e.key,Object.values(n)))}));for(const[e,t]of Object.entries(yithGutenbergBlocks))(0,l.registerBlockType)("yith/"+e,{title:t.title,description:t.description,category:t.category,attributes:t.attributes,icon:void 0!==t.icon?t.icon:p,keywords:t.keywords,edit:I(e,t),usesContext:["postId"],save:e=>{let{attributes:n}=e;return g(t,n)},deprecated:[{attributes:t.attributes,save:e=>{let{attributes:n}=e;const r=g(t,n),a=''+r+"";return(0,o.createElement)(o.RawHTML,null,a)}}]})},487:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,o=0;n>>5]|=e[n]<<24-o%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],o=0,r=0;o>>6-2*r);return n}},e.exports=n},738:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},568:function(e,t,n){var o,r,a,s,l;o=n(12),r=n(487).utf8,a=n(738),s=n(487).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?s.stringToBytes(e):r.stringToBytes(e):a(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=o.bytesToWords(e),c=8*e.length,i=1732584193,u=-271733879,p=-1732584194,h=271733878,d=0;d>>24)|4278255360&(n[d]<<24|n[d]>>>8);n[c>>>5]|=128<>>9<<4)]=c;var f=l._ff,m=l._gg,g=l._hh,y=l._ii;for(d=0;d>>0,u=u+b>>>0,p=p+v>>>0,h=h+w>>>0}return o.endian([i,u,p,h])})._ff=function(e,t,n,o,r,a,s){var l=e+(t&n|~t&o)+(r>>>0)+s;return(l<>>32-a)+t},l._gg=function(e,t,n,o,r,a,s){var l=e+(t&o|n&~o)+(r>>>0)+s;return(l<>>32-a)+t},l._hh=function(e,t,n,o,r,a,s){var l=e+(t^n^o)+(r>>>0)+s;return(l<>>32-a)+t},l._ii=function(e,t,n,o,r,a,s){var l=e+(n^(t|~o))+(r>>>0)+s;return(l<>>32-a)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=o.wordsToBytes(l(e,t));return t&&t.asBytes?n:t&&t.asString?s.bytesToString(n):o.bytesToHex(n)}},703:function(e,t,n){"use strict";var o=n(414);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,s){if(s!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=function(t,n,r,a){if(!n){var s=1/0;for(u=0;u=a)&&Object.keys(o.O).every((function(e){return o.O[e](n[c])}))?n.splice(c--,1):(l=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[n,r,a]},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,46:0};o.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,a,s=n[0],l=n[1],c=n[2],i=0;if(s.some((function(t){return 0!==e[t]}))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(c)var u=c(o)}for(t&&t(n);i=200&&e.status<300)return e;throw e}function u(e){return e.json?e.json():e.text()}const p=(0,o.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},(0,o.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"}));var h=window.lodash,d=n.n(h);const f=(e,t,n)=>{let o=!0;if(t&&t.id&&"value"in t){let r=t.value;["toggle","checkbox"].includes(n)&&(r=!0===r||"yes"===r||1===r),r=d().isArray(r)?r:[r],o=void 0!==e[t.id]&&r.includes(e[t.id])}return o},m=(e,t)=>{const{controlType:n}=e;let o=!0;if(e.deps)if(d().isArray(e.deps))for(let r in e.deps){const l=e.deps[r];if(o=f(t,l,n),!o)break}else o=f(t,e.deps,n);return o},g=(e,t)=>{let n="",o=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?o=jQuery.fn[e.callback]:e.callback in window&&(o=window[e.callback])),"function"==typeof o)n=o(t,e);else{const o=e.attributes?Object.entries(e.attributes).map((e=>{let[n,o]=e;const r=m(o,t),l=t[n];if(r&&void 0!==l)return n+"="+(o.remove_quotes?l:`"${l}"`)})):[],r=o.length?" "+o.join(" "):"";n=`[${e.shortcode_name}${r}]`}return n};var v=window.wp.components,y=window.wp.blockEditor,_=window.wp.hooks;class b extends r.Component{constructor(){super(...arguments),this.state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1,firstLoading:!0},this.ajaxTimeout=!1}componentDidMount(){this.updateShortcode()}componentDidUpdate(e,t,n){const{shortcode:o,shortcodeHash:r,ajaxSuccess:l,ajaxResponse:a,ajaxUpdated:s}=this.state;(0,h.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&s&&(l&&(0,_.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,r,a),(0,_.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,r,a),this.setState({ajaxUpdated:!1}))}updateShortcode(){const{attributes:e,blockArgs:t}=this.props;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});const n=g(t,e),o=a()(n);t.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),(0,_.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",n,o),this.ajaxTimeout=setTimeout((()=>{var e,t,r;(function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return e.security=null!==(t=e.security)&&void 0!==t?t:yithGutenberg.ajaxNonce,n=(0,i.addQueryArgs)(n,e),fetch(n).then(c).then(u)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:n,context:{...null!==(e=this.props.context)&&void 0!==e?e:{},adminPage:null!==(t=null===(r=window)||void 0===r?void 0:r.adminpage)&&void 0!==t?t:""}}).then((e=>{this.setState({loading:!1,firstLoading:!1,html:e.html,shortcode:n,shortcodeHash:o,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:e})})).catch((e=>{console.log({error:e})}))}),300)):this.setState({loading:!1,firstLoading:!1,html:n,shortcode:n,shortcodeHash:o})}render(){const{html:e,loading:t,firstLoading:n,shortcode:r,shortcodeHash:l}=this.state,{blockArgs:a}=this.props,{do_shortcode:s,title:i,empty_message:c}=a,u="block-editor-yith-plugin-fw-shortcode-block";let h=[u],d=s?"html":"shortcode",f=e,m="";n&&t?d="first-loading":s&&!e&&(d="empty-html",f=r,!t&&c&&(m=c));const g=["first-loading","empty-html","shortcode"].includes(d),y=!["first-loading","empty-html"].includes(d),_=!!m;return h.push(`${u}--${d}`),h.push(_?`${u}--has-message`:`${u}--no-message`),h.push(`yith_block_${l}`),(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:h.join(" ")},t?(0,o.createElement)("div",{className:`${u}__spinner-wrap`},(0,o.createElement)(v.Spinner,null)):"",g&&(0,o.createElement)("div",{className:`${u}__title components-placeholder__label`},p,i),_&&(0,o.createElement)(o.RawHTML,{className:`${u}__message`},m),y&&(0,o.createElement)(o.RawHTML,{className:`${u}__content`},f)))}}var w=window.wp.compose;function C(e){let{className:t,label:n,onChange:r,value:l,help:a,disableAlpha:s}=e;const i=`inspector-yith-color-picker-control-${(0,w.useInstanceId)(C)}`;return(0,o.createElement)(v.BaseControl,{id:i,label:n,className:`block-editor-yith-color-control ${t}`,help:a},(0,o.createElement)(v.ColorPicker,{color:l,disableAlpha:s,onChangeComplete:r}))}function k(e){let{label:t,colorValue:n}=e;return(0,o.createElement)(o.Fragment,null,t,!!n&&(0,o.createElement)(v.ColorIndicator,{colorValue:n}))}function E(e){let{className:t,label:n,onChange:r,value:l,help:a,palette:s,clearable:i}=e;s=s||(0,y.useSetting)("color.palette");const c=`inspector-yith-color-palette-control-${(0,w.useInstanceId)(E)}`;return(0,o.createElement)(v.BaseControl,{id:c,className:`block-editor-yith-color-palette-control ${t}`,help:a},(0,o.createElement)("fieldset",null,(0,o.createElement)("legend",null,(0,o.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},(0,o.createElement)(v.BaseControl.VisualLabel,null,(0,o.createElement)(k,{colorValue:l,label:n})))),(0,o.createElement)(v.ColorPalette,{value:l,onChange:r,colors:s,clearable:i})))}var x=n(184),T=n.n(x),j=n(697),N=n.n(j),S=window.wp.i18n;const O={noItems:(0,S.__)("No items found.","yith-plugin-fw"),noResults:(0,S.__)('No results for "%s"',"yith-plugin-fw"),search:(0,S.__)("Search for items...","yith-plugin-fw")};function A(e){const t=(0,w.useInstanceId)(B);return e||`inspector-yith-multiple-select-control-${t}`}function R(e){var t;let{id:n,value:l,options:a,onChange:s,messages:i}=e;const[c,u]=(0,r.useState)(""),[p,h]=(0,r.useState)(!1),[d,f]=(0,r.useState)(248),m={...O,...i},g=(0,r.useRef)(),y=(0,r.useRef)(),_=(0,r.useRef)(),b=(0,r.useRef)(),w=(0,r.useRef)(),C=T()("yith-fw-components__multiple-select"),k=(0,r.useMemo)((()=>a.map((e=>e.value))),[a]),E=(0,r.useMemo)((()=>l.filter((e=>k.includes(e)))),[l,k]),x=(0,r.useMemo)((()=>a.filter((e=>e.label.toLowerCase().indexOf(c.toLowerCase())>=0))),[a,c]),j=(0,r.useMemo)((()=>a.filter((e=>E.includes(e.value)))),[a,E]),N=e=>{const t=[...E].filter((t=>t!==e));s(t)},R=()=>!!y.current&&y.current.focus(),B=e=>{const t=(null==g?void 0:g.current)&&g.current.contains(e.target),n=(null==b?void 0:b.current)&&b.current.contains(e.target);t||n||h(!1)};return(0,r.useEffect)((()=>(document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)))),(0,r.useEffect)((()=>{(()=>{var e;if(!g.current)return;const t=null===(e=g.current.getBoundingClientRect())||void 0===e?void 0:e.width;f(t)})()}),[]),(0,o.createElement)("div",{className:C,ref:g},(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__input-container",ref:_,onClick:e=>{(null==_?void 0:_.current)&&_.current===e.target&&R()}},j.map((e=>(0,o.createElement)("span",{key:e.value,className:"yith-fw-components__multiple-select__item"},(0,o.createElement)("span",{className:"yith-fw-components__multiple-select__item__label"},e.label),(0,o.createElement)("i",{className:"yith-fw-components__multiple-select__item__remove yith-icon-close-alt",onClick:()=>{N(e.value),h(!1)}})))),(0,o.createElement)("input",{className:"yith-fw-components__multiple-select__input",id:A(n),ref:y,type:"text",autoComplete:"off",placeholder:m.search,onFocus:()=>h(!0),value:c,onChange:e=>u(e.target.value)})),p&&(0,o.createElement)(v.Popover,{className:"yith-fw-components__multiple-select__popover",position:"bottom",offset:20,anchorRef:null!==(t=null==g?void 0:g.current)&&void 0!==t?t:void 0,anchorRect:(null==g?void 0:g.current)&&(null==g?void 0:g.current.getBoundingClientRect()),focusOnMount:!1,ref:b},(0,o.createElement)("div",{className:T()("yith-fw-components__multiple-select__suggestions",!x.length&&"no-results"),ref:w,style:{width:d}},a.length&&x.length?x.map((e=>{const t=E.includes(e.value);return(0,o.createElement)("div",{key:e.value,className:T()("yith-fw-components__multiple-select__suggestion",t&&"selected"),onClick:()=>{var n;t||(n=e.value,s([...E,n]),u(""),R())}},(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__suggestion__label"},e.label),t&&(0,o.createElement)("i",{className:"yith-fw-components__multiple-select__suggestion__remove yith-icon yith-icon-close-alt",onClick:()=>{N(e.value),R()}}))})):(0,o.createElement)("div",{className:"yith-fw-components__multiple-select__suggestions__message"},a.length&&c?(0,S.sprintf)(m.noResults,c):m.noItems))))}function B(e){let{className:t,label:n,onChange:r,value:l,help:a,options:s,messages:i}=e;const c=`inspector-yith-multiple-select-control-${(0,w.useInstanceId)(B)}`;return(0,o.createElement)(v.BaseControl,{id:c,label:n,className:`block-editor-yith-multiple-select-control ${t}`,help:a},(0,o.createElement)(R,{id:c,value:l,options:s,onChange:r,messages:i}))}R.propTypes={id:N().string,className:N().string,value:N().array,options:N().arrayOf(N().shape({label:N().string,value:N().oneOfType([N().string,N().number])})),onChange:N().func},R.defaultProps={id:"",value:[],className:"",options:[],onChange:d()};const $=e=>{var t,n,r;let{attributeName:l,attributeArgs:a,attributes:s,onChange:i,blockName:c}=e;const{controlType:u,label:p,wrapper_class:h}=a,d=s[l],f=((e,t)=>{let n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n})(a,d),g=m(a,s),y=T()(`${c}__${l}-field-wrapper`,h);let _=!1;if(g)switch(u){case"select":var b,w,k;_=a.multiple?(0,o.createElement)(B,{className:y,value:d,label:p,options:null!==(b=null==a?void 0:a.options)&&void 0!==b?b:[],help:f,onChange:i,messages:null!==(w=null==a?void 0:a.messages)&&void 0!==w?w:{}}):(0,o.createElement)(v.SelectControl,{className:y,value:d,label:p,options:null!==(k=null==a?void 0:a.options)&&void 0!==k?k:[],help:f,onChange:i});break;case"text":_=(0,o.createElement)(v.TextControl,{className:y,key:l,value:d,label:p,help:f,onChange:i});break;case"textarea":_=(0,o.createElement)(v.TextareaControl,{className:y,key:l,value:d,label:p,help:f,onChange:i});break;case"toggle":_=(0,o.createElement)(v.ToggleControl,{className:y,key:l,label:p,help:f,checked:d,onChange:i});break;case"checkbox":_=(0,o.createElement)(v.CheckboxControl,{className:y,key:l,label:p,help:f,checked:d,onChange:i});break;case"number":case"range":_=(0,o.createElement)(v.RangeControl,{className:y,key:l,value:d,label:p,help:f,min:null==a?void 0:a.min,max:null==a?void 0:a.max,onChange:i});break;case"color":case"colorpicker":_=(0,o.createElement)(C,{className:y,key:l,label:p,help:f,value:d,disableAlpha:null!==(t=null==a?void 0:a.disableAlpha)&&void 0!==t&&t,onChange:i});break;case"color-palette":_=(0,o.createElement)(E,{className:y,key:l,label:p,help:f,value:d,clearable:null!==(n=null==a?void 0:a.clearable)&&void 0!==n&&n,onChange:i});break;case"radio":_=(0,o.createElement)(v.RadioControl,{key:l,label:p,options:null!==(r=null==a?void 0:a.options)&&void 0!==r?r:[],selected:d,help:f,onChange:i});break;default:_=!1}return _},I=(e,t)=>function(n){let{context:r,attributes:l,className:a,setAttributes:s}=n;return(0,o.createElement)(o.Fragment,null,!!t.attributes&&(0,o.createElement)(y.InspectorControls,null,(0,o.createElement)(v.PanelBody,null,Object.entries(t.attributes).map((t=>{let[n,r]=t;const{controlType:a}=r;return(0,o.createElement)($,{key:n,attributeArgs:r,attributeName:n,attributes:l,blockName:e,onChange:e=>((e,t,n)=>{if(["colorpicker","color"].includes(n))if("rgb"in e&&"hex"in e){const{r:t,g:n,b:o,a:r}=e.rgb;e=r<1?`rgba(${t}, ${n}, ${o}, ${r})`:e.hex}else e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString();s({[t]:e})})(e,n,a)})})))),(0,o.createElement)(b,{attributes:l,blockArgs:t,context:r}))},L=[{key:"yith_plugin_fw_gutenberg_before_do_shortcode",delay:0},{key:"yith_plugin_fw_gutenberg_success_do_shortcode",delay:200},{key:"yith_plugin_fw_gutenberg_after_do_shortcode",delay:200}];for(const e of L)(0,_.addAction)(e.key,"yith-plugin-fw/jquery-events",(function(){for(var t=arguments.length,n=new Array(t),o=0;o{jQuery(document).trigger(e.key,Object.values(n))}),e.delay):jQuery(document).trigger(e.key,Object.values(n)))}));for(const[e,t]of Object.entries(yithGutenbergBlocks))(0,s.registerBlockType)("yith/"+e,{title:t.title,description:t.description,category:t.category,attributes:t.attributes,icon:void 0!==t.icon?t.icon:p,keywords:t.keywords,edit:I(e,t),usesContext:["postId"],save:e=>{let{attributes:n}=e;return g(t,n)},deprecated:[{attributes:t.attributes,save:e=>{let{attributes:n}=e;const r=g(t,n),l=''+r+"";return(0,o.createElement)(o.RawHTML,null,l)}}]})},487:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,o=0;n>>5]|=e[n]<<24-o%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-l)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],o=0,r=0;o>>6-2*r);return n}},e.exports=n},738:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},568:function(e,t,n){var o,r,l,a,s;o=n(12),r=n(487).utf8,l=n(738),a=n(487).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):r.stringToBytes(e):l(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=o.bytesToWords(e),i=8*e.length,c=1732584193,u=-271733879,p=-1732584194,h=271733878,d=0;d>>24)|4278255360&(n[d]<<24|n[d]>>>8);n[i>>>5]|=128<>>9<<4)]=i;var f=s._ff,m=s._gg,g=s._hh,v=s._ii;for(d=0;d>>0,u=u+_>>>0,p=p+b>>>0,h=h+w>>>0}return o.endian([c,u,p,h])})._ff=function(e,t,n,o,r,l,a){var s=e+(t&n|~t&o)+(r>>>0)+a;return(s<>>32-l)+t},s._gg=function(e,t,n,o,r,l,a){var s=e+(t&o|n&~o)+(r>>>0)+a;return(s<>>32-l)+t},s._hh=function(e,t,n,o,r,l,a){var s=e+(t^n^o)+(r>>>0)+a;return(s<>>32-l)+t},s._ii=function(e,t,n,o,r,l,a){var s=e+(n^(t|~o))+(r>>>0)+a;return(s<>>32-l)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=o.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):o.bytesToHex(n)}},703:function(e,t,n){"use strict";var o=n(414);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var l=n[e]={exports:{}};return t[e](l,l.exports,o),l.exports}o.m=t,e=[],o.O=function(t,n,r,l){if(!n){var a=1/0;for(u=0;u=l)&&Object.keys(o.O).every((function(e){return o.O[e](n[i])}))?n.splice(i--,1):(s=!1,l0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[n,r,l]},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,46:0};o.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,l,a=n[0],s=n[1],i=n[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(i)var u=i(o)}for(t&&t(n);cversion, true ); 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 ); - 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 ); + 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', 'utils' ), $this->version, true ); wp_register_script( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/js/jquery.colorbox' . $suffix . '.js', array( 'jquery' ), '1.6.3', true ); wp_register_script( 'yith_how_to', YIT_CORE_PLUGIN_URL . '/assets/js/how-to' . $suffix . '.js', array( 'jquery' ), $this->version, true ); wp_register_script( 'yith-plugin-fw-wp-pages', YIT_CORE_PLUGIN_URL . '/assets/js/wp-pages' . $suffix . '.js', array( 'jquery' ), $this->version, false ); @@ -85,7 +85,8 @@ public function register_styles_and_scripts() { // Register styles. wp_register_style( 'yith-plugin-ui', YIT_CORE_PLUGIN_URL . '/assets/css/yith-plugin-ui.css', array( 'yith-plugin-fw-icon-font' ), $this->version ); - wp_register_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', array( 'yith-plugin-ui' ), $this->version ); + wp_register_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', array( 'yith-plugin-ui' ), $this->version ); // TODO: to remove. Deprecated since 4.0.0! + wp_register_style( 'yith-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/css/yith-plugin-panel.css', array( 'yith-plugin-ui' ), $this->version ); wp_register_style( 'jquery-ui-style', YIT_CORE_PLUGIN_URL . '/assets/css/jquery-ui/jquery-ui.min.css', array(), '1.11.4' ); wp_register_style( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/css/colorbox.css', array(), $this->version ); wp_register_style( 'yit-upgrade-to-pro', YIT_CORE_PLUGIN_URL . '/assets/css/yit-upgrade-to-pro.css', array( 'colorbox' ), $this->version ); @@ -132,6 +133,11 @@ public function register_styles_and_scripts() { array( 'admin_url' => admin_url( 'admin.php' ), 'ajax_url' => admin_url( 'admin-ajax.php' ), + 'i18n' => array( + 'error' => _x( 'Error', 'Title', 'yith-plugin-fw' ), + 'noFileError' => __( 'No file provided.', 'yith-plugin-fw' ), + 'cannotDropError' => __( 'You cannot drop files here.', 'yith-plugin-fw' ), + ), ) ); @@ -172,6 +178,17 @@ public function register_styles_and_scripts() { ) ); + wp_localize_script( + 'yit-plugin-panel', + 'yithFwPluginPanel', + array( + 'i18n' => array( + 'resetConfirmTitle' => __( 'Are you sure?', 'yith-plugin-fw' ), + 'resetConfirmMessage' => __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ), + ), + ) + ); + // Localize color-picker to avoid issues with WordPress 5.5. if ( version_compare( $wp_version, '5.5-RC', '>=' ) ) { wp_localize_script( diff --git a/plugin-fw/includes/class-yit-plugin-panel-woocommerce.php b/plugin-fw/includes/class-yit-plugin-panel-woocommerce.php index 1144eea..4ffba0c 100644 --- a/plugin-fw/includes/class-yit-plugin-panel-woocommerce.php +++ b/plugin-fw/includes/class-yit-plugin-panel-woocommerce.php @@ -74,6 +74,10 @@ public function __construct( $args = array() ) { $this->settings = $args; $this->tabs_path_files = $this->get_tabs_path_files(); + $this->settings['ui_version'] = $this->settings['ui_version'] ?? 1; + + $this->init_admin_tabs(); + if ( isset( $this->settings['create_menu_page'] ) && $this->settings['create_menu_page'] ) { $this->add_menu_page(); } @@ -86,6 +90,7 @@ public function __construct( $args = array() ) { $this->maybe_init_premium_tab(); $this->maybe_init_welcome_modals(); + add_filter( 'admin_body_class', array( $this, 'add_body_class' ) ); add_action( 'admin_init', array( $this, 'set_default_options' ) ); add_action( 'admin_menu', array( $this, 'add_setting_page' ) ); add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 ); @@ -97,7 +102,6 @@ public function __construct( $args = array() ) { add_filter( 'woocommerce_admin_settings_sanitize_option', array( $this, 'maybe_unserialize_panel_data' ), 10, 3 ); add_action( 'yith_plugin_fw_get_field_after', array( $this, 'add_yith_ui' ) ); - add_action( 'yith_plugin_fw_before_woocommerce_panel', array( $this, 'add_plugin_banner' ), 10, 1 ); add_action( 'admin_action_yith_plugin_fw_save_toggle_element', array( $this, 'save_toggle_element_options' ) ); add_filter( 'woocommerce_admin_settings_sanitize_option', array( $this, 'sanitize_onoff_value' ), 20, 3 ); @@ -122,7 +126,6 @@ protected static function init_actions() { if ( ! static::$actions_initialized ) { add_action( 'woocommerce_admin_field_boxinfo', array( __CLASS__, 'add_infobox' ), 10, 1 ); add_action( 'woocommerce_admin_field_yith-field', array( __CLASS__, 'add_yith_field' ), 10, 1 ); - add_filter( 'admin_body_class', array( __CLASS__, 'admin_body_class' ) ); add_filter( 'woocommerce_admin_settings_sanitize_option', array( __CLASS__, 'sanitize_option' ), 10, 3 ); @@ -155,6 +158,8 @@ public function yit_panel() { $additional_info = apply_filters( 'yith_admin_tab_params', $additional_info ); $additional_info['additional_info'] = $additional_info; + $this->render_panel_header(); + extract( $additional_info ); // phpcs:ignore WordPress.PHP.DontExtract.extract_extract require YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-panel.php'; } @@ -216,19 +221,7 @@ public function add_allowed_screen_id( $screen_ids ) { * @author Antonio La Rocca */ public function get_current_tab() { - // phpcs:disable WordPress.Security.NonceVerification.Recommended - global $pagenow; - $tabs = $this->get_available_tabs(); - $tab = $tabs[0]; - - if ( 'admin.php' === $pagenow && isset( $_REQUEST['tab'] ) && in_array( $_REQUEST['tab'], $tabs, true ) ) { - $tab = sanitize_key( wp_unslash( $_REQUEST['tab'] ) ); - } elseif ( isset( $_REQUEST['tab'] ) && 'help' === $_REQUEST['tab'] && ! empty( $this->settings['help_tab'] ) ) { - $tab = 'help'; - } - - return apply_filters( 'yith_wc_plugin_panel_current_tab', $tab ); - // phpcs:enable + return apply_filters( 'yith_wc_plugin_panel_current_tab', parent::get_current_tab() ); } /** @@ -264,26 +257,166 @@ public function add_fields() { return; } - woocommerce_admin_fields( $yit_options[ $option_key ] ); + if ( 1 === $this->get_ui_version() ) { + woocommerce_admin_fields( $yit_options[ $option_key ] ); + + return; + } + + $checkbox_group = array(); + + foreach ( $yit_options[ $option_key ] as $option ) { + if ( ! isset( $option['type'] ) ) { + continue; + } + + $field = $option; + + $type = $field['yith-type'] ?? $field['type'] ?? ''; + + if ( ! isset( $field['title'] ) ) { + $field['title'] = $field['name'] ?? ''; + } + + $field['id'] = $field['id'] ?? ''; + $field['desc'] = $field['desc'] ?? ''; + + if ( 'checkbox' === $type && isset( $field['checkboxgroup'] ) ) { + if ( 'start' === $field['checkboxgroup'] ) { + $checkbox_group = array(); + } + + $checkbox_group[] = $field; + + if ( 'end' === $field['checkboxgroup'] ) { + $first_checkbox = current( $checkbox_group ); + $html = ''; + + foreach ( $checkbox_group as $checkbox_field ) { + $checkbox_field['name'] = $checkbox_field['id']; + $checkbox_field['default'] = $checkbox_field['default'] ?? ''; + $checkbox_field['value'] = WC_Admin_Settings::get_option( $checkbox_field['id'], $checkbox_field['default'] ); + + $html .= ''; + } + + $field = array( + 'id' => '', + 'type' => 'yith-field', + 'yith-type' => 'html', + 'title' => $first_checkbox['name'] ?? '', + 'html' => '
    ' . $html . '
    ', + 'yith-display-row' => true, + ); + + } else { + continue; + } + } + + switch ( $field['type'] ) { + case 'sectionstart': + // Do nothing. + break; + case 'title': + echo '
    '; + + if ( ! empty( $field['title'] ) ) { + echo '
    '; + echo '

    ' . esc_html( $field['title'] ) . '

    '; + if ( ! empty( $field['desc'] ) ) { + echo '
    '; + echo wp_kses_post( wpautop( wptexturize( $field['desc'] ) ) ); + echo '
    '; + } + echo '
    '; + } + echo '
    '; + if ( ! empty( $field['id'] ) ) { + do_action( 'woocommerce_settings_' . sanitize_title( $field['id'] ) ); + } + break; + case 'sectionend': + if ( ! empty( $field['id'] ) ) { + do_action( 'woocommerce_settings_' . sanitize_title( $field['id'] ) . '_end' ); + } + if ( ! empty( $field['id'] ) ) { + do_action( 'woocommerce_settings_' . sanitize_title( $field['id'] ) . '_after' ); + } + + echo '
    '; + echo '
    '; + break; + case 'yith-field': + $field['type'] = $field['yith-type'] ?? ''; + if ( ! $field['type'] ) { + continue 2; + } + $field['field_name'] = $field['field_name'] ?? $field['id']; + $field['title'] = $field['title'] ?? $field['name'] ?? ''; + $field['name'] = $field['id'] ?? ''; + $field['default'] = $field['default'] ?? ''; + $field['placeholder'] = $field['placeholder'] ?? ''; + + $value = apply_filters( 'yith_plugin_fw_wc_panel_pre_field_value', null, $field ); + if ( is_null( $value ) ) { + if ( 'toggle-element' === $field['type'] || 'toggle-element-fixed' === $field['type'] ) { + $value = get_option( $field['id'], $field['default'] ); + } else { + $value = WC_Admin_Settings::get_option( $field['id'], $field['default'] ); + } + } + $field['value'] = $value; + + $field = apply_filters( 'yith_plugin_fw_wc_panel_field_data', $field ); + + $this->get_template( + 'woocommerce/woocommerce-option-row.php', + array( + 'field' => $field, + 'panel' => $this, + ) + ); + break; + default: + $name = $field['title'] ?? ''; + $field['title'] = ''; + + ob_start(); + woocommerce_admin_fields( array( $field ) ); + $html = ob_get_clean(); + + $field = array( + 'type' => 'html', + 'name' => $name, + 'html' => '' . $html . '
    ', + 'yith-display-row' => true, + ); + + $this->get_template( + 'woocommerce/woocommerce-option-row.php', + array( + 'field' => $field, + 'panel' => $this, + 'show_container' => false, + ) + ); + + } + } } /** - * Print the panel content - * check if the tab is a wc options tab or custom tab and print the content - * - * @return void - * @author Andrea Grillo - * @author Antonio La Rocca - * @author Leanza Francesco + * Print the panel content page. */ - public function print_panel_content() { + public function render_panel_content_page() { $yit_options = $this->get_main_array_options(); - $page = $this->settings['page']; $option_key = $this->get_current_option_key(); $custom_tab_options = $this->get_custom_tab_options( $yit_options, $option_key ); - $this->print_tabs_nav(); - if ( $this->is_premium_tab() && $this->has_premium_tab() ) { $this->print_premium_tab(); } elseif ( $custom_tab_options ) { @@ -291,10 +424,38 @@ public function print_panel_content() { } elseif ( $this->is_help_tab() ) { $this->print_help_tab(); } else { - include YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-form.php'; + $this->get_template( + 'woocommerce/woocommerce-form.php', + array( + 'panel' => $this, + 'option_key' => $option_key, + ) + ); } } + /** + * Print the panel content + * check if the tab is a wc options tab or custom tab and print the content + * + * @return void + * @author Andrea Grillo + * @author Antonio La Rocca + * @author Leanza Francesco + */ + public function print_panel_content() { + $option_key = $this->get_current_option_key(); + $content_id = $this->settings['page'] . '_' . $option_key; + + $this->get_template( + 'panel-content.php', + array( + 'panel' => $this, + 'content_id' => $content_id, + ) + ); + } + /** * Update options * @@ -338,10 +499,20 @@ public function woocommerce_update_options() { } } - woocommerce_update_options( $yit_options[ $option_key ] ); + $options = $yit_options[ $option_key ]; + $options = array_filter( + $options, + function ( $option ) { + return empty( $option['is_option_disabled'] ); + } + ); + + woocommerce_update_options( $options ); do_action( 'yit_panel_wc_after_update' ); + $this->add_notice( __( 'Options saved correctly!', 'yith-plugin-fw' ), 'success' ); + } elseif ( isset( $_REQUEST['yit-action'] ) && 'wc-options-reset' === sanitize_key( wp_unslash( $_REQUEST['yit-action'] ) ) && @@ -393,6 +564,8 @@ public function woocommerce_update_options() { } do_action( 'yit_panel_wc_after_reset' ); + + $this->add_notice( __( 'Options reset correctly!', 'yith-plugin-fw' ), 'success' ); } } @@ -412,8 +585,9 @@ public function admin_enqueue_scripts() { $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false; $assets_screen_ids = (array) apply_filters( 'yith_plugin_fw_wc_panel_screen_ids_for_assets', array() ); + $is_current_panel = $this->is_current_panel( false ); - if ( $screen && ( 'admin.php' === $pagenow && strpos( $screen->id, $this->settings['page'] ) !== false ) || in_array( $screen->id, $assets_screen_ids, true ) ) { + if ( $is_current_panel || in_array( $screen->id, $assets_screen_ids, true ) ) { $woocommerce_version = function_exists( 'WC' ) ? WC()->version : $woocommerce->version; $woocommerce_settings_deps = array( 'jquery', 'jquery-ui-datepicker', 'jquery-ui-sortable', 'iris' ); @@ -426,8 +600,19 @@ public function admin_enqueue_scripts() { wp_enqueue_media(); + if ( $is_current_panel ) { + if ( 1 === $this->get_ui_version() ) { + wp_enqueue_style( 'yit-plugin-style' ); + } else { + // Set the old plugin framework style to be empty, to prevent issues if any plugin is enqueueing it directly. + wp_deregister_style( 'yit-plugin-style' ); + wp_register_style( 'yit-plugin-style', false, array(), yith_plugin_fw_get_version() ); + } + } + wp_enqueue_style( 'yith-plugin-fw-fields' ); wp_enqueue_style( 'woocommerce_admin_styles' ); + wp_enqueue_style( 'yith-plugin-panel' ); wp_enqueue_script( 'woocommerce_settings', $woocommerce->plugin_url() . '/assets/js/admin/settings.min.js', $woocommerce_settings_deps, $woocommerce_version, true ); wp_localize_script( @@ -438,11 +623,6 @@ public function admin_enqueue_scripts() { ) ); wp_enqueue_script( 'yith-plugin-fw-fields' ); - } - - if ( $screen && ( 'admin.php' === $pagenow && yith_plugin_fw_is_panel() ) || in_array( $screen->id, $assets_screen_ids, true ) ) { - wp_enqueue_media(); - wp_enqueue_style( 'yit-plugin-style' ); wp_enqueue_script( 'yit-plugin-panel' ); } @@ -495,14 +675,48 @@ public static function delete_default_options_set_option() { delete_option( 'yit_plugin_fw_panel_wc_default_options_set' ); } + /** + * Add body classes in Panel pages + * + * @param string $classes Body classes. + * + * @return string + * @author Leanza Francesco + * @since 4.0.0 + */ + public function add_body_class( $classes ) { + global $pagenow; + + $assets_screen_ids = (array) apply_filters( 'yith_plugin_fw_wc_panel_screen_ids_for_assets', array() ); + $is_options_panel = $this->is_current_panel( false ); + $is_panel = $this->is_current_panel(); + + if ( $is_panel || in_array( get_current_screen()->id, $assets_screen_ids, true ) ) { + $to_add = array( + 'yith-plugin-fw-panel', + $is_options_panel ? 'woocommerce' : '', + $is_panel ? ( 'yith-plugin-fw-panel--version-' . $this->get_ui_version() ) : '', + ); + + $to_add = array_filter( $to_add ); + + foreach ( $to_add as $class_to_add ) { + $classes = ! substr_count( $classes, " $class_to_add " ) ? $classes . " $class_to_add " : $classes; + } + } + + return $classes; + } + /** * Add the WooCommerce body class in plugin panel page * * @param string $admin_body_classes The body classes. * * @return string Filtered body classes - * @since 2.0 - * @author Andrea Grillo + * @since 2.0 + * @author Andrea Grillo + * @deprecated 4.0.0 */ public static function admin_body_class( $admin_body_classes ) { global $pagenow; @@ -669,7 +883,7 @@ public function save_toggle_element_options() { check_ajax_referer( 'save-toggle-element', 'security' ); if ( ! current_user_can( $this->settings['capability'] ) ) { - wp_die( -1 ); + wp_die( - 1 ); } $posted = $_POST; @@ -698,7 +912,7 @@ public function save_toggle_element_options() { $i = 0; $new_value = array(); foreach ( $order_elements as $key ) { - $index = apply_filters( 'yith_toggle_elements_index', $i++, $key ); + $index = apply_filters( 'yith_toggle_elements_index', $i ++, $key ); $new_value[ $index ] = $value[ $key ]; } @@ -717,17 +931,21 @@ public function save_toggle_element_options() { /** * Print tabs navigation. * - * @param array $args The arguments. + * @param array $nav_args The arguments. */ - public function print_tabs_nav( $args = array() ) { + public function print_tabs_nav( $nav_args = array() ) { $defaults = array( 'premium_class' => 'yith-premium', 'parent_page' => '', - 'wrapper_class' => 'nav-tab-wrapper woo-nav-tab-wrapper', ); - $args = wp_parse_args( $args, $defaults ); - parent::print_tabs_nav( $args ); + if ( 1 === $this->get_ui_version() ) { + $defaults['wrapper_class'] = 'nav-tab-wrapper woo-nav-tab-wrapper'; + } + + $nav_args = wp_parse_args( $nav_args, $defaults ); + + parent::print_tabs_nav( $nav_args ); } /** diff --git a/plugin-fw/includes/class-yit-plugin-panel.php b/plugin-fw/includes/class-yit-plugin-panel.php index 4c48c1a..974bc7d 100644 --- a/plugin-fw/includes/class-yit-plugin-panel.php +++ b/plugin-fw/includes/class-yit-plugin-panel.php @@ -69,6 +69,13 @@ class YIT_Plugin_Panel { */ protected static $actions_initialized = false; + /** + * Notices to be shown in the panel. + * + * @var array + */ + protected $notices = array(); + /** * YIT_Plugin_Panel constructor. * @@ -95,6 +102,10 @@ public function __construct( $args = array() ) { $this->settings = $args; $this->tabs_path_files = $this->get_tabs_path_files(); + $this->settings['ui_version'] = $this->settings['ui_version'] ?? 1; + + $this->init_admin_tabs(); + if ( isset( $this->settings['create_menu_page'] ) && $this->settings['create_menu_page'] ) { $this->add_menu_page(); } @@ -107,6 +118,7 @@ public function __construct( $args = array() ) { $this->maybe_init_premium_tab(); $this->maybe_init_welcome_modals(); + add_filter( 'admin_body_class', array( $this, 'add_body_class' ) ); add_action( 'admin_init', array( $this, 'register_settings' ) ); add_action( 'admin_menu', array( $this, 'add_setting_page' ), 20 ); add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 ); @@ -123,11 +135,36 @@ public function __construct( $args = array() ) { } add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); - - add_action( 'yith_plugin_fw_before_yith_panel', array( $this, 'add_plugin_banner' ), 10, 1 ); add_action( 'wp_ajax_yith_plugin_fw_save_toggle_element', array( $this, 'save_toggle_element_options' ) ); } + /** + * Init the admin tabs. + * + * @since 4.0.0 + */ + protected function init_admin_tabs() { + foreach ( $this->settings['admin-tabs'] as $key => $tab ) { + if ( ! is_array( $tab ) ) { + $this->settings['admin-tabs'][ $key ] = array( + 'title' => $tab, + 'description' => '', + 'icon' => '', + ); + } + } + } + + /** + * Retrieve the UI version of the panel. + * + * @return int + * @since 4.0.0 + */ + protected function get_ui_version() { + return absint( $this->settings['ui_version'] ); + } + /** * Is this a custom post type page? * @@ -188,7 +225,14 @@ public function init_wp_with_tabs() { ); if ( ! $is_block_editor ) { - wp_enqueue_style( 'yit-plugin-style' ); + if ( 1 === $this->get_ui_version() ) { + wp_enqueue_style( 'yit-plugin-style' ); + } else { + // Set the old plugin framework style to be empty, to prevent issues if any plugin is enqueueing it directly. + wp_deregister_style( 'yit-plugin-style' ); + wp_register_style( 'yit-plugin-style', false, array(), yith_plugin_fw_get_version() ); + } + wp_enqueue_style( 'yith-plugin-panel' ); wp_enqueue_style( 'yith-plugin-fw-fields' ); wp_enqueue_script( 'yith-plugin-fw-wp-pages' ); } @@ -213,8 +257,6 @@ public function init_wp_with_tabs() { */ protected static function init_actions() { if ( ! static::$actions_initialized ) { - add_filter( 'admin_body_class', array( __CLASS__, 'add_body_class' ) ); - // Sort plugins by name in YITH Plugins menu. add_action( 'admin_menu', array( __CLASS__, 'sort_plugins' ), 90 ); add_filter( 'add_menu_classes', array( __CLASS__, 'add_menu_class_in_yith_plugin' ) ); @@ -232,11 +274,11 @@ protected function maybe_init_vars() { $this->main_array_options = array(); $this->tabs_hierarchy = array(); - foreach ( $this->settings['admin-tabs'] as $item => $v ) { + foreach ( $this->settings['admin-tabs'] as $item => $tab ) { $path = trailingslashit( $options_path ) . $item . '-options.php'; $path = apply_filters( 'yith_plugin_panel_item_options_path', $path, $options_path, $item, $this ); if ( file_exists( $path ) ) { - $_tab = include $path; + $_tab = $this->get_options_from_path( $path ); $this->main_array_options = array_merge( $this->main_array_options, $_tab ); $sub_tabs = $this->get_sub_tabs( $_tab ); $current_tab_key = array_keys( $_tab )[0]; @@ -246,7 +288,11 @@ protected function maybe_init_vars() { 'parent' => '', 'has_sub_tabs' => ! ! $sub_tabs, ), - $this->get_tab_info_by_options( $_tab[ $current_tab_key ] ) + $this->get_tab_info_by_options( $_tab[ $current_tab_key ] ), + array( + 'title' => $tab['title'], + 'description' => $tab['description'] ?? '', + ) ); foreach ( $sub_tabs as $sub_item => $sub_options ) { @@ -257,11 +303,18 @@ protected function maybe_init_vars() { $sub_tab_path = apply_filters( 'yith_plugin_panel_sub_tab_item_options_path', $sub_tab_path, $sub_tabs, $sub_item, $this ); if ( file_exists( $sub_tab_path ) ) { - $_sub_tab = include $sub_tab_path; + $_sub_tab = $this->get_options_from_path( $sub_tab_path ); $this->main_array_options = array_merge( $this->main_array_options, $_sub_tab ); $current_sub_tab_key = array_keys( $_sub_tab )[0]; - $this->tabs_hierarchy[ $current_sub_tab_key ] = array_merge( array( 'parent' => $current_tab_key ), $this->get_tab_info_by_options( $_sub_tab[ $current_sub_tab_key ] ) ); + $this->tabs_hierarchy[ $current_sub_tab_key ] = array_merge( + array( 'parent' => $current_tab_key ), + $this->get_tab_info_by_options( $_sub_tab[ $current_sub_tab_key ] ), + array( + 'title' => $sub_options['title'], + 'description' => $sub_options['description'] ?? '', + ) + ); } } } @@ -270,21 +323,51 @@ protected function maybe_init_vars() { } /** - * Add yith-plugin-fw-panel in body classes in Panel pages + * Add a notice to be shown in the panel. * - * @param string $admin_body_classes Body classes. + * @param string $message The message. + * @param string $type The type of the notice. Use the same types of the "notice" component. + * + * @return void + * @since 4.0.0 + */ + protected function add_notice( string $message, string $type = 'info' ) { + $this->notices[] = array( + 'message' => $message, + 'type' => $type, + ); + } + + /** + * Retrieve the notices to be shown. + * + * @return array + * @since 4.0.0 + */ + public function get_notices(): array { + return $this->notices; + } + + /** + * Add body classes in Panel pages + * + * @param string $classes Body classes. * - * @author Leanza Francesco * @return string + * @author Leanza Francesco * @since 3.0.0 */ - public static function add_body_class( $admin_body_classes ) { + public function add_body_class( $classes ) { global $pagenow; - if ( ( 'admin.php' === $pagenow && strpos( get_current_screen()->id, 'yith-plugins_page' ) !== false ) ) { - $admin_body_classes = ! substr_count( $admin_body_classes, ' yith-plugin-fw-panel ' ) ? $admin_body_classes . ' yith-plugin-fw-panel ' : $admin_body_classes; + + if ( ( 'admin.php' === $pagenow && strpos( get_current_screen()->id, $this->settings['page'] ) !== false ) || $this->get_current_tab() ) { + $to_add = array( 'yith-plugin-fw-panel', 'yith-plugin-fw-panel--version-' . $this->get_ui_version() ); + foreach ( $to_add as $class_to_add ) { + $classes = ! substr_count( $classes, " $class_to_add " ) ? $classes . " $class_to_add " : $classes; + } } - return $admin_body_classes; + return $classes; } /** @@ -329,22 +412,32 @@ public function remove_duplicate_submenu_page() { public function admin_enqueue_scripts() { global $pagenow; - if ( 'admin.php' === $pagenow && strpos( get_current_screen()->id, $this->settings['page'] ) !== false || apply_filters( 'yit_plugin_panel_asset_loading', false ) ) { + $is_current_panel = $this->is_current_panel( false ); + + if ( $is_current_panel || apply_filters( 'yit_plugin_panel_asset_loading', false ) ) { wp_enqueue_media(); + if ( $is_current_panel ) { + if ( 1 === $this->get_ui_version() ) { + wp_enqueue_style( 'yit-plugin-style' ); + } else { + // Set the old plugin framework style to be empty, to prevent issues if any plugin is enqueueing it directly. + wp_deregister_style( 'yit-plugin-style' ); + wp_register_style( 'yit-plugin-style', false, array(), yith_plugin_fw_get_version() ); + } + } + wp_enqueue_style( 'yith-plugin-fw-fields' ); wp_enqueue_style( 'jquery-ui-style' ); + wp_enqueue_style( 'yith-plugin-panel' ); wp_enqueue_script( 'jquery-ui' ); wp_enqueue_script( 'jquery-ui-core' ); wp_enqueue_script( 'jquery-ui-dialog' ); wp_enqueue_script( 'yith_how_to' ); wp_enqueue_script( 'yith-plugin-fw-fields' ); - } - if ( ( 'admin.php' === $pagenow && yith_plugin_fw_is_panel() ) || apply_filters( 'yit_plugin_panel_asset_loading', false ) ) { wp_enqueue_media(); - wp_enqueue_style( 'yit-plugin-style' ); wp_enqueue_script( 'yit-plugin-panel' ); } @@ -392,8 +485,8 @@ public function add_setting_page() { * * @param array $field The field to validate. * - * @author Emanuela Castorina * @return array validated fields + * @author Emanuela Castorina */ public function options_validate( $field ) { $option_key = ! empty( $field['option_key'] ) ? $field['option_key'] : 'general'; @@ -401,7 +494,12 @@ public function options_validate( $field ) { $validated_fields = $this->get_options(); foreach ( $yit_options[ $option_key ] as $section => $data ) { - foreach ( $data as $option ) { + foreach ( $data as $key => $option ) { + if ( ! empty( $option['is_option_disabled'] ) ) { + unset( $yit_options[ $option_key ][ $section ][ $key ] ); + continue; + } + if ( isset( $option['sanitize_call'] ) && isset( $option['id'] ) ) { if ( is_array( $option['sanitize_call'] ) ) { foreach ( $option['sanitize_call'] as $callback ) { @@ -465,82 +563,29 @@ public function add_premium_version_upgrade_to_menu() { /** * Print the tabs navigation * - * @param array $args Nav Arguments. + * @param array $nav_args Nav Arguments. * * @author Leanza Francesco * @since 3.4.0 */ - public function print_tabs_nav( $args = array() ) { + public function print_tabs_nav( $nav_args = array() ) { $defaults = array( - 'current_tab' => $this->get_current_tab(), - 'premium_class' => isset( $this->settings['class'] ) ? 'yith-premium' : 'premium', - 'page' => $this->settings['page'], - 'parent_page' => $this->settings['parent_page'], - 'wrapper_class' => 'nav-tab-wrapper', + 'current_tab' => $this->get_current_tab(), + 'current_sub_tab' => $this->get_current_sub_tab(), + 'premium_class' => isset( $this->settings['class'] ) ? 'yith-premium' : 'premium', + 'page' => $this->settings['page'], + 'parent_page' => $this->settings['parent_page'], + 'wrapper_class' => $this->get_ui_version() > 1 ? '' : 'nav-tab-wrapper', ); - $args = wp_parse_args( $args, $defaults ); - - list ( $wrapper_class ) = yith_plugin_fw_extract( $args, 'wrapper_class' ); - - $tabs = '
      '; - - foreach ( $this->settings['admin-tabs'] as $tab => $tab_value ) { - $tabs .= $this->get_tab_nav( $tab, $tab_value, $args ); - } - - $tabs .= '
    '; - ?> -

    - -

    - print_sub_tabs_nav( $args ); - } - - /** - * Get HTML for single tab in tabs navigation - * - * @param string $tab_slug Tab slug. - * @param string $tab_name Tab name. - * @param array $args Nav Arguments. - * - * @author Antonio La Rocca - * @return string Tab HTML - * - * @since 3.4.0 - */ - protected function get_tab_nav( $tab_slug, $tab_name, $args = array() ) { - list ( $current_tab, $premium_class, $page, $parent_page ) = yith_plugin_fw_extract( $args, 'current_tab', 'premium_class', 'page', 'parent_page' ); - - $active_class = $current_tab === $tab_slug ? ' nav-tab-active' : ''; - - if ( 'premium' === $tab_slug ) { - $active_class .= ' ' . $premium_class; - } - $active_class = apply_filters( 'yith_plugin_fw_panel_active_tab_class', $active_class, $current_tab, $tab_slug ); - - $first_sub_tab = $this->get_first_sub_tab_key( $tab_slug ); - $sub_tab = ! ! $first_sub_tab ? $first_sub_tab : ''; - $sub_tabs = $this->get_sub_tabs( $tab_slug ); - $url = $this->get_nav_url( $page, $tab_slug, $sub_tab, $parent_page ); - $icon = ( $current_tab !== $tab_slug && $sub_tabs ) ? '' : ''; - - $tab = '
  • '; - - $tab .= '' . wp_kses_post( $tab_name ) . $icon . ''; + $nav_args = wp_parse_args( $nav_args, $defaults ); - if ( $current_tab !== $tab_slug && $sub_tabs ) { - $tab .= ''; - } - $tab .= '
  • '; - - return $tab; + $this->get_template( + 'panel-nav.php', + array( + 'panel' => $this, + 'nav_args' => $nav_args, + ) + ); } /** @@ -605,6 +650,51 @@ public function print_sub_tabs_nav( $args = array() ) { } } + /** + * Print the panel content page. + * + * @since 4.0.0 + */ + public function render_panel_content_page() { + $yit_options = $this->get_main_array_options(); + $option_key = $this->get_current_option_key(); + $custom_tab_options = $this->get_custom_tab_options( $yit_options, $option_key ); + + if ( $this->is_premium_tab() && $this->has_premium_tab() ) { + $this->print_premium_tab(); + } elseif ( $custom_tab_options ) { + $this->print_custom_tab( $custom_tab_options ); + } elseif ( $this->is_help_tab() ) { + $this->print_help_tab(); + } else { + $this->get_template( + 'panel-content-page.php', + array( + 'panel' => $this, + 'form_method' => apply_filters( 'yit_admin_panel_form_method', 'POST', $option_key ), + 'panel_content_class' => apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap', $option_key ), + 'option_key' => $option_key, + ) + ); + } + } + + /** + * Print the mobile header. + * + * @since 4.0.0 + */ + protected function render_mobile_header() { + if ( $this->get_ui_version() > 1 ) { + $this->get_template( + 'panel-mobile-header.php', + array( + 'header_title' => $this->get_header_title(), + ) + ); + } + } + /** * Show a tabbed panel to setting page * a callback function called by add_setting_page => add_submenu_page @@ -612,66 +702,25 @@ public function print_sub_tabs_nav( $args = array() ) { * @author Emanuela Castorina */ public function yit_panel() { - $yit_options = $this->get_main_array_options(); - $wrap_class = isset( $this->settings['class'] ) ? $this->settings['class'] : ''; + $wrap_class = $this->settings['class'] ?? ''; + $option_key = $this->get_current_option_key(); + $content_id = $this->settings['page'] . '_' . $option_key; - $option_key = $this->get_current_option_key(); - $custom_tab_options = $this->get_custom_tab_options( $yit_options, $option_key ); + $this->render_panel_header(); ?> -
    +

    settings['page'] ); - $this->print_tabs_nav(); - if ( $this->is_premium_tab() && $this->has_premium_tab() ) { - $this->print_premium_tab(); - - return; - } elseif ( $custom_tab_options ) { - $this->print_custom_tab( $custom_tab_options ); - - return; - } elseif ( $this->is_help_tab() ) { - $this->print_help_tab(); - - return; - } - - $form_method = apply_filters( 'yit_admin_panel_form_method', 'POST', $option_key ); - $panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap', $option_key ); + $this->get_template( + 'panel-content.php', + array( + 'panel' => $this, + 'content_id' => $content_id, + ) + ); ?> -
    - message(); ?> -
    -

    get_tab_title() ); ?>

    - is_show_form() ) : ?> -
    - -

     

    - settings['parent'] . '_options' ); ?> - - - - - -
    -
    - - - -
    -

     

    - -
    -
    get_ui_version() > 1 ) { + $hierarchy = $this->get_tabs_hierarchy(); + $hierarchy_page_info = $hierarchy[ $option_key ] ?? array(); + $parent = $hierarchy_page_info['parent'] ?? ''; + $hierarchy_parent_info = $hierarchy[ $parent ] ?? array(); + $inherited_values = array( 'title', 'description' ); + + if ( $hierarchy_page_info ) { + foreach ( $inherited_values as $inherited_value ) { + if ( ! isset( $option[ $inherited_value ] ) && isset( $hierarchy_page_info[ $inherited_value ] ) ) { + $option[ $inherited_value ] = $hierarchy_page_info[ $inherited_value ]; + } + } + } + } + return $option; } else { return false; @@ -737,9 +803,9 @@ public function get_tab_info_by_options( $tab_options ) { $info['type'] = $type; if ( 'post_type' === $type ) { - $info['post_type'] = isset( $first['post_type'] ) ? $first['post_type'] : ''; + $info['post_type'] = $first['post_type'] ?? ''; } elseif ( 'taxonomy' === $type ) { - $info['taxonomy'] = isset( $first['taxonomy'] ) ? $first['taxonomy'] : ''; + $info['taxonomy'] = $first['taxonomy'] ?? ''; } return $info; @@ -761,7 +827,7 @@ public function print_custom_tab( $options ) { $current_tab = $this->get_current_tab(); $current_sub_tab = $this->get_current_sub_tab(); - include YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/custom-tab.php'; + $this->get_template( 'custom-tab.php', compact( 'options', 'current_tab', 'current_sub_tab' ) ); } /** @@ -777,8 +843,8 @@ public function has_help_tab() { /** * Checks whether current tab is special Help Tab * - * @author Antonio La Rocca * @return bool Whether current tab is Help Tab + * @author Antonio La Rocca */ public function is_help_tab() { return 'help' === $this->get_current_tab(); @@ -787,8 +853,8 @@ public function is_help_tab() { /** * Prints special Help Tab * - * @author Antonio La Rocca * @return void + * @author Antonio La Rocca */ public function print_help_tab() { $options = isset( $this->settings['help_tab'] ) ? $this->settings['help_tab'] : array(); @@ -801,8 +867,9 @@ public function print_help_tab() { } // translators: 1. Plugin name. - $default_title = $is_premium ? _x( 'Thank you for purchasing %s!', 'Help tab default title', 'yith-plugin-fw' ) : _x( 'Thank you for using %s!', 'Help tab default title', 'yith-plugin-fw' ); - $default_doc_url = $this->get_doc_url(); + $default_title = $is_premium ? _x( 'Thank you for purchasing %s!', 'Help tab default title', 'yith-plugin-fw' ) : _x( 'Thank you for using %s!', 'Help tab default title', 'yith-plugin-fw' ); + $default_doc_url = $this->get_doc_url(); + $default_support_url = $is_extended ? add_query_arg( array( 'page' => 'bluehost' ), admin_url( 'admin.php' ) ) . '#/help' : 'https://yithemes.com/my-account/support/submit-a-ticket/'; // parse options. $options = wp_parse_args( @@ -814,7 +881,7 @@ public function print_help_tab() { 'playlists' => array(), 'hc_url' => 'https://support.yithemes.com/hc/', 'doc_url' => $default_doc_url, - 'submit_ticket_url' => 'https://yithemes.com/my-account/support/submit-a-ticket/', + 'submit_ticket_url' => $default_support_url, 'show_hc_articles' => true, 'show_submit_ticket' => true, ) @@ -840,15 +907,13 @@ public function print_help_tab() { } } - if ( $is_extended && $options['show_submit_ticket'] ) { - $options['submit_ticket_url'] = add_query_arg( array( 'page' => 'bluehost' ), admin_url( 'admin.php' ) ) . '#/help'; - } - // set template variables. $current_tab = $this->get_current_tab(); $current_sub_tab = $this->get_current_sub_tab(); $latest_articles = isset( $this->settings['plugin_slug'] ) ? YIT_Help_Desk::get_latest_articles( $this->settings['plugin_slug'] ) : array(); + $options = apply_filters( 'yith_plugin_fw_panel_help_tab_options', $options, $this->settings ); + include YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/help-tab.php'; } @@ -860,7 +925,11 @@ public function print_help_tab() { */ protected function maybe_init_premium_tab() { if ( isset( $this->settings['premium_tab'] ) ) { - $this->settings['admin-tabs']['premium'] = _x( 'Get premium', 'Premium tab name', 'yith-plugin-fw' ); + $this->settings['admin-tabs']['premium'] = array( + 'title' => _x( 'Get premium', 'Premium tab name', 'yith-plugin-fw' ), + 'icon' => 'premium', + 'description' => '', + ); } } @@ -872,15 +941,19 @@ protected function maybe_init_premium_tab() { */ protected function maybe_init_help_tab() { if ( $this->has_help_tab() ) { - $this->settings['admin-tabs']['help'] = _x( 'Help', 'Help tab name', 'yith-plugin-fw' ); + $this->settings['admin-tabs']['help'] = array( + 'title' => _x( 'Help', 'Help tab name', 'yith-plugin-fw' ), + 'icon' => 'help', + 'description' => '', + ); } } /** * Get the plugin doc URL. * - * @author Leanza Francesco * @return string + * @author Leanza Francesco * @since 3.9.14 */ protected function get_doc_url() { @@ -895,8 +968,8 @@ protected function get_doc_url() { /** * Is in panel? * - * @author Leanza Francesco * @return bool + * @author Leanza Francesco * @since 3.9.14 */ protected function is_panel(): bool { @@ -909,8 +982,8 @@ protected function is_panel(): bool { /** * Is this the first panel page? * - * @author Leanza Francesco * @return bool + * @author Leanza Francesco * @since 3.9.14 */ protected function is_first_page(): bool { @@ -1023,7 +1096,7 @@ public function maybe_print_welcome_modal() { 'welcome-modal-close' ); $plugin = array( - 'name' => $this->settings['plugin_name'] ?? $this->settings['page_title'] ?? '', + 'name' => $this->get_plugin_name(), 'version' => $this->settings['plugin_version'] ?? '', 'slug' => $this->settings['plugin_slug'] ?? '', 'icon' => $this->settings['plugin_icon'] ?? '', @@ -1088,8 +1161,8 @@ public function maybe_print_welcome_modal() { /** * Checks whether current tab is Premium Tab * - * @author Giuseppe Arcifa * @return bool + * @author Giuseppe Arcifa * @since 3.9.0 */ protected function is_premium_tab() { @@ -1100,8 +1173,8 @@ protected function is_premium_tab() { * Check if panel has premium tab * (Check for premium Tab through the premium_tab param fully handled by plugin-fw) * - * @author Giuseppe Arcifa * @return bool + * @author Giuseppe Arcifa * @since 3.9.0 */ protected function has_premium_tab() { @@ -1111,8 +1184,8 @@ protected function has_premium_tab() { /** * Prints Premium Tab * - * @author Giuseppe Arcifa * @return void + * @author Giuseppe Arcifa * @since 3.9.0 */ protected function print_premium_tab() { @@ -1151,7 +1224,7 @@ public function add_fields() { } foreach ( $yit_options[ $option_key ] as $section => $data ) { - add_settings_section( "yit_settings_{$option_key}_{$section}", $this->get_section_title( $section ), $this->get_section_description( $section ), 'yit' ); + add_settings_section( "yit_settings_{$option_key}_{$section}", $this->get_section_title( $section ), '__return_empty_string', 'yit', array( 'description' => $this->get_section_description( $section ) ) ); foreach ( $data as $option ) { if ( isset( $option['id'] ) && isset( $option['type'] ) && isset( $option['name'] ) ) { add_settings_field( @@ -1184,13 +1257,13 @@ public function add_admin_bar_menu() { } if ( ! empty( $this->settings['admin_tabs'] ) ) { - foreach ( $this->settings['admin-tabs'] as $item => $title ) { + foreach ( $this->settings['admin-tabs'] as $key => $tab ) { $wp_admin_bar->add_menu( array( 'parent' => $this->settings['parent'], - 'title' => $title, - 'id' => $this->settings['parent'] . '-' . $item, - 'href' => admin_url( 'themes.php' ) . '?page=' . $this->settings['parent_page'] . '&tab=' . $item, + 'title' => $tab['title'], + 'id' => $this->settings['parent'] . '-' . $key, + 'href' => admin_url( 'themes.php' ) . '?page=' . $this->settings['parent_page'] . '&tab=' . $key, ) ); } @@ -1201,14 +1274,13 @@ public function add_admin_bar_menu() { * Get current tab. * Retrieve the id of tab shown, return general is the current tab is not defined. * - * @author Emanuela Castorina * @return string|false + * @author Emanuela Castorina * @since 3.9.14 Check for WP pages. */ public function get_current_tab() { // phpcs:disable WordPress.Security.NonceVerification.Recommended $admin_tabs = array_keys( $this->settings['admin-tabs'] ); - global $post_type, $taxonomy; $wp_tabs = array(); if ( $this->is_custom_post_type_page() ) { @@ -1239,8 +1311,8 @@ public function get_current_tab() { /** * Get the current sub-tab. * - * @author Leanza Francesco * @return string The key of the sub-tab if exists, empty string otherwise. + * @author Leanza Francesco * @since 3.4.0 * @since 3.9.14 Check for WP pages. */ @@ -1279,8 +1351,8 @@ public function get_current_sub_tab() { * for sub-tabbed tabs, it will return the current sub-tab. * fot normal tabs, it will return the current tab. * - * @author Leanza Francesco * @return string the current sub-tab, if exists; the current tab otherwise. + * @author Leanza Francesco * @since 3.4.0 */ public function get_current_option_key() { @@ -1304,17 +1376,17 @@ public function get_current_option_key() { public function message() { // phpcs:disable WordPress.Security.NonceVerification.Recommended $message = array( - 'element_exists' => $this->get_message( '' . __( 'The element you have entered already exists. Please, enter another name.', 'yith-plugin-fw' ) . '', 'error', false ), - 'saved' => $this->get_message( '' . __( 'Settings saved', 'yith-plugin-fw' ) . '.', 'updated', false ), - 'reset' => $this->get_message( '' . __( 'Settings reset', 'yith-plugin-fw' ) . '.', 'updated', false ), - 'delete' => $this->get_message( '' . __( 'Element deleted correctly.', 'yith-plugin-fw' ) . '', 'updated', false ), - 'updated' => $this->get_message( '' . __( 'Element updated correctly.', 'yith-plugin-fw' ) . '', 'updated', false ), - 'settings-updated' => $this->get_message( '' . __( 'Element updated correctly.', 'yith-plugin-fw' ) . '', 'updated', false ), - 'imported' => $this->get_message( '' . __( 'Database imported correctly.', 'yith-plugin-fw' ) . '', 'updated', false ), - 'no-imported' => $this->get_message( '' . __( 'An error has occurred during import. Please try again.', 'yith-plugin-fw' ) . '', 'error', false ), - 'file-not-valid' => $this->get_message( '' . __( 'The added file is not valid.', 'yith-plugin-fw' ) . '', 'error', false ), - 'cant-import' => $this->get_message( '' . __( 'Sorry, import is disabled.', 'yith-plugin-fw' ) . '', 'error', false ), - 'ord' => $this->get_message( '' . __( 'Sorting successful.', 'yith-plugin-fw' ) . '', 'updated', false ), + 'element_exists' => $this->get_message( __( 'The element you have entered already exists. Please, enter another name.', 'yith-plugin-fw' ), 'error', false ), + 'saved' => $this->get_message( __( 'Settings saved', 'yith-plugin-fw' ) . '.', 'success', false ), + 'reset' => $this->get_message( __( 'Settings reset', 'yith-plugin-fw' ) . '.', 'success', false ), + 'delete' => $this->get_message( __( 'Element deleted correctly.', 'yith-plugin-fw' ), 'success', false ), + 'updated' => $this->get_message( __( 'Element updated correctly.', 'yith-plugin-fw' ), 'success', false ), + 'settings-updated' => $this->get_message( __( 'Element updated correctly.', 'yith-plugin-fw' ), 'success', false ), + 'imported' => $this->get_message( __( 'Database imported correctly.', 'yith-plugin-fw' ), 'success', false ), + 'no-imported' => $this->get_message( __( 'An error has occurred during import. Please try again.', 'yith-plugin-fw' ), 'error', false ), + 'file-not-valid' => $this->get_message( __( 'The added file is not valid.', 'yith-plugin-fw' ), 'error', false ), + 'cant-import' => $this->get_message( __( 'Sorry, import is disabled.', 'yith-plugin-fw' ), 'error', false ), + 'ord' => $this->get_message( __( 'Sorting successful.', 'yith-plugin-fw' ), 'success', false ), ); foreach ( $message as $key => $value ) { @@ -1333,24 +1405,27 @@ public function message() { * @param string $type The type of message (can be 'error' or 'updated'). * @param bool $echo Set to true if you want to print the message. * - * @author Emanuela Castorina * @return string + * @author Emanuela Castorina */ public function get_message( $message, $type = 'error', $echo = true ) { - $message = '

    ' . wp_kses_post( $message ) . '

    '; - if ( $echo ) { - echo wp_kses_post( $message ); - } - - return $message; + return yith_plugin_fw_get_component( + array( + 'type' => 'notice', + 'notice_type' => $type, + 'message' => $message, + 'inline' => $this->get_ui_version() > 1, + ), + $echo + ); } /** * Get Tab Path Files * return an array with file names of tabs * - * @author Emanuela Castorina * @return array + * @author Emanuela Castorina */ public function get_tabs_path_files() { $option_files_path = $this->settings['options-path'] . '/'; @@ -1374,8 +1449,8 @@ public function get_tabs_path_files() { * Get main array options * return an array with all options defined on options-files * - * @author Emanuela Castorina * @return array + * @author Emanuela Castorina */ public function get_main_array_options() { $this->maybe_init_vars(); @@ -1454,8 +1529,8 @@ public function get_first_sub_tab_key( $_tab = false ) { * Set an array with all default options * put default options in an array * - * @author Emanuela Castorina * @return array + * @author Emanuela Castorina */ public function get_default_options() { $yit_options = $this->get_main_array_options(); @@ -1481,8 +1556,8 @@ public function get_default_options() { * Get the title of the tab * return the title of tab * - * @author Emanuela Castorina * @return string + * @author Emanuela Castorina */ public function get_tab_title() { $yit_options = $this->get_main_array_options(); @@ -1505,15 +1580,16 @@ public function get_tab_title() { * * @param string $section The section. * - * @author Emanuela Castorina * @return string + * @author Emanuela Castorina */ public function get_section_title( $section ) { $yit_options = $this->get_main_array_options(); $option_key = $this->get_current_option_key(); + $title_types = $this->get_ui_version() > 1 ? array( 'title', 'section' ) : array( 'section' ); foreach ( $yit_options[ $option_key ][ $section ] as $option ) { - if ( isset( $option['type'] ) && 'section' === $option['type'] ) { + if ( isset( $option['type'] ) && in_array( $option['type'], $title_types, true ) ) { return $option['name']; } } @@ -1527,16 +1603,17 @@ public function get_section_title( $section ) { * * @param string $section The section. * - * @author Emanuela Castorina * @return string + * @author Emanuela Castorina */ public function get_section_description( $section ) { $yit_options = $this->get_main_array_options(); $option_key = $this->get_current_option_key(); + $title_types = $this->get_ui_version() > 1 ? array( 'title', 'section' ) : array( 'section' ); foreach ( $yit_options[ $option_key ][ $section ] as $option ) { - if ( isset( $option['type'] ) && 'section' === $option['type'] && isset( $option['desc'] ) ) { - return '

    ' . $option['desc'] . '

    '; + if ( isset( $option['type'] ) && in_array( $option['type'], $title_types, true ) && isset( $option['desc'] ) ) { + return $option['desc']; } } @@ -1548,8 +1625,8 @@ public function get_section_description( $section ) { * Show form when necessary * return true if 'showform' is not defined * - * @author Emanuela Castorina * @return bool + * @author Emanuela Castorina */ public function is_show_form() { $yit_options = $this->get_main_array_options(); @@ -1575,8 +1652,8 @@ public function is_show_form() { * * @param string $name The name. * - * @author Emanuela Castorina * @return string + * @author Emanuela Castorina */ public function get_name_field( $name = '' ) { return 'yit_' . $this->settings['parent'] . '_options[' . $name . ']'; @@ -1588,8 +1665,8 @@ public function get_name_field( $name = '' ) { * * @param string $id The ID. * - * @author Emanuela Castorina * @return string + * @author Emanuela Castorina */ public function get_id_field( $id ) { return 'yit_' . $this->settings['parent'] . '_options_' . $id; @@ -1603,11 +1680,36 @@ public function get_id_field( $id ) { * * @param array $param The parameters. * - * @author Emanuela Castorina * @return void + * @author Emanuela Castorina */ public function render_field( $param ) { if ( ! empty( $param ) && isset( $param ['option'] ) ) { + + if ( $this->get_ui_version() > 1 ) { + $field = $param['option']; + $field_id = $field['id']; + $db_options = $this->get_options(); + + if ( 'on-off' === $field['type'] ) { + $field['type'] = 'onoff'; + } + $std = $field['std'] ?? ''; + $db_value = $db_options[ $field_id ] ?? $std; + $field_template_path = yith_plugin_fw_get_field_template_path( $field ); + if ( $field_template_path ) { + $field['id'] = $this->get_id_field( $field_id ); + $field['name'] = $this->get_name_field( $field_id ); + $field['value'] = $db_value; + + yith_plugin_fw_get_field( $field, true, true ); + } else { + do_action( "yit_panel_{$field['type']}", $field, $db_value ); + } + + return; + } + $option = $param['option']; $db_options = $this->get_options(); @@ -1646,8 +1748,8 @@ public function render_field( $param ) { * return the options from db, if the options aren't defined in the db, * get the default options ad add the options in the db * - * @author Emanuela Castorina * @return array + * @author Emanuela Castorina */ public function get_options() { $options = get_option( 'yit_' . $this->settings['parent'] . '_options' ); @@ -1721,8 +1823,8 @@ function ( $a, $b ) { * * @param array $menu The menu. * - * @author Leanza Francesco * @return array + * @author Leanza Francesco * @since 3.0.0 */ public static function add_menu_class_in_yith_plugin( $menu ) { @@ -1780,44 +1882,41 @@ public function is_premium() { return ! empty( $this->settings['is_premium'] ); } + /** + * Render the panel header. + * + * @return void + * @since 4.0.0 + */ + public function render_panel_header() { + $this->render_mobile_header(); + $this->get_template( + 'panel-header.php', + array( + 'title' => $this->settings['page_title'], + 'is_free' => $this->is_free(), + 'rate_url' => isset( $this->settings['plugin_slug'] ) ? apply_filters( 'yith_plugin_fw_rate_url', 'https://wordpress.org/support/plugin/' . $this->settings['plugin_slug'] . '/reviews/#new-post' ) : '', + ) + ); + } + /** * Add plugin banner. * * @param string $page The page. + * + * @deprecated 4.0.0 */ public function add_plugin_banner( $page ) { + if ( $this->get_ui_version() < 1 ) { + return; + } + if ( $page !== $this->settings['page'] || ! isset( $this->settings['class'] ) ) { return; } - ?> - is_free() && isset( $this->settings['plugin_slug'] ) ) : ?> - settings['plugin_slug'] . '/reviews/#new-post' ); - ?> -

    -
    -

    settings['page_title'] ); ?>

    -
    -
    - %s %s %s %s', - esc_html__( 'We need your support', 'yith-plugin-fw' ), - esc_html__( 'to keep updating and improving the plugin. Please,', 'yith-plugin-fw' ), - esc_url( $rate_link ), - esc_html__( 'help us by leaving a good review', 'yith-plugin-fw' ), - esc_html__( ':) Thanks!', 'yith-plugin-fw' ) - ); - ?> -
    - -

    -
    -

    settings['page_title'] ); ?>

    -
    - - render_panel_header(); } /** @@ -1951,16 +2050,15 @@ public function print_panel_tabs_in_wp_pages() { if ( self::$panel_tabs_in_wp_pages && 'all_admin_notices' === current_action() ) { global $pagenow; - wp_enqueue_style( 'yit-plugin-style' ); wp_enqueue_script( 'yit-plugin-panel' ); - $wrap_class = isset( $this->settings['class'] ) ? $this->settings['class'] : ''; - $options = isset( self::$panel_tabs_in_wp_pages['options'] ) ? self::$panel_tabs_in_wp_pages['options'] : array(); + $wrap_class = $this->settings['class'] ?? ''; + $options = self::$panel_tabs_in_wp_pages['options'] ?? array(); $options_to_classes = array( 'type', 'post_type', 'taxonomy' ); $page_wrapper_classes = array( 'yith-plugin-fw-wp-page-wrapper', - isset( $options['wrapper-class'] ) ? $options['wrapper-class'] : '', + $options['wrapper-class'] ?? '', ); if ( in_array( $pagenow, array( 'edit.php', 'edit-tags.php' ), true ) ) { @@ -1974,20 +2072,20 @@ public function print_panel_tabs_in_wp_pages() { $page_wrapper_classes[] = "yith-plugin-ui--{$option}-{$key}"; } } - $page_wrapper_classes = implode( ' ', array_filter( $page_wrapper_classes ) ); - echo '
    '; - - echo '
    '; - - $this->add_plugin_banner( $this->settings['page'] ); - $this->print_tabs_nav( self::$panel_tabs_in_wp_pages ); - echo '
    '; - - if ( self::$panel_tabs_in_wp_pages['current_sub_tab'] ) { - echo '
    '; - } + $this->render_panel_header(); + + $this->get_template( + 'panel-wp-page-header.php', + array( + 'panel' => $this, + 'page_wrapper_classes' => $page_wrapper_classes, + 'wrap_class' => $wrap_class, + 'tabs_nav_args' => self::$panel_tabs_in_wp_pages, + 'has_sub_tabs' => self::$panel_tabs_in_wp_pages['current_sub_tab'], + ) + ); } } @@ -1999,12 +2097,14 @@ public function print_panel_tabs_in_wp_pages() { */ public function print_panel_tabs_in_wp_pages_end() { if ( self::$panel_tabs_in_wp_pages ) { - - if ( self::$panel_tabs_in_wp_pages['current_sub_tab'] ) { - echo '
    '; - } - - echo '
    '; + $this->get_template( + 'panel-wp-page-footer.php', + array( + 'panel' => $this, + 'has_sub_tabs' => self::$panel_tabs_in_wp_pages['current_sub_tab'], + 'page_args' => self::$panel_tabs_in_wp_pages['options'] ?? array(), + ) + ); } } @@ -2059,5 +2159,149 @@ public function save_toggle_element_options() { public function add_utm_data_on_premium_tab( $url, $slug ) { return ! empty( $this->settings['plugin_slug'] ) && $slug === $this->settings['plugin_slug'] && 'premium' === $this->get_current_tab() ? yith_plugin_fw_add_utm_data( $url, $slug, 'button-upgrade', yith_plugin_fw_panel_utm_source( $this ) ) : $url; } + + /** + * Get the data of the current page. + * + * @return array + * @since 4.0.0 + */ + protected function get_page_data() { + $tab = $this->get_current_tab(); + $sub_tab = $this->get_current_sub_tab(); + + $hierarchy = $this->get_tabs_hierarchy(); + + return $hierarchy[ $sub_tab ] ?? $hierarchy[ $tab ] ?? array(); + } + + /** + * Get the title of the current page. + * + * @return string + * @since 4.0.0 + */ + public function get_page_title() { + $data = $this->get_page_data(); + + return $data['title'] ?? ''; + } + + /** + * Get the title of the current page. + * + * @return string + * @since 4.0.0 + */ + public function get_page_description() { + $data = $this->get_page_data(); + + return $data['description'] ?? ''; + } + + /** + * Get options from path. + * Useful to prevent issues with defined variables where including the file. + * + * @param string $path The options' file path. + * + * @return mixed + * @since 4.0.0 + */ + public function get_options_from_path( $path ) { + return include $path; + } + + /** + * Get the plugin name. + * + * @return string + */ + protected function get_plugin_name() { + return $this->settings['plugin_name'] ?? $this->settings['page_title'] ?? ''; + } + + /** + * Get the title shown in the header of the panel. + * + * @return string + */ + protected function get_header_title() { + $stop_words = array( 'YITH', 'for WordPress & WooCommerce', 'for WordPress and WooCommerce', 'for WordPress', 'for WooCommerce', 'WooCommerce' ); + + return $this->settings['menu_title'] ?? trim( str_replace( $stop_words, '', $this->get_plugin_name() ) ); + } + + /** + * Print the YITH logo and the plugin name. + * + * @since 4.0.0 + */ + public function print_sidebar_header() { + if ( $this->get_ui_version() > 1 ) { + $this->get_template( + 'panel-sidebar-header.php', + array( + 'header_title' => $this->get_header_title(), + ) + ); + } + } + + /** + * Get a template based on the ui_version. + * + * @param string $template The template. + * @param array $args Arguments. + * + * @since 4.0.0 + */ + public function get_template( $template, $args = array() ) { + $_template_args = array( + 'template' => $template, + 'base_path' => YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/', + 'ui_version' => $this->get_ui_version(), + 'template_path' => '', + ); + if ( isset( $args['_template_args'] ) ) { + unset( $args['_template_args'] ); + } + + if ( $_template_args['ui_version'] > 1 ) { + $versioned_base_path = $_template_args['base_path'] . 'v' . $_template_args['ui_version'] . '/'; + $versioned_path = $versioned_base_path . $_template_args['template']; + if ( file_exists( $versioned_path ) ) { + $_template_args['template_path'] = $versioned_path; + } + } + + if ( ! $_template_args['template_path'] ) { + $_template_args['template_path'] = $_template_args['base_path'] . $_template_args['template']; + } + + if ( file_exists( $_template_args['template_path'] ) ) { + extract( $args ); // phpcs:ignore WordPress.PHP.DontExtract.extract_extract + include $_template_args['template_path']; + } + } + + /** + * Return true if the current page is rendered by this panel. + * + * @param bool $include_wp_pages Set true to consider WP Pages as part of the current panel. + * + * @return bool + * @since 4.0.0 + */ + protected function is_current_panel( $include_wp_pages = true ) { + global $plugin_page; + + $is_panel = $plugin_page === $this->settings['page']; + if ( ! $is_panel && $include_wp_pages ) { + $is_panel = ! ! $this->get_current_tab(); + } + + return $is_panel; + } } } diff --git a/plugin-fw/includes/class-yith-system-status.php b/plugin-fw/includes/class-yith-system-status.php index 4e60613..fdc3980 100644 --- a/plugin-fw/includes/class-yith-system-status.php +++ b/plugin-fw/includes/class-yith-system-status.php @@ -301,7 +301,6 @@ public function enqueue_scripts() { wp_register_script( 'yith-system-info', yit_load_js_file( $script_path . '/assets/js/yith-system-info.js' ), array( 'jquery' ), '1.0.0', true ); if ( isset( $_GET['page'] ) && 'yith_system_info' === $_GET['page'] ) { //phpcs:ignore - wp_enqueue_style( 'yit-plugin-style' ); wp_enqueue_style( 'yith-plugin-fw-fields' ); wp_enqueue_script( 'yith-system-info' ); diff --git a/plugin-fw/init.php b/plugin-fw/init.php index ac21192..091f20a 100644 --- a/plugin-fw/init.php +++ b/plugin-fw/init.php @@ -1,13 +1,13 @@ \n" -"POT-Creation-Date: 2023-02-14 10:45:27+00:00\n" +"POT-Creation-Date: 2023-03-10 11:17:07+00:00\n" "PO-Revision-Date: 2021-02-11 18:07:46+0000\n" "Language: el_GR\n" "MIME-Version: 1.0\n" @@ -13,56 +13,77 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: GlotPress/3.0.0-alpha.2\n" -#: includes/class-yit-assets.php:155 yit-functions.php:2006 +#: includes/class-yit-assets.php:138 +msgid "No file provided." +msgstr "" + +#: includes/class-yit-assets.php:139 +msgid "You cannot drop files here." +msgstr "" + +#: includes/class-yit-assets.php:161 yit-functions.php:2004 msgid "Confirm trash" msgstr "" -#: includes/class-yit-assets.php:156 +#: includes/class-yit-assets.php:162 msgid "Are you sure you want to trash the selected items?" msgstr "" -#: includes/class-yit-assets.php:158 includes/class-yit-assets.php:162 +#: includes/class-yit-assets.php:164 includes/class-yit-assets.php:168 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:2008 yit-functions.php:2026 +#: yit-functions.php:2006 yit-functions.php:2024 msgid "No" msgstr "Όχι" -#: includes/class-yit-assets.php:159 yit-functions.php:2024 -#: yit-functions.php:2152 +#: includes/class-yit-assets.php:165 yit-functions.php:2022 +#: yit-functions.php:2149 msgid "Confirm delete" msgstr "" -#: includes/class-yit-assets.php:160 +#: includes/class-yit-assets.php:166 msgid "Are you sure you want to delete the selected items?" msgstr "" -#: includes/class-yit-assets.php:160 yit-functions.php:1940 -#: yit-functions.php:2100 +#: includes/class-yit-assets.php:166 yit-functions.php:1938 +#: yit-functions.php:2097 msgid "" "This action cannot be undone and you will not be able to recover this data." msgstr "" -#: includes/class-yit-assets.php:181 +#: includes/class-yit-assets.php:186 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "Are you sure?" +msgstr "Είστε σίγουρος;" + +#: includes/class-yit-assets.php:187 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "" +"If you continue with this action, you will reset all options in this page." +msgstr "" +"Αν συνεχίσετε με αυτή την ενέργεια θα επαναφέρετε όλες τις επιλογές στη " +"σελίδα." + +#: includes/class-yit-assets.php:198 msgid "Clear" msgstr "Καθαρισμός" -#: includes/class-yit-assets.php:182 +#: includes/class-yit-assets.php:199 msgid "Clear color" msgstr "Καθαρισμός χρώματος" -#: includes/class-yit-assets.php:183 +#: includes/class-yit-assets.php:200 msgid "Default" msgstr "Προεπιλεγμένο" -#: includes/class-yit-assets.php:184 +#: includes/class-yit-assets.php:201 msgid "Select default color" msgstr "Επιλογή προεπιλεγμένου χρώματος" -#: includes/class-yit-assets.php:185 +#: includes/class-yit-assets.php:202 msgid "Select Color" msgstr "Επιλογή Χρώματος" -#: includes/class-yit-assets.php:186 +#: includes/class-yit-assets.php:203 msgid "Color value" msgstr "Αξία χρώματος" @@ -70,123 +91,99 @@ msgstr "Αξία χρώματος" msgid "There was an error with your request; please try again later." msgstr "" -#: includes/class-yit-plugin-panel-woocommerce.php:437 +#: includes/class-yit-plugin-panel-woocommerce.php:514 +msgid "Options saved correctly!" +msgstr "" + +#: includes/class-yit-plugin-panel-woocommerce.php:568 +msgid "Options reset correctly!" +msgstr "" + +#: includes/class-yit-plugin-panel-woocommerce.php:622 msgid "The changes you have made will be lost if you leave this page." msgstr "" "Οι αλλαγές που έχετε δημιουργήσει θα χαθούν αν αφήσετε αυτήν την σελίδα." -#: includes/class-yit-plugin-panel.php:83 +#: includes/class-yit-plugin-panel.php:90 msgid "Plugin Settings" msgstr "Ρυθμίσεις Προσθέτου" -#: includes/class-yit-plugin-panel.php:84 +#: includes/class-yit-plugin-panel.php:91 msgid "Settings" msgstr "Ρυθμίσεις" -#: includes/class-yit-plugin-panel.php:456 -#: includes/class-yit-plugin-panel.php:459 +#: includes/class-yit-plugin-panel.php:554 +#: includes/class-yit-plugin-panel.php:557 msgid "How to install premium version" msgstr "Πώς να εγκαταστήσετε την προηγμένη έκδοση" -#: includes/class-yit-plugin-panel.php:656 -#: includes/class-yit-plugin-subpanel.php:133 -msgid "Save Changes" -msgstr "Αποθήκευση Αλλαγών" - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "" -"If you continue with this action, you will reset all options in this page." -msgstr "" -"Αν συνεχίσετε με αυτή την ενέργεια θα επαναφέρετε όλες τις επιλογές στη " -"σελίδα." - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "Are you sure?" -msgstr "Είστε σίγουρος;" - -#: includes/class-yit-plugin-panel.php:668 -#: includes/class-yit-plugin-subpanel.php:143 -msgid "Reset to default" -msgstr "Επαναφορά σε προεπιλεγμένο" - -#: includes/class-yit-plugin-panel.php:1039 +#: includes/class-yit-plugin-panel.php:1112 msgid "Read the plugin documentation" msgstr "" -#: includes/class-yit-plugin-panel.php:1040 +#: includes/class-yit-plugin-panel.php:1113 msgid "Learn what you can really do with this powerful tool" msgstr "" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1123 msgid "Watch our \"First Steps\" video" msgstr "" -#: includes/class-yit-plugin-panel.php:1051 +#: includes/class-yit-plugin-panel.php:1124 msgid "See how it works before you start using it" msgstr "" -#: includes/class-yit-plugin-panel.php:1307 +#: includes/class-yit-plugin-panel.php:1379 msgid "" "The element you have entered already exists. Please, enter another name." msgstr "Το στοιχείο που εισάγατε υπάρχει ήδη. Παρακαλώ, εισάγετε άλλο όνομα." -#: includes/class-yit-plugin-panel.php:1308 +#: includes/class-yit-plugin-panel.php:1380 msgid "Settings saved" msgstr "Ρυθμίσεις αποθηκεύτηκαν" -#: includes/class-yit-plugin-panel.php:1309 +#: includes/class-yit-plugin-panel.php:1381 msgid "Settings reset" msgstr "Επαναφορά ρυθμίσεων" -#: includes/class-yit-plugin-panel.php:1310 +#: includes/class-yit-plugin-panel.php:1382 msgid "Element deleted correctly." msgstr "Το στοιχείο διαγράφηκε επιτυχώς." -#: includes/class-yit-plugin-panel.php:1311 -#: includes/class-yit-plugin-panel.php:1312 +#: includes/class-yit-plugin-panel.php:1383 +#: includes/class-yit-plugin-panel.php:1384 msgid "Element updated correctly." msgstr "Το στοιχείο αναβαθμίστηκε επιτυχώς." -#: includes/class-yit-plugin-panel.php:1313 +#: includes/class-yit-plugin-panel.php:1385 msgid "Database imported correctly." msgstr "Επιτυχής εισαγωγή βάσης δεδομένων." -#: includes/class-yit-plugin-panel.php:1314 +#: includes/class-yit-plugin-panel.php:1386 msgid "An error has occurred during import. Please try again." msgstr "Παρουσιάστηκε σφάλμα κατά την εισαγωγή. Παρακαλώ προσπαθήστε ξανά." -#: includes/class-yit-plugin-panel.php:1315 +#: includes/class-yit-plugin-panel.php:1387 msgid "The added file is not valid." msgstr "Το προστιθέμενο αρχείο δεν είναι έγκυρο." -#: includes/class-yit-plugin-panel.php:1316 +#: includes/class-yit-plugin-panel.php:1388 msgid "Sorry, import is disabled." msgstr "Συγνώμη, η εισαγωγή είναι απενεργοποιημένη." -#: includes/class-yit-plugin-panel.php:1317 +#: includes/class-yit-plugin-panel.php:1389 msgid "Sorting successful." msgstr "Διαλογή επιτυχής." -#: includes/class-yit-plugin-panel.php:1806 -msgid "We need your support" -msgstr "Χρειαζόμαστε την υποστήριξή σας" - -#: includes/class-yit-plugin-panel.php:1807 -msgid "to keep updating and improving the plugin. Please," -msgstr "" -"για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ," - -#: includes/class-yit-plugin-panel.php:1809 -msgid "help us by leaving a good review" -msgstr "" +#: includes/class-yit-plugin-subpanel.php:133 +#: templates/panel/panel-content-page.php:29 +msgid "Save Changes" +msgstr "Αποθήκευση Αλλαγών" -#: includes/class-yit-plugin-panel.php:1810 -msgid ":) Thanks!" -msgstr ":) Ευχαριστώ!" +#: includes/class-yit-plugin-subpanel.php:143 +#: templates/panel/panel-content-page.php:38 +msgid "Reset to default" +msgstr "Επαναφορά σε προεπιλεγμένο" #: includes/class-yit-pointers.php:80 msgid "Plugins Activated" @@ -316,12 +313,12 @@ msgstr "Πρόσθετα YITH" msgid "WooCommerce" msgstr "WooCommerce" -#: includes/class-yith-system-status.php:342 +#: includes/class-yith-system-status.php:341 msgid "Warning!" msgstr "Προσοχή!" #. translators: %1$s open link tag, %2$s open link tag -#: includes/class-yith-system-status.php:346 +#: includes/class-yith-system-status.php:345 msgid "" "The system check has detected some compatibility issues on your installation." "%1$sClick here%2$s to know more" @@ -329,34 +326,34 @@ msgstr "" "Ο έλεγχος συστήματος έχει εντοπίσει κάποια προβλήματα συμβατότητας στην " "εγκατάστασή σας.%1$sΚάντε κλικ εδώ%2$s για να μάθετε περισσότερα" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Enabled" msgstr "Ενεργοποιημένο" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Disabled" msgstr "Απενεργοποιημένο" -#: includes/class-yith-system-status.php:501 +#: includes/class-yith-system-status.php:500 msgid "N/A" msgstr "N/A" #. translators: %1$s plugin name, %2$s requirement name -#: includes/class-yith-system-status.php:528 +#: includes/class-yith-system-status.php:527 msgid "%1$s needs %2$s enabled" msgstr "%1$s χρειάζεται %2$s ενεργοποιημένο" #. translators: %1$s plugin name, %2$s required memory amount -#: includes/class-yith-system-status.php:531 +#: includes/class-yith-system-status.php:530 msgid "%1$s needs at least %2$s of available memory" msgstr "%1$s χρειάζεται τουλάχιστον %2$s διαθέσιμης μνήμης" #. translators: %1$s plugin name, %2$s version number -#: includes/class-yith-system-status.php:534 +#: includes/class-yith-system-status.php:533 msgid "%1$s needs at least %2$s version" msgstr "%1$s χρειάζεται τουλάχιστον %2$s έκδοση" -#: includes/class-yith-system-status.php:558 +#: includes/class-yith-system-status.php:557 msgid "" "Update it to the latest version in order to benefit of all new features and " "security updates." @@ -364,27 +361,27 @@ msgstr "" "Κάντε αναβάθμιση της τελευταίας έκδοσης για να επωφεληθείτε από τα νέα " "χαρακτηριστικά και τις αναβαθμίσεις προστασίας." -#: includes/class-yith-system-status.php:562 -#: includes/class-yith-system-status.php:568 +#: includes/class-yith-system-status.php:561 +#: includes/class-yith-system-status.php:567 msgid "Contact your hosting company in order to update it." msgstr "Επικοινωνήστε με την εταιρεία hosting σας για να αναβαθμίσετε." -#: includes/class-yith-system-status.php:566 +#: includes/class-yith-system-status.php:565 msgid "Contact your hosting company in order to install it." msgstr "Επικοινωνήστε με την εταιρεία hosting σας για να το ενεργοποιήσετε." #. translators: %1$s code, %2$s file name -#: includes/class-yith-system-status.php:573 +#: includes/class-yith-system-status.php:572 msgid "Remove %1$s from %2$s file" msgstr "Αφαίρεση %1$s από αρχείο %2$s" -#: includes/class-yith-system-status.php:581 +#: includes/class-yith-system-status.php:580 msgid "Contact your hosting company in order to enable it." msgstr "Επικοινωνήστε με την εταιρεία hosting σας για να ενεργοποιήσετε." #. translators: %1$s opening link tag, %2$s closing link tag -#: includes/class-yith-system-status.php:585 -#: includes/class-yith-system-status.php:608 +#: includes/class-yith-system-status.php:584 +#: includes/class-yith-system-status.php:607 msgid "" "Read more %1$shere%2$s or contact your hosting company in order to increase " "it." @@ -393,7 +390,7 @@ msgstr "" "για να το βελτιώσετε." #. translators: %s recommended memory amount -#: includes/class-yith-system-status.php:605 +#: includes/class-yith-system-status.php:604 msgid "" "For optimal functioning of our plugins, we suggest setting at least %s of " "available memory" @@ -402,7 +399,7 @@ msgstr "" "τουλάχιστον %s διαθέσιμης μνήμης" #. translators: %1$s TLS label, %2$s cURL label -#: includes/class-yith-system-status.php:613 +#: includes/class-yith-system-status.php:612 msgid "" "The system check cannot determine which %1$s version is installed because " "%2$s module is disabled. Ask your hosting company to enable it." @@ -412,7 +409,7 @@ msgstr "" "να το ενεργοποιήσει." #. translators: %1$s TLS label -#: includes/class-yith-system-status.php:616 +#: includes/class-yith-system-status.php:615 msgid "" "The system check cannot determine which %1$s version is installed due to a " "connection issue between your site and our server." @@ -487,6 +484,10 @@ msgstr "Προσαρμογή:" msgid "Preview:" msgstr "Προεπισκόπηση:" +#: templates/fields/file.php:14 +msgid "Drag or upload a file." +msgstr "" + #: templates/fields/icons.php:78 msgid "Set Default" msgstr "Ορίστε Προεπιλεγμένο" @@ -511,6 +512,23 @@ msgstr "Προσθέστε εικόνες" msgid "Delete" msgstr "Διαγραφή" +#: templates/fields/media.php:46 +msgid "Upload file" +msgstr "" + +#: templates/fields/media.php:52 +msgid "Enter URL" +msgstr "" + +#. translators: %s is the alternative action "Upload a file". +#: templates/fields/media.php:70 +msgid "Drag or %s" +msgstr "" + +#: templates/fields/media.php:71 +msgid "Upload a file" +msgstr "" + #: templates/fields/select-buttons.php:19 msgid "Add All" msgstr "Προσθήκη Όλων" @@ -552,6 +570,40 @@ msgstr "Ανέβασμα" msgid "Reset" msgstr "Επαναφορά" +#: templates/panel/panel-header.php:23 templates/panel/v2/panel-header.php:18 +msgid "We need your support" +msgstr "Χρειαζόμαστε την υποστήριξή σας" + +#: templates/panel/panel-header.php:24 templates/panel/v2/panel-header.php:19 +msgid "to keep updating and improving the plugin. Please," +msgstr "" +"για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ," + +#: templates/panel/panel-header.php:26 templates/panel/v2/panel-header.php:21 +msgid "help us by leaving a good review" +msgstr "" + +#: templates/panel/panel-header.php:27 templates/panel/v2/panel-header.php:22 +msgid ":) Thanks!" +msgstr ":) Ευχαριστώ!" + +#: templates/panel/v2/panel-content-page.php:57 +#: templates/panel/v2/woocommerce/woocommerce-form.php:69 +#: templates/panel/woocommerce/woocommerce-form.php:27 +#: templates/panel/woocommerce/woocommerce-form.php:31 +msgid "Save Options" +msgstr "" + +#: templates/panel/v2/panel-content-page.php:58 +#: templates/panel/v2/woocommerce/woocommerce-form.php:70 +#: templates/panel/woocommerce/woocommerce-form.php:41 +msgid "Reset Defaults" +msgstr "Επαναφορά Προεπιλεγμένων" + +#: templates/panel/v2/panel-nav.php:36 +msgid "Collapse" +msgstr "" + #. translators: %s is the plugin version. #: templates/panel/welcome-modals/update.php:34 msgid "is successfully updated to version %s." @@ -580,19 +632,10 @@ msgstr "" msgid "Start with these %s steps:" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:29 -#: templates/panel/woocommerce/woocommerce-form.php:33 -msgid "Save Options" -msgstr "" - -#: templates/panel/woocommerce/woocommerce-form.php:33 +#: templates/panel/woocommerce/woocommerce-form.php:31 msgid "Options Saved" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:43 -msgid "Reset Defaults" -msgstr "Επαναφορά Προεπιλεγμένων" - #: templates/sysinfo/system-information-panel.php:12 msgid "PHPInfo" msgstr "PHPInfo" @@ -717,16 +760,16 @@ msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" msgstr "" #. translators: %s is the title of the post object. -#: yit-functions.php:1938 +#: yit-functions.php:1936 msgid "Are you sure you want to move \"%s\" to trash?" msgstr "" #. translators: %s is the title of the post object. -#: yit-functions.php:1940 yit-functions.php:2100 +#: yit-functions.php:1938 yit-functions.php:2097 msgid "Are you sure you want to delete \"%s\"?" msgstr "" -#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 +#: yit-functions.php:2036 yit-functions.php:2044 yit-functions.php:2160 msgid "Further actions" msgstr "" @@ -760,71 +803,76 @@ msgctxt "[gutenberg]: Category Name" msgid "YITH" msgstr "YITH" -#: includes/class-yit-assets.php:120 +#: includes/class-yit-assets.php:121 msgctxt "Enhanced select" msgid "No matches found" msgstr "" -#: includes/class-yit-assets.php:121 +#: includes/class-yit-assets.php:122 msgctxt "Enhanced select" msgid "Please enter 1 or more characters" msgstr "" #. translators: %s is the number of characters. -#: includes/class-yit-assets.php:123 +#: includes/class-yit-assets.php:124 msgctxt "Enhanced select" msgid "Please enter %s or more characters" msgstr "" -#: includes/class-yit-assets.php:124 +#: includes/class-yit-assets.php:125 msgctxt "Enhanced select" msgid "Searching…" msgstr "" -#: includes/class-yit-assets.php:143 +#: includes/class-yit-assets.php:137 +msgctxt "Title" +msgid "Error" +msgstr "" + +#: includes/class-yit-assets.php:149 msgctxt "Button text" msgid "Confirm" msgstr "" -#: includes/class-yit-assets.php:144 +#: includes/class-yit-assets.php:150 msgctxt "Button text" msgid "Cancel" msgstr "" -#: includes/class-yit-assets.php:157 yit-functions.php:2009 +#: includes/class-yit-assets.php:163 yit-functions.php:2007 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "" -#: includes/class-yit-assets.php:161 yit-functions.php:2027 -#: yit-functions.php:2154 +#: includes/class-yit-assets.php:167 yit-functions.php:2025 +#: yit-functions.php:2151 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "" #. translators: 1. Plugin name. -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for purchasing %s!" msgstr "" -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for using %s!" msgstr "" -#: includes/class-yit-plugin-panel.php:812 +#: includes/class-yit-plugin-panel.php:879 msgctxt "Help tab default description" msgid "" "We want to help you enjoy a wonderful experience with all of our products." msgstr "" -#: includes/class-yit-plugin-panel.php:863 +#: includes/class-yit-plugin-panel.php:929 msgctxt "Premium tab name" msgid "Get premium" msgstr "" -#: includes/class-yit-plugin-panel.php:875 +#: includes/class-yit-plugin-panel.php:945 msgctxt "Help tab name" msgid "Help" msgstr "" @@ -933,16 +981,6 @@ msgctxt "Image height field label" msgid "Height" msgstr "" -#: templates/fields/onoff.php:28 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "YES" -msgstr "ΝΑΙ" - -#: templates/fields/onoff.php:29 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "NO" -msgstr "ΟΧΙ" - #. translators: 1. Url to EN playlist. #: templates/panel/help-tab.php:89 msgctxt "Help tab view all video link" @@ -1083,57 +1121,62 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "" -#: yit-functions.php:1952 +#: templates/panel/v2/panel-option-label-tags.php:16 +msgctxt "Panel option tag" +msgid "PREMIUM" +msgstr "" + +#: yit-functions.php:1950 msgctxt "Post action" msgid "Preview" msgstr "" -#: yit-functions.php:1961 +#: yit-functions.php:1959 msgctxt "Post action" msgid "View" msgstr "" -#: yit-functions.php:1972 +#: yit-functions.php:1970 msgctxt "Post action" msgid "Edit" msgstr "" -#: yit-functions.php:1980 +#: yit-functions.php:1978 msgctxt "Post action" msgid "Duplicate" msgstr "" -#: yit-functions.php:1992 +#: yit-functions.php:1990 msgctxt "Post action" msgid "Restore" msgstr "" -#: yit-functions.php:2000 +#: yit-functions.php:1998 msgctxt "Post action" msgid "Trash" msgstr "" -#: yit-functions.php:2017 +#: yit-functions.php:2015 msgctxt "Post action" msgid "Delete Permanently" msgstr "" -#: yit-functions.php:2114 +#: yit-functions.php:2111 msgctxt "Term action" msgid "View" msgstr "" -#: yit-functions.php:2124 +#: yit-functions.php:2121 msgctxt "Term action" msgid "Edit" msgstr "" -#: yit-functions.php:2132 +#: yit-functions.php:2129 msgctxt "Term action" msgid "Duplicate" msgstr "" -#: yit-functions.php:2145 +#: yit-functions.php:2142 msgctxt "Term action" msgid "Delete" msgstr "" diff --git a/plugin-fw/languages/yith-plugin-fw-es_ES.mo b/plugin-fw/languages/yith-plugin-fw-es_ES.mo index 593d88f..546b78d 100644 Binary files a/plugin-fw/languages/yith-plugin-fw-es_ES.mo and b/plugin-fw/languages/yith-plugin-fw-es_ES.mo differ diff --git a/plugin-fw/languages/yith-plugin-fw-es_ES.po b/plugin-fw/languages/yith-plugin-fw-es_ES.po index 806314b..60b9b9e 100644 --- a/plugin-fw/languages/yith-plugin-fw-es_ES.po +++ b/plugin-fw/languages/yith-plugin-fw-es_ES.po @@ -4,8 +4,8 @@ msgid "" msgstr "" "Project-Id-Version: YITH Framework\n" "Report-Msgid-Bugs-To: YITH \n" -"POT-Creation-Date: 2023-02-14 10:45:27+00:00\n" -"PO-Revision-Date: 2022-12-07 10:39:17+0000\n" +"POT-Creation-Date: 2023-03-10 11:17:07+00:00\n" +"PO-Revision-Date: 2023-02-22 15:06:16+0000\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -13,57 +13,78 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: GlotPress/3.0.0-alpha.2\n" -#: includes/class-yit-assets.php:155 yit-functions.php:2006 +#: includes/class-yit-assets.php:138 +msgid "No file provided." +msgstr "No se proporcionó ningún archivo." + +#: includes/class-yit-assets.php:139 +msgid "You cannot drop files here." +msgstr "Aquí no se pueden soltar archivos." + +#: includes/class-yit-assets.php:161 yit-functions.php:2004 msgid "Confirm trash" msgstr "Confirmar el traslado a la papelera" -#: includes/class-yit-assets.php:156 +#: includes/class-yit-assets.php:162 msgid "Are you sure you want to trash the selected items?" msgstr "" "¿Estás seguro de que quieres mover a la papelera los elementos seleccionados?" -#: includes/class-yit-assets.php:158 includes/class-yit-assets.php:162 +#: includes/class-yit-assets.php:164 includes/class-yit-assets.php:168 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:2008 yit-functions.php:2026 +#: yit-functions.php:2006 yit-functions.php:2024 msgid "No" msgstr "No" -#: includes/class-yit-assets.php:159 yit-functions.php:2024 -#: yit-functions.php:2152 +#: includes/class-yit-assets.php:165 yit-functions.php:2022 +#: yit-functions.php:2149 msgid "Confirm delete" msgstr "Confirmar el borrado" -#: includes/class-yit-assets.php:160 +#: includes/class-yit-assets.php:166 msgid "Are you sure you want to delete the selected items?" msgstr "¿Estás seguro de que quieres borrar los elementos seleccionados?" -#: includes/class-yit-assets.php:160 yit-functions.php:1940 -#: yit-functions.php:2100 +#: includes/class-yit-assets.php:166 yit-functions.php:1938 +#: yit-functions.php:2097 msgid "" "This action cannot be undone and you will not be able to recover this data." msgstr "Esta acción no se puede revertir y no podrá recuperar estos datos." -#: includes/class-yit-assets.php:181 +#: includes/class-yit-assets.php:186 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "Are you sure?" +msgstr "¿Estás seguro?" + +#: includes/class-yit-assets.php:187 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "" +"If you continue with this action, you will reset all options in this page." +msgstr "" +"Si continúas con esta acción, restablecerás todas las opciones en esta " +"página." + +#: includes/class-yit-assets.php:198 msgid "Clear" msgstr "Borrar" -#: includes/class-yit-assets.php:182 +#: includes/class-yit-assets.php:199 msgid "Clear color" msgstr "Borrar color" -#: includes/class-yit-assets.php:183 +#: includes/class-yit-assets.php:200 msgid "Default" msgstr "Predeterminado" -#: includes/class-yit-assets.php:184 +#: includes/class-yit-assets.php:201 msgid "Select default color" msgstr "Seleccionar color predeterminado" -#: includes/class-yit-assets.php:185 +#: includes/class-yit-assets.php:202 msgid "Select Color" msgstr "Seleccionar color" -#: includes/class-yit-assets.php:186 +#: includes/class-yit-assets.php:203 msgid "Color value" msgstr "Valor del color" @@ -72,123 +93,100 @@ msgid "There was an error with your request; please try again later." msgstr "" "Se ha producido un error en tu solicitud; inténtalo de nuevo más tarde." -#: includes/class-yit-plugin-panel-woocommerce.php:437 +#: includes/class-yit-plugin-panel-woocommerce.php:514 +msgid "Options saved correctly!" +msgstr "¡Opciones guardadas correctamente!" + +#: includes/class-yit-plugin-panel-woocommerce.php:568 +msgid "Options reset correctly!" +msgstr "¡Opciones restablecidas correctamente!" + +#: includes/class-yit-plugin-panel-woocommerce.php:622 msgid "The changes you have made will be lost if you leave this page." msgstr "Los cambios que has hecho se perderán si abandonas esta página." -#: includes/class-yit-plugin-panel.php:83 +#: includes/class-yit-plugin-panel.php:90 msgid "Plugin Settings" msgstr "Ajustes del plugin" -#: includes/class-yit-plugin-panel.php:84 +#: includes/class-yit-plugin-panel.php:91 msgid "Settings" msgstr "Ajustes" -#: includes/class-yit-plugin-panel.php:456 -#: includes/class-yit-plugin-panel.php:459 +#: includes/class-yit-plugin-panel.php:554 +#: includes/class-yit-plugin-panel.php:557 msgid "How to install premium version" msgstr "Cómo instalar la versión premium" -#: includes/class-yit-plugin-panel.php:656 -#: includes/class-yit-plugin-subpanel.php:133 -msgid "Save Changes" -msgstr "Guardar cambios" - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "" -"If you continue with this action, you will reset all options in this page." -msgstr "" -"Si continúas con esta acción, restablecerás todas las opciones en esta " -"página." - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "Are you sure?" -msgstr "¿Estás seguro?" - -#: includes/class-yit-plugin-panel.php:668 -#: includes/class-yit-plugin-subpanel.php:143 -msgid "Reset to default" -msgstr "Restablecer valores predeterminados" - -#: includes/class-yit-plugin-panel.php:1039 +#: includes/class-yit-plugin-panel.php:1112 msgid "Read the plugin documentation" msgstr "Lee la documentación del plugin" -#: includes/class-yit-plugin-panel.php:1040 +#: includes/class-yit-plugin-panel.php:1113 msgid "Learn what you can really do with this powerful tool" msgstr "Aprende lo que realmente puedes hacer con esta potente herramienta" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1123 msgid "Watch our \"First Steps\" video" msgstr "Mira nuestro vídeo de «primeros pasos»" -#: includes/class-yit-plugin-panel.php:1051 +#: includes/class-yit-plugin-panel.php:1124 msgid "See how it works before you start using it" msgstr "Ve cómo funciona antes de empezar a usarlo" -#: includes/class-yit-plugin-panel.php:1307 +#: includes/class-yit-plugin-panel.php:1379 msgid "" "The element you have entered already exists. Please, enter another name." msgstr "" "El elemento que has introducido ya existe. Por favor, introduce otro nombre." -#: includes/class-yit-plugin-panel.php:1308 +#: includes/class-yit-plugin-panel.php:1380 msgid "Settings saved" msgstr "Ajustes guardados" -#: includes/class-yit-plugin-panel.php:1309 +#: includes/class-yit-plugin-panel.php:1381 msgid "Settings reset" msgstr "Restablecer ajustes" -#: includes/class-yit-plugin-panel.php:1310 +#: includes/class-yit-plugin-panel.php:1382 msgid "Element deleted correctly." msgstr "Elemento eliminado correctamente." -#: includes/class-yit-plugin-panel.php:1311 -#: includes/class-yit-plugin-panel.php:1312 +#: includes/class-yit-plugin-panel.php:1383 +#: includes/class-yit-plugin-panel.php:1384 msgid "Element updated correctly." msgstr "Elemento actualizado correctamente." -#: includes/class-yit-plugin-panel.php:1313 +#: includes/class-yit-plugin-panel.php:1385 msgid "Database imported correctly." msgstr "Base de datos importada correctamente." -#: includes/class-yit-plugin-panel.php:1314 +#: includes/class-yit-plugin-panel.php:1386 msgid "An error has occurred during import. Please try again." msgstr "" "Ha ocurrido un error durante la importación. Por favor, inténtalo de nuevo." -#: includes/class-yit-plugin-panel.php:1315 +#: includes/class-yit-plugin-panel.php:1387 msgid "The added file is not valid." msgstr "El archivo añadido no es válido." -#: includes/class-yit-plugin-panel.php:1316 +#: includes/class-yit-plugin-panel.php:1388 msgid "Sorry, import is disabled." msgstr "Lo siento, la importación está desactivada." -#: includes/class-yit-plugin-panel.php:1317 +#: includes/class-yit-plugin-panel.php:1389 msgid "Sorting successful." msgstr "Clasificación realizada con éxito" -#: includes/class-yit-plugin-panel.php:1806 -msgid "We need your support" -msgstr "Necesitamos tu apoyo" - -#: includes/class-yit-plugin-panel.php:1807 -msgid "to keep updating and improving the plugin. Please," -msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor," - -#: includes/class-yit-plugin-panel.php:1809 -msgid "help us by leaving a good review" -msgstr "ayúdanos dejando una buena valoración" +#: includes/class-yit-plugin-subpanel.php:133 +#: templates/panel/panel-content-page.php:29 +msgid "Save Changes" +msgstr "Guardar cambios" -#: includes/class-yit-plugin-panel.php:1810 -msgid ":) Thanks!" -msgstr ":) ¡Gracias!" +#: includes/class-yit-plugin-subpanel.php:143 +#: templates/panel/panel-content-page.php:38 +msgid "Reset to default" +msgstr "Restablecer valores predeterminados" #: includes/class-yit-pointers.php:80 msgid "Plugins Activated" @@ -327,12 +325,12 @@ msgstr "YITH Plugins" msgid "WooCommerce" msgstr "WooCommerce" -#: includes/class-yith-system-status.php:342 +#: includes/class-yith-system-status.php:341 msgid "Warning!" msgstr "¡Atención!" #. translators: %1$s open link tag, %2$s open link tag -#: includes/class-yith-system-status.php:346 +#: includes/class-yith-system-status.php:345 msgid "" "The system check has detected some compatibility issues on your installation." "%1$sClick here%2$s to know more" @@ -340,34 +338,34 @@ msgstr "" "La comprobación del sistema ha detectado algunos problemas de compatibilidad " "en tu instalación.%1$sHaz clic quí%2$s para saber más" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Enabled" msgstr "Activado" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Disabled" msgstr "Desactivado" -#: includes/class-yith-system-status.php:501 +#: includes/class-yith-system-status.php:500 msgid "N/A" msgstr "N/D" #. translators: %1$s plugin name, %2$s requirement name -#: includes/class-yith-system-status.php:528 +#: includes/class-yith-system-status.php:527 msgid "%1$s needs %2$s enabled" msgstr "%1$s necesita %2$s activado" #. translators: %1$s plugin name, %2$s required memory amount -#: includes/class-yith-system-status.php:531 +#: includes/class-yith-system-status.php:530 msgid "%1$s needs at least %2$s of available memory" msgstr "%1$s necesita al menos %2$s de memoria disponible" #. translators: %1$s plugin name, %2$s version number -#: includes/class-yith-system-status.php:534 +#: includes/class-yith-system-status.php:533 msgid "%1$s needs at least %2$s version" msgstr "%1$s necesita al menos la versión %2$s" -#: includes/class-yith-system-status.php:558 +#: includes/class-yith-system-status.php:557 msgid "" "Update it to the latest version in order to benefit of all new features and " "security updates." @@ -375,27 +373,27 @@ msgstr "" "Actualízalo a la última versión para beneficiarte de todas las " "características y actualizaciones de seguridad." -#: includes/class-yith-system-status.php:562 -#: includes/class-yith-system-status.php:568 +#: includes/class-yith-system-status.php:561 +#: includes/class-yith-system-status.php:567 msgid "Contact your hosting company in order to update it." msgstr "Ponte en contacto con tu empresa de hosting para actualizarlo." -#: includes/class-yith-system-status.php:566 +#: includes/class-yith-system-status.php:565 msgid "Contact your hosting company in order to install it." msgstr "Ponte en contacto con tu empresa de hosting para instalarlo." #. translators: %1$s code, %2$s file name -#: includes/class-yith-system-status.php:573 +#: includes/class-yith-system-status.php:572 msgid "Remove %1$s from %2$s file" msgstr "Eliminar %1$s desde el archivo %2$s " -#: includes/class-yith-system-status.php:581 +#: includes/class-yith-system-status.php:580 msgid "Contact your hosting company in order to enable it." msgstr "Contacta con tu empresa de hosting para activarlo." #. translators: %1$s opening link tag, %2$s closing link tag -#: includes/class-yith-system-status.php:585 -#: includes/class-yith-system-status.php:608 +#: includes/class-yith-system-status.php:584 +#: includes/class-yith-system-status.php:607 msgid "" "Read more %1$shere%2$s or contact your hosting company in order to increase " "it." @@ -403,7 +401,7 @@ msgstr "" "Lee más %1$saquí%2$s o contacta a tu empresa de hosting para incrementarlo." #. translators: %s recommended memory amount -#: includes/class-yith-system-status.php:605 +#: includes/class-yith-system-status.php:604 msgid "" "For optimal functioning of our plugins, we suggest setting at least %s of " "available memory" @@ -412,7 +410,7 @@ msgstr "" "memoria disponible" #. translators: %1$s TLS label, %2$s cURL label -#: includes/class-yith-system-status.php:613 +#: includes/class-yith-system-status.php:612 msgid "" "The system check cannot determine which %1$s version is installed because " "%2$s module is disabled. Ask your hosting company to enable it." @@ -422,7 +420,7 @@ msgstr "" "hosting que lo active." #. translators: %1$s TLS label -#: includes/class-yith-system-status.php:616 +#: includes/class-yith-system-status.php:615 msgid "" "The system check cannot determine which %1$s version is installed due to a " "connection issue between your site and our server." @@ -496,6 +494,10 @@ msgstr "Personalizado:" msgid "Preview:" msgstr "Vista previa:" +#: templates/fields/file.php:14 +msgid "Drag or upload a file." +msgstr "Arrastrar o subir un archivo." + #: templates/fields/icons.php:78 msgid "Set Default" msgstr "Establecer predeterminado" @@ -520,6 +522,23 @@ msgstr "Añadir imágenes" msgid "Delete" msgstr "Eliminar" +#: templates/fields/media.php:46 +msgid "Upload file" +msgstr "Subir un archivo" + +#: templates/fields/media.php:52 +msgid "Enter URL" +msgstr "Introducir URL" + +#. translators: %s is the alternative action "Upload a file". +#: templates/fields/media.php:70 +msgid "Drag or %s" +msgstr "Arrastrar o %s" + +#: templates/fields/media.php:71 +msgid "Upload a file" +msgstr "Subir un archivo" + #: templates/fields/select-buttons.php:19 msgid "Add All" msgstr "Añadir todo" @@ -561,6 +580,39 @@ msgstr "Subir" msgid "Reset" msgstr "Restablecer" +#: templates/panel/panel-header.php:23 templates/panel/v2/panel-header.php:18 +msgid "We need your support" +msgstr "Necesitamos tu apoyo" + +#: templates/panel/panel-header.php:24 templates/panel/v2/panel-header.php:19 +msgid "to keep updating and improving the plugin. Please," +msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor," + +#: templates/panel/panel-header.php:26 templates/panel/v2/panel-header.php:21 +msgid "help us by leaving a good review" +msgstr "ayúdanos dejando una buena valoración" + +#: templates/panel/panel-header.php:27 templates/panel/v2/panel-header.php:22 +msgid ":) Thanks!" +msgstr ":) ¡Gracias!" + +#: templates/panel/v2/panel-content-page.php:57 +#: templates/panel/v2/woocommerce/woocommerce-form.php:69 +#: templates/panel/woocommerce/woocommerce-form.php:27 +#: templates/panel/woocommerce/woocommerce-form.php:31 +msgid "Save Options" +msgstr "Guardar Opciones" + +#: templates/panel/v2/panel-content-page.php:58 +#: templates/panel/v2/woocommerce/woocommerce-form.php:70 +#: templates/panel/woocommerce/woocommerce-form.php:41 +msgid "Reset Defaults" +msgstr "Restablecer valores predeterminados" + +#: templates/panel/v2/panel-nav.php:36 +msgid "Collapse" +msgstr "Cerrar" + #. translators: %s is the plugin version. #: templates/panel/welcome-modals/update.php:34 msgid "is successfully updated to version %s." @@ -589,19 +641,10 @@ msgstr "Gracias por usar nuestro plugin" msgid "Start with these %s steps:" msgstr "Comienza con estos %s pasos:" -#: templates/panel/woocommerce/woocommerce-form.php:29 -#: templates/panel/woocommerce/woocommerce-form.php:33 -msgid "Save Options" -msgstr "Guardar Opciones" - -#: templates/panel/woocommerce/woocommerce-form.php:33 +#: templates/panel/woocommerce/woocommerce-form.php:31 msgid "Options Saved" msgstr "Opciones guardadas" -#: templates/panel/woocommerce/woocommerce-form.php:43 -msgid "Reset Defaults" -msgstr "Restablecer valores predeterminados" - #: templates/sysinfo/system-information-panel.php:12 msgid "PHPInfo" msgstr "Información PHP" @@ -725,16 +768,16 @@ msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" msgstr "Datos: %1$.2fMB | Índice: %2$.2fMB | Libre: %3$.2fMB | Motor: %4$s" #. translators: %s is the title of the post object. -#: yit-functions.php:1938 +#: yit-functions.php:1936 msgid "Are you sure you want to move \"%s\" to trash?" msgstr "¿Estás seguro de que quieres mover \"%s\" a la papelera?" #. translators: %s is the title of the post object. -#: yit-functions.php:1940 yit-functions.php:2100 +#: yit-functions.php:1938 yit-functions.php:2097 msgid "Are you sure you want to delete \"%s\"?" msgstr "¿Estás seguro de que quieres borrar \"%s\"?" -#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 +#: yit-functions.php:2036 yit-functions.php:2044 yit-functions.php:2160 msgid "Further actions" msgstr "Otras acciones" @@ -772,60 +815,65 @@ msgctxt "[gutenberg]: Category Name" msgid "YITH" msgstr "YITH" -#: includes/class-yit-assets.php:120 +#: includes/class-yit-assets.php:121 msgctxt "Enhanced select" msgid "No matches found" msgstr "No se han encontrado coincidencias" -#: includes/class-yit-assets.php:121 +#: includes/class-yit-assets.php:122 msgctxt "Enhanced select" msgid "Please enter 1 or more characters" msgstr "Por favor, introduce uno o más caracteres" #. translators: %s is the number of characters. -#: includes/class-yit-assets.php:123 +#: includes/class-yit-assets.php:124 msgctxt "Enhanced select" msgid "Please enter %s or more characters" msgstr "Por favor, introduce %s o más caracteres" -#: includes/class-yit-assets.php:124 +#: includes/class-yit-assets.php:125 msgctxt "Enhanced select" msgid "Searching…" msgstr "Buscando…" -#: includes/class-yit-assets.php:143 +#: includes/class-yit-assets.php:137 +msgctxt "Title" +msgid "Error" +msgstr "Error" + +#: includes/class-yit-assets.php:149 msgctxt "Button text" msgid "Confirm" msgstr "Confirmar" -#: includes/class-yit-assets.php:144 +#: includes/class-yit-assets.php:150 msgctxt "Button text" msgid "Cancel" msgstr "Cancelar" -#: includes/class-yit-assets.php:157 yit-functions.php:2009 +#: includes/class-yit-assets.php:163 yit-functions.php:2007 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "Sí, mover a la papelera" -#: includes/class-yit-assets.php:161 yit-functions.php:2027 -#: yit-functions.php:2154 +#: includes/class-yit-assets.php:167 yit-functions.php:2025 +#: yit-functions.php:2151 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "Si, borrar" #. translators: 1. Plugin name. -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for purchasing %s!" msgstr "¡Gracias por comprar %s!" -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for using %s!" msgstr "¡Gracias por usar %s!" -#: includes/class-yit-plugin-panel.php:812 +#: includes/class-yit-plugin-panel.php:879 msgctxt "Help tab default description" msgid "" "We want to help you enjoy a wonderful experience with all of our products." @@ -833,12 +881,12 @@ msgstr "" "Queremos ayudarte a disfrutar de una experiencia maravillosa con todos " "nuestros productos." -#: includes/class-yit-plugin-panel.php:863 +#: includes/class-yit-plugin-panel.php:929 msgctxt "Premium tab name" msgid "Get premium" msgstr "Obtén premium" -#: includes/class-yit-plugin-panel.php:875 +#: includes/class-yit-plugin-panel.php:945 msgctxt "Help tab name" msgid "Help" msgstr "Ayuda" @@ -945,16 +993,6 @@ msgctxt "Image height field label" msgid "Height" msgstr "Altura" -#: templates/fields/onoff.php:28 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "YES" -msgstr "SÍ" - -#: templates/fields/onoff.php:29 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "NO" -msgstr "NO" - #. translators: 1. Url to EN playlist. #: templates/panel/help-tab.php:89 msgctxt "Help tab view all video link" @@ -1102,57 +1140,62 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "Obtén la versión Premium" -#: yit-functions.php:1952 +#: templates/panel/v2/panel-option-label-tags.php:16 +msgctxt "Panel option tag" +msgid "PREMIUM" +msgstr "PREMIUM" + +#: yit-functions.php:1950 msgctxt "Post action" msgid "Preview" msgstr "Previsualizar" -#: yit-functions.php:1961 +#: yit-functions.php:1959 msgctxt "Post action" msgid "View" msgstr "Ver" -#: yit-functions.php:1972 +#: yit-functions.php:1970 msgctxt "Post action" msgid "Edit" msgstr "Editar" -#: yit-functions.php:1980 +#: yit-functions.php:1978 msgctxt "Post action" msgid "Duplicate" msgstr "Duplicar" -#: yit-functions.php:1992 +#: yit-functions.php:1990 msgctxt "Post action" msgid "Restore" msgstr "Restaurar" -#: yit-functions.php:2000 +#: yit-functions.php:1998 msgctxt "Post action" msgid "Trash" msgstr "A la papelera" -#: yit-functions.php:2017 +#: yit-functions.php:2015 msgctxt "Post action" msgid "Delete Permanently" msgstr "Borrar permanentemente" -#: yit-functions.php:2114 +#: yit-functions.php:2111 msgctxt "Term action" msgid "View" msgstr "Ver" -#: yit-functions.php:2124 +#: yit-functions.php:2121 msgctxt "Term action" msgid "Edit" msgstr "Editar" -#: yit-functions.php:2132 +#: yit-functions.php:2129 msgctxt "Term action" msgid "Duplicate" msgstr "Duplicar" -#: yit-functions.php:2145 +#: yit-functions.php:2142 msgctxt "Term action" msgid "Delete" msgstr "Borrar" diff --git a/plugin-fw/languages/yith-plugin-fw-it_IT.mo b/plugin-fw/languages/yith-plugin-fw-it_IT.mo index a16fc7b..36fe2b6 100644 Binary files a/plugin-fw/languages/yith-plugin-fw-it_IT.mo and b/plugin-fw/languages/yith-plugin-fw-it_IT.mo differ diff --git a/plugin-fw/languages/yith-plugin-fw-it_IT.po b/plugin-fw/languages/yith-plugin-fw-it_IT.po index 3738b00..b78d431 100644 --- a/plugin-fw/languages/yith-plugin-fw-it_IT.po +++ b/plugin-fw/languages/yith-plugin-fw-it_IT.po @@ -4,8 +4,8 @@ msgid "" msgstr "" "Project-Id-Version: YITH Framework\n" "Report-Msgid-Bugs-To: YITH \n" -"POT-Creation-Date: 2023-02-14 10:45:27+00:00\n" -"PO-Revision-Date: 2022-12-07 10:30:18+0000\n" +"POT-Creation-Date: 2023-03-10 11:17:07+00:00\n" +"PO-Revision-Date: 2023-02-22 08:17:58+0000\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -13,58 +13,79 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: GlotPress/3.0.0-alpha.2\n" -#: includes/class-yit-assets.php:155 yit-functions.php:2006 +#: includes/class-yit-assets.php:138 +msgid "No file provided." +msgstr "Nessun file caricato." + +#: includes/class-yit-assets.php:139 +msgid "You cannot drop files here." +msgstr "Non è possibile trascinare file qui." + +#: includes/class-yit-assets.php:161 yit-functions.php:2004 msgid "Confirm trash" msgstr "Conferma eliminazione" -#: includes/class-yit-assets.php:156 +#: includes/class-yit-assets.php:162 msgid "Are you sure you want to trash the selected items?" msgstr "Se sicuro di voler spostare nel cestino gli elementi selezionati?" -#: includes/class-yit-assets.php:158 includes/class-yit-assets.php:162 +#: includes/class-yit-assets.php:164 includes/class-yit-assets.php:168 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:2008 yit-functions.php:2026 +#: yit-functions.php:2006 yit-functions.php:2024 msgid "No" msgstr "No" -#: includes/class-yit-assets.php:159 yit-functions.php:2024 -#: yit-functions.php:2152 +#: includes/class-yit-assets.php:165 yit-functions.php:2022 +#: yit-functions.php:2149 msgid "Confirm delete" msgstr "Conferma eliminazione" -#: includes/class-yit-assets.php:160 +#: includes/class-yit-assets.php:166 msgid "Are you sure you want to delete the selected items?" msgstr "Se sicuro di voler eliminare gli elementi selezionati?" -#: includes/class-yit-assets.php:160 yit-functions.php:1940 -#: yit-functions.php:2100 +#: includes/class-yit-assets.php:166 yit-functions.php:1938 +#: yit-functions.php:2097 msgid "" "This action cannot be undone and you will not be able to recover this data." msgstr "" "Quest'azione non può essere annullata e non sarà possibile recuperare questi " "dati." -#: includes/class-yit-assets.php:181 +#: includes/class-yit-assets.php:186 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "Are you sure?" +msgstr "Sei sicuro?" + +#: includes/class-yit-assets.php:187 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "" +"If you continue with this action, you will reset all options in this page." +msgstr "" +"Se prosegui con questa azione, tutte le opzioni di questa pagina saranno " +"reimpostate." + +#: includes/class-yit-assets.php:198 msgid "Clear" msgstr "Rimuovi" -#: includes/class-yit-assets.php:182 +#: includes/class-yit-assets.php:199 msgid "Clear color" msgstr "Rimuovi colore" -#: includes/class-yit-assets.php:183 +#: includes/class-yit-assets.php:200 msgid "Default" msgstr "Predefinito" -#: includes/class-yit-assets.php:184 +#: includes/class-yit-assets.php:201 msgid "Select default color" msgstr "Seleziona il colore predefinito" -#: includes/class-yit-assets.php:185 +#: includes/class-yit-assets.php:202 msgid "Select Color" msgstr "Seleziona il colore" -#: includes/class-yit-assets.php:186 +#: includes/class-yit-assets.php:203 msgid "Color value" msgstr "Valore del colore" @@ -72,121 +93,98 @@ msgstr "Valore del colore" msgid "There was an error with your request; please try again later." msgstr "Si è verificato un errore con la tua richiesta. Riprova più tardi." -#: includes/class-yit-plugin-panel-woocommerce.php:437 +#: includes/class-yit-plugin-panel-woocommerce.php:514 +msgid "Options saved correctly!" +msgstr "Opzioni salvate correttamente!" + +#: includes/class-yit-plugin-panel-woocommerce.php:568 +msgid "Options reset correctly!" +msgstr "Opzioni resettate correttamente!" + +#: includes/class-yit-plugin-panel-woocommerce.php:622 msgid "The changes you have made will be lost if you leave this page." msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina." -#: includes/class-yit-plugin-panel.php:83 +#: includes/class-yit-plugin-panel.php:90 msgid "Plugin Settings" msgstr "Impostazioni plugin" -#: includes/class-yit-plugin-panel.php:84 +#: includes/class-yit-plugin-panel.php:91 msgid "Settings" msgstr "Impostazioni" -#: includes/class-yit-plugin-panel.php:456 -#: includes/class-yit-plugin-panel.php:459 +#: includes/class-yit-plugin-panel.php:554 +#: includes/class-yit-plugin-panel.php:557 msgid "How to install premium version" msgstr "Come installare la versione premium" -#: includes/class-yit-plugin-panel.php:656 -#: includes/class-yit-plugin-subpanel.php:133 -msgid "Save Changes" -msgstr "Salva modifiche" - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "" -"If you continue with this action, you will reset all options in this page." -msgstr "" -"Se prosegui con questa azione, tutte le opzioni di questa pagina saranno " -"reimpostate." - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "Are you sure?" -msgstr "Sei sicuro?" - -#: includes/class-yit-plugin-panel.php:668 -#: includes/class-yit-plugin-subpanel.php:143 -msgid "Reset to default" -msgstr "Ripristina configurazione predefinita" - -#: includes/class-yit-plugin-panel.php:1039 +#: includes/class-yit-plugin-panel.php:1112 msgid "Read the plugin documentation" msgstr "Consulta la documentazione del plugin" -#: includes/class-yit-plugin-panel.php:1040 +#: includes/class-yit-plugin-panel.php:1113 msgid "Learn what you can really do with this powerful tool" msgstr "Scopri cosa puoi fare con questo potente strumento" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1123 msgid "Watch our \"First Steps\" video" msgstr "Guarda il nostro video \"Primi Step\"" -#: includes/class-yit-plugin-panel.php:1051 +#: includes/class-yit-plugin-panel.php:1124 msgid "See how it works before you start using it" msgstr "Guarda come funziona prima di iniziare ad usarlo" -#: includes/class-yit-plugin-panel.php:1307 +#: includes/class-yit-plugin-panel.php:1379 msgid "" "The element you have entered already exists. Please, enter another name." msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome." -#: includes/class-yit-plugin-panel.php:1308 +#: includes/class-yit-plugin-panel.php:1380 msgid "Settings saved" msgstr "Impostazioni salvate" -#: includes/class-yit-plugin-panel.php:1309 +#: includes/class-yit-plugin-panel.php:1381 msgid "Settings reset" msgstr "Impostazioni azzerate" -#: includes/class-yit-plugin-panel.php:1310 +#: includes/class-yit-plugin-panel.php:1382 msgid "Element deleted correctly." msgstr "Elemento rimosso correttamente." -#: includes/class-yit-plugin-panel.php:1311 -#: includes/class-yit-plugin-panel.php:1312 +#: includes/class-yit-plugin-panel.php:1383 +#: includes/class-yit-plugin-panel.php:1384 msgid "Element updated correctly." msgstr "Elemento aggiornato correttamente." -#: includes/class-yit-plugin-panel.php:1313 +#: includes/class-yit-plugin-panel.php:1385 msgid "Database imported correctly." msgstr "Database importato correttamente." -#: includes/class-yit-plugin-panel.php:1314 +#: includes/class-yit-plugin-panel.php:1386 msgid "An error has occurred during import. Please try again." msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo." -#: includes/class-yit-plugin-panel.php:1315 +#: includes/class-yit-plugin-panel.php:1387 msgid "The added file is not valid." msgstr "Il file aggiunto non è valido." -#: includes/class-yit-plugin-panel.php:1316 +#: includes/class-yit-plugin-panel.php:1388 msgid "Sorry, import is disabled." msgstr "Ci dispiace, l'importazione è disabilitata." -#: includes/class-yit-plugin-panel.php:1317 +#: includes/class-yit-plugin-panel.php:1389 msgid "Sorting successful." msgstr "Ordinamento effettuato con successo." -#: includes/class-yit-plugin-panel.php:1806 -msgid "We need your support" -msgstr "Abbiamo bisogno del tuo sostegno" - -#: includes/class-yit-plugin-panel.php:1807 -msgid "to keep updating and improving the plugin. Please," -msgstr "per poter continuare ad aggiornare e migliorare il plugin." - -#: includes/class-yit-plugin-panel.php:1809 -msgid "help us by leaving a good review" -msgstr "Puoi darci una mano lasciando una recensione positiva" +#: includes/class-yit-plugin-subpanel.php:133 +#: templates/panel/panel-content-page.php:29 +msgid "Save Changes" +msgstr "Salva modifiche" -#: includes/class-yit-plugin-panel.php:1810 -msgid ":) Thanks!" -msgstr ":) Grazie!" +#: includes/class-yit-plugin-subpanel.php:143 +#: templates/panel/panel-content-page.php:38 +msgid "Reset to default" +msgstr "Ripristina configurazione predefinita" #: includes/class-yit-pointers.php:80 msgid "Plugins Activated" @@ -324,12 +322,12 @@ msgstr "Plugin YITH" msgid "WooCommerce" msgstr "WooCommerce" -#: includes/class-yith-system-status.php:342 +#: includes/class-yith-system-status.php:341 msgid "Warning!" msgstr "Attenzione!" #. translators: %1$s open link tag, %2$s open link tag -#: includes/class-yith-system-status.php:346 +#: includes/class-yith-system-status.php:345 msgid "" "The system check has detected some compatibility issues on your installation." "%1$sClick here%2$s to know more" @@ -337,34 +335,34 @@ msgstr "" "Il controllo di sistema ha individuato delle incompatibilità con la tua " "installazione. %1$sVedi qui%2$s per maggiori dettagli" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Enabled" msgstr "Abilitato" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Disabled" msgstr "Disabilitato" -#: includes/class-yith-system-status.php:501 +#: includes/class-yith-system-status.php:500 msgid "N/A" msgstr "N.D." #. translators: %1$s plugin name, %2$s requirement name -#: includes/class-yith-system-status.php:528 +#: includes/class-yith-system-status.php:527 msgid "%1$s needs %2$s enabled" msgstr "%1$s necessita dell'attivazione di %2$s" #. translators: %1$s plugin name, %2$s required memory amount -#: includes/class-yith-system-status.php:531 +#: includes/class-yith-system-status.php:530 msgid "%1$s needs at least %2$s of available memory" msgstr "%1$s necessita di almeno %2$s di memoria disponibile" #. translators: %1$s plugin name, %2$s version number -#: includes/class-yith-system-status.php:534 +#: includes/class-yith-system-status.php:533 msgid "%1$s needs at least %2$s version" msgstr "%1$s necessita almeno della versione %2$s" -#: includes/class-yith-system-status.php:558 +#: includes/class-yith-system-status.php:557 msgid "" "Update it to the latest version in order to benefit of all new features and " "security updates." @@ -372,27 +370,27 @@ msgstr "" "Aggiorna all'ultima versione per beneficiare di tutte le nuove funzionalità " "e degli aggiornamenti di sicurezza." -#: includes/class-yith-system-status.php:562 -#: includes/class-yith-system-status.php:568 +#: includes/class-yith-system-status.php:561 +#: includes/class-yith-system-status.php:567 msgid "Contact your hosting company in order to update it." msgstr "Contatta il tuo servizio hosting per aggiornarlo." -#: includes/class-yith-system-status.php:566 +#: includes/class-yith-system-status.php:565 msgid "Contact your hosting company in order to install it." msgstr "Per installarlo contatta il tuo servizio di hosting." #. translators: %1$s code, %2$s file name -#: includes/class-yith-system-status.php:573 +#: includes/class-yith-system-status.php:572 msgid "Remove %1$s from %2$s file" msgstr "Rimuovi %1$s dal file %2$s" -#: includes/class-yith-system-status.php:581 +#: includes/class-yith-system-status.php:580 msgid "Contact your hosting company in order to enable it." msgstr "Per attivarlo contatta il tuo servizio di hosting." #. translators: %1$s opening link tag, %2$s closing link tag -#: includes/class-yith-system-status.php:585 -#: includes/class-yith-system-status.php:608 +#: includes/class-yith-system-status.php:584 +#: includes/class-yith-system-status.php:607 msgid "" "Read more %1$shere%2$s or contact your hosting company in order to increase " "it." @@ -401,7 +399,7 @@ msgstr "" "per un upgrade." #. translators: %s recommended memory amount -#: includes/class-yith-system-status.php:605 +#: includes/class-yith-system-status.php:604 msgid "" "For optimal functioning of our plugins, we suggest setting at least %s of " "available memory" @@ -410,7 +408,7 @@ msgstr "" "almeno %s della memoria disponibile" #. translators: %1$s TLS label, %2$s cURL label -#: includes/class-yith-system-status.php:613 +#: includes/class-yith-system-status.php:612 msgid "" "The system check cannot determine which %1$s version is installed because " "%2$s module is disabled. Ask your hosting company to enable it." @@ -420,7 +418,7 @@ msgstr "" "attivarlo." #. translators: %1$s TLS label -#: includes/class-yith-system-status.php:616 +#: includes/class-yith-system-status.php:615 msgid "" "The system check cannot determine which %1$s version is installed due to a " "connection issue between your site and our server." @@ -494,6 +492,10 @@ msgstr "Personalizzato:" msgid "Preview:" msgstr "Anteprima:" +#: templates/fields/file.php:14 +msgid "Drag or upload a file." +msgstr "Trascina o carica un file." + #: templates/fields/icons.php:78 msgid "Set Default" msgstr "Ripristina impostazioni iniziali" @@ -518,6 +520,23 @@ msgstr "Aggiungi immagini" msgid "Delete" msgstr "Rimuovi" +#: templates/fields/media.php:46 +msgid "Upload file" +msgstr "Carica file" + +#: templates/fields/media.php:52 +msgid "Enter URL" +msgstr "Inserisci URL" + +#. translators: %s is the alternative action "Upload a file". +#: templates/fields/media.php:70 +msgid "Drag or %s" +msgstr "Trascina o %s" + +#: templates/fields/media.php:71 +msgid "Upload a file" +msgstr "Carica un file" + #: templates/fields/select-buttons.php:19 msgid "Add All" msgstr "Aggiungi tutti" @@ -559,6 +578,39 @@ msgstr "Carica" msgid "Reset" msgstr "Ripristina" +#: templates/panel/panel-header.php:23 templates/panel/v2/panel-header.php:18 +msgid "We need your support" +msgstr "Abbiamo bisogno del tuo sostegno" + +#: templates/panel/panel-header.php:24 templates/panel/v2/panel-header.php:19 +msgid "to keep updating and improving the plugin. Please," +msgstr "per poter continuare ad aggiornare e migliorare il plugin." + +#: templates/panel/panel-header.php:26 templates/panel/v2/panel-header.php:21 +msgid "help us by leaving a good review" +msgstr "Puoi darci una mano lasciando una recensione positiva" + +#: templates/panel/panel-header.php:27 templates/panel/v2/panel-header.php:22 +msgid ":) Thanks!" +msgstr ":) Grazie!" + +#: templates/panel/v2/panel-content-page.php:57 +#: templates/panel/v2/woocommerce/woocommerce-form.php:69 +#: templates/panel/woocommerce/woocommerce-form.php:27 +#: templates/panel/woocommerce/woocommerce-form.php:31 +msgid "Save Options" +msgstr "Salva le opzioni" + +#: templates/panel/v2/panel-content-page.php:58 +#: templates/panel/v2/woocommerce/woocommerce-form.php:70 +#: templates/panel/woocommerce/woocommerce-form.php:41 +msgid "Reset Defaults" +msgstr "Ripristina impostazioni iniziali" + +#: templates/panel/v2/panel-nav.php:36 +msgid "Collapse" +msgstr "Chiudi" + #. translators: %s is the plugin version. #: templates/panel/welcome-modals/update.php:34 msgid "is successfully updated to version %s." @@ -587,19 +639,10 @@ msgstr "Grazie per aver scelto di usare il nostro plugin" msgid "Start with these %s steps:" msgstr "Inizia da questi %s step:" -#: templates/panel/woocommerce/woocommerce-form.php:29 -#: templates/panel/woocommerce/woocommerce-form.php:33 -msgid "Save Options" -msgstr "Salva le opzioni" - -#: templates/panel/woocommerce/woocommerce-form.php:33 +#: templates/panel/woocommerce/woocommerce-form.php:31 msgid "Options Saved" msgstr "Opzioni salvate" -#: templates/panel/woocommerce/woocommerce-form.php:43 -msgid "Reset Defaults" -msgstr "Ripristina impostazioni iniziali" - #: templates/sysinfo/system-information-panel.php:12 msgid "PHPInfo" msgstr "PHPInfo" @@ -725,16 +768,16 @@ msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" msgstr "Dati: %1$.2fMB | Indice: %2$.2fMB | Libero: %3$.2fMB | Engine: %4$s" #. translators: %s is the title of the post object. -#: yit-functions.php:1938 +#: yit-functions.php:1936 msgid "Are you sure you want to move \"%s\" to trash?" msgstr "Sei sicuro di voler spostare \"%s\" nel cestino?" #. translators: %s is the title of the post object. -#: yit-functions.php:1940 yit-functions.php:2100 +#: yit-functions.php:1938 yit-functions.php:2097 msgid "Are you sure you want to delete \"%s\"?" msgstr "Sei sicuro di voler eliminare \"%s\"?" -#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 +#: yit-functions.php:2036 yit-functions.php:2044 yit-functions.php:2160 msgid "Further actions" msgstr "Altre azioni" @@ -772,60 +815,65 @@ msgctxt "[gutenberg]: Category Name" msgid "YITH" msgstr "YITH" -#: includes/class-yit-assets.php:120 +#: includes/class-yit-assets.php:121 msgctxt "Enhanced select" msgid "No matches found" msgstr "Non è stata trovata alcuna corrispondenza" -#: includes/class-yit-assets.php:121 +#: includes/class-yit-assets.php:122 msgctxt "Enhanced select" msgid "Please enter 1 or more characters" msgstr "Inserisci 1 o più caratteri" #. translators: %s is the number of characters. -#: includes/class-yit-assets.php:123 +#: includes/class-yit-assets.php:124 msgctxt "Enhanced select" msgid "Please enter %s or more characters" msgstr "Inserisci %s o più caratteri" -#: includes/class-yit-assets.php:124 +#: includes/class-yit-assets.php:125 msgctxt "Enhanced select" msgid "Searching…" msgstr "Ricerca…" -#: includes/class-yit-assets.php:143 +#: includes/class-yit-assets.php:137 +msgctxt "Title" +msgid "Error" +msgstr "Errore" + +#: includes/class-yit-assets.php:149 msgctxt "Button text" msgid "Confirm" msgstr "Conferma" -#: includes/class-yit-assets.php:144 +#: includes/class-yit-assets.php:150 msgctxt "Button text" msgid "Cancel" msgstr "Annulla" -#: includes/class-yit-assets.php:157 yit-functions.php:2009 +#: includes/class-yit-assets.php:163 yit-functions.php:2007 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "Sì, sposta nel cestino" -#: includes/class-yit-assets.php:161 yit-functions.php:2027 -#: yit-functions.php:2154 +#: includes/class-yit-assets.php:167 yit-functions.php:2025 +#: yit-functions.php:2151 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "Sì, elimina" #. translators: 1. Plugin name. -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for purchasing %s!" msgstr "Grazie per aver acquistato %s!" -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for using %s!" msgstr "Grazie per aver scelto %s!" -#: includes/class-yit-plugin-panel.php:812 +#: includes/class-yit-plugin-panel.php:879 msgctxt "Help tab default description" msgid "" "We want to help you enjoy a wonderful experience with all of our products." @@ -833,12 +881,12 @@ msgstr "" "Vogliamo aiutarti ad avere un'esperienza fantastica con tutti i nostri " "prodotti." -#: includes/class-yit-plugin-panel.php:863 +#: includes/class-yit-plugin-panel.php:929 msgctxt "Premium tab name" msgid "Get premium" msgstr "Diventa premium" -#: includes/class-yit-plugin-panel.php:875 +#: includes/class-yit-plugin-panel.php:945 msgctxt "Help tab name" msgid "Help" msgstr "Help" @@ -946,16 +994,6 @@ msgctxt "Image height field label" msgid "Height" msgstr "Altezza" -#: templates/fields/onoff.php:28 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "YES" -msgstr "SÌ" - -#: templates/fields/onoff.php:29 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "NO" -msgstr "NO" - #. translators: 1. Url to EN playlist. #: templates/panel/help-tab.php:89 msgctxt "Help tab view all video link" @@ -1103,57 +1141,62 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "Ottieni la versione premium" -#: yit-functions.php:1952 +#: templates/panel/v2/panel-option-label-tags.php:16 +msgctxt "Panel option tag" +msgid "PREMIUM" +msgstr "PREMIUM" + +#: yit-functions.php:1950 msgctxt "Post action" msgid "Preview" msgstr "Anteprima" -#: yit-functions.php:1961 +#: yit-functions.php:1959 msgctxt "Post action" msgid "View" msgstr "Visualizza" -#: yit-functions.php:1972 +#: yit-functions.php:1970 msgctxt "Post action" msgid "Edit" msgstr "Modifica" -#: yit-functions.php:1980 +#: yit-functions.php:1978 msgctxt "Post action" msgid "Duplicate" msgstr "Duplica" -#: yit-functions.php:1992 +#: yit-functions.php:1990 msgctxt "Post action" msgid "Restore" msgstr "Ripristina" -#: yit-functions.php:2000 +#: yit-functions.php:1998 msgctxt "Post action" msgid "Trash" msgstr "Cestina" -#: yit-functions.php:2017 +#: yit-functions.php:2015 msgctxt "Post action" msgid "Delete Permanently" msgstr "Cancella definitivamente" -#: yit-functions.php:2114 +#: yit-functions.php:2111 msgctxt "Term action" msgid "View" msgstr "Visualizza" -#: yit-functions.php:2124 +#: yit-functions.php:2121 msgctxt "Term action" msgid "Edit" msgstr "Modifica" -#: yit-functions.php:2132 +#: yit-functions.php:2129 msgctxt "Term action" msgid "Duplicate" msgstr "Duplica" -#: yit-functions.php:2145 +#: yit-functions.php:2142 msgctxt "Term action" msgid "Delete" msgstr "Elimina" diff --git a/plugin-fw/languages/yith-plugin-fw-nl_NL.mo b/plugin-fw/languages/yith-plugin-fw-nl_NL.mo index 7b303ae..dcc0e74 100644 Binary files a/plugin-fw/languages/yith-plugin-fw-nl_NL.mo and b/plugin-fw/languages/yith-plugin-fw-nl_NL.mo differ diff --git a/plugin-fw/languages/yith-plugin-fw-nl_NL.po b/plugin-fw/languages/yith-plugin-fw-nl_NL.po index 4283b5e..ee4acdc 100644 --- a/plugin-fw/languages/yith-plugin-fw-nl_NL.po +++ b/plugin-fw/languages/yith-plugin-fw-nl_NL.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: YITH Framework\n" "Report-Msgid-Bugs-To: YITH \n" -"POT-Creation-Date: 2023-02-14 10:45:27+00:00\n" +"POT-Creation-Date: 2023-03-10 11:17:07+00:00\n" "PO-Revision-Date: 2021-12-13 12:45:02+0000\n" "Language: nl\n" "MIME-Version: 1.0\n" @@ -13,60 +13,80 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: GlotPress/3.0.0-alpha.2\n" -#: includes/class-yit-assets.php:155 yit-functions.php:2006 +#: includes/class-yit-assets.php:138 +msgid "No file provided." +msgstr "" + +#: includes/class-yit-assets.php:139 +msgid "You cannot drop files here." +msgstr "" + +#: includes/class-yit-assets.php:161 yit-functions.php:2004 msgid "Confirm trash" msgstr "Verplaatsen naar prullenbak bevestigen" -#: includes/class-yit-assets.php:156 +#: includes/class-yit-assets.php:162 msgid "Are you sure you want to trash the selected items?" msgstr "" "Weet je zeker dat je het geselecteerde item naar de prullenbak wilt " "verplaatsen?" -#: includes/class-yit-assets.php:158 includes/class-yit-assets.php:162 +#: includes/class-yit-assets.php:164 includes/class-yit-assets.php:168 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:2008 yit-functions.php:2026 +#: yit-functions.php:2006 yit-functions.php:2024 msgid "No" msgstr "Nee" -#: includes/class-yit-assets.php:159 yit-functions.php:2024 -#: yit-functions.php:2152 +#: includes/class-yit-assets.php:165 yit-functions.php:2022 +#: yit-functions.php:2149 msgid "Confirm delete" msgstr "Verwijderen bevestigen" -#: includes/class-yit-assets.php:160 +#: includes/class-yit-assets.php:166 msgid "Are you sure you want to delete the selected items?" msgstr "Weet je zeker dat je de geselecteerde items wilt verwijderen?" -#: includes/class-yit-assets.php:160 yit-functions.php:1940 -#: yit-functions.php:2100 +#: includes/class-yit-assets.php:166 yit-functions.php:1938 +#: yit-functions.php:2097 msgid "" "This action cannot be undone and you will not be able to recover this data." msgstr "" "Deze actie kan niet ongedaan gemaakt worden en je zult deze gegevens niet " "kunnen herstellen." -#: includes/class-yit-assets.php:181 +#: includes/class-yit-assets.php:186 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "Are you sure?" +msgstr "Weet je het zeker?" + +#: includes/class-yit-assets.php:187 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "" +"If you continue with this action, you will reset all options in this page." +msgstr "" +"Als je doorgaat met deze actie, zal je alle opties op deze pagina resetten." + +#: includes/class-yit-assets.php:198 msgid "Clear" msgstr "Wissen" -#: includes/class-yit-assets.php:182 +#: includes/class-yit-assets.php:199 msgid "Clear color" msgstr "Kleur wissen" -#: includes/class-yit-assets.php:183 +#: includes/class-yit-assets.php:200 msgid "Default" msgstr "Standaard" -#: includes/class-yit-assets.php:184 +#: includes/class-yit-assets.php:201 msgid "Select default color" msgstr "Standaardkleur selecteren" -#: includes/class-yit-assets.php:185 +#: includes/class-yit-assets.php:202 msgid "Select Color" msgstr "Kleur selecteren" -#: includes/class-yit-assets.php:186 +#: includes/class-yit-assets.php:203 msgid "Color value" msgstr "Kleurwaarde" @@ -75,120 +95,98 @@ msgid "There was an error with your request; please try again later." msgstr "" "Er is een fout opgetreden met je verzoek, probeer het later opnieuw a.u.b." -#: includes/class-yit-plugin-panel-woocommerce.php:437 +#: includes/class-yit-plugin-panel-woocommerce.php:514 +msgid "Options saved correctly!" +msgstr "" + +#: includes/class-yit-plugin-panel-woocommerce.php:568 +msgid "Options reset correctly!" +msgstr "" + +#: includes/class-yit-plugin-panel-woocommerce.php:622 msgid "The changes you have made will be lost if you leave this page." msgstr "Als je deze pagina verlaat zullen alle wijzigingen verloren gaan." -#: includes/class-yit-plugin-panel.php:83 +#: includes/class-yit-plugin-panel.php:90 msgid "Plugin Settings" msgstr "Plugin instellingen" -#: includes/class-yit-plugin-panel.php:84 +#: includes/class-yit-plugin-panel.php:91 msgid "Settings" msgstr "Instellingen" -#: includes/class-yit-plugin-panel.php:456 -#: includes/class-yit-plugin-panel.php:459 +#: includes/class-yit-plugin-panel.php:554 +#: includes/class-yit-plugin-panel.php:557 msgid "How to install premium version" msgstr "Hoe installeer ik de premium versie" -#: includes/class-yit-plugin-panel.php:656 -#: includes/class-yit-plugin-subpanel.php:133 -msgid "Save Changes" -msgstr "Wijzigingen opslaan" - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "" -"If you continue with this action, you will reset all options in this page." -msgstr "" -"Als je doorgaat met deze actie, zal je alle opties op deze pagina resetten." - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "Are you sure?" -msgstr "Weet je het zeker?" - -#: includes/class-yit-plugin-panel.php:668 -#: includes/class-yit-plugin-subpanel.php:143 -msgid "Reset to default" -msgstr "Resetten naar standaard" - -#: includes/class-yit-plugin-panel.php:1039 +#: includes/class-yit-plugin-panel.php:1112 msgid "Read the plugin documentation" msgstr "" -#: includes/class-yit-plugin-panel.php:1040 +#: includes/class-yit-plugin-panel.php:1113 msgid "Learn what you can really do with this powerful tool" msgstr "" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1123 msgid "Watch our \"First Steps\" video" msgstr "" -#: includes/class-yit-plugin-panel.php:1051 +#: includes/class-yit-plugin-panel.php:1124 msgid "See how it works before you start using it" msgstr "" -#: includes/class-yit-plugin-panel.php:1307 +#: includes/class-yit-plugin-panel.php:1379 msgid "" "The element you have entered already exists. Please, enter another name." msgstr "Het element dat je hebt ingevoerd bestaat al. Voer een andere naam in." -#: includes/class-yit-plugin-panel.php:1308 +#: includes/class-yit-plugin-panel.php:1380 msgid "Settings saved" msgstr "Instellingen opgeslagen" -#: includes/class-yit-plugin-panel.php:1309 +#: includes/class-yit-plugin-panel.php:1381 msgid "Settings reset" msgstr "Instellingen resetten" -#: includes/class-yit-plugin-panel.php:1310 +#: includes/class-yit-plugin-panel.php:1382 msgid "Element deleted correctly." msgstr "Element juist verwijderd." -#: includes/class-yit-plugin-panel.php:1311 -#: includes/class-yit-plugin-panel.php:1312 +#: includes/class-yit-plugin-panel.php:1383 +#: includes/class-yit-plugin-panel.php:1384 msgid "Element updated correctly." msgstr "Element juist geüpdatet." -#: includes/class-yit-plugin-panel.php:1313 +#: includes/class-yit-plugin-panel.php:1385 msgid "Database imported correctly." msgstr "Database juist geïmporteerd." -#: includes/class-yit-plugin-panel.php:1314 +#: includes/class-yit-plugin-panel.php:1386 msgid "An error has occurred during import. Please try again." msgstr "Er is een fout opgetreden tijdens importeren. Probeer opnieuw." -#: includes/class-yit-plugin-panel.php:1315 +#: includes/class-yit-plugin-panel.php:1387 msgid "The added file is not valid." msgstr "Het toegevoegde bestand is niet geldig." -#: includes/class-yit-plugin-panel.php:1316 +#: includes/class-yit-plugin-panel.php:1388 msgid "Sorry, import is disabled." msgstr "Sorry, importeren is uitgeschakeld." -#: includes/class-yit-plugin-panel.php:1317 +#: includes/class-yit-plugin-panel.php:1389 msgid "Sorting successful." msgstr "Succesvol gesorteerd." -#: includes/class-yit-plugin-panel.php:1806 -msgid "We need your support" -msgstr "We hebben je hulp nodig" - -#: includes/class-yit-plugin-panel.php:1807 -msgid "to keep updating and improving the plugin. Please," -msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.," - -#: includes/class-yit-plugin-panel.php:1809 -msgid "help us by leaving a good review" -msgstr "help ons door een goede beoordeling achter te laten" +#: includes/class-yit-plugin-subpanel.php:133 +#: templates/panel/panel-content-page.php:29 +msgid "Save Changes" +msgstr "Wijzigingen opslaan" -#: includes/class-yit-plugin-panel.php:1810 -msgid ":) Thanks!" -msgstr ":) Bedankt!" +#: includes/class-yit-plugin-subpanel.php:143 +#: templates/panel/panel-content-page.php:38 +msgid "Reset to default" +msgstr "Resetten naar standaard" #: includes/class-yit-pointers.php:80 msgid "Plugins Activated" @@ -326,12 +324,12 @@ msgstr "YITH Plugins" msgid "WooCommerce" msgstr "WooCommerce" -#: includes/class-yith-system-status.php:342 +#: includes/class-yith-system-status.php:341 msgid "Warning!" msgstr "Waarschuwing!" #. translators: %1$s open link tag, %2$s open link tag -#: includes/class-yith-system-status.php:346 +#: includes/class-yith-system-status.php:345 msgid "" "The system check has detected some compatibility issues on your installation." "%1$sClick here%2$s to know more" @@ -339,34 +337,34 @@ msgstr "" "Het systeem heeft enkele compatibiliteitsproblemen gevonden op uw " "installatie.%1$sklik hier%2$s om meer te weten te komen" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Enabled" msgstr "Ingeschakeld" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Disabled" msgstr "Uitgeschakeld" -#: includes/class-yith-system-status.php:501 +#: includes/class-yith-system-status.php:500 msgid "N/A" msgstr "N.v.t" #. translators: %1$s plugin name, %2$s requirement name -#: includes/class-yith-system-status.php:528 +#: includes/class-yith-system-status.php:527 msgid "%1$s needs %2$s enabled" msgstr "%1$s heeft nodig %2$s ingeschakeld" #. translators: %1$s plugin name, %2$s required memory amount -#: includes/class-yith-system-status.php:531 +#: includes/class-yith-system-status.php:530 msgid "%1$s needs at least %2$s of available memory" msgstr "%1$ss heeft ten minste %2$s beschikbaar geheugen nodig" #. translators: %1$s plugin name, %2$s version number -#: includes/class-yith-system-status.php:534 +#: includes/class-yith-system-status.php:533 msgid "%1$s needs at least %2$s version" msgstr "%1$s heeft minstens %2$s versie nodig" -#: includes/class-yith-system-status.php:558 +#: includes/class-yith-system-status.php:557 msgid "" "Update it to the latest version in order to benefit of all new features and " "security updates." @@ -374,27 +372,27 @@ msgstr "" "Bijwerken naar de laatste versie, om te profiteren van alle nieuwe opties en " "veiligheidsupdates." -#: includes/class-yith-system-status.php:562 -#: includes/class-yith-system-status.php:568 +#: includes/class-yith-system-status.php:561 +#: includes/class-yith-system-status.php:567 msgid "Contact your hosting company in order to update it." msgstr "Neem contact op met uw hosting provider om het bij te werken." -#: includes/class-yith-system-status.php:566 +#: includes/class-yith-system-status.php:565 msgid "Contact your hosting company in order to install it." msgstr "Neem contact op met je hostingbedrijf om het te installeren." #. translators: %1$s code, %2$s file name -#: includes/class-yith-system-status.php:573 +#: includes/class-yith-system-status.php:572 msgid "Remove %1$s from %2$s file" msgstr "Verwijder %1$s uit %2$s bestand" -#: includes/class-yith-system-status.php:581 +#: includes/class-yith-system-status.php:580 msgid "Contact your hosting company in order to enable it." msgstr "Neem contact op met uw hosting provider om het in te schakelen." #. translators: %1$s opening link tag, %2$s closing link tag -#: includes/class-yith-system-status.php:585 -#: includes/class-yith-system-status.php:608 +#: includes/class-yith-system-status.php:584 +#: includes/class-yith-system-status.php:607 msgid "" "Read more %1$shere%2$s or contact your hosting company in order to increase " "it." @@ -403,7 +401,7 @@ msgstr "" "het te verhogen." #. translators: %s recommended memory amount -#: includes/class-yith-system-status.php:605 +#: includes/class-yith-system-status.php:604 msgid "" "For optimal functioning of our plugins, we suggest setting at least %s of " "available memory" @@ -412,7 +410,7 @@ msgstr "" "beschikbaar geheugen" #. translators: %1$s TLS label, %2$s cURL label -#: includes/class-yith-system-status.php:613 +#: includes/class-yith-system-status.php:612 msgid "" "The system check cannot determine which %1$s version is installed because " "%2$s module is disabled. Ask your hosting company to enable it." @@ -421,7 +419,7 @@ msgstr "" "module is uitgeschakeld. Vraag je hostingmaatschappij om het in te schakelen." #. translators: %1$s TLS label -#: includes/class-yith-system-status.php:616 +#: includes/class-yith-system-status.php:615 msgid "" "The system check cannot determine which %1$s version is installed due to a " "connection issue between your site and our server." @@ -495,6 +493,10 @@ msgstr "Aangepast:" msgid "Preview:" msgstr "Voorbeeld:" +#: templates/fields/file.php:14 +msgid "Drag or upload a file." +msgstr "" + #: templates/fields/icons.php:78 msgid "Set Default" msgstr "Op standaard instellen" @@ -519,6 +521,23 @@ msgstr "Voeg images toe" msgid "Delete" msgstr "Verwijderen" +#: templates/fields/media.php:46 +msgid "Upload file" +msgstr "" + +#: templates/fields/media.php:52 +msgid "Enter URL" +msgstr "" + +#. translators: %s is the alternative action "Upload a file". +#: templates/fields/media.php:70 +msgid "Drag or %s" +msgstr "" + +#: templates/fields/media.php:71 +msgid "Upload a file" +msgstr "" + #: templates/fields/select-buttons.php:19 msgid "Add All" msgstr "Allen toevoegen" @@ -560,6 +579,39 @@ msgstr "Upload" msgid "Reset" msgstr "Resetten" +#: templates/panel/panel-header.php:23 templates/panel/v2/panel-header.php:18 +msgid "We need your support" +msgstr "We hebben je hulp nodig" + +#: templates/panel/panel-header.php:24 templates/panel/v2/panel-header.php:19 +msgid "to keep updating and improving the plugin. Please," +msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.," + +#: templates/panel/panel-header.php:26 templates/panel/v2/panel-header.php:21 +msgid "help us by leaving a good review" +msgstr "help ons door een goede beoordeling achter te laten" + +#: templates/panel/panel-header.php:27 templates/panel/v2/panel-header.php:22 +msgid ":) Thanks!" +msgstr ":) Bedankt!" + +#: templates/panel/v2/panel-content-page.php:57 +#: templates/panel/v2/woocommerce/woocommerce-form.php:69 +#: templates/panel/woocommerce/woocommerce-form.php:27 +#: templates/panel/woocommerce/woocommerce-form.php:31 +msgid "Save Options" +msgstr "Opties opslaan" + +#: templates/panel/v2/panel-content-page.php:58 +#: templates/panel/v2/woocommerce/woocommerce-form.php:70 +#: templates/panel/woocommerce/woocommerce-form.php:41 +msgid "Reset Defaults" +msgstr "Reset Standaard instellingen" + +#: templates/panel/v2/panel-nav.php:36 +msgid "Collapse" +msgstr "" + #. translators: %s is the plugin version. #: templates/panel/welcome-modals/update.php:34 msgid "is successfully updated to version %s." @@ -588,19 +640,10 @@ msgstr "" msgid "Start with these %s steps:" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:29 -#: templates/panel/woocommerce/woocommerce-form.php:33 -msgid "Save Options" -msgstr "Opties opslaan" - -#: templates/panel/woocommerce/woocommerce-form.php:33 +#: templates/panel/woocommerce/woocommerce-form.php:31 msgid "Options Saved" msgstr "Opties opgeslagen" -#: templates/panel/woocommerce/woocommerce-form.php:43 -msgid "Reset Defaults" -msgstr "Reset Standaard instellingen" - #: templates/sysinfo/system-information-panel.php:12 msgid "PHPInfo" msgstr "PHPInfo" @@ -725,16 +768,16 @@ msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" msgstr "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" #. translators: %s is the title of the post object. -#: yit-functions.php:1938 +#: yit-functions.php:1936 msgid "Are you sure you want to move \"%s\" to trash?" msgstr "Weet je zeker dat je \"%s\" naar de prullenbak wilt verplaatsen?" #. translators: %s is the title of the post object. -#: yit-functions.php:1940 yit-functions.php:2100 +#: yit-functions.php:1938 yit-functions.php:2097 msgid "Are you sure you want to delete \"%s\"?" msgstr "Weet je zeker dat je \"%s\" wilt verwijderen?" -#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 +#: yit-functions.php:2036 yit-functions.php:2044 yit-functions.php:2160 msgid "Further actions" msgstr "Verdere acties" @@ -768,71 +811,76 @@ msgctxt "[gutenberg]: Category Name" msgid "YITH" msgstr "YITH" -#: includes/class-yit-assets.php:120 +#: includes/class-yit-assets.php:121 msgctxt "Enhanced select" msgid "No matches found" msgstr "" -#: includes/class-yit-assets.php:121 +#: includes/class-yit-assets.php:122 msgctxt "Enhanced select" msgid "Please enter 1 or more characters" msgstr "" #. translators: %s is the number of characters. -#: includes/class-yit-assets.php:123 +#: includes/class-yit-assets.php:124 msgctxt "Enhanced select" msgid "Please enter %s or more characters" msgstr "" -#: includes/class-yit-assets.php:124 +#: includes/class-yit-assets.php:125 msgctxt "Enhanced select" msgid "Searching…" msgstr "" -#: includes/class-yit-assets.php:143 +#: includes/class-yit-assets.php:137 +msgctxt "Title" +msgid "Error" +msgstr "" + +#: includes/class-yit-assets.php:149 msgctxt "Button text" msgid "Confirm" msgstr "Bevestigen" -#: includes/class-yit-assets.php:144 +#: includes/class-yit-assets.php:150 msgctxt "Button text" msgid "Cancel" msgstr "Annuleren" -#: includes/class-yit-assets.php:157 yit-functions.php:2009 +#: includes/class-yit-assets.php:163 yit-functions.php:2007 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "Ja, verplaatsen naar prullenbak" -#: includes/class-yit-assets.php:161 yit-functions.php:2027 -#: yit-functions.php:2154 +#: includes/class-yit-assets.php:167 yit-functions.php:2025 +#: yit-functions.php:2151 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "Ja, verwijderen" #. translators: 1. Plugin name. -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for purchasing %s!" msgstr "Bedankt voor het kopen van %s!" -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for using %s!" msgstr "" -#: includes/class-yit-plugin-panel.php:812 +#: includes/class-yit-plugin-panel.php:879 msgctxt "Help tab default description" msgid "" "We want to help you enjoy a wonderful experience with all of our products." msgstr "" -#: includes/class-yit-plugin-panel.php:863 +#: includes/class-yit-plugin-panel.php:929 msgctxt "Premium tab name" msgid "Get premium" msgstr "Neem premium" -#: includes/class-yit-plugin-panel.php:875 +#: includes/class-yit-plugin-panel.php:945 msgctxt "Help tab name" msgid "Help" msgstr "Help" @@ -939,16 +987,6 @@ msgctxt "Image height field label" msgid "Height" msgstr "Hoogte" -#: templates/fields/onoff.php:28 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "YES" -msgstr "JA" - -#: templates/fields/onoff.php:29 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "NO" -msgstr "NEE" - #. translators: 1. Url to EN playlist. #: templates/panel/help-tab.php:89 msgctxt "Help tab view all video link" @@ -1091,57 +1129,62 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "Krijg de premium versie" -#: yit-functions.php:1952 +#: templates/panel/v2/panel-option-label-tags.php:16 +msgctxt "Panel option tag" +msgid "PREMIUM" +msgstr "" + +#: yit-functions.php:1950 msgctxt "Post action" msgid "Preview" msgstr "Voorbeeld" -#: yit-functions.php:1961 +#: yit-functions.php:1959 msgctxt "Post action" msgid "View" msgstr "Bekijken" -#: yit-functions.php:1972 +#: yit-functions.php:1970 msgctxt "Post action" msgid "Edit" msgstr "Bewerken" -#: yit-functions.php:1980 +#: yit-functions.php:1978 msgctxt "Post action" msgid "Duplicate" msgstr "Dupliceren" -#: yit-functions.php:1992 +#: yit-functions.php:1990 msgctxt "Post action" msgid "Restore" msgstr "Herstellen" -#: yit-functions.php:2000 +#: yit-functions.php:1998 msgctxt "Post action" msgid "Trash" msgstr "Prullenbak" -#: yit-functions.php:2017 +#: yit-functions.php:2015 msgctxt "Post action" msgid "Delete Permanently" msgstr "Permanent verijwderen" -#: yit-functions.php:2114 +#: yit-functions.php:2111 msgctxt "Term action" msgid "View" msgstr "Bekijken" -#: yit-functions.php:2124 +#: yit-functions.php:2121 msgctxt "Term action" msgid "Edit" msgstr "Bewerken" -#: yit-functions.php:2132 +#: yit-functions.php:2129 msgctxt "Term action" msgid "Duplicate" msgstr "Dupliceren" -#: yit-functions.php:2145 +#: yit-functions.php:2142 msgctxt "Term action" msgid "Delete" msgstr "Verwijderen" diff --git a/plugin-fw/languages/yith-plugin-fw-ru_RU.mo b/plugin-fw/languages/yith-plugin-fw-ru_RU.mo index 429f497..0bb672a 100644 Binary files a/plugin-fw/languages/yith-plugin-fw-ru_RU.mo and b/plugin-fw/languages/yith-plugin-fw-ru_RU.mo differ diff --git a/plugin-fw/languages/yith-plugin-fw-ru_RU.po b/plugin-fw/languages/yith-plugin-fw-ru_RU.po index bdbd082..1c464e5 100644 --- a/plugin-fw/languages/yith-plugin-fw-ru_RU.po +++ b/plugin-fw/languages/yith-plugin-fw-ru_RU.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: YITH Framework\n" "Report-Msgid-Bugs-To: YITH \n" -"POT-Creation-Date: 2023-02-14 10:45:27+00:00\n" +"POT-Creation-Date: 2023-03-10 11:17:07+00:00\n" "PO-Revision-Date: 2022-04-05 17:22:32+0000\n" "Language: ru\n" "MIME-Version: 1.0\n" @@ -14,56 +14,76 @@ msgstr "" "10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);\n" "X-Generator: GlotPress/3.0.0-alpha.2\n" -#: includes/class-yit-assets.php:155 yit-functions.php:2006 +#: includes/class-yit-assets.php:138 +msgid "No file provided." +msgstr "" + +#: includes/class-yit-assets.php:139 +msgid "You cannot drop files here." +msgstr "" + +#: includes/class-yit-assets.php:161 yit-functions.php:2004 msgid "Confirm trash" msgstr "Подтвердить корзину" -#: includes/class-yit-assets.php:156 +#: includes/class-yit-assets.php:162 msgid "Are you sure you want to trash the selected items?" msgstr "Вы уверены, что хотите переместить в корзину выбранные элементы?" -#: includes/class-yit-assets.php:158 includes/class-yit-assets.php:162 +#: includes/class-yit-assets.php:164 includes/class-yit-assets.php:168 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:2008 yit-functions.php:2026 +#: yit-functions.php:2006 yit-functions.php:2024 msgid "No" msgstr "Нет" -#: includes/class-yit-assets.php:159 yit-functions.php:2024 -#: yit-functions.php:2152 +#: includes/class-yit-assets.php:165 yit-functions.php:2022 +#: yit-functions.php:2149 msgid "Confirm delete" msgstr "Подтвердите удаление" -#: includes/class-yit-assets.php:160 +#: includes/class-yit-assets.php:166 msgid "Are you sure you want to delete the selected items?" msgstr "Вы уверены, что хотите удалить выбранные элементы?" -#: includes/class-yit-assets.php:160 yit-functions.php:1940 -#: yit-functions.php:2100 +#: includes/class-yit-assets.php:166 yit-functions.php:1938 +#: yit-functions.php:2097 msgid "" "This action cannot be undone and you will not be able to recover this data." msgstr "Это действие нельзя отменить, и вы не сможете восстановить эти данные." -#: includes/class-yit-assets.php:181 +#: includes/class-yit-assets.php:186 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "Are you sure?" +msgstr "Вы уверены?" + +#: includes/class-yit-assets.php:187 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "" +"If you continue with this action, you will reset all options in this page." +msgstr "" +"Если вы продолжите это действие, вы сбросите все параметры на этой странице." + +#: includes/class-yit-assets.php:198 msgid "Clear" msgstr "Очистить" -#: includes/class-yit-assets.php:182 +#: includes/class-yit-assets.php:199 msgid "Clear color" msgstr "Очистить цвет" -#: includes/class-yit-assets.php:183 +#: includes/class-yit-assets.php:200 msgid "Default" msgstr "По умолчанию" -#: includes/class-yit-assets.php:184 +#: includes/class-yit-assets.php:201 msgid "Select default color" msgstr "Выберите цвет по умолчанию" -#: includes/class-yit-assets.php:185 +#: includes/class-yit-assets.php:202 msgid "Select Color" msgstr "Выберите цвет" -#: includes/class-yit-assets.php:186 +#: includes/class-yit-assets.php:203 msgid "Color value" msgstr "Цвет значения" @@ -73,121 +93,99 @@ msgstr "" "При выполнении вашего запроса произошла ошибка; пожалуйста, повторите " "попытку позже." -#: includes/class-yit-plugin-panel-woocommerce.php:437 +#: includes/class-yit-plugin-panel-woocommerce.php:514 +msgid "Options saved correctly!" +msgstr "" + +#: includes/class-yit-plugin-panel-woocommerce.php:568 +msgid "Options reset correctly!" +msgstr "" + +#: includes/class-yit-plugin-panel-woocommerce.php:622 msgid "The changes you have made will be lost if you leave this page." msgstr "" "Внесенные вами изменения будут потеряны, если вы покинете эту страницу." -#: includes/class-yit-plugin-panel.php:83 +#: includes/class-yit-plugin-panel.php:90 msgid "Plugin Settings" msgstr "Настройки Плагина" -#: includes/class-yit-plugin-panel.php:84 +#: includes/class-yit-plugin-panel.php:91 msgid "Settings" msgstr "Настройки" -#: includes/class-yit-plugin-panel.php:456 -#: includes/class-yit-plugin-panel.php:459 +#: includes/class-yit-plugin-panel.php:554 +#: includes/class-yit-plugin-panel.php:557 msgid "How to install premium version" msgstr "Как установить премиум версию" -#: includes/class-yit-plugin-panel.php:656 -#: includes/class-yit-plugin-subpanel.php:133 -msgid "Save Changes" -msgstr "Сохранить Изменения" - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "" -"If you continue with this action, you will reset all options in this page." -msgstr "" -"Если вы продолжите это действие, вы сбросите все параметры на этой странице." - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "Are you sure?" -msgstr "Вы уверены?" - -#: includes/class-yit-plugin-panel.php:668 -#: includes/class-yit-plugin-subpanel.php:143 -msgid "Reset to default" -msgstr "Сброс до заводских настроек" - -#: includes/class-yit-plugin-panel.php:1039 +#: includes/class-yit-plugin-panel.php:1112 msgid "Read the plugin documentation" msgstr "" -#: includes/class-yit-plugin-panel.php:1040 +#: includes/class-yit-plugin-panel.php:1113 msgid "Learn what you can really do with this powerful tool" msgstr "" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1123 msgid "Watch our \"First Steps\" video" msgstr "" -#: includes/class-yit-plugin-panel.php:1051 +#: includes/class-yit-plugin-panel.php:1124 msgid "See how it works before you start using it" msgstr "" -#: includes/class-yit-plugin-panel.php:1307 +#: includes/class-yit-plugin-panel.php:1379 msgid "" "The element you have entered already exists. Please, enter another name." msgstr "Введенный вами элемент уже существует. Пожалуйста, введите другое имя." -#: includes/class-yit-plugin-panel.php:1308 +#: includes/class-yit-plugin-panel.php:1380 msgid "Settings saved" msgstr "Настройки сохранены" -#: includes/class-yit-plugin-panel.php:1309 +#: includes/class-yit-plugin-panel.php:1381 msgid "Settings reset" msgstr "Сбросить настройки" -#: includes/class-yit-plugin-panel.php:1310 +#: includes/class-yit-plugin-panel.php:1382 msgid "Element deleted correctly." msgstr "Элемент удален правильно." -#: includes/class-yit-plugin-panel.php:1311 -#: includes/class-yit-plugin-panel.php:1312 +#: includes/class-yit-plugin-panel.php:1383 +#: includes/class-yit-plugin-panel.php:1384 msgid "Element updated correctly." msgstr "Элемент обновлен правильно." -#: includes/class-yit-plugin-panel.php:1313 +#: includes/class-yit-plugin-panel.php:1385 msgid "Database imported correctly." msgstr "База данных импортирована правильно." -#: includes/class-yit-plugin-panel.php:1314 +#: includes/class-yit-plugin-panel.php:1386 msgid "An error has occurred during import. Please try again." msgstr "Во время импорта произошла ошибка. Пожалуйста, попробуйте еще раз." -#: includes/class-yit-plugin-panel.php:1315 +#: includes/class-yit-plugin-panel.php:1387 msgid "The added file is not valid." msgstr "Добавленный файл недействителен." -#: includes/class-yit-plugin-panel.php:1316 +#: includes/class-yit-plugin-panel.php:1388 msgid "Sorry, import is disabled." msgstr "Извините, импорт отключен." -#: includes/class-yit-plugin-panel.php:1317 +#: includes/class-yit-plugin-panel.php:1389 msgid "Sorting successful." msgstr "Сортировка выполнена успешно." -#: includes/class-yit-plugin-panel.php:1806 -msgid "We need your support" -msgstr "Нам нужна ваша поддержка" - -#: includes/class-yit-plugin-panel.php:1807 -msgid "to keep updating and improving the plugin. Please," -msgstr "чтобы продолжать обновлять и улучшать плагин. Пожалуйста," - -#: includes/class-yit-plugin-panel.php:1809 -msgid "help us by leaving a good review" -msgstr "помогите нам, оставив хороший отзыв" +#: includes/class-yit-plugin-subpanel.php:133 +#: templates/panel/panel-content-page.php:29 +msgid "Save Changes" +msgstr "Сохранить Изменения" -#: includes/class-yit-plugin-panel.php:1810 -msgid ":) Thanks!" -msgstr ":) Благодарим!" +#: includes/class-yit-plugin-subpanel.php:143 +#: templates/panel/panel-content-page.php:38 +msgid "Reset to default" +msgstr "Сброс до заводских настроек" #: includes/class-yit-pointers.php:80 msgid "Plugins Activated" @@ -324,12 +322,12 @@ msgstr "Плагины YITH" msgid "WooCommerce" msgstr "WooCommerce" -#: includes/class-yith-system-status.php:342 +#: includes/class-yith-system-status.php:341 msgid "Warning!" msgstr "Внимание!" #. translators: %1$s open link tag, %2$s open link tag -#: includes/class-yith-system-status.php:346 +#: includes/class-yith-system-status.php:345 msgid "" "The system check has detected some compatibility issues on your installation." "%1$sClick here%2$s to know more" @@ -337,34 +335,34 @@ msgstr "" "Проверка системы обнаружила некоторые проблемы совместимости в вашей " "установке.%1$sНажмите сюда%2$s чтобы узнать больше" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Enabled" msgstr "Включено" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Disabled" msgstr "Отключено" -#: includes/class-yith-system-status.php:501 +#: includes/class-yith-system-status.php:500 msgid "N/A" msgstr "Б/н" #. translators: %1$s plugin name, %2$s requirement name -#: includes/class-yith-system-status.php:528 +#: includes/class-yith-system-status.php:527 msgid "%1$s needs %2$s enabled" msgstr "%1$s требует включения %2$s" #. translators: %1$s plugin name, %2$s required memory amount -#: includes/class-yith-system-status.php:531 +#: includes/class-yith-system-status.php:530 msgid "%1$s needs at least %2$s of available memory" msgstr "%1$s требуется не менее %2$s доступной памяти" #. translators: %1$s plugin name, %2$s version number -#: includes/class-yith-system-status.php:534 +#: includes/class-yith-system-status.php:533 msgid "%1$s needs at least %2$s version" msgstr "%1$s требует как минимум %2$s версии" -#: includes/class-yith-system-status.php:558 +#: includes/class-yith-system-status.php:557 msgid "" "Update it to the latest version in order to benefit of all new features and " "security updates." @@ -372,27 +370,27 @@ msgstr "" "Обновите его до последней версии, чтобы воспользоваться всеми новыми " "функциями и обновлениями безопасности." -#: includes/class-yith-system-status.php:562 -#: includes/class-yith-system-status.php:568 +#: includes/class-yith-system-status.php:561 +#: includes/class-yith-system-status.php:567 msgid "Contact your hosting company in order to update it." msgstr "Свяжитесь с вашей хостинговой компанией, чтобы обновить его." -#: includes/class-yith-system-status.php:566 +#: includes/class-yith-system-status.php:565 msgid "Contact your hosting company in order to install it." msgstr "Для его установки обратитесь в свою хостинговую компанию." #. translators: %1$s code, %2$s file name -#: includes/class-yith-system-status.php:573 +#: includes/class-yith-system-status.php:572 msgid "Remove %1$s from %2$s file" msgstr "Удалить %1$s из файла %2$s" -#: includes/class-yith-system-status.php:581 +#: includes/class-yith-system-status.php:580 msgid "Contact your hosting company in order to enable it." msgstr "Свяжитесь с вашей хостинговой компанией, чтобы включить его." #. translators: %1$s opening link tag, %2$s closing link tag -#: includes/class-yith-system-status.php:585 -#: includes/class-yith-system-status.php:608 +#: includes/class-yith-system-status.php:584 +#: includes/class-yith-system-status.php:607 msgid "" "Read more %1$shere%2$s or contact your hosting company in order to increase " "it." @@ -401,7 +399,7 @@ msgstr "" "чтобы увеличить его." #. translators: %s recommended memory amount -#: includes/class-yith-system-status.php:605 +#: includes/class-yith-system-status.php:604 msgid "" "For optimal functioning of our plugins, we suggest setting at least %s of " "available memory" @@ -410,7 +408,7 @@ msgstr "" "не менее %s доступной памяти" #. translators: %1$s TLS label, %2$s cURL label -#: includes/class-yith-system-status.php:613 +#: includes/class-yith-system-status.php:612 msgid "" "The system check cannot determine which %1$s version is installed because " "%2$s module is disabled. Ask your hosting company to enable it." @@ -420,7 +418,7 @@ msgstr "" "его." #. translators: %1$s TLS label -#: includes/class-yith-system-status.php:616 +#: includes/class-yith-system-status.php:615 msgid "" "The system check cannot determine which %1$s version is installed due to a " "connection issue between your site and our server." @@ -494,6 +492,10 @@ msgstr "Обычай:" msgid "Preview:" msgstr "Предпросмотр:" +#: templates/fields/file.php:14 +msgid "Drag or upload a file." +msgstr "" + #: templates/fields/icons.php:78 msgid "Set Default" msgstr "Установить по умолчанию" @@ -518,6 +520,23 @@ msgstr "Добавить Изображения" msgid "Delete" msgstr "Удалить" +#: templates/fields/media.php:46 +msgid "Upload file" +msgstr "" + +#: templates/fields/media.php:52 +msgid "Enter URL" +msgstr "" + +#. translators: %s is the alternative action "Upload a file". +#: templates/fields/media.php:70 +msgid "Drag or %s" +msgstr "" + +#: templates/fields/media.php:71 +msgid "Upload a file" +msgstr "" + #: templates/fields/select-buttons.php:19 msgid "Add All" msgstr "Добавить Все" @@ -559,6 +578,39 @@ msgstr "Загрузить" msgid "Reset" msgstr "Сброс" +#: templates/panel/panel-header.php:23 templates/panel/v2/panel-header.php:18 +msgid "We need your support" +msgstr "Нам нужна ваша поддержка" + +#: templates/panel/panel-header.php:24 templates/panel/v2/panel-header.php:19 +msgid "to keep updating and improving the plugin. Please," +msgstr "чтобы продолжать обновлять и улучшать плагин. Пожалуйста," + +#: templates/panel/panel-header.php:26 templates/panel/v2/panel-header.php:21 +msgid "help us by leaving a good review" +msgstr "помогите нам, оставив хороший отзыв" + +#: templates/panel/panel-header.php:27 templates/panel/v2/panel-header.php:22 +msgid ":) Thanks!" +msgstr ":) Благодарим!" + +#: templates/panel/v2/panel-content-page.php:57 +#: templates/panel/v2/woocommerce/woocommerce-form.php:69 +#: templates/panel/woocommerce/woocommerce-form.php:27 +#: templates/panel/woocommerce/woocommerce-form.php:31 +msgid "Save Options" +msgstr "Сохранить Настройки" + +#: templates/panel/v2/panel-content-page.php:58 +#: templates/panel/v2/woocommerce/woocommerce-form.php:70 +#: templates/panel/woocommerce/woocommerce-form.php:41 +msgid "Reset Defaults" +msgstr "Сброс до настроек по умолчанию" + +#: templates/panel/v2/panel-nav.php:36 +msgid "Collapse" +msgstr "" + #. translators: %s is the plugin version. #: templates/panel/welcome-modals/update.php:34 msgid "is successfully updated to version %s." @@ -587,19 +639,10 @@ msgstr "" msgid "Start with these %s steps:" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:29 -#: templates/panel/woocommerce/woocommerce-form.php:33 -msgid "Save Options" -msgstr "Сохранить Настройки" - -#: templates/panel/woocommerce/woocommerce-form.php:33 +#: templates/panel/woocommerce/woocommerce-form.php:31 msgid "Options Saved" msgstr "Настройки Сохранены" -#: templates/panel/woocommerce/woocommerce-form.php:43 -msgid "Reset Defaults" -msgstr "Сброс до настроек по умолчанию" - #: templates/sysinfo/system-information-panel.php:12 msgid "PHPInfo" msgstr "PHPInfo" @@ -724,16 +767,16 @@ msgstr "" "Данные: %1$.2fMB | Индекс: %2$.2fMB | Свободно: %3$.2fMB | Движок: %4$s" #. translators: %s is the title of the post object. -#: yit-functions.php:1938 +#: yit-functions.php:1936 msgid "Are you sure you want to move \"%s\" to trash?" msgstr "Вы уверены, что хотите переместить в корзину \"%s\"?" #. translators: %s is the title of the post object. -#: yit-functions.php:1940 yit-functions.php:2100 +#: yit-functions.php:1938 yit-functions.php:2097 msgid "Are you sure you want to delete \"%s\"?" msgstr "Вы уверены, что хотите удалить \"%s\"?" -#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 +#: yit-functions.php:2036 yit-functions.php:2044 yit-functions.php:2160 msgid "Further actions" msgstr "Дальнейшие действия" @@ -768,60 +811,65 @@ msgctxt "[gutenberg]: Category Name" msgid "YITH" msgstr "YITH" -#: includes/class-yit-assets.php:120 +#: includes/class-yit-assets.php:121 msgctxt "Enhanced select" msgid "No matches found" msgstr "" -#: includes/class-yit-assets.php:121 +#: includes/class-yit-assets.php:122 msgctxt "Enhanced select" msgid "Please enter 1 or more characters" msgstr "" #. translators: %s is the number of characters. -#: includes/class-yit-assets.php:123 +#: includes/class-yit-assets.php:124 msgctxt "Enhanced select" msgid "Please enter %s or more characters" msgstr "" -#: includes/class-yit-assets.php:124 +#: includes/class-yit-assets.php:125 msgctxt "Enhanced select" msgid "Searching…" msgstr "" -#: includes/class-yit-assets.php:143 +#: includes/class-yit-assets.php:137 +msgctxt "Title" +msgid "Error" +msgstr "" + +#: includes/class-yit-assets.php:149 msgctxt "Button text" msgid "Confirm" msgstr "Подтвердить" -#: includes/class-yit-assets.php:144 +#: includes/class-yit-assets.php:150 msgctxt "Button text" msgid "Cancel" msgstr "Отмена" -#: includes/class-yit-assets.php:157 yit-functions.php:2009 +#: includes/class-yit-assets.php:163 yit-functions.php:2007 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "Да, удалить в корзину" -#: includes/class-yit-assets.php:161 yit-functions.php:2027 -#: yit-functions.php:2154 +#: includes/class-yit-assets.php:167 yit-functions.php:2025 +#: yit-functions.php:2151 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "Да, удалить" #. translators: 1. Plugin name. -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for purchasing %s!" msgstr "Благодарим вас за покупку %s!" -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for using %s!" msgstr "" -#: includes/class-yit-plugin-panel.php:812 +#: includes/class-yit-plugin-panel.php:879 msgctxt "Help tab default description" msgid "" "We want to help you enjoy a wonderful experience with all of our products." @@ -829,12 +877,12 @@ msgstr "" "Мы хотим помочь вам получить удовольствие от использования всех наших " "продуктов." -#: includes/class-yit-plugin-panel.php:863 +#: includes/class-yit-plugin-panel.php:929 msgctxt "Premium tab name" msgid "Get premium" msgstr "Получите премиум" -#: includes/class-yit-plugin-panel.php:875 +#: includes/class-yit-plugin-panel.php:945 msgctxt "Help tab name" msgid "Help" msgstr "Помощь" @@ -942,16 +990,6 @@ msgctxt "Image height field label" msgid "Height" msgstr "Высота" -#: templates/fields/onoff.php:28 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "YES" -msgstr "ДА" - -#: templates/fields/onoff.php:29 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "NO" -msgstr "НЕТ" - #. translators: 1. Url to EN playlist. #: templates/panel/help-tab.php:89 msgctxt "Help tab view all video link" @@ -1097,57 +1135,62 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "Получите премиум-версию" -#: yit-functions.php:1952 +#: templates/panel/v2/panel-option-label-tags.php:16 +msgctxt "Panel option tag" +msgid "PREMIUM" +msgstr "" + +#: yit-functions.php:1950 msgctxt "Post action" msgid "Preview" msgstr "Предварительный просмотр" -#: yit-functions.php:1961 +#: yit-functions.php:1959 msgctxt "Post action" msgid "View" msgstr "Просмотреть" -#: yit-functions.php:1972 +#: yit-functions.php:1970 msgctxt "Post action" msgid "Edit" msgstr "Изменить" -#: yit-functions.php:1980 +#: yit-functions.php:1978 msgctxt "Post action" msgid "Duplicate" msgstr "Дублировать" -#: yit-functions.php:1992 +#: yit-functions.php:1990 msgctxt "Post action" msgid "Restore" msgstr "Восстановить" -#: yit-functions.php:2000 +#: yit-functions.php:1998 msgctxt "Post action" msgid "Trash" msgstr "Корзина" -#: yit-functions.php:2017 +#: yit-functions.php:2015 msgctxt "Post action" msgid "Delete Permanently" msgstr "Удалить навсегда" -#: yit-functions.php:2114 +#: yit-functions.php:2111 msgctxt "Term action" msgid "View" msgstr "Просмотреть" -#: yit-functions.php:2124 +#: yit-functions.php:2121 msgctxt "Term action" msgid "Edit" msgstr "Изменить" -#: yit-functions.php:2132 +#: yit-functions.php:2129 msgctxt "Term action" msgid "Duplicate" msgstr "Дублировать" -#: yit-functions.php:2145 +#: yit-functions.php:2142 msgctxt "Term action" msgid "Delete" msgstr "Удалить" diff --git a/plugin-fw/languages/yith-plugin-fw-zh_CN.mo b/plugin-fw/languages/yith-plugin-fw-zh_CN.mo index aae030f..5baaccc 100644 Binary files a/plugin-fw/languages/yith-plugin-fw-zh_CN.mo and b/plugin-fw/languages/yith-plugin-fw-zh_CN.mo differ diff --git a/plugin-fw/languages/yith-plugin-fw-zh_CN.po b/plugin-fw/languages/yith-plugin-fw-zh_CN.po index 40be1f7..61a3013 100644 --- a/plugin-fw/languages/yith-plugin-fw-zh_CN.po +++ b/plugin-fw/languages/yith-plugin-fw-zh_CN.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: YITH Framework\n" "Report-Msgid-Bugs-To: YITH \n" -"POT-Creation-Date: 2023-02-14 10:45:27+00:00\n" +"POT-Creation-Date: 2023-03-10 11:17:07+00:00\n" "PO-Revision-Date: 2022-06-29 13:12:18+0000\n" "Language: zh\n" "MIME-Version: 1.0\n" @@ -13,56 +13,75 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: GlotPress/3.0.0-alpha.2\n" -#: includes/class-yit-assets.php:155 yit-functions.php:2006 +#: includes/class-yit-assets.php:138 +msgid "No file provided." +msgstr "" + +#: includes/class-yit-assets.php:139 +msgid "You cannot drop files here." +msgstr "" + +#: includes/class-yit-assets.php:161 yit-functions.php:2004 msgid "Confirm trash" msgstr "確認丟棄" -#: includes/class-yit-assets.php:156 +#: includes/class-yit-assets.php:162 msgid "Are you sure you want to trash the selected items?" msgstr "你確定要將所選的項目移至垃圾桶嗎?" -#: includes/class-yit-assets.php:158 includes/class-yit-assets.php:162 +#: includes/class-yit-assets.php:164 includes/class-yit-assets.php:168 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:2008 yit-functions.php:2026 +#: yit-functions.php:2006 yit-functions.php:2024 msgid "No" msgstr "不" -#: includes/class-yit-assets.php:159 yit-functions.php:2024 -#: yit-functions.php:2152 +#: includes/class-yit-assets.php:165 yit-functions.php:2022 +#: yit-functions.php:2149 msgid "Confirm delete" msgstr "確認刪除" -#: includes/class-yit-assets.php:160 +#: includes/class-yit-assets.php:166 msgid "Are you sure you want to delete the selected items?" msgstr "你確定要刪除所選的項目嗎?" -#: includes/class-yit-assets.php:160 yit-functions.php:1940 -#: yit-functions.php:2100 +#: includes/class-yit-assets.php:166 yit-functions.php:1938 +#: yit-functions.php:2097 msgid "" "This action cannot be undone and you will not be able to recover this data." msgstr "此操作無法撤消,您將無法恢復此數據。" -#: includes/class-yit-assets.php:181 +#: includes/class-yit-assets.php:186 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "Are you sure?" +msgstr "你確定嗎?" + +#: includes/class-yit-assets.php:187 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "" +"If you continue with this action, you will reset all options in this page." +msgstr "如果你繼續這個動作,你將會重設這個頁面所有的選項" + +#: includes/class-yit-assets.php:198 msgid "Clear" msgstr "清除" -#: includes/class-yit-assets.php:182 +#: includes/class-yit-assets.php:199 msgid "Clear color" msgstr "清除顏色" -#: includes/class-yit-assets.php:183 +#: includes/class-yit-assets.php:200 msgid "Default" msgstr "預設" -#: includes/class-yit-assets.php:184 +#: includes/class-yit-assets.php:201 msgid "Select default color" msgstr "選擇預設顏色" -#: includes/class-yit-assets.php:185 +#: includes/class-yit-assets.php:202 msgid "Select Color" msgstr "選擇顏色" -#: includes/class-yit-assets.php:186 +#: includes/class-yit-assets.php:203 msgid "Color value" msgstr "顏色數值" @@ -70,119 +89,98 @@ msgstr "顏色數值" msgid "There was an error with your request; please try again later." msgstr "您的請求有誤; 請稍後再試。" -#: includes/class-yit-plugin-panel-woocommerce.php:437 +#: includes/class-yit-plugin-panel-woocommerce.php:514 +msgid "Options saved correctly!" +msgstr "" + +#: includes/class-yit-plugin-panel-woocommerce.php:568 +msgid "Options reset correctly!" +msgstr "" + +#: includes/class-yit-plugin-panel-woocommerce.php:622 msgid "The changes you have made will be lost if you leave this page." msgstr "如果你離開這個頁面,這些改變將會遺失" -#: includes/class-yit-plugin-panel.php:83 +#: includes/class-yit-plugin-panel.php:90 msgid "Plugin Settings" msgstr "外掛設定" -#: includes/class-yit-plugin-panel.php:84 +#: includes/class-yit-plugin-panel.php:91 msgid "Settings" msgstr "設定" -#: includes/class-yit-plugin-panel.php:456 -#: includes/class-yit-plugin-panel.php:459 +#: includes/class-yit-plugin-panel.php:554 +#: includes/class-yit-plugin-panel.php:557 msgid "How to install premium version" msgstr "如何安裝高級版" -#: includes/class-yit-plugin-panel.php:656 -#: includes/class-yit-plugin-subpanel.php:133 -msgid "Save Changes" -msgstr "儲存變更" - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "" -"If you continue with this action, you will reset all options in this page." -msgstr "如果你繼續這個動作,你將會重設這個頁面所有的選項" - -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "Are you sure?" -msgstr "你確定嗎?" - -#: includes/class-yit-plugin-panel.php:668 -#: includes/class-yit-plugin-subpanel.php:143 -msgid "Reset to default" -msgstr "重置為預設值" - -#: includes/class-yit-plugin-panel.php:1039 +#: includes/class-yit-plugin-panel.php:1112 msgid "Read the plugin documentation" msgstr "" -#: includes/class-yit-plugin-panel.php:1040 +#: includes/class-yit-plugin-panel.php:1113 msgid "Learn what you can really do with this powerful tool" msgstr "" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1123 msgid "Watch our \"First Steps\" video" msgstr "" -#: includes/class-yit-plugin-panel.php:1051 +#: includes/class-yit-plugin-panel.php:1124 msgid "See how it works before you start using it" msgstr "" -#: includes/class-yit-plugin-panel.php:1307 +#: includes/class-yit-plugin-panel.php:1379 msgid "" "The element you have entered already exists. Please, enter another name." msgstr "你輸入的這個元素已經存在,請輸入另一個名稱" -#: includes/class-yit-plugin-panel.php:1308 +#: includes/class-yit-plugin-panel.php:1380 msgid "Settings saved" msgstr "設定已經儲存" -#: includes/class-yit-plugin-panel.php:1309 +#: includes/class-yit-plugin-panel.php:1381 msgid "Settings reset" msgstr "重置設定" -#: includes/class-yit-plugin-panel.php:1310 +#: includes/class-yit-plugin-panel.php:1382 msgid "Element deleted correctly." msgstr "元素已被確實刪除" -#: includes/class-yit-plugin-panel.php:1311 -#: includes/class-yit-plugin-panel.php:1312 +#: includes/class-yit-plugin-panel.php:1383 +#: includes/class-yit-plugin-panel.php:1384 msgid "Element updated correctly." msgstr "元素已正確更新。" -#: includes/class-yit-plugin-panel.php:1313 +#: includes/class-yit-plugin-panel.php:1385 msgid "Database imported correctly." msgstr "資料庫已被正確匯入" -#: includes/class-yit-plugin-panel.php:1314 +#: includes/class-yit-plugin-panel.php:1386 msgid "An error has occurred during import. Please try again." msgstr "匯入過程中發生一個錯誤,請再試一次" -#: includes/class-yit-plugin-panel.php:1315 +#: includes/class-yit-plugin-panel.php:1387 msgid "The added file is not valid." msgstr "添加的檔案無效" -#: includes/class-yit-plugin-panel.php:1316 +#: includes/class-yit-plugin-panel.php:1388 msgid "Sorry, import is disabled." msgstr "抱歉,匯入功能被關閉" -#: includes/class-yit-plugin-panel.php:1317 +#: includes/class-yit-plugin-panel.php:1389 msgid "Sorting successful." msgstr "已順利排序" -#: includes/class-yit-plugin-panel.php:1806 -msgid "We need your support" -msgstr "我們需要你的支援" - -#: includes/class-yit-plugin-panel.php:1807 -msgid "to keep updating and improving the plugin. Please," -msgstr "請不斷保持更新與改進外掛" - -#: includes/class-yit-plugin-panel.php:1809 -msgid "help us by leaving a good review" -msgstr "留下好的評論幫助我們更進步" +#: includes/class-yit-plugin-subpanel.php:133 +#: templates/panel/panel-content-page.php:29 +msgid "Save Changes" +msgstr "儲存變更" -#: includes/class-yit-plugin-panel.php:1810 -msgid ":) Thanks!" -msgstr ":) 謝謝!" +#: includes/class-yit-plugin-subpanel.php:143 +#: templates/panel/panel-content-page.php:38 +msgid "Reset to default" +msgstr "重置為預設值" #: includes/class-yit-pointers.php:80 msgid "Plugins Activated" @@ -316,86 +314,86 @@ msgstr "YITH 外掛" msgid "WooCommerce" msgstr "WooCommerce" -#: includes/class-yith-system-status.php:342 +#: includes/class-yith-system-status.php:341 msgid "Warning!" msgstr "警告!" #. translators: %1$s open link tag, %2$s open link tag -#: includes/class-yith-system-status.php:346 +#: includes/class-yith-system-status.php:345 msgid "" "The system check has detected some compatibility issues on your installation." "%1$sClick here%2$s to know more" msgstr "" "系統檢查檢測到您的安裝存在一些相容性問題。%1$s 點擊此處 %2$s 了解更多訊息" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Enabled" msgstr "啟用" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Disabled" msgstr "關閉" -#: includes/class-yith-system-status.php:501 +#: includes/class-yith-system-status.php:500 msgid "N/A" msgstr "不詳" #. translators: %1$s plugin name, %2$s requirement name -#: includes/class-yith-system-status.php:528 +#: includes/class-yith-system-status.php:527 msgid "%1$s needs %2$s enabled" msgstr "%1$s 需要 %2$s 啟動" #. translators: %1$s plugin name, %2$s required memory amount -#: includes/class-yith-system-status.php:531 +#: includes/class-yith-system-status.php:530 msgid "%1$s needs at least %2$s of available memory" msgstr "%1$s 需要最少 %2$s 的可用記憶體" #. translators: %1$s plugin name, %2$s version number -#: includes/class-yith-system-status.php:534 +#: includes/class-yith-system-status.php:533 msgid "%1$s needs at least %2$s version" msgstr "%1$s 需要最低 %2$s 的版本" -#: includes/class-yith-system-status.php:558 +#: includes/class-yith-system-status.php:557 msgid "" "Update it to the latest version in order to benefit of all new features and " "security updates." msgstr "將其更新到最新版本,以便從所有新功能和安全更新中受益。" -#: includes/class-yith-system-status.php:562 -#: includes/class-yith-system-status.php:568 +#: includes/class-yith-system-status.php:561 +#: includes/class-yith-system-status.php:567 msgid "Contact your hosting company in order to update it." msgstr "聯絡您的網站主機托管公司進行更新" -#: includes/class-yith-system-status.php:566 +#: includes/class-yith-system-status.php:565 msgid "Contact your hosting company in order to install it." msgstr "聯絡您的網站主機托管公司進行安裝" #. translators: %1$s code, %2$s file name -#: includes/class-yith-system-status.php:573 +#: includes/class-yith-system-status.php:572 msgid "Remove %1$s from %2$s file" msgstr "從 %1$s 到 %2$s 移除這些檔案" -#: includes/class-yith-system-status.php:581 +#: includes/class-yith-system-status.php:580 msgid "Contact your hosting company in order to enable it." msgstr "聯絡你的主機托管公司去啟動" #. translators: %1$s opening link tag, %2$s closing link tag -#: includes/class-yith-system-status.php:585 -#: includes/class-yith-system-status.php:608 +#: includes/class-yith-system-status.php:584 +#: includes/class-yith-system-status.php:607 msgid "" "Read more %1$shere%2$s or contact your hosting company in order to increase " "it." msgstr "閱讀更多 %1$shere%2$s 或聯繫您的託管公司以增加它。" #. translators: %s recommended memory amount -#: includes/class-yith-system-status.php:605 +#: includes/class-yith-system-status.php:604 msgid "" "For optimal functioning of our plugins, we suggest setting at least %s of " "available memory" msgstr "為了使我們的外掛發揮最佳功能,我們建議至少設置 %s 的可用記憶體" #. translators: %1$s TLS label, %2$s cURL label -#: includes/class-yith-system-status.php:613 +#: includes/class-yith-system-status.php:612 msgid "" "The system check cannot determine which %1$s version is installed because " "%2$s module is disabled. Ask your hosting company to enable it." @@ -404,7 +402,7 @@ msgstr "" "公司啟用它。" #. translators: %1$s TLS label -#: includes/class-yith-system-status.php:616 +#: includes/class-yith-system-status.php:615 msgid "" "The system check cannot determine which %1$s version is installed due to a " "connection issue between your site and our server." @@ -478,6 +476,10 @@ msgstr "自訂:" msgid "Preview:" msgstr "預覽:" +#: templates/fields/file.php:14 +msgid "Drag or upload a file." +msgstr "" + #: templates/fields/icons.php:78 msgid "Set Default" msgstr "設成預設" @@ -502,6 +504,23 @@ msgstr "增加圖片" msgid "Delete" msgstr "刪除" +#: templates/fields/media.php:46 +msgid "Upload file" +msgstr "" + +#: templates/fields/media.php:52 +msgid "Enter URL" +msgstr "" + +#. translators: %s is the alternative action "Upload a file". +#: templates/fields/media.php:70 +msgid "Drag or %s" +msgstr "" + +#: templates/fields/media.php:71 +msgid "Upload a file" +msgstr "" + #: templates/fields/select-buttons.php:19 msgid "Add All" msgstr "增加全部" @@ -543,6 +562,39 @@ msgstr "上傳" msgid "Reset" msgstr "重置" +#: templates/panel/panel-header.php:23 templates/panel/v2/panel-header.php:18 +msgid "We need your support" +msgstr "我們需要你的支援" + +#: templates/panel/panel-header.php:24 templates/panel/v2/panel-header.php:19 +msgid "to keep updating and improving the plugin. Please," +msgstr "請不斷保持更新與改進外掛" + +#: templates/panel/panel-header.php:26 templates/panel/v2/panel-header.php:21 +msgid "help us by leaving a good review" +msgstr "留下好的評論幫助我們更進步" + +#: templates/panel/panel-header.php:27 templates/panel/v2/panel-header.php:22 +msgid ":) Thanks!" +msgstr ":) 謝謝!" + +#: templates/panel/v2/panel-content-page.php:57 +#: templates/panel/v2/woocommerce/woocommerce-form.php:69 +#: templates/panel/woocommerce/woocommerce-form.php:27 +#: templates/panel/woocommerce/woocommerce-form.php:31 +msgid "Save Options" +msgstr "儲存選項" + +#: templates/panel/v2/panel-content-page.php:58 +#: templates/panel/v2/woocommerce/woocommerce-form.php:70 +#: templates/panel/woocommerce/woocommerce-form.php:41 +msgid "Reset Defaults" +msgstr "重置為預設值" + +#: templates/panel/v2/panel-nav.php:36 +msgid "Collapse" +msgstr "" + #. translators: %s is the plugin version. #: templates/panel/welcome-modals/update.php:34 msgid "is successfully updated to version %s." @@ -571,19 +623,10 @@ msgstr "" msgid "Start with these %s steps:" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:29 -#: templates/panel/woocommerce/woocommerce-form.php:33 -msgid "Save Options" -msgstr "儲存選項" - -#: templates/panel/woocommerce/woocommerce-form.php:33 +#: templates/panel/woocommerce/woocommerce-form.php:31 msgid "Options Saved" msgstr "選項已儲存" -#: templates/panel/woocommerce/woocommerce-form.php:43 -msgid "Reset Defaults" -msgstr "重置為預設值" - #: templates/sysinfo/system-information-panel.php:12 msgid "PHPInfo" msgstr "PHP 信息" @@ -706,16 +749,16 @@ msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" msgstr "資料數據: %1$.2fMB | 索引: %2$.2fMB | 可用: %3$.2fMB | 引擎: %4$s" #. translators: %s is the title of the post object. -#: yit-functions.php:1938 +#: yit-functions.php:1936 msgid "Are you sure you want to move \"%s\" to trash?" msgstr "您確定要將 \"%s\" 丟進垃圾桶嗎?" #. translators: %s is the title of the post object. -#: yit-functions.php:1940 yit-functions.php:2100 +#: yit-functions.php:1938 yit-functions.php:2097 msgid "Are you sure you want to delete \"%s\"?" msgstr "您確定要刪除 \"%s\" 嗎?" -#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 +#: yit-functions.php:2036 yit-functions.php:2044 yit-functions.php:2160 msgid "Further actions" msgstr "進一步動作" @@ -748,71 +791,76 @@ msgctxt "[gutenberg]: Category Name" msgid "YITH" msgstr "YITH" -#: includes/class-yit-assets.php:120 +#: includes/class-yit-assets.php:121 msgctxt "Enhanced select" msgid "No matches found" msgstr "" -#: includes/class-yit-assets.php:121 +#: includes/class-yit-assets.php:122 msgctxt "Enhanced select" msgid "Please enter 1 or more characters" msgstr "" #. translators: %s is the number of characters. -#: includes/class-yit-assets.php:123 +#: includes/class-yit-assets.php:124 msgctxt "Enhanced select" msgid "Please enter %s or more characters" msgstr "" -#: includes/class-yit-assets.php:124 +#: includes/class-yit-assets.php:125 msgctxt "Enhanced select" msgid "Searching…" msgstr "" -#: includes/class-yit-assets.php:143 +#: includes/class-yit-assets.php:137 +msgctxt "Title" +msgid "Error" +msgstr "" + +#: includes/class-yit-assets.php:149 msgctxt "Button text" msgid "Confirm" msgstr "確認" -#: includes/class-yit-assets.php:144 +#: includes/class-yit-assets.php:150 msgctxt "Button text" msgid "Cancel" msgstr "取消" -#: includes/class-yit-assets.php:157 yit-functions.php:2009 +#: includes/class-yit-assets.php:163 yit-functions.php:2007 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "是的,將它移至垃圾桶" -#: includes/class-yit-assets.php:161 yit-functions.php:2027 -#: yit-functions.php:2154 +#: includes/class-yit-assets.php:167 yit-functions.php:2025 +#: yit-functions.php:2151 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "是的,刪除" #. translators: 1. Plugin name. -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for purchasing %s!" msgstr "感謝您購買 %s !" -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for using %s!" msgstr "" -#: includes/class-yit-plugin-panel.php:812 +#: includes/class-yit-plugin-panel.php:879 msgctxt "Help tab default description" msgid "" "We want to help you enjoy a wonderful experience with all of our products." msgstr "我們希望幫助您享受我們所有產品的美妙體驗。" -#: includes/class-yit-plugin-panel.php:863 +#: includes/class-yit-plugin-panel.php:929 msgctxt "Premium tab name" msgid "Get premium" msgstr "取得高級版" -#: includes/class-yit-plugin-panel.php:875 +#: includes/class-yit-plugin-panel.php:945 msgctxt "Help tab name" msgid "Help" msgstr "幫助" @@ -916,16 +964,6 @@ msgctxt "Image height field label" msgid "Height" msgstr "高" -#: templates/fields/onoff.php:28 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "YES" -msgstr "是" - -#: templates/fields/onoff.php:29 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "NO" -msgstr "不" - #. translators: 1. Url to EN playlist. #: templates/panel/help-tab.php:89 msgctxt "Help tab view all video link" @@ -1069,57 +1107,62 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "取得高級版本" -#: yit-functions.php:1952 +#: templates/panel/v2/panel-option-label-tags.php:16 +msgctxt "Panel option tag" +msgid "PREMIUM" +msgstr "" + +#: yit-functions.php:1950 msgctxt "Post action" msgid "Preview" msgstr "預覽" -#: yit-functions.php:1961 +#: yit-functions.php:1959 msgctxt "Post action" msgid "View" msgstr "查看" -#: yit-functions.php:1972 +#: yit-functions.php:1970 msgctxt "Post action" msgid "Edit" msgstr "編輯" -#: yit-functions.php:1980 +#: yit-functions.php:1978 msgctxt "Post action" msgid "Duplicate" msgstr "複製" -#: yit-functions.php:1992 +#: yit-functions.php:1990 msgctxt "Post action" msgid "Restore" msgstr "還原" -#: yit-functions.php:2000 +#: yit-functions.php:1998 msgctxt "Post action" msgid "Trash" msgstr "垃圾桶" -#: yit-functions.php:2017 +#: yit-functions.php:2015 msgctxt "Post action" msgid "Delete Permanently" msgstr "永久刪除" -#: yit-functions.php:2114 +#: yit-functions.php:2111 msgctxt "Term action" msgid "View" msgstr "查看" -#: yit-functions.php:2124 +#: yit-functions.php:2121 msgctxt "Term action" msgid "Edit" msgstr "編輯" -#: yit-functions.php:2132 +#: yit-functions.php:2129 msgctxt "Term action" msgid "Duplicate" msgstr "複製" -#: yit-functions.php:2145 +#: yit-functions.php:2142 msgctxt "Term action" msgid "Delete" msgstr "刪除" diff --git a/plugin-fw/languages/yith-plugin-fw.pot b/plugin-fw/languages/yith-plugin-fw.pot index 6c68d55..5d01189 100644 --- a/plugin-fw/languages/yith-plugin-fw.pot +++ b/plugin-fw/languages/yith-plugin-fw.pot @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: YITH \n" -"POT-Creation-Date: 2023-02-14 10:45:27+00:00\n" +"POT-Creation-Date: 2023-03-10 11:17:07+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -24,55 +24,73 @@ msgstr "" "X-Textdomain-Support: yes\n" "X-Generator: grunt-wp-i18n 1.0.3\n" -#: includes/class-yit-assets.php:155 yit-functions.php:2006 +#: includes/class-yit-assets.php:138 +msgid "No file provided." +msgstr "" + +#: includes/class-yit-assets.php:139 +msgid "You cannot drop files here." +msgstr "" + +#: includes/class-yit-assets.php:161 yit-functions.php:2004 msgid "Confirm trash" msgstr "" -#: includes/class-yit-assets.php:156 +#: includes/class-yit-assets.php:162 msgid "Are you sure you want to trash the selected items?" msgstr "" -#: includes/class-yit-assets.php:158 includes/class-yit-assets.php:162 +#: includes/class-yit-assets.php:164 includes/class-yit-assets.php:168 #: templates/sysinfo/tabs/main.php:42 templates/sysinfo/tabs/main.php:50 -#: yit-functions.php:2008 yit-functions.php:2026 +#: yit-functions.php:2006 yit-functions.php:2024 msgid "No" msgstr "" -#: includes/class-yit-assets.php:159 yit-functions.php:2024 -#: yit-functions.php:2152 +#: includes/class-yit-assets.php:165 yit-functions.php:2022 +#: yit-functions.php:2149 msgid "Confirm delete" msgstr "" -#: includes/class-yit-assets.php:160 +#: includes/class-yit-assets.php:166 msgid "Are you sure you want to delete the selected items?" msgstr "" -#: includes/class-yit-assets.php:160 yit-functions.php:1940 -#: yit-functions.php:2100 +#: includes/class-yit-assets.php:166 yit-functions.php:1938 +#: yit-functions.php:2097 msgid "This action cannot be undone and you will not be able to recover this data." msgstr "" -#: includes/class-yit-assets.php:181 +#: includes/class-yit-assets.php:186 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "Are you sure?" +msgstr "" + +#: includes/class-yit-assets.php:187 includes/class-yit-plugin-subpanel.php:140 +#: templates/panel/panel-content-page.php:14 +msgid "If you continue with this action, you will reset all options in this page." +msgstr "" + +#: includes/class-yit-assets.php:198 msgid "Clear" msgstr "" -#: includes/class-yit-assets.php:182 +#: includes/class-yit-assets.php:199 msgid "Clear color" msgstr "" -#: includes/class-yit-assets.php:183 +#: includes/class-yit-assets.php:200 msgid "Default" msgstr "" -#: includes/class-yit-assets.php:184 +#: includes/class-yit-assets.php:201 msgid "Select default color" msgstr "" -#: includes/class-yit-assets.php:185 +#: includes/class-yit-assets.php:202 msgid "Select Color" msgstr "" -#: includes/class-yit-assets.php:186 +#: includes/class-yit-assets.php:203 msgid "Color value" msgstr "" @@ -80,116 +98,96 @@ msgstr "" msgid "There was an error with your request; please try again later." msgstr "" -#: includes/class-yit-plugin-panel-woocommerce.php:437 -msgid "The changes you have made will be lost if you leave this page." -msgstr "" - -#: includes/class-yit-plugin-panel.php:83 -msgid "Plugin Settings" +#: includes/class-yit-plugin-panel-woocommerce.php:514 +msgid "Options saved correctly!" msgstr "" -#: includes/class-yit-plugin-panel.php:84 -msgid "Settings" +#: includes/class-yit-plugin-panel-woocommerce.php:568 +msgid "Options reset correctly!" msgstr "" -#: includes/class-yit-plugin-panel.php:456 -#: includes/class-yit-plugin-panel.php:459 -msgid "How to install premium version" -msgstr "" - -#: includes/class-yit-plugin-panel.php:656 -#: includes/class-yit-plugin-subpanel.php:133 -msgid "Save Changes" +#: includes/class-yit-plugin-panel-woocommerce.php:622 +msgid "The changes you have made will be lost if you leave this page." msgstr "" -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "If you continue with this action, you will reset all options in this page." +#: includes/class-yit-plugin-panel.php:90 +msgid "Plugin Settings" msgstr "" -#: includes/class-yit-plugin-panel.php:664 -#: includes/class-yit-plugin-subpanel.php:140 -#: templates/panel/woocommerce/woocommerce-form.php:15 -msgid "Are you sure?" +#: includes/class-yit-plugin-panel.php:91 +msgid "Settings" msgstr "" -#: includes/class-yit-plugin-panel.php:668 -#: includes/class-yit-plugin-subpanel.php:143 -msgid "Reset to default" +#: includes/class-yit-plugin-panel.php:554 +#: includes/class-yit-plugin-panel.php:557 +msgid "How to install premium version" msgstr "" -#: includes/class-yit-plugin-panel.php:1039 +#: includes/class-yit-plugin-panel.php:1112 msgid "Read the plugin documentation" msgstr "" -#: includes/class-yit-plugin-panel.php:1040 +#: includes/class-yit-plugin-panel.php:1113 msgid "Learn what you can really do with this powerful tool" msgstr "" -#: includes/class-yit-plugin-panel.php:1050 +#: includes/class-yit-plugin-panel.php:1123 msgid "Watch our \"First Steps\" video" msgstr "" -#: includes/class-yit-plugin-panel.php:1051 +#: includes/class-yit-plugin-panel.php:1124 msgid "See how it works before you start using it" msgstr "" -#: includes/class-yit-plugin-panel.php:1307 +#: includes/class-yit-plugin-panel.php:1379 msgid "The element you have entered already exists. Please, enter another name." msgstr "" -#: includes/class-yit-plugin-panel.php:1308 +#: includes/class-yit-plugin-panel.php:1380 msgid "Settings saved" msgstr "" -#: includes/class-yit-plugin-panel.php:1309 +#: includes/class-yit-plugin-panel.php:1381 msgid "Settings reset" msgstr "" -#: includes/class-yit-plugin-panel.php:1310 +#: includes/class-yit-plugin-panel.php:1382 msgid "Element deleted correctly." msgstr "" -#: includes/class-yit-plugin-panel.php:1311 -#: includes/class-yit-plugin-panel.php:1312 +#: includes/class-yit-plugin-panel.php:1383 +#: includes/class-yit-plugin-panel.php:1384 msgid "Element updated correctly." msgstr "" -#: includes/class-yit-plugin-panel.php:1313 +#: includes/class-yit-plugin-panel.php:1385 msgid "Database imported correctly." msgstr "" -#: includes/class-yit-plugin-panel.php:1314 +#: includes/class-yit-plugin-panel.php:1386 msgid "An error has occurred during import. Please try again." msgstr "" -#: includes/class-yit-plugin-panel.php:1315 +#: includes/class-yit-plugin-panel.php:1387 msgid "The added file is not valid." msgstr "" -#: includes/class-yit-plugin-panel.php:1316 +#: includes/class-yit-plugin-panel.php:1388 msgid "Sorry, import is disabled." msgstr "" -#: includes/class-yit-plugin-panel.php:1317 +#: includes/class-yit-plugin-panel.php:1389 msgid "Sorting successful." msgstr "" -#: includes/class-yit-plugin-panel.php:1806 -msgid "We need your support" -msgstr "" - -#: includes/class-yit-plugin-panel.php:1807 -msgid "to keep updating and improving the plugin. Please," -msgstr "" - -#: includes/class-yit-plugin-panel.php:1809 -msgid "help us by leaving a good review" +#: includes/class-yit-plugin-subpanel.php:133 +#: templates/panel/panel-content-page.php:29 +msgid "Save Changes" msgstr "" -#: includes/class-yit-plugin-panel.php:1810 -msgid ":) Thanks!" +#: includes/class-yit-plugin-subpanel.php:143 +#: templates/panel/panel-content-page.php:38 +msgid "Reset to default" msgstr "" #: includes/class-yit-pointers.php:80 @@ -318,91 +316,91 @@ msgstr "" msgid "WooCommerce" msgstr "" -#: includes/class-yith-system-status.php:342 +#: includes/class-yith-system-status.php:341 msgid "Warning!" msgstr "" -#: includes/class-yith-system-status.php:346 +#: includes/class-yith-system-status.php:345 #. translators: %1$s open link tag, %2$s open link tag msgid "" "The system check has detected some compatibility issues on your " "installation.%1$sClick here%2$s to know more" msgstr "" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Enabled" msgstr "" -#: includes/class-yith-system-status.php:496 +#: includes/class-yith-system-status.php:495 msgid "Disabled" msgstr "" -#: includes/class-yith-system-status.php:501 +#: includes/class-yith-system-status.php:500 msgid "N/A" msgstr "" -#: includes/class-yith-system-status.php:528 +#: includes/class-yith-system-status.php:527 #. translators: %1$s plugin name, %2$s requirement name msgid "%1$s needs %2$s enabled" msgstr "" -#: includes/class-yith-system-status.php:531 +#: includes/class-yith-system-status.php:530 #. translators: %1$s plugin name, %2$s required memory amount msgid "%1$s needs at least %2$s of available memory" msgstr "" -#: includes/class-yith-system-status.php:534 +#: includes/class-yith-system-status.php:533 #. translators: %1$s plugin name, %2$s version number msgid "%1$s needs at least %2$s version" msgstr "" -#: includes/class-yith-system-status.php:558 +#: includes/class-yith-system-status.php:557 msgid "" "Update it to the latest version in order to benefit of all new features and " "security updates." msgstr "" -#: includes/class-yith-system-status.php:562 -#: includes/class-yith-system-status.php:568 +#: includes/class-yith-system-status.php:561 +#: includes/class-yith-system-status.php:567 msgid "Contact your hosting company in order to update it." msgstr "" -#: includes/class-yith-system-status.php:566 +#: includes/class-yith-system-status.php:565 msgid "Contact your hosting company in order to install it." msgstr "" -#: includes/class-yith-system-status.php:573 +#: includes/class-yith-system-status.php:572 #. translators: %1$s code, %2$s file name msgid "Remove %1$s from %2$s file" msgstr "" -#: includes/class-yith-system-status.php:581 +#: includes/class-yith-system-status.php:580 msgid "Contact your hosting company in order to enable it." msgstr "" -#: includes/class-yith-system-status.php:585 -#: includes/class-yith-system-status.php:608 +#: includes/class-yith-system-status.php:584 +#: includes/class-yith-system-status.php:607 #. translators: %1$s opening link tag, %2$s closing link tag msgid "" "Read more %1$shere%2$s or contact your hosting company in order to increase " "it." msgstr "" -#: includes/class-yith-system-status.php:605 +#: includes/class-yith-system-status.php:604 #. translators: %s recommended memory amount msgid "" "For optimal functioning of our plugins, we suggest setting at least %s of " "available memory" msgstr "" -#: includes/class-yith-system-status.php:613 +#: includes/class-yith-system-status.php:612 #. translators: %1$s TLS label, %2$s cURL label msgid "" "The system check cannot determine which %1$s version is installed because " "%2$s module is disabled. Ask your hosting company to enable it." msgstr "" -#: includes/class-yith-system-status.php:616 +#: includes/class-yith-system-status.php:615 #. translators: %1$s TLS label msgid "" "The system check cannot determine which %1$s version is installed due to a " @@ -475,6 +473,10 @@ msgstr "" msgid "Preview:" msgstr "" +#: templates/fields/file.php:14 +msgid "Drag or upload a file." +msgstr "" + #: templates/fields/icons.php:78 msgid "Set Default" msgstr "" @@ -499,6 +501,23 @@ msgstr "" msgid "Delete" msgstr "" +#: templates/fields/media.php:46 +msgid "Upload file" +msgstr "" + +#: templates/fields/media.php:52 +msgid "Enter URL" +msgstr "" + +#: templates/fields/media.php:70 +#. translators: %s is the alternative action "Upload a file". +msgid "Drag or %s" +msgstr "" + +#: templates/fields/media.php:71 +msgid "Upload a file" +msgstr "" + #: templates/fields/select-buttons.php:19 msgid "Add All" msgstr "" @@ -540,6 +559,39 @@ msgstr "" msgid "Reset" msgstr "" +#: templates/panel/panel-header.php:23 templates/panel/v2/panel-header.php:18 +msgid "We need your support" +msgstr "" + +#: templates/panel/panel-header.php:24 templates/panel/v2/panel-header.php:19 +msgid "to keep updating and improving the plugin. Please," +msgstr "" + +#: templates/panel/panel-header.php:26 templates/panel/v2/panel-header.php:21 +msgid "help us by leaving a good review" +msgstr "" + +#: templates/panel/panel-header.php:27 templates/panel/v2/panel-header.php:22 +msgid ":) Thanks!" +msgstr "" + +#: templates/panel/v2/panel-content-page.php:57 +#: templates/panel/v2/woocommerce/woocommerce-form.php:69 +#: templates/panel/woocommerce/woocommerce-form.php:27 +#: templates/panel/woocommerce/woocommerce-form.php:31 +msgid "Save Options" +msgstr "" + +#: templates/panel/v2/panel-content-page.php:58 +#: templates/panel/v2/woocommerce/woocommerce-form.php:70 +#: templates/panel/woocommerce/woocommerce-form.php:41 +msgid "Reset Defaults" +msgstr "" + +#: templates/panel/v2/panel-nav.php:36 +msgid "Collapse" +msgstr "" + #: templates/panel/welcome-modals/update.php:34 #. translators: %s is the plugin version. msgid "is successfully updated to version %s." @@ -568,19 +620,10 @@ msgstr "" msgid "Start with these %s steps:" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:29 -#: templates/panel/woocommerce/woocommerce-form.php:33 -msgid "Save Options" -msgstr "" - -#: templates/panel/woocommerce/woocommerce-form.php:33 +#: templates/panel/woocommerce/woocommerce-form.php:31 msgid "Options Saved" msgstr "" -#: templates/panel/woocommerce/woocommerce-form.php:43 -msgid "Reset Defaults" -msgstr "" - #: templates/sysinfo/system-information-panel.php:12 msgid "PHPInfo" msgstr "" @@ -701,17 +744,17 @@ msgstr "" msgid "Data: %1$.2fMB | Index: %2$.2fMB | Free: %3$.2fMB | Engine: %4$s" msgstr "" -#: yit-functions.php:1938 +#: yit-functions.php:1936 #. translators: %s is the title of the post object. msgid "Are you sure you want to move \"%s\" to trash?" msgstr "" -#: yit-functions.php:1940 yit-functions.php:2100 +#: yit-functions.php:1938 yit-functions.php:2097 #. translators: %s is the title of the post object. msgid "Are you sure you want to delete \"%s\"?" msgstr "" -#: yit-functions.php:2038 yit-functions.php:2046 yit-functions.php:2163 +#: yit-functions.php:2036 yit-functions.php:2044 yit-functions.php:2160 msgid "Further actions" msgstr "" @@ -745,70 +788,75 @@ msgctxt "[gutenberg]: Category Name" msgid "YITH" msgstr "" -#: includes/class-yit-assets.php:120 +#: includes/class-yit-assets.php:121 msgctxt "Enhanced select" msgid "No matches found" msgstr "" -#: includes/class-yit-assets.php:121 +#: includes/class-yit-assets.php:122 msgctxt "Enhanced select" msgid "Please enter 1 or more characters" msgstr "" -#: includes/class-yit-assets.php:123 +#: includes/class-yit-assets.php:124 #. translators: %s is the number of characters. msgctxt "Enhanced select" msgid "Please enter %s or more characters" msgstr "" -#: includes/class-yit-assets.php:124 +#: includes/class-yit-assets.php:125 msgctxt "Enhanced select" msgid "Searching…" msgstr "" -#: includes/class-yit-assets.php:143 +#: includes/class-yit-assets.php:137 +msgctxt "Title" +msgid "Error" +msgstr "" + +#: includes/class-yit-assets.php:149 msgctxt "Button text" msgid "Confirm" msgstr "" -#: includes/class-yit-assets.php:144 +#: includes/class-yit-assets.php:150 msgctxt "Button text" msgid "Cancel" msgstr "" -#: includes/class-yit-assets.php:157 yit-functions.php:2009 +#: includes/class-yit-assets.php:163 yit-functions.php:2007 msgctxt "Trash confirmation action" msgid "Yes, move to trash" msgstr "" -#: includes/class-yit-assets.php:161 yit-functions.php:2027 -#: yit-functions.php:2154 +#: includes/class-yit-assets.php:167 yit-functions.php:2025 +#: yit-functions.php:2151 msgctxt "Delete confirmation action" msgid "Yes, delete" msgstr "" -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 #. translators: 1. Plugin name. msgctxt "Help tab default title" msgid "Thank you for purchasing %s!" msgstr "" -#: includes/class-yit-plugin-panel.php:804 +#: includes/class-yit-plugin-panel.php:870 msgctxt "Help tab default title" msgid "Thank you for using %s!" msgstr "" -#: includes/class-yit-plugin-panel.php:812 +#: includes/class-yit-plugin-panel.php:879 msgctxt "Help tab default description" msgid "We want to help you enjoy a wonderful experience with all of our products." msgstr "" -#: includes/class-yit-plugin-panel.php:863 +#: includes/class-yit-plugin-panel.php:929 msgctxt "Premium tab name" msgid "Get premium" msgstr "" -#: includes/class-yit-plugin-panel.php:875 +#: includes/class-yit-plugin-panel.php:945 msgctxt "Help tab name" msgid "Help" msgstr "" @@ -909,16 +957,6 @@ msgctxt "Image height field label" msgid "Height" msgstr "" -#: templates/fields/onoff.php:28 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "YES" -msgstr "" - -#: templates/fields/onoff.php:29 -msgctxt "YES/NO button: use MAX 4 characters!" -msgid "NO" -msgstr "" - #: templates/panel/help-tab.php:89 #. translators: 1. Url to EN playlist. msgctxt "Help tab view all video link" @@ -1059,57 +1097,62 @@ msgctxt "Premium Tab" msgid "Get the premium version" msgstr "" -#: yit-functions.php:1952 +#: templates/panel/v2/panel-option-label-tags.php:16 +msgctxt "Panel option tag" +msgid "PREMIUM" +msgstr "" + +#: yit-functions.php:1950 msgctxt "Post action" msgid "Preview" msgstr "" -#: yit-functions.php:1961 +#: yit-functions.php:1959 msgctxt "Post action" msgid "View" msgstr "" -#: yit-functions.php:1972 +#: yit-functions.php:1970 msgctxt "Post action" msgid "Edit" msgstr "" -#: yit-functions.php:1980 +#: yit-functions.php:1978 msgctxt "Post action" msgid "Duplicate" msgstr "" -#: yit-functions.php:1992 +#: yit-functions.php:1990 msgctxt "Post action" msgid "Restore" msgstr "" -#: yit-functions.php:2000 +#: yit-functions.php:1998 msgctxt "Post action" msgid "Trash" msgstr "" -#: yit-functions.php:2017 +#: yit-functions.php:2015 msgctxt "Post action" msgid "Delete Permanently" msgstr "" -#: yit-functions.php:2114 +#: yit-functions.php:2111 msgctxt "Term action" msgid "View" msgstr "" -#: yit-functions.php:2124 +#: yit-functions.php:2121 msgctxt "Term action" msgid "Edit" msgstr "" -#: yit-functions.php:2132 +#: yit-functions.php:2129 msgctxt "Term action" msgid "Duplicate" msgstr "" -#: yit-functions.php:2145 +#: yit-functions.php:2142 msgctxt "Term action" msgid "Delete" msgstr "" diff --git a/plugin-fw/package.json b/plugin-fw/package.json index 7e69876..d3f56e2 100644 --- a/plugin-fw/package.json +++ b/plugin-fw/package.json @@ -1,6 +1,6 @@ { "name": "yith-plugin-framewowrk", - "version": "3.9.17", + "version": "4.0.2", "description": "YITH Plugin Framework", "main": "Gruntfile.js", "scripts": { diff --git a/plugin-fw/templates/components/notice.php b/plugin-fw/templates/components/notice.php new file mode 100644 index 0000000..3558908 --- /dev/null +++ b/plugin-fw/templates/components/notice.php @@ -0,0 +1,41 @@ + +
    + +> + + + + + +
    diff --git a/plugin-fw/templates/components/tag.php b/plugin-fw/templates/components/tag.php new file mode 100644 index 0000000..55cd176 --- /dev/null +++ b/plugin-fw/templates/components/tag.php @@ -0,0 +1,32 @@ + +
    + +> + +
    diff --git a/plugin-fw/templates/fields/file.php b/plugin-fw/templates/fields/file.php new file mode 100644 index 0000000..5ce2b52 --- /dev/null +++ b/plugin-fw/templates/fields/file.php @@ -0,0 +1,42 @@ + +
    + + + /> +
    + +
    + +
    + + +
    +
    diff --git a/plugin-fw/templates/fields/media.php b/plugin-fw/templates/fields/media.php new file mode 100644 index 0000000..d299253 --- /dev/null +++ b/plugin-fw/templates/fields/media.php @@ -0,0 +1,99 @@ + +
    + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + +
    + + +
    +
    + ' . esc_html__( 'Upload a file', 'yith-plugin-fw' ) . '' + ) + ?> +
    + +
    + + +
    + +
    +
    + +
    +
    diff --git a/plugin-fw/templates/fields/multi-select.php b/plugin-fw/templates/fields/multi-select.php index 017dad9..77eadb1 100644 --- a/plugin-fw/templates/fields/multi-select.php +++ b/plugin-fw/templates/fields/multi-select.php @@ -8,20 +8,25 @@ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. -list ( $field_id, $class, $name, $selects, $value ) = yith_plugin_fw_extract( $field, 'id', 'class', 'name', 'selects', 'value' ); +list ( $field_id, $class, $name, $selects, $size, $columns, $value ) = yith_plugin_fw_extract( $field, 'id', 'class', 'name', 'selects', 'size', 'columns', 'value' ); if ( empty( $selects ) ) { return; } $selects_count = count( $selects ); +$gap = 16; +$columns = max( 1, absint( $columns ?? 2 ) ); +$default_size = absint( ( 400 - ( $gap * ( $columns - 1 ) ) ) / $columns ); +$size = max( 122, absint( $size ?? $default_size ) ); +$max_width = $size * $columns + ( $gap * ( $columns - 1 ) ); ?> -
    +
    - -
    - -
    ">
    - - -
    -
    diff --git a/plugin-fw/templates/fields/onoff.php b/plugin-fw/templates/fields/onoff.php index d74fff1..052794d 100644 --- a/plugin-fw/templates/fields/onoff.php +++ b/plugin-fw/templates/fields/onoff.php @@ -24,9 +24,17 @@ class="on_off" /> - + + + + + + +
    diff --git a/plugin-fw/templates/fields/select-images.php b/plugin-fw/templates/fields/select-images.php index 06f00d6..6b78843 100644 --- a/plugin-fw/templates/fields/select-images.php +++ b/plugin-fw/templates/fields/select-images.php @@ -44,6 +44,11 @@ class="" data-key="" > +
    + +
    diff --git a/plugin-fw/templates/fields/text-array.php b/plugin-fw/templates/fields/text-array.php index a32f82c..224c382 100644 --- a/plugin-fw/templates/fields/text-array.php +++ b/plugin-fw/templates/fields/text-array.php @@ -8,13 +8,18 @@ defined( 'ABSPATH' ) || exit; // Exit if accessed directly. -list ( $field_id, $name, $value, $fields, $size, $inline ) = yith_plugin_fw_extract( $field, 'id', 'name', 'value', 'fields', 'size', 'inline' ); +list ( $field_id, $name, $value, $fields, $size, $columns, $inline ) = yith_plugin_fw_extract( $field, 'id', 'name', 'value', 'fields', 'size', 'columns', 'inline' ); if ( empty( $fields ) ) { return; } -$value = isset( $value ) && is_array( $value ) ? $value : array(); +$value = isset( $value ) && is_array( $value ) ? $value : array(); +$gap = 16; +$columns = max( 1, absint( $columns ?? 2 ) ); +$default_size = absint( ( 400 - ( $gap * ( $columns - 1 ) ) ) / $columns ); +$size = max( 122, absint( $size ?? $default_size ) ); +$max_width = $size * $columns + ( $gap * ( $columns - 1 ) ); // Let's build the text array! $text_array = array(); @@ -45,14 +50,13 @@ - -
    +
    $single ) : ?> -
    - style="width: px" - - > +
    array( - 'class' => true, - 'aria-hidden' => true, - 'aria-labelledby' => true, - 'role' => true, - 'xmlns' => true, - 'width' => true, - 'height' => true, - 'viewbox' => true, - 'version' => true, - 'x' => true, - 'y' => true, - 'style' => true, - ), - 'circle' => array( - 'class' => true, - 'cx' => true, - 'cy' => true, - 'r' => true, - ), - 'g' => array( 'fill' => true ), - 'polyline' => array( - 'class' => true, - 'points' => true, - ), - 'polygon' => array( - 'class' => true, - 'points' => true, - ), - 'line' => array( - 'class' => true, - 'x1' => true, - 'x2' => true, - 'y1' => true, - 'y2' => true, - ), - 'title' => array( 'title' => true ), - 'path' => array( - 'class' => true, - 'd' => true, - 'fill' => true, - ), - 'rect' => array( - 'class' => true, - 'x' => true, - 'y' => true, - 'fill' => true, - 'width' => true, - 'height' => true, - ), - 'style' => array( + 'style' => array( 'type' => true, ), ); -$label_allowed_tags = array_merge( wp_kses_allowed_html( 'post' ), $label_extra_allowed_tags ); +$label_allowed_tags = array_merge( wp_kses_allowed_html( 'post' ), yith_plugin_fw_kses_allowed_svg_tags(), $label_extra_allowed_tags ); $label_allowed_tags = apply_filters( 'yith_plugin_fw_metabox_label_allowed_tags', $label_allowed_tags, $meta_box_id ); ?> diff --git a/plugin-fw/templates/panel/panel-content-page.php b/plugin-fw/templates/panel/panel-content-page.php new file mode 100644 index 0000000..258d7a9 --- /dev/null +++ b/plugin-fw/templates/panel/panel-content-page.php @@ -0,0 +1,44 @@ + +
    + message(); ?> +
    +

    get_tab_title() ); ?>

    + is_show_form() ) : ?> +
    + +

     

    + settings['parent'] . '_options' ); ?> + + + + + +
    +
    + + +
    +

     

    + +
    +
    diff --git a/plugin-fw/templates/panel/panel-content.php b/plugin-fw/templates/panel/panel-content.php new file mode 100644 index 0000000..dc923aa --- /dev/null +++ b/plugin-fw/templates/panel/panel-content.php @@ -0,0 +1,12 @@ +print_tabs_nav(); +$panel->render_panel_content_page(); diff --git a/plugin-fw/templates/panel/panel-header.php b/plugin-fw/templates/panel/panel-header.php new file mode 100644 index 0000000..822ee19 --- /dev/null +++ b/plugin-fw/templates/panel/panel-header.php @@ -0,0 +1,31 @@ + +

    +
    +

    +
    + +
    + %s %s %s %s', + esc_html__( 'We need your support', 'yith-plugin-fw' ), + esc_html__( 'to keep updating and improving the plugin. Please,', 'yith-plugin-fw' ), + esc_url( $rate_url ), + esc_html__( 'help us by leaving a good review', 'yith-plugin-fw' ), + esc_html__( ':) Thanks!', 'yith-plugin-fw' ) + ); + ?> +
    + diff --git a/plugin-fw/templates/panel/panel-nav-item.php b/plugin-fw/templates/panel/panel-nav-item.php new file mode 100644 index 0000000..69d79f3 --- /dev/null +++ b/plugin-fw/templates/panel/panel-nav-item.php @@ -0,0 +1,57 @@ +get_first_sub_tab_key( $tab_key ); +$sub_tab = ! ! $first_sub_tab ? $first_sub_tab : ''; +$sub_tabs = $panel->get_sub_tabs( $tab_key ); +$url = $panel->get_nav_url( $the_page, $tab_key, $sub_tab, $parent_page ); + +$is_opened = $current_tab === $tab_key; + +$has_submenu = $current_tab !== $tab_key && $sub_tabs; + +?> +
  • + + + + + + + + + + +
  • \ No newline at end of file diff --git a/plugin-fw/templates/panel/panel-nav.php b/plugin-fw/templates/panel/panel-nav.php new file mode 100644 index 0000000..854fc09 --- /dev/null +++ b/plugin-fw/templates/panel/panel-nav.php @@ -0,0 +1,35 @@ + +

    +
      + settings['admin-tabs'] as $tab_key => $tab_data ) { + $panel->get_template( + 'panel-nav-item.php', + array( + 'panel' => $panel, + 'tab_key' => $tab_key, + 'tab_data' => $tab_data, + 'nav_args' => $nav_args, + ) + ); + } + ?> +
    +

    + +print_sub_tabs_nav( $nav_args ); +?> diff --git a/plugin-fw/templates/panel/panel-wp-page-footer.php b/plugin-fw/templates/panel/panel-wp-page-footer.php new file mode 100644 index 0000000..1c397a6 --- /dev/null +++ b/plugin-fw/templates/panel/panel-wp-page-footer.php @@ -0,0 +1,17 @@ + + + +
    + +
    diff --git a/plugin-fw/templates/panel/panel-wp-page-header.php b/plugin-fw/templates/panel/panel-wp-page-header.php new file mode 100644 index 0000000..8cd18f2 --- /dev/null +++ b/plugin-fw/templates/panel/panel-wp-page-header.php @@ -0,0 +1,24 @@ + +
    + +
    + print_tabs_nav( $tabs_nav_args ); + ?> +
    + +
    + '', + 'show_container' => true, + 'show_header' => true, + 'title' => '', + 'description' => '', +); +$is_sub_tab = ! ! $current_sub_tab; +$options = wp_parse_args( $options, $defaults ); +$the_action = $options['action']; +$show_container = $options['show_container']; +$the_title = $options['title']; +$description = $options['description']; +$show_header = $options['show_header'] && ! ! $the_title; +$tab_id = sanitize_key( implode( '-', array_filter( array( 'yith-plugin-fw-panel-custom-tab', $current_tab, $current_sub_tab ) ) ) ); +?> +
    + +
    +

    + + +
    + +
    + +
    + + + '; + if ( $is_sub_tab ) { + echo '
    '; + } + } + + do_action( $the_action ); + + if ( $show_container ) { + if ( $is_sub_tab ) { + echo '
    '; + } + echo '
    '; + } + ?> +
    diff --git a/plugin-fw/templates/panel/v2/panel-content-page.php b/plugin-fw/templates/panel/v2/panel-content-page.php new file mode 100644 index 0000000..edb031d --- /dev/null +++ b/plugin-fw/templates/panel/v2/panel-content-page.php @@ -0,0 +1,59 @@ +get_page_title(); +$page_description = $panel->get_page_description(); +?> + +
    +
    +

    + +

    + +
    + +
    + +
    +
    + is_show_form() ) : ?> +
    + +
    + message(); ?> +
    + + get_template( 'panel-settings-sections.php', compact( 'panel' ) ); ?> +

     

    + settings['parent'] . '_options' ); ?> + + + + +
    +
    + + +
    +

     

    + +
    +
    + +
    + + +
    diff --git a/plugin-fw/templates/panel/v2/panel-content.php b/plugin-fw/templates/panel/v2/panel-content.php new file mode 100644 index 0000000..3c8e208 --- /dev/null +++ b/plugin-fw/templates/panel/v2/panel-content.php @@ -0,0 +1,26 @@ + +
    +
    + print_sidebar_header(); + $panel->print_tabs_nav(); + ?> +
    +
    + render_panel_content_page(); ?> +
    +
    diff --git a/plugin-fw/templates/panel/v2/panel-header.php b/plugin-fw/templates/panel/v2/panel-header.php new file mode 100644 index 0000000..6d07e9a --- /dev/null +++ b/plugin-fw/templates/panel/v2/panel-header.php @@ -0,0 +1,27 @@ + + +
    + %s %s %s %s', + esc_html__( 'We need your support', 'yith-plugin-fw' ), + esc_html__( 'to keep updating and improving the plugin. Please,', 'yith-plugin-fw' ), + esc_url( $rate_url ), + esc_html__( 'help us by leaving a good review', 'yith-plugin-fw' ), + esc_html__( ':) Thanks!', 'yith-plugin-fw' ) + ); + ?> +
    + +
    diff --git a/plugin-fw/templates/panel/v2/panel-mobile-header.php b/plugin-fw/templates/panel/v2/panel-mobile-header.php new file mode 100644 index 0000000..14ae8cd --- /dev/null +++ b/plugin-fw/templates/panel/v2/panel-mobile-header.php @@ -0,0 +1,22 @@ + +
    +
    + +
    + + + +
    + +
    diff --git a/plugin-fw/templates/panel/v2/panel-nav-item.php b/plugin-fw/templates/panel/v2/panel-nav-item.php new file mode 100644 index 0000000..901dd98 --- /dev/null +++ b/plugin-fw/templates/panel/v2/panel-nav-item.php @@ -0,0 +1,101 @@ + '', + 'settings' => '', + 'configuration' => '', + 'tools' => '', + 'add-ons' => '', + 'help' => '', + 'premium' => '', +); + +$active_class = $current_tab === $tab_key && ! $current_sub_tab ? 'yith-plugin-fw--active' : ''; + +if ( 'premium' === $tab_key ) { + $active_class .= ' ' . $premium_class; +} +$active_class = apply_filters( 'yith_plugin_fw_panel_active_tab_class', $active_class, $current_tab, $tab_key ); + +$first_sub_tab = $panel->get_first_sub_tab_key( $tab_key ); +$sub_tab = ! ! $first_sub_tab ? $first_sub_tab : ''; +$sub_tabs = $panel->get_sub_tabs( $tab_key ); +$url = $panel->get_nav_url( $the_page, $tab_key, $sub_tab, $parent_page ); + +$is_current = $current_tab === $tab_key; +$is_opened = $is_current; +$has_submenu = ! ! $sub_tabs; +$icon = false; +if ( isset( $tab_data['icon'] ) ) { + $icon = $icons[ $tab_data['icon'] ] ?? $tab_data['icon']; +} +$has_icon = isset( $tab_data['icon'] ); + +$menu_id = 'yith-plugin-fw__panel__menu-item-' . $tab_key; +$classes = array( 'yith-plugin-fw__panel__menu-item' ); +if ( $sub_tabs ) { + $classes[] = 'yith-plugin-fw--has-submenu'; + $classes[] = $is_current ? 'yith-plugin-fw__panel__menu-item--current' : ''; + $classes[] = $is_opened ? 'yith-plugin-fw--open' : ''; +} else { + $classes[] = $active_class; +} + +$classes = implode( ' ', array_filter( $classes ) ); + +$allowed_icon_tags = array_merge( wp_kses_allowed_html( 'post' ), yith_plugin_fw_kses_allowed_svg_tags() ); + +?> +
    + + + + + + + + + + + + + + + +
    +
    + + $sub_tab_data ) : ?> + get_nav_url( $the_page, $tab_key, $sub_tab_key ); + ?> + + +
    +
    + +
    diff --git a/plugin-fw/templates/panel/v2/panel-nav.php b/plugin-fw/templates/panel/v2/panel-nav.php new file mode 100644 index 0000000..7f9b680 --- /dev/null +++ b/plugin-fw/templates/panel/v2/panel-nav.php @@ -0,0 +1,40 @@ + +
    +
    + settings['admin-tabs'] as $tab_key => $tab_data ) { + $panel->get_template( + 'panel-nav-item.php', + array( + 'panel' => $panel, + 'tab_key' => $tab_key, + 'tab_data' => $tab_data, + 'nav_args' => $nav_args, + ) + ); + } + ?> + +
    +
    diff --git a/plugin-fw/templates/panel/v2/panel-option-label-tags.php b/plugin-fw/templates/panel/v2/panel-option-label-tags.php new file mode 100644 index 0000000..fb08bae --- /dev/null +++ b/plugin-fw/templates/panel/v2/panel-option-label-tags.php @@ -0,0 +1,33 @@ + $option_tag ) { + if ( 'premium' === $option_tag ) { + $option_tags[ $key ] = array( + 'label' => _x( 'PREMIUM', 'Panel option tag', 'yith-plugin-fw' ), + 'color' => 'premium', + ); + } +} + +?> + + +
    + +
    + diff --git a/plugin-fw/templates/panel/v2/panel-settings-sections.php b/plugin-fw/templates/panel/v2/panel-settings-sections.php new file mode 100644 index 0000000..96cd4f2 --- /dev/null +++ b/plugin-fw/templates/panel/v2/panel-settings-sections.php @@ -0,0 +1,68 @@ + + + + +
    + +
    +

    + +
    + +
    + +
    + + +
    + + + +
    > +
    + + get_template( 'panel-option-label-tags.php', array( 'field' => $option ) ); ?> +
    +
    + +
    + +
    + +
    + +
    + +
    + +
    + diff --git a/plugin-fw/templates/panel/v2/panel-sidebar-header.php b/plugin-fw/templates/panel/v2/panel-sidebar-header.php new file mode 100644 index 0000000..cb29499 --- /dev/null +++ b/plugin-fw/templates/panel/v2/panel-sidebar-header.php @@ -0,0 +1,17 @@ + +
    + + + +
    + +
    diff --git a/plugin-fw/templates/panel/v2/panel-wp-page-footer.php b/plugin-fw/templates/panel/v2/panel-wp-page-footer.php new file mode 100644 index 0000000..4eb2e31 --- /dev/null +++ b/plugin-fw/templates/panel/v2/panel-wp-page-footer.php @@ -0,0 +1,30 @@ + + + +
    + +
    + + + +
    +
    +
    diff --git a/plugin-fw/templates/panel/v2/panel-wp-page-header.php b/plugin-fw/templates/panel/v2/panel-wp-page-header.php new file mode 100644 index 0000000..c038306 --- /dev/null +++ b/plugin-fw/templates/panel/v2/panel-wp-page-header.php @@ -0,0 +1,25 @@ + +
    +
    + print_sidebar_header(); + $panel->print_tabs_nav( $tabs_nav_args ); + ?> +
    +
    +
    diff --git a/plugin-fw/templates/panel/v2/woocommerce/woocommerce-form.php b/plugin-fw/templates/panel/v2/woocommerce/woocommerce-form.php new file mode 100644 index 0000000..69556b9 --- /dev/null +++ b/plugin-fw/templates/panel/v2/woocommerce/woocommerce-form.php @@ -0,0 +1,71 @@ +settings['page'] . '_' . $option_key; + +$page_title = $panel->get_page_title(); +$page_description = $panel->get_page_description(); +$notices = $panel->get_notices(); +?> + + + +
    +
    +

    + +

    + +
    + +
    + +
    +
    + +
    + 'notice', + 'notice_type' => $notice_type, + 'message' => $notice_message, + ) + ); + } + ?> +
    + + add_fields(); ?> + + settings['page'], 'yit_panel_wc_options_nonce' ); ?> + + + +
    +
    + + + settings['page'], 'yith_wc_reset_options_nonce' ); ?> +
    +
    + + + +
    + + +
    diff --git a/plugin-fw/templates/panel/v2/woocommerce/woocommerce-option-row.php b/plugin-fw/templates/panel/v2/woocommerce/woocommerce-option-row.php new file mode 100644 index 0000000..118b1e2 --- /dev/null +++ b/plugin-fw/templates/panel/v2/woocommerce/woocommerce-option-row.php @@ -0,0 +1,56 @@ + '', + 'title' => $field['name'] ?? '', + 'desc' => '', +); +$field = wp_parse_args( $field, $default_field ); +$extra_row_class = $field['extra_row_class'] ?? ''; + +$display_row = ! in_array( $field['type'], array( 'hidden', 'html', 'sep', 'simple-text', 'title', 'list-table' ), true ); +$display_row = isset( $field['yith-display-row'] ) ? ! ! $field['yith-display-row'] : $display_row; +$show_container = $show_container ?? true; +$is_required = ! empty( $field['required'] ); + +$is_disabled = $field['is_option_disabled'] ?? false; + +$extra_row_classes = $is_required ? array( 'yith-plugin-fw--required' ) : array(); +$extra_row_classes = (array) apply_filters( 'yith_plugin_fw_panel_wc_extra_row_classes', $extra_row_classes, $field ); + +$row_classes = array( + 'yith-plugin-fw__panel__option', + 'yith-plugin-fw__panel__option--' . $field['type'], + $is_disabled ? 'yith-plugin-fw__panel__option--is-disabled' : '', +); +$row_classes = array_filter( array_merge( $row_classes, $extra_row_classes, array( $extra_row_class ) ) ); +$row_classes = implode( ' ', $row_classes ); + +?> +
    > + +
    + + get_template( 'panel-option-label-tags.php', array( 'field' => $field ) ); ?> +
    +
    + +
    + +
    + +
    + + + + +
    diff --git a/plugin-fw/templates/panel/woocommerce/woocommerce-form.php b/plugin-fw/templates/panel/woocommerce/woocommerce-form.php index d1a669b..d31e3f4 100644 --- a/plugin-fw/templates/panel/woocommerce/woocommerce-form.php +++ b/plugin-fw/templates/panel/woocommerce/woocommerce-form.php @@ -2,7 +2,7 @@ /** * The Template for displaying the WooCommerce form. * - * @var YIT_Plugin_Panel_WooCommerce $this The YITH WooCommerce Panel. + * @var YIT_Plugin_Panel_WooCommerce $panel The YITH WooCommerce Panel. * @var string $option_key The current option key ( see YIT_Plugin_Panel::get_current_option_key() ). * @package YITH\PluginFramework\Templates */ @@ -11,8 +11,7 @@ $form_method = apply_filters( 'yit_admin_panel_form_method', 'POST', $option_key ); $content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap', $option_key ); -$container_id = $this->settings['page'] . '_' . $option_key; -$reset_warning = __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ) . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ); +$container_id = $panel->settings['page'] . '_' . $option_key; ?>
    @@ -21,11 +20,10 @@
    - - add_fields(); ?> + add_fields(); ?>

    - settings['page'], 'yit_panel_wc_options_nonce' ); ?> + settings['page'], 'yit_panel_wc_options_nonce' ); ?>

    @@ -33,15 +31,14 @@ - - - + + +
    - settings['page'], 'yith_wc_reset_options_nonce' ); ?> - + settings['page'], 'yith_wc_reset_options_nonce' ); ?> +
    diff --git a/plugin-fw/templates/panel/woocommerce/woocommerce-option-row.php b/plugin-fw/templates/panel/woocommerce/woocommerce-option-row.php index d9c429a..4172d67 100644 --- a/plugin-fw/templates/panel/woocommerce/woocommerce-option-row.php +++ b/plugin-fw/templates/panel/woocommerce/woocommerce-option-row.php @@ -2,8 +2,7 @@ /** * The Template for displaying the WooCommerce option row. * - * @var array $field The field. - * @var string $description The description. + * @var array $field The field. * @package YITH\PluginFramework\Templates */ diff --git a/plugin-fw/templates/panel/woocommerce/woocommerce-panel.php b/plugin-fw/templates/panel/woocommerce/woocommerce-panel.php index a012f95..2117e06 100644 --- a/plugin-fw/templates/panel/woocommerce/woocommerce-panel.php +++ b/plugin-fw/templates/panel/woocommerce/woocommerce-panel.php @@ -13,7 +13,7 @@ add_thickbox(); ?> -
    +

    array( + 'class' => true, + 'data-*' => true, + 'aria-*' => true, + 'role' => true, + 'xmlns' => true, + 'width' => true, + 'height' => true, + 'viewbox' => true, + 'version' => true, + 'x' => true, + 'y' => true, + 'style' => true, + 'fill' => true, + 'stroke' => true, + 'stroke-width' => true, + ), + 'circle' => array( + 'class' => true, + 'cx' => true, + 'cy' => true, + 'r' => true, + ), + 'g' => array( 'fill' => true ), + 'polyline' => array( + 'class' => true, + 'points' => true, + ), + 'polygon' => array( + 'class' => true, + 'points' => true, + ), + 'line' => array( + 'class' => true, + 'x1' => true, + 'x2' => true, + 'y1' => true, + 'y2' => true, + ), + 'title' => array( 'title' => true ), + 'path' => array( + 'class' => true, + 'd' => true, + 'fill' => true, + 'stroke-linecap' => true, + 'stroke-linejoin' => true, + ), + 'rect' => array( + 'class' => true, + 'x' => true, + 'y' => true, + 'fill' => true, + 'width' => true, + 'height' => true, + ), + ); + } +} diff --git a/plugin-options/settings-options.php b/plugin-options/settings-options.php index 36013b9..bc0b3e0 100644 --- a/plugin-options/settings-options.php +++ b/plugin-options/settings-options.php @@ -12,7 +12,6 @@ } // Exit if accessed directly $yith_wfbt_installed = ( defined( 'YITH_WFBT' ) && YITH_WFBT ); -$yith_wfbt_thickbox = YITH_WCWL_URL . 'assets/images/landing/yith-wfbt-slider.jpg'; /** * APPLY_FILTERS: yith_wcwl_settings_options @@ -58,8 +57,7 @@ 'yith_wfbt_enable_integration' => array( 'name' => __( 'Enable slider in wishlist', 'yith-woocommerce-wishlist' ), - // translators: 1. Example image of the integration. - 'desc' => sprintf( __( 'Enable the slider with linked products on the Wishlist page (Example).', 'yith-woocommerce-wishlist' ), $yith_wfbt_thickbox ), + 'desc' => __( 'Enable the slider with linked products on the Wishlist page.', 'yith-woocommerce-wishlist' ), 'id' => 'yith_wfbt_enable_integration', 'default' => 'yes', 'type' => 'yith-field', diff --git a/readme.md b/readme.md index 29b33ff..074f9c9 100644 --- a/readme.md +++ b/readme.md @@ -151,12 +151,11 @@ Yes, of course you can. To avoid Wishlist page to show product prices, you can h ## Changelog -### 3.18.0 - Released on 14 February 2023 +### 3.19.0 - Released on 14 March 2023 -* New: support for WooCommerce 7.4 +* New: support for WordPress 6.2 +* New: support for WooCommerce 7.5 * Update: YITH plugin framework -* Fix: avoid deprecated notice on PHP 8.1 -* Fix: display of the "Add to wishlist" button after thumbnails in the product page ## Support diff --git a/readme.txt b/readme.txt index 4834031..790f223 100644 --- a/readme.txt +++ b/readme.txt @@ -2,14 +2,14 @@ Contributors: yithemes Tags: wishlist, woocommerce, products, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, shop wishlist -Requires at least: 5.9 -Tested up to: 6.1 -Stable tag: 3.18.0 +Requires at least: 6.0 +Tested up to: 6.2 +Stable tag: 3.19.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html YITH WooCommerce Wishlist add all Wishlist features to your website. Needs WooCommerce to work. -WooCommerce 7.4.x compatible. +WooCommerce 7.5.x compatible. == Description == @@ -113,6 +113,12 @@ Yes, of course you can. To avoid Wishlist page to show product prices, you can h == Changelog == += 3.19.0 - Released on 14 March 2023 = + +* New: support for WordPress 6.2 +* New: support for WooCommerce 7.5 +* Update: YITH plugin framework + = 3.18.0 - Released on 14 February 2023 = * New: support for WooCommerce 7.4 diff --git a/templates/wishlist-view-footer-mobile.php b/templates/wishlist-view-footer-mobile.php index 47206bd..7fde9c0 100644 --- a/templates/wishlist-view-footer-mobile.php +++ b/templates/wishlist-view-footer-mobile.php @@ -59,7 +59,20 @@ current_user_can( 'remove_from_wishlist' ) ) : ?> - + 1 && $is_user_owner ) : ?> diff --git a/templates/wishlist-view-footer.php b/templates/wishlist-view-footer.php index f40fa7c..ace53aa 100644 --- a/templates/wishlist-view-footer.php +++ b/templates/wishlist-view-footer.php @@ -59,7 +59,20 @@ current_user_can( 'remove_from_wishlist' ) ) : ?> - + 1 && $is_user_owner ) : ?> diff --git a/templates/wishlist-view.php b/templates/wishlist-view.php index 12fbf6a..77db5b5 100644 --- a/templates/wishlist-view.php +++ b/templates/wishlist-view.php @@ -428,7 +428,20 @@ class="shop_table cart wishlist_table wishlist_view traditional responsive get_stock_status() ? '' . esc_html( apply_filters( 'yith_wcwl_out_of_stock_label', __( 'Out of stock', 'yith-woocommerce-wishlist' ) ) ) . '' : '' . esc_html( apply_filters( 'yith_wcwl_in_stock_label', __( 'In Stock', 'yith-woocommerce-wishlist' ) ) ) . ''; + $stock_status_html = 'out-of-stock' === $item->get_stock_status() ? '' . esc_html( apply_filters( 'yith_wcwl_out_of_stock_label', __( 'Out of stock', 'yith-woocommerce-wishlist' ) ) ) . '' : '' . esc_html( apply_filters( 'yith_wcwl_in_stock_label', __( 'In Stock', 'yith-woocommerce-wishlist' ) ) ) . ''; + + /** + * APPLY_FILTERS: yith_wcwl_stock_status + * + * Filters the HTML for the stock status label. + * + * @param string $stock_status_html Stock status HTML. + * @param YITH_WCWL_Wishlist_Item $item Wishlist item object. + * @param YITH_WCWL_Wishlist $wishlist Wishlist object. + * + * @return string + */ + echo apply_filters( 'yith_wcwl_stock_status', $stock_status_html, $item, $wishlist ); ?>