Version Description
- Released on 02 April 2021 =
- New: support for WooCommerce 5.2
- Update: YITH plugin framework
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Ajax Search |
Version | 1.8.9 |
Comparing to | |
See all releases |
Code changes from version 1.8.8 to 1.8.9
- README.txt +5 -1
- includes/class.yith-wcas-admin.php +4 -4
- includes/class.yith-wcas.php +7 -7
- includes/compatibility/elementor/class.yith-wcas-search-form-elementor.php +1 -1
- includes/widgets/class.yith-wcas-ajax-search.php +2 -7
- init.php +17 -12
- languages/yith-woocommerce-ajax-search.pot +47 -37
- plugin-fw/assets/css/metaboxes.css +0 -1
- plugin-fw/assets/css/yit-plugin-panel.css +9 -17
- plugin-fw/assets/css/yith-fields.css +118 -24
- plugin-fw/assets/css/yith-icon.css +275 -0
- plugin-fw/assets/fonts/yith-icon.eot +0 -0
- plugin-fw/assets/fonts/yith-icon.ttf +0 -0
- plugin-fw/assets/fonts/yith-icon.woff2 +0 -0
- plugin-fw/assets/js/yit-plugin-panel.js +10 -17
- plugin-fw/assets/js/yit-plugin-panel.min.js +1 -1
- plugin-fw/assets/js/yith-fields.js +56 -9
- plugin-fw/assets/js/yith-fields.min.js +1 -1
- plugin-fw/dist/gutenberg/index.asset.php +1 -1
- plugin-fw/dist/gutenberg/index.js +1 -1
- plugin-fw/includes/builders/elementor/class-yith-elementor-widget.php +23 -7
- plugin-fw/includes/builders/gutenberg/src/common/actions-to-jquery-events.js +11 -5
- plugin-fw/includes/builders/gutenberg/src/common/checkForDeps.js +30 -5
- plugin-fw/includes/class-yit-assets.php +1 -1
- plugin-fw/includes/class-yit-plugin-panel.php +1 -1
- plugin-fw/init.php +2 -2
- plugin-fw/languages/yith-plugin-fw-el.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-el.po +13 -2
- plugin-fw/languages/yith-plugin-fw-es_ES.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-es_ES.po +15 -4
- plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-it_IT.po +15 -4
- plugin-fw/languages/yith-plugin-fw-nl_NL.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-nl_NL.po +23 -4
- plugin-fw/languages/yith-plugin-fw.pot +12 -2
- plugin-fw/templates/fields/copy-to-clipboard.php +47 -0
- plugin-fw/templates/fields/inline-fields.php +1 -1
- plugin-fw/yit-functions.php +25 -0
- plugin-options/gutenberg/blocks.php +4 -0
- plugin-options/premium-options.php +4 -0
- plugin-options/settings-options.php +4 -0
- templates/admin/premium.php +23 -2
- uninstall.php +15 -15
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce search by sku, woocommerce search results, woocommerce search shortcode, woocommerce search page, woocommerce search form, woocommerce search filter, woocommerce search products, woocommerce search content, woocommerce search autocomplete, woocommerce advanced search, woocommerce search category, woocommerce search product attributes, woocommerce search by tag, woocommerce search by brand, woocommerce predictive, woocommerce live search, woocommerce single product search, woocommerce site search, woocommerce search tex, tajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
|
5 |
Requires at least: 5.4.0
|
6 |
Tested up to: 5.7
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -138,6 +138,10 @@ If you have created your own language pack for YITH WooCommerce Ajax Search, or
|
|
138 |
2. YITH WooCommerce Ajax Search in operation displaying WooCommerce search results
|
139 |
|
140 |
== Changelog ==
|
|
|
|
|
|
|
|
|
141 |
= 1.8.8 - Released on 24 Feb 2021 =
|
142 |
* New: support for WordPress 5.7
|
143 |
* New: support for WooCommerce 5.1
|
4 |
Tags: woocommerce search by sku, woocommerce search results, woocommerce search shortcode, woocommerce search page, woocommerce search form, woocommerce search filter, woocommerce search products, woocommerce search content, woocommerce search autocomplete, woocommerce advanced search, woocommerce search category, woocommerce search product attributes, woocommerce search by tag, woocommerce search by brand, woocommerce predictive, woocommerce live search, woocommerce single product search, woocommerce site search, woocommerce search tex, tajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
|
5 |
Requires at least: 5.4.0
|
6 |
Tested up to: 5.7
|
7 |
+
Stable tag: 1.8.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
138 |
2. YITH WooCommerce Ajax Search in operation displaying WooCommerce search results
|
139 |
|
140 |
== Changelog ==
|
141 |
+
= 1.8.9 - Released on 02 April 2021 =
|
142 |
+
* New: support for WooCommerce 5.2
|
143 |
+
* Update: YITH plugin framework
|
144 |
+
|
145 |
= 1.8.8 - Released on 24 Feb 2021 =
|
146 |
* New: support for WordPress 5.7
|
147 |
* New: support for WooCommerce 5.1
|
includes/class.yith-wcas-admin.php
CHANGED
@@ -32,28 +32,28 @@ if ( ! class_exists( 'YITH_WCAS_Admin' ) ) {
|
|
32 |
*
|
33 |
* @var Panel Object
|
34 |
*/
|
35 |
-
protected $_panel;
|
36 |
|
37 |
/**
|
38 |
* Premium tab template file name.
|
39 |
*
|
40 |
* @var string
|
41 |
*/
|
42 |
-
protected $_premium = 'premium.php';
|
43 |
|
44 |
/**
|
45 |
* Premium version landing link.
|
46 |
*
|
47 |
* @var string
|
48 |
*/
|
49 |
-
protected $_premium_landing = 'https://yithemes.com/themes/plugins/yith-woocommerce-ajax-search/';
|
50 |
|
51 |
/**
|
52 |
* Ajax Search panel page.
|
53 |
*
|
54 |
* @var string
|
55 |
*/
|
56 |
-
protected $_panel_page = 'yith_wcas_panel';
|
57 |
|
58 |
|
59 |
/**
|
32 |
*
|
33 |
* @var Panel Object
|
34 |
*/
|
35 |
+
protected $_panel; // phpcs:ignore
|
36 |
|
37 |
/**
|
38 |
* Premium tab template file name.
|
39 |
*
|
40 |
* @var string
|
41 |
*/
|
42 |
+
protected $_premium = 'premium.php'; // phpcs:ignore
|
43 |
|
44 |
/**
|
45 |
* Premium version landing link.
|
46 |
*
|
47 |
* @var string
|
48 |
*/
|
49 |
+
protected $_premium_landing = 'https://yithemes.com/themes/plugins/yith-woocommerce-ajax-search/'; // phpcs:ignore
|
50 |
|
51 |
/**
|
52 |
* Ajax Search panel page.
|
53 |
*
|
54 |
* @var string
|
55 |
*/
|
56 |
+
protected $_panel_page = 'yith_wcas_panel'; // phpcs:ignore
|
57 |
|
58 |
|
59 |
/**
|
includes/class.yith-wcas.php
CHANGED
@@ -38,7 +38,7 @@ if ( ! class_exists( 'YITH_WCAS' ) ) {
|
|
38 |
$this->obj = false;
|
39 |
|
40 |
// Load Plugin Framework.
|
41 |
-
if ( ! isset( $_REQUEST['action'] ) || 'yith_ajax_search_products' !== $_REQUEST['action'] ) {
|
42 |
add_action( 'plugins_loaded', array( $this, 'plugin_fw_loader' ), 15 );
|
43 |
|
44 |
if ( is_admin() ) {
|
@@ -119,7 +119,7 @@ if ( ! class_exists( 'YITH_WCAS' ) ) {
|
|
119 |
* @access public
|
120 |
* @since 1.0.0
|
121 |
*/
|
122 |
-
public function registerWidgets() {
|
123 |
register_widget( 'YITH_WCAS_Ajax_Search_Widget' );
|
124 |
}
|
125 |
|
@@ -133,7 +133,7 @@ if ( ! class_exists( 'YITH_WCAS' ) ) {
|
|
133 |
$transient_enabled = get_option( 'yith_wcas_enable_transient', 'no' );
|
134 |
$transient_duration = get_option( 'yith_wcas_transient_duration', 12 );
|
135 |
|
136 |
-
$search_keyword = sanitize_text_field( wp_unslash( $_REQUEST['query'] ) );
|
137 |
|
138 |
$ordering_args = $woocommerce->query->get_catalog_ordering_args( 'title', 'asc' );
|
139 |
$suggestions = array();
|
@@ -152,19 +152,19 @@ if ( ! class_exists( 'YITH_WCAS' ) ) {
|
|
152 |
'suppress_filters' => false,
|
153 |
);
|
154 |
|
155 |
-
if ( isset( $_REQUEST['product_cat'] ) ) {
|
156 |
-
$args['tax_query'] = array(
|
157 |
'relation' => 'AND',
|
158 |
array(
|
159 |
'taxonomy' => 'product_cat',
|
160 |
'field' => 'slug',
|
161 |
-
'terms' => sanitize_text_field( wp_unslash( $_REQUEST['product_cat'] ) ),
|
162 |
),
|
163 |
);
|
164 |
}
|
165 |
|
166 |
if ( version_compare( WC()->version, '2.7.0', '<' ) ) {
|
167 |
-
$args['meta_query'] = array(
|
168 |
array(
|
169 |
'key' => '_visibility',
|
170 |
'value' => array( 'search', 'visible' ),
|
38 |
$this->obj = false;
|
39 |
|
40 |
// Load Plugin Framework.
|
41 |
+
if ( ! isset( $_REQUEST['action'] ) || 'yith_ajax_search_products' !== $_REQUEST['action'] ) { // phpcs:ignore
|
42 |
add_action( 'plugins_loaded', array( $this, 'plugin_fw_loader' ), 15 );
|
43 |
|
44 |
if ( is_admin() ) {
|
119 |
* @access public
|
120 |
* @since 1.0.0
|
121 |
*/
|
122 |
+
public function registerWidgets() { // phpcs:ignore
|
123 |
register_widget( 'YITH_WCAS_Ajax_Search_Widget' );
|
124 |
}
|
125 |
|
133 |
$transient_enabled = get_option( 'yith_wcas_enable_transient', 'no' );
|
134 |
$transient_duration = get_option( 'yith_wcas_transient_duration', 12 );
|
135 |
|
136 |
+
$search_keyword = sanitize_text_field( wp_unslash( $_REQUEST['query'] ) ); //phpcs:ignore
|
137 |
|
138 |
$ordering_args = $woocommerce->query->get_catalog_ordering_args( 'title', 'asc' );
|
139 |
$suggestions = array();
|
152 |
'suppress_filters' => false,
|
153 |
);
|
154 |
|
155 |
+
if ( isset( $_REQUEST['product_cat'] ) ) { //phpcs:ignore
|
156 |
+
$args['tax_query'] = array( //phpcs:ignore
|
157 |
'relation' => 'AND',
|
158 |
array(
|
159 |
'taxonomy' => 'product_cat',
|
160 |
'field' => 'slug',
|
161 |
+
'terms' => sanitize_text_field( wp_unslash( $_REQUEST['product_cat'] ) ), //phpcs:ignore
|
162 |
),
|
163 |
);
|
164 |
}
|
165 |
|
166 |
if ( version_compare( WC()->version, '2.7.0', '<' ) ) {
|
167 |
+
$args['meta_query'] = array( //phpcs:ignore
|
168 |
array(
|
169 |
'key' => '_visibility',
|
170 |
'value' => array( 'search', 'visible' ),
|
includes/compatibility/elementor/class.yith-wcas-search-form-elementor.php
CHANGED
@@ -70,7 +70,7 @@ class YITH_WCAS_Search_Form_Elementor_Widget extends \Elementor\Widget_Base {
|
|
70 |
/**
|
71 |
* Register controls
|
72 |
*/
|
73 |
-
protected function _register_controls() {
|
74 |
$this->start_controls_section(
|
75 |
'section_button',
|
76 |
array(
|
70 |
/**
|
71 |
* Register controls
|
72 |
*/
|
73 |
+
protected function _register_controls() { //phpcs:ignore
|
74 |
$this->start_controls_section(
|
75 |
'section_button',
|
76 |
array(
|
includes/widgets/class.yith-wcas-ajax-search.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<?php
|
2 |
/**
|
3 |
* Ajax Search Widget
|
4 |
*
|
@@ -92,12 +92,7 @@ if ( ! class_exists( 'YITH_WCAS_Ajax_Search_Widget' ) ) {
|
|
92 |
global $wpdb;
|
93 |
?>
|
94 |
<p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:', 'woocommerce' ); ?></label>
|
95 |
-
<input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" value="
|
96 |
-
<?php
|
97 |
-
if ( isset( $instance['title'] ) ) {
|
98 |
-
echo esc_attr( $instance['title'] );}
|
99 |
-
?>
|
100 |
-
" /></p>
|
101 |
<?php
|
102 |
}
|
103 |
}
|
1 |
+
<?php //phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
|
2 |
/**
|
3 |
* Ajax Search Widget
|
4 |
*
|
92 |
global $wpdb;
|
93 |
?>
|
94 |
<p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:', 'woocommerce' ); ?></label>
|
95 |
+
<input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" value="<?php echo isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; ?>" /></p>
|
|
|
|
|
|
|
|
|
|
|
96 |
<?php
|
97 |
}
|
98 |
}
|
init.php
CHANGED
@@ -3,17 +3,21 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Ajax Search
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-ajax-search/
|
5 |
* Description: <code><strong>YITH WooCommerce Ajax Search</strong></code> is the plugin that allows you to search for a specific product by inserting a few characters. Thanks to <strong>Ajax Search</strong>, users can quickly find the contents they are interested in without wasting time among site pages. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
|
6 |
-
* Version: 1.8.
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-ajax-search
|
10 |
* Domain Path: /languages/
|
11 |
* WC requires at least: 4.5.0
|
12 |
-
* WC tested up to: 5.
|
|
|
|
|
|
|
|
|
13 |
*/
|
14 |
|
15 |
/*
|
16 |
-
|
17 |
|
18 |
This program is free software; you can redistribute it and/or modify
|
19 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -29,7 +33,8 @@
|
|
29 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
30 |
*/
|
31 |
if ( ! defined( 'ABSPATH' ) ) {
|
32 |
-
exit;
|
|
|
33 |
|
34 |
if ( ! defined( 'YITH_WCAS_DIR' ) ) {
|
35 |
define( 'YITH_WCAS_DIR', plugin_dir_path( __FILE__ ) );
|
@@ -67,11 +72,10 @@ if ( ! function_exists( 'yith_plugin_registration_hook' ) ) {
|
|
67 |
register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
68 |
|
69 |
|
70 |
-
|
71 |
if ( defined( 'YITH_WCAS_VERSION' ) ) {
|
72 |
return;
|
73 |
} else {
|
74 |
-
define( 'YITH_WCAS_VERSION', '1.8.
|
75 |
}
|
76 |
|
77 |
if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
|
@@ -130,14 +134,15 @@ function yith_ajax_search_constructor() {
|
|
130 |
load_plugin_textdomain( 'yith-woocommerce-ajax-search', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
131 |
|
132 |
// Load required classes and functions.
|
133 |
-
require_once YITH_WCAS_DIR .'includes/functions.yith-wcas.php';
|
134 |
-
require_once YITH_WCAS_DIR .'includes/class.yith-wcas-admin.php';
|
135 |
-
require_once YITH_WCAS_DIR .'includes/class.yith-wcas-frontend.php';
|
136 |
-
require_once YITH_WCAS_DIR .'includes/widgets/class.yith-wcas-ajax-search.php';
|
137 |
-
require_once YITH_WCAS_DIR .'includes/class.yith-wcas.php';
|
138 |
|
139 |
// Let's start the game!
|
140 |
global $yith_wcas;
|
141 |
$yith_wcas = new YITH_WCAS();
|
142 |
}
|
143 |
-
|
|
3 |
* Plugin Name: YITH WooCommerce Ajax Search
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-ajax-search/
|
5 |
* Description: <code><strong>YITH WooCommerce Ajax Search</strong></code> is the plugin that allows you to search for a specific product by inserting a few characters. Thanks to <strong>Ajax Search</strong>, users can quickly find the contents they are interested in without wasting time among site pages. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
|
6 |
+
* Version: 1.8.9
|
7 |
* Author: YITH
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-ajax-search
|
10 |
* Domain Path: /languages/
|
11 |
* WC requires at least: 4.5.0
|
12 |
+
* WC tested up to: 5.2.0
|
13 |
+
*
|
14 |
+
* @author YITH
|
15 |
+
* @package YITH WooCommerce Ajax Search
|
16 |
+
* @version 1.0.0
|
17 |
*/
|
18 |
|
19 |
/*
|
20 |
+
Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
21 |
|
22 |
This program is free software; you can redistribute it and/or modify
|
23 |
it under the terms of the GNU General Public License, version 2, as
|
33 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
34 |
*/
|
35 |
if ( ! defined( 'ABSPATH' ) ) {
|
36 |
+
exit;
|
37 |
+
} // Exit if accessed directly
|
38 |
|
39 |
if ( ! defined( 'YITH_WCAS_DIR' ) ) {
|
40 |
define( 'YITH_WCAS_DIR', plugin_dir_path( __FILE__ ) );
|
72 |
register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
73 |
|
74 |
|
|
|
75 |
if ( defined( 'YITH_WCAS_VERSION' ) ) {
|
76 |
return;
|
77 |
} else {
|
78 |
+
define( 'YITH_WCAS_VERSION', '1.8.9' );
|
79 |
}
|
80 |
|
81 |
if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
|
134 |
load_plugin_textdomain( 'yith-woocommerce-ajax-search', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
135 |
|
136 |
// Load required classes and functions.
|
137 |
+
require_once YITH_WCAS_DIR . 'includes/functions.yith-wcas.php';
|
138 |
+
require_once YITH_WCAS_DIR . 'includes/class.yith-wcas-admin.php';
|
139 |
+
require_once YITH_WCAS_DIR . 'includes/class.yith-wcas-frontend.php';
|
140 |
+
require_once YITH_WCAS_DIR . 'includes/widgets/class.yith-wcas-ajax-search.php';
|
141 |
+
require_once YITH_WCAS_DIR . 'includes/class.yith-wcas.php';
|
142 |
|
143 |
// Let's start the game!
|
144 |
global $yith_wcas;
|
145 |
$yith_wcas = new YITH_WCAS();
|
146 |
}
|
147 |
+
|
148 |
+
add_action( 'plugins_loaded', 'yith_ajax_search_constructor' );
|
languages/yith-woocommerce-ajax-search.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the same license as the YITH WooCommerce Ajax Search package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: YITH WooCommerce Ajax Search 1.8.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/yith-woocommerce-ajax-search\n"
|
8 |
-
"POT-Creation-Date: 2021-02
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -52,130 +52,140 @@ msgstr ""
|
|
52 |
msgid "Title:"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: init.php:
|
56 |
msgid ""
|
57 |
"You can't activate the free version of YITH WooCommerce Ajax Search while "
|
58 |
"you are using the premium one."
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: init.php:
|
62 |
msgid ""
|
63 |
"YITH WooCommerce Ajax Search is enabled but not effective. It requires "
|
64 |
"WooCommerce in order to work."
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: plugin-options/settings-options.php:
|
68 |
msgid "General settings"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: plugin-options/settings-options.php:
|
72 |
msgid "Search input label"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: plugin-options/settings-options.php:
|
76 |
-
#: plugin-options/settings-options.php:
|
77 |
msgid "Label for Search input field."
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: plugin-options/settings-options.php:
|
81 |
msgid "Search for products"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: plugin-options/settings-options.php:
|
85 |
msgid "Search submit label"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: plugin-options/settings-options.php:
|
89 |
msgid "Search"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: plugin-options/settings-options.php:
|
93 |
msgid "Minimum number of characters"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: plugin-options/settings-options.php:
|
97 |
msgid "Minimum number of characters required to trigger autosuggest."
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: plugin-options/settings-options.php:
|
101 |
msgid "Maximum number of results"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: plugin-options/settings-options.php:
|
105 |
msgid "Maximum number of results showed within the autosuggest box."
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: plugin-options/settings-options.php:
|
109 |
msgid "Enable transients to cache autocomplete results"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: plugin-options/settings-options.php:
|
113 |
msgid "Save the results of a query in a transient"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: plugin-options/settings-options.php:
|
117 |
msgid "Set the duration of transient"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: plugin-options/settings-options.php:
|
121 |
msgid "(hours)"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: templates/admin/premium.php:
|
|
|
125 |
msgid ""
|
126 |
"Upgrade to the %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Ajax "
|
127 |
"Search%2$s to benefit from all features!"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: templates/admin/premium.php:
|
|
|
131 |
msgid "%1$sUPGRADE%2$s %3$sto the premium version%2$s"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: templates/admin/premium.php:
|
135 |
msgid "Premium Features"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: templates/admin/premium.php:
|
139 |
msgid "HOW TO CUSTOMIZE THE RESULTS OF THE AUTOCOMPLETE"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: templates/admin/premium.php:
|
143 |
msgid "RESULTS OF THE AUTOCOMPLETE"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: templates/admin/premium.php:
|
|
|
147 |
msgid "Show %1$sthe image%2$s of the product (left or right aligned)"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: templates/admin/premium.php:
|
|
|
151 |
msgid "Enable the %1$sprice visualization%2$s"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: templates/admin/premium.php:
|
|
|
155 |
msgid "Show the %1$sproduct description%2$s"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: templates/admin/premium.php:
|
|
|
159 |
msgid "Tell to the client if the product is %1$son discount or is featured%2$s"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: templates/admin/premium.php:
|
163 |
msgid "HOW TO CUSTOMIZE THE SEARCH OPTIONS"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: templates/admin/premium.php:
|
|
|
167 |
msgid "%1$sExtend the research%2$s in the excerpt and in the content"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: templates/admin/premium.php:
|
|
|
171 |
msgid "%1$sActivate%2$s the category search"
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: templates/admin/premium.php:
|
|
|
175 |
msgid "Configure the %1$stag%2$s search"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: templates/admin/premium.php:
|
|
|
179 |
msgid "Search a product with an %1$sID%2$s"
|
180 |
msgstr ""
|
181 |
|
@@ -193,22 +203,22 @@ msgid ""
|
|
193 |
"your e-commerce shop on <strong>YITH</strong></a>."
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: plugin-options/gutenberg/blocks.php:
|
197 |
msgctxt "[gutenberg]: block name"
|
198 |
msgid "Ajax Search"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: plugin-options/gutenberg/blocks.php:
|
202 |
msgctxt "[gutenberg]: block description"
|
203 |
msgid "Show Ajax Search Form"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: plugin-options/gutenberg/blocks.php:
|
207 |
msgctxt "[gutenberg]: keywords"
|
208 |
msgid "Ajax Search"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: plugin-options/gutenberg/blocks.php:
|
212 |
msgctxt "[gutenberg]: keywords"
|
213 |
msgid "Search"
|
214 |
msgstr ""
|
2 |
# This file is distributed under the same license as the YITH WooCommerce Ajax Search package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: YITH WooCommerce Ajax Search 1.8.9\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/yith-woocommerce-ajax-search\n"
|
8 |
+
"POT-Creation-Date: 2021-04-02 13:39:17+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
52 |
msgid "Title:"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: init.php:57
|
56 |
msgid ""
|
57 |
"You can't activate the free version of YITH WooCommerce Ajax Search while "
|
58 |
"you are using the premium one."
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: init.php:125
|
62 |
msgid ""
|
63 |
"YITH WooCommerce Ajax Search is enabled but not effective. It requires "
|
64 |
"WooCommerce in order to work."
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: plugin-options/settings-options.php:25
|
68 |
msgid "General settings"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: plugin-options/settings-options.php:34
|
72 |
msgid "Search input label"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: plugin-options/settings-options.php:36
|
76 |
+
#: plugin-options/settings-options.php:44
|
77 |
msgid "Label for Search input field."
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: plugin-options/settings-options.php:38
|
81 |
msgid "Search for products"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: plugin-options/settings-options.php:42
|
85 |
msgid "Search submit label"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: plugin-options/settings-options.php:46
|
89 |
msgid "Search"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: plugin-options/settings-options.php:50
|
93 |
msgid "Minimum number of characters"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: plugin-options/settings-options.php:51
|
97 |
msgid "Minimum number of characters required to trigger autosuggest."
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: plugin-options/settings-options.php:64
|
101 |
msgid "Maximum number of results"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: plugin-options/settings-options.php:65
|
105 |
msgid "Maximum number of results showed within the autosuggest box."
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: plugin-options/settings-options.php:78
|
109 |
msgid "Enable transients to cache autocomplete results"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: plugin-options/settings-options.php:79
|
113 |
msgid "Save the results of a query in a transient"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: plugin-options/settings-options.php:88
|
117 |
msgid "Set the duration of transient"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: plugin-options/settings-options.php:89
|
121 |
msgid "(hours)"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: templates/admin/premium.php:266 templates/admin/premium.php:324
|
125 |
+
#. translators: placeholders html tags.
|
126 |
msgid ""
|
127 |
"Upgrade to the %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Ajax "
|
128 |
"Search%2$s to benefit from all features!"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: templates/admin/premium.php:269 templates/admin/premium.php:327
|
132 |
+
#. translators: placeholders html tags.
|
133 |
msgid "%1$sUPGRADE%2$s %3$sto the premium version%2$s"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: templates/admin/premium.php:275
|
137 |
msgid "Premium Features"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: templates/admin/premium.php:277
|
141 |
msgid "HOW TO CUSTOMIZE THE RESULTS OF THE AUTOCOMPLETE"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: templates/admin/premium.php:279
|
145 |
msgid "RESULTS OF THE AUTOCOMPLETE"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: templates/admin/premium.php:285
|
149 |
+
#. translators: placeholders html tags.
|
150 |
msgid "Show %1$sthe image%2$s of the product (left or right aligned)"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: templates/admin/premium.php:287
|
154 |
+
#. translators: placeholders html tags.
|
155 |
msgid "Enable the %1$sprice visualization%2$s"
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: templates/admin/premium.php:289
|
159 |
+
#. translators: placeholders html tags.
|
160 |
msgid "Show the %1$sproduct description%2$s"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: templates/admin/premium.php:291
|
164 |
+
#. translators: placeholders html tags.
|
165 |
msgid "Tell to the client if the product is %1$son discount or is featured%2$s"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: templates/admin/premium.php:299
|
169 |
msgid "HOW TO CUSTOMIZE THE SEARCH OPTIONS"
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: templates/admin/premium.php:304
|
173 |
+
#. translators: placeholders html tags.
|
174 |
msgid "%1$sExtend the research%2$s in the excerpt and in the content"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: templates/admin/premium.php:306
|
178 |
+
#. translators: placeholders html tags.
|
179 |
msgid "%1$sActivate%2$s the category search"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: templates/admin/premium.php:308
|
183 |
+
#. translators: placeholders html tags.
|
184 |
msgid "Configure the %1$stag%2$s search"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: templates/admin/premium.php:310
|
188 |
+
#. translators: placeholders html tags.
|
189 |
msgid "Search a product with an %1$sID%2$s"
|
190 |
msgstr ""
|
191 |
|
203 |
"your e-commerce shop on <strong>YITH</strong></a>."
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: plugin-options/gutenberg/blocks.php:21
|
207 |
msgctxt "[gutenberg]: block name"
|
208 |
msgid "Ajax Search"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: plugin-options/gutenberg/blocks.php:22
|
212 |
msgctxt "[gutenberg]: block description"
|
213 |
msgid "Show Ajax Search Form"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: plugin-options/gutenberg/blocks.php:26
|
217 |
msgctxt "[gutenberg]: keywords"
|
218 |
msgid "Ajax Search"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: plugin-options/gutenberg/blocks.php:27
|
222 |
msgctxt "[gutenberg]: keywords"
|
223 |
msgid "Search"
|
224 |
msgstr ""
|
plugin-fw/assets/css/metaboxes.css
CHANGED
@@ -179,7 +179,6 @@
|
|
179 |
display : inline-block;
|
180 |
line-height : 23px;
|
181 |
width : auto;
|
182 |
-
vertical-align : middle;
|
183 |
margin : 0;
|
184 |
}
|
185 |
|
179 |
display : inline-block;
|
180 |
line-height : 23px;
|
181 |
width : auto;
|
|
|
182 |
margin : 0;
|
183 |
}
|
184 |
|
plugin-fw/assets/css/yit-plugin-panel.css
CHANGED
@@ -117,9 +117,9 @@
|
|
117 |
}
|
118 |
|
119 |
.yith-plugin-fw-wp-page-wrapper .wrap h1.wp-heading-inline {
|
120 |
-
color
|
121 |
-
font-size
|
122 |
-
font-weight
|
123 |
}
|
124 |
|
125 |
.yith-plugin-fw-wp-page-wrapper .wrap a.page-title-action,
|
@@ -514,9 +514,9 @@
|
|
514 |
}
|
515 |
|
516 |
#wpwrap h2.nav-tab-wrapper, #wpbody-content h2.nav-tab-wrapper {
|
517 |
-
border-bottom
|
518 |
-
margin-right
|
519 |
-
text-transform: uppercase;
|
520 |
}
|
521 |
|
522 |
/* === YIT FRAMEWORK === */
|
@@ -535,9 +535,7 @@
|
|
535 |
.yith-plugin-ui .yit-admin-panel-container {
|
536 |
position : relative;
|
537 |
margin-right : 15px;
|
538 |
-
margin-top : -3px;
|
539 |
z-index : 0;
|
540 |
-
border-top : 1px solid #dbdada;
|
541 |
}
|
542 |
|
543 |
.yit-admin-panel-content-wrap {
|
@@ -576,12 +574,11 @@
|
|
576 |
*/
|
577 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav {
|
578 |
background : #fff;
|
579 |
-
padding : 10px 14px
|
580 |
box-sizing : border-box;
|
581 |
margin-right : 15px;
|
582 |
border-left : 1px solid #d8d8d8;
|
583 |
border-right : 1px solid #d8d8d8;
|
584 |
-
margin-top : -2px;
|
585 |
}
|
586 |
|
587 |
.yith-plugin-ui .yith-plugin-fw-wp-page-wrapper .wrap {
|
@@ -683,13 +680,12 @@ li.yith-plugin-fw-tab-element {
|
|
683 |
margin : 0;
|
684 |
padding : 0;
|
685 |
display : inline-block;
|
686 |
-
height : 37px;
|
687 |
overflow : visible;
|
688 |
z-index : 10;
|
689 |
}
|
690 |
|
691 |
-
.yith-plugin-
|
692 |
-
margin-
|
693 |
}
|
694 |
|
695 |
li.yith-plugin-fw-tab-element:hover {
|
@@ -736,10 +732,6 @@ li.yith-plugin-fw-tab-element a.nav-tab i:before {
|
|
736 |
color : #fff;
|
737 |
}
|
738 |
|
739 |
-
.yith-plugin-fw-panel .woocommerce-page {
|
740 |
-
margin-top : -2px;
|
741 |
-
}
|
742 |
-
|
743 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yit-admin-panel-container {
|
744 |
margin-top : 0;
|
745 |
padding-top : 0;
|
117 |
}
|
118 |
|
119 |
.yith-plugin-fw-wp-page-wrapper .wrap h1.wp-heading-inline {
|
120 |
+
color : #2a8db0;
|
121 |
+
font-size : 16px;
|
122 |
+
font-weight : 600;
|
123 |
}
|
124 |
|
125 |
.yith-plugin-fw-wp-page-wrapper .wrap a.page-title-action,
|
514 |
}
|
515 |
|
516 |
#wpwrap h2.nav-tab-wrapper, #wpbody-content h2.nav-tab-wrapper {
|
517 |
+
border-bottom : 1px solid #ccc;
|
518 |
+
margin-right : 15px;
|
519 |
+
text-transform : uppercase;
|
520 |
}
|
521 |
|
522 |
/* === YIT FRAMEWORK === */
|
535 |
.yith-plugin-ui .yit-admin-panel-container {
|
536 |
position : relative;
|
537 |
margin-right : 15px;
|
|
|
538 |
z-index : 0;
|
|
|
539 |
}
|
540 |
|
541 |
.yit-admin-panel-content-wrap {
|
574 |
*/
|
575 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav {
|
576 |
background : #fff;
|
577 |
+
padding : 10px 14px 0 20px;
|
578 |
box-sizing : border-box;
|
579 |
margin-right : 15px;
|
580 |
border-left : 1px solid #d8d8d8;
|
581 |
border-right : 1px solid #d8d8d8;
|
|
|
582 |
}
|
583 |
|
584 |
.yith-plugin-ui .yith-plugin-fw-wp-page-wrapper .wrap {
|
680 |
margin : 0;
|
681 |
padding : 0;
|
682 |
display : inline-block;
|
|
|
683 |
overflow : visible;
|
684 |
z-index : 10;
|
685 |
}
|
686 |
|
687 |
+
.yith-plugin-ui li.yith-plugin-fw-tab-element {
|
688 |
+
margin-bottom: -1px;
|
689 |
}
|
690 |
|
691 |
li.yith-plugin-fw-tab-element:hover {
|
732 |
color : #fff;
|
733 |
}
|
734 |
|
|
|
|
|
|
|
|
|
735 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yit-admin-panel-container {
|
736 |
margin-top : 0;
|
737 |
padding-top : 0;
|
plugin-fw/assets/css/yith-fields.css
CHANGED
@@ -8,8 +8,10 @@
|
|
8 |
}
|
9 |
|
10 |
.yith-plugin-fw span.description.inline {
|
11 |
-
display
|
12 |
-
margin
|
|
|
|
|
13 |
}
|
14 |
|
15 |
.yith-disabled {
|
@@ -95,7 +97,8 @@
|
|
95 |
.yith-plugin-fw .select2-container .select2-search--inline .select2-search__field,
|
96 |
.woocommerce .yith-plugin-fw input.select2-search__field,
|
97 |
.woocommerce .yith-plugin-fw table.form-table input.select2-search__field {
|
98 |
-
padding
|
|
|
99 |
}
|
100 |
|
101 |
.yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
|
@@ -530,18 +533,15 @@ YITH UI
|
|
530 |
}
|
531 |
|
532 |
.yith-plugin-ui .nav-tab {
|
533 |
-
margin-left : 0px;
|
534 |
-
margin-right : 2px;
|
535 |
background-color : #336374;
|
536 |
color : #fff;
|
537 |
font-size : 15px;
|
538 |
padding : 7px 20px;
|
539 |
border : 0;
|
|
|
540 |
transition : background-color 0.3s linear;
|
541 |
-
|
542 |
-
|
543 |
-
.yith-plugin-ui .nav-tab:first-child {
|
544 |
-
border-left : 1px solid #d9d9d9;
|
545 |
}
|
546 |
|
547 |
.yith-plugin-ui .nav-tab.yith-premium {
|
@@ -556,7 +556,11 @@ YITH UI
|
|
556 |
.yith-plugin-ui .nav-tab-active {
|
557 |
background-color : #fff;
|
558 |
color : #336374;
|
559 |
-
|
|
|
|
|
|
|
|
|
560 |
}
|
561 |
|
562 |
.yith-plugin-ui .nav-tab-active.yith-premium {
|
@@ -599,7 +603,7 @@ YITH UI
|
|
599 |
|
600 |
#wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper {
|
601 |
border : 0;
|
602 |
-
|
603 |
margin-right : 15px;
|
604 |
margin-bottom : 0;
|
605 |
background-color : transparent;
|
@@ -960,7 +964,7 @@ YITH UI
|
|
960 |
.yith-plugin-ui button.yith-plugin-fw-upload-button:before {
|
961 |
content : "\e90c";
|
962 |
font-family : 'yith-icon';
|
963 |
-
font-size :
|
964 |
font-weight : 400;
|
965 |
margin-right : 10px;
|
966 |
vertical-align : middle;
|
@@ -1301,6 +1305,12 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
1301 |
/**
|
1302 |
DATEPICKER
|
1303 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
1304 |
div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
1305 |
border : 0;
|
1306 |
box-shadow : 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
|
@@ -1513,7 +1523,7 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
1513 |
content : "\e91a";
|
1514 |
text-indent : 0;
|
1515 |
font-family : 'yith-icon';
|
1516 |
-
font-size :
|
1517 |
color : #d8d8d8;
|
1518 |
font-weight : normal;
|
1519 |
width : 15px;
|
@@ -2072,8 +2082,8 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2072 |
.metaboxes-tab .yith-plugin-fw-dimensions__dimension__label,
|
2073 |
.yith-plugin-ui.metaboxes-tab label.yith-plugin-fw-dimensions__dimension__label {
|
2074 |
text-transform : uppercase;
|
2075 |
-
letter-spacing :
|
2076 |
-
font-size :
|
2077 |
margin-bottom : 5px;
|
2078 |
display : inline-block;
|
2079 |
}
|
@@ -2098,6 +2108,87 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2098 |
border-color : #007694;
|
2099 |
}
|
2100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2101 |
|
2102 |
/** OVERRIDE WOOCOMMERCE CLASSES FOR 5.3 */
|
2103 |
.branch-5-3 .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__arrow {
|
@@ -2254,13 +2345,16 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2254 |
}
|
2255 |
|
2256 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
|
2257 |
-
width
|
2258 |
-
height
|
|
|
2259 |
}
|
2260 |
|
2261 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
|
2262 |
-
top
|
2263 |
-
left
|
|
|
|
|
2264 |
}
|
2265 |
|
2266 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
|
@@ -2268,15 +2362,15 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2268 |
}
|
2269 |
|
2270 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
|
2271 |
-
font-size
|
2272 |
-
padding
|
2273 |
-
margin-top
|
2274 |
}
|
2275 |
|
2276 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
|
2277 |
font-size : 11px;
|
2278 |
-
padding-left :
|
2279 |
-
margin-top :
|
2280 |
}
|
2281 |
|
2282 |
.yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
|
8 |
}
|
9 |
|
10 |
.yith-plugin-fw span.description.inline {
|
11 |
+
display : inline-block;
|
12 |
+
margin : 0 0 0 5px;
|
13 |
+
min-width : 0;
|
14 |
+
max-width : 100%;
|
15 |
}
|
16 |
|
17 |
.yith-disabled {
|
97 |
.yith-plugin-fw .select2-container .select2-search--inline .select2-search__field,
|
98 |
.woocommerce .yith-plugin-fw input.select2-search__field,
|
99 |
.woocommerce .yith-plugin-fw table.form-table input.select2-search__field {
|
100 |
+
padding : 3px;
|
101 |
+
min-width : 380px;
|
102 |
}
|
103 |
|
104 |
.yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
|
533 |
}
|
534 |
|
535 |
.yith-plugin-ui .nav-tab {
|
|
|
|
|
536 |
background-color : #336374;
|
537 |
color : #fff;
|
538 |
font-size : 15px;
|
539 |
padding : 7px 20px;
|
540 |
border : 0;
|
541 |
+
margin : 0 4px 0 0;
|
542 |
transition : background-color 0.3s linear;
|
543 |
+
float : none;
|
544 |
+
display : inline-block;
|
|
|
|
|
545 |
}
|
546 |
|
547 |
.yith-plugin-ui .nav-tab.yith-premium {
|
556 |
.yith-plugin-ui .nav-tab-active {
|
557 |
background-color : #fff;
|
558 |
color : #336374;
|
559 |
+
box-shadow : 0 3px 0 -1px #fff;
|
560 |
+
}
|
561 |
+
|
562 |
+
.yith-plugin-ui .yith-plugin-fw-tab-element:first-child .nav-tab-active {
|
563 |
+
border-left : 1px solid #ddd;
|
564 |
}
|
565 |
|
566 |
.yith-plugin-ui .nav-tab-active.yith-premium {
|
603 |
|
604 |
#wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper {
|
605 |
border : 0;
|
606 |
+
border-bottom : 1px solid #ddd;
|
607 |
margin-right : 15px;
|
608 |
margin-bottom : 0;
|
609 |
background-color : transparent;
|
964 |
.yith-plugin-ui button.yith-plugin-fw-upload-button:before {
|
965 |
content : "\e90c";
|
966 |
font-family : 'yith-icon';
|
967 |
+
font-size : 17px;
|
968 |
font-weight : 400;
|
969 |
margin-right : 10px;
|
970 |
vertical-align : middle;
|
1305 |
/**
|
1306 |
DATEPICKER
|
1307 |
*/
|
1308 |
+
.yith-plugin-ui .yith-plugin-fw-datepicker + .yith-icon-calendar,
|
1309 |
+
.yith-plugin-fw-datepicker + .yith-icon-calendar {
|
1310 |
+
color : #ccc;
|
1311 |
+
font-size : 18px;
|
1312 |
+
}
|
1313 |
+
|
1314 |
div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
1315 |
border : 0;
|
1316 |
box-shadow : 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
|
1523 |
content : "\e91a";
|
1524 |
text-indent : 0;
|
1525 |
font-family : 'yith-icon';
|
1526 |
+
font-size : 16px;
|
1527 |
color : #d8d8d8;
|
1528 |
font-weight : normal;
|
1529 |
width : 15px;
|
2082 |
.metaboxes-tab .yith-plugin-fw-dimensions__dimension__label,
|
2083 |
.yith-plugin-ui.metaboxes-tab label.yith-plugin-fw-dimensions__dimension__label {
|
2084 |
text-transform : uppercase;
|
2085 |
+
letter-spacing : 1px;
|
2086 |
+
font-size : 9px;
|
2087 |
margin-bottom : 5px;
|
2088 |
display : inline-block;
|
2089 |
}
|
2108 |
border-color : #007694;
|
2109 |
}
|
2110 |
|
2111 |
+
/**
|
2112 |
+
* Copy to clipboard
|
2113 |
+
*/
|
2114 |
+
.yith-plugin-fw-copy-to-clipboard {
|
2115 |
+
background : #ffffff;
|
2116 |
+
border-radius : 8px;
|
2117 |
+
border : 1px solid #d8d8d8;
|
2118 |
+
display : flex;
|
2119 |
+
align-items : center;
|
2120 |
+
padding : 0 12px;
|
2121 |
+
max-width : 400px;
|
2122 |
+
box-sizing : border-box;
|
2123 |
+
}
|
2124 |
+
|
2125 |
+
.yith-plugin-fw-copy-to-clipboard.yith-plugin-fw-copy-to-clipboard--readonly {
|
2126 |
+
background : #f1f1f1;
|
2127 |
+
border : 1px dashed #cccccc;
|
2128 |
+
}
|
2129 |
+
|
2130 |
+
.yith-plugin-fw-copy-to-clipboard__field-wrap {
|
2131 |
+
position : relative;
|
2132 |
+
flex : 1;
|
2133 |
+
}
|
2134 |
+
|
2135 |
+
.yith-plugin-fw-copy-to-clipboard__tip {
|
2136 |
+
display : none;
|
2137 |
+
position : absolute;
|
2138 |
+
background : rgba(30, 30, 30, 0.9);
|
2139 |
+
color : #ffffff;
|
2140 |
+
padding : 7px 10px;
|
2141 |
+
border-radius : 3px;
|
2142 |
+
right : 8px;
|
2143 |
+
top : 50%;
|
2144 |
+
transform : translateY(-50%);
|
2145 |
+
pointer-events : none;
|
2146 |
+
font-size : 12px;
|
2147 |
+
line-height : 1;
|
2148 |
+
}
|
2149 |
+
|
2150 |
+
|
2151 |
+
.yith-plugin-fw-copy-to-clipboard input[type=text].yith-plugin-fw-copy-to-clipboard__field,
|
2152 |
+
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].yith-plugin-fw-copy-to-clipboard__field {
|
2153 |
+
height : 38px;
|
2154 |
+
width : 100%;
|
2155 |
+
background : transparent;
|
2156 |
+
padding : 0 10px 0 0;
|
2157 |
+
border : 0;
|
2158 |
+
border-radius : 0;
|
2159 |
+
}
|
2160 |
+
|
2161 |
+
.yith-plugin-fw-copy-to-clipboard.yith-plugin-fw-copy-to-clipboard--readonly input[type=text].yith-plugin-fw-copy-to-clipboard__field,
|
2162 |
+
.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 {
|
2163 |
+
color : #999;
|
2164 |
+
cursor : default;
|
2165 |
+
}
|
2166 |
+
|
2167 |
+
.yith-plugin-fw-copy-to-clipboard__copy {
|
2168 |
+
display : flex;
|
2169 |
+
align-items : center;
|
2170 |
+
cursor : pointer;
|
2171 |
+
border-radius : 2px;
|
2172 |
+
padding : 1px;
|
2173 |
+
user-select : none;
|
2174 |
+
line-height : 1;
|
2175 |
+
transition : all .2s ease-in-out;
|
2176 |
+
}
|
2177 |
+
|
2178 |
+
.yith-plugin-fw-copy-to-clipboard__copy:hover {
|
2179 |
+
box-shadow : 0 0 0 4px rgba(15, 67, 60, .12);
|
2180 |
+
background-color : rgba(15, 67, 60, .12);
|
2181 |
+
}
|
2182 |
+
|
2183 |
+
.yith-plugin-fw-copy-to-clipboard__copy__text {
|
2184 |
+
font-size : 12px;
|
2185 |
+
font-weight : 600;
|
2186 |
+
}
|
2187 |
+
|
2188 |
+
.yith-plugin-fw-copy-to-clipboard__copy__icon {
|
2189 |
+
margin-right : 4px;
|
2190 |
+
font-size : 14px;
|
2191 |
+
}
|
2192 |
|
2193 |
/** OVERRIDE WOOCOMMERCE CLASSES FOR 5.3 */
|
2194 |
.branch-5-3 .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__arrow {
|
2345 |
}
|
2346 |
|
2347 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
|
2348 |
+
width : 48px;
|
2349 |
+
height : 20px;
|
2350 |
+
padding : 2px;
|
2351 |
}
|
2352 |
|
2353 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
|
2354 |
+
top : 4px;
|
2355 |
+
left : 3px;
|
2356 |
+
width : 10px;
|
2357 |
+
height : 10px;
|
2358 |
}
|
2359 |
|
2360 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
|
2362 |
}
|
2363 |
|
2364 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
|
2365 |
+
font-size : 11px;
|
2366 |
+
padding-right : 12px;
|
2367 |
+
margin-top : 0;
|
2368 |
}
|
2369 |
|
2370 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
|
2371 |
font-size : 11px;
|
2372 |
+
padding-left : 12px;
|
2373 |
+
margin-top : 0;
|
2374 |
}
|
2375 |
|
2376 |
.yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
|
plugin-fw/assets/css/yith-icon.css
ADDED
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* DO NOT EDIT THIS FILE DIRECTLY
|
3 |
+
* This file is automatically built using a build process
|
4 |
+
*/
|
5 |
+
|
6 |
+
/* stylelint-disable function-url-quotes, declaration-colon-newline-after */
|
7 |
+
@font-face {
|
8 |
+
font-family: yith-icon;
|
9 |
+
src: url("../fonts/yith-icon.eot?f69afddd02decf49e86a8590fb21cefe");
|
10 |
+
src: url("../fonts/yith-icon.eot?f69afddd02decf49e86a8590fb21cefe#iefix") format("embedded-opentype"),
|
11 |
+
url("data:application/x-font-woff;charset=utf-8;base64,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") format("woff"),
|
12 |
+
url("../fonts/yith-icon.ttf?f69afddd02decf49e86a8590fb21cefe") format("truetype");
|
13 |
+
font-weight: 400;
|
14 |
+
font-style: normal;
|
15 |
+
}
|
16 |
+
/* stylelint-enable */
|
17 |
+
|
18 |
+
|
19 |
+
[class^="yith-icon-"], [class*=" yith-icon-"] {
|
20 |
+
font-family: yith-icon !important;
|
21 |
+
speak: never;
|
22 |
+
font-style: normal;
|
23 |
+
font-weight: normal;
|
24 |
+
font-variant: normal;
|
25 |
+
text-transform: none;
|
26 |
+
line-height: 1;
|
27 |
+
|
28 |
+
-webkit-font-smoothing: antialiased;
|
29 |
+
-moz-osx-font-smoothing: grayscale;
|
30 |
+
|
31 |
+
width: 1em;
|
32 |
+
height: 1em;
|
33 |
+
font-size: 20px;
|
34 |
+
}
|
35 |
+
|
36 |
+
/* Icons */
|
37 |
+
|
38 |
+
.yith-icon-accounting:before {
|
39 |
+
content: "\e91d";
|
40 |
+
}
|
41 |
+
|
42 |
+
.yith-icon-arrow-down:before {
|
43 |
+
content: "\e900";
|
44 |
+
}
|
45 |
+
|
46 |
+
.yith-icon-arrow-left:before {
|
47 |
+
content: "\e901";
|
48 |
+
}
|
49 |
+
|
50 |
+
.yith-icon-arrow-right:before {
|
51 |
+
content: "\e902";
|
52 |
+
}
|
53 |
+
|
54 |
+
.yith-icon-arrow-up:before {
|
55 |
+
content: "\e903";
|
56 |
+
}
|
57 |
+
|
58 |
+
.yith-icon-bank-check:before {
|
59 |
+
content: "\e91e";
|
60 |
+
}
|
61 |
+
|
62 |
+
.yith-icon-bank:before {
|
63 |
+
content: "\e91c";
|
64 |
+
}
|
65 |
+
|
66 |
+
.yith-icon-calendar-add:before {
|
67 |
+
content: "\e913";
|
68 |
+
}
|
69 |
+
|
70 |
+
.yith-icon-calendar-money:before {
|
71 |
+
content: "\e914";
|
72 |
+
}
|
73 |
+
|
74 |
+
.yith-icon-calendar:before {
|
75 |
+
content: "\e904";
|
76 |
+
}
|
77 |
+
|
78 |
+
.yith-icon-calendar2:before {
|
79 |
+
content: "\e915";
|
80 |
+
}
|
81 |
+
|
82 |
+
.yith-icon-cash:before {
|
83 |
+
content: "\e91f";
|
84 |
+
}
|
85 |
+
|
86 |
+
.yith-icon-check-circle:before {
|
87 |
+
content: "\e921";
|
88 |
+
}
|
89 |
+
|
90 |
+
.yith-icon-check:before {
|
91 |
+
content: "\e905";
|
92 |
+
}
|
93 |
+
|
94 |
+
.yith-icon-clone:before {
|
95 |
+
content: "\f105";
|
96 |
+
}
|
97 |
+
|
98 |
+
.yith-icon-close:before {
|
99 |
+
content: "\e906";
|
100 |
+
}
|
101 |
+
|
102 |
+
.yith-icon-copy:before {
|
103 |
+
content: "\f101";
|
104 |
+
}
|
105 |
+
|
106 |
+
.yith-icon-credit-card:before {
|
107 |
+
content: "\e920";
|
108 |
+
}
|
109 |
+
|
110 |
+
.yith-icon-drag:before {
|
111 |
+
content: "\e90f";
|
112 |
+
}
|
113 |
+
|
114 |
+
.yith-icon-edit:before {
|
115 |
+
content: "\e907";
|
116 |
+
}
|
117 |
+
|
118 |
+
.yith-icon-eye-closed:before {
|
119 |
+
content: "\e912";
|
120 |
+
}
|
121 |
+
|
122 |
+
.yith-icon-eye:before {
|
123 |
+
content: "\e911";
|
124 |
+
}
|
125 |
+
|
126 |
+
.yith-icon-info-squared:before {
|
127 |
+
content: "\e922";
|
128 |
+
}
|
129 |
+
|
130 |
+
.yith-icon-info:before {
|
131 |
+
content: "\e90e";
|
132 |
+
}
|
133 |
+
|
134 |
+
.yith-icon-magnifier:before {
|
135 |
+
content: "\e908";
|
136 |
+
}
|
137 |
+
|
138 |
+
.yith-icon-more:before {
|
139 |
+
content: "\f102";
|
140 |
+
}
|
141 |
+
|
142 |
+
.yith-icon-paypal:before {
|
143 |
+
content: "\e91b";
|
144 |
+
}
|
145 |
+
|
146 |
+
.yith-icon-pencil:before {
|
147 |
+
content: "\e909";
|
148 |
+
}
|
149 |
+
|
150 |
+
.yith-icon-people:before {
|
151 |
+
content: "\e916";
|
152 |
+
}
|
153 |
+
|
154 |
+
.yith-icon-plus:before {
|
155 |
+
content: "\e90a";
|
156 |
+
}
|
157 |
+
|
158 |
+
.yith-icon-reply:before {
|
159 |
+
content: "\e91a";
|
160 |
+
}
|
161 |
+
|
162 |
+
.yith-icon-reset:before {
|
163 |
+
content: "\e910";
|
164 |
+
}
|
165 |
+
|
166 |
+
.yith-icon-shield-money:before {
|
167 |
+
content: "\e917";
|
168 |
+
}
|
169 |
+
|
170 |
+
.yith-icon-time-check:before {
|
171 |
+
content: "\e918";
|
172 |
+
}
|
173 |
+
|
174 |
+
.yith-icon-trash:before {
|
175 |
+
content: "\e90d";
|
176 |
+
}
|
177 |
+
|
178 |
+
.yith-icon-update:before {
|
179 |
+
content: "\e90b";
|
180 |
+
}
|
181 |
+
|
182 |
+
.yith-icon-upload:before {
|
183 |
+
content: "\e90c";
|
184 |
+
}
|
185 |
+
|
186 |
+
.yith-icon-warning-triangle:before {
|
187 |
+
content: "\e923";
|
188 |
+
}
|
189 |
+
|
190 |
+
.yith-icon-world-settings:before {
|
191 |
+
content: "\e919";
|
192 |
+
}
|
193 |
+
|
194 |
+
.yith-icon-yith:before {
|
195 |
+
content: "\e924";
|
196 |
+
}
|
197 |
+
|
198 |
+
/** -------------------------------------------
|
199 |
+
* Deprecated icons
|
200 |
+
*/
|
201 |
+
|
202 |
+
/** Deprecated: use yith-icon-paypal instead */
|
203 |
+
.yith-icon-paypal-svgrepo-com:before {
|
204 |
+
content: "\e91b";
|
205 |
+
}
|
206 |
+
|
207 |
+
/** Deprecated: use yith-icon-arrow-down instead */
|
208 |
+
.yith-icon-arrow_down:before {
|
209 |
+
content: "\e900";
|
210 |
+
}
|
211 |
+
|
212 |
+
/** Deprecated: use yith-icon-eye instead */
|
213 |
+
.yith-icon-arrow_eye:before {
|
214 |
+
content: "\e911";
|
215 |
+
}
|
216 |
+
|
217 |
+
/** Deprecated: use yith-icon-eye-closed instead */
|
218 |
+
.yith-icon-arrow_eye_closed:before {
|
219 |
+
content: "\e912";
|
220 |
+
}
|
221 |
+
|
222 |
+
/** Deprecated: use yith-icon-arrow-left instead */
|
223 |
+
.yith-icon-arrow_left:before {
|
224 |
+
content: "\e901";
|
225 |
+
}
|
226 |
+
|
227 |
+
/** Deprecated: use yith-icon-arrow-right instead */
|
228 |
+
.yith-icon-arrow_right:before {
|
229 |
+
content: "\e902";
|
230 |
+
}
|
231 |
+
|
232 |
+
/** Deprecated: use yith-icon-arrow-up instead */
|
233 |
+
.yith-icon-arrow_up:before {
|
234 |
+
content: "\e903";
|
235 |
+
}
|
236 |
+
|
237 |
+
/** Deprecated: use yith-icon-calendar instead */
|
238 |
+
.yith-icon-calendar2:before {
|
239 |
+
content: "\e904";
|
240 |
+
}
|
241 |
+
|
242 |
+
/** Deprecated: use yith-icon-calendar-add instead */
|
243 |
+
.yith-icon-calendar_add:before {
|
244 |
+
content: "\e913";
|
245 |
+
}
|
246 |
+
|
247 |
+
/** Deprecated: use yith-icon-calendar-money instead */
|
248 |
+
.yith-icon-calendar_money:before {
|
249 |
+
content: "\e914";
|
250 |
+
}
|
251 |
+
|
252 |
+
/** Deprecated: use yith-icon-shield-money instead */
|
253 |
+
.yith-icon-shield_money:before {
|
254 |
+
content: "\e917";
|
255 |
+
}
|
256 |
+
|
257 |
+
/** Deprecated: use yith-icon-time-check instead */
|
258 |
+
.yith-icon-time_check:before {
|
259 |
+
content: "\e918";
|
260 |
+
}
|
261 |
+
|
262 |
+
/** Deprecated: use yith-icon-world-settings instead */
|
263 |
+
.yith-icon-world_settings:before {
|
264 |
+
content: "\e919";
|
265 |
+
}
|
266 |
+
|
267 |
+
/** Deprecated: use yith-icon-edit instead */
|
268 |
+
.yith-icon-pencil:before {
|
269 |
+
content: "\e907";
|
270 |
+
}
|
271 |
+
|
272 |
+
/** Deprecated: use yith-icon-reset instead */
|
273 |
+
.yith-icon-update:before {
|
274 |
+
content: "\e910";
|
275 |
+
}
|
plugin-fw/assets/fonts/yith-icon.eot
CHANGED
Binary file
|
plugin-fw/assets/fonts/yith-icon.ttf
CHANGED
Binary file
|
plugin-fw/assets/fonts/yith-icon.woff2
ADDED
Binary file
|
plugin-fw/assets/js/yit-plugin-panel.js
CHANGED
@@ -113,23 +113,16 @@ jQuery( function ( $ ) {
|
|
113 |
// init field deps
|
114 |
t.addClass( 'deps-initialized' );
|
115 |
|
116 |
-
var field
|
117 |
-
dep
|
118 |
-
value
|
119 |
-
type
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
}
|
127 |
-
|
128 |
-
$( dep ).on( event, function () {
|
129 |
-
dependencies_handler( field, dep, value.toString(), type );
|
130 |
-
} ).trigger( event );
|
131 |
-
} );
|
132 |
-
}
|
133 |
|
134 |
init_dependencies();
|
135 |
// re-init deps after an add toggle action
|
113 |
// init field deps
|
114 |
t.addClass( 'deps-initialized' );
|
115 |
|
116 |
+
var field = '#' + t.data( 'dep-target' ),
|
117 |
+
dep = '#' + t.data( 'dep-id' ),
|
118 |
+
value = t.data( 'dep-value' ),
|
119 |
+
type = t.data( 'dep-type' );
|
120 |
+
|
121 |
+
$( dep ).on( 'change', function () {
|
122 |
+
dependencies_handler( field, dep, value.toString(), type );
|
123 |
+
} ).trigger( 'change' );
|
124 |
+
} );
|
125 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
init_dependencies();
|
128 |
// re-init deps after an add toggle action
|
plugin-fw/assets/js/yit-plugin-panel.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(e){function a(){e("[data-dep-target]:not( .deps-initialized )").each(function(){var a=e(this);if(!a.closest(".metaboxes-tab").length){a.addClass("deps-initialized");var t="#"+a.data("dep-target"),i="#"+a.data("dep-id"),n=a.data("dep-value"),
|
1 |
+
jQuery(function(e){function a(){e("[data-dep-target]:not( .deps-initialized )").each(function(){var a=e(this);if(!a.closest(".metaboxes-tab").length){a.addClass("deps-initialized");var t="#"+a.data("dep-target"),i="#"+a.data("dep-id"),n=a.data("dep-value"),d=a.data("dep-type");e(i).on("change",function(){!function(a,t,i,n){var d=!0;if("string"==typeof t){":radio"==t.substr(0,6)&&(t+=":checked");var s=e(t).data("type"),r=e(t).val();"checkbox"===s?r=e(t).is(":checked")?"yes":"no":"radio"===s&&(r=e(t).find('input[type="radio"]').filter(":checked").val()),"select-images"===e(t+"-wrapper").data("type")&&(r=e(t+"-wrapper").find("select").first().val()),i=i.split(",");for(var c=0;c<i.length;c++){if(r==i[c]){d=!0;break}d=!1}}var o=e(a),l=e(a+"-container").closest("tr");l.length<1&&(l=o.closest(".yith-plugin-fw-panel-wc-row, .yith-toggle-content-row"));var h,p=n.split("-");for(h in p){var u=p[h];if(d)switch(u){case"disable":l.removeClass("yith-disabled"),o.attr("disabled",!1);break;case"hide":case"hideNow":l.show();break;case"hideme":o.show();break;case"fadeOut":l.show();break;case"fadeInOut":case"fadeIn":default:l.show(500)}else switch(u){case"disable":l.addClass("yith-disabled"),o.attr("disabled",!0);break;case"hide":case"hideNow":l.hide();break;case"hideme":o.hide();break;case"fadeInOut":case"fadeOut":l.hide(500);break;case"fadeIn":default:l.hide()}}}(t,i,n.toString(),d)}).trigger("change")}})}a(),e(document).on("yith-add-box-button-toggle",a),e(".rm_connectedlist").each(function(){var a=e(this).find("ul"),t=e(this).find(":hidden");a.sortable({connectWith:a,update:function(i,n){var d={};a.each(function(){var a={};e(this).children().each(function(){a[e(this).data("option")]=e(this).text()}),d[e(this).data("list")]=a}),t.val(JSON.stringify(d).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()}),e(function(){e(".google-analytic-generate").click(function(){var a=e("#"+e(this).data("textarea")).data("codemirrorInstance"),t="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n";t+="(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\n",t+="m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n",t+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n",t+="ga('create', '"+e("#"+e(this).data("input")).val()+"', '"+e(this).data("basename")+"');\n",t+="ga('send', 'pageview');\n",a.replaceRange(t,a.getCursor("start"),a.getCursor("end"))})}),e(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper");var t=e(".wrap.yith-plugin-ui").first(),i=e("div.updated, div.error, div.notice");if(i.addClass("inline"),t.length&&t.prepend(i),e(document).find(".yith-nav-sub-tab.nav-tab-active").length){var n=e(document).find(".yith-plugin-fw-wp-page-wrapper");if(n.length||(n=e(document).find("#wpbody-content > .yith-plugin-ui")),n)(t=n.find(".yit-admin-panel-content-wrap")).length?t.addClass("has-subnav"):n.find(".wrap").wrap('<div class="wrap subnav-wrap"></div>')}});
|
plugin-fw/assets/js/yith-fields.js
CHANGED
@@ -23,7 +23,9 @@
|
|
23 |
|
24 |
/* Datepicker */
|
25 |
$datepicker.each( function () {
|
26 |
-
var
|
|
|
|
|
27 |
|
28 |
// set animation to false to prevent style 'glitches' when removing class on closing
|
29 |
args.showAnim = false;
|
@@ -34,7 +36,12 @@
|
|
34 |
instance.dpDiv.removeClass( 'yith-plugin-fw-datepicker-div' );
|
35 |
};
|
36 |
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
38 |
} );
|
39 |
|
40 |
/* Colorpicker */
|
@@ -388,7 +395,7 @@
|
|
388 |
select = wrapper.find( 'select' ).first();
|
389 |
|
390 |
if ( select.length ) {
|
391 |
-
select.val( key ).trigger( 'yith_select_images_value_changed' );
|
392 |
items.removeClass( 'yith-plugin-fw-select-images__item--selected' );
|
393 |
item.addClass( 'yith-plugin-fw-select-images__item--selected' );
|
394 |
}
|
@@ -427,20 +434,23 @@
|
|
427 |
/* on-off */
|
428 |
$( document ).on( 'click', '.yith-plugin-fw-onoff-container span', function () {
|
429 |
var input = $( this ).prev( 'input' ),
|
430 |
-
checked = input.prop( 'checked' ),
|
431 |
disabled = input.prop( 'disabled' );
|
432 |
|
433 |
if ( disabled ) {
|
434 |
return;
|
435 |
}
|
436 |
|
437 |
-
|
438 |
-
|
|
|
|
|
|
|
|
|
|
|
439 |
} else {
|
440 |
-
|
441 |
}
|
442 |
-
|
443 |
-
input.change();
|
444 |
} );
|
445 |
|
446 |
|
@@ -814,4 +824,41 @@
|
|
814 |
};
|
815 |
fw_dimensions.init();
|
816 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
817 |
} )( jQuery );
|
23 |
|
24 |
/* Datepicker */
|
25 |
$datepicker.each( function () {
|
26 |
+
var currentDatePicker = $( this ),
|
27 |
+
args = currentDatePicker.data(),
|
28 |
+
icon = currentDatePicker.next( '.yith-icon-calendar' );
|
29 |
|
30 |
// set animation to false to prevent style 'glitches' when removing class on closing
|
31 |
args.showAnim = false;
|
36 |
instance.dpDiv.removeClass( 'yith-plugin-fw-datepicker-div' );
|
37 |
};
|
38 |
|
39 |
+
currentDatePicker.datepicker( args );
|
40 |
+
if ( icon ) {
|
41 |
+
icon.on( 'click', function () {
|
42 |
+
currentDatePicker.datepicker( 'show' );
|
43 |
+
} )
|
44 |
+
}
|
45 |
} );
|
46 |
|
47 |
/* Colorpicker */
|
395 |
select = wrapper.find( 'select' ).first();
|
396 |
|
397 |
if ( select.length ) {
|
398 |
+
select.val( key ).trigger( 'yith_select_images_value_changed' ).trigger( 'change' );
|
399 |
items.removeClass( 'yith-plugin-fw-select-images__item--selected' );
|
400 |
item.addClass( 'yith-plugin-fw-select-images__item--selected' );
|
401 |
}
|
434 |
/* on-off */
|
435 |
$( document ).on( 'click', '.yith-plugin-fw-onoff-container span', function () {
|
436 |
var input = $( this ).prev( 'input' ),
|
|
|
437 |
disabled = input.prop( 'disabled' );
|
438 |
|
439 |
if ( disabled ) {
|
440 |
return;
|
441 |
}
|
442 |
|
443 |
+
input.trigger( 'click' );
|
444 |
+
} );
|
445 |
+
|
446 |
+
// Useful for triggering deps when clicking on field label.
|
447 |
+
$( document ).on( 'click', '.yith-plugin-fw-onoff-container input', function ( e ) {
|
448 |
+
if ( $( this ).is( ':checked' ) ) {
|
449 |
+
$( this ).attr( 'value', 'yes' ).addClass( 'onoffchecked' );
|
450 |
} else {
|
451 |
+
$( this ).attr( 'value', 'no' ).removeClass( 'onoffchecked' );
|
452 |
}
|
453 |
+
$( this ).trigger( 'change' );
|
|
|
454 |
} );
|
455 |
|
456 |
|
824 |
};
|
825 |
fw_dimensions.init();
|
826 |
|
827 |
+
/**
|
828 |
+
* Copy to clip-board
|
829 |
+
*/
|
830 |
+
var clearSelection = function () {
|
831 |
+
var selection = 'getSelection' in window ? window.getSelection() : false;
|
832 |
+
if ( selection ) {
|
833 |
+
if ( 'empty' in selection ) { // Chrome.
|
834 |
+
selection.empty();
|
835 |
+
} else if ( 'removeAllRanges' in selection ) { // Firefox.
|
836 |
+
selection.removeAllRanges();
|
837 |
+
}
|
838 |
+
} else if ( 'selection' in document ) { // IE.
|
839 |
+
document.selection.empty();
|
840 |
+
}
|
841 |
+
}
|
842 |
+
|
843 |
+
$( document ).on( 'click', '.yith-plugin-fw-copy-to-clipboard__copy', function () {
|
844 |
+
var wrap = $( this ).closest( '.yith-plugin-fw-copy-to-clipboard' ),
|
845 |
+
input = wrap.find( '.yith-plugin-fw-copy-to-clipboard__field' ),
|
846 |
+
tip = wrap.find( '.yith-plugin-fw-copy-to-clipboard__tip' ),
|
847 |
+
timeout = wrap.data( 'tip-timeout' );
|
848 |
+
|
849 |
+
timeout && clearTimeout( timeout );
|
850 |
+
|
851 |
+
input.select();
|
852 |
+
document.execCommand( 'copy' );
|
853 |
+
clearSelection();
|
854 |
+
|
855 |
+
tip.fadeIn( 400 );
|
856 |
+
|
857 |
+
// Use timeout instead of delay to prevent issues with multiple clicks.
|
858 |
+
timeout = setTimeout( function () {
|
859 |
+
tip.fadeOut( 400 );
|
860 |
+
}, 1500 );
|
861 |
+
wrap.data( 'tip-timeout', timeout );
|
862 |
+
} )
|
863 |
+
|
864 |
} )( jQuery );
|
plugin-fw/assets/js/yith-fields.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),n={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},a=e(".add_media"),l={rootSelector:".yith-plugin-fw-image-gallery",buttonSelector:".yith-plugin-fw-image-gallery .image-gallery-button",sliderWrapper:e(".yith-plugin-fw-image-gallery ul.slides-wrapper")},o=e(".yith-plugin-fw-sidebar-layout"),s=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),r=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this).data();t.showAnim=!1,t.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},t.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},e(this).datepicker(t)}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=e(this).closest(".yith-single-colorpicker"),a=i.find(".wp-picker-input-wrap"),l=n.find(".wp-picker-input-wrap");if(a.length&&i.find("a.wp-color-result").attr("title",t),n.length&&n.find("a.wp-color-result").attr("title",t),!a.find(".wp-picker-default-custom").length){var o=e("<span/>").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=e("<span/>").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(n.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),a=e(this).parent().find(n.imgPreviewHandler).first();a.length<1&&(a=e(this).parent().parent().find(n.imgPreviewHandler).first()),i.test(t)?a.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):a.html("")}).trigger("change"),e(document).on("click",n.uploadButtonHandler,function(t){t.preventDefault();var i,a=e(this).attr("id").replace(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(i)i.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+a).val(t.url),e("#"+a+"-yith-attachment-id")&&e("#"+a+"-yith-attachment-id").val(t.id),n.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",n.resetButtonHandler,function(t){var i=e(this),a=i.attr("id").replace(/(\[|\])/g,"\\$1"),l=i.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),o=e("#"+a).data("default");e("#"+l).val(o),n.imgUrl.trigger("change")}));a.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",l.buttonSelector,function(t){var i=e(this),n=i.closest(l.rootSelector),a=n.find(".image_gallery_ids"),o=a.val(),s=n.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){(e=e.toJSON()).id&&(o=o?o+","+e.id:e.id,s.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),a.val(o),a.trigger("change")}),r.open()}),l.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,n){var a="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");a=a+t+","}),t.closest(l.rootSelector).find(".image_gallery_ids").val(a)}})}),l.sliderWrapper.on("click","a.delete",function(t){t.preventDefault();var i=e(this).closest(l.rootSelector),n=i.find("ul.slides-wrapper"),a=i.find(".image_gallery_ids"),o="";e(this).closest("li.image").remove(),n.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");o=o+t+","}),a.val(o)})),o.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":i.show(),n.hide();break;case"right":n.show(),i.hide();break;case"double":i.show(),n.show();break;default:i.hide(),n.hide()}})}),s.each(function(){var t=e(this).data("val"),i=e(this).data("min"),n=e(this).data("max"),a=e(this).data("step"),l=e(this).data("labels");e(this).slider({value:t,min:i,max:n,range:"min",step:a,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+l)}})}),e(function(){e(document).on("yith-plugin-fw-codemirror-init",function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.codeEditor&&e(".codemirror:not(.codemirror--initialized)").each(function(){var t=e(this).data("settings"),i=wp.codeEditor.initialize(e(this),t);e(this).addClass("codemirror--initialized"),e(this).data("codemirrorInstance",i)})}).trigger("yith-plugin-fw-codemirror-init")}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),r.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),n=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(a){var l=e(a.target).closest("li"),o=l.data("font"),s=l.data("icon"),r=l.data("key"),d=l.data("name");i.attr("data-font",o),i.attr("data-icon",s),i.attr("data-key",r),i.attr("data-name",d),n.val(o+":"+d),t.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),n=t.closest(".yith-plugin-fw-select-images__wrapper"),a=n.find(".yith-plugin-fw-select-images__item"),l=n.find("select").first();l.length&&(l.val(i).trigger("yith_select_images_value_changed"),a.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a<n.length;a++)l[a]=e(n[a]).data("item_key");l.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,l)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input"),i=t.prop("checked");t.prop("disabled")||(i?t.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):t.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),t.change())}),e.fn.saveToggleElement=function(t,i){var n=e(this),a="yith_plugin_fw_save_toggle_element",l=n.serializeToggleElement(),o=n.find(".yith-toggle_wrapper"),s=o.attr("id"),r=e.urlParam("tab");l.append("security",o.data("nonce")),void 0!==i&&i.length>0&&l.append("yith_toggle_elements_order_keys",i),n.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+s+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+r+"&toggle_id="+s,e.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,n])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,n=e(t).find(":input").serializeArray();return e.each(n,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),n=t.find("span.title").data("title_format"),a=t.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==n)var o=n.match(l);if(void 0!==a)var s=a.match(l);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(n=n.replace("%%"+$field_id+"%%",$field_val)),null!=s&&void 0!==s&&-1!==s.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==n&&t.find("span.title").html(n),""!==a&&t.find(".subtitle").html(a),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),n=i.closest(".yith-toggle-row"),a=n.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;n.is(".yith-toggle-row-opened")?a.slideUp(400):a.slideDown(400),n.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),n=i.data("box_id"),a=i.data("closed_label"),l=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id"),s=wp.template("yith-toggle-element-add-box-content-"+o);""!==n&&(e("#"+n).html(s({index:"box_id"})).slideToggle(),""!==a&&(i.html()===a?i.html(l).removeClass("closed"):i.html(a).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),n=e(this).closest(".yith-toggle_wrapper").attr("id"),a=i.find(".spinner"),l=e(this).parents(".toggle-element"),o=i.find(":input"),s=0,r=e('<input type="hidden">');l.find(".yith-toggle-row").each(function(){var t=parseInt(e(this).data("item_key"));s<=t&&(s=t+1)}),r.val(s),e(document).trigger("yith-toggle-change-counter",[r,i]),s=r.val();var d=wp.template("yith-toggle-element-item-"+n),c=e(d({index:s}));a.addClass("show"),e.each(o,function(t,i){if(void 0!==e(i).attr("id")){var n=e(i).attr("id"),a=e(i).val();n="radio"===e(i).attr("type")?(n=(n=e(i).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,e(i).is(":checked")&&e(c).find("#"+n).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+n).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+n).val(a)}}),e(c).formatToggleTitle();var u=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,u]);setTimeout(function(){if("yes"===u.val()){e(l).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){e(l).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),n=e(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,n,l]),"yes"===l.val()&&(a.addClass("show"),i.saveToggleElement(a))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var t=e(this).closest(".yith-plugin-fw-radio"),i=e(this).val();t.val(i).data("value",i).trigger("change")}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).data("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")});var t={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var i=t;e(document).on("click",i.selectors.units.single,i.unitChange),e(document).on("click",i.selectors.linked.button,i.linkedChange),e(document).on("change keyup",i.selectors.dimensions.number,i.numberChange)},unitChange:function(i){var n=e(this).closest(t.selectors.units.single),a=n.closest(t.selectors.units.wrapper),l=a.find(t.selectors.units.single),o=a.find(t.selectors.units.value).first(),s=n.data("value");l.removeClass(t.selectors.units.selectedClass),n.addClass(t.selectors.units.selectedClass),o.val(s)},linkedChange:function(){var i=e(this).closest(t.selectors.linked.button),n=i.closest(t.selectors.wrapper),a=i.find(t.selectors.linked.value);"yes"===a.val()?(n.removeClass(t.selectors.linked.wrapperActiveClass),a.val("no")):(n.addClass(t.selectors.linked.wrapperActiveClass),a.val("yes"),n.find(t.selectors.dimensions.number).first().trigger("change"))},numberChange:function(i){var n=e(this).closest(t.selectors.dimensions.number),a=n.closest(t.selectors.wrapper);a.hasClass(t.selectors.linked.wrapperActiveClass)&&a.find(t.selectors.dimensions.number).val(n.val())}};t.init()}(jQuery);
|
1 |
+
!function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),n={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},a=e(".add_media"),l={rootSelector:".yith-plugin-fw-image-gallery",buttonSelector:".yith-plugin-fw-image-gallery .image-gallery-button",sliderWrapper:e(".yith-plugin-fw-image-gallery ul.slides-wrapper")},o=e(".yith-plugin-fw-sidebar-layout"),s=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),r=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this),i=t.data(),n=t.next(".yith-icon-calendar");i.showAnim=!1,i.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},i.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},t.datepicker(i),n&&n.on("click",function(){t.datepicker("show")})}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),n=e(this).closest(".yith-single-colorpicker"),a=i.find(".wp-picker-input-wrap"),l=n.find(".wp-picker-input-wrap");if(a.length&&i.find("a.wp-color-result").attr("title",t),n.length&&n.find("a.wp-color-result").attr("title",t),!a.find(".wp-picker-default-custom").length){var o=e("<span/>").attr({"class":"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(o)}l.find(".wp-picker-default-custom").length||(o=e("<span/>").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(o))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(n.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),a=e(this).parent().find(n.imgPreviewHandler).first();a.length<1&&(a=e(this).parent().parent().find(n.imgPreviewHandler).first()),i.test(t)?a.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):a.html("")}).trigger("change"),e(document).on("click",n.uploadButtonHandler,function(t){t.preventDefault();var i,a=e(this).attr("id").replace(/-button$/,"").replace(/(\[|\])/g,"\\$1");if(i)i.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+a).val(t.url),e("#"+a+"-yith-attachment-id")&&e("#"+a+"-yith-attachment-id").val(t.id),n.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",n.resetButtonHandler,function(t){var i=e(this),a=i.attr("id").replace(/(\[|\])/g,"\\$1"),l=i.attr("id").replace(/-button-reset$/,"").replace(/(\[|\])/g,"\\$1"),o=e("#"+a).data("default");e("#"+l).val(o),n.imgUrl.trigger("change")}));a.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",l.buttonSelector,function(t){var i=e(this),n=i.closest(l.rootSelector),a=n.find(".image_gallery_ids"),o=a.val(),s=n.find("ul.slides-wrapper"),r=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});r.on("select",function(){r.state().get("selection").map(function(e){(e=e.toJSON()).id&&(o=o?o+","+e.id:e.id,s.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),a.val(o),a.trigger("change")}),r.open()}),l.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,n){var a="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");a=a+t+","}),t.closest(l.rootSelector).find(".image_gallery_ids").val(a)}})}),l.sliderWrapper.on("click","a.delete",function(t){t.preventDefault();var i=e(this).closest(l.rootSelector),n=i.find("ul.slides-wrapper"),a=i.find(".image_gallery_ids"),o="";e(this).closest("li.image").remove(),n.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");o=o+t+","}),a.val(o)})),o.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),n=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":i.show(),n.hide();break;case"right":n.show(),i.hide();break;case"double":i.show(),n.show();break;default:i.hide(),n.hide()}})}),s.each(function(){var t=e(this).data("val"),i=e(this).data("min"),n=e(this).data("max"),a=e(this).data("step"),l=e(this).data("labels");e(this).slider({value:t,min:i,max:n,range:"min",step:a,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+l)}})}),e(function(){e(document).on("yith-plugin-fw-codemirror-init",function(){"undefined"!=typeof wp&&"undefined"!=typeof wp.codeEditor&&e(".codemirror:not(.codemirror--initialized)").each(function(){var t=e(this).data("settings"),i=wp.codeEditor.initialize(e(this),t);e(this).addClass("codemirror--initialized"),e(this).data("codemirrorInstance",i)})}).trigger("yith-plugin-fw-codemirror-init")}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),r.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),n=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(a){var l=e(a.target).closest("li"),o=l.data("font"),s=l.data("icon"),r=l.data("key"),d=l.data("name");i.attr("data-font",o),i.attr("data-icon",s),i.attr("data-key",r),i.attr("data-name",d),n.val(o+":"+d),t.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),n=t.closest(".yith-plugin-fw-select-images__wrapper"),a=n.find(".yith-plugin-fw-select-images__item"),l=n.find("select").first();l.length&&(l.val(i).trigger("yith_select_images_value_changed").trigger("change"),a.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var n=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a<n.length;a++)l[a]=e(n[a]).data("item_key");l.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,l)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input");t.prop("disabled")||t.trigger("click")}),e(document).on("click",".yith-plugin-fw-onoff-container input",function(t){e(this).is(":checked")?e(this).attr("value","yes").addClass("onoffchecked"):e(this).attr("value","no").removeClass("onoffchecked"),e(this).trigger("change")}),e.fn.saveToggleElement=function(t,i){var n=e(this),a="yith_plugin_fw_save_toggle_element",l=n.serializeToggleElement(),o=n.find(".yith-toggle_wrapper"),s=o.attr("id"),r=e.urlParam("tab");l.append("security",o.data("nonce")),void 0!==i&&i.length>0&&l.append("yith_toggle_elements_order_keys",i),n.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+s+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+r+"&toggle_id="+s,e.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,n])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,n=e(t).find(":input").serializeArray();return e.each(n,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),n=t.find("span.title").data("title_format"),a=t.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==n)var o=n.match(l);if(void 0!==a)var s=a.match(l);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(n=n.replace("%%"+$field_id+"%%",$field_val)),null!=s&&void 0!==s&&-1!==s.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==n&&t.find("span.title").html(n),""!==a&&t.find(".subtitle").html(a),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),n=i.closest(".yith-toggle-row"),a=n.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;n.is(".yith-toggle-row-opened")?a.slideUp(400):a.slideDown(400),n.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),n=i.data("box_id"),a=i.data("closed_label"),l=i.data("opened_label"),o=i.closest(".yith-toggle_wrapper").attr("id"),s=wp.template("yith-toggle-element-add-box-content-"+o);""!==n&&(e("#"+n).html(s({index:"box_id"})).slideToggle(),""!==a&&(i.html()===a?i.html(l).removeClass("closed"):i.html(a).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),n=e(this).closest(".yith-toggle_wrapper").attr("id"),a=i.find(".spinner"),l=e(this).parents(".toggle-element"),o=i.find(":input"),s=0,r=e('<input type="hidden">');l.find(".yith-toggle-row").each(function(){var t=parseInt(e(this).data("item_key"));s<=t&&(s=t+1)}),r.val(s),e(document).trigger("yith-toggle-change-counter",[r,i]),s=r.val();var d=wp.template("yith-toggle-element-item-"+n),c=e(d({index:s}));a.addClass("show"),e.each(o,function(t,i){if(void 0!==e(i).attr("id")){var n=e(i).attr("id"),a=e(i).val();n="radio"===e(i).attr("type")?(n=(n=e(i).closest(".yith-plugin-fw-radio").attr("id")).replace("new_","")+"_"+s)+"-"+a:n.replace("new_","")+"_"+s,e(i).is(":checked")&&e(c).find("#"+n).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+n).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+n).val(a)}}),e(c).formatToggleTitle();var u=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,u]);setTimeout(function(){if("yes"===u.val()){e(l).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){e(l).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),n=e(this).closest(".yith-toggle-row"),a=n.find(".spinner");n.formatToggleTitle();var l=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,n,l]),"yes"===l.val()&&(a.addClass("show"),i.saveToggleElement(a))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){var t=e(this).closest(".yith-plugin-fw-radio"),i=e(this).val();t.val(i).data("value",i).trigger("change")}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).data("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")});var t={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var i=t;e(document).on("click",i.selectors.units.single,i.unitChange),e(document).on("click",i.selectors.linked.button,i.linkedChange),e(document).on("change keyup",i.selectors.dimensions.number,i.numberChange)},unitChange:function(i){var n=e(this).closest(t.selectors.units.single),a=n.closest(t.selectors.units.wrapper),l=a.find(t.selectors.units.single),o=a.find(t.selectors.units.value).first(),s=n.data("value");l.removeClass(t.selectors.units.selectedClass),n.addClass(t.selectors.units.selectedClass),o.val(s)},linkedChange:function(){var i=e(this).closest(t.selectors.linked.button),n=i.closest(t.selectors.wrapper),a=i.find(t.selectors.linked.value);"yes"===a.val()?(n.removeClass(t.selectors.linked.wrapperActiveClass),a.val("no")):(n.addClass(t.selectors.linked.wrapperActiveClass),a.val("yes"),n.find(t.selectors.dimensions.number).first().trigger("change"))},numberChange:function(i){var n=e(this).closest(t.selectors.dimensions.number),a=n.closest(t.selectors.wrapper);a.hasClass(t.selectors.linked.wrapperActiveClass)&&a.find(t.selectors.dimensions.number).val(n.val())}};t.init();e(document).on("click",".yith-plugin-fw-copy-to-clipboard__copy",function(){var t,i=e(this).closest(".yith-plugin-fw-copy-to-clipboard"),n=i.find(".yith-plugin-fw-copy-to-clipboard__field"),a=i.find(".yith-plugin-fw-copy-to-clipboard__tip"),l=i.data("tip-timeout");l&&clearTimeout(l),n.select(),document.execCommand("copy"),(t="getSelection"in window&&window.getSelection())?"empty"in t?t.empty():"removeAllRanges"in t&&t.removeAllRanges():"selection"in document&&document.selection.empty(),a.fadeIn(400),l=setTimeout(function(){a.fadeOut(400)},1500),i.data("tip-timeout",l)})}(jQuery);
|
plugin-fw/dist/gutenberg/index.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-url'), 'version' => '0cd18d6eb6a3a162b564625f29f7b9b6');
|
plugin-fw/dist/gutenberg/index.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[]).push([[1],{27:function(e,t,n){},28:function(e,t,n){}}]),function(e){function t(t){for(var r,a,l=t[0],i=t[1],s=t[2],f=0,p=[];f<l.length;f++)a=l[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(u&&u(t);p.length;)p.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,l=1;l<n.length;l++){var i=n[l];0!==o[i]&&(r=!1)}r&&(c.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},o={0:0},c=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var l=window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[],i=l.push.bind(l);l.push=t,l=l.slice();for(var s=0;s<l.length;s++)t(l[s]);var u=i;c.push([29,1]),n()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.React},function(e,t,n){var r=n(17),o=n(18),c=n(19),a=n(21);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||a()}},function(e,t){e.exports=window.wp.hooks},function(e,t,n){var r,o,c,a,l;r=n(22),o=n(9).utf8,c=n(23),a=n(9).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):c(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),i=8*e.length,s=1732584193,u=-271733879,f=-1732584194,p=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[i>>>5]|=128<<i%32,n[14+(i+64>>>9<<4)]=i;var b=l._ff,d=l._gg,y=l._hh,g=l._ii;for(h=0;h<n.length;h+=16){var m=s,v=u,_=f,w=p;s=b(s,u,f,p,n[h+0],7,-680876936),p=b(p,s,u,f,n[h+1],12,-389564586),f=b(f,p,s,u,n[h+2],17,606105819),u=b(u,f,p,s,n[h+3],22,-1044525330),s=b(s,u,f,p,n[h+4],7,-176418897),p=b(p,s,u,f,n[h+5],12,1200080426),f=b(f,p,s,u,n[h+6],17,-1473231341),u=b(u,f,p,s,n[h+7],22,-45705983),s=b(s,u,f,p,n[h+8],7,1770035416),p=b(p,s,u,f,n[h+9],12,-1958414417),f=b(f,p,s,u,n[h+10],17,-42063),u=b(u,f,p,s,n[h+11],22,-1990404162),s=b(s,u,f,p,n[h+12],7,1804603682),p=b(p,s,u,f,n[h+13],12,-40341101),f=b(f,p,s,u,n[h+14],17,-1502002290),s=d(s,u=b(u,f,p,s,n[h+15],22,1236535329),f,p,n[h+1],5,-165796510),p=d(p,s,u,f,n[h+6],9,-1069501632),f=d(f,p,s,u,n[h+11],14,643717713),u=d(u,f,p,s,n[h+0],20,-373897302),s=d(s,u,f,p,n[h+5],5,-701558691),p=d(p,s,u,f,n[h+10],9,38016083),f=d(f,p,s,u,n[h+15],14,-660478335),u=d(u,f,p,s,n[h+4],20,-405537848),s=d(s,u,f,p,n[h+9],5,568446438),p=d(p,s,u,f,n[h+14],9,-1019803690),f=d(f,p,s,u,n[h+3],14,-187363961),u=d(u,f,p,s,n[h+8],20,1163531501),s=d(s,u,f,p,n[h+13],5,-1444681467),p=d(p,s,u,f,n[h+2],9,-51403784),f=d(f,p,s,u,n[h+7],14,1735328473),s=y(s,u=d(u,f,p,s,n[h+12],20,-1926607734),f,p,n[h+5],4,-378558),p=y(p,s,u,f,n[h+8],11,-2022574463),f=y(f,p,s,u,n[h+11],16,1839030562),u=y(u,f,p,s,n[h+14],23,-35309556),s=y(s,u,f,p,n[h+1],4,-1530992060),p=y(p,s,u,f,n[h+4],11,1272893353),f=y(f,p,s,u,n[h+7],16,-155497632),u=y(u,f,p,s,n[h+10],23,-1094730640),s=y(s,u,f,p,n[h+13],4,681279174),p=y(p,s,u,f,n[h+0],11,-358537222),f=y(f,p,s,u,n[h+3],16,-722521979),u=y(u,f,p,s,n[h+6],23,76029189),s=y(s,u,f,p,n[h+9],4,-640364487),p=y(p,s,u,f,n[h+12],11,-421815835),f=y(f,p,s,u,n[h+15],16,530742520),s=g(s,u=y(u,f,p,s,n[h+2],23,-995338651),f,p,n[h+0],6,-198630844),p=g(p,s,u,f,n[h+7],10,1126891415),f=g(f,p,s,u,n[h+14],15,-1416354905),u=g(u,f,p,s,n[h+5],21,-57434055),s=g(s,u,f,p,n[h+12],6,1700485571),p=g(p,s,u,f,n[h+3],10,-1894986606),f=g(f,p,s,u,n[h+10],15,-1051523),u=g(u,f,p,s,n[h+1],21,-2054922799),s=g(s,u,f,p,n[h+8],6,1873313359),p=g(p,s,u,f,n[h+15],10,-30611744),f=g(f,p,s,u,n[h+6],15,-1560198380),u=g(u,f,p,s,n[h+13],21,1309151649),s=g(s,u,f,p,n[h+4],6,-145523070),p=g(p,s,u,f,n[h+11],10,-1120210379),f=g(f,p,s,u,n[h+2],15,718787259),u=g(u,f,p,s,n[h+9],21,-343485551),s=s+m>>>0,u=u+v>>>0,f=f+_>>>0,p=p+w>>>0}return r.endian([s,u,f,p])})._ff=function(e,t,n,r,o,c,a){var l=e+(t&n|~t&r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._gg=function(e,t,n,r,o,c,a){var l=e+(t&r|n&~r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._hh=function(e,t,n,r,o,c,a){var l=e+(t^n^r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._ii=function(e,t,n,r,o,c,a){var l=e+(n^(t|~r))+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(l(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.compose},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(24);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(25),o=n(26);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){e.exports=window.lodash},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw c}}return n}}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],c=0;c<4;c++)8*r+6*c<=8*e.length?t.push(n.charAt(o>>>6*(3-c)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(e.charAt(r))>>>6-2*o);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),c=n(0),a=n(2),l=n(5),i=n.n(l),s=n(10),u=n(11);function f(e){if(e.status>=200&&e.status<300)return e;throw e}function p(e){return e.json?e.json():e.text()}var h=Object(c.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},Object(c.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"})),b=function(e,t){var n=e.controlType,r=!0;if(e.deps&&e.deps.id&&"value"in e.deps){var o=e.deps.value;"toggle"!==n&&"checkbox"!==n||(o=!0===o||"yes"===o||1===o),r=void 0!==t[e.deps.id]&&o===t[e.deps.id]}return r},d=function(e,t){var n="",r=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?r=jQuery.fn[e.callback]:e.callback in window&&(r=window[e.callback])),"function"==typeof r)n=r(t,e);else{var c=e.attributes?Object.entries(e.attributes).map((function(e){var n=o()(e,2),r=n[0],c=n[1],a=b(c,t),l=t[r];if(a&&void 0!==l)return r+"="+(c.remove_quotes?l:'"'.concat(l,'"'))})):[],a=c.length?" "+c.join(" "):"";n="[".concat(e.shortcode_name).concat(a,"]")}return n},y=n(1),g=n(6),m=n(12),v=n.n(m),_=n(13),w=n.n(_),j=n(14),x=n.n(j),O=n(15),C=n.n(O),k=n(8),E=n.n(k),S=n(16),T=n(4);n(27);var A=function(e){x()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=E()(t);if(n){var o=E()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return C()(this,e)});function o(){var e;return v()(this,o),(e=r.apply(this,arguments)).state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1},e.ajaxTimeout=!1,e}return w()(o,[{key:"componentDidMount",value:function(){this.updateShortcode()}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.state,o=r.shortcode,c=r.shortcodeHash,a=r.ajaxSuccess,l=r.ajaxResponse,i=r.ajaxUpdated;Object(S.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&i&&(a&&Object(T.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,c,l),Object(T.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,c,l),this.setState({ajaxUpdated:!1}))}},{key:"updateShortcode",value:function(){var e=this,t=this.props,n=t.attributes,r=t.blockArgs;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});var o=d(r,n),c=i()(o);r.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),Object(T.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",o,c),this.ajaxTimeout=setTimeout((function(){(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return t=Object(u.addQueryArgs)(t,e),fetch(t).then(f).then(p)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:o}).then((function(t){e.setState({loading:!1,html:t.html,shortcode:o,shortcodeHash:c,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:t})})).catch((function(e){console.log({error:e})}))}),300)):this.setState({loading:!1,html:o,shortcode:o,shortcodeHash:c})}},{key:"render",value:function(){var e=this.state,t=e.html,n=e.loading,r=e.shortcode,o=e.shortcodeHash,a=this.props.blockArgs,l=a.do_shortcode,i=a.title,s=a.empty_message,u="block-editor-yith-plugin-fw-shortcode-block",f=[u],p=l?"html":"shortcode",b=t,d="";l&&!t&&(p="empty-html",b=r,s&&(d=s));var g=["shortcode","empty-html"].includes(p),m="empty-html"!==p,v=!!d;return f.push("".concat(u,"--").concat(p)),f.push("".concat(u,v?"--has-message":"--no-message")),f.push("yith_block_".concat(o)),Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:f.join(" ")},n?Object(c.createElement)("div",{className:"".concat(u,"__spinner-wrap")},Object(c.createElement)(y.Spinner,null)):"",g&&Object(c.createElement)("div",{className:"".concat(u,"__title components-placeholder__label")},h,i),v&&Object(c.createElement)(c.RawHTML,{className:"".concat(u,"__message")},d),m&&Object(c.createElement)(c.RawHTML,{className:"".concat(u,"__content")},b)))}}]),o}(a.Component),B=n(7);function N(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,a=e.help,l=e.disableAlpha,i=Object(B.useInstanceId)(N),s="inspector-yith-color-picker-control-".concat(i);return Object(c.createElement)(y.BaseControl,{id:s,label:n,className:"block-editor-yith-color-control ".concat(t),help:a},Object(c.createElement)(y.ColorPicker,{color:o,disableAlpha:l,onChangeComplete:r}))}function R(e){var t=e.label,n=e.colorValue;return Object(c.createElement)(c.Fragment,null,t,!!n&&Object(c.createElement)(y.ColorIndicator,{colorValue:n}))}function P(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,a=e.help,l=e.palette,i=e.clearable;l=l||Object(g.__experimentalUseEditorFeature)("color.palette");var s=Object(B.useInstanceId)(P),u="inspector-yith-color-palette-control-".concat(s);return Object(c.createElement)(y.BaseControl,{id:u,className:"block-editor-yith-color-palette-control ".concat(t),help:a},Object(c.createElement)("fieldset",null,Object(c.createElement)("legend",null,Object(c.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},Object(c.createElement)(y.BaseControl.VisualLabel,null,Object(c.createElement)(R,{colorValue:o,label:n})))),Object(c.createElement)(y.ColorPalette,{value:o,onChange:r,colors:l,clearable:i})))}n(28);for(var M=function(e,t){return function(n){var r=n.attributes,a=(n.className,n.setAttributes),l=function(e,t,n){["colorpicker","color"].includes(n)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());var r={};r[t]=e,a(r)};return Object(c.createElement)(c.Fragment,null,!!t.attributes&&Object(c.createElement)(g.InspectorControls,null,Object(c.createElement)(y.PanelBody,null,Object.entries(t.attributes).map((function(t){var n=o()(t,2),a=function(t,n){var o=n.controlType,a=r[t],i=function(e,t){var n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n}(n,a),s="".concat(e,"__").concat(t,"-field-wrapper"),u=b(n,r);n.wrapper_class&&(s+=" "+n.wrapper_class);var f=!1;if(u)switch(o){case"select":f=Object(c.createElement)(y.SelectControl,{className:s,key:t,value:a,label:n.label,options:n.options,selected:a,help:i,multiple:!!n.multiple,onChange:function(e){l(e,t,o)}});break;case"text":f=Object(c.createElement)(y.TextControl,{className:s,key:t,value:a,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"textarea":f=Object(c.createElement)(y.TextareaControl,{className:s,key:t,value:a,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"toggle":f=Object(c.createElement)(y.ToggleControl,{className:s,key:t,value:a,label:n.label,help:i,checked:a,onChange:function(e){l(e,t,o)}});break;case"checkbox":f=Object(c.createElement)(y.CheckboxControl,{className:s,key:t,value:a,label:n.label,help:i,checked:a,onChange:function(e){l(e,t,o)}});break;case"number":case"range":f=Object(c.createElement)(y.RangeControl,{className:s,key:t,value:a,label:n.label,help:i,min:n.min,max:n.max,onChange:function(e){l(e,t,o)}});break;case"color":case"colorpicker":f=Object(c.createElement)(N,{className:s,key:t,label:n.label,help:i,value:a,disableAlpha:n.disableAlpha,onChange:function(e){l(e,t,o)}});break;case"color-palette":f=Object(c.createElement)(P,{className:s,key:t,label:n.label,help:i,value:a,clearable:n.clearable||!1,onChange:function(e){l(e,t,o)}});break;case"radio":f=Object(c.createElement)(y.RadioControl,{key:t,value:a,label:n.label,options:n.options,selected:a,checked:a,help:i,onChange:function(e){l(e,t,o)}});break;default:f=!1}return f}(n[0],n[1]);if(a)return a})))),Object(c.createElement)(A,{attributes:r,blockArgs:t}))}},I=function(){var e=U[H];Object(T.addAction)(e,"yith-plugin-fw/jquery-events",(function(){if("jQuery"in window){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];jQuery(document).trigger(e,Object.values(n))}}))},H=0,U=["yith_plugin_fw_gutenberg_before_do_shortcode","yith_plugin_fw_gutenberg_success_do_shortcode","yith_plugin_fw_gutenberg_after_do_shortcode"];H<U.length;H++)I();for(var L=function(){var e=o()(F[Q],2),t=e[0],n=e[1];Object(s.registerBlockType)("yith/"+t,{title:n.title,description:n.description,category:n.category,attributes:n.attributes,icon:void 0!==n.icon?n.icon:h,keywords:n.keywords,edit:M(t,n),save:function(e){var t=e.attributes;return d(n,t)},deprecated:[{attributes:n.attributes,save:function(e){var t=e.attributes,r=d(n,t),o='<span class="yith_block_'+i()(r)+'">'+r+"</span>";return Object(c.createElement)(c.RawHTML,null,o)}}]})},Q=0,F=Object.entries(yithGutenbergBlocks);Q<F.length;Q++)L()}]);
|
1 |
+
(window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[]).push([[1],{27:function(e,t,n){},28:function(e,t,n){}}]),function(e){function t(t){for(var r,a,l=t[0],i=t[1],u=t[2],f=0,p=[];f<l.length;f++)a=l[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(s&&s(t);p.length;)p.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,l=1;l<n.length;l++){var i=n[l];0!==o[i]&&(r=!1)}r&&(c.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},o={0:0},c=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var l=window.webpackJsonp_yith_plugin_framewowrk=window.webpackJsonp_yith_plugin_framewowrk||[],i=l.push.bind(l);l.push=t,l=l.slice();for(var u=0;u<l.length;u++)t(l[u]);var s=i;c.push([29,1]),n()}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.React},function(e,t,n){var r=n(17),o=n(18),c=n(19),a=n(21);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||a()}},function(e,t){e.exports=window.wp.hooks},function(e,t){e.exports=window.lodash},function(e,t,n){var r,o,c,a,l;r=n(22),o=n(10).utf8,c=n(23),a=n(10).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):c(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),i=8*e.length,u=1732584193,s=-271733879,f=-1732584194,p=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[i>>>5]|=128<<i%32,n[14+(i+64>>>9<<4)]=i;var b=l._ff,d=l._gg,y=l._hh,g=l._ii;for(h=0;h<n.length;h+=16){var m=u,v=s,_=f,j=p;u=b(u,s,f,p,n[h+0],7,-680876936),p=b(p,u,s,f,n[h+1],12,-389564586),f=b(f,p,u,s,n[h+2],17,606105819),s=b(s,f,p,u,n[h+3],22,-1044525330),u=b(u,s,f,p,n[h+4],7,-176418897),p=b(p,u,s,f,n[h+5],12,1200080426),f=b(f,p,u,s,n[h+6],17,-1473231341),s=b(s,f,p,u,n[h+7],22,-45705983),u=b(u,s,f,p,n[h+8],7,1770035416),p=b(p,u,s,f,n[h+9],12,-1958414417),f=b(f,p,u,s,n[h+10],17,-42063),s=b(s,f,p,u,n[h+11],22,-1990404162),u=b(u,s,f,p,n[h+12],7,1804603682),p=b(p,u,s,f,n[h+13],12,-40341101),f=b(f,p,u,s,n[h+14],17,-1502002290),u=d(u,s=b(s,f,p,u,n[h+15],22,1236535329),f,p,n[h+1],5,-165796510),p=d(p,u,s,f,n[h+6],9,-1069501632),f=d(f,p,u,s,n[h+11],14,643717713),s=d(s,f,p,u,n[h+0],20,-373897302),u=d(u,s,f,p,n[h+5],5,-701558691),p=d(p,u,s,f,n[h+10],9,38016083),f=d(f,p,u,s,n[h+15],14,-660478335),s=d(s,f,p,u,n[h+4],20,-405537848),u=d(u,s,f,p,n[h+9],5,568446438),p=d(p,u,s,f,n[h+14],9,-1019803690),f=d(f,p,u,s,n[h+3],14,-187363961),s=d(s,f,p,u,n[h+8],20,1163531501),u=d(u,s,f,p,n[h+13],5,-1444681467),p=d(p,u,s,f,n[h+2],9,-51403784),f=d(f,p,u,s,n[h+7],14,1735328473),u=y(u,s=d(s,f,p,u,n[h+12],20,-1926607734),f,p,n[h+5],4,-378558),p=y(p,u,s,f,n[h+8],11,-2022574463),f=y(f,p,u,s,n[h+11],16,1839030562),s=y(s,f,p,u,n[h+14],23,-35309556),u=y(u,s,f,p,n[h+1],4,-1530992060),p=y(p,u,s,f,n[h+4],11,1272893353),f=y(f,p,u,s,n[h+7],16,-155497632),s=y(s,f,p,u,n[h+10],23,-1094730640),u=y(u,s,f,p,n[h+13],4,681279174),p=y(p,u,s,f,n[h+0],11,-358537222),f=y(f,p,u,s,n[h+3],16,-722521979),s=y(s,f,p,u,n[h+6],23,76029189),u=y(u,s,f,p,n[h+9],4,-640364487),p=y(p,u,s,f,n[h+12],11,-421815835),f=y(f,p,u,s,n[h+15],16,530742520),u=g(u,s=y(s,f,p,u,n[h+2],23,-995338651),f,p,n[h+0],6,-198630844),p=g(p,u,s,f,n[h+7],10,1126891415),f=g(f,p,u,s,n[h+14],15,-1416354905),s=g(s,f,p,u,n[h+5],21,-57434055),u=g(u,s,f,p,n[h+12],6,1700485571),p=g(p,u,s,f,n[h+3],10,-1894986606),f=g(f,p,u,s,n[h+10],15,-1051523),s=g(s,f,p,u,n[h+1],21,-2054922799),u=g(u,s,f,p,n[h+8],6,1873313359),p=g(p,u,s,f,n[h+15],10,-30611744),f=g(f,p,u,s,n[h+6],15,-1560198380),s=g(s,f,p,u,n[h+13],21,1309151649),u=g(u,s,f,p,n[h+4],6,-145523070),p=g(p,u,s,f,n[h+11],10,-1120210379),f=g(f,p,u,s,n[h+2],15,718787259),s=g(s,f,p,u,n[h+9],21,-343485551),u=u+m>>>0,s=s+v>>>0,f=f+_>>>0,p=p+j>>>0}return r.endian([u,s,f,p])})._ff=function(e,t,n,r,o,c,a){var l=e+(t&n|~t&r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._gg=function(e,t,n,r,o,c,a){var l=e+(t&r|n&~r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._hh=function(e,t,n,r,o,c,a){var l=e+(t^n^r)+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._ii=function(e,t,n,r,o,c,a){var l=e+(n^(t|~r))+(o>>>0)+a;return(l<<c|l>>>32-c)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(l(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.compose},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.url},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(24);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(25),o=n(26);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw c}}return n}}},function(e,t,n){var r=n(20);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],c=0;c<4;c++)8*r+6*c<=8*e.length?t.push(n.charAt(o>>>6*(3-c)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(e.charAt(r))>>>6-2*o);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),c=n(0),a=n(2),l=n(6),i=n.n(l),u=n(11),s=n(12);function f(e){if(e.status>=200&&e.status<300)return e;throw e}function p(e){return e.json?e.json():e.text()}var h=Object(c.createElement)("svg",{viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",role:"img","aria-hidden":"true",focusable:"false"},Object(c.createElement)("path",{width:"22",height:"22",d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"})),b=n(5),d=n.n(b),y=function(e,t,n){var r=!0;if(t&&t.id&&"value"in t){var o=t.value;["toggle","checkbox"].includes(n)&&(o=!0===o||"yes"===o||1===o),o=d.a.isArray(o)?o:[o],r=void 0!==e[t.id]&&o.includes(e[t.id])}return r},g=function(e,t){var n=e.controlType,r=!0;if(e.deps)if(d.a.isArray(e.deps))for(var o in e.deps){var c=e.deps[o];if(!(r=y(t,c,n)))break}else r=y(t,e.deps,n);return r},m=function(e,t){var n="",r=!1;if(void 0!==e.callback&&(jQuery&&e.callback in jQuery.fn?r=jQuery.fn[e.callback]:e.callback in window&&(r=window[e.callback])),"function"==typeof r)n=r(t,e);else{var c=e.attributes?Object.entries(e.attributes).map((function(e){var n=o()(e,2),r=n[0],c=n[1],a=g(c,t),l=t[r];if(a&&void 0!==l)return r+"="+(c.remove_quotes?l:'"'.concat(l,'"'))})):[],a=c.length?" "+c.join(" "):"";n="[".concat(e.shortcode_name).concat(a,"]")}return n},v=n(1),_=n(7),j=n(13),w=n.n(j),k=n(14),x=n.n(k),O=n(15),C=n.n(O),E=n(16),S=n.n(E),T=n(9),A=n.n(T),B=n(4);n(27);var N=function(e){C()(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=A()(t);if(n){var o=A()(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return S()(this,e)});function o(){var e;return w()(this,o),(e=r.apply(this,arguments)).state={html:"",shortcode:"",shortcodeHash:"",ajaxUpdated:!1,ajaxSuccess:!1,ajaxResponse:!1,loading:!1},e.ajaxTimeout=!1,e}return x()(o,[{key:"componentDidMount",value:function(){this.updateShortcode()}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.state,o=r.shortcode,c=r.shortcodeHash,a=r.ajaxSuccess,l=r.ajaxResponse,i=r.ajaxUpdated;Object(b.isEqual)(e,this.props)||this.updateShortcode(),this.props.blockArgs.do_shortcode&&i&&(a&&Object(B.doAction)("yith_plugin_fw_gutenberg_success_do_shortcode",o,c,l),Object(B.doAction)("yith_plugin_fw_gutenberg_after_do_shortcode",o,c,l),this.setState({ajaxUpdated:!1}))}},{key:"updateShortcode",value:function(){var e=this,t=this.props,n=t.attributes,r=t.blockArgs;this.setState({loading:!0,ajaxSuccess:!1,ajaxResponse:!1});var o=m(r,n),c=i()(o);r.do_shortcode?(this.ajaxTimeout&&clearTimeout(this.ajaxTimeout),Object(B.doAction)("yith_plugin_fw_gutenberg_before_do_shortcode",o,c),this.ajaxTimeout=setTimeout((function(){(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yithGutenberg.ajaxurl;return t=Object(s.addQueryArgs)(t,e),fetch(t).then(f).then(p)})({action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:o}).then((function(t){e.setState({loading:!1,html:t.html,shortcode:o,shortcodeHash:c,ajaxSuccess:!0,ajaxUpdated:!0,ajaxResponse:t})})).catch((function(e){console.log({error:e})}))}),300)):this.setState({loading:!1,html:o,shortcode:o,shortcodeHash:c})}},{key:"render",value:function(){var e=this.state,t=e.html,n=e.loading,r=e.shortcode,o=e.shortcodeHash,a=this.props.blockArgs,l=a.do_shortcode,i=a.title,u=a.empty_message,s="block-editor-yith-plugin-fw-shortcode-block",f=[s],p=l?"html":"shortcode",b=t,d="";l&&!t&&(p="empty-html",b=r,u&&(d=u));var y=["shortcode","empty-html"].includes(p),g="empty-html"!==p,m=!!d;return f.push("".concat(s,"--").concat(p)),f.push("".concat(s,m?"--has-message":"--no-message")),f.push("yith_block_".concat(o)),Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:f.join(" ")},n?Object(c.createElement)("div",{className:"".concat(s,"__spinner-wrap")},Object(c.createElement)(v.Spinner,null)):"",y&&Object(c.createElement)("div",{className:"".concat(s,"__title components-placeholder__label")},h,i),m&&Object(c.createElement)(c.RawHTML,{className:"".concat(s,"__message")},d),g&&Object(c.createElement)(c.RawHTML,{className:"".concat(s,"__content")},b)))}}]),o}(a.Component),R=n(8);function P(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,a=e.help,l=e.disableAlpha,i=Object(R.useInstanceId)(P),u="inspector-yith-color-picker-control-".concat(i);return Object(c.createElement)(v.BaseControl,{id:u,label:n,className:"block-editor-yith-color-control ".concat(t),help:a},Object(c.createElement)(v.ColorPicker,{color:o,disableAlpha:l,onChangeComplete:r}))}function M(e){var t=e.label,n=e.colorValue;return Object(c.createElement)(c.Fragment,null,t,!!n&&Object(c.createElement)(v.ColorIndicator,{colorValue:n}))}function I(e){var t=e.className,n=e.label,r=e.onChange,o=e.value,a=e.help,l=e.palette,i=e.clearable;l=l||Object(_.__experimentalUseEditorFeature)("color.palette");var u=Object(R.useInstanceId)(I),s="inspector-yith-color-palette-control-".concat(u);return Object(c.createElement)(v.BaseControl,{id:s,className:"block-editor-yith-color-palette-control ".concat(t),help:a},Object(c.createElement)("fieldset",null,Object(c.createElement)("legend",null,Object(c.createElement)("div",{className:"block-editor-yith-color-palette-control__color-indicator"},Object(c.createElement)(v.BaseControl.VisualLabel,null,Object(c.createElement)(M,{colorValue:o,label:n})))),Object(c.createElement)(v.ColorPalette,{value:o,onChange:r,colors:l,clearable:i})))}n(28);for(var H=function(e,t){return function(n){var r=n.attributes,a=(n.className,n.setAttributes),l=function(e,t,n){["colorpicker","color"].includes(n)&&(e=e.color.getAlpha()<1?e.color.toRgbString():e.color.toHexString());var r={};r[t]=e,a(r)};return Object(c.createElement)(c.Fragment,null,!!t.attributes&&Object(c.createElement)(_.InspectorControls,null,Object(c.createElement)(v.PanelBody,null,Object.entries(t.attributes).map((function(t){var n=o()(t,2),a=function(t,n){var o=n.controlType,a=r[t],i=function(e,t){var n="";return e.helps&&e.helps.checked&&e.helps.unchecked?n=t?e.helps.checked:e.helps.unchecked:e.help&&(n=e.help),n}(n,a),u="".concat(e,"__").concat(t,"-field-wrapper"),s=g(n,r);n.wrapper_class&&(u+=" "+n.wrapper_class);var f=!1;if(s)switch(o){case"select":f=Object(c.createElement)(v.SelectControl,{className:u,key:t,value:a,label:n.label,options:n.options,selected:a,help:i,multiple:!!n.multiple,onChange:function(e){l(e,t,o)}});break;case"text":f=Object(c.createElement)(v.TextControl,{className:u,key:t,value:a,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"textarea":f=Object(c.createElement)(v.TextareaControl,{className:u,key:t,value:a,label:n.label,help:i,onChange:function(e){l(e,t,o)}});break;case"toggle":f=Object(c.createElement)(v.ToggleControl,{className:u,key:t,value:a,label:n.label,help:i,checked:a,onChange:function(e){l(e,t,o)}});break;case"checkbox":f=Object(c.createElement)(v.CheckboxControl,{className:u,key:t,value:a,label:n.label,help:i,checked:a,onChange:function(e){l(e,t,o)}});break;case"number":case"range":f=Object(c.createElement)(v.RangeControl,{className:u,key:t,value:a,label:n.label,help:i,min:n.min,max:n.max,onChange:function(e){l(e,t,o)}});break;case"color":case"colorpicker":f=Object(c.createElement)(P,{className:u,key:t,label:n.label,help:i,value:a,disableAlpha:n.disableAlpha,onChange:function(e){l(e,t,o)}});break;case"color-palette":f=Object(c.createElement)(I,{className:u,key:t,label:n.label,help:i,value:a,clearable:n.clearable||!1,onChange:function(e){l(e,t,o)}});break;case"radio":f=Object(c.createElement)(v.RadioControl,{key:t,value:a,label:n.label,options:n.options,selected:a,checked:a,help:i,onChange:function(e){l(e,t,o)}});break;default:f=!1}return f}(n[0],n[1]);if(a)return a})))),Object(c.createElement)(N,{attributes:r,blockArgs:t}))}},U=function(){var e=L[Q];Object(B.addAction)(e.key,"yith-plugin-fw/jquery-events",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"jQuery"in window&&(e.delay?setTimeout((function(){jQuery(document).trigger(e.key,Object.values(n))}),e.delay):jQuery(document).trigger(e.key,Object.values(n)))}))},Q=0,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}];Q<L.length;Q++)U();for(var F=function(){var e=o()(J[D],2),t=e[0],n=e[1];Object(u.registerBlockType)("yith/"+t,{title:n.title,description:n.description,category:n.category,attributes:n.attributes,icon:void 0!==n.icon?n.icon:h,keywords:n.keywords,edit:H(t,n),save:function(e){var t=e.attributes;return m(n,t)},deprecated:[{attributes:n.attributes,save:function(e){var t=e.attributes,r=m(n,t),o='<span class="yith_block_'+i()(r)+'">'+r+"</span>";return Object(c.createElement)(c.RawHTML,null,o)}}]})},D=0,J=Object.entries(yithGutenbergBlocks);D<J.length;D++)F()}]);
|
plugin-fw/includes/builders/elementor/class-yith-elementor-widget.php
CHANGED
@@ -401,15 +401,31 @@ if ( ! class_exists( 'YITH_Elementor_Widget' ) ) {
|
|
401 |
$option = $this->override_elementor_specific_data( $option );
|
402 |
$type = isset( $option['type'] ) ? $option['type'] : false;
|
403 |
|
404 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
|
406 |
-
$
|
407 |
-
|
408 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
}
|
410 |
-
|
411 |
-
$option['deps']['id'] => $value,
|
412 |
-
);
|
413 |
unset( $option['deps'] );
|
414 |
}
|
415 |
|
401 |
$option = $this->override_elementor_specific_data( $option );
|
402 |
$type = isset( $option['type'] ) ? $option['type'] : false;
|
403 |
|
404 |
+
if ( ! empty( $option['deps'] ) && ! isset( $option['condition'] ) ) {
|
405 |
+
if ( isset( $option['deps']['id'], $option['deps']['value'] ) ) {
|
406 |
+
$deps = array(
|
407 |
+
array(
|
408 |
+
'id' => $option['deps']['id'],
|
409 |
+
'value' => $option['deps']['value'],
|
410 |
+
),
|
411 |
+
);
|
412 |
+
} else {
|
413 |
+
$deps = $option['deps'];
|
414 |
+
}
|
415 |
|
416 |
+
$option['condition'] = array();
|
417 |
+
|
418 |
+
foreach ( $deps as $dep ) {
|
419 |
+
if ( isset( $dep['id'], $dep['value'] ) ) {
|
420 |
+
$dep_value = $dep['value'];
|
421 |
+
$dep_id = $dep['id'];
|
422 |
+
if ( in_array( $type, array( 'toggle', 'onoff', 'checkbox' ), true ) ) {
|
423 |
+
$dep_value = yith_plugin_fw_is_true( $dep_value ) ? 'yes' : 'no';
|
424 |
+
}
|
425 |
+
$option['condition'][ $dep_id ] = $dep_value;
|
426 |
+
}
|
427 |
}
|
428 |
+
|
|
|
|
|
429 |
unset( $option['deps'] );
|
430 |
}
|
431 |
|
plugin-fw/includes/builders/gutenberg/src/common/actions-to-jquery-events.js
CHANGED
@@ -8,18 +8,24 @@
|
|
8 |
import { addAction } from '@wordpress/hooks';
|
9 |
|
10 |
const actions = [
|
11 |
-
'yith_plugin_fw_gutenberg_before_do_shortcode',
|
12 |
-
'yith_plugin_fw_gutenberg_success_do_shortcode',
|
13 |
-
'yith_plugin_fw_gutenberg_after_do_shortcode'
|
14 |
];
|
15 |
|
16 |
for ( const action of actions ) {
|
17 |
addAction(
|
18 |
-
action,
|
19 |
'yith-plugin-fw/jquery-events',
|
20 |
( ...params ) => {
|
21 |
if ( 'jQuery' in window ) {
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
}
|
25 |
);
|
8 |
import { addAction } from '@wordpress/hooks';
|
9 |
|
10 |
const actions = [
|
11 |
+
{ key: 'yith_plugin_fw_gutenberg_before_do_shortcode', delay: 0 },
|
12 |
+
{ key: 'yith_plugin_fw_gutenberg_success_do_shortcode', delay: 200 },
|
13 |
+
{ key: 'yith_plugin_fw_gutenberg_after_do_shortcode', delay: 200 }
|
14 |
];
|
15 |
|
16 |
for ( const action of actions ) {
|
17 |
addAction(
|
18 |
+
action.key,
|
19 |
'yith-plugin-fw/jquery-events',
|
20 |
( ...params ) => {
|
21 |
if ( 'jQuery' in window ) {
|
22 |
+
if ( action.delay ) {
|
23 |
+
setTimeout( () => {
|
24 |
+
jQuery( document ).trigger( action.key, Object.values( params ) );
|
25 |
+
}, action.delay );
|
26 |
+
} else {
|
27 |
+
jQuery( document ).trigger( action.key, Object.values( params ) );
|
28 |
+
}
|
29 |
}
|
30 |
}
|
31 |
);
|
plugin-fw/includes/builders/gutenberg/src/common/checkForDeps.js
CHANGED
@@ -5,16 +5,41 @@
|
|
5 |
* @param {object} attributes The attributes.
|
6 |
* @returns {boolean}
|
7 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
export const checkForDeps = ( attributeArgs, attributes ) => {
|
9 |
const { controlType } = attributeArgs;
|
10 |
let show = true;
|
11 |
|
12 |
-
if ( attributeArgs.deps
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
}
|
17 |
-
show = typeof attributes[ attributeArgs.deps.id ] !== 'undefined' && depsValue === attributes[ attributeArgs.deps.id ];
|
18 |
}
|
19 |
|
20 |
return show;
|
5 |
* @param {object} attributes The attributes.
|
6 |
* @returns {boolean}
|
7 |
*/
|
8 |
+
|
9 |
+
import _ from 'lodash';
|
10 |
+
|
11 |
+
const checkForSingleDep = ( attributes, dep, controlType ) => {
|
12 |
+
let show = true;
|
13 |
+
|
14 |
+
if ( dep && dep.id && 'value' in dep ) {
|
15 |
+
let depValue = dep.value;
|
16 |
+
if ( ['toggle', 'checkbox'].includes( controlType ) ) {
|
17 |
+
depValue = true === depValue || 'yes' === depValue || 1 === depValue;
|
18 |
+
}
|
19 |
+
depValue = _.isArray( depValue ) ? depValue : [depValue];
|
20 |
+
|
21 |
+
show = typeof attributes[ dep.id ] !== 'undefined' && depValue.includes( attributes[ dep.id ] );
|
22 |
+
}
|
23 |
+
|
24 |
+
return show;
|
25 |
+
};
|
26 |
+
|
27 |
export const checkForDeps = ( attributeArgs, attributes ) => {
|
28 |
const { controlType } = attributeArgs;
|
29 |
let show = true;
|
30 |
|
31 |
+
if ( attributeArgs.deps ) {
|
32 |
+
if ( _.isArray( attributeArgs.deps ) ) {
|
33 |
+
for ( let i in attributeArgs.deps ) {
|
34 |
+
const singleDep = attributeArgs.deps[ i ];
|
35 |
+
show = checkForSingleDep( attributes, singleDep, controlType );
|
36 |
+
if ( !show ) {
|
37 |
+
break;
|
38 |
+
}
|
39 |
+
}
|
40 |
+
} else {
|
41 |
+
show = checkForSingleDep( attributes, attributeArgs.deps, controlType );
|
42 |
}
|
|
|
43 |
}
|
44 |
|
45 |
return show;
|
plugin-fw/includes/class-yit-assets.php
CHANGED
@@ -55,7 +55,7 @@ if ( ! class_exists( 'YIT_Assets' ) ) {
|
|
55 |
* Register common scripts
|
56 |
*/
|
57 |
public function register_common_scripts() {
|
58 |
-
wp_register_style( 'yith-plugin-fw-icon-font', YIT_CORE_PLUGIN_URL . '/assets/css/yith-icon
|
59 |
wp_register_style( 'yith-plugin-fw-elementor', YIT_CORE_PLUGIN_URL . '/assets/css/elementor.css', array(), $this->version );
|
60 |
}
|
61 |
|
55 |
* Register common scripts
|
56 |
*/
|
57 |
public function register_common_scripts() {
|
58 |
+
wp_register_style( 'yith-plugin-fw-icon-font', YIT_CORE_PLUGIN_URL . '/assets/css/yith-icon.css', array(), $this->version );
|
59 |
wp_register_style( 'yith-plugin-fw-elementor', YIT_CORE_PLUGIN_URL . '/assets/css/elementor.css', array(), $this->version );
|
60 |
}
|
61 |
|
plugin-fw/includes/class-yit-plugin-panel.php
CHANGED
@@ -1343,7 +1343,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
1343 |
esc_html__( 'We need your support', 'yith-plugin-fw' ),
|
1344 |
esc_html__( 'to keep updating and improving the plugin. Please,', 'yith-plugin-fw' ),
|
1345 |
esc_url( $rate_link ),
|
1346 |
-
esc_html__( 'help us by leaving a
|
1347 |
esc_html__( ':) Thanks!', 'yith-plugin-fw' )
|
1348 |
);
|
1349 |
?>
|
1343 |
esc_html__( 'We need your support', 'yith-plugin-fw' ),
|
1344 |
esc_html__( 'to keep updating and improving the plugin. Please,', 'yith-plugin-fw' ),
|
1345 |
esc_url( $rate_link ),
|
1346 |
+
esc_html__( 'help us by leaving a good review', 'yith-plugin-fw' ),
|
1347 |
esc_html__( ':) Thanks!', 'yith-plugin-fw' )
|
1348 |
);
|
1349 |
?>
|
plugin-fw/init.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 3.6.
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
-
* @version 3.6.
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 3.6.6
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author YITH
|
10 |
+
* @version 3.6.6
|
11 |
* @package YITH\PluginFramework
|
12 |
*/
|
13 |
|
plugin-fw/languages/yith-plugin-fw-el.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-el.po
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
"PO-Revision-Date: 2021-02-11 18:07:46+0000\n"
|
9 |
"Language: el_GR\n"
|
10 |
"MIME-Version: 1.0\n"
|
@@ -133,7 +133,8 @@ msgstr ""
|
|
133 |
"για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
|
134 |
|
135 |
#: includes/class-yit-plugin-panel.php:1346
|
136 |
-
|
|
|
137 |
msgstr "βοηθήστε μας αφήνοντας μια βαθμολογία πέντε αστέρων"
|
138 |
|
139 |
#: includes/class-yit-plugin-panel.php:1347
|
@@ -647,6 +648,16 @@ msgctxt "Privacy Policy Content"
|
|
647 |
msgid "Payments"
|
648 |
msgstr "Πληρωμές"
|
649 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
650 |
#: templates/fields/dimensions.php:13
|
651 |
msgctxt "Position in the \"Dimensions\" field"
|
652 |
msgid "Top"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-03-30 07:22:53+00:00\n"
|
8 |
"PO-Revision-Date: 2021-02-11 18:07:46+0000\n"
|
9 |
"Language: el_GR\n"
|
10 |
"MIME-Version: 1.0\n"
|
133 |
"για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
|
134 |
|
135 |
#: includes/class-yit-plugin-panel.php:1346
|
136 |
+
#, fuzzy
|
137 |
+
msgid "help us by leaving a good review"
|
138 |
msgstr "βοηθήστε μας αφήνοντας μια βαθμολογία πέντε αστέρων"
|
139 |
|
140 |
#: includes/class-yit-plugin-panel.php:1347
|
648 |
msgid "Payments"
|
649 |
msgstr "Πληρωμές"
|
650 |
|
651 |
+
#: templates/fields/copy-to-clipboard.php:41
|
652 |
+
msgctxt "Copy-to-clipboard message"
|
653 |
+
msgid "Copied!"
|
654 |
+
msgstr ""
|
655 |
+
|
656 |
+
#: templates/fields/copy-to-clipboard.php:45
|
657 |
+
msgctxt "Copy-to-clipboard button text"
|
658 |
+
msgid "Copy"
|
659 |
+
msgstr ""
|
660 |
+
|
661 |
#: templates/fields/dimensions.php:13
|
662 |
msgctxt "Position in the \"Dimensions\" field"
|
663 |
msgid "Top"
|
plugin-fw/languages/yith-plugin-fw-es_ES.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-es_ES.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-
|
9 |
"Language: es\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -133,7 +133,8 @@ msgid "to keep updating and improving the plugin. Please,"
|
|
133 |
msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor,"
|
134 |
|
135 |
#: includes/class-yit-plugin-panel.php:1346
|
136 |
-
|
|
|
137 |
msgstr "ayúdanos con una valoración de cinco estrellas"
|
138 |
|
139 |
#: includes/class-yit-plugin-panel.php:1347
|
@@ -587,7 +588,7 @@ msgstr "YITH"
|
|
587 |
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
588 |
msgctxt "Elementor Widget - section title"
|
589 |
msgid "%s - Options"
|
590 |
-
msgstr ""
|
591 |
|
592 |
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
593 |
msgctxt "[gutenberg]: Category Name"
|
@@ -651,6 +652,16 @@ msgctxt "Privacy Policy Content"
|
|
651 |
msgid "Payments"
|
652 |
msgstr "Pagos"
|
653 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
654 |
#: templates/fields/dimensions.php:13
|
655 |
msgctxt "Position in the \"Dimensions\" field"
|
656 |
msgid "Top"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-03-30 07:22:53+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-03-15 15:43:52+0000\n"
|
9 |
"Language: es\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
133 |
msgstr "para que podamos seguir actualizando y mejorando el plugin. Por favor,"
|
134 |
|
135 |
#: includes/class-yit-plugin-panel.php:1346
|
136 |
+
#, fuzzy
|
137 |
+
msgid "help us by leaving a good review"
|
138 |
msgstr "ayúdanos con una valoración de cinco estrellas"
|
139 |
|
140 |
#: includes/class-yit-plugin-panel.php:1347
|
588 |
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
589 |
msgctxt "Elementor Widget - section title"
|
590 |
msgid "%s - Options"
|
591 |
+
msgstr "%s - Opciones"
|
592 |
|
593 |
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
594 |
msgctxt "[gutenberg]: Category Name"
|
652 |
msgid "Payments"
|
653 |
msgstr "Pagos"
|
654 |
|
655 |
+
#: templates/fields/copy-to-clipboard.php:41
|
656 |
+
msgctxt "Copy-to-clipboard message"
|
657 |
+
msgid "Copied!"
|
658 |
+
msgstr "¡Copiado!"
|
659 |
+
|
660 |
+
#: templates/fields/copy-to-clipboard.php:45
|
661 |
+
msgctxt "Copy-to-clipboard button text"
|
662 |
+
msgid "Copy"
|
663 |
+
msgstr "Copiar"
|
664 |
+
|
665 |
#: templates/fields/dimensions.php:13
|
666 |
msgctxt "Position in the \"Dimensions\" field"
|
667 |
msgid "Top"
|
plugin-fw/languages/yith-plugin-fw-it_IT.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-it_IT.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-
|
9 |
"Language: it\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -131,7 +131,8 @@ msgid "to keep updating and improving the plugin. Please,"
|
|
131 |
msgstr "per poter continuare ad aggiornare e migliorare il plugin."
|
132 |
|
133 |
#: includes/class-yit-plugin-panel.php:1346
|
134 |
-
|
|
|
135 |
msgstr "Puoi darci una mano lasciando una recensione a 5 stelle"
|
136 |
|
137 |
#: includes/class-yit-plugin-panel.php:1347
|
@@ -587,7 +588,7 @@ msgstr "YITH"
|
|
587 |
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
588 |
msgctxt "Elementor Widget - section title"
|
589 |
msgid "%s - Options"
|
590 |
-
msgstr ""
|
591 |
|
592 |
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
593 |
msgctxt "[gutenberg]: Category Name"
|
@@ -652,6 +653,16 @@ msgctxt "Privacy Policy Content"
|
|
652 |
msgid "Payments"
|
653 |
msgstr "Pagamenti"
|
654 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
655 |
#: templates/fields/dimensions.php:13
|
656 |
msgctxt "Position in the \"Dimensions\" field"
|
657 |
msgid "Top"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-03-30 07:22:53+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-03-01 21:20:50+0000\n"
|
9 |
"Language: it\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
131 |
msgstr "per poter continuare ad aggiornare e migliorare il plugin."
|
132 |
|
133 |
#: includes/class-yit-plugin-panel.php:1346
|
134 |
+
#, fuzzy
|
135 |
+
msgid "help us by leaving a good review"
|
136 |
msgstr "Puoi darci una mano lasciando una recensione a 5 stelle"
|
137 |
|
138 |
#: includes/class-yit-plugin-panel.php:1347
|
588 |
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
589 |
msgctxt "Elementor Widget - section title"
|
590 |
msgid "%s - Options"
|
591 |
+
msgstr "%s - Opzioni"
|
592 |
|
593 |
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
594 |
msgctxt "[gutenberg]: Category Name"
|
653 |
msgid "Payments"
|
654 |
msgstr "Pagamenti"
|
655 |
|
656 |
+
#: templates/fields/copy-to-clipboard.php:41
|
657 |
+
msgctxt "Copy-to-clipboard message"
|
658 |
+
msgid "Copied!"
|
659 |
+
msgstr ""
|
660 |
+
|
661 |
+
#: templates/fields/copy-to-clipboard.php:45
|
662 |
+
msgctxt "Copy-to-clipboard button text"
|
663 |
+
msgid "Copy"
|
664 |
+
msgstr ""
|
665 |
+
|
666 |
#: templates/fields/dimensions.php:13
|
667 |
msgctxt "Position in the \"Dimensions\" field"
|
668 |
msgid "Top"
|
plugin-fw/languages/yith-plugin-fw-nl_NL.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-nl_NL.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
-
"PO-Revision-Date: 2021-02
|
9 |
"Language: nl\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -130,7 +130,8 @@ msgid "to keep updating and improving the plugin. Please,"
|
|
130 |
msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.,"
|
131 |
|
132 |
#: includes/class-yit-plugin-panel.php:1346
|
133 |
-
|
|
|
134 |
msgstr "help ons door een 5-sterren waardering achter te laten"
|
135 |
|
136 |
#: includes/class-yit-plugin-panel.php:1347
|
@@ -146,6 +147,9 @@ msgid ""
|
|
146 |
"From now on, you can find all plugin options in YITH menu. Plugin "
|
147 |
"customization settings will be available as a new entry in YITH menu."
|
148 |
msgstr ""
|
|
|
|
|
|
|
149 |
|
150 |
#. translators: 1. YITH site link; 2. WordPress site link.
|
151 |
#: includes/class-yit-pointers.php:84 includes/class-yit-pointers.php:100
|
@@ -164,6 +168,11 @@ msgid ""
|
|
164 |
"WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.) will be moved from "
|
165 |
"previous location to YITH menu."
|
166 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
167 |
|
168 |
#: includes/class-yith-dashboard.php:35
|
169 |
msgid "YITH Latest Updates"
|
@@ -576,7 +585,7 @@ msgstr "YITH"
|
|
576 |
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
577 |
msgctxt "Elementor Widget - section title"
|
578 |
msgid "%s - Options"
|
579 |
-
msgstr ""
|
580 |
|
581 |
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
582 |
msgctxt "[gutenberg]: Category Name"
|
@@ -640,6 +649,16 @@ msgctxt "Privacy Policy Content"
|
|
640 |
msgid "Payments"
|
641 |
msgstr "Betalingen"
|
642 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
643 |
#: templates/fields/dimensions.php:13
|
644 |
msgctxt "Position in the \"Dimensions\" field"
|
645 |
msgid "Top"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Framework\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-03-30 07:22:53+00:00\n"
|
8 |
+
"PO-Revision-Date: 2021-03-02 10:41:26+0000\n"
|
9 |
"Language: nl\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
130 |
msgstr "om de plugin te blijven bijwerken en verbeteren. A.u.b.,"
|
131 |
|
132 |
#: includes/class-yit-plugin-panel.php:1346
|
133 |
+
#, fuzzy
|
134 |
+
msgid "help us by leaving a good review"
|
135 |
msgstr "help ons door een 5-sterren waardering achter te laten"
|
136 |
|
137 |
#: includes/class-yit-plugin-panel.php:1347
|
147 |
"From now on, you can find all plugin options in YITH menu. Plugin "
|
148 |
"customization settings will be available as a new entry in YITH menu."
|
149 |
msgstr ""
|
150 |
+
"Vanaf nu kun je alle plugin opties vinden in het YITH Plugins menu. Plugin "
|
151 |
+
"aanpassingen instellingen zullen beschikbaar zijn als nieuwe toegang in het "
|
152 |
+
"YITH menu."
|
153 |
|
154 |
#. translators: 1. YITH site link; 2. WordPress site link.
|
155 |
#: includes/class-yit-pointers.php:84 includes/class-yit-pointers.php:100
|
168 |
"WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.) will be moved from "
|
169 |
"previous location to YITH menu."
|
170 |
msgstr ""
|
171 |
+
"Vanaf nu kun je het optiepaneel van YITH plugins vinden in het YITH menu. "
|
172 |
+
"Elke keer dat een van onze plugins wordt toegevoegd, wordt er een nieuw item "
|
173 |
+
"aan dit menu toegevoegd. Bijvoorbeeld na de update worden plugin opties "
|
174 |
+
"(zoals voor YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, enz.) "
|
175 |
+
"verplaatst van de vorige locatie naar het YITH menu."
|
176 |
|
177 |
#: includes/class-yith-dashboard.php:35
|
178 |
msgid "YITH Latest Updates"
|
585 |
#: includes/builders/elementor/class-yith-elementor-widget.php:252
|
586 |
msgctxt "Elementor Widget - section title"
|
587 |
msgid "%s - Options"
|
588 |
+
msgstr "%s - Opties"
|
589 |
|
590 |
#: includes/builders/gutenberg/class-yith-gutenberg.php:147
|
591 |
msgctxt "[gutenberg]: Category Name"
|
649 |
msgid "Payments"
|
650 |
msgstr "Betalingen"
|
651 |
|
652 |
+
#: templates/fields/copy-to-clipboard.php:41
|
653 |
+
msgctxt "Copy-to-clipboard message"
|
654 |
+
msgid "Copied!"
|
655 |
+
msgstr ""
|
656 |
+
|
657 |
+
#: templates/fields/copy-to-clipboard.php:45
|
658 |
+
msgctxt "Copy-to-clipboard button text"
|
659 |
+
msgid "Copy"
|
660 |
+
msgstr ""
|
661 |
+
|
662 |
#: templates/fields/dimensions.php:13
|
663 |
msgctxt "Position in the \"Dimensions\" field"
|
664 |
msgid "Top"
|
plugin-fw/languages/yith-plugin-fw.pot
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2021-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -138,7 +138,7 @@ msgid "to keep updating and improving the plugin. Please,"
|
|
138 |
msgstr ""
|
139 |
|
140 |
#: includes/class-yit-plugin-panel.php:1346
|
141 |
-
msgid "help us by leaving a
|
142 |
msgstr ""
|
143 |
|
144 |
#: includes/class-yit-plugin-panel.php:1347
|
@@ -625,6 +625,16 @@ msgctxt "Privacy Policy Content"
|
|
625 |
msgid "Payments"
|
626 |
msgstr ""
|
627 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
628 |
#: templates/fields/dimensions.php:13
|
629 |
msgctxt "Position in the \"Dimensions\" field"
|
630 |
msgid "Top"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2021-03-30 07:22:53+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
138 |
msgstr ""
|
139 |
|
140 |
#: includes/class-yit-plugin-panel.php:1346
|
141 |
+
msgid "help us by leaving a good review"
|
142 |
msgstr ""
|
143 |
|
144 |
#: includes/class-yit-plugin-panel.php:1347
|
625 |
msgid "Payments"
|
626 |
msgstr ""
|
627 |
|
628 |
+
#: templates/fields/copy-to-clipboard.php:41
|
629 |
+
msgctxt "Copy-to-clipboard message"
|
630 |
+
msgid "Copied!"
|
631 |
+
msgstr ""
|
632 |
+
|
633 |
+
#: templates/fields/copy-to-clipboard.php:45
|
634 |
+
msgctxt "Copy-to-clipboard button text"
|
635 |
+
msgid "Copy"
|
636 |
+
msgstr ""
|
637 |
+
|
638 |
#: templates/fields/dimensions.php:13
|
639 |
msgctxt "Position in the \"Dimensions\" field"
|
640 |
msgid "Top"
|
plugin-fw/templates/fields/copy-to-clipboard.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The Template for displaying the 'copy-to-clipboard'
|
4 |
+
*
|
5 |
+
* @var array $field The field.
|
6 |
+
*
|
7 |
+
* @package YITH\PluginFramework\Templates\Fields\Resources
|
8 |
+
* @since 3.6.2
|
9 |
+
*/
|
10 |
+
|
11 |
+
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
|
12 |
+
|
13 |
+
list ( $field_id, $class, $name, $value, $force_value, $readonly, $std, $custom_attributes, $data ) = yith_plugin_fw_extract( $field, 'id', 'class', 'name', 'value', 'force_value', 'readonly', 'std', 'custom_attributes', 'data' );
|
14 |
+
|
15 |
+
$readonly = isset( $readonly ) ? ! ! $readonly : true;
|
16 |
+
$wrapper_id = ! ! $field_id ? $field_id . '-wrapper' : '';
|
17 |
+
$wrapper_class = 'yith-plugin-fw-copy-to-clipboard';
|
18 |
+
if ( $readonly ) {
|
19 |
+
$wrapper_class .= ' yith-plugin-fw-copy-to-clipboard--readonly';
|
20 |
+
}
|
21 |
+
if ( isset( $force_value ) ) {
|
22 |
+
$value = $force_value;
|
23 |
+
}
|
24 |
+
?>
|
25 |
+
<div id="<?php echo esc_attr( $wrapper_id ); ?>" class="<?php echo esc_attr( $wrapper_class ); ?>">
|
26 |
+
|
27 |
+
<div class="yith-plugin-fw-copy-to-clipboard__field-wrap">
|
28 |
+
<input type="text"
|
29 |
+
id="<?php echo esc_attr( $field_id ); ?>"
|
30 |
+
name="<?php echo esc_attr( $name ); ?>"
|
31 |
+
class="yith-plugin-fw-copy-to-clipboard__field <?php echo esc_attr( $class ); ?>"
|
32 |
+
value="<?php echo esc_attr( $value ); ?>"
|
33 |
+
|
34 |
+
<?php if ( $readonly ) : ?>
|
35 |
+
readonly
|
36 |
+
<?php endif; ?>
|
37 |
+
|
38 |
+
<?php echo $custom_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
39 |
+
<?php echo isset( $data ) ? yith_plugin_fw_html_data_to_string( $data ) : ''; ?>
|
40 |
+
>
|
41 |
+
<div class="yith-plugin-fw-copy-to-clipboard__tip"><?php echo esc_html_x( 'Copied!', 'Copy-to-clipboard message', 'yith-plugin-fw' ); ?></div>
|
42 |
+
</div>
|
43 |
+
<div class="yith-plugin-fw-copy-to-clipboard__copy">
|
44 |
+
<i class="yith-plugin-fw-copy-to-clipboard__copy__icon yith-icon yith-icon-copy"></i>
|
45 |
+
<span class="yith-plugin-fw-copy-to-clipboard__copy__text"><?php echo esc_html_x( 'Copy', 'Copy-to-clipboard button text', 'yith-plugin-fw' ); ?></span>
|
46 |
+
</div>
|
47 |
+
</div>
|
plugin-fw/templates/fields/inline-fields.php
CHANGED
@@ -12,7 +12,7 @@ list ( $field_id, $name, $class, $fields, $value ) = yith_plugin_fw_extract( $fi
|
|
12 |
|
13 |
$class = ! ! $class ? $class : '';
|
14 |
$value = maybe_unserialize( $value );
|
15 |
-
$allowed_types = array( 'select', 'select-buttons', 'number', 'text', 'slider', 'hidden', 'html' );
|
16 |
$default_args = array( 'type' => 'select' );
|
17 |
?>
|
18 |
<?php if ( ! empty( $fields ) && is_array( $fields ) ) : ?>
|
12 |
|
13 |
$class = ! ! $class ? $class : '';
|
14 |
$value = maybe_unserialize( $value );
|
15 |
+
$allowed_types = array( 'select', 'select-buttons', 'number', 'text', 'slider', 'hidden', 'html', 'datepicker' );
|
16 |
$default_args = array( 'type' => 'select' );
|
17 |
?>
|
18 |
<?php if ( ! empty( $fields ) && is_array( $fields ) ) : ?>
|
plugin-fw/yit-functions.php
CHANGED
@@ -1634,3 +1634,28 @@ if ( ! function_exists( 'yith_plugin_fw_register_elementor_widgets' ) ) {
|
|
1634 |
}
|
1635 |
}
|
1636 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1634 |
}
|
1635 |
}
|
1636 |
}
|
1637 |
+
|
1638 |
+
if ( ! function_exists( 'yith_plugin_fw_copy_to_clipboard' ) ) {
|
1639 |
+
/**
|
1640 |
+
* Print a field with a button to copy its content to clipboard
|
1641 |
+
*
|
1642 |
+
* @param string $value The text to be shown.
|
1643 |
+
* @param array $field The field attributes.
|
1644 |
+
*
|
1645 |
+
* @since 3.6.2
|
1646 |
+
*/
|
1647 |
+
function yith_plugin_fw_copy_to_clipboard( $value, $field = array() ) {
|
1648 |
+
$defaults = array(
|
1649 |
+
'id' => '',
|
1650 |
+
'value' => $value,
|
1651 |
+
);
|
1652 |
+
$field = wp_parse_args( $field, $defaults );
|
1653 |
+
$field['type'] = 'copy-to-clipboard';
|
1654 |
+
|
1655 |
+
// Enqueue style and script if not enqueued.
|
1656 |
+
wp_enqueue_style( 'yith-plugin-fw-fields' );
|
1657 |
+
wp_enqueue_script( 'yith-plugin-fw-fields' );
|
1658 |
+
|
1659 |
+
yith_plugin_fw_get_field( $field, true, false );
|
1660 |
+
}
|
1661 |
+
}
|
plugin-options/gutenberg/blocks.php
CHANGED
@@ -6,6 +6,10 @@
|
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @author YITH
|
11 |
+
* @package YITH WooCommerce Ajax Search
|
12 |
+
* @version 1.0.0
|
13 |
*/
|
14 |
|
15 |
if ( ! defined( 'ABSPATH' ) ) {
|
plugin-options/premium-options.php
CHANGED
@@ -6,6 +6,10 @@
|
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @author YITH
|
11 |
+
* @package YITH WooCommerce Ajax Search
|
12 |
+
* @version 1.0.0
|
13 |
*/
|
14 |
|
15 |
if ( ! defined( 'ABSPATH' ) ) {
|
plugin-options/settings-options.php
CHANGED
@@ -6,6 +6,10 @@
|
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) {
|
6 |
* that is bundled with this package in the file LICENSE.txt.
|
7 |
* It is also available through the world-wide-web at this URL:
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*
|
10 |
+
* @author YITH
|
11 |
+
* @package YITH WooCommerce Ajax Search
|
12 |
+
* @version 1.0.0
|
13 |
*/
|
14 |
|
15 |
if ( ! defined( 'ABSPATH' ) ) {
|
templates/admin/premium.php
CHANGED
@@ -1,4 +1,13 @@
|
|
1 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<style>
|
3 |
.section{
|
4 |
margin-left: -20px;
|
@@ -253,9 +262,11 @@
|
|
253 |
<div class="section section-cta section-odd">
|
254 |
<div class="landing-container upgrade">
|
255 |
<div class="premium-cta">
|
|
|
256 |
<p><?php echo sprintf( wp_kses_post( __( 'Upgrade to the %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Ajax Search%2$s to benefit from all features!', 'yith-woocommerce-ajax-search' ) ), '<span class="highlight">', '</span>', '<br/>' ); ?></p>
|
257 |
<a href="<?php echo esc_url( $yith_wcas->obj->get_premium_landing_uri() ); ?>" target="_blank" class="premium-cta-button button btn">
|
258 |
-
|
|
|
259 |
</a>
|
260 |
</div>
|
261 |
</div>
|
@@ -270,9 +281,13 @@
|
|
270 |
<div class="col-2">
|
271 |
<div class="section-title">
|
272 |
<ul>
|
|
|
273 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-one.png" alt="1"/><span><?php echo wp_kses_post( sprintf( __( 'Show %1$sthe image%2$s of the product (left or right aligned)', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
|
|
274 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-two.png" alt="2"/><span><?php echo wp_kses_post( sprintf( __( 'Enable the %1$sprice visualization%2$s', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
|
|
275 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-three.png" alt="3"/><span><?php echo wp_kses_post( sprintf( __( 'Show the %1$sproduct description%2$s', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
|
|
276 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-fourth.png" alt="4"/><span><?php echo wp_kses_post( sprintf( __( 'Tell to the client if the product is %1$son discount or is featured%2$s', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?> </span></li>
|
277 |
</ul>
|
278 |
</div>
|
@@ -285,9 +300,13 @@
|
|
285 |
<div class="col-2">
|
286 |
<div class="section-title">
|
287 |
<ul>
|
|
|
288 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-five.png" alt="5"/><span><?php echo wp_kses_post( sprintf( __( '%1$sExtend the research%2$s in the excerpt and in the content', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
|
|
289 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-six.png" alt="6"/><span><?php echo wp_kses_post( sprintf( __( '%1$sActivate%2$s the category search', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
|
|
290 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-seven.png" alt="7"/><span><?php echo wp_kses_post( sprintf( __( 'Configure the %1$stag%2$s search', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
|
|
291 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-eight.png" alt="8"/><span><?php echo wp_kses_post( sprintf( __( 'Search a product with an %1$sID%2$s', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
292 |
|
293 |
</ul>
|
@@ -301,8 +320,10 @@
|
|
301 |
<div class="section section-cta section-odd">
|
302 |
<div class="landing-container upgrade last">
|
303 |
<div class="premium-cta">
|
|
|
304 |
<p><?php echo wp_kses_post( sprintf( __( 'Upgrade to the %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Ajax Search%2$s to benefit from all features!', 'yith-woocommerce-ajax-search' ), '<span class="highlight">', '</span>', '<br/>' ) ); ?></p>
|
305 |
<a href="<?php echo esc_url( $yith_wcas->obj->get_premium_landing_uri() ); ?>" target="_blank" class="premium-cta-button button btn">
|
|
|
306 |
<?php echo wp_kses_post( sprintf( __( '%1$sUPGRADE%2$s %3$sto the premium version%2$s', 'yith-woocommerce-ajax-search' ), '<span class="highlight">', '</span>', '<span>' ) ); ?>
|
307 |
</a>
|
308 |
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Premium tab
|
4 |
+
*
|
5 |
+
* @author YITH
|
6 |
+
* @package YITH WooCommerce Ajax Search
|
7 |
+
* @version 1.0.0
|
8 |
+
**/
|
9 |
+
|
10 |
+
global $yith_wcas; ?>
|
11 |
<style>
|
12 |
.section{
|
13 |
margin-left: -20px;
|
262 |
<div class="section section-cta section-odd">
|
263 |
<div class="landing-container upgrade">
|
264 |
<div class="premium-cta">
|
265 |
+
<?php // translators: placeholders html tags. ?>
|
266 |
<p><?php echo sprintf( wp_kses_post( __( 'Upgrade to the %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Ajax Search%2$s to benefit from all features!', 'yith-woocommerce-ajax-search' ) ), '<span class="highlight">', '</span>', '<br/>' ); ?></p>
|
267 |
<a href="<?php echo esc_url( $yith_wcas->obj->get_premium_landing_uri() ); ?>" target="_blank" class="premium-cta-button button btn">
|
268 |
+
<?php // translators: placeholders html tags. ?>
|
269 |
+
<?php echo wp_kses_post( sprintf( __( '%1$sUPGRADE%2$s %3$sto the premium version%2$s', 'yith-woocommerce-ajax-search' ), '<span class="highlight">', '</span>', '<span>' ) ); ?>
|
270 |
</a>
|
271 |
</div>
|
272 |
</div>
|
281 |
<div class="col-2">
|
282 |
<div class="section-title">
|
283 |
<ul>
|
284 |
+
<?php // translators: placeholders html tags. ?>
|
285 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-one.png" alt="1"/><span><?php echo wp_kses_post( sprintf( __( 'Show %1$sthe image%2$s of the product (left or right aligned)', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
286 |
+
<?php // translators: placeholders html tags. ?>
|
287 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-two.png" alt="2"/><span><?php echo wp_kses_post( sprintf( __( 'Enable the %1$sprice visualization%2$s', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
288 |
+
<?php // translators: placeholders html tags. ?>
|
289 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-three.png" alt="3"/><span><?php echo wp_kses_post( sprintf( __( 'Show the %1$sproduct description%2$s', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
290 |
+
<?php // translators: placeholders html tags. ?>
|
291 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-fourth.png" alt="4"/><span><?php echo wp_kses_post( sprintf( __( 'Tell to the client if the product is %1$son discount or is featured%2$s', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?> </span></li>
|
292 |
</ul>
|
293 |
</div>
|
300 |
<div class="col-2">
|
301 |
<div class="section-title">
|
302 |
<ul>
|
303 |
+
<?php // translators: placeholders html tags. ?>
|
304 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-five.png" alt="5"/><span><?php echo wp_kses_post( sprintf( __( '%1$sExtend the research%2$s in the excerpt and in the content', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
305 |
+
<?php // translators: placeholders html tags. ?>
|
306 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-six.png" alt="6"/><span><?php echo wp_kses_post( sprintf( __( '%1$sActivate%2$s the category search', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
307 |
+
<?php // translators: placeholders html tags. ?>
|
308 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-seven.png" alt="7"/><span><?php echo wp_kses_post( sprintf( __( 'Configure the %1$stag%2$s search', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
309 |
+
<?php // translators: placeholders html tags. ?>
|
310 |
<li><img src="<?php echo esc_url( YITH_WCAS_ASSETS_IMAGES_URL ); ?>number-eight.png" alt="8"/><span><?php echo wp_kses_post( sprintf( __( 'Search a product with an %1$sID%2$s', 'yith-woocommerce-ajax-search' ), '<b>', '</b>' ) ); ?></span></li>
|
311 |
|
312 |
</ul>
|
320 |
<div class="section section-cta section-odd">
|
321 |
<div class="landing-container upgrade last">
|
322 |
<div class="premium-cta">
|
323 |
+
<?php // translators: placeholders html tags. ?>
|
324 |
<p><?php echo wp_kses_post( sprintf( __( 'Upgrade to the %1$spremium version%2$s%3$s of %1$sYITH WooCommerce Ajax Search%2$s to benefit from all features!', 'yith-woocommerce-ajax-search' ), '<span class="highlight">', '</span>', '<br/>' ) ); ?></p>
|
325 |
<a href="<?php echo esc_url( $yith_wcas->obj->get_premium_landing_uri() ); ?>" target="_blank" class="premium-cta-button button btn">
|
326 |
+
<?php // translators: placeholders html tags. ?>
|
327 |
<?php echo wp_kses_post( sprintf( __( '%1$sUPGRADE%2$s %3$sto the premium version%2$s', 'yith-woocommerce-ajax-search' ), '<span class="highlight">', '</span>', '<span>' ) ); ?>
|
328 |
</a>
|
329 |
</div>
|
uninstall.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Uninstall plugin
|
4 |
-
*
|
5 |
-
* @author YITH
|
6 |
-
* @package YITH WooCommerce Ajax Search
|
7 |
-
* @version 1.1.1
|
8 |
-
*/
|
9 |
-
|
10 |
-
// If uninstall not called from WordPress exit
|
11 |
-
if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
|
12 |
-
|
13 |
-
|
14 |
-
global $wpdb;
|
15 |
-
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Uninstall plugin
|
4 |
+
*
|
5 |
+
* @author YITH
|
6 |
+
* @package YITH WooCommerce Ajax Search
|
7 |
+
* @version 1.1.1
|
8 |
+
*/
|
9 |
+
|
10 |
+
// If uninstall not called from WordPress exit.
|
11 |
+
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
12 |
+
exit; }
|
13 |
+
|
14 |
+
global $wpdb;
|
15 |
+
|