YITH WooCommerce Compare - Version 2.3.13

Version Description

Released on Aug 08, 2019

  • New: Support to WooCommerce 3.7.0
  • Update: Plugin Core
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Compare
Version 2.3.13
Comparing to
See all releases

Code changes from version 2.3.12 to 2.3.13

Files changed (36) hide show
  1. README.txt +8 -2
  2. includes/class.yith-woocompare-frontend.php +6 -6
  3. init.php +4 -4
  4. plugin-fw/assets/css/admin.css +112 -33
  5. plugin-fw/assets/css/metaboxes.css +350 -299
  6. plugin-fw/assets/css/yith-fields.css +790 -488
  7. plugin-fw/assets/fonts/yith-icon.eot +0 -0
  8. plugin-fw/assets/fonts/yith-icon.svg +9 -0
  9. plugin-fw/assets/fonts/yith-icon.ttf +0 -0
  10. plugin-fw/assets/fonts/yith-icon.woff +0 -0
  11. plugin-fw/assets/js/yit-plugin-panel.js +2 -3
  12. plugin-fw/assets/js/yit-plugin-panel.min.js +2 -2
  13. plugin-fw/assets/js/yith-enhanced-select.js +62 -0
  14. plugin-fw/assets/js/yith-enhanced-select.min.js +1 -8
  15. plugin-fw/assets/js/yith-fields.js +480 -426
  16. plugin-fw/assets/js/yith-fields.min.js +1 -1
  17. plugin-fw/assets/js/yith-system-info.js +13 -0
  18. plugin-fw/assets/js/yith-system-info.min.js +13 -0
  19. plugin-fw/init.php +2 -2
  20. plugin-fw/lib/promo/yith-promo.php +1 -1
  21. plugin-fw/lib/yit-assets.php +9 -9
  22. plugin-fw/lib/yit-plugin-panel-wc.php +81 -114
  23. plugin-fw/lib/yith-system-status.php +385 -0
  24. plugin-fw/templates/fields/ajax-customers.php +122 -0
  25. plugin-fw/templates/fields/colorpicker.php +5 -0
  26. plugin-fw/templates/fields/list-table.php +5 -2
  27. plugin-fw/templates/fields/multi-colorpicker.php +47 -12
  28. plugin-fw/templates/fields/password.php +30 -0
  29. plugin-fw/templates/fields/radio.php +2 -1
  30. plugin-fw/templates/fields/toggle-element.php +21 -13
  31. plugin-fw/templates/metaboxes/tab.php +2 -2
  32. plugin-fw/templates/sysinfo/system-information-panel.php +136 -0
  33. plugin-fw/yit-functions.php +11 -0
  34. plugin-fw/yit-plugin.php +2 -0
  35. plugin-options/general-options.php +47 -56
  36. templates/compare.php +1 -1
README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: yith, woocommerce compare, compare products, product compare, product comparison
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
- Stable tag: 2.3.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -66,6 +66,11 @@ yith-woocommerce-compare-<WORDPRESS LOCALE >.mo
66
 
67
  == Changelog ==
68
 
 
 
 
 
 
69
  = 2.3.12 = Released on Jun 12, 2019
70
 
71
  * Update: Plugin Core
@@ -346,6 +351,7 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
346
 
347
  == Upgrade notice ==
348
 
349
- = 2.3.12 = Released on Jun 12, 2019
350
 
 
351
  * Update: Plugin Core
4
  Tags: yith, woocommerce compare, compare products, product compare, product comparison
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
+ Stable tag: 2.3.13
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
66
 
67
  == Changelog ==
68
 
69
+ = 2.3.13 = Released on Aug 08, 2019
70
+
71
+ * New: Support to WooCommerce 3.7.0
72
+ * Update: Plugin Core
73
+
74
  = 2.3.12 = Released on Jun 12, 2019
75
 
76
  * Update: Plugin Core
351
 
352
  == Upgrade notice ==
353
 
354
+ = 2.3.13 = Released on Aug 08, 2019
355
 
356
+ * New: Support to WooCommerce 3.7.0
357
  * Update: Plugin Core
includes/class.yith-woocompare-frontend.php CHANGED
@@ -109,8 +109,8 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
109
  add_action( 'init', array( $this, 'populate_products_list' ), 10 );
110
 
111
  // Add link or button in the products list or
112
- if ( get_option('yith_woocompare_compare_button_in_product_page') == 'yes' ) add_action( 'woocommerce_single_product_summary', array( $this, 'add_compare_link' ), 35 );
113
- if ( get_option('yith_woocompare_compare_button_in_products_list') == 'yes' ) add_action( 'woocommerce_after_shop_loop_item', array( $this, 'add_compare_link' ), 20 );
114
  add_action( 'init', array( $this, 'add_product_to_compare_action' ), 15 );
115
  add_action( 'init', array( $this, 'remove_product_from_compare_action' ), 15 );
116
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
@@ -224,7 +224,7 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
224
  'table_title' => apply_filters( 'yith_woocompare_compare_table_title',__( 'Product Comparison', 'yith-woocommerce-compare' ) ),
225
  'auto_open' => get_option( 'yith_woocompare_auto_open', 'yes' ),
226
  'loader' => YITH_WOOCOMPARE_ASSETS_URL . '/images/loader.gif',
227
- 'button_text' => get_option('yith_woocompare_button_text'),
228
  'cookie_name' => $this->cookie_name,
229
  'close_label' => _x( 'Close', 'Label for popup close icon', 'yith-woocommerce-compare' )
230
  ));
@@ -499,7 +499,7 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
499
  if ( empty( $product_id ) || apply_filters( 'yith_woocompare_remove_compare_link_by_cat', false, $product_id ) )
500
  return;
501
 
502
- $is_button = ! isset( $button_or_link ) || ! $button_or_link ? get_option( 'yith_woocompare_is_button' ) : $button_or_link;
503
 
504
  if ( ! isset( $button_text ) || $button_text == 'default' ) {
505
  $button_text = get_option( 'yith_woocompare_button_text', __( 'Compare', 'yith-woocommerce-compare' ) );
@@ -548,8 +548,8 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
548
  $vars = array(
549
  'products' => $this->get_products_list(),
550
  'fields' => $this->fields(),
551
- 'repeat_price' => get_option( 'yith_woocompare_price_end' ),
552
- 'repeat_add_to_cart' => get_option( 'yith_woocompare_add_to_cart_end' ),
553
  );
554
 
555
  return $vars;
109
  add_action( 'init', array( $this, 'populate_products_list' ), 10 );
110
 
111
  // Add link or button in the products list or
112
+ if ( get_option( 'yith_woocompare_compare_button_in_product_page', 'yes' ) == 'yes' ) add_action( 'woocommerce_single_product_summary', array( $this, 'add_compare_link' ), 35 );
113
+ if ( get_option( 'yith_woocompare_compare_button_in_products_list', 'no' ) == 'yes' ) add_action( 'woocommerce_after_shop_loop_item', array( $this, 'add_compare_link' ), 20 );
114
  add_action( 'init', array( $this, 'add_product_to_compare_action' ), 15 );
115
  add_action( 'init', array( $this, 'remove_product_from_compare_action' ), 15 );
116
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
224
  'table_title' => apply_filters( 'yith_woocompare_compare_table_title',__( 'Product Comparison', 'yith-woocommerce-compare' ) ),
225
  'auto_open' => get_option( 'yith_woocompare_auto_open', 'yes' ),
226
  'loader' => YITH_WOOCOMPARE_ASSETS_URL . '/images/loader.gif',
227
+ 'button_text' => get_option( 'yith_woocompare_button_text', __( 'Compare', 'yith-woocommerce-compare' ) ),
228
  'cookie_name' => $this->cookie_name,
229
  'close_label' => _x( 'Close', 'Label for popup close icon', 'yith-woocommerce-compare' )
230
  ));
499
  if ( empty( $product_id ) || apply_filters( 'yith_woocompare_remove_compare_link_by_cat', false, $product_id ) )
500
  return;
501
 
502
+ $is_button = ! isset( $button_or_link ) || ! $button_or_link ? get_option( 'yith_woocompare_is_button', 'button' ) : $button_or_link;
503
 
504
  if ( ! isset( $button_text ) || $button_text == 'default' ) {
505
  $button_text = get_option( 'yith_woocompare_button_text', __( 'Compare', 'yith-woocommerce-compare' ) );
548
  $vars = array(
549
  'products' => $this->get_products_list(),
550
  'fields' => $this->fields(),
551
+ 'repeat_price' => get_option( 'yith_woocompare_price_end', 'yes' ),
552
+ 'repeat_add_to_cart' => get_option( 'yith_woocompare_add_to_cart_end', 'no' ),
553
  );
554
 
555
  return $vars;
init.php CHANGED
@@ -3,17 +3,17 @@
3
  * Plugin Name: YITH WooCommerce Compare
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-compare/
5
  * Description: The <code><strong>YITH WooCommerce Compare</strong></code> plugin allow you to compare in a simple and efficient way products on sale in your shop and analyze their main features in a single table. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
- * Version: 2.3.12
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-compare
10
  * Domain Path: /languages/
11
  * WC requires at least: 3.0.0
12
- * WC tested up to: 3.6
13
  *
14
  * @author YITH
15
  * @package YITH WooCommerce Compare
16
- * @version 2.3.12
17
  */
18
  /* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
19
 
@@ -58,7 +58,7 @@ if ( ! function_exists( 'yith_plugin_registration_hook' ) ) {
58
  register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
59
 
60
  if ( ! defined( 'YITH_WOOCOMPARE_VERSION' ) ){
61
- define( 'YITH_WOOCOMPARE_VERSION', '2.3.12' );
62
  }
63
  if ( ! defined( 'YITH_WOOCOMPARE_FREE_INIT' ) ) {
64
  define( 'YITH_WOOCOMPARE_FREE_INIT', plugin_basename( __FILE__ ) );
3
  * Plugin Name: YITH WooCommerce Compare
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-compare/
5
  * Description: The <code><strong>YITH WooCommerce Compare</strong></code> plugin allow you to compare in a simple and efficient way products on sale in your shop and analyze their main features in a single table. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
+ * Version: 2.3.13
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-compare
10
  * Domain Path: /languages/
11
  * WC requires at least: 3.0.0
12
+ * WC tested up to: 3.7
13
  *
14
  * @author YITH
15
  * @package YITH WooCommerce Compare
16
+ * @version 2.3.13
17
  */
18
  /* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
19
 
58
  register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
59
 
60
  if ( ! defined( 'YITH_WOOCOMPARE_VERSION' ) ){
61
+ define( 'YITH_WOOCOMPARE_VERSION', '2.3.13' );
62
  }
63
  if ( ! defined( 'YITH_WOOCOMPARE_FREE_INIT' ) ) {
64
  define( 'YITH_WOOCOMPARE_FREE_INIT', plugin_basename( __FILE__ ) );
plugin-fw/assets/css/admin.css CHANGED
@@ -3,51 +3,51 @@
3
  ------------------------*/
4
  #wpadminbar .yith-debug-admin-bar div,
5
  #wpadminbar .yith-debug-admin-bar:hover div {
6
- background : #05789c !important;
7
- color : #fff !important;
8
  }
9
 
10
  #wpadminbar .yith-debug-admin-bar a,
11
  #wpadminbar .yith-debug-admin-bar strong {
12
- color : #fff !important;
13
  }
14
 
15
  #wpadminbar .yith-debug-admin-bar strong {
16
- font-weight : 600;
17
  }
18
 
19
  #wpadminbar .yith-debug-admin-bar-post-meta .ab-empty-item,
20
  #wpadminbar .yith-debug-admin-bar-option .ab-empty-item {
21
- display : none;
22
  }
23
 
24
  #wpadminbar #wp-admin-bar-yith-debug-admin-bar-post-meta-default,
25
  #wpadminbar #wp-admin-bar-yith-debug-admin-bar-option-default {
26
- padding : 0;
27
- max-height : 500px;
28
- overflow-y : auto;
29
  }
30
 
31
  #wpadminbar .yith-debug-admin-bar pre {
32
- padding : 10px;
33
- line-height : 1.5em;
34
  }
35
 
36
- .notice-yith{
37
  margin-left: 0;
38
  border-left-color: #acc327;
39
  }
40
 
41
- .notice-yith.notice-alt{
42
  background-color: #ecf7ed;
43
  }
44
 
45
- .yith-promo-banner-image-link{
46
  display: block;
47
  margin-bottom: 15px;
48
  }
49
 
50
- .yith-promo-banner-image{
51
  max-width: 100%;
52
  margin: 0 auto;
53
  display: block;
@@ -57,7 +57,7 @@
57
  YITH FEEDS
58
  ------------------------*/
59
 
60
- .yith-feeds-logo{
61
  display: table-cell;
62
  background: #005b7c;
63
  padding: 5px;
@@ -69,7 +69,7 @@
69
  vertical-align: middle;
70
  }
71
 
72
- .yith-feeds-plugin-name{
73
  display: table-cell;
74
  vertical-align: middle;
75
  }
@@ -77,41 +77,120 @@
77
  /*-----------------------
78
  YITH Plugins Columns
79
  ------------------------*/
80
- @media screen and (min-width : 783px) {
81
 
82
  .auto-fold #adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu-head {
83
- width : 100%;
84
  }
85
 
86
  #adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu {
87
- min-width : 320px;
88
- display : flex;
89
- flex-flow : row wrap;
90
  }
91
 
92
  #adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head) {
93
- width : 50%;
94
- border-left : 1px solid #555;
95
- box-sizing : border-box;
96
  }
97
 
98
  #adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head):nth-child(2n) {
99
- border-left : none;
100
  }
101
 
102
  #adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu {
103
- min-width : 480px;
104
- display : flex;
105
- flex-flow : row wrap;
106
  }
107
 
108
  #adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head) {
109
- width : calc(100% / 3);
110
- border-left : 1px solid #555;
111
- box-sizing : border-box;
112
  }
113
 
114
  #adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head):nth-child(3n + 2) {
115
- border-left : none;
116
  }
117
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ------------------------*/
4
  #wpadminbar .yith-debug-admin-bar div,
5
  #wpadminbar .yith-debug-admin-bar:hover div {
6
+ background: #05789c !important;
7
+ color: #fff !important;
8
  }
9
 
10
  #wpadminbar .yith-debug-admin-bar a,
11
  #wpadminbar .yith-debug-admin-bar strong {
12
+ color: #fff !important;
13
  }
14
 
15
  #wpadminbar .yith-debug-admin-bar strong {
16
+ font-weight: 600;
17
  }
18
 
19
  #wpadminbar .yith-debug-admin-bar-post-meta .ab-empty-item,
20
  #wpadminbar .yith-debug-admin-bar-option .ab-empty-item {
21
+ display: none;
22
  }
23
 
24
  #wpadminbar #wp-admin-bar-yith-debug-admin-bar-post-meta-default,
25
  #wpadminbar #wp-admin-bar-yith-debug-admin-bar-option-default {
26
+ padding: 0;
27
+ max-height: 500px;
28
+ overflow-y: auto;
29
  }
30
 
31
  #wpadminbar .yith-debug-admin-bar pre {
32
+ padding: 10px;
33
+ line-height: 1.5em;
34
  }
35
 
36
+ .notice-yith {
37
  margin-left: 0;
38
  border-left-color: #acc327;
39
  }
40
 
41
+ .notice-yith.notice-alt {
42
  background-color: #ecf7ed;
43
  }
44
 
45
+ .yith-promo-banner-image-link {
46
  display: block;
47
  margin-bottom: 15px;
48
  }
49
 
50
+ .yith-promo-banner-image {
51
  max-width: 100%;
52
  margin: 0 auto;
53
  display: block;
57
  YITH FEEDS
58
  ------------------------*/
59
 
60
+ .yith-feeds-logo {
61
  display: table-cell;
62
  background: #005b7c;
63
  padding: 5px;
69
  vertical-align: middle;
70
  }
71
 
72
+ .yith-feeds-plugin-name {
73
  display: table-cell;
74
  vertical-align: middle;
75
  }
77
  /*-----------------------
78
  YITH Plugins Columns
79
  ------------------------*/
80
+ @media screen and (min-width: 783px) {
81
 
82
  .auto-fold #adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu-head {
83
+ width: 100%;
84
  }
85
 
86
  #adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu {
87
+ min-width: 320px;
88
+ display: flex;
89
+ flex-flow: row wrap;
90
  }
91
 
92
  #adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head) {
93
+ width: 50%;
94
+ border-left: 1px solid #555;
95
+ box-sizing: border-box;
96
  }
97
 
98
  #adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head):nth-child(2n) {
99
+ border-left: none;
100
  }
101
 
102
  #adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu {
103
+ min-width: 480px;
104
+ display: flex;
105
+ flex-flow: row wrap;
106
  }
107
 
108
  #adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head) {
109
+ width: calc(100% / 3);
110
+ border-left: 1px solid #555;
111
+ box-sizing: border-box;
112
  }
113
 
114
  #adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head):nth-child(3n + 2) {
115
+ border-left: none;
116
  }
117
+ }
118
+
119
+ /*---------------------------
120
+ YITH System Information
121
+ ----------------------------*/
122
+ .yith-phpinfo img {
123
+ float: right;
124
+ border: 0;
125
+ }
126
+
127
+ #yith-system-alert span.yith-logo,
128
+ .yith-system-info h1 span.yith-logo {
129
+ border-radius: 50%;
130
+ background: #265b7a;
131
+ height: 30px;
132
+ width: 30px;
133
+ display: flex;
134
+ text-align: center;
135
+ margin: 0 10px 0 0;
136
+ float: left;
137
+ align-items: center;
138
+ justify-content: center;
139
+ }
140
+
141
+ .yith-system-info table {
142
+ margin: 20px 0;
143
+ }
144
+
145
+ .yith-system-info table th {
146
+ font-weight: bold;
147
+ width: 25%;
148
+ padding: 20px 12px;
149
+ }
150
+
151
+ .yith-system-info table td {
152
+ word-break: break-all;
153
+ padding: 20px 12px;
154
+ }
155
+
156
+ .yith-system-info table td.requirement-value {
157
+ font-size: 14px;
158
+ vertical-align: middle;
159
+ text-align: left;
160
+ color: #5da726;
161
+ line-height: 19px;
162
+ width: 90px;
163
+ }
164
+
165
+ .yith-system-info table td.requirement-value.has-errors {
166
+ color: #a00;
167
+ }
168
+
169
+ .yith-system-info table td.requirement-value.has-warnings {
170
+ color: #ffa200;
171
+ }
172
+
173
+ .yith-system-info table td.requirement-messages ul {
174
+ margin: 0;
175
+ padding: 0 0 10px 0;
176
+ list-style: none!important;
177
+ }
178
+
179
+ .yith-system-info table td.requirement-messages ul li {
180
+ margin-bottom: 3px;
181
+ }
182
+
183
+ .yith-system-info table td.requirement-messages ul li span.error {
184
+ color: #a00;
185
+ font-weight: bold;
186
+ }
187
+
188
+ .yith-system-info table td.requirement-messages ul li span.warning {
189
+ color: #a00;
190
+ font-weight: bold;
191
+ }
192
+
193
+ .yith-system-info-menu {
194
+ font-weight: bold;
195
+ font-size: 11px !important;
196
+ }
plugin-fw/assets/css/metaboxes.css CHANGED
@@ -1,188 +1,208 @@
1
  /* self-clear floats */
2
  .clearfix:after {
3
- content : ".";
4
- display : block;
5
- height : 0;
6
- clear : both;
7
- visibility : hidden;
8
- overflow : hidden;
9
  }
10
 
11
  /* ie.css */
12
  * html .clearfix { /* IE6 */
13
- height : 1%;
14
  }
15
 
16
  *:first-child + html .clearfix { /* IE7 */
17
- min-height : 1%;
18
  }
19
 
20
  .clearboth {
21
- clear : both
22
  }
23
 
24
  /* === TAB STYLE */
25
  .metaboxes-tab {
26
- margin : -6px -12px -8px;
27
  }
28
 
29
  .metaboxes-tab div.tabs-panel {
30
- height : auto;
31
- overflow : visible;
32
- margin-top : 0px;
33
- padding : 0 10px;
34
- background : none;
35
- border : 0;
36
  }
37
 
38
  .metaboxes-tab ul.metaboxes-tabs {
39
- background : #f1f1f1;
40
- margin : 0;
41
- padding : 10px 0 0 5px;
42
  }
43
 
44
  .metaboxes-tab ul.metaboxes-tabs li {
45
- float : left;
46
- background : #dedede;
47
- margin : 0 0 0 5px;
48
  }
49
 
50
  .metaboxes-tab ul.metaboxes-tabs li a {
51
- color : #555;
52
- text-decoration : none;
53
- padding : 8px 15px;
54
- display : block;
55
- box-shadow : none !important;
56
  }
57
 
58
  .metaboxes-tab ul.metaboxes-tabs li.tabs {
59
- background : #fff;
60
  }
61
 
62
  .metaboxes-tab p.field-row {
63
- margin : 20px 0;
64
  }
65
 
66
  .metaboxes-tab div.sep {
67
- height : 1px;
68
- background : #dfdfdf;
69
- clear : both;
70
- margin-left : -10px;
71
- margin-right : -10px;
72
  }
73
 
74
  .metaboxes-tab label {
75
- font-weight : bold;
76
- width : 160px;
77
- float : left;
78
- line-height : 23px;
79
- margin-left : -184px;
80
  }
81
 
82
  .metaboxes-tab label small {
83
- font-weight : normal;
84
- line-height : 15px;
85
- font-style : italic;
86
- color : #999;
87
- display : block;
88
  }
89
 
90
- .metaboxes-tab .yith-plugin-fw-radio__row{
91
  width: 100%;
92
  min-height: 20px;
93
  }
 
94
  .metaboxes-tab .yith-plugin-fw-radio__row label,
95
  .metaboxes-tab .yith-toggle-elements label,
96
  .metaboxes-tab .yith-add-box label {
97
- margin-left:0;
98
- font-weight:normal;
99
  }
 
 
 
 
 
 
 
 
 
 
 
 
100
  .metaboxes-tab.yith-plugin-ui .yith-add-box,
101
- .metaboxes-tab.yith-plugin-ui .yith-toggle-row{
102
- width : auto;
103
  }
 
104
  .metaboxes-tab .wp-picker-container label {
105
- font-weight : inherit;
106
- width : auto;
107
- float : none;
108
- line-height : inherit;
109
- margin-left : 0;
 
 
 
 
 
 
110
  }
111
 
112
  .metaboxes-tab input[type="checkbox"] {
113
- vertical-align : middle
114
  }
115
 
116
  .metaboxes-tab input.button-secondary, .metaboxes-tab input.checkbox {
117
- width : auto;
118
  }
119
 
120
  .metaboxes-tab p.field-row.textarea .description {
121
- vertical-align : top;
122
  }
123
 
124
  .metaboxes-tab p.field-row.checkbox {
125
- background : none;
126
  }
127
 
128
  .metaboxes-tab .the-metabox {
129
- margin : 20px 0;
130
- margin-left : 184px;
131
  }
132
 
133
  .metaboxes-tab .the-metabox.no-label {
134
- margin : 20px 0;
135
- margin-left : 0;
136
  }
137
 
138
  .metaboxes-tab hr {
139
- height : 0px;
140
- border-top : 1px solid #dadada;
141
- width : auto;
142
- margin-left : -10px;
143
- margin-right : -10px;
144
  }
145
 
146
  .metaboxes-tab .the-metabox p {
147
- margin : 0;
148
  }
149
 
150
  .metaboxes-tab .the-metabox:last-child {
151
- border-bottom : 0px;
152
  }
153
 
154
  .metaboxes-tab .the-metabox.checkbox {
155
- background : none;
156
  }
157
 
158
  .metaboxes-tab span.description.inline {
159
- display : inline-block;
160
- line-height : 23px;
161
- width : auto;
162
- vertical-align : middle;
163
- margin : 0;
164
  }
165
 
166
  .metaboxes-tab .slider label {
167
- padding : 15px 0;
168
  }
169
 
170
  /* sortable table posts */
171
 
172
  #the-list.ui-sortable tr:hover {
173
- cursor : move;
174
  }
175
 
176
  .the-metabox.preview {
177
- float : none;
178
  }
179
 
180
  .metaboxes-tab .the-metabox.no-label.preview {
181
- margin-left : 184px;
182
  }
183
 
184
  .metaboxes-tab .the-metabox.no-label.preview img {
185
- box-shadow : 0 1px 8px rgba(0, 0, 0, 0.2);
186
  }
187
 
188
  /**************************************
@@ -198,473 +218,504 @@
198
  .metaboxes-tab .yith-plugin-fw-text-input,
199
  .metaboxes-tab .yith-plugin-fw-text-array-table,
200
  .metaboxes-tab .yith-plugin-fw-textarea {
201
- width : 400px;
202
- max-width : 100%;
203
  }
204
- .metaboxes-tab.yith-plugin-ui input[type=number]{
 
205
  width: auto;
206
  min-width: 90px;
207
  }
 
 
 
 
 
 
 
 
 
 
208
  .metaboxes-tab .yith-plugin-fw-text-array-table input[type=text] {
209
- width : 100%;
 
 
 
 
 
 
 
 
 
 
 
210
  }
211
 
212
  /* wp editor */
213
  .the-metabox.textarea-editor .mceIframeContainer {
214
- background : #fff;
215
  }
216
 
 
217
  .the-metabox.textarea-editor label {
218
- margin-top : 24px;
219
  }
220
 
221
  /* categories */
222
  .categories-panel {
223
- width : 30%;
224
- float : left;
225
- margin-right : 4px;
226
  }
227
 
228
  .categories-panel .box {
229
- height : 200px;
230
- border : 1px solid #dfdfdf;
231
- background : #fff;
232
- padding : 6px 10px;
233
- overflow : auto;
234
  }
235
 
236
  .categories-panel ul {
237
- list-style : none;
238
- margin : 0;
239
  }
240
 
241
  .categories-panel ul li {
242
- line-height : 19px;
243
- margin : 0;
244
- padding : 0;
245
- word-wrap : break-word;
246
  }
247
 
248
  .categories-panel ul li label {
249
- font-weight : normal !important;
250
- margin-left : 0 !important;
251
  }
252
 
253
  .categories-panel input.newcategory {
254
- width : 100%;
255
- margin-bottom : 3px;
256
  }
257
 
258
  /* contact form */
259
  .contactform_item {
260
- border-style : solid;
261
- border-width : 1px;
262
- line-height : 1;
263
- margin-bottom : 20px;
264
- padding : 0;
265
- background-color : #f5f5f5;
266
- background-image : -moz-linear-gradient(center top, #f9f9f9, #f5f5f5);
267
- border-color : #dfdfdf;
268
- border-radius : 3px 3px 3px 3px;
269
- box-shadow : 0 1px 0 #fff inset;
270
- min-width : 255px;
271
- position : relative;
272
  }
273
 
274
  .contactform_item .handlediv {
275
- position : relative;
276
- top : -4px;
277
  }
278
 
279
  .contactform_item h3 {
280
- min-height : 21px;
281
- margin : 13px;
282
  }
283
 
284
  .contactform_item .inside {
285
- padding : 10px !important;
286
  }
287
 
288
  .contactform_item .deps {
289
- display : none;
290
  }
291
 
292
  .contactform_item .addoptions p.option {
293
- margin : 5px 0 5px 200px
294
  }
295
 
296
  .contactform_item .addoptions p label {
297
- width : 80px !important;
298
  }
299
 
300
  .contactform_item .add-field-option {
301
- margin-bottom : 10px !important;
302
  }
303
 
304
  .remove_item {
305
- float : right;
306
  }
307
 
308
  .metabox-sortable-placeholder {
309
- border : 1px dotted #dedede;
310
- margin : 10px 0
311
  }
312
 
313
  /* features tab */
314
  .featurestab_item {
315
- border-style : solid;
316
- border-width : 1px;
317
- line-height : 1;
318
- margin-bottom : 20px;
319
- padding : 0;
320
- background-color : #f5f5f5;
321
- background-image : -moz-linear-gradient(center top, #f9f9f9, #f5f5f5);
322
- border-color : #dfdfdf;
323
- border-radius : 3px 3px 3px 3px;
324
- box-shadow : 0 1px 0 #fff inset;
325
- min-width : 255px;
326
- position : relative;
327
  }
328
 
329
  .featurestab_item .handlediv {
330
- position : relative;
331
- top : -4px;
332
  }
333
 
334
  .featurestab_item h3 {
335
- min-height : 21px
336
  }
337
 
338
  .featurestab_item .inside {
339
- padding : 10px !important;
340
  }
341
 
342
  .featurestab_item .deps {
343
- display : none;
344
  }
345
 
346
  .featurestab_item .addoptions p.option {
347
- margin : 5px 0 5px 200px
348
  }
349
 
350
  .featurestab_item .addoptions p label {
351
- width : 80px !important;
352
  }
353
 
354
  .featurestab_item .add-field-option {
355
- margin-bottom : 10px !important;
356
  }
357
 
358
  .messages-panel.updated {
359
- margin : 10px 0px 10px !important;
360
- max-width : 1200px;
361
- border-radius : 5px;
362
- -webkit-box-sizing : border-box;
363
- box-sizing : border-box;
364
  }
365
 
366
  .ui-widget-overlay {
367
- background-image : none !important;
368
  }
369
 
370
  .the-metabox .icon_type {
371
- width : 30%;
372
- float : left;
373
- margin-right : 40px
374
  }
375
 
376
  #post-type-settings .category-list label {
377
- width : 187px;
378
  }
379
 
380
  .remove_cat {
381
- float : right;
382
- text-align : center;
383
- display : block;
384
- width : 20px;
385
- height : 20px;
386
- border-radius : 20px;
387
- font-weight : bold;
388
- font-size : 10px;
389
- background : #efefef;
390
- text-decoration : none;
391
  }
392
 
393
  /* typography */
394
  .the-metabox.typography .select_wrapper.font-family {
395
- width : 200px;
396
  }
397
 
398
  .the-metabox.typography .spinner_container {
399
- float : left;
400
- margin-right : 10px;
401
  }
402
 
403
  .the-metabox.typography .spinner_container input.number {
404
- width : 50px !important;
405
- -webkit-border-top-right-radius : 0px;
406
- -webkit-border-bottom-right-radius : 0px;
407
- -moz-border-radius-topright : 0px;
408
- -moz-border-radius-bottomright : 0px;
409
- border-top-right-radius : 0px;
410
- border-bottom-right-radius : 0px;
411
  }
412
 
413
  /* number */
414
  .the-metabox.number input.number {
415
- width : 50px !important;
416
  }
417
 
418
  /* number */
419
  .rm_number .number {
420
- width : 70px;
421
- text-align : right;
422
- -webkit-border-top-right-radius : 0px;
423
- -webkit-border-bottom-right-radius : 0px;
424
- -moz-border-radius-topright : 0px;
425
- -moz-border-radius-bottomright : 0px;
426
- border-top-right-radius : 0px;
427
- border-bottom-right-radius : 0px;
428
  }
429
 
430
  .spinner-wrapper {
431
- position : relative;
432
- height : 23px;
433
- overflow : hidden;
434
  }
435
 
436
  .spinner-wrapper input.number {
437
- float : left;
438
  }
439
 
440
  .spinner-wrapper .spinner-button {
441
- cursor : pointer;
442
- float : left;
443
- position : absolute;
444
- left : 69px;
445
- width : 15px;
446
- height : 12px;
447
- border : 1px solid #dfdfdf;
448
- background : #fff;
449
- margin : 0;
450
- padding : 0;
451
- line-height : 9999px;
452
- overflow : hidden;
453
- background : url('../images/spinner.png') no-repeat center -11px
454
  }
455
 
456
  .spinner-wrapper .spinner-button.button-plus {
457
- top : 0;
458
- -webkit-border-top-right-radius : 3px !important;
459
- -moz-border-radius-topright : 3px !important;
460
- border-top-right-radius : 3px !important;
461
  }
462
 
463
  .spinner-wrapper .spinner-button.button-minus {
464
- bottom : 0;
465
- background-position : center -30px;
466
- -webkit-border-bottom-right-radius : 3px !important;
467
- -moz-border-radius-bottomright : 3px !important;
468
- border-bottom-right-radius : 3px !important;
469
  }
470
 
471
  .spinner-wrapper .spinner-button.button-plus:active {
472
- background-position : center 0px;
473
  }
474
 
475
  .spinner-wrapper .spinner-button.button-minus:active {
476
- background-position : center -20px;
477
  }
478
 
479
  .rm_typography .spinner_container {
480
- float : left;
481
- margin-right : 10px;
482
  }
483
 
484
  .rm_typography .spinner-wrapper {
485
- height : 28px;
486
  }
487
 
488
  .rm_typography .spinner-wrapper input.number {
489
- height : 28px;
490
  }
491
 
492
  .rm_typography .spinner-wrapper .spinner-button.button-plus {
493
- height : 15px;
494
- background-position : center -10px;
495
  }
496
 
497
  .rm_typography .spinner-wrapper .spinner-button.button-minus {
498
- height : 14px;
499
  }
500
 
501
  .the-metabox .spinner-wrapper .spinner-button {
502
- left : 49px;
503
  }
504
 
505
  .the-metabox.typography .spinner-wrapper .spinner-button {
506
- left : 35px;
507
  }
508
 
509
  /* images */
510
  .the-metabox.images, .the-metabox.images label {
511
- margin-left : 0;
512
- display : block;
513
  }
514
 
515
  .the-metabox.images .slides-wrapper {
516
- clear : both;
517
  }
518
 
519
  .the-metabox.images .slides-wrapper li {
520
- position : relative;
521
  }
522
 
523
  .the-metabox.images a.delete {
524
- display : block;
525
- margin-left : 4px;
526
- text-decoration : none;
527
- font-weight : bold;
528
- color : red;
529
- position : absolute;
530
- top : 0;
531
- right : 0;
532
- width : 10px;
533
- height : 18px;
534
- z-index : 10;
535
- cursor : pointer !important;
536
  }
537
 
538
  /* wp editor */
539
  .wp_themeSkin iframe {
540
- background : #fff !important;
541
  }
542
 
543
  /* custom tabs */
544
  .customtab_item {
545
- border-style : solid;
546
- border-width : 1px;
547
- line-height : 1;
548
- margin-bottom : 20px;
549
- padding : 0;
550
- background-color : #f5f5f5;
551
- background-image : -moz-linear-gradient(center top, #f9f9f9, #f5f5f5);
552
- border-color : #dfdfdf;
553
- border-radius : 3px 3px 3px 3px;
554
- box-shadow : 0 1px 0 #fff inset;
555
- min-width : 255px;
556
- position : relative;
557
  }
558
 
559
  .customtab_item .handlediv {
560
- position : relative;
561
- top : -4px;
562
  }
563
 
564
  .customtab_item h3 {
565
- min-height : 21px
566
  }
567
 
568
  .customtab_item .inside {
569
- padding : 10px !important;
570
  }
571
 
572
  .customtab_item .deps {
573
- display : none;
574
  }
575
 
576
  .customtab_item .addoptions p.option {
577
- margin : 5px 0 5px 200px
578
  }
579
 
580
  .customtab_item .addoptions p label {
581
- width : 80px !important;
582
  }
583
 
584
  .customtab_item .add-field-option {
585
- margin-bottom : 10px !important;
586
  }
587
 
588
  .customtab_item .remove_item {
589
- float : right;
590
  }
591
 
592
  .metabox-sortable-placeholder {
593
- border : 1px dotted #dedede;
594
- margin : 10px 0
595
  }
596
 
597
  .the-metabox.customtabs {
598
- margin-left : 0;
599
  }
600
 
601
  #customtab_item_sample {
602
- display : none;
603
  }
604
 
605
  .the-metabox.customtabs .field-row {
606
- margin-bottom : 10px;
607
  }
608
 
609
  #yit_custom_tabs label {
610
- font-weight : normal;
611
- width : auto;
612
- float : none;
613
- line-height : auto;
614
- margin-left : 0;
615
  }
616
 
617
  .wp-admin p label input[type=radio] {
618
- width : 16px;
619
- margin-right : 10px;
620
- margin-top : 3px;
621
  }
622
 
623
  .wp-admin .form-field._preset_onsale_icon_field label input[type=radio] {
624
- margin-top : 0;
625
  }
626
 
627
  .the-metabox .spinner {
628
- margin-top : 5px;
629
- float : none;
630
  }
631
 
632
  /*sidebars*/
633
  #choose-sidebars.choose {
634
- margin-left : 0px;
635
  }
636
 
637
  #_active_page_options-container label, #_active_page_options-container p {
638
- display : inline-block;
639
- margin : 0px;
640
  }
641
 
642
  #_active_page_options-container label {
643
- margin-right : 10px;
644
- margin-top : 3px;
645
  }
646
 
647
  #_active_page_options-container {
648
- float : right;
649
- margin-right : 20px;
650
- margin-top : 5px;
651
- z-index : 9999 !important;
652
- position : absolute;
653
- right : 0;
654
  }
655
 
656
  /*-----------------------
657
  * Colorpicker - fix issues in combination with third-party themes or plugin (Basel, VC Addons, ...)
658
  */
659
  .metaboxes-tab .the-metabox.colorpicker {
660
- display : block;
661
- width : auto;
662
- height : auto;
663
- overflow : visible;
664
- top : auto;
665
- left : auto;
666
- background : transparent;
667
- position : static;
668
- z-index : 1;
669
- font-family : inherit;
 
 
 
 
 
 
 
 
670
  }
1
  /* self-clear floats */
2
  .clearfix:after {
3
+ content: ".";
4
+ display: block;
5
+ height: 0;
6
+ clear: both;
7
+ visibility: hidden;
8
+ overflow: hidden;
9
  }
10
 
11
  /* ie.css */
12
  * html .clearfix { /* IE6 */
13
+ height: 1%;
14
  }
15
 
16
  *:first-child + html .clearfix { /* IE7 */
17
+ min-height: 1%;
18
  }
19
 
20
  .clearboth {
21
+ clear: both
22
  }
23
 
24
  /* === TAB STYLE */
25
  .metaboxes-tab {
26
+ margin: -6px -12px -8px;
27
  }
28
 
29
  .metaboxes-tab div.tabs-panel {
30
+ height: auto;
31
+ overflow: visible;
32
+ margin-top: 0px;
33
+ padding: 0 10px;
34
+ background: none;
35
+ border: 0;
36
  }
37
 
38
  .metaboxes-tab ul.metaboxes-tabs {
39
+ background: #f1f1f1;
40
+ margin: 0;
41
+ padding: 10px 0 0 5px;
42
  }
43
 
44
  .metaboxes-tab ul.metaboxes-tabs li {
45
+ float: left;
46
+ background: #dedede;
47
+ margin: 0 0 0 5px;
48
  }
49
 
50
  .metaboxes-tab ul.metaboxes-tabs li a {
51
+ color: #555;
52
+ text-decoration: none;
53
+ padding: 8px 15px;
54
+ display: block;
55
+ box-shadow: none !important;
56
  }
57
 
58
  .metaboxes-tab ul.metaboxes-tabs li.tabs {
59
+ background: #fff;
60
  }
61
 
62
  .metaboxes-tab p.field-row {
63
+ margin: 20px 0;
64
  }
65
 
66
  .metaboxes-tab div.sep {
67
+ height: 1px;
68
+ background: #dfdfdf;
69
+ clear: both;
70
+ margin-left: -10px;
71
+ margin-right: -10px;
72
  }
73
 
74
  .metaboxes-tab label {
75
+ font-weight: bold;
76
+ width: 160px;
77
+ float: left;
78
+ line-height: 23px;
79
+ margin-left: -184px;
80
  }
81
 
82
  .metaboxes-tab label small {
83
+ font-weight: normal;
84
+ line-height: 15px;
85
+ font-style: italic;
86
+ color: #999;
87
+ display: block;
88
  }
89
 
90
+ .metaboxes-tab .yith-plugin-fw-radio__row {
91
  width: 100%;
92
  min-height: 20px;
93
  }
94
+
95
  .metaboxes-tab .yith-plugin-fw-radio__row label,
96
  .metaboxes-tab .yith-toggle-elements label,
97
  .metaboxes-tab .yith-add-box label {
98
+ margin-left: 0;
99
+ font-weight: normal;
100
  }
101
+
102
+ .metaboxes-tab.yith-plugin-ui h3 {
103
+ color: #2a8db0;
104
+ font-size: 15px;
105
+ text-transform: uppercase;
106
+ background-color: #fff;
107
+ padding: 35px 20px;
108
+ margin: 0px 0 0 -4px;
109
+ width: auto;
110
+ background: transparent;
111
+ }
112
+
113
  .metaboxes-tab.yith-plugin-ui .yith-add-box,
114
+ .metaboxes-tab.yith-plugin-ui .yith-toggle-row {
115
+ width: auto;
116
  }
117
+
118
  .metaboxes-tab .wp-picker-container label {
119
+ font-weight: inherit;
120
+ width: auto;
121
+ float: none;
122
+ line-height: inherit;
123
+ margin-left: 0;
124
+ }
125
+
126
+ .metaboxes-tab.yith-plugin-ui .yith-plugin-fw-radio__row label {
127
+ width: auto !important;
128
+ display: inline-block;
129
+ font-weight: normal;
130
  }
131
 
132
  .metaboxes-tab input[type="checkbox"] {
133
+ vertical-align: middle
134
  }
135
 
136
  .metaboxes-tab input.button-secondary, .metaboxes-tab input.checkbox {
137
+ width: auto;
138
  }
139
 
140
  .metaboxes-tab p.field-row.textarea .description {
141
+ vertical-align: top;
142
  }
143
 
144
  .metaboxes-tab p.field-row.checkbox {
145
+ background: none;
146
  }
147
 
148
  .metaboxes-tab .the-metabox {
149
+ margin: 20px 0;
150
+ margin-left: 184px;
151
  }
152
 
153
  .metaboxes-tab .the-metabox.no-label {
154
+ margin: 20px 0;
155
+ margin-left: 0;
156
  }
157
 
158
  .metaboxes-tab hr {
159
+ height: 0px;
160
+ border-top: 1px solid #dadada;
161
+ width: auto;
162
+ margin-left: -10px;
163
+ margin-right: -10px;
164
  }
165
 
166
  .metaboxes-tab .the-metabox p {
167
+ margin: 0;
168
  }
169
 
170
  .metaboxes-tab .the-metabox:last-child {
171
+ border-bottom: 0px;
172
  }
173
 
174
  .metaboxes-tab .the-metabox.checkbox {
175
+ background: none;
176
  }
177
 
178
  .metaboxes-tab span.description.inline {
179
+ display: inline-block;
180
+ line-height: 23px;
181
+ width: auto;
182
+ vertical-align: middle;
183
+ margin: 0;
184
  }
185
 
186
  .metaboxes-tab .slider label {
187
+ padding: 15px 0;
188
  }
189
 
190
  /* sortable table posts */
191
 
192
  #the-list.ui-sortable tr:hover {
193
+ cursor: move;
194
  }
195
 
196
  .the-metabox.preview {
197
+ float: none;
198
  }
199
 
200
  .metaboxes-tab .the-metabox.no-label.preview {
201
+ margin-left: 184px;
202
  }
203
 
204
  .metaboxes-tab .the-metabox.no-label.preview img {
205
+ box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
206
  }
207
 
208
  /**************************************
218
  .metaboxes-tab .yith-plugin-fw-text-input,
219
  .metaboxes-tab .yith-plugin-fw-text-array-table,
220
  .metaboxes-tab .yith-plugin-fw-textarea {
221
+ width: 400px;
222
+ max-width: 100%;
223
  }
224
+
225
+ .metaboxes-tab.yith-plugin-ui input[type=number] {
226
  width: auto;
227
  min-width: 90px;
228
  }
229
+
230
+ .metaboxes-tab.yith-plugin-ui p {
231
+ font-size: 14px;
232
+ }
233
+
234
+ .metaboxes-tab.yith-plugin-ui p.section-description {
235
+
236
+ margin: 0 20px 40px 18px;
237
+ }
238
+
239
  .metaboxes-tab .yith-plugin-fw-text-array-table input[type=text] {
240
+ width: 100%;
241
+ }
242
+
243
+ .metaboxes-tab.yith-plugin-ui .yith-add-box h3 {
244
+ padding: 0 0 30px 0;
245
+ font-weight: 600;
246
+ margin: 0;
247
+ }
248
+
249
+ .metaboxes-tab.yith-plugin-ui .select2-container--default .select2-selection--single {
250
+ border: 0;
251
+ margin: 0;
252
  }
253
 
254
  /* wp editor */
255
  .the-metabox.textarea-editor .mceIframeContainer {
256
+ background: #fff;
257
  }
258
 
259
+
260
  .the-metabox.textarea-editor label {
261
+ margin-top: 24px;
262
  }
263
 
264
  /* categories */
265
  .categories-panel {
266
+ width: 30%;
267
+ float: left;
268
+ margin-right: 4px;
269
  }
270
 
271
  .categories-panel .box {
272
+ height: 200px;
273
+ border: 1px solid #dfdfdf;
274
+ background: #fff;
275
+ padding: 6px 10px;
276
+ overflow: auto;
277
  }
278
 
279
  .categories-panel ul {
280
+ list-style: none;
281
+ margin: 0;
282
  }
283
 
284
  .categories-panel ul li {
285
+ line-height: 19px;
286
+ margin: 0;
287
+ padding: 0;
288
+ word-wrap: break-word;
289
  }
290
 
291
  .categories-panel ul li label {
292
+ font-weight: normal !important;
293
+ margin-left: 0 !important;
294
  }
295
 
296
  .categories-panel input.newcategory {
297
+ width: 100%;
298
+ margin-bottom: 3px;
299
  }
300
 
301
  /* contact form */
302
  .contactform_item {
303
+ border-style: solid;
304
+ border-width: 1px;
305
+ line-height: 1;
306
+ margin-bottom: 20px;
307
+ padding: 0;
308
+ background-color: #f5f5f5;
309
+ background-image: -moz-linear-gradient(center top, #f9f9f9, #f5f5f5);
310
+ border-color: #dfdfdf;
311
+ border-radius: 3px 3px 3px 3px;
312
+ box-shadow: 0 1px 0 #fff inset;
313
+ min-width: 255px;
314
+ position: relative;
315
  }
316
 
317
  .contactform_item .handlediv {
318
+ position: relative;
319
+ top: -4px;
320
  }
321
 
322
  .contactform_item h3 {
323
+ min-height: 21px;
324
+ margin: 13px;
325
  }
326
 
327
  .contactform_item .inside {
328
+ padding: 10px !important;
329
  }
330
 
331
  .contactform_item .deps {
332
+ display: none;
333
  }
334
 
335
  .contactform_item .addoptions p.option {
336
+ margin: 5px 0 5px 200px
337
  }
338
 
339
  .contactform_item .addoptions p label {
340
+ width: 80px !important;
341
  }
342
 
343
  .contactform_item .add-field-option {
344
+ margin-bottom: 10px !important;
345
  }
346
 
347
  .remove_item {
348
+ float: right;
349
  }
350
 
351
  .metabox-sortable-placeholder {
352
+ border: 1px dotted #dedede;
353
+ margin: 10px 0
354
  }
355
 
356
  /* features tab */
357
  .featurestab_item {
358
+ border-style: solid;
359
+ border-width: 1px;
360
+ line-height: 1;
361
+ margin-bottom: 20px;
362
+ padding: 0;
363
+ background-color: #f5f5f5;
364
+ background-image: -moz-linear-gradient(center top, #f9f9f9, #f5f5f5);
365
+ border-color: #dfdfdf;
366
+ border-radius: 3px 3px 3px 3px;
367
+ box-shadow: 0 1px 0 #fff inset;
368
+ min-width: 255px;
369
+ position: relative;
370
  }
371
 
372
  .featurestab_item .handlediv {
373
+ position: relative;
374
+ top: -4px;
375
  }
376
 
377
  .featurestab_item h3 {
378
+ min-height: 21px
379
  }
380
 
381
  .featurestab_item .inside {
382
+ padding: 10px !important;
383
  }
384
 
385
  .featurestab_item .deps {
386
+ display: none;
387
  }
388
 
389
  .featurestab_item .addoptions p.option {
390
+ margin: 5px 0 5px 200px
391
  }
392
 
393
  .featurestab_item .addoptions p label {
394
+ width: 80px !important;
395
  }
396
 
397
  .featurestab_item .add-field-option {
398
+ margin-bottom: 10px !important;
399
  }
400
 
401
  .messages-panel.updated {
402
+ margin: 10px 0px 10px !important;
403
+ max-width: 1200px;
404
+ border-radius: 5px;
405
+ -webkit-box-sizing: border-box;
406
+ box-sizing: border-box;
407
  }
408
 
409
  .ui-widget-overlay {
410
+ background-image: none !important;
411
  }
412
 
413
  .the-metabox .icon_type {
414
+ width: 30%;
415
+ float: left;
416
+ margin-right: 40px
417
  }
418
 
419
  #post-type-settings .category-list label {
420
+ width: 187px;
421
  }
422
 
423
  .remove_cat {
424
+ float: right;
425
+ text-align: center;
426
+ display: block;
427
+ width: 20px;
428
+ height: 20px;
429
+ border-radius: 20px;
430
+ font-weight: bold;
431
+ font-size: 10px;
432
+ background: #efefef;
433
+ text-decoration: none;
434
  }
435
 
436
  /* typography */
437
  .the-metabox.typography .select_wrapper.font-family {
438
+ width: 200px;
439
  }
440
 
441
  .the-metabox.typography .spinner_container {
442
+ float: left;
443
+ margin-right: 10px;
444
  }
445
 
446
  .the-metabox.typography .spinner_container input.number {
447
+ width: 50px !important;
448
+ -webkit-border-top-right-radius: 0px;
449
+ -webkit-border-bottom-right-radius: 0px;
450
+ -moz-border-radius-topright: 0px;
451
+ -moz-border-radius-bottomright: 0px;
452
+ border-top-right-radius: 0px;
453
+ border-bottom-right-radius: 0px;
454
  }
455
 
456
  /* number */
457
  .the-metabox.number input.number {
458
+ width: 50px !important;
459
  }
460
 
461
  /* number */
462
  .rm_number .number {
463
+ width: 70px;
464
+ text-align: right;
465
+ -webkit-border-top-right-radius: 0px;
466
+ -webkit-border-bottom-right-radius: 0px;
467
+ -moz-border-radius-topright: 0px;
468
+ -moz-border-radius-bottomright: 0px;
469
+ border-top-right-radius: 0px;
470
+ border-bottom-right-radius: 0px;
471
  }
472
 
473
  .spinner-wrapper {
474
+ position: relative;
475
+ height: 23px;
476
+ overflow: hidden;
477
  }
478
 
479
  .spinner-wrapper input.number {
480
+ float: left;
481
  }
482
 
483
  .spinner-wrapper .spinner-button {
484
+ cursor: pointer;
485
+ float: left;
486
+ position: absolute;
487
+ left: 69px;
488
+ width: 15px;
489
+ height: 12px;
490
+ border: 1px solid #dfdfdf;
491
+ background: #fff;
492
+ margin: 0;
493
+ padding: 0;
494
+ line-height: 9999px;
495
+ overflow: hidden;
496
+ background: url('../images/spinner.png') no-repeat center -11px
497
  }
498
 
499
  .spinner-wrapper .spinner-button.button-plus {
500
+ top: 0;
501
+ -webkit-border-top-right-radius: 3px !important;
502
+ -moz-border-radius-topright: 3px !important;
503
+ border-top-right-radius: 3px !important;
504
  }
505
 
506
  .spinner-wrapper .spinner-button.button-minus {
507
+ bottom: 0;
508
+ background-position: center -30px;
509
+ -webkit-border-bottom-right-radius: 3px !important;
510
+ -moz-border-radius-bottomright: 3px !important;
511
+ border-bottom-right-radius: 3px !important;
512
  }
513
 
514
  .spinner-wrapper .spinner-button.button-plus:active {
515
+ background-position: center 0px;
516
  }
517
 
518
  .spinner-wrapper .spinner-button.button-minus:active {
519
+ background-position: center -20px;
520
  }
521
 
522
  .rm_typography .spinner_container {
523
+ float: left;
524
+ margin-right: 10px;
525
  }
526
 
527
  .rm_typography .spinner-wrapper {
528
+ height: 28px;
529
  }
530
 
531
  .rm_typography .spinner-wrapper input.number {
532
+ height: 28px;
533
  }
534
 
535
  .rm_typography .spinner-wrapper .spinner-button.button-plus {
536
+ height: 15px;
537
+ background-position: center -10px;
538
  }
539
 
540
  .rm_typography .spinner-wrapper .spinner-button.button-minus {
541
+ height: 14px;
542
  }
543
 
544
  .the-metabox .spinner-wrapper .spinner-button {
545
+ left: 49px;
546
  }
547
 
548
  .the-metabox.typography .spinner-wrapper .spinner-button {
549
+ left: 35px;
550
  }
551
 
552
  /* images */
553
  .the-metabox.images, .the-metabox.images label {
554
+ margin-left: 0;
555
+ display: block;
556
  }
557
 
558
  .the-metabox.images .slides-wrapper {
559
+ clear: both;
560
  }
561
 
562
  .the-metabox.images .slides-wrapper li {
563
+ position: relative;
564
  }
565
 
566
  .the-metabox.images a.delete {
567
+ display: block;
568
+ margin-left: 4px;
569
+ text-decoration: none;
570
+ font-weight: bold;
571
+ color: red;
572
+ position: absolute;
573
+ top: 0;
574
+ right: 0;
575
+ width: 10px;
576
+ height: 18px;
577
+ z-index: 10;
578
+ cursor: pointer !important;
579
  }
580
 
581
  /* wp editor */
582
  .wp_themeSkin iframe {
583
+ background: #fff !important;
584
  }
585
 
586
  /* custom tabs */
587
  .customtab_item {
588
+ border-style: solid;
589
+ border-width: 1px;
590
+ line-height: 1;
591
+ margin-bottom: 20px;
592
+ padding: 0;
593
+ background-color: #f5f5f5;
594
+ background-image: -moz-linear-gradient(center top, #f9f9f9, #f5f5f5);
595
+ border-color: #dfdfdf;
596
+ border-radius: 3px 3px 3px 3px;
597
+ box-shadow: 0 1px 0 #fff inset;
598
+ min-width: 255px;
599
+ position: relative;
600
  }
601
 
602
  .customtab_item .handlediv {
603
+ position: relative;
604
+ top: -4px;
605
  }
606
 
607
  .customtab_item h3 {
608
+ min-height: 21px
609
  }
610
 
611
  .customtab_item .inside {
612
+ padding: 10px !important;
613
  }
614
 
615
  .customtab_item .deps {
616
+ display: none;
617
  }
618
 
619
  .customtab_item .addoptions p.option {
620
+ margin: 5px 0 5px 200px
621
  }
622
 
623
  .customtab_item .addoptions p label {
624
+ width: 80px !important;
625
  }
626
 
627
  .customtab_item .add-field-option {
628
+ margin-bottom: 10px !important;
629
  }
630
 
631
  .customtab_item .remove_item {
632
+ float: right;
633
  }
634
 
635
  .metabox-sortable-placeholder {
636
+ border: 1px dotted #dedede;
637
+ margin: 10px 0
638
  }
639
 
640
  .the-metabox.customtabs {
641
+ margin-left: 0;
642
  }
643
 
644
  #customtab_item_sample {
645
+ display: none;
646
  }
647
 
648
  .the-metabox.customtabs .field-row {
649
+ margin-bottom: 10px;
650
  }
651
 
652
  #yit_custom_tabs label {
653
+ font-weight: normal;
654
+ width: auto;
655
+ float: none;
656
+ line-height: auto;
657
+ margin-left: 0;
658
  }
659
 
660
  .wp-admin p label input[type=radio] {
661
+ width: 16px;
662
+ margin-right: 10px;
663
+ margin-top: 3px;
664
  }
665
 
666
  .wp-admin .form-field._preset_onsale_icon_field label input[type=radio] {
667
+ margin-top: 0;
668
  }
669
 
670
  .the-metabox .spinner {
671
+ margin-top: 5px;
672
+ float: none;
673
  }
674
 
675
  /*sidebars*/
676
  #choose-sidebars.choose {
677
+ margin-left: 0px;
678
  }
679
 
680
  #_active_page_options-container label, #_active_page_options-container p {
681
+ display: inline-block;
682
+ margin: 0px;
683
  }
684
 
685
  #_active_page_options-container label {
686
+ margin-right: 10px;
687
+ margin-top: 3px;
688
  }
689
 
690
  #_active_page_options-container {
691
+ float: right;
692
+ margin-right: 20px;
693
+ margin-top: 5px;
694
+ z-index: 9999 !important;
695
+ position: absolute;
696
+ right: 0;
697
  }
698
 
699
  /*-----------------------
700
  * Colorpicker - fix issues in combination with third-party themes or plugin (Basel, VC Addons, ...)
701
  */
702
  .metaboxes-tab .the-metabox.colorpicker {
703
+ display: block;
704
+ width: auto;
705
+ height: auto;
706
+ overflow: visible;
707
+ top: auto;
708
+ left: auto;
709
+ background: transparent;
710
+ position: static;
711
+ z-index: 1;
712
+ font-family: inherit;
713
+ }
714
+
715
+ .the-metabox.checkbox.checkboxgroup-start.clearfix {
716
+ margin: 40px 0 0 264px;
717
+ }
718
+
719
+ .the-metabox.checkbox.checkboxgroup.clearfix {
720
+ margin: 0 0 0 264px;
721
  }
plugin-fw/assets/css/yith-fields.css CHANGED
@@ -1,38 +1,38 @@
1
  .yith-plugin-fw span.description {
2
- display : block;
3
- margin-top : 5px;
4
- font-size : 12px;
5
- color : #777;
6
- font-style : italic;
7
- clear : both;
8
  }
9
 
10
  .yith-plugin-fw span.description.inline {
11
- display : inline-block;
12
- margin : 0 0 0 5px;
13
  }
14
 
15
  .yith-disabled {
16
- opacity : 0.3;
17
- pointer-events : none;
18
  }
19
 
20
  .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper) {
21
- display : block;
22
- width : 100%;
23
  }
24
 
25
  .yith-plugin-fw-field-wrapper span.desc {
26
- display : block;
27
- width : 100%;
28
  }
29
 
30
  .yith-plugin-fw-title-field-wrapper h3.title {
31
- width : 100%;
32
  }
33
 
34
  .the-metabox .yith-plugin-fw-title-field-wrapper h3.title {
35
- float : left;
36
  }
37
 
38
  .yith-plugin-fw input[type=email],
@@ -41,163 +41,168 @@
41
  .yith-plugin-fw select,
42
  .woocommerce .yith-plugin-fw table.form-table input[type=email],
43
  .woocommerce .yith-plugin-fw table.form-table input[type=number],
 
44
  .woocommerce .yith-plugin-fw table.form-table input[type=text]:not(.select2-search__field),
45
  .woocommerce .yith-plugin-fw table.form-table select {
46
- width : 400px;
47
- max-width : 100%;
48
- height : 30px;
49
- padding : 5px;
50
  }
51
 
52
  .woocommerce .yith-plugin-fw table.form-table input[type=text].wp-color-picker,
53
  .woocommerce .yith-plugin-fw table.form-table input[type=text].yith-plugin-fw-colorpicker,
54
  .yith-plugin-fw input[type=text].wp-color-picker,
55
  .yith-plugin-fw input[type=text].yith-plugin-fw-colorpicker {
56
- width : 6em;
57
- max-width : none;
58
- height : auto;
59
- padding : 3px 5px;
60
  }
61
 
62
  .woocommerce .yith-plugin-fw table.form-table input[type=text].colorpick,
63
  .yith-plugin-fw input[type=text].colorpick {
64
- width : 6em;
65
- max-width : none;
66
- height : auto;
67
- padding : 6px;
68
  }
69
 
70
  .yith-plugin-fw input.select2-search__field,
71
  .yith-plugin-fw .select2-container .select2-search--inline .select2-search__field,
72
  .woocommerce .yith-plugin-fw input.select2-search__field,
73
  .woocommerce .yith-plugin-fw table.form-table input.select2-search__field {
74
- padding : 3px;
 
 
 
 
75
  }
76
 
77
  .yith-plugin-fw textarea {
78
- width : 400px;
79
- max-width : 100%;
80
- padding : 5px;
81
  }
82
 
83
  /* ------------- ICONS ------------- */
84
  .yit-icons-manager-wrapper {
85
- width : 100%;
86
- max-width : 400px;
87
  }
88
 
89
  .yit-icons-manager-text {
90
- width : 100%;
91
  }
92
 
93
  .yit-icons-manager-icon-text {
94
- width : calc(100% - 35px) !important;
95
- height : 30px;
96
- float : left;
97
- margin : 0;
98
  }
99
 
100
  .yit-icons-manager-icon-preview {
101
- width : 30px;
102
- height : 30px;
103
- margin-right : 5px;
104
- float : left;
105
- padding-top : 6px;
106
- box-sizing : border-box;
107
- text-align : center;
108
- background : #f1f1f1;
109
  }
110
 
111
  .yit-icons-manager-list-wrapper {
112
- margin : 10px 0;
113
- box-shadow : 0 0 0 1px #ddd;
114
  }
115
 
116
  ul.yit-icons-manager-list {
117
- width : 100%;
118
- height : 300px;
119
- overflow-y : scroll;
120
- margin : 0;
121
  }
122
 
123
  ul.yit-icons-manager-list li {
124
- float : left;
125
- width : 30px;
126
- height : 30px;
127
- padding-top : 6px;
128
- box-sizing : border-box;
129
- text-align : center;
130
- background : #f1f1f1;
131
- margin : 1px;
132
- cursor : pointer;
133
  }
134
 
135
  ul.yit-icons-manager-list li:hover {
136
- background : #c5dcf6;
137
  }
138
 
139
  ul.yit-icons-manager-list li.active {
140
- background : #d4f0ff;
141
  }
142
 
143
  .yit-icons-manager-action-set-default {
144
- margin-bottom : 0;
145
  }
146
 
147
  .yit-icons-manager-default-icon-preview {
148
- height : 100%;
149
- display : inline-block;
150
- padding-left : 10px;
151
- border-left : 1px solid #ccc;
152
- margin-left : 10px;
153
  }
154
 
155
  /* ------- Text Array ------- */
156
  .yith-plugin-fw-text-array-table td {
157
- padding : 1px;
158
  }
159
 
160
  .yith-plugin-fw-text-array-table input[type=text],
161
  .woocommerce table.form-table table.yith-plugin-fw-text-array-table input[type=text] {
162
- width : 100%;
163
  }
164
 
165
  /* ------- Image Gallery ------- */
166
  .yith-plugin-fw .image-gallery ul li {
167
- display : inline-block;
168
- width : 80px;
169
- margin-left : 10px;
170
- position : relative;
171
  }
172
 
173
  .yith-plugin-fw .image-gallery ul li img {
174
- width : 80px;
175
- border : 1px solid #ccc;
176
  }
177
 
178
  .yith-plugin-fw .image-gallery ul li ul {
179
- position : absolute;
180
- top : -6px;
181
- right : -1px;
182
- width : 20px;
183
- height : 20px;
184
  }
185
 
186
  .yith-plugin-fw .image-gallery ul a.delete {
187
- background : url(../images/x.png) no-repeat;
188
- width : 20px;
189
- height : 20px;
190
- display : block;
191
- text-indent : -99999px;
192
  }
193
 
194
  /* ------- OnOff ------- */
195
  .yith-plugin-fw-onoff-container {
196
- display : inline-block;
197
  }
198
 
199
  .yith-plugin-fw-onoff-container input {
200
- display : none;
201
  }
202
 
203
  .yith-plugin-fw-onoff-container input + span {
@@ -205,6 +210,7 @@ ul.yit-icons-manager-list li.active {
205
  text-indent: -9999px;
206
  display: block;
207
  width: 36px;
 
208
  height: 20px;
209
  background: #a4a4a4;
210
  border-radius: 24px;
@@ -212,193 +218,194 @@ ul.yit-icons-manager-list li.active {
212
  transition: all 0.3s;
213
  }
214
 
 
215
  .yith-plugin-fw-onoff-container input + span:before {
216
- content : '';
217
- background : #fff;
218
- width : 16px;
219
- height : 16px;
220
- border-radius : 50%;
221
- position : absolute;
222
- top : 2px;
223
- left : 2px;
224
- transition : all 0.3s;
225
  }
226
 
227
  .yith-plugin-fw-onoff-container input:checked + span,
228
  .yith-plugin-fw-onoff-container input.onoffchecked + span {
229
- background : #0073aa;
230
  }
231
 
232
  .yith-plugin-fw-onoff-container input:checked + span:before,
233
  .yith-plugin-fw-onoff-container input.onoffchecked + span:before {
234
- left : 18px;
235
  }
236
 
237
  /* ------- Preview ------- */
238
  .yith-plugin-fw-preview-field {
239
- max-height : 200px;
240
  }
241
 
242
  /* ------- Radio ------- */
243
  .yith-plugin-fw-radio input[type=radio] {
244
- margin : 0 3px 0 0;
245
  }
246
 
247
  .yith-plugin-fw-radio__row {
248
- margin-bottom : 8px;
249
  }
250
 
251
  /* ------- Sidebar Layout ------- */
252
  .yith-plugin-fw-sidebar-layout input[type="radio"] {
253
- display : none;
254
- width : 0px;
255
  }
256
 
257
  .yith-plugin-fw-sidebar-layout input[type="radio"]:first-child {
258
- margin-right : -2px;
259
  }
260
 
261
  .yith-plugin-fw-sidebar-layout input[type="radio"] + img {
262
- border : 2px solid #fff;
263
- padding : 1px;
264
  }
265
 
266
  .yith-plugin-fw-sidebar-layout input[type="radio"] + img:hover {
267
- cursor : pointer;
268
  }
269
 
270
  .yith-plugin-fw-sidebar-layout input[checked] + img {
271
- border : 2px solid #f2ad35;
272
- padding : 1px;
273
  }
274
 
275
  .yith-plugin-fw-sidebar-layout select {
276
- vertical-align : 12px;
277
  }
278
 
279
  .yit-admin-panel-content-wrap .yith-plugin-fw-sidebar-layout label {
280
- font-weight : bold;
281
- width : 200px;
282
- float : left;
283
- line-height : 23px;
284
- margin-left : -230px;
285
  }
286
 
287
  /* ------- Slider ------- */
288
  .yith-plugin-fw .slider {
289
- padding-top : 20px;
290
  }
291
 
292
  .ui-slider .minCaption {
293
- position : absolute;
294
- right : 95%;
295
- top : -6px;
296
- margin-right : 11px;
297
  }
298
 
299
  .ui-slider .maxCaption {
300
- position : absolute;
301
- left : 95%;
302
- top : -6px;
303
- margin-left : 20px;
304
  }
305
 
306
  .ui-slider-horizontal .ui-slider-handle {
307
- background : #fff;
308
- border : 0px !important;
309
- top : -12px !important;
310
- border-radius : 50%;
311
- width : 27px !important;
312
- height : 27px !important;
313
- box-sizing : border-box;
314
- box-shadow : 0 1px 7px -1px rgba(0, 0, 0, 0.5);
315
- font-size : 13px;
316
- padding : 6px 0;
317
- font-weight : 600;
318
- color : #555;
319
- text-align : center;
320
  }
321
 
322
  .ui-slider.ui-widget-content {
323
- background : #ccc;
324
- border : none !important;
325
- height : 3px !important;
326
- border-radius : 3px !important;
327
- width : 90%;
328
- margin : 15px 5% 20px 5%;
329
  }
330
 
331
  .iris-slider-offset.ui-slider.ui-widget-content {
332
- background : transparent !important;
333
- height : auto !important;
334
  }
335
 
336
  .ui-slider.ui-widget-content .ui-widget-header {
337
- background : #4b93ff;
338
- left : 0px !important;
339
- -webkit-border-radius : 3px;
340
- -moz-border-radius : 3px;
341
- -khtml-border-radius : 3px;
342
- border-radius : 3px;
343
  }
344
 
345
  /* ------- Select2 ------- */
346
  .yith-plugin-fw-select2-wrapper {
347
- width : 400px;
348
  }
349
 
350
  /* ------- Textarea ------- */
351
  .yith-plugin-fw-textarea-editor-field-wrapper {
352
- max-width : 1000px;
353
- clear : both;
354
  }
355
 
356
  .yith-plugin-fw-textarea-editor-field-wrapper textarea.wp-editor-area,
357
  .woocommerce table.form-table .yith-plugin-fw-textarea-editor-field-wrapper textarea.wp-editor-area {
358
- width : 100%;
359
  }
360
 
361
  /* ------- Buttons ------- */
362
  .yith-plugin-fw-buttons-field-wrapper {
363
- margin-top : 7px;
364
  }
365
 
366
  /* ------- Select Images ------- */
367
  .yith-plugin-fw-select-images__list {
368
- margin : 0;
369
- display : flex;
370
- flex-wrap : wrap;
371
  }
372
 
373
  .yith-plugin-fw-select-images__item {
374
- width : calc(20% - 10px);
375
- min-width : 150px;
376
- margin : 0 10px 10px 0;
377
- padding : 10px;
378
- box-sizing : border-box;
379
- cursor : pointer;
380
- transition : all .3s;
381
- border : 2px solid #eee;
382
- display : flex;
383
- flex-direction : column;
384
- justify-content : space-between;
385
  }
386
 
387
  .yith-plugin-fw-select-images__item:hover,
388
  .yith-plugin-fw-select-images__item.yith-plugin-fw-select-images__item--selected {
389
- border-color : #07bcce;
390
  }
391
 
392
  .yith-plugin-fw-select-images__item__label {
393
- text-align : center;
394
- font-weight : 600;
395
- margin-bottom : 10px;
396
  }
397
 
398
  .yith-plugin-fw-select-images__item img {
399
- display : block;
400
- max-width : 100%;
401
- margin : 0 auto;
402
  }
403
 
404
  /****************
@@ -406,8 +413,8 @@ YITH UI
406
  ****************/
407
  @font-face {
408
  font-family: 'yith-icon';
409
- src: url('../fonts/yith-icon.eot?7ik896');
410
- src: url('../fonts/yith-icon.eot?7ik896#iefix') format('embedded-opentype'),
411
  url('../fonts/yith-icon.ttf?7ik896') format('truetype'),
412
  url('../fonts/yith-icon.woff?7ik896') format('woff'),
413
  url('../fonts/yith-icon.svg?7ik896#yith-icon') format('svg');
@@ -415,7 +422,7 @@ YITH UI
415
  font-style: normal;
416
  }
417
 
418
- [class^="icon-"], [class*=" icon-"] {
419
  /* use !important to prevent issues with browser extensions that change fonts */
420
  font-family: 'yith-icon' !important;
421
  speak: none;
@@ -429,92 +436,157 @@ YITH UI
429
  -webkit-font-smoothing: antialiased;
430
  -moz-osx-font-smoothing: grayscale;
431
  }
432
- .icon-drag:before {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
433
  content: "\e90f";
434
- color: #d8d8d8;
 
 
 
 
 
 
 
 
 
 
435
  }
436
- .icon-arrow_down:before {
 
437
  content: "\e900";
438
- color: #d8d8d8;
439
  }
440
- .icon-arrow_left:before {
 
441
  content: "\e901";
442
- color: #d8d8d8;
443
  }
444
- .icon-arrow_right:before {
 
445
  content: "\e902";
446
- color: #d8d8d8;
447
  }
448
- .icon-arrow_up:before {
 
449
  content: "\e903";
450
- color: #d8d8d8;
451
  }
452
- .icon-calendar:before {
 
453
  content: "\e904";
454
- color: #d8d8d8;
455
  }
456
- .icon-check:before {
 
457
  content: "\e905";
458
- color: #d8d8d8;
459
  }
460
- .icon-close:before {
 
461
  content: "\e906";
462
- color: #d8d8d8;
463
  }
464
- .icon-edit:before {
 
465
  content: "\e907";
466
- color: #d8d8d8;
467
  }
468
- .icon-magnifier:before {
 
469
  content: "\e908";
470
- color: #d8d8d8;
471
  }
472
- .icon-pencil:before {
 
473
  content: "\e909";
474
- color: #d8d8d8;
475
  }
476
- .icon-plus:before {
 
477
  content: "\e90a";
478
- color: #d8d8d8;
479
  }
480
- .icon-update:before {
 
481
  content: "\e90b";
482
- color: #d8d8d8;
483
  }
484
- .icon-upload:before {
 
485
  content: "\e90c";
486
- color: #d8d8d8;
487
- }
488
- .icon-trash:before {
489
- content: "\e90d";
490
- color: #d8d8d8;
491
- }
492
- .icon-info:before {
493
- content: "\e90e";
494
- color: #d8d8d8;
495
- }
496
- .icon-reset:before {
497
- content: "\e910";
498
- color: #d8d8d8;
499
  }
500
- .yith-plugin-fw-banner{
 
501
  width: 100%;
502
  height: 75px;
503
  background: url('../images/banner-premium.png');
504
  }
505
- .yith-plugin-fw-banner.yith-plugin-fw-banner-free{
 
506
  height: 290px;
507
  background: url('../images/banner-free.png') no-repeat;
508
  }
509
- .yith-plugin-fw-banner.yith-plugin-fw-banner-free h1{
 
510
  max-width: auto;
511
- text-align:left;
512
  margin-left: 110px;
513
  padding-top: 15px;
514
  padding-bottom: 8px;
515
  }
516
 
517
- .yith-plugin-fw-banner h1{
518
  text-transform: uppercase;
519
  color: #0c5777;
520
  font-size: 15px;
@@ -525,106 +597,125 @@ YITH UI
525
  box-sizing: border-box;
526
  }
527
 
528
- .yith-plugin-fw-banner span{
529
- font-style:italic;
530
  display: block;
531
  font-size: 15px;
532
- color:#214249;
533
- text-transform:none;
534
  text-align: right;
535
  }
536
 
537
  .yith-plugin-fw-banner a,
538
- .yith-plugin-fw-banner a:focus{
539
  text-decoration: none;
540
  outline: none;
541
  box-shadow: none;
542
  }
543
 
544
- .yith-banners ul{
545
  list-style: none;
546
  margin-left: 10px;
547
  }
548
 
549
- .yith-banners ul li{
550
  display: inline-block;
551
  margin-left: 10px;
552
  }
553
- .yith-plugin-ui a{
 
554
  outline: none;
555
  box-shadow: none;
556
  }
557
 
558
- .yith-plugin-ui{
559
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
560
  }
561
 
562
- .yith-plugin-ui #wpwrap h2.nav-tab-wrapper, .yith-plugin-ui #wpbody-content h2.nav-tab-wrapper{
563
- margin-top:10px;
564
  }
565
 
566
- .yith-plugin-ui .nav-tab{
567
  margin-left: 0px;
568
  margin-right: 2px;
569
  background-color: #336374;
570
  color: #fff;
571
- font-size: 13px;
572
  padding: 7px 20px;
573
  border: 0;
574
  }
575
- .yith-plugin-ui .nav-tab:first-child{
 
576
  border-left: 1px solid #d9d9d9;
577
  }
578
 
579
- .yith-plugin-ui .nav-tab.yith-premium{
580
  background-color: #be421c;
581
  }
582
- .yith-plugin-ui .nav-tab-active{
 
583
  background-color: #fff;
584
  color: #336374;
585
- border-bottom:1px solid #fff;
586
  }
587
- .yith-plugin-ui .nav-tab-active.yith-premium{
 
588
  background-color: #fff;
589
  color: #be421c;
590
  }
591
- .yith-plugin-ui #plugin-fw-wc{
 
592
  padding-top: 0px;
593
  }
594
 
595
- .yith-plugin-ui .form-table td{
596
  padding: 15px 20px;
597
  }
598
 
599
- .yith-plugin-ui label{
600
  color: #33373b;
601
- font-size: 13px;
 
 
 
 
 
 
 
 
 
 
 
602
  }
603
 
604
- .yith-plugin-ui span.description{
605
  color: #716269;
606
- font-size: 11px;
607
  font-style: normal;
608
  font-weight: 400;
609
  margin-top: 15px;
610
  margin-left: 0;
611
  }
612
- #wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper {
 
613
  border: 0;
614
- border-bottom : 1px solid #ccc;
615
  margin-right: 15px;
 
616
  background-color: transparent;
617
  padding-left: 0;
618
  }
 
619
  .yith-plugin-ui #plugin-fw-wc table.form-table,
620
  .yith-plugin-ui #yith-plugin-fw-panel table.form-table,
621
- .yith-plugin-ui table.form-table{
622
  border: 1px solid #d8d8d8;
623
  border-top: 0;
624
  margin-bottom: 40px;
625
  }
626
 
627
- .yith-plugin-ui #wpwrap h2.nav-tab-wrapper, .yith-plugin-ui #wpbody-content h2.nav-tab-wrapper{
628
  background-color: transparent;
629
  border: 0;
630
  text-transform: none;
@@ -633,7 +724,7 @@ YITH UI
633
 
634
  .yith-plugin-ui h2 {
635
  color: #2a8db0;
636
- font-size: 13px;
637
  text-transform: uppercase;
638
  border: 1px solid #d8d8d8;
639
  border-bottom: 0;
@@ -641,12 +732,13 @@ YITH UI
641
  padding: 35px 20px;
642
  margin: 0px;
643
  }
644
- .yith-plugin-ui .yith-plugin-fw-custom-tab h2{
 
645
  border: 0px solid #d8d8d8;
646
  padding-left: 0;
647
  }
648
 
649
- .yith-plugin-ui #plugin-fw-wc table.form-table th, #yith-plugin-fw-panel table.form-table th.titledesc, .yith-plugin-ui #plugin-fw-wc table.form-table td, #yith-plugin-fw-panel table.form-table td.forminp {
650
  padding: 30px 20px;
651
  }
652
 
@@ -659,17 +751,17 @@ YITH UI
659
  padding-bottom: 5px;
660
  }
661
 
662
- .yith-plugin-ui #plugin-fw-wc h2 + div p, .yith-plugin-ui p.info-box{
663
  background: #f1f1f1;
664
- font-size: 12px;
665
  font-weight: 700;
666
  width: 40%;
667
- display:block;
668
  padding: 15px;
669
  margin-bottom: 0;
670
  }
671
 
672
- .yith-plugin-ui #plugin-fw-wc h2 + div p:before, .yith-plugin-ui p.info-box:before{
673
  content: "\e90e";
674
  font-family: yith-icon;
675
  font-size: 30px;
@@ -680,7 +772,7 @@ YITH UI
680
  margin-right: 15px;
681
  }
682
 
683
- .yith-plugin-ui h2:first-child{
684
  border-top: 0;
685
  }
686
 
@@ -701,10 +793,12 @@ YITH UI
701
  .yith-plugin-ui input[type=text],
702
  .yith-plugin-ui input[type=email],
703
  .yith-plugin-ui input[type=password],
 
704
  .yith-plugin-fw.yith-plugin-ui input[type=text]:not(.select2-search__field),
705
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text]:not(.select2-search__field),
706
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table select,
707
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table textarea,
 
708
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=number],
709
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text] {
710
  border: 1px solid #d8d8d8;
@@ -715,18 +809,24 @@ YITH UI
715
  box-shadow: none;
716
  color: #716269;
717
  }
 
718
  .yith-plugin-ui textarea,
719
- .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table textarea{
720
  height: auto;
721
  }
 
722
  .yith-plugin-ui table.form-table input[type=text].wp-color-picker,
723
- .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].wp-color-picker{
724
  border: 0;
725
  height: 30px;
726
  max-width: 60px;
727
 
728
  }
729
 
 
 
 
 
730
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].small-text,
731
  .yith-plugin-ui input[type=text].small-text {
732
  width: 100px;
@@ -740,27 +840,27 @@ YITH UI
740
  }
741
 
742
  .yith-plugin-ui select:focus,
743
- .yith-plugin-ui input[type=text]:focus {
744
- border-color: #a7d9ec;
745
  }
746
 
747
  .woocommerce .yith-plugin-ui table.form-table select,
748
- .yith-plugin-ui select{
749
  -webkit-appearance: none;
750
- line-height: 1;
751
  min-height: 35px;
752
  background: url("../images/arrow_down.svg") no-repeat right center;
753
  background-size: 35px 13px;
754
  border-radius: 8px;
 
755
  }
756
 
757
- .yith-plugin-ui .form-table th{
758
- width: 280px;
759
  padding-right: 50px;
760
  }
761
 
762
  /** BUTTONS **/
763
- .yith-plugin-ui .tablenav .button.action,
764
  .wp-core-ui .yith-plugin-ui .button-primary,
765
  .wp-core-ui .yith-plugin-ui .button-secondary,
766
  .yith-plugin-ui .yith-add-button,
@@ -788,12 +888,14 @@ YITH UI
788
  line-height: 26px;
789
  display: inline-block;
790
  text-decoration: none;
 
791
  }
 
792
  .wp-core-ui .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button-reset,
793
  .wp-core-ui .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button,
794
  .yith-plugin-ui .yith-plugin-fw-upload-button-reset,
795
  .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button-reset,
796
- .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button{
797
  height: 38px;
798
  }
799
 
@@ -803,49 +905,55 @@ YITH UI
803
  .yith-plugin-ui .yith-save-button:focus,
804
  .yith-plugin-ui .yith-edit-button:focus,
805
  .yith-plugin-ui .yith-update-button:focus,
806
- .wp-core-ui .yith-plugin-ui .button-secondary:focus{
807
  outline: none;
808
  box-shadow: none;
809
  }
810
 
 
 
 
 
 
 
 
 
811
  /** button with inside a span with icon class */
812
- .yith-plugin-ui .button-secondary span.yith-icon{
813
  margin-left: 0px;
814
  margin-right: 10px;
815
  line-height: normal;
816
  }
817
 
818
- .yith-plugin-ui .button-secondary span.yith-icon:before{
819
  color: #656565;
820
  font-size: 15px;
821
  }
822
 
823
- .yith-plugin-ui .tablenav .button.action,
824
  .wp-core-ui .yith-plugin-ui .button:focus,
825
  .wp-core-ui .yith-plugin-ui .button-secondary:focus,
826
  .yith-plugin-ui .yith-save-button:hover,
827
  .wp-core-ui .yith-plugin-ui .button-secondary:hover,
828
- .yith-plugin-ui .yith-plugin-fw-upload-button-reset:hover{
829
  background-color: #cacaca;
830
  color: #515151;
831
  }
832
 
833
  .wp-core-ui .yith-plugin-ui .button-primary,
834
- .yith-plugin-ui .tablenav .button.action,
835
  .yith-plugin-ui .button-secondary.yith-plugin-fw-select-all,
836
- .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button{
837
  background-color: #007694;
838
  color: #fff;
839
  }
840
 
841
- .yith-plugin-ui .tablenav .button.action:active,
842
- .yith-plugin-ui .tablenav .button.action:focus,
843
- .yith-plugin-ui .tablenav .button.action:hover,
844
  .yith-plugin-ui .yith-add-button,
845
  .wp-core-ui .yith-plugin-ui .button-primary:focus,
846
- .wp-core-ui .yith-plugin-ui .button-primary:hover{
847
  background-color: #375f6b;
848
  color: #fff;
 
849
  }
850
 
851
 
@@ -853,7 +961,7 @@ YITH UI
853
  .wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button:focus,
854
  .yith-plugin-ui .button-secondary.yith-plugin-fw-select-all:hover,
855
  .yith-plugin-ui .button-secondary.yith-plugin-fw-select-all:focus,
856
- .yith-plugin-ui .yith-plugin-fw-upload-button:hover{
857
  border-color: #007694;
858
  background: #007694;
859
  color: #fff;
@@ -866,13 +974,13 @@ YITH UI
866
  .yith-plugin-ui .yith-save-button:before,
867
  .yith-plugin-ui .yith-edit-button:before,
868
  .yith-plugin-ui .yith-update-button:before,
869
- .yith-plugin-ui .button-secondary:before{
870
  font-family: 'yith-icon';
871
  font-size: 10px;
872
  font-weight: 700;
873
  margin-right: 10px;
874
  vertical-align: bottom;
875
- display:inline-block;
876
  }
877
 
878
  /** yith-edit-button **/
@@ -880,25 +988,30 @@ YITH UI
880
  background-color: #7f9298;
881
  color: #fff;
882
  }
 
883
  .yith-plugin-ui .yith-edit-button:focus,
884
  .yith-plugin-ui .yith-edit-button:hover {
885
  background-color: #718085;
886
  color: #fff;
887
  }
888
- .yith-plugin-ui .yith-edit-button:before{
 
889
  content: "\e907";
890
  }
 
891
  /** yith-update-button **/
892
  .yith-plugin-ui .yith-update-button {
893
  background-color: #94aa09;
894
  color: #fff;
895
  }
 
896
  .yith-plugin-ui .yith-update-button:focus,
897
  .yith-plugin-ui .yith-update-button:hover {
898
  background-color: #7a9009;
899
  color: #fff;
900
  }
901
- .yith-plugin-ui .yith-update-button:before{
 
902
  content: "\e90b";
903
  font-size: 15px;
904
  }
@@ -909,6 +1022,7 @@ YITH UI
909
  background-color: #267390;
910
  color: #fff;
911
  }
 
912
  .yith-plugin-ui .yith-save-button:focus,
913
  .yith-plugin-ui .yith-save-button:hover {
914
  background-color: #1c4863;
@@ -918,111 +1032,140 @@ YITH UI
918
 
919
  /** yith-remove-button **/
920
 
921
- .yith-plugin-ui .button-secondary.yith-remove-button:before{
922
  content: "\e90d";
923
  font-size: 15px;
924
  }
925
 
926
 
927
  /** yith-add-button **/
928
-
929
- .yith-plugin-ui .yith-add-button:before{
930
  content: "\e90a";
931
  }
932
 
 
 
 
 
 
 
 
 
 
 
 
933
  /** yith-plugin-fw-upload-button **/
934
- .yith-plugin-ui button.yith-plugin-fw-upload-button:before{
935
  content: "\e90c";
936
  font-family: 'yith-icon';
937
  font-size: 19px;
938
  font-weight: 400;
939
  margin-right: 10px;
940
  vertical-align: middle;
941
- display:inline-block;
942
  }
 
943
  /** SELECT 2 **/
944
  .yith-plugin-ui .select2-container,
945
- .yith-plugin-ui .select2-selection--single{
946
  height: auto;
947
  padding: 2px;
948
  outline: none;
949
  }
950
 
951
- .yith-plugin-ui .select2-selection--single{
952
  margin: 0;
953
  border: 0;
954
  }
955
 
956
  /* old panel*/
957
 
958
- .yith-plugin-ui span.select2.select2-container.select2-container--default{
959
  border: 1px solid #d8d8d8;
960
- border-radius:8px;
961
  }
962
- .yith-plugin-ui span.select2.select2-container.select2-container--default:hover,
963
- .yith-plugin-ui span.select2.select2-container.select2-container--default:active,
964
- .yith-plugin-ui span.select2.select2-container.select2-container--default:focus {
 
965
  border-color: #a7d9ec;
966
  }
967
- .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
 
968
  color: #fff;
969
  }
 
970
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].select2-search__field,
971
- .yith-plugin-ui .yith-plugin-fw table.form-table input.select2-search__field{
972
  border: 0;
973
  padding: 0;
974
  height: initial;
975
  }
 
976
  .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice,
977
- .yith-plugin-ui .select2-selection__choice{
978
  color: #fff;
979
  background-color: #4e8ba2;
980
  border-radius: 12px;
981
  padding: 3px 11px;
982
  border-color: #33937e;
983
- font-size: 12px;
984
  }
985
 
986
- .yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__arrow:before{
987
  content: "\e900";
988
  font-family: 'yith-icon' !important;
989
  line-height: 36px;
990
  color: #d9d9d9;
991
  }
992
 
993
- .yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__arrow b{
994
  display: none;
995
  }
 
996
  .yith-plugin-ui .select2-container--open .select2-dropdown--below,
997
  .yith-plugin-ui .select2-container--open .select2-dropdown--above,
998
  .yith-plugin-fw-panel .select2-container--open .select2-dropdown--below,
999
  .yith-plugin-fw-panel .select2-container--open .select2-dropdown--above {
1000
  margin-top: 10px;
1001
  border-radius: 8px;
1002
- box-shadow:0 2px 4px 0 rgba(0,0,0,0.12),0 2px 10px 0 rgba(0,0,0,0.12) !important;
1003
  }
 
1004
  .yith-plugin-ui .select2-container--open .select2-dropdown--above,
1005
- .yith-plugin-fw-panel .select2-container--open .select2-dropdown--above{
1006
  margin-top: -10px;
1007
  }
 
1008
  .yith-plugin-ui .select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
1009
  .yith-plugin-ui .select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
1010
  .yith-plugin-fw-panel .select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
1011
- .yith-plugin-fw-panel .select2-container--default.select2-container--open.select2-container--above .select2-selection--single{
1012
  border-radius: 8px;
1013
  }
 
1014
  .yith-plugin-ui .select2-results .select2-results__group, .select2-results .select2-results__option:first-child,
1015
- .yith-plugin-fw-panel .select2-results .select2-results__group, .select2-results .select2-results__option:first-child{
1016
  border-top-left-radius: 8px;
1017
  border-top-right-radius: 8px;
1018
  }
 
 
1019
  .yith-plugin-ui .select2-results .select2-results__group,
1020
  .yith-plugin-ui .select2-results .select2-results__option:last-child,
1021
  .yith-plugin-fw-panel .select2-results .select2-results__group,
1022
- .yith-plugin-fw-panel .select2-results .select2-results__option:last-child{
 
 
 
 
1023
  border-bottom-left-radius: 8px;
1024
  border-bottom-right-radius: 8px;
1025
  }
 
 
 
 
1026
  .yith-plugin-ui .select2-container--default .select2-results__option[data-selected=true],
1027
  .yith-plugin-ui .select2-container--default .select2-results__option[aria-selected=true],
1028
  .yith-plugin-fw-panel .select2-container--default .select2-results__option[data-selected=true],
@@ -1030,17 +1173,18 @@ YITH UI
1030
  background-color: #fff;
1031
  outline: none;
1032
  }
 
1033
  .yith-plugin-ui .select2-container--default .select2-results__option--highlighted[aria-selected],
1034
  .yith-plugin-ui .select2-container--default .select2-results__option--highlighted[data-selected],
1035
  .yith-plugin-fw-panel .select2-container--default .select2-results__option--highlighted[aria-selected],
1036
- .yith-plugin-fw-panel .select2-container--default .select2-results__option--highlighted[data-selected]{
1037
  background-color: #e8eff1;
1038
  color: #4e8ba2;
1039
  outline: none;
1040
  }
1041
 
1042
  .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
1043
- .yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
1044
  float: right;
1045
  padding-left: 15px;
1046
  text-indent: -9999px;
@@ -1049,7 +1193,7 @@ YITH UI
1049
 
1050
  .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after,
1051
  .woocommerce .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after,
1052
- .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after{
1053
  float: right;
1054
  color: #fff;
1055
  content: "\e906";
@@ -1059,79 +1203,86 @@ YITH UI
1059
  text-indent: 0;
1060
  }
1061
 
1062
- .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after{
1063
  color: #000;
1064
  }
1065
 
1066
  .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after
1067
- .yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after{
1068
  color: #000;
1069
  }
 
1070
  .yith-plugin-ui .select2-container .select2-selection--multiple,
1071
- .yith-plugin-ui .select2-container--default.select2-container--focus .select2-selection--multiple{
1072
  border: 0;
1073
  }
1074
 
1075
- .yith-plugin-fw .select2-search input[type=text]{
1076
  border: 0;
1077
  padding: 0;
1078
  height: auto;
1079
  }
1080
- .yith-plugin-ui .yith-plugin-fw-select-field-wrapper span.yith-icon.icon-magnifier,
1081
- .yith-plugin-fw-panel .yith-plugin-fw-select-field-wrapper span.yith-icon.icon-magnifier {
 
1082
  position: absolute;
1083
  padding-top: 5px;
1084
  }
1085
 
1086
- .yith-plugin-ui input[type=text].select2-search__field{
1087
  border: 0;
1088
  padding: 0;
1089
  height: 30px;
1090
  }
 
1091
  .yith-plugin-ui .select2-container--default .select2-search--dropdown .select2-search__field,
1092
- .yith-plugin-fw-panel .select2-container--default .select2-search--dropdown .select2-search__field {
1093
  border: 1px solid #d9d9d9;
1094
  border-radius: 8px;
1095
  box-shadow: none;
1096
  }
 
1097
  .yith-plugin-ui .select2-dropdown,
1098
- .yith-plugin-fw-panel .select2-dropdown{
1099
  border: 1px solid #d9d9d9;
1100
  }
 
1101
  /** RADIO BUTTON **/
1102
- .yith-plugin-ui [type="radio"]:checked,
1103
- .yith-plugin-ui [type="radio"]:not(:checked) {
1104
  position: absolute;
1105
  left: -9999px;
1106
  }
 
1107
  .yith-plugin-ui [type="radio"]:checked + label,
1108
- .yith-plugin-ui [type="radio"]:not(:checked) + label
1109
- {
1110
  position: relative;
1111
  padding-left: 35px;
1112
  cursor: pointer;
1113
  line-height: 20px;
1114
  display: inline-block;
1115
  color: #716269;
1116
- font-size: 12px;
1117
  }
 
1118
  .yith-plugin-ui [type="radio"]:checked + label:before,
1119
- .yith-plugin-ui [type="radio"]:not(:checked) + label:before {
1120
  content: '';
1121
  position: absolute;
1122
  left: 0;
1123
  top: 0;
1124
- width: 18px;
1125
- height: 18px;
1126
  border: 1px solid #d8d8d8;
1127
  border-radius: 100%;
1128
  background: #fff;
1129
  }
 
1130
  .yith-plugin-ui [type="radio"]:checked + label:after,
1131
  .yith-plugin-ui [type="radio"]:not(:checked) + label:after {
1132
  content: '';
1133
- width: 12px;
1134
- height: 12px;
1135
  background: #4e8ba2;
1136
  position: absolute;
1137
  top: 4px;
@@ -1140,11 +1291,13 @@ YITH UI
1140
  -webkit-transition: all 0.2s ease;
1141
  transition: all 0.2s ease;
1142
  }
 
1143
  .yith-plugin-ui [type="radio"]:not(:checked) + label:after {
1144
  opacity: 0;
1145
  -webkit-transform: scale(0);
1146
  transform: scale(0);
1147
  }
 
1148
  .yith-plugin-ui [type="radio"]:checked + label:after {
1149
  opacity: 1;
1150
  -webkit-transform: scale(1);
@@ -1162,15 +1315,19 @@ YITH UI
1162
  border-radius: 3px;
1163
  display: inline-block;
1164
  position: relative;
 
1165
  }
1166
- .yith-plugin-ui input[type="checkbox"]:checked{
 
1167
  background-color: #4e8ba2;
1168
  border-color: #488197;
1169
  }
 
1170
  .yith-plugin-ui .forminp-checkbox span.description.inline {
1171
  margin-left: 10px;
1172
  }
1173
- .yith-plugin-ui input[type="checkbox"]:checked:before{
 
1174
  display: none;
1175
  }
1176
 
@@ -1189,55 +1346,63 @@ YITH UI
1189
  display: none;
1190
  }
1191
 
1192
- .yith-plugin-ui .yith-plugin-fw-onoff-container input + span{
1193
  border: 1px solid #d8d8d8;
1194
  background-color: #fff;
1195
- width:50px;
 
1196
  }
1197
 
1198
- .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before{
1199
  background-color: #d8d8d8;
1200
  }
1201
 
1202
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
1203
  width: 14px;
1204
  height: 14px;
1205
- top: 3px;
1206
- left: 4px;
1207
  background-color: #d8d8d8;
1208
  }
1209
- .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after{
 
1210
  content: 'OFF';
1211
  width: 14px;
1212
  height: 14px;
1213
- font-size: 10px;
1214
- padding-left:24px;
 
1215
  color: #979797;
 
 
1216
  }
 
1217
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span,
1218
- .yith-plugin-ui .yith-plugin-fw-onoff-container input.onoffchecked + span{
1219
  background-color: #fff;
1220
  border-color: #98aa36;
1221
  }
1222
 
1223
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before,
1224
- .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before{
1225
  background-color: #98aa36;
1226
- left:32px;
1227
  }
1228
 
1229
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after,
1230
- .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after{
1231
  content: 'ON';
1232
  color: #98aa36;
1233
  width: 14px;
1234
  height: 14px;
1235
  display: inline-block;
1236
- font-size: 10px;
 
1237
  padding: 0 10px;
 
1238
  }
1239
 
1240
- .yith-plugin-ui .yith-plugin-fw-onoff-container input + span{
1241
  text-indent: 0;
1242
  }
1243
 
@@ -1246,48 +1411,78 @@ YITH UI
1246
  DATEPICKER
1247
  */
1248
  .yith-plugin-ui div#ui-datepicker-div,
1249
- .yith-plugin-fw-panel div#ui-datepicker-div {
1250
  border: 0;
1251
- box-shadow:0 2px 4px 0 rgba(0,0,0,0.12),0 2px 10px 0 rgba(0,0,0,0.12) !important;
1252
  }
1253
 
1254
  .yith-plugin-ui .ui-datepicker-header.ui-widget-header,
1255
  .yith-plugin-fw-panel .ui-datepicker-header.ui-widget-header {
1256
- background:#4e8ba2;
1257
  color: #fff;
1258
  font-size: 11px;
1259
  line-height: 25px;
1260
- border:0;
1261
  min-height: 25px;
1262
  }
 
1263
  .yith-plugin-ui .ui-datepicker-title,
1264
- .yith-plugin-fw-panel .ui-datepicker-title{
1265
  line-height: 25px;
1266
  }
 
1267
  .yith-plugin-ui .ui-datepicker th,
1268
- .yith-plugin-fw-panel .ui-datepicker th{
1269
  color: #716269;
1270
  }
 
1271
  .yith-plugin-ui .ui-widget-header .ui-icon,
1272
  .yith-plugin-ui .ui-widget-header .ui-state-hover,
1273
- .yith-plugin-ui .ui-datepicker .ui-datepicker-prev,
1274
- .yith-plugin-ui .ui-datepicker .ui-datepicker-next,
1275
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-w,
1276
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-e,
1277
  .yith-plugin-fw-panel .ui-widget-header .ui-icon,
1278
  .yith-plugin-fw-panel .ui-widget-header .ui-state-hover,
1279
- .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-prev,
1280
- .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-next,
1281
  .yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-w,
1282
- .yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-e{
1283
  background: none;
1284
  content: "";
1285
  border: 0;
1286
  text-indent: 0;
1287
- width:15px;
1288
  height: 20px;
1289
- display:block;
1290
- overflow:hidden;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1291
  }
1292
 
1293
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-w:before,
@@ -1297,9 +1492,10 @@ DATEPICKER
1297
  font-family: 'yith-icon';
1298
  font-size: 12px;
1299
  font-weight: normal;
1300
- width:15px;
1301
- display:block;
1302
  }
 
1303
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-e:before,
1304
  .yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-e:before {
1305
  content: "\e902";
@@ -1308,37 +1504,39 @@ DATEPICKER
1308
  font-family: 'yith-icon';
1309
  font-size: 12px;
1310
  font-weight: normal;
1311
- width:15px;
1312
- display:block;
1313
  }
1314
 
1315
  /* arrow */
1316
- .yith-plugin-ui .ui-datepicker .ui-datepicker-prev,
1317
- .yith-plugin-ui .ui-datepicker .ui-datepicker-next,
1318
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev-hover,
1319
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-next-hover,
1320
- .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-prev,
1321
- .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-next,
1322
  .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev-hover,
1323
- .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-next-hover{
1324
  top: 1px;
1325
  cursor: pointer;
1326
  }
 
1327
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev,
1328
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev-hover,
1329
  .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev,
1330
- .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev-hover{
1331
  left: 5px;
1332
  }
 
1333
  .yith-plugin-ui .ui-datepicker .ui-datepicker-next,
1334
  .yith-plugin-ui .ui-datepicker-next.ui-datepicker-next-hover,
1335
  .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-next,
1336
- .yith-plugin-fw-panel .ui-datepicker-next.ui-datepicker-next-hover{
1337
  right: 1px;
1338
  }
1339
 
1340
- .yith-plugin-ui .ui-datepicker table,
1341
- .yith-plugin-fw-panel .ui-datepicker table{
1342
  font-size: 10px;
1343
  }
1344
 
@@ -1347,11 +1545,12 @@ DATEPICKER
1347
  .yith-plugin-ui .ui-widget-header .ui-state-default,
1348
  .yith-plugin-fw-panel .ui-state-default,
1349
  .yith-plugin-fw-panel .ui-widget-content .ui-state-default,
1350
- .yith-plugin-fw-panel .ui-widget-header .ui-state-default{
1351
- background:#fff;
1352
  border: 1px solid #d9d9d9;
1353
 
1354
  }
 
1355
  .yith-plugin-ui .ui-state-hover,
1356
  .yith-plugin-ui .ui-widget-content .ui-state-hover,
1357
  .yith-plugin-ui a.ui-state-default:focus,
@@ -1361,12 +1560,13 @@ DATEPICKER
1361
  .yith-plugin-fw-panel .ui-widget-content .ui-state-hover,
1362
  .yith-plugin-fw-panel a.ui-state-default:focus,
1363
  .yith-plugin-fw-panel .ui-widget-content .ui-state-focus,
1364
- .yith-plugin-fw-panel .ui-widget-header .ui-state-focus{
1365
- background:#ebf1f3;
1366
- border:1px solid #bfd5dd;
1367
  outline: none;
1368
  box-shadow: none;
1369
  }
 
1370
  .yith-plugin-ui .ui-widget-header .ui-state-hover, .woocommerce .yith-plugin-ui .ui-state-focus,
1371
  .yith-plugin-fw-panel .ui-widget-header .ui-state-hover, .woocommerce .yith-plugin-ui .ui-state-focus {
1372
  background: none;
@@ -1374,31 +1574,40 @@ DATEPICKER
1374
  }
1375
 
1376
  /** colorpicker **/
1377
- .yith-plugin-ui .yith-plugin-fw-colorpicker-field-wrapper .iris-picker,
1378
- .yith-plugin-ui .yith-plugin-fw-colorpicker-field-wrapper .wp-picker-holder {
 
 
 
 
1379
  display: none !important;
1380
  }
1381
- .yith-plugin-ui .yith-plugin-fw-colorpicker-field-wrapper .wp-picker-input-wrap {
 
1382
  display: inline !important;
1383
  }
1384
- .yith-plugin-ui .yith-plugin-fw-colorpicker-field-wrapper .wp-picker-active .iris-picker,
1385
- .yith-plugin-ui .yith-plugin-fw-colorpicker-field-wrapper .wp-picker-active .wp-picker-holder {
 
1386
  display: block !important;
1387
  }
1388
- .woocommerce .yith-plugin-ui .iris-picker{
1389
- border:0;
 
1390
  margin-top: 20px;
1391
  }
 
1392
  .yith-plugin-ui .yith-plugin-fw input[type=text].wp-color-picker {
1393
- border:0;
1394
  padding: 2px 5px;
1395
- height:30px;
1396
  }
1397
- .yith-plugin-ui .wp-color-result-text{
 
1398
  display: none;
1399
  }
1400
 
1401
- .yith-plugin-ui .wp-picker-container .wp-color-result.button{
1402
  width: 30px;
1403
  height: 30px;
1404
  border: 0;
@@ -1408,7 +1617,8 @@ DATEPICKER
1408
  display: inline-block;
1409
  vertical-align: middle;
1410
  }
1411
- .yith-plugin-ui .wp-picker-default-custom{
 
1412
  cursor: pointer;
1413
  width: 25px;
1414
  padding: 0 5px;
@@ -1416,6 +1626,7 @@ DATEPICKER
1416
  vertical-align: middle;
1417
  position: relative;
1418
  }
 
1419
  .yith-plugin-ui .wp-picker-default-custom input.button {
1420
  opacity: 0;
1421
  margin: 0;
@@ -1427,20 +1638,22 @@ DATEPICKER
1427
  bottom: 0;
1428
  z-index: 2;
1429
  }
1430
- .yith-plugin-ui .wp-picker-default-custom:before{
 
1431
  content: "\e910";
1432
  text-indent: 0;
1433
  font-family: 'yith-icon';
1434
  font-size: 20px;
1435
  color: #d8d8d8;
1436
  font-weight: normal;
1437
- width:15px;
1438
- display:block;
1439
  background: none;
1440
  line-height: 20px;
1441
  margin-left: 8px;
1442
  }
1443
- .yith-plugin-ui .wp-picker-container{
 
1444
  width: auto;
1445
  display: inline-block;
1446
  border: 1px solid #d9d9d9;
@@ -1448,26 +1661,26 @@ DATEPICKER
1448
  padding: 5px;
1449
  }
1450
 
1451
- .yith-plugin-ui .iris-picker .iris-square-inner{
1452
  box-shadow: none;
1453
  border: 1px solid #d9d9d9;
1454
  }
1455
 
1456
- .yith-plugin-ui .yith-single-colorpicker{
1457
  display: inline-block;
1458
  width: 220px;
1459
  }
1460
 
1461
- .yith-plugin-ui .yith-single-colorpicker > label{
1462
  display: block;
1463
  font-size: 11px;
1464
  font-weight: 600;
1465
- margin-bottom: 10px;
1466
  }
1467
 
1468
  /* RANGE SLIDER */
1469
- .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle{
1470
- top: -45px!important;
1471
  }
1472
 
1473
  .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle {
@@ -1489,6 +1702,7 @@ DATEPICKER
1489
  transition: opacity .3s ease-in-out 0s;
1490
  box-shadow: 0px 1px 7px 0px rgba(1, 1, 1, 0.13);
1491
  }
 
1492
  .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle:before {
1493
  position: absolute;
1494
  bottom: -3px;
@@ -1503,10 +1717,12 @@ DATEPICKER
1503
  -ms-transform: rotate(-45deg);
1504
  transform: rotate(-45deg);
1505
  }
1506
- .yith-plugin-ui .ui-slider.ui-widget-content .ui-widget-header{
1507
- background: #4e8ba2 ;
 
1508
  }
1509
- .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle:after{
 
1510
  content: '';
1511
  width: 17px;
1512
  height: 17px;
@@ -1517,12 +1733,13 @@ DATEPICKER
1517
  border-radius: 50%;
1518
  box-shadow: 0px 1px 6px 0px rgba(1, 1, 1, 0.25);
1519
  }
1520
- .yith-plugin-ui .ui-slider.ui-widget-content{
 
1521
  height: 5px !important;
1522
  }
1523
 
1524
- .yith-plugin-ui .ui-slider .minCaption,
1525
- .yith-plugin-ui .ui-slider .maxCaption {
1526
  font-weight: 700;
1527
  font-size: 12px;
1528
  }
@@ -1530,56 +1747,78 @@ DATEPICKER
1530
 
1531
  /* ADD_BOX AND TOGGLE */
1532
  .yith-plugin-ui .yith-add-box,
1533
- .yith-plugin-ui .yith-toggle-row{
1534
- width:70%;
1535
  border: 1px solid #d9d9d9;
1536
- box-shadow:none;
1537
  border-radius: 4px;
1538
  margin: 20px 0;
1539
  padding: 10px;
1540
  box-sizing: border-box;
1541
  background: white;
1542
  }
1543
- .yith-plugin-ui .yith-add-box{
1544
- padding: 30px 25px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1545
  display: none;
1546
  }
1547
- .yith-plugin-ui .yith-toggle-title{
 
1548
  position: relative;
1549
  }
 
1550
  .yith-plugin-ui #plugin-fw-wc .yith-toggle-title h3,
1551
- .yith-plugin-ui .yith-toggle-title h3{
 
1552
  padding: 0px 20px 0px 25px;
1553
- margin: 0;
 
1554
  display: inline-block;
1555
  position: relative;
1556
  min-width: 173px;
1557
  box-sizing: border-box;
1558
  font-weight: 600;
1559
  font-size: 15px;
 
 
1560
  }
1561
 
1562
- .yith-plugin-ui .yith-toggle-title .subtitle{
1563
  padding-left: 0;
1564
- padding-top:8px;
1565
  font-size: 12px;
1566
  }
1567
 
1568
- .yith-plugin-ui .yith-toggle{
1569
  position: absolute;
1570
  width: 30px;
1571
- height: 30px;
1572
- display: block;
1573
  cursor: pointer;
1574
- left: 0px;
1575
  top: 0;
1576
  bottom: 0;
 
 
 
1577
  }
1578
- .yith-plugin-ui .yith-toggle > span:before{
 
1579
  color: #405e69;
1580
  }
1581
 
1582
- .yith-plugin-ui .yith-toggle > span{
1583
  position: absolute;
1584
  right: 50%;
1585
  transition: transform .3s;
@@ -1587,133 +1826,170 @@ DATEPICKER
1587
  }
1588
 
1589
 
1590
- .yith-plugin-ui .yith-toggle-row-opened .yith-toggle span{
1591
- transform: rotateZ(90deg);
1592
  }
1593
 
1594
- .yith-plugin-ui .yith-toggle-content{
1595
  display: none;
1596
  position: relative;
1597
  padding: 30px 25px;
1598
  }
1599
- .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content{
1600
- /* display: block;*/
 
1601
  }
 
1602
  .yith-plugin-ui .yith-add-box-row,
1603
- .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row{
1604
  display: table;
1605
- margin-bottom: 20px;
1606
  }
 
1607
  .yith-plugin-ui .yith-add-box-row label,
1608
- .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row label{
1609
  display: table-cell;
1610
- width: 250px;
1611
- padding-right:40px;
1612
  color: #33373b;
1613
- font-size: 13px;
1614
  vertical-align: top;
1615
  font-weight: 600;
1616
  }
1617
-
 
 
1618
  .yith-plugin-ui .yith-add-box-row .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper),
1619
- .yith-plugin-ui .yith-toggle-row-opened .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper) {
1620
- /* display: table-cell;*/
1621
  width: auto;
1622
  float: none;
1623
  vertical-align: middle;
1624
  position: relative;
1625
  }
 
1626
  .yith-plugin-ui .yith-add-box-row span.yith-icon,
1627
- .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row span.yith-icon{
1628
  position: absolute;
1629
  right: 15px;
1630
  top: 0;
1631
  bottom: 0;
1632
  }
 
1633
  .yith-plugin-ui .yith-add-box-buttons,
1634
- .yith-plugin-ui .yith-toggle-content-buttons{
1635
  text-align: right;
1636
  }
 
1637
  .yith-plugin-ui .yith-toggle-onoff {
1638
  position: absolute;
1639
  cursor: pointer;
1640
  right: 0;
1641
  }
1642
- .yith-plugin-ui .ui-sortable .yith-toggle-onoff{
 
1643
  right: 30px;
1644
  }
1645
- .yith-plugin-ui .yith-toggle-row .icon-drag{
 
1646
  position: absolute;
1647
  right: 0;
1648
  top: 25%;
1649
  bottom: 0;
1650
  line-height: 1;
1651
  }
1652
- .yith-plugin-ui .yith-toggle-row.with-subtitle .yith-toggle{
1653
- top: auto;
1654
- }
1655
- .yith-plugin-ui .yith-toggle-row.with-subtitle .yith-toggle-onoff{
1656
  top: 25%;
1657
  }
1658
 
1659
  /** SPINNER **/
1660
- .yith-plugin-ui .spinner{
1661
  vertical-align: -5px;
1662
  float: none;
1663
  }
1664
 
1665
- .yith-plugin-ui .spinner.show{
1666
  visibility: visible;
1667
  }
1668
 
1669
  /* LIST TABLE */
1670
- .yith-plugin-ui .form-table .list-table td{
1671
  padding: 15px 0px;
1672
  }
1673
- .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table .bulkactions select{
 
1674
  border: 1px solid #d8d8d8;
1675
  max-width: 200px;
1676
  max-height: 30px;
1677
  padding: 0 10px;
 
1678
  }
1679
- .yith-plugin-ui .form-table .list-table th{
 
1680
  width: initial;
1681
  }
1682
 
1683
- .yith-plugin-ui #plugin-fw-wc table.form-table th.check-column{
1684
- padding-left: 3px;
1685
- }
1686
- .yith-plugin-ui #plugin-fw-wc table.wp-list-table tbody td{
1687
  padding-left: 20px;
1688
  }
1689
- .yith-plugin-ui .yith-plugin-fw-list-table h2{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1690
  border: 0;
1691
  padding: 35px 0 15px;
1692
  display: inline-block;
1693
  margin-right: 10px;
1694
  }
1695
- .yith-plugin-ui .form-table .yith-plugin-fw-list-table table th{
 
1696
  vertical-align: middle;
1697
  }
1698
- .yith-plugin-ui .yith-plugin-fw-list-table-container{
 
1699
  padding: 0 20px;
1700
  }
1701
- .yith-plugin-ui #doaction, .yith-plugin-ui #doaction2, .yith-plugin-ui #post-query-submit{
1702
- margin-left: 10px;
 
 
 
 
1703
  height: 33px;
 
 
1704
  }
1705
- .yith-plugin-ui .bulkactions{
 
1706
  margin: 10px 0;
1707
  }
1708
- .yith-plugin-ui .form-table td p.yith-section-description{
1709
- color:#716269;
 
1710
  margin-bottom: 20px;
1711
  }
1712
 
1713
  /** Time picker width*/
1714
  .yith-plugin-ui input.ui-timepicker-input {
1715
- width: 100px!important;
1716
  }
 
1717
  /** date format **/
1718
  .yith-plugin-ui .yith-plugin-fw-date-format code {
1719
  margin-left: 30px;
@@ -1730,51 +2006,64 @@ DATEPICKER
1730
  float: left;
1731
  }
1732
 
 
 
 
 
1733
  .yith-plugin-ui td.forminp-checkbox.three-cols fieldset {
1734
- width: calc(33% - 0px);
1735
- padding-right: 0px;
1736
  float: left;
1737
  }
1738
 
 
 
 
1739
 
1740
  .yith-plugin-fw-checkbox-field-wrapper {
1741
  display: inline-block !important;
1742
- width: 19px !important;
1743
- margin-right: 10px;
1744
  }
 
1745
  .yith-plugin-fw-checkbox-field-wrapper + span.description {
1746
  display: inline-block;
1747
  vertical-align: middle;
1748
  margin: 0;
1749
  }
 
1750
  .yith-plugin-ui span.description {
1751
  margin-top: 10px;
 
1752
  }
 
1753
  .yith-plugin-fw-option-with-description {
1754
  display: table-cell;
1755
  width: auto;
1756
  vertical-align: top;
1757
  }
 
1758
  /** YITH PANEL **/
1759
- .yith-plugin-ui #yith-plugin-fw-panel{
1760
  margin-top: -10px;
1761
  }
1762
- .yith-plugin-ui #plugin-fw-wc, .yith-plugin-ui #yith-plugin-fw-panel{
 
1763
  padding-top: 0;
1764
  }
1765
- .yith-plugin-ui .plugin-option tr{
 
1766
  border: 0;
1767
  }
1768
 
1769
- @media screen and (max-width: 1440px){
1770
  .yith-plugin-ui .yith-add-box,
1771
- .yith-plugin-ui .yith-toggle-row{
1772
  width: 80%;
1773
  }
1774
  }
1775
- @media screen and (max-width: 1024px){
 
1776
  .yith-plugin-ui .yith-add-box,
1777
- .yith-plugin-ui .yith-toggle-row{
1778
  width: 90%;
1779
  }
1780
 
@@ -1785,36 +2074,49 @@ DATEPICKER
1785
  }
1786
 
1787
  .yith-plugin-ui td.forminp-checkbox.three-cols fieldset {
1788
- width: calc(50% - 0px);
1789
- padding-right: 0px;
1790
  float: left;
1791
  }
 
 
 
 
 
 
 
 
1792
  }
1793
- @media screen and (max-width: 782px){
1794
- .yith-plugin-fw-banner.yith-plugin-fw-banner-free{
 
1795
  height: auto;
1796
  background-color: #a9c7d3;
1797
  }
1798
- .yith-plugin-fw-banner.yith-plugin-fw-banner-free ul{
 
1799
  width: 90%;
1800
  text-align: center;
1801
  }
1802
- .yith-plugin-fw-banner.yith-plugin-fw-banner-free li img{
 
1803
  width: 90%;
1804
  margin: 0 auto;
1805
  }
1806
- .yith-plugin-fw-banner h1{
 
1807
  line-height: 1.2em;
1808
  }
1809
 
1810
  .yith-plugin-ui .yith-add-box,
1811
- .yith-plugin-ui .yith-toggle-row{
1812
  width: 100%;
1813
  }
1814
 
1815
  .yith-plugin-ui td.forminp-checkbox.two-cols fieldset,
1816
- .yith-plugin-ui td.forminp-checkbox.three-cols fieldset{
1817
  width: 100%;
 
1818
  }
1819
 
1820
  }
1
  .yith-plugin-fw span.description {
2
+ display: block;
3
+ margin-top: 5px;
4
+ font-size: 12px;
5
+ color: #777;
6
+ font-style: italic;
7
+ clear: both;
8
  }
9
 
10
  .yith-plugin-fw span.description.inline {
11
+ display: inline-block;
12
+ margin: 0 0 0 5px;
13
  }
14
 
15
  .yith-disabled {
16
+ opacity: 0.3;
17
+ pointer-events: none;
18
  }
19
 
20
  .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper) {
21
+ display: block;
22
+ width: 100%;
23
  }
24
 
25
  .yith-plugin-fw-field-wrapper span.desc {
26
+ display: block;
27
+ width: 100%;
28
  }
29
 
30
  .yith-plugin-fw-title-field-wrapper h3.title {
31
+ width: 100%;
32
  }
33
 
34
  .the-metabox .yith-plugin-fw-title-field-wrapper h3.title {
35
+ float: left;
36
  }
37
 
38
  .yith-plugin-fw input[type=email],
41
  .yith-plugin-fw select,
42
  .woocommerce .yith-plugin-fw table.form-table input[type=email],
43
  .woocommerce .yith-plugin-fw table.form-table input[type=number],
44
+ .yith-plugin-ui input[type=password],
45
  .woocommerce .yith-plugin-fw table.form-table input[type=text]:not(.select2-search__field),
46
  .woocommerce .yith-plugin-fw table.form-table select {
47
+ width: 400px;
48
+ max-width: 100%;
49
+ height: 30px;
50
+ padding: 5px;
51
  }
52
 
53
  .woocommerce .yith-plugin-fw table.form-table input[type=text].wp-color-picker,
54
  .woocommerce .yith-plugin-fw table.form-table input[type=text].yith-plugin-fw-colorpicker,
55
  .yith-plugin-fw input[type=text].wp-color-picker,
56
  .yith-plugin-fw input[type=text].yith-plugin-fw-colorpicker {
57
+ width: 6em;
58
+ max-width: none;
59
+ height: auto;
60
+ padding: 3px 5px;
61
  }
62
 
63
  .woocommerce .yith-plugin-fw table.form-table input[type=text].colorpick,
64
  .yith-plugin-fw input[type=text].colorpick {
65
+ width: 6em;
66
+ max-width: none;
67
+ height: auto;
68
+ padding: 6px;
69
  }
70
 
71
  .yith-plugin-fw input.select2-search__field,
72
  .yith-plugin-fw .select2-container .select2-search--inline .select2-search__field,
73
  .woocommerce .yith-plugin-fw input.select2-search__field,
74
  .woocommerce .yith-plugin-fw table.form-table input.select2-search__field {
75
+ padding: 3px;
76
+ }
77
+
78
+ .yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
79
+ line-height: 27px;
80
  }
81
 
82
  .yith-plugin-fw textarea {
83
+ width: 400px;
84
+ max-width: 100%;
85
+ padding: 5px;
86
  }
87
 
88
  /* ------------- ICONS ------------- */
89
  .yit-icons-manager-wrapper {
90
+ width: 100%;
91
+ max-width: 400px;
92
  }
93
 
94
  .yit-icons-manager-text {
95
+ width: 100%;
96
  }
97
 
98
  .yit-icons-manager-icon-text {
99
+ width: calc(100% - 35px) !important;
100
+ height: 30px;
101
+ float: left;
102
+ margin: 0;
103
  }
104
 
105
  .yit-icons-manager-icon-preview {
106
+ width: 30px;
107
+ height: 30px;
108
+ margin-right: 5px;
109
+ float: left;
110
+ padding-top: 6px;
111
+ box-sizing: border-box;
112
+ text-align: center;
113
+ background: #f1f1f1;
114
  }
115
 
116
  .yit-icons-manager-list-wrapper {
117
+ margin: 10px 0;
118
+ box-shadow: 0 0 0 1px #ddd;
119
  }
120
 
121
  ul.yit-icons-manager-list {
122
+ width: 100%;
123
+ height: 300px;
124
+ overflow-y: scroll;
125
+ margin: 0;
126
  }
127
 
128
  ul.yit-icons-manager-list li {
129
+ float: left;
130
+ width: 30px;
131
+ height: 30px;
132
+ padding-top: 6px;
133
+ box-sizing: border-box;
134
+ text-align: center;
135
+ background: #f1f1f1;
136
+ margin: 1px;
137
+ cursor: pointer;
138
  }
139
 
140
  ul.yit-icons-manager-list li:hover {
141
+ background: #c5dcf6;
142
  }
143
 
144
  ul.yit-icons-manager-list li.active {
145
+ background: #d4f0ff;
146
  }
147
 
148
  .yit-icons-manager-action-set-default {
149
+ margin-bottom: 0;
150
  }
151
 
152
  .yit-icons-manager-default-icon-preview {
153
+ height: 100%;
154
+ display: inline-block;
155
+ padding-left: 10px;
156
+ border-left: 1px solid #ccc;
157
+ margin-left: 10px;
158
  }
159
 
160
  /* ------- Text Array ------- */
161
  .yith-plugin-fw-text-array-table td {
162
+ padding: 1px;
163
  }
164
 
165
  .yith-plugin-fw-text-array-table input[type=text],
166
  .woocommerce table.form-table table.yith-plugin-fw-text-array-table input[type=text] {
167
+ width: 100%;
168
  }
169
 
170
  /* ------- Image Gallery ------- */
171
  .yith-plugin-fw .image-gallery ul li {
172
+ display: inline-block;
173
+ width: 80px;
174
+ margin-left: 10px;
175
+ position: relative;
176
  }
177
 
178
  .yith-plugin-fw .image-gallery ul li img {
179
+ width: 80px;
180
+ border: 1px solid #ccc;
181
  }
182
 
183
  .yith-plugin-fw .image-gallery ul li ul {
184
+ position: absolute;
185
+ top: -6px;
186
+ right: -1px;
187
+ width: 20px;
188
+ height: 20px;
189
  }
190
 
191
  .yith-plugin-fw .image-gallery ul a.delete {
192
+ background: url(../images/x.png) no-repeat;
193
+ width: 20px;
194
+ height: 20px;
195
+ display: block;
196
+ text-indent: -99999px;
197
  }
198
 
199
  /* ------- OnOff ------- */
200
  .yith-plugin-fw-onoff-container {
201
+ display: inline-block;
202
  }
203
 
204
  .yith-plugin-fw-onoff-container input {
205
+ display: none;
206
  }
207
 
208
  .yith-plugin-fw-onoff-container input + span {
210
  text-indent: -9999px;
211
  display: block;
212
  width: 36px;
213
+ line-height: 1;
214
  height: 20px;
215
  background: #a4a4a4;
216
  border-radius: 24px;
218
  transition: all 0.3s;
219
  }
220
 
221
+
222
  .yith-plugin-fw-onoff-container input + span:before {
223
+ content: '';
224
+ background: #fff;
225
+ width: 16px;
226
+ height: 16px;
227
+ border-radius: 50%;
228
+ position: absolute;
229
+ top: 2px;
230
+ left: 2px;
231
+ transition: all 0.3s;
232
  }
233
 
234
  .yith-plugin-fw-onoff-container input:checked + span,
235
  .yith-plugin-fw-onoff-container input.onoffchecked + span {
236
+ background: #0073aa;
237
  }
238
 
239
  .yith-plugin-fw-onoff-container input:checked + span:before,
240
  .yith-plugin-fw-onoff-container input.onoffchecked + span:before {
241
+ left: 18px;
242
  }
243
 
244
  /* ------- Preview ------- */
245
  .yith-plugin-fw-preview-field {
246
+ max-height: 200px;
247
  }
248
 
249
  /* ------- Radio ------- */
250
  .yith-plugin-fw-radio input[type=radio] {
251
+ margin: 0 3px 0 0;
252
  }
253
 
254
  .yith-plugin-fw-radio__row {
255
+ margin-bottom: 8px;
256
  }
257
 
258
  /* ------- Sidebar Layout ------- */
259
  .yith-plugin-fw-sidebar-layout input[type="radio"] {
260
+ display: none;
261
+ width: 0px;
262
  }
263
 
264
  .yith-plugin-fw-sidebar-layout input[type="radio"]:first-child {
265
+ margin-right: -2px;
266
  }
267
 
268
  .yith-plugin-fw-sidebar-layout input[type="radio"] + img {
269
+ border: 2px solid #fff;
270
+ padding: 1px;
271
  }
272
 
273
  .yith-plugin-fw-sidebar-layout input[type="radio"] + img:hover {
274
+ cursor: pointer;
275
  }
276
 
277
  .yith-plugin-fw-sidebar-layout input[checked] + img {
278
+ border: 2px solid #f2ad35;
279
+ padding: 1px;
280
  }
281
 
282
  .yith-plugin-fw-sidebar-layout select {
283
+ vertical-align: 12px;
284
  }
285
 
286
  .yit-admin-panel-content-wrap .yith-plugin-fw-sidebar-layout label {
287
+ font-weight: bold;
288
+ width: 200px;
289
+ float: left;
290
+ line-height: 23px;
291
+ margin-left: -230px;
292
  }
293
 
294
  /* ------- Slider ------- */
295
  .yith-plugin-fw .slider {
296
+ padding-top: 20px;
297
  }
298
 
299
  .ui-slider .minCaption {
300
+ position: absolute;
301
+ right: 95%;
302
+ top: -6px;
303
+ margin-right: 11px;
304
  }
305
 
306
  .ui-slider .maxCaption {
307
+ position: absolute;
308
+ left: 95%;
309
+ top: -6px;
310
+ margin-left: 20px;
311
  }
312
 
313
  .ui-slider-horizontal .ui-slider-handle {
314
+ background: #fff;
315
+ border: 0px !important;
316
+ top: -12px !important;
317
+ border-radius: 50%;
318
+ width: 27px !important;
319
+ height: 27px !important;
320
+ box-sizing: border-box;
321
+ box-shadow: 0 1px 7px -1px rgba(0, 0, 0, 0.5);
322
+ font-size: 13px;
323
+ padding: 6px 0;
324
+ font-weight: 600;
325
+ color: #555;
326
+ text-align: center;
327
  }
328
 
329
  .ui-slider.ui-widget-content {
330
+ background: #ccc;
331
+ border: none !important;
332
+ height: 3px !important;
333
+ border-radius: 3px !important;
334
+ width: 90%;
335
+ margin: 15px 5% 20px 5%;
336
  }
337
 
338
  .iris-slider-offset.ui-slider.ui-widget-content {
339
+ background: transparent !important;
340
+ height: auto !important;
341
  }
342
 
343
  .ui-slider.ui-widget-content .ui-widget-header {
344
+ background: #4b93ff;
345
+ left: 0px !important;
346
+ -webkit-border-radius: 3px;
347
+ -moz-border-radius: 3px;
348
+ -khtml-border-radius: 3px;
349
+ border-radius: 3px;
350
  }
351
 
352
  /* ------- Select2 ------- */
353
  .yith-plugin-fw-select2-wrapper {
354
+ width: 400px;
355
  }
356
 
357
  /* ------- Textarea ------- */
358
  .yith-plugin-fw-textarea-editor-field-wrapper {
359
+ max-width: 1000px;
360
+ clear: both;
361
  }
362
 
363
  .yith-plugin-fw-textarea-editor-field-wrapper textarea.wp-editor-area,
364
  .woocommerce table.form-table .yith-plugin-fw-textarea-editor-field-wrapper textarea.wp-editor-area {
365
+ width: 100%;
366
  }
367
 
368
  /* ------- Buttons ------- */
369
  .yith-plugin-fw-buttons-field-wrapper {
370
+ margin-top: 7px;
371
  }
372
 
373
  /* ------- Select Images ------- */
374
  .yith-plugin-fw-select-images__list {
375
+ margin: 0;
376
+ display: flex;
377
+ flex-wrap: wrap;
378
  }
379
 
380
  .yith-plugin-fw-select-images__item {
381
+ width: calc(20% - 10px);
382
+ min-width: 150px;
383
+ margin: 0 10px 10px 0;
384
+ padding: 10px;
385
+ box-sizing: border-box;
386
+ cursor: pointer;
387
+ transition: all .3s;
388
+ border: 2px solid #eee;
389
+ display: flex;
390
+ flex-direction: column;
391
+ justify-content: space-between;
392
  }
393
 
394
  .yith-plugin-fw-select-images__item:hover,
395
  .yith-plugin-fw-select-images__item.yith-plugin-fw-select-images__item--selected {
396
+ border-color: #07bcce;
397
  }
398
 
399
  .yith-plugin-fw-select-images__item__label {
400
+ text-align: center;
401
+ font-weight: 600;
402
+ margin-bottom: 10px;
403
  }
404
 
405
  .yith-plugin-fw-select-images__item img {
406
+ display: block;
407
+ max-width: 100%;
408
+ margin: 0 auto;
409
  }
410
 
411
  /****************
413
  ****************/
414
  @font-face {
415
  font-family: 'yith-icon';
416
+ src: url('../fonts/yith-icon.eot?7ik896');
417
+ src: url('../fonts/yith-icon.eot?7ik896#iefix') format('embedded-opentype'),
418
  url('../fonts/yith-icon.ttf?7ik896') format('truetype'),
419
  url('../fonts/yith-icon.woff?7ik896') format('woff'),
420
  url('../fonts/yith-icon.svg?7ik896#yith-icon') format('svg');
422
  font-style: normal;
423
  }
424
 
425
+ [class^="icon-"], [class*=" icon-"][class^="yith-icon-"], [class*=" yith-icon-"] {
426
  /* use !important to prevent issues with browser extensions that change fonts */
427
  font-family: 'yith-icon' !important;
428
  speak: none;
436
  -webkit-font-smoothing: antialiased;
437
  -moz-osx-font-smoothing: grayscale;
438
  }
439
+
440
+ .yith-icon-calendar_add:before {
441
+ content: "\e913";
442
+ color: #757575;
443
+ }
444
+
445
+ .yith-icon-calendar_money:before {
446
+ content: "\e914";
447
+ color: #757575;
448
+ }
449
+
450
+ .yith-icon-calendar2:before {
451
+ content: "\e915";
452
+ color: #757575;
453
+ }
454
+
455
+ .yith-icon-people:before {
456
+ content: "\e916";
457
+ color: #757575;
458
+ }
459
+
460
+ .yith-icon-shield_money:before {
461
+ content: "\e917";
462
+ color: #757575;
463
+ }
464
+
465
+ .yith-icon-time_check:before {
466
+ content: "\e918";
467
+ color: #757575;
468
+ }
469
+
470
+ .yith-icon-world_settings:before {
471
+ content: "\e919";
472
+ color: #757575;
473
+ }
474
+
475
+ .yith-icon-arrow_eye_closed:before {
476
+ content: "\e912";
477
+ color: #757575;
478
+ }
479
+
480
+ .yith-icon-arrow_eye:before {
481
+ content: "\e911";
482
+ color: #757575;
483
+ }
484
+
485
+ .yith-icon-reset:before {
486
+ content: "\e910";
487
+ color: #757575;
488
+ }
489
+
490
+ .yith-icon-drag:before {
491
  content: "\e90f";
492
+ color: #757575;
493
+ }
494
+
495
+ .yith-icon-trash:before {
496
+ content: "\e90d";
497
+ color: #757575;
498
+ }
499
+
500
+ .yith-icon-info:before {
501
+ content: "\e90e";
502
+ color: #757575;
503
  }
504
+
505
+ .yith-icon-arrow_down:before {
506
  content: "\e900";
507
+ color: #757575;
508
  }
509
+
510
+ .yith-icon-arrow_left:before {
511
  content: "\e901";
512
+ color: #757575;
513
  }
514
+
515
+ .yith-icon-arrow_right:before {
516
  content: "\e902";
517
+ color: #757575;
518
  }
519
+
520
+ .yith-icon-arrow_up:before {
521
  content: "\e903";
522
+ color: #757575;
523
  }
524
+
525
+ .yith-icon-calendar:before {
526
  content: "\e904";
527
+ color: #757575;
528
  }
529
+
530
+ .yith-icon-check:before {
531
  content: "\e905";
532
+ color: #757575;
533
  }
534
+
535
+ .yith-icon-close:before {
536
  content: "\e906";
537
+ color: #757575;
538
  }
539
+
540
+ .yith-icon-edit:before {
541
  content: "\e907";
542
+ color: #757575;
543
  }
544
+
545
+ .yith-icon-magnifier:before {
546
  content: "\e908";
547
+ color: #757575;
548
  }
549
+
550
+ .yith-icon-pencil:before {
551
  content: "\e909";
552
+ color: #757575;
553
  }
554
+
555
+ .yith-icon-plus:before {
556
  content: "\e90a";
557
+ color: #757575;
558
  }
559
+
560
+ .yith-icon-update:before {
561
  content: "\e90b";
562
+ color: #757575;
563
  }
564
+
565
+ .yith-icon-upload:before {
566
  content: "\e90c";
567
+ color: #757575;
 
 
 
 
 
 
 
 
 
 
 
 
568
  }
569
+
570
+ .yith-plugin-fw-banner {
571
  width: 100%;
572
  height: 75px;
573
  background: url('../images/banner-premium.png');
574
  }
575
+
576
+ .yith-plugin-fw-banner.yith-plugin-fw-banner-free {
577
  height: 290px;
578
  background: url('../images/banner-free.png') no-repeat;
579
  }
580
+
581
+ .yith-plugin-fw-banner.yith-plugin-fw-banner-free h1 {
582
  max-width: auto;
583
+ text-align: left;
584
  margin-left: 110px;
585
  padding-top: 15px;
586
  padding-bottom: 8px;
587
  }
588
 
589
+ .yith-plugin-fw-banner h1 {
590
  text-transform: uppercase;
591
  color: #0c5777;
592
  font-size: 15px;
597
  box-sizing: border-box;
598
  }
599
 
600
+ .yith-plugin-fw-banner span {
601
+ font-style: italic;
602
  display: block;
603
  font-size: 15px;
604
+ color: #214249;
605
+ text-transform: none;
606
  text-align: right;
607
  }
608
 
609
  .yith-plugin-fw-banner a,
610
+ .yith-plugin-fw-banner a:focus {
611
  text-decoration: none;
612
  outline: none;
613
  box-shadow: none;
614
  }
615
 
616
+ .yith-banners ul {
617
  list-style: none;
618
  margin-left: 10px;
619
  }
620
 
621
+ .yith-banners ul li {
622
  display: inline-block;
623
  margin-left: 10px;
624
  }
625
+
626
+ .yith-plugin-ui a {
627
  outline: none;
628
  box-shadow: none;
629
  }
630
 
631
+ .yith-plugin-ui {
632
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
633
  }
634
 
635
+ .yith-plugin-ui #wpwrap h2.nav-tab-wrapper, .yith-plugin-ui #wpbody-content h2.nav-tab-wrapper {
636
+ margin-top: 10px;
637
  }
638
 
639
+ .yith-plugin-ui .nav-tab {
640
  margin-left: 0px;
641
  margin-right: 2px;
642
  background-color: #336374;
643
  color: #fff;
644
+ font-size: 15px;
645
  padding: 7px 20px;
646
  border: 0;
647
  }
648
+
649
+ .yith-plugin-ui .nav-tab:first-child {
650
  border-left: 1px solid #d9d9d9;
651
  }
652
 
653
+ .yith-plugin-ui .nav-tab.yith-premium {
654
  background-color: #be421c;
655
  }
656
+
657
+ .yith-plugin-ui .nav-tab-active {
658
  background-color: #fff;
659
  color: #336374;
660
+ border-bottom: 1px solid #fff;
661
  }
662
+
663
+ .yith-plugin-ui .nav-tab-active.yith-premium {
664
  background-color: #fff;
665
  color: #be421c;
666
  }
667
+
668
+ .yith-plugin-ui #plugin-fw-wc {
669
  padding-top: 0px;
670
  }
671
 
672
+ .yith-plugin-ui .form-table td {
673
  padding: 15px 20px;
674
  }
675
 
676
+ .yith-plugin-ui.metaboxes-tab label {
677
  color: #33373b;
678
+ font-size: 14px;
679
+ margin-left: -248px;
680
+ }
681
+
682
+ .yith-plugin-ui.metaboxes-tab .the-metabox {
683
+ margin: 40px 0 40px 290px;
684
+ margin-left: 264px;
685
+ }
686
+
687
+ .yith-plugin-ui.metaboxes-tab label {
688
+ width: 200px;
689
+ font-weight: 600;
690
  }
691
 
692
+ .yith-plugin-ui span.description {
693
  color: #716269;
694
+ font-size: 14px;
695
  font-style: normal;
696
  font-weight: 400;
697
  margin-top: 15px;
698
  margin-left: 0;
699
  }
700
+
701
+ #wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper {
702
  border: 0;
703
+ border-bottom: 1px solid #ccc;
704
  margin-right: 15px;
705
+ margin-bottom: 0;
706
  background-color: transparent;
707
  padding-left: 0;
708
  }
709
+
710
  .yith-plugin-ui #plugin-fw-wc table.form-table,
711
  .yith-plugin-ui #yith-plugin-fw-panel table.form-table,
712
+ .yith-plugin-ui table.form-table {
713
  border: 1px solid #d8d8d8;
714
  border-top: 0;
715
  margin-bottom: 40px;
716
  }
717
 
718
+ .yith-plugin-ui #wpwrap h2.nav-tab-wrapper, .yith-plugin-ui #wpbody-content h2.nav-tab-wrapper {
719
  background-color: transparent;
720
  border: 0;
721
  text-transform: none;
724
 
725
  .yith-plugin-ui h2 {
726
  color: #2a8db0;
727
+ font-size: 15px;
728
  text-transform: uppercase;
729
  border: 1px solid #d8d8d8;
730
  border-bottom: 0;
732
  padding: 35px 20px;
733
  margin: 0px;
734
  }
735
+
736
+ .yith-plugin-ui .yith-plugin-fw-custom-tab h2 {
737
  border: 0px solid #d8d8d8;
738
  padding-left: 0;
739
  }
740
 
741
+ .yith-plugin-ui #plugin-fw-wc table.form-table th, #yith-plugin-fw-panel table.form-table th.titledesc, .yith-plugin-ui #plugin-fw-wc table.form-table td, #yith-plugin-fw-panel table.form-table td.forminp {
742
  padding: 30px 20px;
743
  }
744
 
751
  padding-bottom: 5px;
752
  }
753
 
754
+ .yith-plugin-ui #plugin-fw-wc h2 + div p, .yith-plugin-ui p.info-box {
755
  background: #f1f1f1;
756
+ font-size: 14px;
757
  font-weight: 700;
758
  width: 40%;
759
+ display: block;
760
  padding: 15px;
761
  margin-bottom: 0;
762
  }
763
 
764
+ .yith-plugin-ui #plugin-fw-wc h2 + div p:before, .yith-plugin-ui p.info-box:before {
765
  content: "\e90e";
766
  font-family: yith-icon;
767
  font-size: 30px;
772
  margin-right: 15px;
773
  }
774
 
775
+ .yith-plugin-ui h2:first-child {
776
  border-top: 0;
777
  }
778
 
793
  .yith-plugin-ui input[type=text],
794
  .yith-plugin-ui input[type=email],
795
  .yith-plugin-ui input[type=password],
796
+ .yith-plugin-ui .search-box input[name="s"],
797
  .yith-plugin-fw.yith-plugin-ui input[type=text]:not(.select2-search__field),
798
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text]:not(.select2-search__field),
799
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table select,
800
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table textarea,
801
+ .woocommerce .yith-plugin-fw table.form-table input[type=password],
802
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=number],
803
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text] {
804
  border: 1px solid #d8d8d8;
809
  box-shadow: none;
810
  color: #716269;
811
  }
812
+
813
  .yith-plugin-ui textarea,
814
+ .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table textarea {
815
  height: auto;
816
  }
817
+
818
  .yith-plugin-ui table.form-table input[type=text].wp-color-picker,
819
+ .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].wp-color-picker {
820
  border: 0;
821
  height: 30px;
822
  max-width: 60px;
823
 
824
  }
825
 
826
+ .yith-plugin-ui .search-box input[name="s"] {
827
+ height: 35px;
828
+ }
829
+
830
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].small-text,
831
  .yith-plugin-ui input[type=text].small-text {
832
  width: 100px;
840
  }
841
 
842
  .yith-plugin-ui select:focus,
843
+ .yith-plugin-ui input:focus {
844
+ border-color: #a7d9ec !important;
845
  }
846
 
847
  .woocommerce .yith-plugin-ui table.form-table select,
848
+ .yith-plugin-ui select {
849
  -webkit-appearance: none;
850
+ line-height: 1.2em;
851
  min-height: 35px;
852
  background: url("../images/arrow_down.svg") no-repeat right center;
853
  background-size: 35px 13px;
854
  border-radius: 8px;
855
+ padding-left: 10px;
856
  }
857
 
858
+ .yith-plugin-ui .form-table th {
859
+ width: 200px;
860
  padding-right: 50px;
861
  }
862
 
863
  /** BUTTONS **/
 
864
  .wp-core-ui .yith-plugin-ui .button-primary,
865
  .wp-core-ui .yith-plugin-ui .button-secondary,
866
  .yith-plugin-ui .yith-add-button,
888
  line-height: 26px;
889
  display: inline-block;
890
  text-decoration: none;
891
+ cursor: pointer;
892
  }
893
+
894
  .wp-core-ui .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button-reset,
895
  .wp-core-ui .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button,
896
  .yith-plugin-ui .yith-plugin-fw-upload-button-reset,
897
  .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button-reset,
898
+ .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button {
899
  height: 38px;
900
  }
901
 
905
  .yith-plugin-ui .yith-save-button:focus,
906
  .yith-plugin-ui .yith-edit-button:focus,
907
  .yith-plugin-ui .yith-update-button:focus,
908
+ .wp-core-ui .yith-plugin-ui .button-secondary:focus {
909
  outline: none;
910
  box-shadow: none;
911
  }
912
 
913
+ .wp-core-ui .yith-plugin-ui .button-xl {
914
+ padding: 0px 20px;
915
+ font-size: 14px;
916
+ line-height: 38px;
917
+ display: inline-block;
918
+ font-weight: 600;
919
+ }
920
+
921
  /** button with inside a span with icon class */
922
+ .yith-plugin-ui .button-secondary span.yith-icon {
923
  margin-left: 0px;
924
  margin-right: 10px;
925
  line-height: normal;
926
  }
927
 
928
+ .yith-plugin-ui .button-secondary span.yith-icon:before {
929
  color: #656565;
930
  font-size: 15px;
931
  }
932
 
933
+
934
  .wp-core-ui .yith-plugin-ui .button:focus,
935
  .wp-core-ui .yith-plugin-ui .button-secondary:focus,
936
  .yith-plugin-ui .yith-save-button:hover,
937
  .wp-core-ui .yith-plugin-ui .button-secondary:hover,
938
+ .yith-plugin-ui .yith-plugin-fw-upload-button-reset:hover {
939
  background-color: #cacaca;
940
  color: #515151;
941
  }
942
 
943
  .wp-core-ui .yith-plugin-ui .button-primary,
 
944
  .yith-plugin-ui .button-secondary.yith-plugin-fw-select-all,
945
+ .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button {
946
  background-color: #007694;
947
  color: #fff;
948
  }
949
 
950
+
 
 
951
  .yith-plugin-ui .yith-add-button,
952
  .wp-core-ui .yith-plugin-ui .button-primary:focus,
953
+ .wp-core-ui .yith-plugin-ui .button-primary:hover {
954
  background-color: #375f6b;
955
  color: #fff;
956
+ cursor: pointer;
957
  }
958
 
959
 
961
  .wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button:focus,
962
  .yith-plugin-ui .button-secondary.yith-plugin-fw-select-all:hover,
963
  .yith-plugin-ui .button-secondary.yith-plugin-fw-select-all:focus,
964
+ .yith-plugin-ui .yith-plugin-fw-upload-button:hover {
965
  border-color: #007694;
966
  background: #007694;
967
  color: #fff;
974
  .yith-plugin-ui .yith-save-button:before,
975
  .yith-plugin-ui .yith-edit-button:before,
976
  .yith-plugin-ui .yith-update-button:before,
977
+ .yith-plugin-ui .button-secondary:before {
978
  font-family: 'yith-icon';
979
  font-size: 10px;
980
  font-weight: 700;
981
  margin-right: 10px;
982
  vertical-align: bottom;
983
+ display: inline-block;
984
  }
985
 
986
  /** yith-edit-button **/
988
  background-color: #7f9298;
989
  color: #fff;
990
  }
991
+
992
  .yith-plugin-ui .yith-edit-button:focus,
993
  .yith-plugin-ui .yith-edit-button:hover {
994
  background-color: #718085;
995
  color: #fff;
996
  }
997
+
998
+ .yith-plugin-ui .yith-edit-button:before {
999
  content: "\e907";
1000
  }
1001
+
1002
  /** yith-update-button **/
1003
  .yith-plugin-ui .yith-update-button {
1004
  background-color: #94aa09;
1005
  color: #fff;
1006
  }
1007
+
1008
  .yith-plugin-ui .yith-update-button:focus,
1009
  .yith-plugin-ui .yith-update-button:hover {
1010
  background-color: #7a9009;
1011
  color: #fff;
1012
  }
1013
+
1014
+ .yith-plugin-ui .yith-update-button:before {
1015
  content: "\e90b";
1016
  font-size: 15px;
1017
  }
1022
  background-color: #267390;
1023
  color: #fff;
1024
  }
1025
+
1026
  .yith-plugin-ui .yith-save-button:focus,
1027
  .yith-plugin-ui .yith-save-button:hover {
1028
  background-color: #1c4863;
1032
 
1033
  /** yith-remove-button **/
1034
 
1035
+ .yith-plugin-ui .button-secondary.yith-remove-button:before {
1036
  content: "\e90d";
1037
  font-size: 15px;
1038
  }
1039
 
1040
 
1041
  /** yith-add-button **/
1042
+ .yith-plugin-ui .yith-add-button:before {
 
1043
  content: "\e90a";
1044
  }
1045
 
1046
+ .yith-plugin-ui .yith-add-button.closed {
1047
+ background-color: #fff;
1048
+ color: #375f6b;
1049
+ border: 1px solid #375f6b;
1050
+ }
1051
+
1052
+ .yith-plugin-ui .yith-add-button.closed:before {
1053
+ content: "\e906";
1054
+ }
1055
+
1056
+
1057
  /** yith-plugin-fw-upload-button **/
1058
+ .yith-plugin-ui button.yith-plugin-fw-upload-button:before {
1059
  content: "\e90c";
1060
  font-family: 'yith-icon';
1061
  font-size: 19px;
1062
  font-weight: 400;
1063
  margin-right: 10px;
1064
  vertical-align: middle;
1065
+ display: inline-block;
1066
  }
1067
+
1068
  /** SELECT 2 **/
1069
  .yith-plugin-ui .select2-container,
1070
+ .yith-plugin-ui .select2-selection--single {
1071
  height: auto;
1072
  padding: 2px;
1073
  outline: none;
1074
  }
1075
 
1076
+ .yith-plugin-ui .select2-selection--single {
1077
  margin: 0;
1078
  border: 0;
1079
  }
1080
 
1081
  /* old panel*/
1082
 
1083
+ .yith-plugin-ui span.select2.select2-container.select2-container--default {
1084
  border: 1px solid #d8d8d8;
1085
+ border-radius: 8px;
1086
  }
1087
+
1088
+ .yith-plugin-ui span.select2.select2-container.select2-container--default:hover,
1089
+ .yith-plugin-ui span.select2.select2-container.select2-container--default:active,
1090
+ .yith-plugin-ui span.select2.select2-container.select2-container--default:focus {
1091
  border-color: #a7d9ec;
1092
  }
1093
+
1094
+ .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
1095
  color: #fff;
1096
  }
1097
+
1098
  .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].select2-search__field,
1099
+ .yith-plugin-ui .yith-plugin-fw table.form-table input.select2-search__field {
1100
  border: 0;
1101
  padding: 0;
1102
  height: initial;
1103
  }
1104
+
1105
  .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice,
1106
+ .yith-plugin-ui .select2-selection__choice {
1107
  color: #fff;
1108
  background-color: #4e8ba2;
1109
  border-radius: 12px;
1110
  padding: 3px 11px;
1111
  border-color: #33937e;
1112
+ font-size: 13px;
1113
  }
1114
 
1115
+ .yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__arrow:before {
1116
  content: "\e900";
1117
  font-family: 'yith-icon' !important;
1118
  line-height: 36px;
1119
  color: #d9d9d9;
1120
  }
1121
 
1122
+ .yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__arrow b {
1123
  display: none;
1124
  }
1125
+
1126
  .yith-plugin-ui .select2-container--open .select2-dropdown--below,
1127
  .yith-plugin-ui .select2-container--open .select2-dropdown--above,
1128
  .yith-plugin-fw-panel .select2-container--open .select2-dropdown--below,
1129
  .yith-plugin-fw-panel .select2-container--open .select2-dropdown--above {
1130
  margin-top: 10px;
1131
  border-radius: 8px;
1132
+ box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
1133
  }
1134
+
1135
  .yith-plugin-ui .select2-container--open .select2-dropdown--above,
1136
+ .yith-plugin-fw-panel .select2-container--open .select2-dropdown--above {
1137
  margin-top: -10px;
1138
  }
1139
+
1140
  .yith-plugin-ui .select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
1141
  .yith-plugin-ui .select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
1142
  .yith-plugin-fw-panel .select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
1143
+ .yith-plugin-fw-panel .select2-container--default.select2-container--open.select2-container--above .select2-selection--single {
1144
  border-radius: 8px;
1145
  }
1146
+
1147
  .yith-plugin-ui .select2-results .select2-results__group, .select2-results .select2-results__option:first-child,
1148
+ .yith-plugin-fw-panel .select2-results .select2-results__group, .select2-results .select2-results__option:first-child {
1149
  border-top-left-radius: 8px;
1150
  border-top-right-radius: 8px;
1151
  }
1152
+ .yith-plugin-ui .select2-results .select2-results__group, .select2-results .select2-results__option:last-child,
1153
+ .yith-plugin-fw-panel .select2-results .select2-results__group, .select2-results .select2-results__option:last-child,
1154
  .yith-plugin-ui .select2-results .select2-results__group,
1155
  .yith-plugin-ui .select2-results .select2-results__option:last-child,
1156
  .yith-plugin-fw-panel .select2-results .select2-results__group,
1157
+ .yith-plugin-fw-panel .select2-results .select2-results__option:last-child,
1158
+ .yith-plugin-ui .select2-results .select2-results__group,
1159
+ .yith-plugin-ui .select2-results .select2-results__option:last-child,
1160
+ .yith-plugin-fw-panel .select2-results .select2-results__group,
1161
+ .yith-plugin-fw-panel .select2-results .select2-results__option:last-child {
1162
  border-bottom-left-radius: 8px;
1163
  border-bottom-right-radius: 8px;
1164
  }
1165
+
1166
+ .yith-plugin-ui .select2-dropdown{
1167
+ border: 0;
1168
+ }
1169
  .yith-plugin-ui .select2-container--default .select2-results__option[data-selected=true],
1170
  .yith-plugin-ui .select2-container--default .select2-results__option[aria-selected=true],
1171
  .yith-plugin-fw-panel .select2-container--default .select2-results__option[data-selected=true],
1173
  background-color: #fff;
1174
  outline: none;
1175
  }
1176
+
1177
  .yith-plugin-ui .select2-container--default .select2-results__option--highlighted[aria-selected],
1178
  .yith-plugin-ui .select2-container--default .select2-results__option--highlighted[data-selected],
1179
  .yith-plugin-fw-panel .select2-container--default .select2-results__option--highlighted[aria-selected],
1180
+ .yith-plugin-fw-panel .select2-container--default .select2-results__option--highlighted[data-selected] {
1181
  background-color: #e8eff1;
1182
  color: #4e8ba2;
1183
  outline: none;
1184
  }
1185
 
1186
  .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
1187
+ .yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
1188
  float: right;
1189
  padding-left: 15px;
1190
  text-indent: -9999px;
1193
 
1194
  .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after,
1195
  .woocommerce .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after,
1196
+ .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after {
1197
  float: right;
1198
  color: #fff;
1199
  content: "\e906";
1203
  text-indent: 0;
1204
  }
1205
 
1206
+ .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after {
1207
  color: #000;
1208
  }
1209
 
1210
  .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after
1211
+ .yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after {
1212
  color: #000;
1213
  }
1214
+
1215
  .yith-plugin-ui .select2-container .select2-selection--multiple,
1216
+ .yith-plugin-ui .select2-container--default.select2-container--focus .select2-selection--multiple {
1217
  border: 0;
1218
  }
1219
 
1220
+ .yith-plugin-fw .select2-search input[type=text] {
1221
  border: 0;
1222
  padding: 0;
1223
  height: auto;
1224
  }
1225
+
1226
+ .yith-plugin-ui .yith-plugin-fw-select-field-wrapper span.yith-icon.yith-icon-magnifier,
1227
+ .yith-plugin-fw-panel .yith-plugin-fw-select-field-wrapper span.yith-icon.yith-icon-magnifier {
1228
  position: absolute;
1229
  padding-top: 5px;
1230
  }
1231
 
1232
+ .yith-plugin-ui input[type=text].select2-search__field {
1233
  border: 0;
1234
  padding: 0;
1235
  height: 30px;
1236
  }
1237
+
1238
  .yith-plugin-ui .select2-container--default .select2-search--dropdown .select2-search__field,
1239
+ .yith-plugin-fw-panel .select2-container--default .select2-search--dropdown .select2-search__field {
1240
  border: 1px solid #d9d9d9;
1241
  border-radius: 8px;
1242
  box-shadow: none;
1243
  }
1244
+
1245
  .yith-plugin-ui .select2-dropdown,
1246
+ .yith-plugin-fw-panel .select2-dropdown {
1247
  border: 1px solid #d9d9d9;
1248
  }
1249
+
1250
  /** RADIO BUTTON **/
1251
+ .yith-plugin-ui [type="radio"]:checked,
1252
+ .yith-plugin-ui [type="radio"]:not(:checked) {
1253
  position: absolute;
1254
  left: -9999px;
1255
  }
1256
+
1257
  .yith-plugin-ui [type="radio"]:checked + label,
1258
+ .yith-plugin-ui [type="radio"]:not(:checked) + label {
 
1259
  position: relative;
1260
  padding-left: 35px;
1261
  cursor: pointer;
1262
  line-height: 20px;
1263
  display: inline-block;
1264
  color: #716269;
1265
+ font-size: 14px;
1266
  }
1267
+
1268
  .yith-plugin-ui [type="radio"]:checked + label:before,
1269
+ .yith-plugin-ui [type="radio"]:not(:checked) + label:before {
1270
  content: '';
1271
  position: absolute;
1272
  left: 0;
1273
  top: 0;
1274
+ width: 19px;
1275
+ height: 19px;
1276
  border: 1px solid #d8d8d8;
1277
  border-radius: 100%;
1278
  background: #fff;
1279
  }
1280
+
1281
  .yith-plugin-ui [type="radio"]:checked + label:after,
1282
  .yith-plugin-ui [type="radio"]:not(:checked) + label:after {
1283
  content: '';
1284
+ width: 13px;
1285
+ height: 13px;
1286
  background: #4e8ba2;
1287
  position: absolute;
1288
  top: 4px;
1291
  -webkit-transition: all 0.2s ease;
1292
  transition: all 0.2s ease;
1293
  }
1294
+
1295
  .yith-plugin-ui [type="radio"]:not(:checked) + label:after {
1296
  opacity: 0;
1297
  -webkit-transform: scale(0);
1298
  transform: scale(0);
1299
  }
1300
+
1301
  .yith-plugin-ui [type="radio"]:checked + label:after {
1302
  opacity: 1;
1303
  -webkit-transform: scale(1);
1315
  border-radius: 3px;
1316
  display: inline-block;
1317
  position: relative;
1318
+ margin-right: 10px;
1319
  }
1320
+
1321
+ .yith-plugin-ui input[type="checkbox"]:checked {
1322
  background-color: #4e8ba2;
1323
  border-color: #488197;
1324
  }
1325
+
1326
  .yith-plugin-ui .forminp-checkbox span.description.inline {
1327
  margin-left: 10px;
1328
  }
1329
+
1330
+ .yith-plugin-ui input[type="checkbox"]:checked:before {
1331
  display: none;
1332
  }
1333
 
1346
  display: none;
1347
  }
1348
 
1349
+ .yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
1350
  border: 1px solid #d8d8d8;
1351
  background-color: #fff;
1352
+ width: 60px;
1353
+ height: 24px;
1354
  }
1355
 
1356
+ .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
1357
  background-color: #d8d8d8;
1358
  }
1359
 
1360
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
1361
  width: 14px;
1362
  height: 14px;
1363
+ top: 5px;
1364
+ left: 6px;
1365
  background-color: #d8d8d8;
1366
  }
1367
+
1368
+ .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
1369
  content: 'OFF';
1370
  width: 14px;
1371
  height: 14px;
1372
+ font-size: 13px;
1373
+ font-weight: 600;
1374
+ padding-left: 27px;
1375
  color: #979797;
1376
+ margin-top: 5px;
1377
+ display: inline-block;
1378
  }
1379
+
1380
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span,
1381
+ .yith-plugin-ui .yith-plugin-fw-onoff-container input.onoffchecked + span {
1382
  background-color: #fff;
1383
  border-color: #98aa36;
1384
  }
1385
 
1386
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before,
1387
+ .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
1388
  background-color: #98aa36;
1389
+ left: 41px;
1390
  }
1391
 
1392
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after,
1393
+ .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
1394
  content: 'ON';
1395
  color: #98aa36;
1396
  width: 14px;
1397
  height: 14px;
1398
  display: inline-block;
1399
+ font-size: 13px;
1400
+ font-weight: 600;
1401
  padding: 0 10px;
1402
+ margin-top: 5px;
1403
  }
1404
 
1405
+ .yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
1406
  text-indent: 0;
1407
  }
1408
 
1411
  DATEPICKER
1412
  */
1413
  .yith-plugin-ui div#ui-datepicker-div,
1414
+ .yith-plugin-fw-panel div#ui-datepicker-div {
1415
  border: 0;
1416
+ box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
1417
  }
1418
 
1419
  .yith-plugin-ui .ui-datepicker-header.ui-widget-header,
1420
  .yith-plugin-fw-panel .ui-datepicker-header.ui-widget-header {
1421
+ background: #4e8ba2;
1422
  color: #fff;
1423
  font-size: 11px;
1424
  line-height: 25px;
1425
+ border: 0;
1426
  min-height: 25px;
1427
  }
1428
+
1429
  .yith-plugin-ui .ui-datepicker-title,
1430
+ .yith-plugin-fw-panel .ui-datepicker-title {
1431
  line-height: 25px;
1432
  }
1433
+
1434
  .yith-plugin-ui .ui-datepicker th,
1435
+ .yith-plugin-fw-panel .ui-datepicker th {
1436
  color: #716269;
1437
  }
1438
+
1439
  .yith-plugin-ui .ui-widget-header .ui-icon,
1440
  .yith-plugin-ui .ui-widget-header .ui-state-hover,
1441
+ .yith-plugin-ui .ui-datepicker .ui-datepicker-prev,
1442
+ .yith-plugin-ui .ui-datepicker .ui-datepicker-next,
1443
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-w,
1444
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-e,
1445
  .yith-plugin-fw-panel .ui-widget-header .ui-icon,
1446
  .yith-plugin-fw-panel .ui-widget-header .ui-state-hover,
1447
+ .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-prev,
1448
+ .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-next,
1449
  .yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-w,
1450
+ .yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-e {
1451
  background: none;
1452
  content: "";
1453
  border: 0;
1454
  text-indent: 0;
1455
+ width: 15px;
1456
  height: 20px;
1457
+ display: block;
1458
+ overflow: hidden;
1459
+ }
1460
+
1461
+ .yith-plugin-ui .yith-password-wrapper {
1462
+ display: inline-block;
1463
+ width: auto;
1464
+ position: relative;
1465
+ }
1466
+
1467
+ .yith-plugin-ui .yith-password-wrapper .yith-password-eye-closed:before,
1468
+ .yith-plugin-ui .yith-password-wrapper .yith-password-eye:before {
1469
+ content: '\e911';
1470
+ color: #999;
1471
+ font-family: 'yith-icon';
1472
+ font-size: 20px;
1473
+ font-weight: normal;
1474
+ width: 15px;
1475
+ display: block;
1476
+ position: absolute;
1477
+ right: 13px;
1478
+ top: 0;
1479
+ line-height: 38px;
1480
+ bottom: 0;
1481
+ cursor: pointer;
1482
+ }
1483
+
1484
+ .yith-plugin-ui .yith-password-wrapper .yith-password-eye-closed:before {
1485
+ content: '\e912';
1486
  }
1487
 
1488
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-w:before,
1492
  font-family: 'yith-icon';
1493
  font-size: 12px;
1494
  font-weight: normal;
1495
+ width: 15px;
1496
+ display: block;
1497
  }
1498
+
1499
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-e:before,
1500
  .yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-e:before {
1501
  content: "\e902";
1504
  font-family: 'yith-icon';
1505
  font-size: 12px;
1506
  font-weight: normal;
1507
+ width: 15px;
1508
+ display: block;
1509
  }
1510
 
1511
  /* arrow */
1512
+ .yith-plugin-ui .ui-datepicker .ui-datepicker-prev,
1513
+ .yith-plugin-ui .ui-datepicker .ui-datepicker-next,
1514
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev-hover,
1515
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-next-hover,
1516
+ .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-prev,
1517
+ .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-next,
1518
  .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev-hover,
1519
+ .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-next-hover {
1520
  top: 1px;
1521
  cursor: pointer;
1522
  }
1523
+
1524
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev,
1525
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev-hover,
1526
  .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev,
1527
+ .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev-hover {
1528
  left: 5px;
1529
  }
1530
+
1531
  .yith-plugin-ui .ui-datepicker .ui-datepicker-next,
1532
  .yith-plugin-ui .ui-datepicker-next.ui-datepicker-next-hover,
1533
  .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-next,
1534
+ .yith-plugin-fw-panel .ui-datepicker-next.ui-datepicker-next-hover {
1535
  right: 1px;
1536
  }
1537
 
1538
+ .yith-plugin-ui .ui-datepicker table,
1539
+ .yith-plugin-fw-panel .ui-datepicker table {
1540
  font-size: 10px;
1541
  }
1542
 
1545
  .yith-plugin-ui .ui-widget-header .ui-state-default,
1546
  .yith-plugin-fw-panel .ui-state-default,
1547
  .yith-plugin-fw-panel .ui-widget-content .ui-state-default,
1548
+ .yith-plugin-fw-panel .ui-widget-header .ui-state-default {
1549
+ background: #fff;
1550
  border: 1px solid #d9d9d9;
1551
 
1552
  }
1553
+
1554
  .yith-plugin-ui .ui-state-hover,
1555
  .yith-plugin-ui .ui-widget-content .ui-state-hover,
1556
  .yith-plugin-ui a.ui-state-default:focus,
1560
  .yith-plugin-fw-panel .ui-widget-content .ui-state-hover,
1561
  .yith-plugin-fw-panel a.ui-state-default:focus,
1562
  .yith-plugin-fw-panel .ui-widget-content .ui-state-focus,
1563
+ .yith-plugin-fw-panel .ui-widget-header .ui-state-focus {
1564
+ background: #ebf1f3;
1565
+ border: 1px solid #bfd5dd;
1566
  outline: none;
1567
  box-shadow: none;
1568
  }
1569
+
1570
  .yith-plugin-ui .ui-widget-header .ui-state-hover, .woocommerce .yith-plugin-ui .ui-state-focus,
1571
  .yith-plugin-fw-panel .ui-widget-header .ui-state-hover, .woocommerce .yith-plugin-ui .ui-state-focus {
1572
  background: none;
1574
  }
1575
 
1576
  /** colorpicker **/
1577
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .yith-colorpicker-group:not(:first-child) {
1578
+ margin-top: 20px;
1579
+ }
1580
+
1581
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .iris-picker,
1582
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-holder {
1583
  display: none !important;
1584
  }
1585
+
1586
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-input-wrap {
1587
  display: inline !important;
1588
  }
1589
+
1590
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-active .iris-picker,
1591
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-active .wp-picker-holder {
1592
  display: block !important;
1593
  }
1594
+
1595
+ .woocommerce .yith-plugin-ui .iris-picker {
1596
+ border: 0;
1597
  margin-top: 20px;
1598
  }
1599
+
1600
  .yith-plugin-ui .yith-plugin-fw input[type=text].wp-color-picker {
1601
+ border: 0;
1602
  padding: 2px 5px;
1603
+ height: 30px;
1604
  }
1605
+
1606
+ .yith-plugin-ui .wp-color-result-text {
1607
  display: none;
1608
  }
1609
 
1610
+ .yith-plugin-ui .wp-picker-container .wp-color-result.button {
1611
  width: 30px;
1612
  height: 30px;
1613
  border: 0;
1617
  display: inline-block;
1618
  vertical-align: middle;
1619
  }
1620
+
1621
+ .yith-plugin-ui .wp-picker-default-custom {
1622
  cursor: pointer;
1623
  width: 25px;
1624
  padding: 0 5px;
1626
  vertical-align: middle;
1627
  position: relative;
1628
  }
1629
+
1630
  .yith-plugin-ui .wp-picker-default-custom input.button {
1631
  opacity: 0;
1632
  margin: 0;
1638
  bottom: 0;
1639
  z-index: 2;
1640
  }
1641
+
1642
+ .yith-plugin-ui .wp-picker-default-custom:before {
1643
  content: "\e910";
1644
  text-indent: 0;
1645
  font-family: 'yith-icon';
1646
  font-size: 20px;
1647
  color: #d8d8d8;
1648
  font-weight: normal;
1649
+ width: 15px;
1650
+ display: block;
1651
  background: none;
1652
  line-height: 20px;
1653
  margin-left: 8px;
1654
  }
1655
+
1656
+ .yith-plugin-ui .wp-picker-container {
1657
  width: auto;
1658
  display: inline-block;
1659
  border: 1px solid #d9d9d9;
1661
  padding: 5px;
1662
  }
1663
 
1664
+ .yith-plugin-ui .iris-picker .iris-square-inner {
1665
  box-shadow: none;
1666
  border: 1px solid #d9d9d9;
1667
  }
1668
 
1669
+ .yith-plugin-ui .yith-single-colorpicker {
1670
  display: inline-block;
1671
  width: 220px;
1672
  }
1673
 
1674
+ .yith-plugin-ui .yith-single-colorpicker > label {
1675
  display: block;
1676
  font-size: 11px;
1677
  font-weight: 600;
1678
+ margin: 0 0 10px 0;
1679
  }
1680
 
1681
  /* RANGE SLIDER */
1682
+ .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle {
1683
+ top: -45px !important;
1684
  }
1685
 
1686
  .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle {
1702
  transition: opacity .3s ease-in-out 0s;
1703
  box-shadow: 0px 1px 7px 0px rgba(1, 1, 1, 0.13);
1704
  }
1705
+
1706
  .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle:before {
1707
  position: absolute;
1708
  bottom: -3px;
1717
  -ms-transform: rotate(-45deg);
1718
  transform: rotate(-45deg);
1719
  }
1720
+
1721
+ .yith-plugin-ui .ui-slider.ui-widget-content .ui-widget-header {
1722
+ background: #4e8ba2;
1723
  }
1724
+
1725
+ .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle:after {
1726
  content: '';
1727
  width: 17px;
1728
  height: 17px;
1733
  border-radius: 50%;
1734
  box-shadow: 0px 1px 6px 0px rgba(1, 1, 1, 0.25);
1735
  }
1736
+
1737
+ .yith-plugin-ui .ui-slider.ui-widget-content {
1738
  height: 5px !important;
1739
  }
1740
 
1741
+ .yith-plugin-ui .ui-slider .minCaption,
1742
+ .yith-plugin-ui .ui-slider .maxCaption {
1743
  font-weight: 700;
1744
  font-size: 12px;
1745
  }
1747
 
1748
  /* ADD_BOX AND TOGGLE */
1749
  .yith-plugin-ui .yith-add-box,
1750
+ .yith-plugin-ui .yith-toggle-row {
1751
+ width: 70%;
1752
  border: 1px solid #d9d9d9;
1753
+ box-shadow: none;
1754
  border-radius: 4px;
1755
  margin: 20px 0;
1756
  padding: 10px;
1757
  box-sizing: border-box;
1758
  background: white;
1759
  }
1760
+
1761
+ .yith-plugin-ui .yith-toggle-row {
1762
+ cursor: pointer;
1763
+ transition: all ease 0.5s;
1764
+ }
1765
+
1766
+ .yith-plugin-ui .yith-toggle-row.highlight {
1767
+ transition: all ease 0.5s;
1768
+ /*box-shadow: 0 0 7px rgb(81, 117, 129);*/
1769
+ box-shadow: 0 0 7px rgb(30, 140, 190);
1770
+
1771
+ display: block;
1772
+ }
1773
+
1774
+ .yith-plugin-ui .yith-add-box {
1775
+ padding: 25px;
1776
  display: none;
1777
  }
1778
+
1779
+ .yith-plugin-ui .yith-toggle-title {
1780
  position: relative;
1781
  }
1782
+
1783
  .yith-plugin-ui #plugin-fw-wc .yith-toggle-title h3,
1784
+ .yith-plugin-ui.metaboxes-tab.yith-plugin-ui h3,
1785
+ .yith-plugin-ui .yith-toggle-title h3 {
1786
  padding: 0px 20px 0px 25px;
1787
+ margin: 3px 0;
1788
+
1789
  display: inline-block;
1790
  position: relative;
1791
  min-width: 173px;
1792
  box-sizing: border-box;
1793
  font-weight: 600;
1794
  font-size: 15px;
1795
+ color: #23282d;
1796
+ text-transform: inherit;
1797
  }
1798
 
1799
+ .yith-plugin-ui .yith-toggle-title .subtitle {
1800
  padding-left: 0;
1801
+ padding-top: 8px;
1802
  font-size: 12px;
1803
  }
1804
 
1805
+ .yith-plugin-ui .yith-toggle {
1806
  position: absolute;
1807
  width: 30px;
 
 
1808
  cursor: pointer;
1809
+ left: 0;
1810
  top: 0;
1811
  bottom: 0;
1812
+ margin: auto;
1813
+ display: flex;
1814
+ align-items: center;
1815
  }
1816
+
1817
+ .yith-plugin-ui .yith-toggle > span:before {
1818
  color: #405e69;
1819
  }
1820
 
1821
+ .yith-plugin-ui .yith-toggle > span {
1822
  position: absolute;
1823
  right: 50%;
1824
  transition: transform .3s;
1826
  }
1827
 
1828
 
1829
+ .yith-plugin-ui .yith-toggle-row-opened .yith-toggle span {
1830
+ transform: rotateZ(90deg);
1831
  }
1832
 
1833
+ .yith-plugin-ui .yith-toggle-content {
1834
  display: none;
1835
  position: relative;
1836
  padding: 30px 25px;
1837
  }
1838
+
1839
+ .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content {
1840
+ /* display: block;*/
1841
  }
1842
+
1843
  .yith-plugin-ui .yith-add-box-row,
1844
+ .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row {
1845
  display: table;
1846
+ margin-bottom: 40px;
1847
  }
1848
+
1849
  .yith-plugin-ui .yith-add-box-row label,
1850
+ .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row label {
1851
  display: table-cell;
1852
+ width: 200px;
1853
+ padding-right: 21px;
1854
  color: #33373b;
1855
+ font-size: 14px;
1856
  vertical-align: top;
1857
  font-weight: 600;
1858
  }
1859
+ .yith-plugin-ui .yith-plugin-fw-radio__row label{
1860
+ font-weight: 400!important;
1861
+ }
1862
  .yith-plugin-ui .yith-add-box-row .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper),
1863
+ .yith-plugin-ui .yith-toggle-row-opened .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper) {
1864
+ margin-top: 10px;
1865
  width: auto;
1866
  float: none;
1867
  vertical-align: middle;
1868
  position: relative;
1869
  }
1870
+
1871
  .yith-plugin-ui .yith-add-box-row span.yith-icon,
1872
+ .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row span.yith-icon {
1873
  position: absolute;
1874
  right: 15px;
1875
  top: 0;
1876
  bottom: 0;
1877
  }
1878
+
1879
  .yith-plugin-ui .yith-add-box-buttons,
1880
+ .yith-plugin-ui .yith-toggle-content-buttons {
1881
  text-align: right;
1882
  }
1883
+
1884
  .yith-plugin-ui .yith-toggle-onoff {
1885
  position: absolute;
1886
  cursor: pointer;
1887
  right: 0;
1888
  }
1889
+
1890
+ .yith-plugin-ui .yith-toggle_wrapper.ui-sortable .yith-toggle-onoff {
1891
  right: 30px;
1892
  }
1893
+
1894
+ .yith-plugin-ui .yith-toggle-row .yith-icon-drag {
1895
  position: absolute;
1896
  right: 0;
1897
  top: 25%;
1898
  bottom: 0;
1899
  line-height: 1;
1900
  }
1901
+
1902
+ .yith-plugin-ui .yith-toggle-row.with-subtitle .yith-toggle-onoff {
 
 
1903
  top: 25%;
1904
  }
1905
 
1906
  /** SPINNER **/
1907
+ .yith-plugin-ui .spinner {
1908
  vertical-align: -5px;
1909
  float: none;
1910
  }
1911
 
1912
+ .yith-plugin-ui .spinner.show {
1913
  visibility: visible;
1914
  }
1915
 
1916
  /* LIST TABLE */
1917
+ .yith-plugin-ui .form-table .list-table td {
1918
  padding: 15px 0px;
1919
  }
1920
+
1921
+ .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table .bulkactions select {
1922
  border: 1px solid #d8d8d8;
1923
  max-width: 200px;
1924
  max-height: 30px;
1925
  padding: 0 10px;
1926
+ margin-right: 5px;
1927
  }
1928
+
1929
+ .yith-plugin-ui .form-table .list-table th {
1930
  width: initial;
1931
  }
1932
 
1933
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table tbody td {
 
 
 
1934
  padding-left: 20px;
1935
  }
1936
+
1937
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table th,
1938
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table td {
1939
+ padding: 15px 20px 15px 20px;
1940
+ }
1941
+
1942
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table thead td,
1943
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table thead th,
1944
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table tfoot td,
1945
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table tfoot th {
1946
+ padding: 3px 20px;
1947
+ }
1948
+
1949
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table thead a,
1950
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table tfoot a {
1951
+ padding-left: 0;
1952
+ }
1953
+
1954
+ .yith-plugin-ui .yith-plugin-fw-list-table h2 {
1955
  border: 0;
1956
  padding: 35px 0 15px;
1957
  display: inline-block;
1958
  margin-right: 10px;
1959
  }
1960
+
1961
+ .yith-plugin-ui .form-table .yith-plugin-fw-list-table table th {
1962
  vertical-align: middle;
1963
  }
1964
+
1965
+ .yith-plugin-ui .yith-plugin-fw-list-table-container {
1966
  padding: 0 20px;
1967
  }
1968
+
1969
+ .yith-plugin-ui #doaction, .yith-plugin-ui #doaction2,
1970
+ .yith-plugin-ui #post-query-submit,
1971
+ .yith-plugin-ui #search-submit,
1972
+ .yith-plugin-ui .button.filter-button {
1973
+ margin-left: 0;
1974
  height: 33px;
1975
+ padding: 0 10px;
1976
+ line-height: 33px;
1977
  }
1978
+
1979
+ .yith-plugin-ui .bulkactions {
1980
  margin: 10px 0;
1981
  }
1982
+
1983
+ .yith-plugin-ui .form-table td p.yith-section-description {
1984
+ color: #716269;
1985
  margin-bottom: 20px;
1986
  }
1987
 
1988
  /** Time picker width*/
1989
  .yith-plugin-ui input.ui-timepicker-input {
1990
+ width: 100px !important;
1991
  }
1992
+
1993
  /** date format **/
1994
  .yith-plugin-ui .yith-plugin-fw-date-format code {
1995
  margin-left: 30px;
2006
  float: left;
2007
  }
2008
 
2009
+ .yith-plugin-ui td.forminp-checkbox.two-cols fieldset:nth-child(2n+1) {
2010
+ clear: both;
2011
+ }
2012
+
2013
  .yith-plugin-ui td.forminp-checkbox.three-cols fieldset {
2014
+ width: calc(33% - 10px);
2015
+ padding-right: 10px;
2016
  float: left;
2017
  }
2018
 
2019
+ .yith-plugin-ui td.forminp-checkbox.three-cols fieldset:nth-child(3n+1) {
2020
+ clear: both;
2021
+ }
2022
 
2023
  .yith-plugin-fw-checkbox-field-wrapper {
2024
  display: inline-block !important;
 
 
2025
  }
2026
+
2027
  .yith-plugin-fw-checkbox-field-wrapper + span.description {
2028
  display: inline-block;
2029
  vertical-align: middle;
2030
  margin: 0;
2031
  }
2032
+
2033
  .yith-plugin-ui span.description {
2034
  margin-top: 10px;
2035
+ line-height: 20px;
2036
  }
2037
+
2038
  .yith-plugin-fw-option-with-description {
2039
  display: table-cell;
2040
  width: auto;
2041
  vertical-align: top;
2042
  }
2043
+
2044
  /** YITH PANEL **/
2045
+ .yith-plugin-ui #yith-plugin-fw-panel {
2046
  margin-top: -10px;
2047
  }
2048
+
2049
+ .yith-plugin-ui #plugin-fw-wc, .yith-plugin-ui #yith-plugin-fw-panel {
2050
  padding-top: 0;
2051
  }
2052
+
2053
+ .yith-plugin-ui .plugin-option tr {
2054
  border: 0;
2055
  }
2056
 
2057
+ @media screen and (max-width: 1440px) {
2058
  .yith-plugin-ui .yith-add-box,
2059
+ .yith-plugin-ui .yith-toggle-row {
2060
  width: 80%;
2061
  }
2062
  }
2063
+
2064
+ @media screen and (max-width: 1024px) {
2065
  .yith-plugin-ui .yith-add-box,
2066
+ .yith-plugin-ui .yith-toggle-row {
2067
  width: 90%;
2068
  }
2069
 
2074
  }
2075
 
2076
  .yith-plugin-ui td.forminp-checkbox.three-cols fieldset {
2077
+ width: calc(50% - 10px);
2078
+ padding-right: 10px;
2079
  float: left;
2080
  }
2081
+
2082
+ .yith-plugin-ui td.forminp-checkbox.two-cols fieldset:nth-child(2n+1) {
2083
+ clear: both;
2084
+ }
2085
+
2086
+ .yith-plugin-ui td.forminp-checkbox.three-cols fieldset:nth-child(3n+1) {
2087
+ clear: initial;
2088
+ }
2089
  }
2090
+
2091
+ @media screen and (max-width: 782px) {
2092
+ .yith-plugin-fw-banner.yith-plugin-fw-banner-free {
2093
  height: auto;
2094
  background-color: #a9c7d3;
2095
  }
2096
+
2097
+ .yith-plugin-fw-banner.yith-plugin-fw-banner-free ul {
2098
  width: 90%;
2099
  text-align: center;
2100
  }
2101
+
2102
+ .yith-plugin-fw-banner.yith-plugin-fw-banner-free li img {
2103
  width: 90%;
2104
  margin: 0 auto;
2105
  }
2106
+
2107
+ .yith-plugin-fw-banner h1 {
2108
  line-height: 1.2em;
2109
  }
2110
 
2111
  .yith-plugin-ui .yith-add-box,
2112
+ .yith-plugin-ui .yith-toggle-row {
2113
  width: 100%;
2114
  }
2115
 
2116
  .yith-plugin-ui td.forminp-checkbox.two-cols fieldset,
2117
+ .yith-plugin-ui td.forminp-checkbox.three-cols fieldset {
2118
  width: 100%;
2119
+ clear: initial;
2120
  }
2121
 
2122
  }
plugin-fw/assets/fonts/yith-icon.eot CHANGED
Binary file
plugin-fw/assets/fonts/yith-icon.svg CHANGED
@@ -24,4 +24,13 @@
24
  <glyph unicode="&#xe90e;" glyph-name="info" d="M511.957 92.471c-196.017 0-355.555 159.466-355.555 355.555 0 196.053 159.538 355.555 355.555 355.555 196.053 0 355.555-159.502 355.555-355.555 0-196.089-159.502-355.555-355.555-355.555zM511.957 874.692c-235.271 0-426.666-191.431-426.666-426.666 0-235.271 191.395-426.666 426.666-426.666 235.306 0 426.666 191.395 426.666 426.666 0 235.235-191.36 426.666-426.666 426.666zM476.402 270.248v177.777h35.555v-177.777h-35.555zM583.068 448.026v71.111h-213.333v-71.111h35.555v-248.888h213.333v71.111h-35.555v177.777zM494.179 661.359c9.813 0 17.778-8 17.778-17.778 0-9.813-7.964-17.778-17.778-17.778-9.778 0-17.778 7.964-17.778 17.778 0 9.778 8 17.778 17.778 17.778zM494.179 554.692c49.031 0 88.889 39.858 88.889 88.889 0 48.995-39.858 88.889-88.889 88.889-48.995 0-88.889-39.893-88.889-88.889 0-49.031 39.893-88.889 88.889-88.889z" />
25
  <glyph unicode="&#xe90f;" glyph-name="drag" d="M241.835 409.259h232.277v-232.277h-116.053l156.501-154.795 156.501 154.795h-119.467v232.277h233.813v-116.224l154.965 156.672-154.965 156.501v-119.467h-233.813v232.277h119.467l-156.501 154.795-156.501-154.795h116.053v-232.277h-232.277v119.467l-154.795-156.501 154.795-156.672z" />
26
  <glyph unicode="&#xe910;" glyph-name="reset" d="M188.928 400.384c23.211-158.379 159.573-280.405 324.267-280.405 118.613 0 228.352 64.341 286.379 167.936l-63.488 35.499c-45.227-80.555-130.56-130.731-222.891-130.731-120.491 0-221.525 84.139-248.149 196.608l40.107-40.107 51.541 51.541-135.168 135.168-135.168-135.168 51.541-51.541 51.029 51.2zM513.195 703.317c121.685 0 223.573-85.675 249.003-199.68l-43.179 43.179-51.541-51.541 135.168-135.168 135.168 135.168-51.541 51.541-48.981-48.981c-24.064 157.355-159.915 278.528-323.925 278.528-116.736 0-225.621-62.805-284.16-164.011l63.147-36.523c45.227 78.507 129.877 127.488 220.843 127.488z" />
 
 
 
 
 
 
 
 
 
27
  </font></defs></svg>
24
  <glyph unicode="&#xe90e;" glyph-name="info" d="M511.957 92.471c-196.017 0-355.555 159.466-355.555 355.555 0 196.053 159.538 355.555 355.555 355.555 196.053 0 355.555-159.502 355.555-355.555 0-196.089-159.502-355.555-355.555-355.555zM511.957 874.692c-235.271 0-426.666-191.431-426.666-426.666 0-235.271 191.395-426.666 426.666-426.666 235.306 0 426.666 191.395 426.666 426.666 0 235.235-191.36 426.666-426.666 426.666zM476.402 270.248v177.777h35.555v-177.777h-35.555zM583.068 448.026v71.111h-213.333v-71.111h35.555v-248.888h213.333v71.111h-35.555v177.777zM494.179 661.359c9.813 0 17.778-8 17.778-17.778 0-9.813-7.964-17.778-17.778-17.778-9.778 0-17.778 7.964-17.778 17.778 0 9.778 8 17.778 17.778 17.778zM494.179 554.692c49.031 0 88.889 39.858 88.889 88.889 0 48.995-39.858 88.889-88.889 88.889-48.995 0-88.889-39.893-88.889-88.889 0-49.031 39.893-88.889 88.889-88.889z" />
25
  <glyph unicode="&#xe90f;" glyph-name="drag" d="M241.835 409.259h232.277v-232.277h-116.053l156.501-154.795 156.501 154.795h-119.467v232.277h233.813v-116.224l154.965 156.672-154.965 156.501v-119.467h-233.813v232.277h119.467l-156.501 154.795-156.501-154.795h116.053v-232.277h-232.277v119.467l-154.795-156.501 154.795-156.672z" />
26
  <glyph unicode="&#xe910;" glyph-name="reset" d="M188.928 400.384c23.211-158.379 159.573-280.405 324.267-280.405 118.613 0 228.352 64.341 286.379 167.936l-63.488 35.499c-45.227-80.555-130.56-130.731-222.891-130.731-120.491 0-221.525 84.139-248.149 196.608l40.107-40.107 51.541 51.541-135.168 135.168-135.168-135.168 51.541-51.541 51.029 51.2zM513.195 703.317c121.685 0 223.573-85.675 249.003-199.68l-43.179 43.179-51.541-51.541 135.168-135.168 135.168 135.168-51.541 51.541-48.981-48.981c-24.064 157.355-159.915 278.528-323.925 278.528-116.736 0-225.621-62.805-284.16-164.011l63.147-36.523c45.227 78.507 129.877 127.488 220.843 127.488z" />
27
+ <glyph unicode="&#xe911;" glyph-name="arrow_eye" d="M512 184.32c147.797 0 288.939 82.603 408.235 238.933l17.408 22.869-17.408 22.869c-119.296 156.501-260.437 239.104-408.235 239.104s-289.109-82.603-408.235-239.104l-17.408-22.869 17.408-22.869c119.125-156.331 260.437-238.933 408.235-238.933zM512 632.661c116.395 0 230.059-64.341 330.411-186.539-100.352-122.027-214.187-186.368-330.411-186.368-116.395 0-230.059 64.341-330.411 186.539 100.181 122.027 214.016 186.368 330.411 186.368zM510.293 293.717c83.115 0 150.699 67.584 150.699 150.699s-67.584 150.699-150.699 150.699c-83.115 0-150.699-67.584-150.699-150.699s67.584-150.699 150.699-150.699zM510.293 519.68c41.472 0 75.264-33.792 75.264-75.264s-33.792-75.264-75.264-75.264c-41.472 0-75.264 33.792-75.264 75.264-0.171 41.472 33.621 75.264 75.264 75.264z" />
28
+ <glyph unicode="&#xe912;" glyph-name="arrow_eye_closed" d="M920.235 468.992c-119.296 156.501-260.437 239.104-408.235 239.104-57.296 0-113.616-12.423-168.047-36.743l70.881-53.755c32.024 9.991 64.493 15.065 97.166 15.065 116.395 0 230.059-64.341 330.411-186.54-27.682-33.661-56.393-62.906-85.893-87.648l61.426-46.583c35.519 31.508 69.722 68.681 102.292 111.363l17.408 22.868-17.41 22.869zM510.293 595.115c-18.676 0-36.564-3.422-53.081-9.656l203.208-154.107c0.37 4.306 0.572 8.661 0.572 13.063 0 83.116-67.584 150.7-150.699 150.7zM873.18 226.28l-713.387 541.013c-21.289 16.145-51.633 11.974-67.779-9.315s-11.976-51.633 9.315-67.779l123.489-93.652c-42.291-34.717-82.818-77.322-121.054-127.556l-17.408-22.869 17.408-22.869c119.125-156.332 260.437-238.933 408.235-238.933 65.911 0 130.495 16.445 192.411 48.517l110.302-83.651c8.743-6.63 19.011-9.834 29.196-9.834 14.619 0 29.068 6.6 38.583 19.147 16.147 21.291 11.977 51.635-9.312 67.78zM523.187 370.273c-4.192-0.73-8.497-1.121-12.894-1.121-38.915 0-71.067 29.756-74.882 67.688l87.776-66.567zM512 259.755c-116.395 0-230.059 64.34-330.411 186.539 33.684 41.028 68.92 75.481 105.271 103.204l79.536-60.319c-4.41-14.148-6.799-29.181-6.799-44.764 0-83.113 67.584-150.699 150.699-150.699 30.172 0 58.289 8.917 81.877 24.241l44.037-33.396c-40.75-16.406-82.321-24.806-124.209-24.806z" />
29
+ <glyph unicode="&#xe913;" glyph-name="calendar_add" d="M547.499 483.499h-70.997v-106.496h-106.325v-70.827h106.325v-106.496h70.997v106.496h106.325v70.827h-106.325zM902.315 802.816h-141.824v70.827h-70.997v-70.997h-354.816v70.997h-70.997v-70.997h-141.995v-780.459h780.459v780.629zM263.68 731.819v-70.997h70.997v70.997h354.816v-70.997h70.997v70.997h70.997v-106.496h-638.805v106.496h70.997zM192.683 93.184v461.312h638.635v-461.141h-638.635z" />
30
+ <glyph unicode="&#xe914;" glyph-name="calendar_money" d="M474.965 133.291h74.069v37.035c40.96 0 74.069 33.109 74.069 74.069v37.035c0 40.96-33.109 74.069-74.069 74.069h-74.069v37.035h148.139v74.069h-74.069v37.035h-74.069v-37.035c-40.96 0-74.069-33.109-74.069-74.069v-37.035c0-40.96 33.109-74.069 74.069-74.069h74.069v-37.035h-148.139v-74.069h74.069v-37.035zM252.928 873.643v-222.037h73.899v74.069h333.312v74.069h-333.312v73.899zM919.211 540.501v259.243h-148.139v73.899h-74.069v-222.037h74.069v74.069h74.069v-111.104h-666.283v111.104h37.035v74.069h-111.104v-777.387h814.421v518.144zM845.141 96.256h-666.283v444.245h666.283v-444.245z" />
31
+ <glyph unicode="&#xe915;" glyph-name="calendar2" d="M937.643 796.331h-154.795v77.312h-77.312v-232.107h77.312v77.312h77.483v-619.179h-696.661v619.179h38.741v77.483h-116.053v-773.973h851.285zM318.464 873.643h-77.312v-232.107h77.312v77.312h348.331v77.483h-348.331zM395.947 564.053h77.483v-77.483h-77.483v77.483zM550.741 564.053h77.483v-77.483h-77.483v77.483zM705.536 564.053h77.483v-77.483h-77.483v77.483zM241.152 409.259h77.483v-77.483h-77.483v77.483zM395.947 409.259h77.483v-77.483h-77.483v77.483zM550.741 409.259h77.483v-77.483h-77.483v77.483zM705.536 409.259h77.483v-77.483h-77.483v77.483zM241.152 254.464h77.483v-77.483h-77.483v77.483zM395.947 254.464h77.483v-77.483h-77.483v77.483zM550.741 254.464h77.483v-77.483h-77.483v77.483zM705.536 254.464h77.483v-77.483h-77.483v77.483z" />
32
+ <glyph unicode="&#xe916;" glyph-name="people" d="M263.68 696.32c0-39.211-31.787-70.997-70.997-70.997s-70.997 31.787-70.997 70.997c0 39.211 31.787 70.997 70.997 70.997s70.997-31.787 70.997-70.997zM121.685 128.683h70.997v212.821h35.499v-212.821h70.997v390.315h70.997v70.997h-212.992c-39.253 0-70.997-31.744-70.997-70.997v-177.323h35.499v-212.992zM902.315 696.32c0-39.211-31.787-70.997-70.997-70.997s-70.997 31.787-70.997 70.997c0 39.211 31.787 70.997 70.997 70.997s70.997-31.787 70.997-70.997zM866.816 589.824h-212.992v-70.997h70.997v-390.315h70.997v212.992h35.499v-212.821h70.997v212.821h35.499v177.493c-0.171 39.083-31.915 70.827-70.997 70.827zM582.997 696.32c0-39.211-31.787-70.997-70.997-70.997s-70.997 31.787-70.997 70.997c0 39.211 31.787 70.997 70.997 70.997s70.997-31.787 70.997-70.997zM405.504 518.997v-141.824h35.499v-248.32h141.824v248.149h35.499v141.824c0 39.253-31.744 70.997-70.997 70.997h-70.997c-38.912 0-70.827-31.744-70.827-70.827z" />
33
+ <glyph unicode="&#xe917;" glyph-name="shield_money" d="M146.091 837.12v-530.261l365.909-284.501 365.909 284.672v530.091h-219.477v-73.216h-36.523v109.739h-219.648v-109.739h-36.523v73.216h-219.648zM475.477 690.859v109.739h73.216v-109.739h182.955v73.216h73.216v-421.205l-292.864-227.669-292.693 227.669v421.035h73.216v-73.216h182.955zM548.523 324.949h-73.216c-20.139 0-36.523 16.384-36.523 36.523h-73.216c0-60.587 49.152-109.739 109.739-109.739v-36.523h73.216v36.523c60.587 0 109.739 49.152 109.739 109.739s-49.152 109.739-109.739 109.739h-73.216c-20.139 0-36.523 16.384-36.523 36.523s16.384 36.523 36.523 36.523h73.216c20.139 0 36.523-16.384 36.523-36.523h73.216c0 60.587-49.152 109.739-109.739 109.739v36.523h-73.216v-36.523c-60.587 0-109.739-49.152-109.739-109.739s49.152-109.739 109.739-109.739h73.216c20.139 0 36.523-16.384 36.523-36.523s-16.213-36.523-36.523-36.523z" />
34
+ <glyph unicode="&#xe918;" glyph-name="time_check" d="M86.528 448.341c-0.341-235.008 189.952-425.643 424.96-425.984s425.643 189.952 425.984 424.96c0.171 83.968-24.576 166.059-71.168 236.032l-60.075-63.488c22.528-39.765 37.035-83.627 42.325-129.195h-80.384v-84.651h80.384c-19.627-154.795-141.483-276.651-296.277-296.277v84.651h-84.651v-84.651c-154.795 19.456-276.821 141.483-296.277 296.277h84.651v84.651h-84.651c18.432 155.307 140.971 277.845 296.277 296.277v-82.603h84.651v81.749c46.251-5.803 90.795-21.163 130.731-44.885l61.44 61.44c-68.779 46.080-149.675 70.827-232.448 71.168-234.837-0.341-425.301-190.635-425.472-425.472zM414.549 605.355l-59.563-59.733 157.013-157.013 410.624 410.965-59.733 59.733-350.891-350.891z" />
35
+ <glyph unicode="&#xe919;" glyph-name="world_settings" d="M833.707 597.333l48.981 81.92-139.435 139.435-81.92-48.981c-8.875 4.267-18.091 7.851-27.648 11.435l-23.040 92.672h-98.645c-235.179-0.171-425.643-190.635-425.643-425.813s190.464-425.643 425.643-425.643h98.645l23.040 92.672c9.557 3.584 18.773 7.168 27.648 11.435l81.92-48.981 139.435 139.435-48.981 81.92c3.925 8.875 7.851 18.091 11.435 27.648l92.672 23.040v197.12l-92.672 23.040c-3.584 9.557-7.168 20.139-11.435 27.648zM319.659 448c0.171 35.669 3.243 71.339 9.216 106.496h147.627v-212.821h-147.627c-5.973 34.987-9.045 70.656-9.216 106.325zM476.501 795.989v-170.667h-129.877c28.16 86.699 75.264 150.869 129.877 170.667zM476.501 270.677v-171.008c-54.613 19.797-101.888 84.139-129.877 171.008h129.877zM547.499 547.669c55.125-20.309 83.456-81.579 63.147-136.704-10.752-29.184-33.792-52.224-63.147-63.147v199.851zM323.925 748.203c-22.869-38.4-40.277-79.701-51.712-122.709h-67.072c29.013 49.835 69.803 91.989 118.784 122.709zM173.568 554.496h83.797c-11.435-70.485-11.435-142.336 0-212.821h-83.797c-21.845 69.12-21.845 143.531 0 212.821zM205.141 270.677h67.072c11.435-43.179 29.013-84.651 51.712-123.051-48.981 30.72-89.771 73.045-118.784 123.051zM866.816 404.651l-77.312-19.456-5.632-19.115c-5.632-18.091-12.8-35.669-21.675-52.565l-9.557-17.749 40.789-68.096-61.099-61.44-68.437 41.301-17.749-9.557c-16.725-8.875-34.133-16.043-52.224-21.675l-19.456-5.632-19.115-77.312h-7.851v180.907c96.085 19.456 158.037 113.152 138.581 209.067-14.165 69.803-68.779 124.416-138.581 138.581v180.907h7.851l19.115-77.312 19.456-5.632c18.091-5.973 35.669-13.824 52.224-23.381l17.749-9.557 68.437 40.789 61.099-61.099-40.96-66.731 9.557-17.749c8.875-16.555 16.213-34.133 21.675-52.224l5.632-19.456 77.312-19.115 0.171-86.699z" />
36
  </font></defs></svg>
plugin-fw/assets/fonts/yith-icon.ttf CHANGED
Binary file
plugin-fw/assets/fonts/yith-icon.woff CHANGED
Binary file
plugin-fw/assets/js/yit-plugin-panel.js CHANGED
@@ -7,8 +7,7 @@
7
  * http://www.gnu.org/licenses/gpl-3.0.txt
8
  */
9
 
10
-
11
- (function ( $ ) {
12
  //dependencies handler
13
  $( '[data-dep-target]' ).each( function () {
14
  var t = $( this );
@@ -150,4 +149,4 @@
150
  // prevents the WC message for changes when leaving the panel page
151
  $( '.yith-plugin-fw-panel .woo-nav-tab-wrapper' ).removeClass( 'woo-nav-tab-wrapper' ).addClass( 'yith-nav-tab-wrapper' );
152
 
153
- })( jQuery );
7
  * http://www.gnu.org/licenses/gpl-3.0.txt
8
  */
9
 
10
+ jQuery( function ( $ ) {
 
11
  //dependencies handler
12
  $( '[data-dep-target]' ).each( function () {
13
  var t = $( this );
149
  // prevents the WC message for changes when leaving the panel page
150
  $( '.yith-plugin-fw-panel .woo-nav-tab-wrapper' ).removeClass( 'woo-nav-tab-wrapper' ).addClass( 'yith-nav-tab-wrapper' );
151
 
152
+ } );
plugin-fw/assets/js/yit-plugin-panel.min.js CHANGED
@@ -1,7 +1,7 @@
1
  var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,e,b){a instanceof String&&(a=String(a));for(var c=a.length,d=0;d<c;d++){var g=a[d];if(e.call(b,g,d,a))return{i:d,v:g}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,e,b){a!=Array.prototype&&a!=Object.prototype&&(a[e]=b.value)};
2
  $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,e,b,c){if(e){b=$jscomp.global;a=a.split(".");for(c=0;c<a.length-1;c++){var d=a[c];d in b||(b[d]={});b=b[d]}a=a[a.length-1];c=b[a];e=e(c);e!=c&&null!=e&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:e})}};
3
  $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6","es3");
4
- (function(a){function e(b,c,d,e){var f=!0;if("string"==typeof c){":radio"==c.substr(0,6)&&(c+=":checked");var h=a(c).val();"checkbox"==a(c).attr("type")&&(h=a(c).is(":checked")?"yes":"no");d=d.split(",");for(c=0;c<d.length;c++)if(h!=d[c])f=!1;else{f=!0;break}}d=a(b);b=a(b+"-container").closest("tr");1>b.length&&(b=d.closest(".yith-plugin-fw-panel-wc-row"));e=e.split("-");for(var g in e)if(h=e[g],f)switch(h){case "disable":b.removeClass("yith-disabled");d.attr("disabled",!1);break;case "hideme":d.show();
5
  break;default:b.show()}else switch(h){case "disable":b.addClass("yith-disabled");d.attr("disabled",!0);break;case "hideme":d.hide();break;default:b.hide()}}a("[data-dep-target]").each(function(){var b=a(this),c="#"+b.data("dep-target"),d="#"+b.data("dep-id"),g=b.data("dep-value"),f=b.data("dep-type");e(c,d,g.toString(),f);a(d).on("change",function(){e(c,d,g.toString(),f)}).change()});a(".rm_connectedlist").each(function(){var b=a(this).find("ul"),c=a(this).find(":hidden");b.sortable({connectWith:b,
6
  update:function(d,e){var f={};b.each(function(){var b={};a(this).children().each(function(){b[a(this).data("option")]=a(this).text()});f[a(this).data("list")]=b});c.val(JSON.stringify(f).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()});a(document).ready(function(){a(".google-analytic-generate").click(function(){var b=a("#"+a(this).data("textarea")).data("codemirrorInstance"),c=a("#"+a(this).data("input")).val(),d=a(this).data("basename");b.replaceRange("(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\nm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n"+
7
- ("ga('create', '"+c+"', '"+d+"');\n")+"ga('send', 'pageview');\n",b.getCursor("start"),b.getCursor("end"))})});a(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper")})(jQuery);
1
  var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,e,b){a instanceof String&&(a=String(a));for(var c=a.length,d=0;d<c;d++){var g=a[d];if(e.call(b,g,d,a))return{i:d,v:g}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,e,b){a!=Array.prototype&&a!=Object.prototype&&(a[e]=b.value)};
2
  $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,e,b,c){if(e){b=$jscomp.global;a=a.split(".");for(c=0;c<a.length-1;c++){var d=a[c];d in b||(b[d]={});b=b[d]}a=a[a.length-1];c=b[a];e=e(c);e!=c&&null!=e&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:e})}};
3
  $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6","es3");
4
+ jQuery(function(a){function e(b,c,d,e){var f=!0;if("string"==typeof c){":radio"==c.substr(0,6)&&(c+=":checked");var h=a(c).val();"checkbox"==a(c).attr("type")&&(h=a(c).is(":checked")?"yes":"no");d=d.split(",");for(c=0;c<d.length;c++)if(h!=d[c])f=!1;else{f=!0;break}}d=a(b);b=a(b+"-container").closest("tr");1>b.length&&(b=d.closest(".yith-plugin-fw-panel-wc-row"));e=e.split("-");for(var g in e)if(h=e[g],f)switch(h){case "disable":b.removeClass("yith-disabled");d.attr("disabled",!1);break;case "hideme":d.show();
5
  break;default:b.show()}else switch(h){case "disable":b.addClass("yith-disabled");d.attr("disabled",!0);break;case "hideme":d.hide();break;default:b.hide()}}a("[data-dep-target]").each(function(){var b=a(this),c="#"+b.data("dep-target"),d="#"+b.data("dep-id"),g=b.data("dep-value"),f=b.data("dep-type");e(c,d,g.toString(),f);a(d).on("change",function(){e(c,d,g.toString(),f)}).change()});a(".rm_connectedlist").each(function(){var b=a(this).find("ul"),c=a(this).find(":hidden");b.sortable({connectWith:b,
6
  update:function(d,e){var f={};b.each(function(){var b={};a(this).children().each(function(){b[a(this).data("option")]=a(this).text()});f[a(this).data("list")]=b});c.val(JSON.stringify(f).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()});a(document).ready(function(){a(".google-analytic-generate").click(function(){var b=a("#"+a(this).data("textarea")).data("codemirrorInstance"),c=a("#"+a(this).data("input")).val(),d=a(this).data("basename");b.replaceRange("(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\nm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n"+
7
+ ("ga('create', '"+c+"', '"+d+"');\n")+"ga('send', 'pageview');\n",b.getCursor("start"),b.getCursor("end"))})});a(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper")});
plugin-fw/assets/js/yith-enhanced-select.js CHANGED
@@ -68,6 +68,68 @@ jQuery( document ).ready( function ( $ ) {
68
  }
69
  } );
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  // TERM SEARCH
72
  $( '.yith-term-search' ).filter( ':not(.enhanced)' ).each( function () {
73
  var default_data = {
68
  }
69
  } );
70
 
71
+ // Customer Search
72
+ $( '.yith-customer-search' ).filter( ':not(.enhanced)' ).each( function () {
73
+ var default_data = {
74
+ action : 'woocommerce_json_search_customers',
75
+ security : yith_framework_enhanced_select_params.search_customers_nonce,
76
+ },
77
+ current_data = $.extend( default_data, $( this ).data() ),
78
+ select2_args = {
79
+ allowClear : $( this ).data( 'allow_clear' ) ? true : false,
80
+ placeholder : $( this ).data( 'placeholder' ),
81
+ minimumInputLength: $( this ).data( 'minimum_input_length' ) ? $( this ).data( 'minimum_input_length' ) : '3',
82
+ escapeMarkup : function ( m ) {
83
+ return m;
84
+ },
85
+ ajax : {
86
+ url : ajaxurl,
87
+ dataType : 'json',
88
+ quietMillis : 250,
89
+ data : function ( params ) {
90
+ var default_data_to_return = {
91
+ term: params.term
92
+ };
93
+
94
+ return $.extend( default_data_to_return, current_data );
95
+ },
96
+ processResults: function ( data ) {
97
+ var terms = [];
98
+ if ( data ) {
99
+ $.each( data, function ( id, text ) {
100
+ terms.push( { id: id, text: text } );
101
+ } );
102
+ }
103
+ return {
104
+ results: terms
105
+ };
106
+ },
107
+ cache : true
108
+ }
109
+ };
110
+
111
+ $( this ).select2( select2_args ).addClass( 'enhanced' );
112
+
113
+ if ( $( this ).data( 'sortable' ) ) {
114
+ var $select = $( this );
115
+ var $list = $( this ).next( '.select2-container' ).find( 'ul.select2-selection__rendered' );
116
+
117
+ $list.sortable( {
118
+ placeholder : 'ui-state-highlight select2-selection__choice',
119
+ forcePlaceholderSize: true,
120
+ items : 'li:not(.select2-search__field)',
121
+ tolerance : 'pointer',
122
+ stop : function () {
123
+ $( $list.find( '.select2-selection__choice' ).get().reverse() ).each( function () {
124
+ var id = $( this ).data( 'data' ).id;
125
+ var option = $select.find( 'option[value="' + id + '"]' )[ 0 ];
126
+ $select.prepend( option );
127
+ } );
128
+ }
129
+ } );
130
+ }
131
+ } );
132
+
133
  // TERM SEARCH
134
  $( '.yith-term-search' ).filter( ':not(.enhanced)' ).each( function () {
135
  var default_data = {
plugin-fw/assets/js/yith-enhanced-select.min.js CHANGED
@@ -1,8 +1 @@
1
- var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,f,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var b=a[e];if(f.call(c,b,e,a))return{i:e,v:b}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,c){a!=Array.prototype&&a!=Object.prototype&&(a[f]=c.value)};
2
- $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,f,c,d){if(f){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];f=f(d);f!=d&&null!=f&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:f})}};
3
- $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
4
- jQuery(document).ready(function(a){a(document.body).on("yith-framework-enhanced-select-init",function(){a(".yith-post-search").filter(":not(.enhanced)").each(function(){var f=a.extend({action:"yith_plugin_fw_json_search_posts",security:yith_framework_enhanced_select_params.search_posts_nonce,post_type:"post"},a(this).data()),c={allowClear:a(this).data("allow_clear")?!0:!1,placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):
5
- "3",escapeMarkup:function(a){return a},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(b){return a.extend({term:b.term},f)},processResults:function(b){var c=[];b&&a.each(b,function(a,b){c.push({id:a,text:b})});return{results:c}},cache:!0}};a(this).select2(c).addClass("enhanced");if(a(this).data("sortable")){var d=a(this),e=a(this).next(".select2-container").find("ul.select2-selection__rendered");e.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,
6
- items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){a(e.find(".select2-selection__choice").get().reverse()).each(function(){var b=a(this).data("data").id;b=d.find('option[value="'+b+'"]')[0];d.prepend(b)})}})}});a(".yith-term-search").filter(":not(.enhanced)").each(function(){var f=a.extend({action:"yith_plugin_fw_json_search_terms",security:yith_framework_enhanced_select_params.search_terms_nonce,taxonomy:"category"},a(this).data()),c={allowClear:a(this).data("allow_clear")?
7
- !0:!1,placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):"3",escapeMarkup:function(a){return a},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(b){return a.extend({term:b.term},f)},processResults:function(b){var c=[];b&&a.each(b,function(a,b){c.push({id:a,text:b})});return{results:c}},cache:!0}};a(this).select2(c).addClass("enhanced");if(a(this).data("sortable")){var d=a(this),e=a(this).next(".select2-container").find("ul.select2-selection__rendered");
8
- e.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){a(e.find(".select2-selection__choice").get().reverse()).each(function(){var b=a(this).data("data").id;b=d.find('option[value="'+b+'"]')[0];d.prepend(b)})}})}})}).trigger("yith-framework-enhanced-select-init")});
1
+ jQuery(document).ready(function(c){"use strict";c(document.body).on("yith-framework-enhanced-select-init",function(){c(".yith-post-search").filter(":not(.enhanced)").each(function(){var e={action:"yith_plugin_fw_json_search_posts",security:yith_framework_enhanced_select_params.search_posts_nonce,post_type:"post"},a=c.extend(e,c(this).data()),t={allowClear:!!c(this).data("allow_clear"),placeholder:c(this).data("placeholder"),minimumInputLength:c(this).data("minimum_input_length")?c(this).data("minimum_input_length"):"3",escapeMarkup:function(e){return e},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(e){var t={term:e.term};return c.extend(t,a)},processResults:function(e){var a=[];return e&&c.each(e,function(e,t){a.push({id:e,text:t})}),{results:a}},cache:!0}};if(c(this).select2(t).addClass("enhanced"),c(this).data("sortable")){var n=c(this),i=c(this).next(".select2-container").find("ul.select2-selection__rendered");i.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){c(i.find(".select2-selection__choice").get().reverse()).each(function(){var e=c(this).data("data").id,t=n.find('option[value="'+e+'"]')[0];n.prepend(t)})}})}}),c(".yith-customer-search").filter(":not(.enhanced)").each(function(){var e={action:"woocommerce_json_search_customers",security:yith_framework_enhanced_select_params.search_customers_nonce},a=c.extend(e,c(this).data()),t={allowClear:!!c(this).data("allow_clear"),placeholder:c(this).data("placeholder"),minimumInputLength:c(this).data("minimum_input_length")?c(this).data("minimum_input_length"):"3",escapeMarkup:function(e){return e},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(e){var t={term:e.term};return c.extend(t,a)},processResults:function(e){var a=[];return e&&c.each(e,function(e,t){a.push({id:e,text:t})}),{results:a}},cache:!0}};if(c(this).select2(t).addClass("enhanced"),c(this).data("sortable")){var n=c(this),i=c(this).next(".select2-container").find("ul.select2-selection__rendered");i.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){c(i.find(".select2-selection__choice").get().reverse()).each(function(){var e=c(this).data("data").id,t=n.find('option[value="'+e+'"]')[0];n.prepend(t)})}})}}),c(".yith-term-search").filter(":not(.enhanced)").each(function(){var e={action:"yith_plugin_fw_json_search_terms",security:yith_framework_enhanced_select_params.search_terms_nonce,taxonomy:"category"},a=c.extend(e,c(this).data()),t={allowClear:!!c(this).data("allow_clear"),placeholder:c(this).data("placeholder"),minimumInputLength:c(this).data("minimum_input_length")?c(this).data("minimum_input_length"):"3",escapeMarkup:function(e){return e},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(e){var t={term:e.term};return c.extend(t,a)},processResults:function(e){var a=[];return e&&c.each(e,function(e,t){a.push({id:e,text:t})}),{results:a}},cache:!0}};if(c(this).select2(t).addClass("enhanced"),c(this).data("sortable")){var n=c(this),i=c(this).next(".select2-container").find("ul.select2-selection__rendered");i.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){c(i.find(".select2-selection__choice").get().reverse()).each(function(){var e=c(this).data("data").id,t=n.find('option[value="'+e+'"]')[0];n.prepend(t)})}})}})}).trigger("yith-framework-enhanced-select-init")});
 
 
 
 
 
 
 
plugin-fw/assets/js/yith-fields.js CHANGED
@@ -1,258 +1,270 @@
1
- jQuery(function ($) {
 
 
2
  /* global yith_framework_fw_fields*/
3
 
4
  var yith_fields_init = function () {
5
- var $datepicker = $('.yith-plugin-fw-datepicker'),
6
- $colorpicker = $('.yith-plugin-fw-colorpicker'),
7
- $upload = {
8
- imgPreviewHandler: '.yith-plugin-fw-upload-img-preview',
9
  uploadButtonHandler: '.yith-plugin-fw-upload-button',
10
- imgUrlHandler: '.yith-plugin-fw-upload-img-url',
11
- resetButtonHandler: '.yith-plugin-fw-upload-button-reset',
12
- imgUrl: $('.yith-plugin-fw-upload-img-url')
13
  },
14
- $wpAddMedia = $('.add_media'),
15
  $imageGallery = {
16
- sliderWrapper: $('.yith-plugin-fw .image-gallery ul.slides-wrapper'),
17
  buttonHandler: '.yith-plugin-fw .image-gallery-button'
18
  },
19
- $sidebars = $('.yith-plugin-fw-sidebar-layout'),
20
- $slider = $('.yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal'),
21
- $codemirror = $('.codemirror'),
22
- $icons = $('.yit-icons-manager-wrapper'),
23
- $checkgroup = $(".yith-plugin-ui td.forminp-checkbox");
24
 
25
  /* Datepicker */
26
- $datepicker.each(function () {
27
- var args = $(this).data();
28
- $(this).datepicker(args);
29
- });
30
 
31
  /* Colorpicker */
32
- $colorpicker.wpColorPicker({
33
- palettes: false,
34
- width: 200,
35
- mode: 'hsl',
36
- clear: function () {
37
- var input = $(this);
38
- input.val(input.data('default-color'));
39
- input.change();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
41
- });
42
-
43
 
44
- $colorpicker.each(function () {
45
- var select_label = $(this).data('variations-label'),
46
- wrap_main = $(this).closest( '.yith-plugin-fw-field-wrapper' ),
47
- wrap = wrap_main.find('.wp-picker-input-wrap');
48
-
49
- wrap_main.find('a.wp-color-result').attr('title', select_label);
50
-
51
- if( ! wrap.find( '.wp-picker-clear-custom' ).length ) {
52
- var button = $('<span/>').attr({
53
- class :"wp-picker-default-custom"
54
- });
55
- wrap.find( '.wp-picker-default' ).wrap( button );
56
  }
57
- });
58
-
59
 
60
 
61
  /* Upload */
62
- if (typeof wp !== 'undefined' && typeof wp.media !== 'undefined') {
63
  var _custom_media = true;
64
  // preview
65
- $upload.imgUrl.change(function () {
66
- var url = $(this).val(),
67
- re = new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)"),
68
- preview = $(this).parent().find($upload.imgPreviewHandler).first();
69
 
70
- if (preview.length < 1)
71
- preview = $(this).parent().parent().find($upload.imgPreviewHandler).first();
 
72
 
73
- if (re.test(url)) {
74
- preview.html('<img src="' + url + '" style="max-width:100px; max-height:100px;" />');
75
  } else {
76
- preview.html('');
77
  }
78
- }).trigger('change');
79
 
80
- $(document).on('click', $upload.uploadButtonHandler, function (e) {
81
  e.preventDefault();
82
 
83
- var t = $(this),
84
  custom_uploader,
85
- id = t.attr('id').replace(/-button$/, '');
86
 
87
  //If the uploader object has already been created, reopen the dialog
88
- if (custom_uploader) {
89
  custom_uploader.open();
90
  return;
91
  }
92
 
93
  var custom_uploader_states = [
94
  // Main states.
95
- new wp.media.controller.Library({
96
- library: wp.media.query(),
97
- multiple: false,
98
- title: 'Choose Image',
99
- priority: 20,
100
- filterable: 'uploaded'
101
- })
102
  ];
103
 
104
  // Create the media frame.
105
- custom_uploader = wp.media.frames.downloadable_file = wp.media({
106
- // Set the title of the modal.
107
- title: 'Choose Image',
108
- library: {
109
- type: ''
110
- },
111
- button: {
112
- text: 'Choose Image'
113
- },
114
- multiple: false,
115
- states: custom_uploader_states
116
- });
117
 
118
  //When a file is selected, grab the URL and set it as the text field's value
119
- custom_uploader.on('select', function () {
120
- var attachment = custom_uploader.state().get('selection').first().toJSON();
121
 
122
- $("#" + id).val(attachment.url);
123
  // Save the id of the selected element to an element which name is the same with a suffix "-yith-attachment-id"
124
- if ($("#" + id + "-yith-attachment-id")) {
125
- $("#" + id + "-yith-attachment-id").val(attachment.id);
126
  }
127
- $upload.imgUrl.trigger('change');
128
- });
129
 
130
  //Open the uploader dialog
131
  custom_uploader.open();
132
- });
133
 
134
- $(document).on('click', $upload.resetButtonHandler, function (e) {
135
- var t = $(this),
136
- id = t.attr('id'),
137
- input_id = t.attr('id').replace(/-button-reset$/, ''),
138
- default_value = $('#' + id).data('default');
139
 
140
- $("#" + input_id).val(default_value);
141
- $upload.imgUrl.trigger('change');
142
- });
143
  }
144
 
145
- $wpAddMedia.on('click', function () {
146
  _custom_media = false;
147
- });
148
 
149
  /* Image Gallery */
150
- if (typeof wp !== 'undefined' && typeof wp.media !== 'undefined') {
151
- $(document).on('click', $imageGallery.buttonHandler, function (e) {
152
- var $t = $(this),
153
- $container = $t.closest('.image-gallery'),
154
- $image_gallery_ids = $container.find('.image_gallery_ids'),
155
- attachment_ids = $image_gallery_ids.val(),
156
- $gallery_images_wrapper = $container.find('ul.slides-wrapper');
157
 
158
  // Create the media frame.
159
- var image_gallery_frame = wp.media.frames.image_gallery = wp.media({
160
- // Set the title of the modal.
161
- title: $t.data('choose'),
162
- button: {
163
- text: $t.data('update')
164
- },
165
- states: [
166
- new wp.media.controller.Library({
167
- title: $t.data('choose'),
168
- filterable: 'all',
169
- multiple: true
170
- })
171
- ]
172
- });
173
 
174
  // When an image is selected, run a callback.
175
- image_gallery_frame.on('select', function () {
176
- var selection = image_gallery_frame.state().get('selection');
177
- selection.map(function (attachment) {
178
  attachment = attachment.toJSON();
179
 
180
- if (attachment.id) {
181
  attachment_ids = attachment_ids ? attachment_ids + "," + attachment.id : attachment.id;
182
- $gallery_images_wrapper.append('<li class="image" data-attachment_id="' + attachment.id + '"><img src="' + attachment.sizes.thumbnail.url + '"/><ul class="actions"><li><a href="#" class="delete" title="' + $t.data('delete') + '">x</a></li></ul></li>');
183
  }
184
- });
185
 
186
- $image_gallery_ids.val(attachment_ids);
187
- });
188
 
189
  image_gallery_frame.open();
190
 
191
- });
192
 
193
  // Image ordering
194
- $imageGallery.sliderWrapper.each(function () {
195
- var $t = $(this);
196
- $t.sortable({
197
- items: 'li.image',
198
- cursor: 'move',
199
- scrollSensitivity: 40,
200
- forcePlaceholderSize: true,
201
- forceHelperSize: false,
202
- helper: 'clone',
203
- opacity: 0.65,
204
- start: function (event, ui) {
205
- ui.item.css('background-color', '#f6f6f6');
206
- },
207
- stop: function (event, ui) {
208
- ui.item.removeAttr('style');
209
- },
210
- update: function (event, ui) {
211
- var attachment_ids = '';
212
-
213
- $t.find('li.image').css('cursor', 'default').each(function () {
214
- var attachment_id = $(this).attr('data-attachment_id');
215
- attachment_ids = attachment_ids + attachment_id + ',';
216
- });
217
-
218
- $t.closest('.image-gallery').find('.image_gallery_ids').val(attachment_ids);
219
- }
220
- });
221
- });
222
 
223
  // Remove images
224
- $imageGallery.sliderWrapper.on('click', 'a.delete', function () {
225
- var $wrapper = $(this).closest('.image-gallery'),
226
- $gallery = $(this).closest('.image-gallery ul.slides-wrapper'),
227
- $image_gallery_ids = $wrapper.find('.image_gallery_ids'),
228
- attachment_ids = '';
229
 
230
- $(this).closest('li.image').remove();
231
 
232
- $gallery.find('li.image').css('cursor', 'default').each(function () {
233
- var attachment_id = $(this).attr('data-attachment_id');
234
- attachment_ids = attachment_ids + attachment_id + ',';
235
- });
236
 
237
- $image_gallery_ids.val(attachment_ids);
238
- });
239
  }
240
 
241
 
242
  /* Sidebars */
243
- $sidebars.each(function () {
244
- var $images = $(this).find('img');
245
- $images.on('click', function () {
246
- var $container = $(this).closest('.yith-plugin-fw-sidebar-layout'),
247
- $left = $container.find('.yith-plugin-fw-sidebar-layout-sidebar-left-container'),
248
- $right = $container.find('.yith-plugin-fw-sidebar-layout-sidebar-right-container'),
249
- type = $(this).data('type');
250
-
251
- $(this).parent().children(':radio').attr('checked', false);
252
- $(this).prev(':radio').attr('checked', true);
253
-
254
- if (typeof type != 'undefined') {
255
- switch (type) {
256
  case 'left':
257
  $left.show();
258
  $right.hide();
@@ -271,156 +283,146 @@ jQuery(function ($) {
271
  break;
272
  }
273
  }
274
- });
275
- });
276
 
277
  /* Slider */
278
- $slider.each(function () {
279
- var val = $(this).data('val'),
280
- minValue = $(this).data('min'),
281
- maxValue = $(this).data('max'),
282
- step = $(this).data('step'),
283
- labels = $(this).data('labels');
284
-
285
- $(this).slider({
286
- value: val,
287
- min: minValue,
288
- max: maxValue,
289
- range: 'min',
290
- step: step,
291
-
292
- create: function () {
293
- $(this).find('.ui-slider-handle').text($(this).slider("value"));
294
- },
295
-
296
-
297
- slide: function (event, ui) {
298
- $(this).find('input').val(ui.value);
299
- $(this).find('.ui-slider-handle').text(ui.value);
300
- $(this).siblings('.feedback').find('strong').text(ui.value + labels);
301
- }
302
- });
303
- });
304
 
305
  /* codemirror */
306
- $codemirror.each(function (i, v) {
307
- var editor = CodeMirror.fromTextArea(v, {
308
- lineNumbers: 1,
309
- mode: 'javascript',
310
  showCursorWhenSelecting: true
311
- });
312
 
313
- $(v).data('codemirrorInstance', editor);
314
- });
315
 
316
  /* Select All - Deselect All */
317
- $(document).on('click', '.yith-plugin-fw-select-all', function () {
318
- var $targetSelect = $('#' + $(this).data('select-id'));
319
- $targetSelect.find('option').prop('selected', true).trigger('change');
320
- });
321
 
322
- $(document).on('click', '.yith-plugin-fw-deselect-all', function () {
323
- var $targetSelect = $('#' + $(this).data('select-id'));
324
- $targetSelect.find('option').prop('selected', false).trigger('change');
325
- });
326
 
327
 
328
- $icons.each(function () {
329
- var $container = $(this),
330
- $preview = $container.find('.yit-icons-manager-icon-preview').first(),
331
- $text = $container.find('.yit-icons-manager-icon-text');
332
 
333
- $container.on('click', '.yit-icons-manager-list li', function (event) {
334
- var $target = $(event.target).closest('li'),
335
- font = $target.data('font'),
336
- icon = $target.data('icon'),
337
- key = $target.data('key'),
338
- name = $target.data('name');
339
 
340
- $preview.attr('data-font', font);
341
- $preview.attr('data-icon', icon);
342
- $preview.attr('data-key', key);
343
- $preview.attr('data-name', name);
344
 
345
- $text.val(font + ':' + name);
346
 
347
- $container.find('.yit-icons-manager-list li').removeClass('active');
348
- $target.addClass('active');
349
- });
350
 
351
- $container.on('click', '.yit-icons-manager-action-set-default', function () {
352
- $container.find('.yit-icons-manager-list li.default').trigger('click');
353
- });
354
- });
355
 
356
  /** Select Images */
357
- $(document).on('click', '.yith-plugin-fw-select-images__item', function () {
358
- var item = $(this),
359
- key = item.data('key'),
360
- wrapper = item.closest('.yith-plugin-fw-select-images__wrapper'),
361
- items = wrapper.find('.yith-plugin-fw-select-images__item'),
362
- select = wrapper.find('select').first();
363
-
364
- if (select.length) {
365
- select.val(key);
366
- items.removeClass('yith-plugin-fw-select-images__item--selected');
367
- item.addClass('yith-plugin-fw-select-images__item--selected');
368
  }
369
- });
370
 
371
- $(document.body).trigger('wc-enhanced-select-init');
372
 
373
- $(document).find('.ui-sortable .yith-toggle-elements').sortable(
374
  {
375
- cursor: 'move',
376
- axis: 'y',
377
- scrollSensitivity: 40,
378
  forcePlaceholderSize: true,
379
- helper: 'clone',
380
 
381
- stop: function (event, ui) {
382
- var keys = jQuery('.ui-sortable-handle'),
383
- i = 0,
384
  array_keys = new Array();
385
- for (i = 0; i < keys.length; i++) {
386
- array_keys[i] = $(keys[i]).data('item_key');
387
  }
388
- if (array_keys.length > 0) {
389
- var toggle = $(this).closest('.toggle-element');
390
- toggle.saveToggleElement(null, array_keys);
391
  }
392
  }
393
  }
394
  );
395
 
396
- $.each($checkgroup, function () {
397
- var children = $(this).find('fieldset');
398
- if (children.length > 3 && children.length < 6) {
399
- $(this).addClass('two-cols')
400
- }
401
- if (children.length > 6) {
402
- $(this).addClass('three-cols')
403
- }
404
- });
405
-
406
- $(document.body).trigger('yith-framework-enhanced-select-init');
407
  };
408
 
409
  yith_fields_init();
410
 
411
  /* on-off */
412
- $(document).on('click', '.yith-plugin-fw-onoff-container span', function () {
413
- var input = $(this).prev('input'),
414
- checked = input.prop('checked');
415
 
416
- if (checked) {
417
- input.prop('checked', false).attr('value', 'no').removeClass('onoffchecked');
418
  } else {
419
- input.prop('checked', true).attr('value', 'yes').addClass('onoffchecked');
420
  }
421
 
422
  input.change();
423
- });
424
 
425
 
426
  /** Toggle **/
@@ -428,222 +430,274 @@ jQuery(function ($) {
428
 
429
 
430
  //TOGGLE ELEMENT
431
- $.fn.saveToggleElement = function (spinner, array_keys) {
432
- var toggle = $(this),
433
- action = 'yith_plugin_fw_save_toggle_element',
434
- formdata = toggle.serializeToggleElement(),
435
- id = toggle.find('.yith-toggle_wrapper').attr('id'),
436
- current_tab = $.urlParam('tab');
437
-
438
- if (typeof array_keys != 'undefined' && array_keys.length > 0) {
439
- formdata.append('yith_toggle_elements_order_keys', array_keys);
440
  }
441
 
442
- if (toggle.closest('.metaboxes-tab.yith-plugin-ui').length) {
443
- action = 'yith_plugin_fw_save_toggle_element_metabox';
444
- post_id = $(this).closest('form#post').find('#post_ID').val();
445
- yit_metaboxes_nonce = $(this).closest('form#post').find('#yit_metaboxes_nonce').val();
446
- url = yith_framework_fw_fields.ajax_url + '?action=' + action + "&post_ID=" + post_id + '&yit_metaboxes_nonce=' + yit_metaboxes_nonce + "&toggle_id=" + id;
447
  } else {
448
  url = yith_framework_fw_fields.admin_url + '?action=' + action + '&tab=' + current_tab + "&toggle_id=" + id;
449
  }
450
 
451
- $.ajax({
452
- type: "POST",
453
- url: url,
454
- data: formdata,
455
- contentType: false,
456
- processData: false,
457
- success: function (result) {
458
- if (spinner) {
459
- spinner.removeClass('show');
460
- }
461
 
462
- $(document).trigger('yith_save_toggle_element_done', [result, toggle]);
463
- },
464
- });
465
  };
466
 
467
  $.fn.serializeToggleElement = function () {
468
- var obj = $(this);
469
  /* ADD FILE TO PARAM AJAX */
470
  var formData = new FormData();
471
- var params = $(obj).find(":input").serializeArray();
472
 
473
- $.each(params, function (i, val) {
474
  el_name = val.name;
475
- formData.append(val.name, val.value);
476
- });
477
 
478
  return formData;
479
  };
480
 
481
  $.fn.formatToggleTitle = function () {
482
- var toggle_el = $(this),
483
- fields = toggle_el.find(':input'),
484
- title = toggle_el.find('span.title').data('title_format'),
485
- subtitle = toggle_el.find('.subtitle').data('subtitle_format'),
486
- regExp = new RegExp( "[^%%]+(?=[%%])", 'g' );
487
 
488
- if (typeof title != 'undefined') {
489
  var res = title.match( regExp );
490
  }
491
 
492
- if (typeof subtitle != 'undefined') {
493
  var ressub = subtitle.match( regExp );
494
  }
495
 
496
- $.each(fields, function (i, field) {
497
- if (typeof $(field).attr('id') != 'undefined') {
498
- $field_id = $(field).attr('id');
499
- $field_array = $field_id.split('_');
500
  $field_array.pop();
501
- $field_id = $field_array.join('_');
502
- $field_val = $(field).val();
503
 
504
- if (res != null && typeof res != 'undefined' && res.indexOf($field_id) !== -1) {
505
- title = title.replace('%%' + $field_id + '%%', $field_val);
506
  }
507
- if (ressub != null && typeof ressub != 'undefined' && ressub.indexOf($field_id) !== -1) {
508
- subtitle = subtitle.replace('%%' + $field_id + '%%', $field_val);
509
  }
510
  }
511
- });
512
 
513
- if ('' !== title) {
514
- toggle_el.find('span.title').html(title);
515
  }
516
 
517
- if ('' !== subtitle) {
518
- toggle_el.find('.subtitle').html(subtitle);
519
  }
520
 
521
- $(document).trigger('yith-toggle-element-item-title', [toggle_el]);
522
  };
523
 
524
- $.urlParam = function (name) {
525
- var results = new RegExp('[\?&]' + name + '=([^&#]*)')
526
- .exec(window.location.search);
527
 
528
- return (results !== null) ? results[1] || 0 : false;
529
  };
530
 
531
- $(document).on('click', '.yith-toggle', function (event) {
532
- var _toggle = $(event.target),
533
- _section = _toggle.closest('.yith-toggle-row'),
534
- _content = _section.find('.yith-toggle-content');
535
 
536
- if (_section.is('.yith-toggle-row-opened')) {
537
- _content.slideUp(400);
 
 
 
 
538
  } else {
539
- _content.slideDown(400);
540
  }
541
- _section.toggleClass('yith-toggle-row-opened');
542
- });
543
 
544
  /**Add new box toggle**/
545
- $(document).on('click', '.yith-add-box-button', function (event) {
546
  event.preventDefault();
547
- var target_id = $(this).data('box_id'),
548
- id = $(this).closest('.yith-toggle_wrapper').attr('id');
549
- template = wp.template('yith-toggle-element-add-box-content-' + id);
550
- if ('' !== target_id) {
551
- $('#' + target_id).html(template({index: 'box_id'})).slideToggle();
 
 
 
 
 
 
 
 
 
 
 
 
552
  yith_fields_init();
553
- $(document).trigger('yith-add-box-button-toggle', [$(this)]);
554
  }
555
- });
 
 
556
 
557
- $(document).on('click', '.yith-add-box-buttons .yith-save-button', function (event) {
558
  event.preventDefault();
559
- var add_box = $(this).parents('.yith-add-box'),
560
- id = $(this).closest('.yith-toggle_wrapper').attr('id'),
561
- spinner = add_box.find('.spinner'),
562
- toggle_element = $(this).parents('.toggle-element'),
563
- fields = add_box.find(':input'),
564
- counter = toggle_element.find('.yith-toggle-row').length,
565
- hidden_obj = $('<input type="hidden">');
566
- hidden_obj.val(counter);
567
- $(document).trigger('yith-toggle-change-counter', [hidden_obj, add_box]);
568
-
569
- counter = hidden_obj.val();
570
- var template = wp.template('yith-toggle-element-item-' + id),
571
- toggle_el = $(template({index: counter}));
572
-
573
- spinner.addClass('show');
574
-
575
- $.each(fields, function (i, field) {
576
- if (typeof $(field).attr('id') != 'undefined') {
577
-
578
- $field_id = $(field).attr('id');
579
- $field_val = $(field).val();
580
-
581
- if ('radio' == $(field).attr('type')) {
582
- $field_id = $field_id.replace('new_', '');
583
- $field_id = $field_id.replace('-' + $field_val, '');
 
 
584
  $field_id = $field_id + '_dataindex-' + $field_val;
585
  } else {
586
- $field_id = $field_id.replace('new_', '') + '_' + counter;
587
  }
588
 
589
- if ($(field).is(':checked')) {
590
- $(toggle_el).find('#' + $field_id).prop('checked', true);
591
  }
592
 
593
- if ($(field).hasClass('yith-post-search') || $(field).hasClass('yith-term-search')) {
594
- $(toggle_el).find('#' + $field_id).html($('#' + $(field).attr('id')).html());
595
  }
596
 
597
- $(toggle_el).find('#' + $field_id).val($field_val);
598
 
599
  }
600
 
601
- });
602
 
603
- $(toggle_el).formatToggleTitle();
604
- var form_is_valid = $('<input type="hidden">').val('yes');
605
- $(document).trigger('yith-toggle-element-item-before-add', [add_box, toggle_el, form_is_valid]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
606
 
607
 
608
- if (form_is_valid.val() === 'yes') {
609
- $(toggle_element).find('.yith-toggle-elements').append(toggle_el);
610
- $(add_box).find('.yith-plugin-fw-datepicker').datepicker('destroy');
611
- $(add_box).html('').toggle();
612
- toggle_element.saveToggleElement();
613
- yith_fields_init();
614
- }
615
- });
616
 
617
- $(document).on('click', '.yith-toggle-row .yith-save-button', function (event) {
 
 
618
  event.preventDefault();
619
- var toggle = $(this).closest('.toggle-element'),
620
- toggle_row = $(this).closest('.yith-toggle-row'),
621
- spinner = toggle_row.find('.spinner');
622
- toggle_row.formatToggleTitle();
623
-
624
- var form_is_valid = $('<input type="hidden">').val('yes');
625
- $(document).trigger('yith-toggle-element-item-before-update', [toggle, toggle_row, form_is_valid]);
626
- if (form_is_valid.val() === 'yes') {
627
- spinner.addClass('show');
628
- toggle.saveToggleElement(spinner);
629
  }
630
- });
631
 
632
  //register remove the dome and save the toggle
633
- $(document).on('click', '.yith-toggle-row .yith-delete-button', function (event) {
634
  event.preventDefault();
635
- var toggle = $(this).closest('.toggle-element'),
636
- toggle_row = $(this).closest('.yith-toggle-row');
637
  toggle_row.remove();
638
  toggle.saveToggleElement();
639
- });
640
 
641
  //register onoff status
642
- $(document).on('click', '.yith-toggle-onoff', function (event) {
643
  event.preventDefault();
644
- var toggle = $(this).closest('.toggle-element');
645
  toggle.saveToggleElement();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
646
  });
647
 
 
 
 
648
 
649
- });
1
+
2
+ jQuery( function ( $ ) {
3
+
4
  /* global yith_framework_fw_fields*/
5
 
6
  var yith_fields_init = function () {
7
+ var $datepicker = $( '.yith-plugin-fw-datepicker' ),
8
+ $colorpicker = $( '.yith-plugin-fw-colorpicker' ),
9
+ $upload = {
10
+ imgPreviewHandler : '.yith-plugin-fw-upload-img-preview',
11
  uploadButtonHandler: '.yith-plugin-fw-upload-button',
12
+ imgUrlHandler : '.yith-plugin-fw-upload-img-url',
13
+ resetButtonHandler : '.yith-plugin-fw-upload-button-reset',
14
+ imgUrl : $( '.yith-plugin-fw-upload-img-url' )
15
  },
16
+ $wpAddMedia = $( '.add_media' ),
17
  $imageGallery = {
18
+ sliderWrapper: $( '.yith-plugin-fw .image-gallery ul.slides-wrapper' ),
19
  buttonHandler: '.yith-plugin-fw .image-gallery-button'
20
  },
21
+ $sidebars = $( '.yith-plugin-fw-sidebar-layout' ),
22
+ $slider = $( '.yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal' ),
23
+ $codemirror = $( '.codemirror' ),
24
+ $icons = $( '.yit-icons-manager-wrapper' ),
25
+ $checkgroup = $( ".yith-plugin-ui td.forminp-checkbox" );
26
 
27
  /* Datepicker */
28
+ $datepicker.each( function () {
29
+ var args = $( this ).data();
30
+ $( this ).datepicker( args );
31
+ } );
32
 
33
  /* Colorpicker */
34
+ $colorpicker.wpColorPicker( {
35
+ palettes: false,
36
+ width : 200,
37
+ mode : 'hsl',
38
+ clear : function () {
39
+ var input = $( this );
40
+ input.val( input.data( 'default-color' ) );
41
+ input.change();
42
+ }
43
+ } );
44
+
45
+
46
+ $colorpicker.each( function () {
47
+ var select_label = $( this ).data( 'variations-label' ),
48
+ wrap_main1 = $( this ).closest( '.yith-plugin-fw-colorpicker-field-wrapper' ),
49
+ wrap_main2 = $( this ).closest( '.yith-single-colorpicker' ),
50
+ wrap1 = wrap_main1.find( '.wp-picker-input-wrap' ),
51
+ wrap2 = wrap_main2.find( '.wp-picker-input-wrap' );
52
+
53
+ wrap1.length && wrap_main1.find( 'a.wp-color-result' ).attr( 'title', select_label );
54
+ wrap_main2.length && wrap_main2.find( 'a.wp-color-result' ).attr( 'title', select_label );
55
+
56
+ if ( !wrap1.find( '.wp-picker-clear-custom' ).length ) {
57
+ var button = $( '<span/>' ).attr( {
58
+ class: "wp-picker-default-custom"
59
+ } );
60
+ wrap1.find( '.wp-picker-default' ).wrap( button );
61
  }
 
 
62
 
63
+ if ( !wrap2.find( '.wp-picker-clear-custom' ).length ) {
64
+ var button = $( '<span/>' ).attr( {
65
+ class: "wp-picker-default-custom"
66
+ } );
67
+ wrap2.find( '.wp-picker-default' ).wrap( button );
 
 
 
 
 
 
 
68
  }
69
+ } );
 
70
 
71
 
72
  /* Upload */
73
+ if ( typeof wp !== 'undefined' && typeof wp.media !== 'undefined' ) {
74
  var _custom_media = true;
75
  // preview
76
+ $upload.imgUrl.change( function () {
77
+ var url = $( this ).val(),
78
+ re = new RegExp( "(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)" ),
79
+ preview = $( this ).parent().find( $upload.imgPreviewHandler ).first();
80
 
81
+ if ( preview.length < 1 ) {
82
+ preview = $( this ).parent().parent().find( $upload.imgPreviewHandler ).first();
83
+ }
84
 
85
+ if ( re.test( url ) ) {
86
+ preview.html( '<img src="' + url + '" style="max-width:100px; max-height:100px;" />' );
87
  } else {
88
+ preview.html( '' );
89
  }
90
+ } ).trigger( 'change' );
91
 
92
+ $( document ).on( 'click', $upload.uploadButtonHandler, function ( e ) {
93
  e.preventDefault();
94
 
95
+ var t = $( this ),
96
  custom_uploader,
97
+ id = t.attr( 'id' ).replace( /-button$/, '' );
98
 
99
  //If the uploader object has already been created, reopen the dialog
100
+ if ( custom_uploader ) {
101
  custom_uploader.open();
102
  return;
103
  }
104
 
105
  var custom_uploader_states = [
106
  // Main states.
107
+ new wp.media.controller.Library( {
108
+ library : wp.media.query(),
109
+ multiple : false,
110
+ title : 'Choose Image',
111
+ priority : 20,
112
+ filterable: 'uploaded'
113
+ } )
114
  ];
115
 
116
  // Create the media frame.
117
+ custom_uploader = wp.media.frames.downloadable_file = wp.media( {
118
+ // Set the title of the modal.
119
+ title : 'Choose Image',
120
+ library : {
121
+ type: ''
122
+ },
123
+ button : {
124
+ text: 'Choose Image'
125
+ },
126
+ multiple: false,
127
+ states : custom_uploader_states
128
+ } );
129
 
130
  //When a file is selected, grab the URL and set it as the text field's value
131
+ custom_uploader.on( 'select', function () {
132
+ var attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
133
 
134
+ $( "#" + id ).val( attachment.url );
135
  // Save the id of the selected element to an element which name is the same with a suffix "-yith-attachment-id"
136
+ if ( $( "#" + id + "-yith-attachment-id" ) ) {
137
+ $( "#" + id + "-yith-attachment-id" ).val( attachment.id );
138
  }
139
+ $upload.imgUrl.trigger( 'change' );
140
+ } );
141
 
142
  //Open the uploader dialog
143
  custom_uploader.open();
144
+ } );
145
 
146
+ $( document ).on( 'click', $upload.resetButtonHandler, function ( e ) {
147
+ var t = $( this ),
148
+ id = t.attr( 'id' ),
149
+ input_id = t.attr( 'id' ).replace( /-button-reset$/, '' ),
150
+ default_value = $( '#' + id ).data( 'default' );
151
 
152
+ $( "#" + input_id ).val( default_value );
153
+ $upload.imgUrl.trigger( 'change' );
154
+ } );
155
  }
156
 
157
+ $wpAddMedia.on( 'click', function () {
158
  _custom_media = false;
159
+ } );
160
 
161
  /* Image Gallery */
162
+ if ( typeof wp !== 'undefined' && typeof wp.media !== 'undefined' ) {
163
+ $( document ).on( 'click', $imageGallery.buttonHandler, function ( e ) {
164
+ var $t = $( this ),
165
+ $container = $t.closest( '.image-gallery' ),
166
+ $image_gallery_ids = $container.find( '.image_gallery_ids' ),
167
+ attachment_ids = $image_gallery_ids.val(),
168
+ $gallery_images_wrapper = $container.find( 'ul.slides-wrapper' );
169
 
170
  // Create the media frame.
171
+ var image_gallery_frame = wp.media.frames.image_gallery = wp.media( {
172
+ // Set the title of the modal.
173
+ title : $t.data( 'choose' ),
174
+ button: {
175
+ text: $t.data( 'update' )
176
+ },
177
+ states: [
178
+ new wp.media.controller.Library( {
179
+ title : $t.data( 'choose' ),
180
+ filterable: 'all',
181
+ multiple : true
182
+ } )
183
+ ]
184
+ } );
185
 
186
  // When an image is selected, run a callback.
187
+ image_gallery_frame.on( 'select', function () {
188
+ var selection = image_gallery_frame.state().get( 'selection' );
189
+ selection.map( function ( attachment ) {
190
  attachment = attachment.toJSON();
191
 
192
+ if ( attachment.id ) {
193
  attachment_ids = attachment_ids ? attachment_ids + "," + attachment.id : attachment.id;
194
+ $gallery_images_wrapper.append( '<li class="image" data-attachment_id="' + attachment.id + '"><img src="' + attachment.sizes.thumbnail.url + '"/><ul class="actions"><li><a href="#" class="delete" title="' + $t.data( 'delete' ) + '">x</a></li></ul></li>' );
195
  }
196
+ } );
197
 
198
+ $image_gallery_ids.val( attachment_ids );
199
+ } );
200
 
201
  image_gallery_frame.open();
202
 
203
+ } );
204
 
205
  // Image ordering
206
+ $imageGallery.sliderWrapper.each( function () {
207
+ var $t = $( this );
208
+ $t.sortable( {
209
+ items : 'li.image',
210
+ cursor : 'move',
211
+ scrollSensitivity : 40,
212
+ forcePlaceholderSize: true,
213
+ forceHelperSize : false,
214
+ helper : 'clone',
215
+ opacity : 0.65,
216
+ start : function ( event, ui ) {
217
+ ui.item.css( 'background-color', '#f6f6f6' );
218
+ },
219
+ stop : function ( event, ui ) {
220
+ ui.item.removeAttr( 'style' );
221
+ },
222
+ update : function ( event, ui ) {
223
+ var attachment_ids = '';
224
+
225
+ $t.find( 'li.image' ).css( 'cursor', 'default' ).each( function () {
226
+ var attachment_id = $( this ).attr( 'data-attachment_id' );
227
+ attachment_ids = attachment_ids + attachment_id + ',';
228
+ } );
229
+
230
+ $t.closest( '.image-gallery' ).find( '.image_gallery_ids' ).val( attachment_ids );
231
+ }
232
+ } );
233
+ } );
234
 
235
  // Remove images
236
+ $imageGallery.sliderWrapper.on( 'click', 'a.delete', function () {
237
+ var $wrapper = $( this ).closest( '.image-gallery' ),
238
+ $gallery = $( this ).closest( '.image-gallery ul.slides-wrapper' ),
239
+ $image_gallery_ids = $wrapper.find( '.image_gallery_ids' ),
240
+ attachment_ids = '';
241
 
242
+ $( this ).closest( 'li.image' ).remove();
243
 
244
+ $gallery.find( 'li.image' ).css( 'cursor', 'default' ).each( function () {
245
+ var attachment_id = $( this ).attr( 'data-attachment_id' );
246
+ attachment_ids = attachment_ids + attachment_id + ',';
247
+ } );
248
 
249
+ $image_gallery_ids.val( attachment_ids );
250
+ } );
251
  }
252
 
253
 
254
  /* Sidebars */
255
+ $sidebars.each( function () {
256
+ var $images = $( this ).find( 'img' );
257
+ $images.on( 'click', function () {
258
+ var $container = $( this ).closest( '.yith-plugin-fw-sidebar-layout' ),
259
+ $left = $container.find( '.yith-plugin-fw-sidebar-layout-sidebar-left-container' ),
260
+ $right = $container.find( '.yith-plugin-fw-sidebar-layout-sidebar-right-container' ),
261
+ type = $( this ).data( 'type' );
262
+
263
+ $( this ).parent().children( ':radio' ).attr( 'checked', false );
264
+ $( this ).prev( ':radio' ).attr( 'checked', true );
265
+
266
+ if ( typeof type != 'undefined' ) {
267
+ switch ( type ) {
268
  case 'left':
269
  $left.show();
270
  $right.hide();
283
  break;
284
  }
285
  }
286
+ } );
287
+ } );
288
 
289
  /* Slider */
290
+ $slider.each( function () {
291
+ var val = $( this ).data( 'val' ),
292
+ minValue = $( this ).data( 'min' ),
293
+ maxValue = $( this ).data( 'max' ),
294
+ step = $( this ).data( 'step' ),
295
+ labels = $( this ).data( 'labels' );
296
+
297
+ $( this ).slider( {
298
+ value: val,
299
+ min : minValue,
300
+ max : maxValue,
301
+ range: 'min',
302
+ step : step,
303
+
304
+ create: function () {
305
+ $( this ).find( '.ui-slider-handle' ).text( $( this ).slider( "value" ) );
306
+ },
307
+
308
+
309
+ slide: function ( event, ui ) {
310
+ $( this ).find( 'input' ).val( ui.value );
311
+ $( this ).find( '.ui-slider-handle' ).text( ui.value );
312
+ $( this ).siblings( '.feedback' ).find( 'strong' ).text( ui.value + labels );
313
+ }
314
+ } );
315
+ } );
316
 
317
  /* codemirror */
318
+ $codemirror.each( function ( i, v ) {
319
+ var editor = CodeMirror.fromTextArea( v, {
320
+ lineNumbers : 1,
321
+ mode : 'javascript',
322
  showCursorWhenSelecting: true
323
+ } );
324
 
325
+ $( v ).data( 'codemirrorInstance', editor );
326
+ } );
327
 
328
  /* Select All - Deselect All */
329
+ $( document ).on( 'click', '.yith-plugin-fw-select-all', function () {
330
+ var $targetSelect = $( '#' + $( this ).data( 'select-id' ) );
331
+ $targetSelect.find( 'option' ).prop( 'selected', true ).trigger( 'change' );
332
+ } );
333
 
334
+ $( document ).on( 'click', '.yith-plugin-fw-deselect-all', function () {
335
+ var $targetSelect = $( '#' + $( this ).data( 'select-id' ) );
336
+ $targetSelect.find( 'option' ).prop( 'selected', false ).trigger( 'change' );
337
+ } );
338
 
339
 
340
+ $icons.each( function () {
341
+ var $container = $( this ),
342
+ $preview = $container.find( '.yit-icons-manager-icon-preview' ).first(),
343
+ $text = $container.find( '.yit-icons-manager-icon-text' );
344
 
345
+ $container.on( 'click', '.yit-icons-manager-list li', function ( event ) {
346
+ var $target = $( event.target ).closest( 'li' ),
347
+ font = $target.data( 'font' ),
348
+ icon = $target.data( 'icon' ),
349
+ key = $target.data( 'key' ),
350
+ name = $target.data( 'name' );
351
 
352
+ $preview.attr( 'data-font', font );
353
+ $preview.attr( 'data-icon', icon );
354
+ $preview.attr( 'data-key', key );
355
+ $preview.attr( 'data-name', name );
356
 
357
+ $text.val( font + ':' + name );
358
 
359
+ $container.find( '.yit-icons-manager-list li' ).removeClass( 'active' );
360
+ $target.addClass( 'active' );
361
+ } );
362
 
363
+ $container.on( 'click', '.yit-icons-manager-action-set-default', function () {
364
+ $container.find( '.yit-icons-manager-list li.default' ).trigger( 'click' );
365
+ } );
366
+ } );
367
 
368
  /** Select Images */
369
+ $( document ).on( 'click', '.yith-plugin-fw-select-images__item', function () {
370
+ var item = $( this ),
371
+ key = item.data( 'key' ),
372
+ wrapper = item.closest( '.yith-plugin-fw-select-images__wrapper' ),
373
+ items = wrapper.find( '.yith-plugin-fw-select-images__item' ),
374
+ select = wrapper.find( 'select' ).first();
375
+
376
+ if ( select.length ) {
377
+ select.val( key );
378
+ items.removeClass( 'yith-plugin-fw-select-images__item--selected' );
379
+ item.addClass( 'yith-plugin-fw-select-images__item--selected' );
380
  }
381
+ } );
382
 
383
+ $( document.body ).trigger( 'wc-enhanced-select-init' );
384
 
385
+ $( document ).find( '.ui-sortable .yith-toggle-elements' ).sortable(
386
  {
387
+ cursor : 'move',
388
+ axis : 'y',
389
+ scrollSensitivity : 40,
390
  forcePlaceholderSize: true,
391
+ helper : 'clone',
392
 
393
+ stop: function ( event, ui ) {
394
+ var keys = jQuery( '.ui-sortable-handle' ),
395
+ i = 0,
396
  array_keys = new Array();
397
+ for ( i = 0; i < keys.length; i++ ) {
398
+ array_keys[ i ] = $( keys[ i ] ).data( 'item_key' );
399
  }
400
+ if ( array_keys.length > 0 ) {
401
+ var toggle = $( this ).closest( '.toggle-element' );
402
+ toggle.saveToggleElement( null, array_keys );
403
  }
404
  }
405
  }
406
  );
407
 
408
+ $( document.body ).trigger( 'yith-framework-enhanced-select-init' );
 
 
 
 
 
 
 
 
 
 
409
  };
410
 
411
  yith_fields_init();
412
 
413
  /* on-off */
414
+ $( document ).on( 'click', '.yith-plugin-fw-onoff-container span', function () {
415
+ var input = $( this ).prev( 'input' ),
416
+ checked = input.prop( 'checked' );
417
 
418
+ if ( checked ) {
419
+ input.prop( 'checked', false ).attr( 'value', 'no' ).removeClass( 'onoffchecked' );
420
  } else {
421
+ input.prop( 'checked', true ).attr( 'value', 'yes' ).addClass( 'onoffchecked' );
422
  }
423
 
424
  input.change();
425
+ } );
426
 
427
 
428
  /** Toggle **/
430
 
431
 
432
  //TOGGLE ELEMENT
433
+ $.fn.saveToggleElement = function ( spinner, array_keys ) {
434
+ var toggle = $( this ),
435
+ action = 'yith_plugin_fw_save_toggle_element',
436
+ formdata = toggle.serializeToggleElement(),
437
+ id = toggle.find( '.yith-toggle_wrapper' ).attr( 'id' ),
438
+ current_tab = $.urlParam( 'tab' );
439
+
440
+ if ( typeof array_keys != 'undefined' && array_keys.length > 0 ) {
441
+ formdata.append( 'yith_toggle_elements_order_keys', array_keys );
442
  }
443
 
444
+ if ( toggle.closest( '.metaboxes-tab.yith-plugin-ui' ).length ) {
445
+ action = 'yith_plugin_fw_save_toggle_element_metabox';
446
+ post_id = $( this ).closest( 'form#post' ).find( '#post_ID' ).val();
447
+ yit_metaboxes_nonce = $( this ).closest( 'form#post' ).find( '#yit_metaboxes_nonce' ).val();
448
+ url = yith_framework_fw_fields.ajax_url + '?action=' + action + "&post_ID=" + post_id + '&yit_metaboxes_nonce=' + yit_metaboxes_nonce + "&toggle_id=" + id;
449
  } else {
450
  url = yith_framework_fw_fields.admin_url + '?action=' + action + '&tab=' + current_tab + "&toggle_id=" + id;
451
  }
452
 
453
+ $.ajax( {
454
+ type : "POST",
455
+ url : url,
456
+ data : formdata,
457
+ contentType: false,
458
+ processData: false,
459
+ success : function ( result ) {
460
+ if ( spinner ) {
461
+ spinner.removeClass( 'show' );
462
+ }
463
 
464
+ $( document ).trigger( 'yith_save_toggle_element_done', [ result, toggle ] );
465
+ }
466
+ } );
467
  };
468
 
469
  $.fn.serializeToggleElement = function () {
470
+ var obj = $( this );
471
  /* ADD FILE TO PARAM AJAX */
472
  var formData = new FormData();
473
+ var params = $( obj ).find( ":input" ).serializeArray();
474
 
475
+ $.each( params, function ( i, val ) {
476
  el_name = val.name;
477
+ formData.append( val.name, val.value );
478
+ } );
479
 
480
  return formData;
481
  };
482
 
483
  $.fn.formatToggleTitle = function () {
484
+ var toggle_el = $( this ),
485
+ fields = toggle_el.find( ':input' ),
486
+ title = toggle_el.find( 'span.title' ).data( 'title_format' ),
487
+ subtitle = toggle_el.find( '.subtitle' ).data( 'subtitle_format' ),
488
+ regExp = new RegExp( "[^%%]+(?=[%%])", 'g' );
489
 
490
+ if ( typeof title != 'undefined' ) {
491
  var res = title.match( regExp );
492
  }
493
 
494
+ if ( typeof subtitle != 'undefined' ) {
495
  var ressub = subtitle.match( regExp );
496
  }
497
 
498
+ $.each( fields, function ( i, field ) {
499
+ if ( typeof $( field ).attr( 'id' ) != 'undefined' ) {
500
+ $field_id = $( field ).attr( 'id' );
501
+ $field_array = $field_id.split( '_' );
502
  $field_array.pop();
503
+ $field_id = $field_array.join( '_' );
504
+ $field_val = $( field ).val();
505
 
506
+ if ( res != null && typeof res != 'undefined' && res.indexOf( $field_id ) !== -1 ) {
507
+ title = title.replace( '%%' + $field_id + '%%', $field_val );
508
  }
509
+ if ( ressub != null && typeof ressub != 'undefined' && ressub.indexOf( $field_id ) !== -1 ) {
510
+ subtitle = subtitle.replace( '%%' + $field_id + '%%', $field_val );
511
  }
512
  }
513
+ } );
514
 
515
+ if ( '' !== title ) {
516
+ toggle_el.find( 'span.title' ).html( title );
517
  }
518
 
519
+ if ( '' !== subtitle ) {
520
+ toggle_el.find( '.subtitle' ).html( subtitle );
521
  }
522
 
523
+ $( document ).trigger( 'yith-toggle-element-item-title', [ toggle_el ] );
524
  };
525
 
526
+ $.urlParam = function ( name ) {
527
+ var results = new RegExp( '[\?&]' + name + '=([^&#]*)' )
528
+ .exec( window.location.search );
529
 
530
+ return ( results !== null ) ? results[ 1 ] || 0 : false;
531
  };
532
 
533
+ $( document ).on( 'click', '.yith-toggle-title', function ( event ) {
534
+ var _toggle = $( event.target ),
535
+ _section = _toggle.closest( '.yith-toggle-row' ),
536
+ _content = _section.find( '.yith-toggle-content' );
537
 
538
+ if ( _toggle.hasClass( 'yith-plugin-fw-onoff' ) || _toggle.hasClass( 'yith-icon-drag' ) ) {
539
+ return false;
540
+ }
541
+
542
+ if ( _section.is( '.yith-toggle-row-opened' ) ) {
543
+ _content.slideUp( 400 );
544
  } else {
545
+ _content.slideDown( 400 );
546
  }
547
+ _section.toggleClass( 'yith-toggle-row-opened' );
548
+ } );
549
 
550
  /**Add new box toggle**/
551
+ $( document ).on( 'click', '.yith-add-box-button', function ( event ) {
552
  event.preventDefault();
553
+ var $this = $( this ),
554
+ target_id = $this.data( 'box_id' ),
555
+ closed_label = $this.data('closed_label'),
556
+ label = $this.data('opened_label'),
557
+ id = $this.closest( '.yith-toggle_wrapper' ).attr( 'id' );
558
+ template = wp.template( 'yith-toggle-element-add-box-content-' + id );
559
+
560
+ if ( '' !== target_id ) {
561
+ $( '#' + target_id ).html( template( { index: 'box_id' } ) ).slideToggle();
562
+ if (closed_label !== '') {
563
+ if ($this.html() === closed_label) {
564
+ $this.html(label).removeClass('closed');
565
+ } else {
566
+ $this.html(closed_label).addClass('closed');
567
+ }
568
+ }
569
+
570
  yith_fields_init();
571
+ $( document ).trigger( 'yith-add-box-button-toggle', [ $this ] );
572
  }
573
+ } );
574
+
575
+ $( document ).on( 'click', '.yith-add-box-buttons .yith-save-button', function ( event ) {
576
 
 
577
  event.preventDefault();
578
+ var add_box = $( this ).parents( '.yith-add-box' ),
579
+ id = $( this ).closest( '.yith-toggle_wrapper' ).attr( 'id' ),
580
+ spinner = add_box.find( '.spinner' ),
581
+ toggle_element = $( this ).parents( '.toggle-element' ),
582
+ fields = add_box.find( ':input' ),
583
+ counter = toggle_element.find( '.yith-toggle-row' ).length,
584
+ hidden_obj = $( '<input type="hidden">' );
585
+
586
+ hidden_obj.val( counter );
587
+
588
+ $( document ).trigger( 'yith-toggle-change-counter', [ hidden_obj, add_box ] );
589
+
590
+ counter = hidden_obj.val();
591
+ var template = wp.template( 'yith-toggle-element-item-' + id ),
592
+ toggle_el = $( template( { index: counter } ) );
593
+
594
+ spinner.addClass( 'show' );
595
+
596
+ $.each( fields, function ( i, field ) {
597
+ if ( typeof $( field ).attr( 'id' ) != 'undefined' ) {
598
+
599
+ $field_id = $( field ).attr( 'id' );
600
+ $field_val = $( field ).val();
601
+
602
+ if ( 'radio' == $( field ).attr( 'type' ) ) {
603
+ $field_id = $field_id.replace( 'new_', '' );
604
+ $field_id = $field_id.replace( '-' + $field_val, '' );
605
  $field_id = $field_id + '_dataindex-' + $field_val;
606
  } else {
607
+ $field_id = $field_id.replace( 'new_', '' ) + '_' + counter;
608
  }
609
 
610
+ if ( $( field ).is( ':checked' ) ) {
611
+ $( toggle_el ).find( '#' + $field_id ).prop( 'checked', true );
612
  }
613
 
614
+ if ( $( field ).hasClass( 'yith-post-search' ) || $( field ).hasClass( 'yith-term-search' ) ) {
615
+ $( toggle_el ).find( '#' + $field_id ).html( $( '#' + $( field ).attr( 'id' ) ).html() );
616
  }
617
 
618
+ $( toggle_el ).find( '#' + $field_id ).val( $field_val );
619
 
620
  }
621
 
622
+ } );
623
 
624
+ $( toggle_el ).formatToggleTitle();
625
+ var form_is_valid = $( '<input type="hidden">' ).val( 'yes' );
626
+ $( document ).trigger( 'yith-toggle-element-item-before-add', [ add_box, toggle_el, form_is_valid ] );
627
+
628
+ var delayInMilliseconds =1000; //1 second
629
+ setTimeout(function() {
630
+ if ( form_is_valid.val() === 'yes' ) {
631
+ $( toggle_element ).find( '.yith-toggle-elements' ).append( toggle_el );
632
+ $( add_box ).find( '.yith-plugin-fw-datepicker' ).datepicker( 'destroy' );
633
+ $( add_box ).html( '' );
634
+ $( add_box ).prev('.yith-add-box-button').trigger('click');
635
+ toggle_element.saveToggleElement();
636
+
637
+ var delayInMilliseconds =2000; //1 second
638
+ setTimeout(function() {
639
+ $( toggle_element ).find('.highlight').removeClass('highlight');
640
+ }, delayInMilliseconds);
641
+
642
+
643
+ yith_fields_init();
644
+ }
645
+ }, delayInMilliseconds );
646
 
647
 
 
 
 
 
 
 
 
 
648
 
649
+ } );
650
+
651
+ $( document ).on( 'click', '.yith-toggle-row .yith-save-button', function ( event ) {
652
  event.preventDefault();
653
+ var toggle = $( this ).closest( '.toggle-element' ),
654
+ toggle_row = $( this ).closest( '.yith-toggle-row' ),
655
+ spinner = toggle_row.find( '.spinner' );
656
+ toggle_row.formatToggleTitle();
657
+
658
+ var form_is_valid = $( '<input type="hidden">' ).val( 'yes' );
659
+ $( document ).trigger( 'yith-toggle-element-item-before-update', [ toggle, toggle_row, form_is_valid ] );
660
+ if ( form_is_valid.val() === 'yes' ) {
661
+ spinner.addClass( 'show' );
662
+ toggle.saveToggleElement( spinner );
663
  }
664
+ } );
665
 
666
  //register remove the dome and save the toggle
667
+ $( document ).on( 'click', '.yith-toggle-row .yith-delete-button', function ( event ) {
668
  event.preventDefault();
669
+ var toggle = $( this ).closest( '.toggle-element' ),
670
+ toggle_row = $( this ).closest( '.yith-toggle-row' );
671
  toggle_row.remove();
672
  toggle.saveToggleElement();
673
+ } );
674
 
675
  //register onoff status
676
+ $( document ).on( 'click', '.yith-toggle-onoff', function ( event ) {
677
  event.preventDefault();
678
+ var toggle = $( this ).closest( '.toggle-element' );
679
  toggle.saveToggleElement();
680
+ } );
681
+
682
+ // Radio
683
+ $( document ).on( 'click', '.yith-plugin-fw-radio input[type=radio]', function () {
684
+ $( this ).closest( '.yith-plugin-fw-radio' ).val( $( this ).val() ).trigger( 'change' );
685
+ } );
686
+
687
+ $(document).on('click', '.yith-password-eye', function () {
688
+ var $this = $(this),
689
+ inp = $(this).closest('.yith-password-wrapper').find('input');
690
+ if (inp.attr('type') === "password") {
691
+ inp.attr('type', 'text');
692
+ $this.addClass('yith-password-eye-closed');
693
+ } else {
694
+ inp.attr('type', 'password');
695
+ $this.removeClass('yith-password-eye-closed');
696
+ }
697
  });
698
 
699
+ $( '.yith-plugin-fw-radio' ).each( function () {
700
+ $( this ).val( $( this ).attr( 'value' ) );
701
+ } );
702
 
703
+ } );
plugin-fw/assets/js/yith-fields.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(function(g){function f(){var e=g(".yith-plugin-fw-datepicker"),t=g(".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:g(".yith-plugin-fw-upload-img-url")},i=g(".add_media"),a={sliderWrapper:g(".yith-plugin-fw .image-gallery ul.slides-wrapper"),buttonHandler:".yith-plugin-fw .image-gallery-button"},l=g(".yith-plugin-fw-sidebar-layout"),o=g(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),r=g(".codemirror"),d=g(".yit-icons-manager-wrapper"),s=g(".yith-plugin-ui td.forminp-checkbox");if(e.each(function(){var e=g(this).data();g(this).datepicker(e)}),t.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var e=g(this);e.val(e.data("default-color")),e.change()}}),t.each(function(){var e=g(this).data("variations-label"),t=g(this).closest(".yith-plugin-fw-field-wrapper"),i=t.find(".wp-picker-input-wrap");if(t.find("a.wp-color-result").attr("title",e),!i.find(".wp-picker-clear-custom").length){var a=g("<span/>").attr({class:"wp-picker-default-custom"});i.find(".wp-picker-default").wrap(a)}}),"undefined"!=typeof wp&&void 0!==wp.media){n.imgUrl.change(function(){var e=g(this).val(),t=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)"),i=g(this).parent().find(n.imgPreviewHandler).first();i.length<1&&(i=g(this).parent().parent().find(n.imgPreviewHandler).first()),t.test(e)?i.html('<img src="'+e+'" style="max-width:100px; max-height:100px;" />'):i.html("")}).trigger("change"),g(document).on("click",n.uploadButtonHandler,function(e){e.preventDefault();var t,i=g(this).attr("id").replace(/-button$/,"");if(t)t.open();else{var a=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(t=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:a})).on("select",function(){var e=t.state().get("selection").first().toJSON();g("#"+i).val(e.url),g("#"+i+"-yith-attachment-id")&&g("#"+i+"-yith-attachment-id").val(e.id),n.imgUrl.trigger("change")}),t.open()}}),g(document).on("click",n.resetButtonHandler,function(e){var t=g(this),i=t.attr("id"),a=t.attr("id").replace(/-button-reset$/,""),l=g("#"+i).data("default");g("#"+a).val(l),n.imgUrl.trigger("change")})}i.on("click",function(){!1}),"undefined"!=typeof wp&&void 0!==wp.media&&(g(document).on("click",a.buttonHandler,function(e){var t=g(this),i=t.closest(".image-gallery"),a=i.find(".image_gallery_ids"),l=a.val(),n=i.find("ul.slides-wrapper"),o=wp.media.frames.image_gallery=wp.media({title:t.data("choose"),button:{text:t.data("update")},states:[new wp.media.controller.Library({title:t.data("choose"),filterable:"all",multiple:!0})]});o.on("select",function(){o.state().get("selection").map(function(e){(e=e.toJSON()).id&&(l=l?l+","+e.id:e.id,n.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+t.data("delete")+'">x</a></li></ul></li>'))}),a.val(l)}),o.open()}),a.sliderWrapper.each(function(){var a=g(this);a.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(e,t){var i="";a.find("li.image").css("cursor","default").each(function(){var e=g(this).attr("data-attachment_id");i=i+e+","}),a.closest(".image-gallery").find(".image_gallery_ids").val(i)}})}),a.sliderWrapper.on("click","a.delete",function(){var e=g(this).closest(".image-gallery"),t=g(this).closest(".image-gallery ul.slides-wrapper"),i=e.find(".image_gallery_ids"),a="";g(this).closest("li.image").remove(),t.find("li.image").css("cursor","default").each(function(){var e=g(this).attr("data-attachment_id");a=a+e+","}),i.val(a)})),l.each(function(){g(this).find("img").on("click",function(){var e=g(this).closest(".yith-plugin-fw-sidebar-layout"),t=e.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),i=e.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=g(this).data("type");if(g(this).parent().children(":radio").attr("checked",!1),g(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":t.show(),i.hide();break;case"right":i.show(),t.hide();break;case"double":t.show(),i.show();break;default:t.hide(),i.hide()}})}),o.each(function(){var e=g(this).data("val"),t=g(this).data("min"),i=g(this).data("max"),a=g(this).data("step"),l=g(this).data("labels");g(this).slider({value:e,min:t,max:i,range:"min",step:a,create:function(){g(this).find(".ui-slider-handle").text(g(this).slider("value"))},slide:function(e,t){g(this).find("input").val(t.value),g(this).find(".ui-slider-handle").text(t.value),g(this).siblings(".feedback").find("strong").text(t.value+l)}})}),r.each(function(e,t){var i=CodeMirror.fromTextArea(t,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});g(t).data("codemirrorInstance",i)}),g(document).on("click",".yith-plugin-fw-select-all",function(){g("#"+g(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),g(document).on("click",".yith-plugin-fw-deselect-all",function(){g("#"+g(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),d.each(function(){var o=g(this),r=o.find(".yit-icons-manager-icon-preview").first(),d=o.find(".yit-icons-manager-icon-text");o.on("click",".yit-icons-manager-list li",function(e){var t=g(e.target).closest("li"),i=t.data("font"),a=t.data("icon"),l=t.data("key"),n=t.data("name");r.attr("data-font",i),r.attr("data-icon",a),r.attr("data-key",l),r.attr("data-name",n),d.val(i+":"+n),o.find(".yit-icons-manager-list li").removeClass("active"),t.addClass("active")}),o.on("click",".yit-icons-manager-action-set-default",function(){o.find(".yit-icons-manager-list li.default").trigger("click")})}),g(document).on("click",".yith-plugin-fw-select-images__item",function(){var e=g(this),t=e.data("key"),i=e.closest(".yith-plugin-fw-select-images__wrapper"),a=i.find(".yith-plugin-fw-select-images__item"),l=i.find("select").first();l.length&&(l.val(t),a.removeClass("yith-plugin-fw-select-images__item--selected"),e.addClass("yith-plugin-fw-select-images__item--selected"))}),g(document.body).trigger("wc-enhanced-select-init"),g(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(e,t){var i=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a<i.length;a++)l[a]=g(i[a]).data("item_key");0<l.length&&g(this).closest(".toggle-element").saveToggleElement(null,l)}}),g.each(s,function(){var e=g(this).find("fieldset");3<e.length&&e.length<6&&g(this).addClass("two-cols"),6<e.length&&g(this).addClass("three-cols")}),g(document.body).trigger("yith-framework-enhanced-select-init")}f(),g(document).on("click",".yith-plugin-fw-onoff-container span",function(){var e=g(this).prev("input");e.prop("checked")?e.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):e.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),e.change()}),g.fn.saveToggleElement=function(t,e){var i=g(this),a="yith_plugin_fw_save_toggle_element",l=i.serializeToggleElement(),n=i.find(".yith-toggle_wrapper").attr("id"),o=g.urlParam("tab");void 0!==e&&0<e.length&&l.append("yith_toggle_elements_order_keys",e),i.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=g(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=g(this).closest("form#post").find("#yit_metaboxes_nonce").val(),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+n):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+o+"&toggle_id="+n,g.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(e){t&&t.removeClass("show"),g(document).trigger("yith_save_toggle_element_done",[e,i])}})},g.fn.serializeToggleElement=function(){var e=g(this),i=new FormData,t=g(e).find(":input").serializeArray();return g.each(t,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},g.fn.formatToggleTitle=function(){var e=g(this),t=e.find(":input"),i=e.find("span.title").data("title_format"),a=e.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==i)var n=i.match(l);if(void 0!==a)var o=a.match(l);g.each(t,function(e,t){void 0!==g(t).attr("id")&&($field_id=g(t).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=g(t).val(),null!=n&&void 0!==n&&-1!==n.indexOf($field_id)&&(i=i.replace("%%"+$field_id+"%%",$field_val)),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==i&&e.find("span.title").html(i),""!==a&&e.find(".subtitle").html(a),g(document).trigger("yith-toggle-element-item-title",[e])},g.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},g(document).on("click",".yith-toggle",function(e){var t=g(e.target).closest(".yith-toggle-row"),i=t.find(".yith-toggle-content");t.is(".yith-toggle-row-opened")?i.slideUp(400):i.slideDown(400),t.toggleClass("yith-toggle-row-opened")}),g(document).on("click",".yith-add-box-button",function(e){e.preventDefault();var t=g(this).data("box_id"),i=g(this).closest(".yith-toggle_wrapper").attr("id");template=wp.template("yith-toggle-element-add-box-content-"+i),""!==t&&(g("#"+t).html(template({index:"box_id"})).slideToggle(),f(),g(document).trigger("yith-add-box-button-toggle",[g(this)]))}),g(document).on("click",".yith-add-box-buttons .yith-save-button",function(e){e.preventDefault();var t=g(this).parents(".yith-add-box"),i=g(this).closest(".yith-toggle_wrapper").attr("id"),a=t.find(".spinner"),l=g(this).parents(".toggle-element"),n=t.find(":input"),o=l.find(".yith-toggle-row").length,r=g('<input type="hidden">');r.val(o),g(document).trigger("yith-toggle-change-counter",[r,t]),o=r.val();var d=wp.template("yith-toggle-element-item-"+i),s=g(d({index:o}));a.addClass("show"),g.each(n,function(e,t){void 0!==g(t).attr("id")&&($field_id=g(t).attr("id"),$field_val=g(t).val(),"radio"==g(t).attr("type")?($field_id=$field_id.replace("new_",""),$field_id=$field_id.replace("-"+$field_val,""),$field_id=$field_id+"_dataindex-"+$field_val):$field_id=$field_id.replace("new_","")+"_"+o,g(t).is(":checked")&&g(s).find("#"+$field_id).prop("checked",!0),(g(t).hasClass("yith-post-search")||g(t).hasClass("yith-term-search"))&&g(s).find("#"+$field_id).html(g("#"+g(t).attr("id")).html()),g(s).find("#"+$field_id).val($field_val))}),g(s).formatToggleTitle();var c=g('<input type="hidden">').val("yes");g(document).trigger("yith-toggle-element-item-before-add",[t,s,c]),"yes"===c.val()&&(g(l).find(".yith-toggle-elements").append(s),g(t).find(".yith-plugin-fw-datepicker").datepicker("destroy"),g(t).html("").toggle(),l.saveToggleElement(),f())}),g(document).on("click",".yith-toggle-row .yith-save-button",function(e){e.preventDefault();var t=g(this).closest(".toggle-element"),i=g(this).closest(".yith-toggle-row"),a=i.find(".spinner");i.formatToggleTitle();var l=g('<input type="hidden">').val("yes");g(document).trigger("yith-toggle-element-item-before-update",[t,i,l]),"yes"===l.val()&&(a.addClass("show"),t.saveToggleElement(a))}),g(document).on("click",".yith-toggle-row .yith-delete-button",function(e){e.preventDefault();var t=g(this).closest(".toggle-element");g(this).closest(".yith-toggle-row").remove(),t.saveToggleElement()}),g(document).on("click",".yith-toggle-onoff",function(e){e.preventDefault(),g(this).closest(".toggle-element").saveToggleElement()})});
1
+ jQuery(function(g){function h(){var e=g(".yith-plugin-fw-datepicker"),t=g(".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:g(".yith-plugin-fw-upload-img-url")},i=g(".add_media"),a={sliderWrapper:g(".yith-plugin-fw .image-gallery ul.slides-wrapper"),buttonHandler:".yith-plugin-fw .image-gallery-button"},l=g(".yith-plugin-fw-sidebar-layout"),o=g(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),r=g(".codemirror"),d=g(".yit-icons-manager-wrapper");if(g(".yith-plugin-ui td.forminp-checkbox"),e.each(function(){var e=g(this).data();g(this).datepicker(e)}),t.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var e=g(this);e.val(e.data("default-color")),e.change()}}),t.each(function(){var e=g(this).data("variations-label"),t=g(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),i=g(this).closest(".yith-single-colorpicker"),a=t.find(".wp-picker-input-wrap"),l=i.find(".wp-picker-input-wrap");if(a.length&&t.find("a.wp-color-result").attr("title",e),i.length&&i.find("a.wp-color-result").attr("title",e),!a.find(".wp-picker-clear-custom").length){var n=g("<span/>").attr({class:"wp-picker-default-custom"});a.find(".wp-picker-default").wrap(n)}if(!l.find(".wp-picker-clear-custom").length){n=g("<span/>").attr({class:"wp-picker-default-custom"});l.find(".wp-picker-default").wrap(n)}}),"undefined"!=typeof wp&&void 0!==wp.media){n.imgUrl.change(function(){var e=g(this).val(),t=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)"),i=g(this).parent().find(n.imgPreviewHandler).first();i.length<1&&(i=g(this).parent().parent().find(n.imgPreviewHandler).first()),t.test(e)?i.html('<img src="'+e+'" style="max-width:100px; max-height:100px;" />'):i.html("")}).trigger("change"),g(document).on("click",n.uploadButtonHandler,function(e){e.preventDefault();var t,i=g(this).attr("id").replace(/-button$/,"");if(t)t.open();else{var a=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(t=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:a})).on("select",function(){var e=t.state().get("selection").first().toJSON();g("#"+i).val(e.url),g("#"+i+"-yith-attachment-id")&&g("#"+i+"-yith-attachment-id").val(e.id),n.imgUrl.trigger("change")}),t.open()}}),g(document).on("click",n.resetButtonHandler,function(e){var t=g(this),i=t.attr("id"),a=t.attr("id").replace(/-button-reset$/,""),l=g("#"+i).data("default");g("#"+a).val(l),n.imgUrl.trigger("change")})}i.on("click",function(){!1}),"undefined"!=typeof wp&&void 0!==wp.media&&(g(document).on("click",a.buttonHandler,function(e){var t=g(this),i=t.closest(".image-gallery"),a=i.find(".image_gallery_ids"),l=a.val(),n=i.find("ul.slides-wrapper"),o=wp.media.frames.image_gallery=wp.media({title:t.data("choose"),button:{text:t.data("update")},states:[new wp.media.controller.Library({title:t.data("choose"),filterable:"all",multiple:!0})]});o.on("select",function(){o.state().get("selection").map(function(e){(e=e.toJSON()).id&&(l=l?l+","+e.id:e.id,n.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+t.data("delete")+'">x</a></li></ul></li>'))}),a.val(l)}),o.open()}),a.sliderWrapper.each(function(){var a=g(this);a.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(e,t){var i="";a.find("li.image").css("cursor","default").each(function(){var e=g(this).attr("data-attachment_id");i=i+e+","}),a.closest(".image-gallery").find(".image_gallery_ids").val(i)}})}),a.sliderWrapper.on("click","a.delete",function(){var e=g(this).closest(".image-gallery"),t=g(this).closest(".image-gallery ul.slides-wrapper"),i=e.find(".image_gallery_ids"),a="";g(this).closest("li.image").remove(),t.find("li.image").css("cursor","default").each(function(){var e=g(this).attr("data-attachment_id");a=a+e+","}),i.val(a)})),l.each(function(){g(this).find("img").on("click",function(){var e=g(this).closest(".yith-plugin-fw-sidebar-layout"),t=e.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),i=e.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),a=g(this).data("type");if(g(this).parent().children(":radio").attr("checked",!1),g(this).prev(":radio").attr("checked",!0),void 0!==a)switch(a){case"left":t.show(),i.hide();break;case"right":i.show(),t.hide();break;case"double":t.show(),i.show();break;default:t.hide(),i.hide()}})}),o.each(function(){var e=g(this).data("val"),t=g(this).data("min"),i=g(this).data("max"),a=g(this).data("step"),l=g(this).data("labels");g(this).slider({value:e,min:t,max:i,range:"min",step:a,create:function(){g(this).find(".ui-slider-handle").text(g(this).slider("value"))},slide:function(e,t){g(this).find("input").val(t.value),g(this).find(".ui-slider-handle").text(t.value),g(this).siblings(".feedback").find("strong").text(t.value+l)}})}),r.each(function(e,t){var i=CodeMirror.fromTextArea(t,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});g(t).data("codemirrorInstance",i)}),g(document).on("click",".yith-plugin-fw-select-all",function(){g("#"+g(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),g(document).on("click",".yith-plugin-fw-deselect-all",function(){g("#"+g(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),d.each(function(){var o=g(this),r=o.find(".yit-icons-manager-icon-preview").first(),d=o.find(".yit-icons-manager-icon-text");o.on("click",".yit-icons-manager-list li",function(e){var t=g(e.target).closest("li"),i=t.data("font"),a=t.data("icon"),l=t.data("key"),n=t.data("name");r.attr("data-font",i),r.attr("data-icon",a),r.attr("data-key",l),r.attr("data-name",n),d.val(i+":"+n),o.find(".yit-icons-manager-list li").removeClass("active"),t.addClass("active")}),o.on("click",".yit-icons-manager-action-set-default",function(){o.find(".yit-icons-manager-list li.default").trigger("click")})}),g(document).on("click",".yith-plugin-fw-select-images__item",function(){var e=g(this),t=e.data("key"),i=e.closest(".yith-plugin-fw-select-images__wrapper"),a=i.find(".yith-plugin-fw-select-images__item"),l=i.find("select").first();l.length&&(l.val(t),a.removeClass("yith-plugin-fw-select-images__item--selected"),e.addClass("yith-plugin-fw-select-images__item--selected"))}),g(document.body).trigger("wc-enhanced-select-init"),g(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(e,t){var i=jQuery(".ui-sortable-handle"),a=0,l=new Array;for(a=0;a<i.length;a++)l[a]=g(i[a]).data("item_key");0<l.length&&g(this).closest(".toggle-element").saveToggleElement(null,l)}}),g(document.body).trigger("yith-framework-enhanced-select-init")}h(),g(document).on("click",".yith-plugin-fw-onoff-container span",function(){var e=g(this).prev("input");e.prop("checked")?e.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):e.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),e.change()}),g.fn.saveToggleElement=function(t,e){var i=g(this),a="yith_plugin_fw_save_toggle_element",l=i.serializeToggleElement(),n=i.find(".yith-toggle_wrapper").attr("id"),o=g.urlParam("tab");void 0!==e&&0<e.length&&l.append("yith_toggle_elements_order_keys",e),i.closest(".metaboxes-tab.yith-plugin-ui").length?(a="yith_plugin_fw_save_toggle_element_metabox",post_id=g(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=g(this).closest("form#post").find("#yit_metaboxes_nonce").val(),url=yith_framework_fw_fields.ajax_url+"?action="+a+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+n):url=yith_framework_fw_fields.admin_url+"?action="+a+"&tab="+o+"&toggle_id="+n,g.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(e){t&&t.removeClass("show"),g(document).trigger("yith_save_toggle_element_done",[e,i])}})},g.fn.serializeToggleElement=function(){var e=g(this),i=new FormData,t=g(e).find(":input").serializeArray();return g.each(t,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},g.fn.formatToggleTitle=function(){var e=g(this),t=e.find(":input"),i=e.find("span.title").data("title_format"),a=e.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==i)var n=i.match(l);if(void 0!==a)var o=a.match(l);g.each(t,function(e,t){void 0!==g(t).attr("id")&&($field_id=g(t).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=g(t).val(),null!=n&&void 0!==n&&-1!==n.indexOf($field_id)&&(i=i.replace("%%"+$field_id+"%%",$field_val)),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)))}),""!==i&&e.find("span.title").html(i),""!==a&&e.find(".subtitle").html(a),g(document).trigger("yith-toggle-element-item-title",[e])},g.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},g(document).on("click",".yith-toggle-title",function(e){var t=g(e.target),i=t.closest(".yith-toggle-row"),a=i.find(".yith-toggle-content");if(t.hasClass("yith-plugin-fw-onoff")||t.hasClass("yith-icon-drag"))return!1;i.is(".yith-toggle-row-opened")?a.slideUp(400):a.slideDown(400),i.toggleClass("yith-toggle-row-opened")}),g(document).on("click",".yith-add-box-button",function(e){e.preventDefault();var t=g(this),i=t.data("box_id"),a=t.data("closed_label"),l=t.data("opened_label"),n=t.closest(".yith-toggle_wrapper").attr("id");template=wp.template("yith-toggle-element-add-box-content-"+n),""!==i&&(g("#"+i).html(template({index:"box_id"})).slideToggle(),""!==a&&(t.html()===a?t.html(l).removeClass("closed"):t.html(a).addClass("closed")),h(),g(document).trigger("yith-add-box-button-toggle",[t]))}),g(document).on("click",".yith-add-box-buttons .yith-save-button",function(e){e.preventDefault();var t=g(this).parents(".yith-add-box"),i=g(this).closest(".yith-toggle_wrapper").attr("id"),a=t.find(".spinner"),l=g(this).parents(".toggle-element"),n=t.find(":input"),o=l.find(".yith-toggle-row").length,r=g('<input type="hidden">');r.val(o),g(document).trigger("yith-toggle-change-counter",[r,t]),o=r.val();var d=wp.template("yith-toggle-element-item-"+i),s=g(d({index:o}));a.addClass("show"),g.each(n,function(e,t){void 0!==g(t).attr("id")&&($field_id=g(t).attr("id"),$field_val=g(t).val(),"radio"==g(t).attr("type")?($field_id=$field_id.replace("new_",""),$field_id=$field_id.replace("-"+$field_val,""),$field_id=$field_id+"_dataindex-"+$field_val):$field_id=$field_id.replace("new_","")+"_"+o,g(t).is(":checked")&&g(s).find("#"+$field_id).prop("checked",!0),(g(t).hasClass("yith-post-search")||g(t).hasClass("yith-term-search"))&&g(s).find("#"+$field_id).html(g("#"+g(t).attr("id")).html()),g(s).find("#"+$field_id).val($field_val))}),g(s).formatToggleTitle();var c=g('<input type="hidden">').val("yes");g(document).trigger("yith-toggle-element-item-before-add",[t,s,c]);setTimeout(function(){if("yes"===c.val()){g(l).find(".yith-toggle-elements").append(s),g(t).find(".yith-plugin-fw-datepicker").datepicker("destroy"),g(t).html(""),g(t).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){g(l).find(".highlight").removeClass("highlight")},2e3),h()}},1e3)}),g(document).on("click",".yith-toggle-row .yith-save-button",function(e){e.preventDefault();var t=g(this).closest(".toggle-element"),i=g(this).closest(".yith-toggle-row"),a=i.find(".spinner");i.formatToggleTitle();var l=g('<input type="hidden">').val("yes");g(document).trigger("yith-toggle-element-item-before-update",[t,i,l]),"yes"===l.val()&&(a.addClass("show"),t.saveToggleElement(a))}),g(document).on("click",".yith-toggle-row .yith-delete-button",function(e){e.preventDefault();var t=g(this).closest(".toggle-element");g(this).closest(".yith-toggle-row").remove(),t.saveToggleElement()}),g(document).on("click",".yith-toggle-onoff",function(e){e.preventDefault(),g(this).closest(".toggle-element").saveToggleElement()}),g(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){g(this).closest(".yith-plugin-fw-radio").val(g(this).val()).trigger("change")}),g(document).on("click",".yith-password-eye",function(){var e=g(this),t=g(this).closest(".yith-password-wrapper").find("input");"password"===t.attr("type")?(t.attr("type","text"),e.addClass("yith-password-eye-closed")):(t.attr("type","password"),e.removeClass("yith-password-eye-closed"))}),g(".yith-plugin-fw-radio").each(function(){g(this).val(g(this).attr("value"))})});
plugin-fw/assets/js/yith-system-info.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function ($) {
2
+ $(document).on('click', '.notice-dismiss', function () {
3
+ var t = $(this),
4
+ wrapper_id = t.parent().attr('id');
5
+
6
+ if (wrapper_id === 'yith-system-alert') {
7
+ var cname = 'hide_yith_system_alert',
8
+ cvalue = 'yes';
9
+
10
+ document.cookie = cname + "=" + cvalue + ";path=/";
11
+ }
12
+ });
13
+ })(jQuery);
plugin-fw/assets/js/yith-system-info.min.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function ($) {
2
+ $(document).on('click', '.notice-dismiss', function () {
3
+ var t = $(this),
4
+ wrapper_id = t.parent().attr('id');
5
+
6
+ if (wrapper_id === 'yith-system-alert') {
7
+ var cname = 'hide_yith_system_alert',
8
+ cvalue = 'yes';
9
+
10
+ document.cookie = cname + "=" + cvalue + ";path=/";
11
+ }
12
+ });
13
+ })(jQuery);
plugin-fw/init.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
- * Version: 3.3.2
5
  * Author: YITHEMES
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author Your Inspiration Themes
10
- * @version 3.3.2
11
  */
12
  /**
13
  * This file belongs to the YIT Plugin Framework.
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
+ * Version: 3.3.8
5
  * Author: YITHEMES
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author Your Inspiration Themes
10
+ * @version 3.3.8
11
  */
12
  /**
13
  * This file belongs to the YIT Plugin Framework.
plugin-fw/lib/promo/yith-promo.php CHANGED
@@ -21,7 +21,7 @@ if( ! function_exists( 'yith_plugin_fw_promo_notices' ) ){
21
  return false;
22
  }
23
 
24
- $base_url = apply_filters( 'yith_plugin_fw_promo_base_url', YIT_CORE_PLUGIN_URL . '/lib/promo/' );
25
  $xml = apply_filters( 'yith_plugin_fw_promo_xml_url', $base_url . 'yith-promo.xml' );
26
  $transient = "yith_promo_message";
27
  $remote_data = get_site_transient( $transient );
21
  return false;
22
  }
23
 
24
+ $base_url = apply_filters( 'yith_plugin_fw_promo_base_url', YIT_CORE_PLUGIN_PATH . '/lib/promo/' );
25
  $xml = apply_filters( 'yith_plugin_fw_promo_xml_url', $base_url . 'yith-promo.xml' );
26
  $transient = "yith_promo_message";
27
  $remote_data = get_site_transient( $transient );
plugin-fw/lib/yit-assets.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php
2
  /**
3
  * This file belongs to the YIT Plugin Framework.
4
- *
5
  * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
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:
@@ -38,7 +37,7 @@ if ( !class_exists( 'YIT_Assets' ) ) {
38
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
39
  */
40
  private function __construct() {
41
- defined('YITH_PLUGIN_FW_VERSION') && $this->version = YITH_PLUGIN_FW_VERSION;
42
  add_action( 'admin_enqueue_scripts', array( $this, 'register_styles_and_scripts' ) );
43
  }
44
 
@@ -51,9 +50,9 @@ if ( !class_exists( 'YIT_Assets' ) ) {
51
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
52
 
53
  //scripts
54
- wp_register_script( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/js/yith-fields' . $suffix . '.js', array( 'jquery', 'jquery-ui-datepicker', 'wp-color-picker', 'codemirror', 'codemirror-javascript', 'jquery-ui-slider','jquery-ui-sortable' ), $this->version, true );
55
- wp_register_script( 'yit-metabox', YIT_CORE_PLUGIN_URL . '/assets/js/metabox' . $suffix . '.js', array( 'jquery', 'wp-color-picker' ), $this->version, true );
56
- wp_register_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel' . $suffix . '.js', array( 'jquery', 'wp-color-picker', 'jquery-ui-sortable' ), $this->version, true );
57
  wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), $this->version, true );
58
  wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), $this->version, true );
59
  wp_register_script( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/js/jquery.colorbox' . $suffix . '.js', array( 'jquery' ), '1.6.3', true );
@@ -86,12 +85,13 @@ if ( !class_exists( 'YIT_Assets' ) ) {
86
  'ajax_url' => admin_url( 'admin-ajax.php' ),
87
  'search_posts_nonce' => wp_create_nonce( 'search-posts' ),
88
  'search_terms_nonce' => wp_create_nonce( 'search-terms' ),
 
89
  ) );
90
 
91
- wp_localize_script('yith-plugin-fw-fields','yith_framework_fw_fields', array(
92
- 'admin_url' => admin_url( 'admin.php' ),
93
- 'ajax_url' => admin_url( 'admin-ajax.php' ),
94
- ));
95
  wp_enqueue_style( 'yith-plugin-fw-admin', YIT_CORE_PLUGIN_URL . '/assets/css/admin.css', array(), $this->version );
96
  }
97
  }
1
  <?php
2
  /**
3
  * This file belongs to the YIT Plugin Framework.
 
4
  * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
5
  * that is bundled with this package in the file LICENSE.txt.
6
  * It is also available through the world-wide-web at this URL:
37
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
38
  */
39
  private function __construct() {
40
+ defined( 'YITH_PLUGIN_FW_VERSION' ) && $this->version = YITH_PLUGIN_FW_VERSION;
41
  add_action( 'admin_enqueue_scripts', array( $this, 'register_styles_and_scripts' ) );
42
  }
43
 
50
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
51
 
52
  //scripts
53
+ wp_register_script( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/js/yith-fields' . $suffix . '.js', array( 'jquery', 'jquery-ui-datepicker', 'wp-color-picker', 'codemirror', 'codemirror-javascript', 'jquery-ui-slider', 'jquery-ui-sortable' ), $this->version, true );
54
+ wp_register_script( 'yit-metabox', YIT_CORE_PLUGIN_URL . '/assets/js/metabox' . $suffix . '.js', array( 'jquery', 'wp-color-picker', 'yith-plugin-fw-fields' ), $this->version, true );
55
+ wp_register_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel' . $suffix . '.js', array( 'jquery', 'wp-color-picker', 'jquery-ui-sortable', 'yith-plugin-fw-fields' ), $this->version, true );
56
  wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), $this->version, true );
57
  wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), $this->version, true );
58
  wp_register_script( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/js/jquery.colorbox' . $suffix . '.js', array( 'jquery' ), '1.6.3', true );
85
  'ajax_url' => admin_url( 'admin-ajax.php' ),
86
  'search_posts_nonce' => wp_create_nonce( 'search-posts' ),
87
  'search_terms_nonce' => wp_create_nonce( 'search-terms' ),
88
+ 'search_customers_nonce' => wp_create_nonce( 'search-customers' ),
89
  ) );
90
 
91
+ wp_localize_script( 'yith-plugin-fw-fields', 'yith_framework_fw_fields', array(
92
+ 'admin_url' => admin_url( 'admin.php' ),
93
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
94
+ ) );
95
  wp_enqueue_style( 'yith-plugin-fw-admin', YIT_CORE_PLUGIN_URL . '/assets/css/admin.css', array(), $this->version );
96
  }
97
  }
plugin-fw/lib/yit-plugin-panel-wc.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php
2
  /**
3
  * This file belongs to the YIT Plugin Framework.
4
- *
5
  * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
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:
@@ -15,7 +14,6 @@ if ( !defined( 'ABSPATH' ) ) {
15
  if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
16
  /**
17
  * YIT Plugin Panel for WooCommerce
18
- *
19
  * Setting Page to Manage Plugins
20
  *
21
  * @class YIT_Plugin_Panel
@@ -47,7 +45,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
47
  public static $body_class = ' yith-plugin-fw-panel ';
48
 
49
 
50
-
51
  /**
52
  * @var array
53
  */
@@ -83,7 +80,7 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
83
  $this->links = $this->settings[ 'links' ];
84
  }
85
 
86
- add_action( 'admin_init', array( $this, 'set_default_options' ) );
87
  add_action( 'admin_menu', array( $this, 'add_setting_page' ) );
88
  add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 );
89
  add_action( 'admin_bar_menu', array( $this, 'add_admin_bar_menu' ), 100 );
@@ -93,11 +90,10 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
93
 
94
  add_filter( 'woocommerce_admin_settings_sanitize_option', array( $this, 'maybe_unserialize_panel_data' ), 10, 3 );
95
 
96
- //yith-plugin-ui
97
- add_action('yith_plugin_fw_get_field_after', array($this, 'add_yith_ui') );
98
- add_action('yith_plugin_fw_before_woocommerce_panel', array($this, 'add_plugin_banner'), 10, 1 );
99
- add_action( 'admin_action_yith_plugin_fw_save_toggle_element', array( $this, 'save_toggle_element_options' ) );
100
- add_filter( 'yith_plugin_fw_wc_panel_pre_field_value', array( $this, 'get_toggle_element_option' ), 10, 2 );
101
 
102
 
103
  // init actions once to prevent multiple actions
@@ -131,7 +127,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
131
 
132
  /**
133
  * Show a tabbed panel to setting page
134
- *
135
  * a callback function called by add_setting_page => add_submenu_page
136
  *
137
  * @return void
@@ -145,7 +140,7 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
145
  'available_tabs' => $this->settings[ 'admin-tabs' ],
146
  'default_tab' => $this->get_available_tabs( true ), //get default tabs
147
  'page' => $this->settings[ 'page' ],
148
- 'wrap_class' => isset($this->settings[ 'class' ]) ? $this->settings[ 'class' ] : '',
149
  );
150
 
151
 
@@ -159,7 +154,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
159
  /**
160
  * Show a input fields to upload images
161
  *
162
- *
163
  * @return string
164
  * @since 1.0
165
  * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
@@ -172,9 +166,7 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
172
  /**
173
  * Show a input fields to upload images
174
  *
175
- *
176
  * @param array $args
177
- *
178
  * @since 1.0
179
  * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
180
  */
@@ -192,7 +184,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
192
  * Add the plugin woocommerce page settings in the screen ids of woocommerce
193
  *
194
  * @param $screen_ids
195
- *
196
  * @return mixed
197
  * @since 1.0.0
198
  * @author Antonino Scarfì <antonino.scarfi@yithemes.com>
@@ -230,11 +221,9 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
230
 
231
  /**
232
  * Return available tabs
233
- *
234
  * read all options and show sections and fields
235
  *
236
  * @param bool false for all tabs slug, true for current tab
237
- *
238
  * @return mixed Array tabs | String current tab
239
  * @since 1.0
240
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
@@ -249,7 +238,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
249
 
250
  /**
251
  * Add sections and fields to setting panel
252
- *
253
  * read all options and show sections and fields
254
  *
255
  * @return void
@@ -272,7 +260,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
272
 
273
  /**
274
  * Print the panel content
275
- *
276
  * check if the tab is a wc options tab or custom tab and print the content
277
  *
278
  * @return void
@@ -419,7 +406,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
419
 
420
  /**
421
  * Default options
422
- *
423
  * Sets up the default options used on the settings page
424
  *
425
  * @access public
@@ -460,7 +446,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
460
  * Delete the "default options added" option
461
  *
462
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
463
- *
464
  */
465
  public static function delete_default_options_set_option() {
466
  delete_option( 'yit_plugin_fw_panel_wc_default_options_set' );
@@ -471,9 +456,7 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
471
  *
472
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
473
  * @since 2.0
474
- *
475
  * @param $classes The body classes
476
- *
477
  * @return array Filtered body classes
478
  */
479
  public static function admin_body_class( $admin_body_classes ) {
@@ -491,7 +474,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
491
  * @param $value mixed Option value
492
  * @param $option mixed Option settings array
493
  * @param $raw_value string Raw option value
494
- *
495
  * @return mixed Filtered return value
496
  * @author Antonio La Rocca <antonio.larocca@yithemes.com>
497
  * @since 2.0
@@ -523,7 +505,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
523
  * @param $value mixed Option value
524
  * @param $option mixed Option settings array
525
  * @param $raw_value string Raw option value
526
- *
527
  * @return mixed Filtered return value
528
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
529
  * @since 3.0.0
@@ -545,42 +526,42 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
545
  $value = $raw_value;
546
  }
547
 
548
- // sanitize the option date-format when the user choose the custom option
549
- if ( isset( $option['yith-type'] ) && in_array( $option['yith-type'], array( 'date-format' ) ) && '\c\u\s\t\o\m' == $raw_value ) {
550
- $custom = isset( $_REQUEST[ $option['id'] . '_text' ] ) ? $_REQUEST[ $option['id'] . '_text' ] : $option['default'];
551
- $value = $custom;
552
- }
553
 
554
- if ( isset( $option['yith-type'] ) && in_array( $option['yith-type'], array( 'toggle-element' ) ) ) {
555
 
556
- // error_log( print_r( $raw_value, true ) );
557
 
558
- if ( $value && isset( $option['elements'] ) && ! empty( $option['elements'] ) ) {
559
 
560
- foreach ( $value as $index => $single_toggle ) {
561
 
562
- if ( $value && isset( $option['onoff_field'] ) && ! empty( $option['onoff_field'] ) ) {
563
- $onoff = $option['onoff_field'];
564
- $onoff['type'] = 'yith-field';
565
- $onoff['yith-type'] = 'onoff';
566
- $onoff_id = $onoff['id'];
567
 
568
- $value[ $index ][ $onoff_id ] = isset( $single_toggle[ $onoff_id ] ) ? self::sanitize_option( $single_toggle[ $onoff_id ], $onoff, $single_toggle[ $onoff_id ] ) : 'no';
569
- }
570
 
571
- foreach ( $option['elements'] as $element ) {
572
- $value[ $index ][ $element['id'] ] = self::sanitize_option( $value[ $index ][ $element['id'] ], $element, $value[ $index ][ $element['id'] ] );
573
- }
574
- }
575
- }
576
 
577
 
578
- // error_log('sanitizes value');
579
- // error_log( print_r( $value, true ) );
580
- }
581
 
582
 
583
- if ( !empty( $option[ 'yith-sanitize-callback' ] ) && is_callable( $option[ 'yith-sanitize-callback' ] ) ) {
584
  $value = call_user_func( $option[ 'yith-sanitize-callback' ], $value );
585
  }
586
  }
@@ -592,7 +573,6 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
592
  * Add YITH Fields
593
  *
594
  * @param array $field
595
- *
596
  * @return void
597
  * @since 3.0.0
598
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
@@ -608,7 +588,11 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
608
 
609
  $value = apply_filters( 'yith_plugin_fw_wc_panel_pre_field_value', null, $field );
610
  if ( is_null( $value ) ) {
611
- $value = WC_Admin_Settings::get_option( $field[ 'id' ], $field[ 'default' ] );
 
 
 
 
612
  }
613
  $field[ 'value' ] = $value;
614
 
@@ -616,69 +600,52 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
616
  }
617
  }
618
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
619
 
620
- /**
621
- * Return the option value for the toggle element to the filter 'yith_plugin_fw_wc_panel_pre_field_value',
622
- * it is an array of arrays and could trigger warning if recovered using
623
- * WC_Admin_Settings::get_option
624
- *
625
- * @param $value mixed
626
- * @param $field array
627
- *
628
- * @return $value mixed
629
- *
630
- * @author Emanuela Castorina
631
- */
632
- public function get_toggle_element_option( $value, $field ) {
633
- return get_option( $field[ 'id' ], $field[ 'default' ] );
634
- }
635
 
636
- /**
637
- * Save the content of the toggle element present inside the panel.
638
- * Called by the action 'admin_action_yith_plugin_fw_save_toggle_element'
639
- * via Ajax
640
- *
641
- * @author Emanuela Castorina
642
- */
643
- public function save_toggle_element_options() {
644
- $posted = $_POST;
645
- $tabs = $this->get_available_tabs();
646
- $yit_options = $this->get_main_array_options();
647
- $current_tab = isset( $_REQUEST['tab'] ) && in_array( $_REQUEST['tab'], $tabs ) ? $_REQUEST['tab'] : $tabs[0];
648
- $option_id = isset( $_REQUEST['toggle_id'] ) ? $_REQUEST['toggle_id'] : '';
649
- $updated = false;
650
-
651
- if ( ! empty( $yit_options[ $current_tab ] ) && ! empty( $option_id ) ) {
652
-
653
- $tab_options = $yit_options[ $current_tab ];
654
- foreach ( $tab_options as $key => $item ) {
655
- if ( ! isset( $item['id'] ) ) {
656
- unset( $tab_options[ $key ] );
657
- }
658
- }
659
-
660
- $option_array = array_combine( wp_list_pluck( $tab_options, 'id' ), $tab_options );
661
- if ( isset( $option_array[ $option_id ] ) ) {
662
- $value = isset( $posted[ $option_id ] ) ? $posted[ $option_id ] : '';
663
-
664
- //drag and drop
665
- $order_elements = isset( $posted['yith_toggle_elements_order_keys'] ) ? explode( ',', $posted['yith_toggle_elements_order_keys'] ) : false;
666
- if ( $order_elements ) {
667
- $i = 0;
668
- $new_value = array();
669
- foreach ( $order_elements as $key ) {
670
- $index = apply_filters('yith_toggle_elements_index', $i++, $key );
671
- $new_value[ $index ] = $value[ $key ];
672
- }
673
-
674
- $value = $new_value;
675
- }
676
- $value = self::sanitize_option( $value, $option_array[ $option_id ], $value );
677
- $updated = update_option( $option_id, $value );
678
- }
679
- }
680
-
681
- return $updated;
682
- }
683
  }
684
  }
1
  <?php
2
  /**
3
  * This file belongs to the YIT Plugin Framework.
 
4
  * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
5
  * that is bundled with this package in the file LICENSE.txt.
6
  * It is also available through the world-wide-web at this URL:
14
  if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
15
  /**
16
  * YIT Plugin Panel for WooCommerce
 
17
  * Setting Page to Manage Plugins
18
  *
19
  * @class YIT_Plugin_Panel
45
  public static $body_class = ' yith-plugin-fw-panel ';
46
 
47
 
 
48
  /**
49
  * @var array
50
  */
80
  $this->links = $this->settings[ 'links' ];
81
  }
82
 
83
+ add_action( 'admin_init', array( $this, 'set_default_options' ) );
84
  add_action( 'admin_menu', array( $this, 'add_setting_page' ) );
85
  add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 );
86
  add_action( 'admin_bar_menu', array( $this, 'add_admin_bar_menu' ), 100 );
90
 
91
  add_filter( 'woocommerce_admin_settings_sanitize_option', array( $this, 'maybe_unserialize_panel_data' ), 10, 3 );
92
 
93
+ //yith-plugin-ui
94
+ add_action( 'yith_plugin_fw_get_field_after', array( $this, 'add_yith_ui' ) );
95
+ add_action( 'yith_plugin_fw_before_woocommerce_panel', array( $this, 'add_plugin_banner' ), 10, 1 );
96
+ add_action( 'admin_action_yith_plugin_fw_save_toggle_element', array( $this, 'save_toggle_element_options' ) );
 
97
 
98
 
99
  // init actions once to prevent multiple actions
127
 
128
  /**
129
  * Show a tabbed panel to setting page
 
130
  * a callback function called by add_setting_page => add_submenu_page
131
  *
132
  * @return void
140
  'available_tabs' => $this->settings[ 'admin-tabs' ],
141
  'default_tab' => $this->get_available_tabs( true ), //get default tabs
142
  'page' => $this->settings[ 'page' ],
143
+ 'wrap_class' => isset( $this->settings[ 'class' ] ) ? $this->settings[ 'class' ] : '',
144
  );
145
 
146
 
154
  /**
155
  * Show a input fields to upload images
156
  *
 
157
  * @return string
158
  * @since 1.0
159
  * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
166
  /**
167
  * Show a input fields to upload images
168
  *
 
169
  * @param array $args
 
170
  * @since 1.0
171
  * @author Emanuela Castorina <emanuela.castorina@yithemes.com>
172
  */
184
  * Add the plugin woocommerce page settings in the screen ids of woocommerce
185
  *
186
  * @param $screen_ids
 
187
  * @return mixed
188
  * @since 1.0.0
189
  * @author Antonino Scarfì <antonino.scarfi@yithemes.com>
221
 
222
  /**
223
  * Return available tabs
 
224
  * read all options and show sections and fields
225
  *
226
  * @param bool false for all tabs slug, true for current tab
 
227
  * @return mixed Array tabs | String current tab
228
  * @since 1.0
229
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
238
 
239
  /**
240
  * Add sections and fields to setting panel
 
241
  * read all options and show sections and fields
242
  *
243
  * @return void
260
 
261
  /**
262
  * Print the panel content
 
263
  * check if the tab is a wc options tab or custom tab and print the content
264
  *
265
  * @return void
406
 
407
  /**
408
  * Default options
 
409
  * Sets up the default options used on the settings page
410
  *
411
  * @access public
446
  * Delete the "default options added" option
447
  *
448
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
 
449
  */
450
  public static function delete_default_options_set_option() {
451
  delete_option( 'yit_plugin_fw_panel_wc_default_options_set' );
456
  *
457
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
458
  * @since 2.0
 
459
  * @param $classes The body classes
 
460
  * @return array Filtered body classes
461
  */
462
  public static function admin_body_class( $admin_body_classes ) {
474
  * @param $value mixed Option value
475
  * @param $option mixed Option settings array
476
  * @param $raw_value string Raw option value
 
477
  * @return mixed Filtered return value
478
  * @author Antonio La Rocca <antonio.larocca@yithemes.com>
479
  * @since 2.0
505
  * @param $value mixed Option value
506
  * @param $option mixed Option settings array
507
  * @param $raw_value string Raw option value
 
508
  * @return mixed Filtered return value
509
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
510
  * @since 3.0.0
526
  $value = $raw_value;
527
  }
528
 
529
+ // sanitize the option date-format when the user choose the custom option
530
+ if ( isset( $option[ 'yith-type' ] ) && in_array( $option[ 'yith-type' ], array( 'date-format' ) ) && '\c\u\s\t\o\m' == $raw_value ) {
531
+ $custom = isset( $_REQUEST[ $option[ 'id' ] . '_text' ] ) ? $_REQUEST[ $option[ 'id' ] . '_text' ] : $option[ 'default' ];
532
+ $value = $custom;
533
+ }
534
 
535
+ if ( isset( $option[ 'yith-type' ] ) && in_array( $option[ 'yith-type' ], array( 'toggle-element' ) ) ) {
536
 
537
+ // error_log( print_r( $raw_value, true ) );
538
 
539
+ if ( $value && isset( $option[ 'elements' ] ) && !empty( $option[ 'elements' ] ) ) {
540
 
541
+ foreach ( $value as $index => $single_toggle ) {
542
 
543
+ if ( $value && isset( $option[ 'onoff_field' ] ) && !empty( $option[ 'onoff_field' ] ) ) {
544
+ $onoff = $option[ 'onoff_field' ];
545
+ $onoff[ 'type' ] = 'yith-field';
546
+ $onoff[ 'yith-type' ] = 'onoff';
547
+ $onoff_id = $onoff[ 'id' ];
548
 
549
+ $value[ $index ][ $onoff_id ] = isset( $single_toggle[ $onoff_id ] ) ? self::sanitize_option( $single_toggle[ $onoff_id ], $onoff, $single_toggle[ $onoff_id ] ) : 'no';
550
+ }
551
 
552
+ foreach ( $option[ 'elements' ] as $element ) {
553
+ $value[ $index ][ $element[ 'id' ] ] = self::sanitize_option( $value[ $index ][ $element[ 'id' ] ], $element, $value[ $index ][ $element[ 'id' ] ] );
554
+ }
555
+ }
556
+ }
557
 
558
 
559
+ // error_log('sanitizes value');
560
+ // error_log( print_r( $value, true ) );
561
+ }
562
 
563
 
564
+ if ( !empty( $option[ 'yith-sanitize-callback' ] ) && is_callable( $option[ 'yith-sanitize-callback' ] ) ) {
565
  $value = call_user_func( $option[ 'yith-sanitize-callback' ], $value );
566
  }
567
  }
573
  * Add YITH Fields
574
  *
575
  * @param array $field
 
576
  * @return void
577
  * @since 3.0.0
578
  * @author Leanza Francesco <leanzafrancesco@gmail.com>
588
 
589
  $value = apply_filters( 'yith_plugin_fw_wc_panel_pre_field_value', null, $field );
590
  if ( is_null( $value ) ) {
591
+ if ( 'toggle-element' === $field[ 'type' ] ) {
592
+ $value = get_option( $field[ 'id' ], $field[ 'default' ] );
593
+ } else {
594
+ $value = WC_Admin_Settings::get_option( $field[ 'id' ], $field[ 'default' ] );
595
+ }
596
  }
597
  $field[ 'value' ] = $value;
598
 
600
  }
601
  }
602
 
603
+ /**
604
+ * Save the content of the toggle element present inside the panel.
605
+ * Called by the action 'admin_action_yith_plugin_fw_save_toggle_element'
606
+ * via Ajax
607
+ *
608
+ * @author Emanuela Castorina
609
+ */
610
+ public function save_toggle_element_options() {
611
+ $posted = $_POST;
612
+ $tabs = $this->get_available_tabs();
613
+ $yit_options = $this->get_main_array_options();
614
+ $current_tab = isset( $_REQUEST[ 'tab' ] ) && in_array( $_REQUEST[ 'tab' ], $tabs ) ? $_REQUEST[ 'tab' ] : $tabs[ 0 ];
615
+ $option_id = isset( $_REQUEST[ 'toggle_id' ] ) ? $_REQUEST[ 'toggle_id' ] : '';
616
+ $updated = false;
617
 
618
+ if ( !empty( $yit_options[ $current_tab ] ) && !empty( $option_id ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
619
 
620
+ $tab_options = $yit_options[ $current_tab ];
621
+ foreach ( $tab_options as $key => $item ) {
622
+ if ( !isset( $item[ 'id' ] ) ) {
623
+ unset( $tab_options[ $key ] );
624
+ }
625
+ }
626
+
627
+ $option_array = array_combine( wp_list_pluck( $tab_options, 'id' ), $tab_options );
628
+ if ( isset( $option_array[ $option_id ] ) ) {
629
+ $value = isset( $posted[ $option_id ] ) ? $posted[ $option_id ] : '';
630
+
631
+ //drag and drop
632
+ $order_elements = isset( $posted[ 'yith_toggle_elements_order_keys' ] ) ? explode( ',', $posted[ 'yith_toggle_elements_order_keys' ] ) : false;
633
+ if ( $order_elements ) {
634
+ $i = 0;
635
+ $new_value = array();
636
+ foreach ( $order_elements as $key ) {
637
+ $index = apply_filters( 'yith_toggle_elements_index', $i++, $key );
638
+ $new_value[ $index ] = $value[ $key ];
639
+ }
640
+
641
+ $value = $new_value;
642
+ }
643
+ $value = self::sanitize_option( $value, $option_array[ $option_id ], $value );
644
+ $updated = update_option( $option_id, $value );
645
+ }
646
+ }
647
+
648
+ return $updated;
649
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
650
  }
651
  }
plugin-fw/lib/yith-system-status.php ADDED
@@ -0,0 +1,385 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file belongs to the YIT Plugin Framework.
4
+ *
5
+ * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
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' ) ) {
12
+ exit;
13
+ } // Exit if accessed directly
14
+
15
+ if ( ! class_exists( 'YITH_System_Status' ) ) {
16
+ /**
17
+ * YITH System Status Panel
18
+ *
19
+ * Setting Page to Manage Plugins
20
+ *
21
+ * @class YITH_System_Status
22
+ * @package YITH
23
+ * @since 1.0
24
+ * @author Alberto Ruggiero
25
+ */
26
+ class YITH_System_Status {
27
+
28
+ /**
29
+ * @var array The settings require to add the submenu page "System Status"
30
+ */
31
+ protected $_settings = array();
32
+
33
+ /**
34
+ * @var string the page slug
35
+ */
36
+ protected $_page = 'yith_system_info';
37
+
38
+ /**
39
+ * @var array plugins requirements list
40
+ */
41
+ protected $_plugins_requirements = array();
42
+
43
+ /**
44
+ * @var array requirements labels
45
+ */
46
+ protected $_requirement_labels = array();
47
+
48
+ /**
49
+ * Single instance of the class
50
+ *
51
+ * @var \YITH_System_Status
52
+ * @since 1.0.0
53
+ */
54
+ protected static $_instance = null;
55
+
56
+ /**
57
+ * Main plugin Instance
58
+ *
59
+ * @since 1.0.0
60
+ * @return YITH_System_Status
61
+ * @author Alberto Ruggiero
62
+ */
63
+ public static function instance() {
64
+ if ( is_null( self::$_instance ) ) {
65
+ self::$_instance = new self();
66
+ }
67
+
68
+ return self::$_instance;
69
+ }
70
+
71
+ /**
72
+ * Constructor
73
+ *
74
+ * @since 1.0.0
75
+ * @return void
76
+ * @author Alberto Ruggiero
77
+ */
78
+ public function __construct() {
79
+
80
+ if ( ! is_admin() ) {
81
+ return;
82
+ }
83
+
84
+ $system_info = get_option( 'yith_system_info' );
85
+ $error_notice = ( $system_info['errors'] === true ? ' <span class="yith-system-info-menu update-plugins">!</span>' : '' );
86
+
87
+ $this->_settings = array(
88
+ 'parent_page' => 'yith_plugin_panel',
89
+ 'page_title' => __( 'System Status', 'yith-plugin-fw' ),
90
+ 'menu_title' => __( 'System Status', 'yith-plugin-fw' ) . $error_notice,
91
+ 'capability' => 'manage_options',
92
+ 'page' => $this->_page,
93
+ );
94
+
95
+ $this->_requirement_labels = array(
96
+ 'min_wp_version' => __( 'WordPress Version', 'yith-plugin-fw' ),
97
+ 'min_wc_version' => __( 'WooCommerce Version', 'yith-plugin-fw' ),
98
+ 'wp_memory_limit' => __( 'Available Memory', 'yith-plugin-fw' ),
99
+ 'min_php_version' => __( 'PHP Version', 'yith-plugin-fw' ),
100
+ 'min_tls_version' => __( 'TLS Version', 'yith-plugin-fw' ),
101
+ 'wp_cron_enabled' => __( 'WordPress Cron', 'yith-plugin-fw' ),
102
+ 'simplexml_enabled' => __( 'SimpleXML', 'yith-plugin-fw' ),
103
+ 'mbstring_enabled' => __( 'MultiByte String', 'yith-plugin-fw' ),
104
+ 'imagick_version' => __( 'ImageMagick Version', 'yith-plugin-fw' ),
105
+ 'gd_enabled' => __( 'GD Library', 'yith-plugin-fw' ),
106
+ 'iconv_enabled' => __( 'Iconv Module', 'yith-plugin-fw' ),
107
+ 'opcache_enabled' => __( 'OPCache Save Comments', 'yith-plugin-fw' ),
108
+ 'url_fopen_enabled' => __( 'URL FOpen', 'yith-plugin-fw' ),
109
+ );
110
+
111
+ add_action( 'admin_menu', array( $this, 'add_submenu_page' ), 99 );
112
+ add_action( 'admin_init', array( $this, 'check_system_status' ) );
113
+ add_action( 'admin_notices', array( $this, 'activate_system_notice' ), 15 );
114
+ add_action( 'admin_enqueue_scripts', array( $this, 'dismissable_notice' ), 20 );
115
+
116
+
117
+ }
118
+
119
+ /**
120
+ * Add "System Information" submenu page under YITH Plugins
121
+ *
122
+ * @since 1.0.0
123
+ * @return void
124
+ * @author Alberto Ruggiero
125
+ */
126
+ public function add_submenu_page() {
127
+ add_submenu_page(
128
+ $this->_settings['parent_page'],
129
+ $this->_settings['page_title'],
130
+ $this->_settings['menu_title'],
131
+ $this->_settings['capability'],
132
+ $this->_settings['page'],
133
+ array( $this, 'show_information_panel' )
134
+ );
135
+ }
136
+
137
+ /**
138
+ * Add "System Information" page template under YITH Plugins
139
+ *
140
+ * @since 1.0.0
141
+ * @return void
142
+ * @author Alberto Ruggiero
143
+ */
144
+ public function show_information_panel() {
145
+
146
+ $path = defined( 'YIT_CORE_PLUGIN_PATH' ) ? YIT_CORE_PLUGIN_PATH : get_template_directory() . '/core/plugin-fw/';
147
+ $labels = $this->_requirement_labels;
148
+
149
+ require_once( $path . '/templates/sysinfo/system-information-panel.php' );
150
+
151
+ }
152
+
153
+ /**
154
+ * Perform system status check
155
+ *
156
+ * @since 1.0.0
157
+ * @return void
158
+ * @author Alberto Ruggiero
159
+ */
160
+ public function check_system_status() {
161
+
162
+ if ( '' == get_option( 'yith_system_info' ) || ( isset( $_GET['page'] ) && $_GET['page'] == $this->_page ) ) {
163
+
164
+ $this->add_requirements( __( 'YITH Plugins', 'yith-plugin-fw' ), array( 'min_wp_version' => '4.9', 'min_wc_version' => '3.4', 'min_php_version' => '5.6.20' ) );
165
+ $this->add_requirements( __( 'WooCommerce', 'yith-plugin-fw' ), array( 'wp_memory_limit' => '64M' ) );
166
+
167
+ $system_info = $this->get_system_info();
168
+ $check_results = array();
169
+ $errors = false;
170
+
171
+ foreach ( $system_info as $key => $value ) {
172
+ $check_results[ $key ] = array( 'value' => $value );
173
+
174
+ if ( isset( $this->_plugins_requirements[ $key ] ) ) {
175
+
176
+ foreach ( $this->_plugins_requirements[ $key ] as $plugin_name => $required_value ) {
177
+
178
+ switch ( $key ) {
179
+ case 'wp_cron_enabled' :
180
+ case 'mbstring_enabled' :
181
+ case 'simplexml_enabled':
182
+ case 'gd_enabled':
183
+ case 'iconv_enabled':
184
+ case 'url_fopen_enabled':
185
+ case 'opcache_enabled' :
186
+
187
+ if ( ! $value ) {
188
+ $check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
189
+ $errors = true;
190
+ }
191
+ break;
192
+
193
+ case 'wp_memory_limit' :
194
+ $required_memory = $this->memory_size_to_num( $required_value );
195
+
196
+ if ( $required_memory > $value ) {
197
+ $check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
198
+ $errors = true;
199
+ }
200
+ break;
201
+
202
+ default:
203
+ if ( ! version_compare( $value, $required_value, '>=' ) ) {
204
+ $check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
205
+ $errors = true;
206
+ }
207
+
208
+ }
209
+
210
+ }
211
+
212
+ }
213
+
214
+ }
215
+
216
+ update_option( 'yith_system_info', array( 'system_info' => $check_results, 'errors' => $errors ) );
217
+
218
+ }
219
+
220
+ }
221
+
222
+ /**
223
+ * Handle plugin requirements
224
+ *
225
+ * @since 1.0.0
226
+ *
227
+ * @param $plugin_name string
228
+ * @param $requirements array
229
+ *
230
+ * @return void
231
+ * @author Alberto Ruggiero
232
+ */
233
+ public function add_requirements( $plugin_name, $requirements ) {
234
+
235
+ $allowed_requirements = array_keys( $this->_requirement_labels );
236
+
237
+ foreach ( $requirements as $requirement => $value ) {
238
+
239
+ if ( in_array( $requirement, $allowed_requirements ) ) {
240
+ $this->_plugins_requirements[ $requirement ][ $plugin_name ] = $value;
241
+ }
242
+ }
243
+
244
+ }
245
+
246
+ /**
247
+ * Manages notice dismissing
248
+ *
249
+ * @since 1.0.0
250
+ * @return void
251
+ * @author Alberto Ruggiero
252
+ */
253
+ public function dismissable_notice() {
254
+ $script_path = defined( 'YIT_CORE_PLUGIN_URL' ) ? YIT_CORE_PLUGIN_URL : get_template_directory_uri() . '/core/plugin-fw';
255
+ $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
256
+ wp_register_script( 'yith-system-info', $script_path . '/assets/js/yith-system-info' . $suffix . '.js', array( 'jquery' ), '1.0.0', true );
257
+ }
258
+
259
+ /**
260
+ * Show system notice
261
+ *
262
+ * @since 1.0.0
263
+ * @return void
264
+ * @author Alberto Ruggiero
265
+ */
266
+ public function activate_system_notice() {
267
+
268
+ $system_info = get_option( 'yith_system_info', '' );
269
+
270
+ if ( ( isset( $_GET['page'] ) && $_GET['page'] == $this->_page ) || ( ! empty( $_COOKIE['hide_yith_system_alert'] ) && 'yes' == $_COOKIE['hide_yith_system_alert'] ) || ( $system_info == '' ) || ( $system_info != '' && $system_info['errors'] === false ) ) {
271
+ return;
272
+ }
273
+
274
+ $show_notice = true;
275
+
276
+ if ( true === $show_notice ) :
277
+ wp_enqueue_script( 'yith-system-info' );
278
+ ?>
279
+ <div id="yith-system-alert" class="notice notice-error is-dismissible" style="position: relative;">
280
+ <p>
281
+ <span class="yith-logo"><img src="<?php echo yith_plugin_fw_get_default_logo() ?>" /></span>
282
+ <b><?php echo __( 'Warning!', 'yith-plugin-fw' ) ?></b><br />
283
+ <?php echo sprintf( __( 'The system check has detected some compatibility issues on your installation. %sClick here%s to know more', 'yith-plugin-fw' ), '<a href="' . esc_url( add_query_arg( array( 'page' => $this->_page ), admin_url( 'admin.php' ) ) ) . '">', '</a>' ) ?>
284
+ </p>
285
+ <span class="notice-dismiss"></span>
286
+
287
+ </div>
288
+ <?php endif;
289
+ }
290
+
291
+ /**
292
+ * Get system information
293
+ *
294
+ * @since 1.0.0
295
+ * @return array
296
+ * @author Alberto Ruggiero
297
+ */
298
+ public function get_system_info() {
299
+
300
+ //Get TLS version
301
+ $ch = curl_init( 'https://www.howsmyssl.com/a/check' );
302
+ curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
303
+ $data = curl_exec( $ch );
304
+ curl_close( $ch );
305
+ $json = json_decode( $data );
306
+ $tls = $json != null ? str_replace( 'TLS ', '', $json->tls_version ) : '';
307
+
308
+ //Get PHP version
309
+ preg_match( "#^\d+(\.\d+)*#", PHP_VERSION, $match );
310
+ $php_version = $match[0];
311
+
312
+ // WP memory limit.
313
+ $wp_memory_limit = $this->memory_size_to_num( WP_MEMORY_LIMIT );
314
+ if ( function_exists( 'memory_get_usage' ) ) {
315
+ $wp_memory_limit = max( $wp_memory_limit, $this->memory_size_to_num( @ini_get( 'memory_limit' ) ) );
316
+ }
317
+
318
+ $imagick_version = '0.0.0';
319
+ if ( class_exists( 'Imagick' ) ) {
320
+ preg_match( "/([0-9]+\.[0-9]+\.[0-9]+)/", Imagick::getVersion()['versionString'], $imatch );
321
+ $imagick_version = $imatch[0];
322
+ }
323
+
324
+ return apply_filters( 'yith_system_additional_check', array(
325
+ 'min_wp_version' => get_bloginfo( 'version' ),
326
+ 'min_wc_version' => function_exists( 'WC' ) ? WC()->version : __( 'Not installed', 'yith-plugin-fw' ),
327
+ 'wp_memory_limit' => $wp_memory_limit,
328
+ 'min_php_version' => $php_version,
329
+ 'min_tls_version' => $tls,
330
+ 'imagick_version' => $imagick_version,
331
+ 'wp_cron_enabled' => ! ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ),
332
+ 'mbstring_enabled' => extension_loaded( 'mbstring' ),
333
+ 'simplexml_enabled' => extension_loaded( 'simplexml' ),
334
+ 'gd_enabled' => extension_loaded( 'gd' ) && function_exists( 'gd_info' ),
335
+ 'iconv_enabled' => extension_loaded( 'iconv' ),
336
+ 'opcache_enabled' => ini_get( 'opcache.save_comments' ),
337
+ 'url_fopen_enabled' => ini_get( 'allow_url_fopen' ),
338
+ ) );
339
+
340
+ }
341
+
342
+ /**
343
+ * Convert site into number
344
+ *
345
+ * @since 1.0.0
346
+ *
347
+ * @param $memory_size string
348
+ *
349
+ * @return integer
350
+ * @author Alberto Ruggiero
351
+ */
352
+ public function memory_size_to_num( $memory_size ) {
353
+ $unit = strtoupper( substr( $memory_size, - 1 ) );
354
+ $size = substr( $memory_size, 0, - 1 );
355
+ $multiplier = array(
356
+ 'P' => 5,
357
+ 'T' => 4,
358
+ 'G' => 3,
359
+ 'M' => 2,
360
+ 'K' => 1,
361
+ );
362
+ for ( $i = 1; $i <= $multiplier[ $unit ]; $i ++ ) {
363
+ $size *= 1024;
364
+ }
365
+
366
+ return $size;
367
+ }
368
+
369
+ }
370
+ }
371
+
372
+ /**
373
+ * Main instance of plugin
374
+ *
375
+ * @return YITH_System_Status object
376
+ * @since 1.0
377
+ * @author Alberto Ruggiero
378
+ */
379
+ if ( ! function_exists( 'YITH_System_Status' ) ) {
380
+ function YITH_System_Status() {
381
+ return YITH_System_Status::instance();
382
+ }
383
+ }
384
+
385
+ YITH_System_Status();
plugin-fw/templates/fields/ajax-customers.php ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file belongs to the YIT Plugin Framework.
4
+ *
5
+ * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
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
+ * @var array $field
11
+ *
12
+ * [Important Note] the stored value is:
13
+ * - array if WooCommerce version >= 3.0.0
14
+ * - string (comma-separated) otherwise
15
+ */
16
+
17
+ !defined( 'ABSPATH' ) && exit; // Exit if accessed directly
18
+
19
+ yith_plugin_fw_enqueue_enhanced_select();
20
+
21
+ $default_field = array(
22
+ 'id' => '',
23
+ 'name' => '',
24
+ 'class' => 'yith-customer-search',
25
+ 'no_value' => false,
26
+ 'multiple' => false,
27
+ 'data' => array(),
28
+ 'style' => 'width:400px',
29
+ 'value' => ''
30
+ );
31
+
32
+ foreach ( $default_field as $field_key => $field_value ) {
33
+ if ( empty( $field[ $field_key ] ) ) {
34
+ $field[ $field_key ] = $field_value;
35
+ }
36
+ }
37
+ unset( $field_key );
38
+ unset( $field_value );
39
+ extract( $field );
40
+ /**
41
+ * @var string $id
42
+ * @var string $class
43
+ * @var bool $no_value
44
+ * @var bool $multiple
45
+ * @var array $data
46
+ * @var string $name
47
+ * @var string $style
48
+ * @var string|array $value
49
+ */
50
+
51
+
52
+ if ( $no_value )
53
+ $value = array();
54
+
55
+ $default_data = array(
56
+ 'action' => 'woocommerce_json_search_customers',
57
+ 'placeholder' => __( 'Search Customers', 'yith-plugin-fw' ),
58
+ 'allow_clear' => false,
59
+ );
60
+ $data = wp_parse_args( $data, $default_data );
61
+ $show_id = isset( $data[ 'show_id' ] ) && $data[ 'show_id' ];
62
+
63
+ // separate select2 needed data and other data
64
+ $select2_custom_attributes = array();
65
+ $select2_data = array();
66
+ $select2_data_keys = array( 'placeholder', 'allow_clear', 'action' );
67
+ foreach ( $data as $d_key => $d_value ) {
68
+ if ( in_array( $d_key, $select2_data_keys ) ) {
69
+ $select2_data[ $d_key ] = $d_value;
70
+ } else {
71
+ $select2_custom_attributes[ 'data-' . $d_key ] = $d_value;
72
+ }
73
+ }
74
+
75
+ // populate data-selected by value
76
+ $data_selected = array();
77
+ if ( !empty( $value ) ) {
78
+ if ( $multiple ) {
79
+ $value = is_array( $value ) ? $value : explode( ',', $value );
80
+ foreach ( $value as $user_id ) {
81
+ $user = get_user_by('id', $user_id);
82
+ $data_selected[ $user_id ] = sprintf(
83
+ esc_html__( '%1$s (#%2$s &ndash; %3$s)', 'woocommerce' ),
84
+ $user->display_name,
85
+ absint( $user->ID ),
86
+ $user->user_email
87
+ );
88
+ }
89
+ } else {
90
+ $user_id = absint( $value );
91
+ $user = get_user_by('id', $user_id);
92
+ $data_selected[ $user_id ] = sprintf(
93
+ esc_html__( '%1$s (#%2$s &ndash; %3$s)', 'woocommerce' ),
94
+ $user->display_name,
95
+ absint( $user->ID ),
96
+ $user->user_email
97
+ );
98
+ }
99
+ }
100
+
101
+ // parse $value to string to prevent issue with wc2.6
102
+ $value = is_array( $value ) ? implode( ',', $value ) : $value;
103
+ ?>
104
+ <div class="yith-plugin-fw-select2-wrapper">
105
+ <?php
106
+ if ( function_exists( 'yit_add_select2_fields' ) ) {
107
+ yit_add_select2_fields( array(
108
+ 'id' => $id,
109
+ 'name' => $name,
110
+ 'class' => $class,
111
+ 'data-multiple' => $multiple,
112
+ 'data-placeholder' => $select2_data[ 'placeholder' ],
113
+ 'data-allow_clear' => $select2_data[ 'allow_clear' ],
114
+ 'data-action' => $select2_data[ 'action' ],
115
+ 'custom-attributes' => $select2_custom_attributes,
116
+ 'style' => $style,
117
+ 'value' => $value,
118
+ 'data-selected' => $data_selected,
119
+ ) );
120
+ }
121
+ ?>
122
+ </div>
plugin-fw/templates/fields/colorpicker.php CHANGED
@@ -17,6 +17,10 @@ wp_enqueue_style( 'wp-color-picker' );
17
  extract( $field );
18
 
19
  $class = !empty( $class ) ? $class : 'yith-plugin-fw-colorpicker';
 
 
 
 
20
  ?>
21
 
22
  <input type="text" name="<?php echo $name ?>"
@@ -25,3 +29,4 @@ $class = !empty( $class ) ? $class : 'yith-plugin-fw-colorpicker';
25
  class="<?php echo $class ?>"
26
  <?php echo $custom_attributes ?>
27
  <?php if ( isset( $data ) ) echo yith_plugin_fw_html_data_to_string( $data ); ?>/>
 
17
  extract( $field );
18
 
19
  $class = !empty( $class ) ? $class : 'yith-plugin-fw-colorpicker';
20
+ $default = isset( $default ) ? $default : '';
21
+ if( isset($std) && !empty( $std) && empty($default) ){
22
+ $default = $std;
23
+ }
24
  ?>
25
 
26
  <input type="text" name="<?php echo $name ?>"
29
  class="<?php echo $class ?>"
30
  <?php echo $custom_attributes ?>
31
  <?php if ( isset( $data ) ) echo yith_plugin_fw_html_data_to_string( $data ); ?>/>
32
+
plugin-fw/templates/fields/list-table.php CHANGED
@@ -17,7 +17,7 @@ if ( isset( $add_new_button ) && isset( $post_type ) ) {
17
  $show_button = true;
18
  $admin_url = admin_url( 'post-new.php' );
19
  $params['post_type'] = $post_type;
20
- $add_new_url = esc_url( add_query_arg( $params, $admin_url ) );
21
  }
22
 
23
  if ( isset( $list_table_class ) && ! class_exists( $list_table_class ) && isset( $list_table_class_dir ) ) {
@@ -25,7 +25,7 @@ if ( isset( $list_table_class ) && ! class_exists( $list_table_class ) && isset(
25
  }
26
 
27
  if ( class_exists( $list_table_class ) ):
28
- $list_table = new $list_table_class();
29
  ?>
30
 
31
  <div id="<?php echo $id ?>" class="yith-plugin-fw-list-table <?php echo $class ?>">
@@ -49,6 +49,9 @@ if ( class_exists( $list_table_class ) ):
49
  $list_table->views();
50
  ?>
51
  <form method="post">
 
 
 
52
  <?php
53
  $list_table->display();
54
  ?>
17
  $show_button = true;
18
  $admin_url = admin_url( 'post-new.php' );
19
  $params['post_type'] = $post_type;
20
+ $add_new_url = apply_filters( 'yith_plugin_fw_add_new_post_url', esc_url( add_query_arg( $params, $admin_url ) ), $params, isset( $args ) ? $args : false );
21
  }
22
 
23
  if ( isset( $list_table_class ) && ! class_exists( $list_table_class ) && isset( $list_table_class_dir ) ) {
25
  }
26
 
27
  if ( class_exists( $list_table_class ) ):
28
+ $list_table = isset( $args ) ? new $list_table_class( $args ) : new $list_table_class() ;
29
  ?>
30
 
31
  <div id="<?php echo $id ?>" class="yith-plugin-fw-list-table <?php echo $class ?>">
49
  $list_table->views();
50
  ?>
51
  <form method="post">
52
+ <?php if( isset( $search_form ) ) {
53
+ $list_table->search_box( $search_form['text'], $search_form['input_id'] );
54
+ } ?>
55
  <?php
56
  $list_table->display();
57
  ?>
plugin-fw/templates/fields/multi-colorpicker.php CHANGED
@@ -20,20 +20,55 @@ if ( ! isset( $colorpickers ) ){
20
  }
21
  $class = !empty( $class ) ? $class : 'yith-plugin-fw-multi-colorpicker';
22
  ?>
23
- <div class="<?php echo esc_attr( $class )?>">
24
 
25
  <?php
26
- foreach ( $colorpickers as $colorpicker ):
27
- $colorpicker['type'] = 'colorpicker';
28
- $colorpicker['title'] = $colorpicker['name'];
29
- $colorpicker['name'] = $name."[{$colorpicker['id']}]";
30
- $colorpicker['value'] = isset( $value[$colorpicker['id']] ) ? $value[$colorpicker['id']] : $colorpicker['default'];
31
- $colorpicker['id'] = $name."_".$colorpicker['id'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  ?>
33
- <div class="yith-single-colorpicker colorpicker">
34
- <label for="<?php echo esc_attr($colorpicker['id'] )?>"><?php echo esc_html($colorpicker['title']) ?></label>
35
- <?php echo yith_plugin_fw_get_field( $colorpicker, true, false ); ?>
36
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
- <?php endforeach;?>
 
 
 
 
 
 
39
  </div>
20
  }
21
  $class = !empty( $class ) ? $class : 'yith-plugin-fw-multi-colorpicker';
22
  ?>
23
+ <div class="<?php echo esc_attr( $class )?>" id="<?php echo esc_attr( $id ) ?>">
24
 
25
  <?php
26
+ $items_to_process = array();
27
+
28
+ for ( $i = 0; $i < count( $colorpickers ); $i++ ):
29
+ $items = $colorpickers[ $i ];
30
+
31
+ // make sure that we have at least one group
32
+ if( isset( $items['id'] ) ){
33
+ $items_to_process[] = $items;
34
+ $next = isset( $colorpickers[ $i + 1 ] ) ? $colorpickers[ $i + 1 ] : false;
35
+
36
+ if( isset( $next['id'] ) ){
37
+ continue;
38
+ }
39
+ }
40
+ else{
41
+ $items_to_process = $items;
42
+ }
43
+
44
+ if( isset( $items_to_process['desc'] ) ){
45
+ $group_desc = $items_to_process['desc'];
46
+ unset( $items_to_process['desc'] );
47
+ }
48
  ?>
49
+ <div class="yith-colorpicker-group">
50
+ <?php
51
+ foreach( $items_to_process as $colorpicker ):
52
+ if( ! is_array( $colorpicker ) ){
53
+ continue;
54
+ }
55
+
56
+ $colorpicker['type'] = 'colorpicker';
57
+ $colorpicker['title'] = $colorpicker['name'];
58
+ $colorpicker['name'] = $name."[{$colorpicker['id']}]";
59
+ $colorpicker['value'] = isset( $value[$colorpicker['id']] ) ? $value[$colorpicker['id']] : $colorpicker['default'];
60
+ $colorpicker['id'] = $name."_".$colorpicker['id'];
61
+ ?>
62
+ <div class="yith-single-colorpicker colorpicker">
63
+ <label for="<?php echo esc_attr($colorpicker['id'] )?>"><?php echo esc_html($colorpicker['title']) ?></label>
64
+ <?php echo yith_plugin_fw_get_field( $colorpicker, true, false ); ?>
65
+ </div>
66
 
67
+ <?php endforeach; ?>
68
+ <?php if( ! empty( $group_desc ) ): ?>
69
+ <span class="description"><?php echo $group_desc ?></span>
70
+ <?php endif; ?>
71
+ </div>
72
+ <?php $items_to_process = array() ?>
73
+ <?php endfor; ?>
74
  </div>
plugin-fw/templates/fields/password.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file belongs to the YIT Plugin Framework.
4
+ *
5
+ * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
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
+ * @var array $field
11
+ */
12
+
13
+ !defined( 'ABSPATH' ) && exit; // Exit if accessed directly
14
+
15
+ extract( $field );
16
+
17
+ $class = isset( $class ) ? $class : 'yith-plugin-fw-text-input';
18
+ ?>
19
+ <div class="yith-password-wrapper">
20
+
21
+ <input type="password" name="<?php echo $name ?>"
22
+ id="<?php echo $id ?>"
23
+ value="<?php echo esc_attr( $value ) ?>"
24
+ class="<?php echo $class ?> yith-password"
25
+ <?php if ( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?>
26
+ <?php echo $custom_attributes ?>
27
+ <?php if ( isset( $data ) ) echo yith_plugin_fw_html_data_to_string( $data ); ?>/>
28
+ <span class="yith-password-eye"></span>
29
+ </div>
30
+
plugin-fw/templates/fields/radio.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php
2
  /**
3
  * This file belongs to the YIT Plugin Framework.
4
- *
5
  * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
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:
@@ -18,6 +17,7 @@ extract( $field );
18
 
19
  $class = isset( $class ) ? $class : '';
20
  $class = 'yith-plugin-fw-radio ' . $class;
 
21
  ?>
22
  <div class="<?php echo $class ?>" id="<?php echo $id ?>"
23
  <?php echo $custom_attributes ?>
@@ -31,3 +31,4 @@ $class = 'yith-plugin-fw-radio ' . $class;
31
  </div>
32
  <?php endforeach; ?>
33
  </div>
 
1
  <?php
2
  /**
3
  * This file belongs to the YIT Plugin Framework.
 
4
  * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
5
  * that is bundled with this package in the file LICENSE.txt.
6
  * It is also available through the world-wide-web at this URL:
17
 
18
  $class = isset( $class ) ? $class : '';
19
  $class = 'yith-plugin-fw-radio ' . $class;
20
+
21
  ?>
22
  <div class="<?php echo $class ?>" id="<?php echo $id ?>"
23
  <?php echo $custom_attributes ?>
31
  </div>
32
  <?php endforeach; ?>
33
  </div>
34
+
plugin-fw/templates/fields/toggle-element.php CHANGED
@@ -25,6 +25,7 @@ $field = wp_parse_args( $field, $defaults );
25
  extract( $field );
26
 
27
  $show_add_button = isset( $add_button ) && $add_button;
 
28
  $values = isset( $value ) ? $value : get_option( $name, array() );
29
  $values = maybe_unserialize( $values );
30
  $sortable = isset( $sortable ) ? $sortable : false;
@@ -32,11 +33,13 @@ $class_wrapper = $sortable ? 'ui-sortable' : '';
32
  $onoff_id = isset( $onoff_field['id'] ) ? $onoff_field['id'] : '';
33
 
34
  if ( empty( $values ) && ! $show_add_button && $elements ) {
 
35
  //populate a toggle element with the default
36
  foreach ( $elements as $element ) {
37
  $values[0][ $element['id'] ] = $element['default'];
38
  }
39
  }
 
40
  ?>
41
  <div class="yith-toggle_wrapper <?php echo $class_wrapper ?>" id="<?php echo $id ?>">
42
  <?php
@@ -45,22 +48,25 @@ if ( empty( $values ) && ! $show_add_button && $elements ) {
45
 
46
  ?>
47
  <button class="yith-add-button yith-add-box-button"
48
- data-box_id="<?php echo $id; ?>_add_box"><?php echo $add_button; ?></button>
 
 
49
  <div id="<?php echo $id; ?>_add_box" class="yith-add-box">
50
  </div>
51
  <script type="text/template" id="tmpl-yith-toggle-element-add-box-content-<?php echo $id ?>">
52
  <?php foreach ( $elements as $element ):
53
  $element['title'] = $element['name'];
 
54
  $element['type'] = isset( $element['yith-type'] ) ? $element['yith-type'] : $element['type'];
55
  unset( $element['yith-type'] );
56
  $element['value'] = isset($element['default']) ? $element['default'] : '';
57
  $element['id'] = 'new_'.$element['id'];
58
  $element['name'] = $name. "[{{{data.index}}}][" . $element['id'] . "]";
59
-
60
  ?>
61
- <div class="yith-add-box-row <?php echo '{{{data.index}}}'?>">
62
 
63
- <label for="<?php echo $element['id']; ?>"><?php echo esc_html( $element['title'] ); ?></label>
64
  <div class="yith-plugin-fw-option-with-description">
65
  <?php
66
  echo yith_plugin_fw_get_field( $element, true ); ?>
@@ -70,7 +76,7 @@ if ( empty( $values ) && ! $show_add_button && $elements ) {
70
  <?php endforeach; ?>
71
 
72
  <div class="yith-add-box-buttons">
73
- <button class="yith-save-button">
74
  <?php echo $save_button['name'] ; ?>
75
  </button>
76
  </div>
@@ -101,7 +107,7 @@ if ( empty( $values ) && ! $show_add_button && $elements ) {
101
  <?php endif; ?>
102
  </h3>
103
  <span class="yith-toggle">
104
- <span class="yith-icon icon-arrow_right ui-sortable-handle"></span>
105
  </span>
106
  <?php
107
  if ( ! empty( $onoff_field ) && is_array( $onoff_field ) ):
@@ -119,7 +125,7 @@ if ( empty( $values ) && ! $show_add_button && $elements ) {
119
  </span>
120
 
121
  <?php if ( $sortable ): ?>
122
- <span class="yith-icon icon-drag"></span>
123
  <?php endif ?>
124
 
125
  <?php endif; ?>
@@ -134,8 +140,9 @@ if ( empty( $values ) && ! $show_add_button && $elements ) {
134
  $element['name'] = $name . "[$i][" . $element['id'] . "]";
135
  $element['value'] = isset( $value[ $element['id'] ] ) ? $value[ $element['id'] ] : $element['default'];
136
  $element['id'] = $element['id'].'_'.$i;
 
137
  ?>
138
- <div class="yith-toggle-content-row <?php echo $element['type'] ?>">
139
  <label for="<?php echo $element['id']; ?>"><?php echo $element['title']; ?></label>
140
  <div class="yith-plugin-fw-option-with-description">
141
  <?php echo yith_plugin_fw_get_field( $element, true ); ?>
@@ -180,7 +187,7 @@ if ( empty( $values ) && ! $show_add_button && $elements ) {
180
  <!-- Schedule Item template -->
181
  <script type="text/template" id="tmpl-yith-toggle-element-item-<?php echo $id ?>">
182
  <div id="<?php echo $id; ?>_{{{data.index}}}"
183
- class="yith-toggle-row <?php echo ! empty( $subtitle ) ? 'with-subtitle' : ''; ?> <?php echo $class; ?>"
184
  data-item_key="{{{data.index}}}" <?php echo $custom_attributes; ?>
185
  data-item_key="{{{data.index}}}">
186
  <div class="yith-toggle-title">
@@ -192,7 +199,7 @@ if ( empty( $values ) && ! $show_add_button && $elements ) {
192
 
193
  </h3>
194
  <span class="yith-toggle">
195
- <span class="yith-icon icon-arrow_right"></span>
196
  </span>
197
  <?php
198
  if ( ! empty( $onoff_field ) && is_array( $onoff_field ) ):
@@ -211,7 +218,7 @@ if ( empty( $values ) && ! $show_add_button && $elements ) {
211
 
212
  <?php endif; ?>
213
  <?php if ( $sortable ): ?>
214
- <span class="yith-icon icon-drag ui-sortable-handle"></span>
215
  <?php endif ?>
216
  </div>
217
  <div class="yith-toggle-content">
@@ -222,9 +229,10 @@ if ( empty( $values ) && ! $show_add_button && $elements ) {
222
  unset( $element['yith-type'] );
223
  $element['title'] = $element['name'];
224
  $element['name'] = $name . "[{{{data.index}}}][" . $element['id'] . "]";
225
- $element['id'] = $element['id'].'_{{{data.index}}}';
 
226
  ?>
227
- <div class="yith-toggle-content-row <?php echo $element['type'] ?>">
228
  <label for="<?php echo $element['id']; ?>"><?php echo $element['title']; ?></label>
229
  <div class="yith-plugin-fw-option-with-description">
230
  <?php echo yith_plugin_fw_get_field( $element, true ); ?>
25
  extract( $field );
26
 
27
  $show_add_button = isset( $add_button ) && $add_button;
28
+ $add_button_closed = isset( $add_button_closed ) ? $add_button_closed : '';
29
  $values = isset( $value ) ? $value : get_option( $name, array() );
30
  $values = maybe_unserialize( $values );
31
  $sortable = isset( $sortable ) ? $sortable : false;
33
  $onoff_id = isset( $onoff_field['id'] ) ? $onoff_field['id'] : '';
34
 
35
  if ( empty( $values ) && ! $show_add_button && $elements ) {
36
+ $values = array();
37
  //populate a toggle element with the default
38
  foreach ( $elements as $element ) {
39
  $values[0][ $element['id'] ] = $element['default'];
40
  }
41
  }
42
+
43
  ?>
44
  <div class="yith-toggle_wrapper <?php echo $class_wrapper ?>" id="<?php echo $id ?>">
45
  <?php
48
 
49
  ?>
50
  <button class="yith-add-button yith-add-box-button"
51
+ data-box_id="<?php echo $id; ?>_add_box"
52
+ data-closed_label="<?php echo esc_attr( $add_button_closed ) ?>"
53
+ data-opened_label="<?php echo esc_attr( $add_button ) ?>"><?php echo $add_button; ?></button>
54
  <div id="<?php echo $id; ?>_add_box" class="yith-add-box">
55
  </div>
56
  <script type="text/template" id="tmpl-yith-toggle-element-add-box-content-<?php echo $id ?>">
57
  <?php foreach ( $elements as $element ):
58
  $element['title'] = $element['name'];
59
+
60
  $element['type'] = isset( $element['yith-type'] ) ? $element['yith-type'] : $element['type'];
61
  unset( $element['yith-type'] );
62
  $element['value'] = isset($element['default']) ? $element['default'] : '';
63
  $element['id'] = 'new_'.$element['id'];
64
  $element['name'] = $name. "[{{{data.index}}}][" . $element['id'] . "]";
65
+ $class_element = isset( $element['class_row'] ) ? $element['class_row'] : '';
66
  ?>
67
+ <div class="yith-add-box-row <?php echo $class_element ?> <?php echo '{{{data.index}}}'?>">
68
 
69
+ <label for="<?php echo $element['id']; ?>"><?php echo ( $element['title'] ); ?></label>
70
  <div class="yith-plugin-fw-option-with-description">
71
  <?php
72
  echo yith_plugin_fw_get_field( $element, true ); ?>
76
  <?php endforeach; ?>
77
 
78
  <div class="yith-add-box-buttons">
79
+ <button class="button-primary yith-save-button">
80
  <?php echo $save_button['name'] ; ?>
81
  </button>
82
  </div>
107
  <?php endif; ?>
108
  </h3>
109
  <span class="yith-toggle">
110
+ <span class="yith-icon yith-icon-arrow_right ui-sortable-handle"></span>
111
  </span>
112
  <?php
113
  if ( ! empty( $onoff_field ) && is_array( $onoff_field ) ):
125
  </span>
126
 
127
  <?php if ( $sortable ): ?>
128
+ <span class="yith-icon yith-icon-drag"></span>
129
  <?php endif ?>
130
 
131
  <?php endif; ?>
140
  $element['name'] = $name . "[$i][" . $element['id'] . "]";
141
  $element['value'] = isset( $value[ $element['id'] ] ) ? $value[ $element['id'] ] : $element['default'];
142
  $element['id'] = $element['id'].'_'.$i;
143
+ $element['class_row'] = isset( $element['class_row'] ) ? $element['class_row'] : '';
144
  ?>
145
+ <div class="yith-toggle-content-row <?php echo $element['class_row'].' '.$element['type'] ?>">
146
  <label for="<?php echo $element['id']; ?>"><?php echo $element['title']; ?></label>
147
  <div class="yith-plugin-fw-option-with-description">
148
  <?php echo yith_plugin_fw_get_field( $element, true ); ?>
187
  <!-- Schedule Item template -->
188
  <script type="text/template" id="tmpl-yith-toggle-element-item-<?php echo $id ?>">
189
  <div id="<?php echo $id; ?>_{{{data.index}}}"
190
+ class="yith-toggle-row highlight <?php echo ! empty( $subtitle ) ? 'with-subtitle' : ''; ?> <?php echo $class; ?>"
191
  data-item_key="{{{data.index}}}" <?php echo $custom_attributes; ?>
192
  data-item_key="{{{data.index}}}">
193
  <div class="yith-toggle-title">
199
 
200
  </h3>
201
  <span class="yith-toggle">
202
+ <span class="yith-icon yith-icon-arrow_right"></span>
203
  </span>
204
  <?php
205
  if ( ! empty( $onoff_field ) && is_array( $onoff_field ) ):
218
 
219
  <?php endif; ?>
220
  <?php if ( $sortable ): ?>
221
+ <span class="yith-icon yith-icon-drag ui-sortable-handle"></span>
222
  <?php endif ?>
223
  </div>
224
  <div class="yith-toggle-content">
229
  unset( $element['yith-type'] );
230
  $element['title'] = $element['name'];
231
  $element['name'] = $name . "[{{{data.index}}}][" . $element['id'] . "]";
232
+ $element['id'] = $element['id'] . '_{{{data.index}}}';
233
+ $class_element = isset( $element['class_row'] ) ? $element['class_row'] : '';
234
  ?>
235
+ <div class="yith-toggle-content-row <?php echo $class_element.' '.$element['type'] ?>">
236
  <label for="<?php echo $element['id']; ?>"><?php echo $element['title']; ?></label>
237
  <div class="yith-plugin-fw-option-with-description">
238
  <?php echo yith_plugin_fw_get_field( $element, true ); ?>
plugin-fw/templates/metaboxes/tab.php CHANGED
@@ -73,8 +73,8 @@ do_action( 'yit_before_metaboxes_tab' ) ?>
73
  }
74
  $value = yit_get_post_meta( $post->ID, $field_name );
75
  $field[ 'value' ] = $value != '' ? $value : ( isset( $field[ 'std' ] ) ? $field[ 'std' ] : '' );
76
-
77
- $container_classes = "the-metabox " . $field[ 'type' ] . " clearfix ";
78
  $container_classes .= empty( $field[ 'label' ] ) ? 'no-label' : '';
79
 
80
  ?>
73
  }
74
  $value = yit_get_post_meta( $post->ID, $field_name );
75
  $field[ 'value' ] = $value != '' ? $value : ( isset( $field[ 'std' ] ) ? $field[ 'std' ] : '' );
76
+ $field[ 'checkboxgroup' ] = ( $field[ 'type' ] == 'checkbox' && isset( $field[ 'checkboxgroup' ] ) ) ? " " .$field[ 'checkboxgroup' ] : "";
77
+ $container_classes = "the-metabox " . $field[ 'type' ] .$field[ 'checkboxgroup' ] . " clearfix ";
78
  $container_classes .= empty( $field[ 'label' ] ) ? 'no-label' : '';
79
 
80
  ?>
plugin-fw/templates/sysinfo/system-information-panel.php ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * This file belongs to the YIT Framework.
4
+ *
5
+ * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
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
+ $system_info = get_option( 'yith_system_info' );
12
+ $recommended_memory = '128M';
13
+
14
+ ?>
15
+ <div id="yith-sysinfo" class="wrap yith-system-info">
16
+ <h1>
17
+ <span class="yith-logo"><img src="<?php echo yith_plugin_fw_get_default_logo() ?>" /></span> <?php _e( 'YITH System Information', 'yith-plugin-fw' ) ?>
18
+ </h1>
19
+
20
+ <?php if ( ! isset( $_GET['yith-phpinfo'] ) || $_GET['yith-phpinfo'] != 'true' ): ?>
21
+
22
+ <table class="widefat striped">
23
+ <?php foreach ( $system_info['system_info'] as $key => $item ): ?>
24
+ <?php
25
+ $to_be_enabled = strpos( $key, '_enabled' ) !== false;
26
+ $has_errors = isset( $item['errors'] );
27
+ $has_warnings = false;
28
+
29
+ if ( $key == 'wp_memory_limit' && ! $has_errors ) {
30
+ $has_warnings = $item['value'] < $recommended_memory;
31
+ }
32
+
33
+ ?>
34
+ <tr>
35
+ <th class="requirement-name">
36
+ <?php echo $labels[ $key ]; ?>
37
+ </th>
38
+ <td class="requirement-value <?php echo( $has_errors ? 'has-errors' : '' ) ?> <?php echo( $has_warnings ? 'has-warnings' : '' ) ?>">
39
+ <span class="dashicons dashicons-<?php echo( $has_errors || $has_warnings ? 'warning' : 'yes' ) ?>"></span>
40
+
41
+ <?php if ( $to_be_enabled ) {
42
+ echo $item['value'] ? __( 'Enabled', 'yith-plugin-fw' ) : __( 'Disabled', 'yith-plugin-fw' );
43
+ } elseif ( $key == 'wp_memory_limit' ) {
44
+ echo esc_html( size_format( $item['value'] ) );
45
+ } else {
46
+ echo $item['value'];
47
+ } ?>
48
+
49
+ </td>
50
+ <td class="requirement-messages">
51
+ <?php if ( $has_errors ) : ?>
52
+ <ul>
53
+ <?php foreach ( $item['errors'] as $plugin => $requirement ) : ?>
54
+ <li>
55
+ <?php if ( $to_be_enabled ) {
56
+ echo sprintf( __( '%s needs %s enabled', 'yith-plugin-fw' ), '<b>' . $plugin . '</b>', '<b>' . $labels[ $key ] . '</b>' );
57
+ } elseif ( $key == 'wp_memory_limit' ) {
58
+ echo sprintf( __( '%s needs at least %s of available memory', 'yith-plugin-fw' ), '<b>' . $plugin . '</b>', '<span class="error">' . esc_html( size_format( YITH_System_Status()->memory_size_to_num( $requirement ) ) ) . '</span>' );
59
+ echo '<br/>';
60
+ echo sprintf( __( 'For optimal functioning of our plugins, we suggest setting at least %s of available memory', 'yith-plugin-fw' ), '<span class="error">' . esc_html( size_format( YITH_System_Status()->memory_size_to_num( $recommended_memory ) ) ) . '</span>' );
61
+
62
+ } else {
63
+ echo sprintf( __( '%s needs at least %s version', 'yith-plugin-fw' ), '<b>' . $plugin . '</b>', '<span class="error">' . $requirement . '</span>' );
64
+ } ?>
65
+ </li>
66
+ <?php endforeach; ?>
67
+ </ul>
68
+ <?php switch ( $key ) {
69
+
70
+ case 'min_wp_version':
71
+ case 'min_wc_version':
72
+ echo __( 'Update it to the latest version in order to benefit of all new features and security updates.', 'yith-plugin-fw' );
73
+ break;
74
+ case 'min_php_version':
75
+ case 'min_tls_version':
76
+ case 'imagick_version':
77
+ echo __( 'Contact your hosting company in order to update it.', 'yith-plugin-fw' );
78
+ break;
79
+ case 'wp_cron_enabled':
80
+ echo sprintf( __( 'Remove %s from %s file', 'yith-plugin-fw' ), '<code>define( \'DISABLE_WP_CRON\', true );</code>', '<b>wp-config.php</b>' );
81
+ break;
82
+ case 'mbstring_enabled':
83
+ case 'simplexml_enabled':
84
+ case 'gd_enabled':
85
+ case 'iconv_enabled':
86
+ case 'opcache_enabled':
87
+ case 'url_fopen_enabled':
88
+ echo __( 'Contact your hosting company in order to enable it.', 'yith-plugin-fw' );
89
+ break;
90
+ case 'wp_memory_limit':
91
+ echo sprintf( __( 'Read more %s here%s or contact your hosting company in order to increase it.', 'yith-plugin-fw' ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">', '</a>' );
92
+ break;
93
+ default:
94
+ echo apply_filters( 'yith_system_generic_message', '', $item );
95
+
96
+ } ?>
97
+ <?php endif; ?>
98
+
99
+ <?php if ( $has_warnings ) : ?>
100
+ <ul>
101
+ <li>
102
+ <?php echo sprintf( __( 'For optimal functioning of our plugins, we suggest setting at least %s of available memory', 'yith-plugin-fw' ), '<span class="warning">' . esc_html( size_format( YITH_System_Status()->memory_size_to_num( $recommended_memory ) ) ) . '</span>' ); ?>
103
+ </li>
104
+ </ul>
105
+ <?php echo sprintf( __( 'Read more %s here%s or contact your hosting company in order to increase it.', 'yith-plugin-fw' ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">', '</a>' ); ?>
106
+ <?php endif; ?>
107
+ </td>
108
+ </tr>
109
+ <?php endforeach; ?>
110
+ </table>
111
+
112
+ <a href="<?php echo add_query_arg( array( 'yith-phpinfo' => 'true' ) ) ?> "><?php _e( 'Show full PHPInfo', 'yith-plugin-fw' ) ?></a>
113
+
114
+ <?php else : ?>
115
+
116
+ <a href="<?php echo add_query_arg( array( 'yith-phpinfo' => 'false' ) ) ?> "><?php _e( 'Back to System panel', 'yith-plugin-fw' ) ?></a>
117
+
118
+ <?php
119
+
120
+ ob_start();
121
+ phpinfo( 61 );
122
+ $pinfo = ob_get_contents();
123
+ ob_end_clean();
124
+
125
+ $pinfo = preg_replace( '%^.*<div class="center">(.*)</div>.*$%ms', '$1', $pinfo );
126
+ $pinfo = preg_replace( '%(^.*)<a name=\".*\">(.*)</a>(.*$)%m', '$1$2$3', $pinfo );
127
+ $pinfo = str_replace( '<table>', '<table class="widefat striped yith-phpinfo">', $pinfo );
128
+ $pinfo = str_replace( '<td class="e">', '<th class="e">', $pinfo );
129
+ echo $pinfo;
130
+
131
+ ?>
132
+
133
+ <a href="#yith-sysinfo"><?php _e( 'Back to top', 'yith-plugin-fw' ) ?></a>
134
+
135
+ <?php endif; ?>
136
+ </div>
plugin-fw/yit-functions.php CHANGED
@@ -1376,4 +1376,15 @@ if ( ! function_exists( 'yith_plugin_fw_remove_duplicate_classes' ) ) {
1376
 
1377
  return $classes;
1378
  }
 
 
 
 
 
 
 
 
 
 
 
1379
  }
1376
 
1377
  return $classes;
1378
  }
1379
+ }
1380
+
1381
+ if ( ! function_exists( 'yith_plugin_fw_add_requirements' ) ) {
1382
+
1383
+ function yith_plugin_fw_add_requirements( $plugin_name, $requirements ) {
1384
+ if ( ! empty( $requirements ) ) {
1385
+ YITH_System_Status()->add_requirements( $plugin_name, $requirements );
1386
+
1387
+
1388
+ }
1389
+ }
1390
  }
plugin-fw/yit-plugin.php CHANGED
@@ -40,6 +40,7 @@ include_once( 'lib/yith-dashboard.php' );
40
  include_once( 'lib/privacy/yit-privacy.php' );
41
  include_once( 'lib/privacy/yit-privacy-plugin-abstract.php' );
42
  include_once( 'lib/promo/yith-promo.php' );
 
43
 
44
  /* === Gutenberg Support === */
45
  if( class_exists( 'WP_Block_Type_Registry' ) ){
@@ -183,6 +184,7 @@ if( ! function_exists( 'yith_add_action_links' ) ){
183
  * @use plugin_action_links_{$plugin_file_name}
184
  */
185
  function yith_add_action_links( $links, $panel_page = '', $is_premium = false ) {
 
186
  if( ! empty( $panel_page ) ){
187
  $links[] = sprintf( '<a href="%s">%s</a>', admin_url( "admin.php?page={$panel_page}" ), _x( 'Settings', 'Action links', 'yith-plugin-fw' ) );
188
  }
40
  include_once( 'lib/privacy/yit-privacy.php' );
41
  include_once( 'lib/privacy/yit-privacy-plugin-abstract.php' );
42
  include_once( 'lib/promo/yith-promo.php' );
43
+ include_once( 'lib/yith-system-status.php' );
44
 
45
  /* === Gutenberg Support === */
46
  if( class_exists( 'WP_Block_Type_Registry' ) ){
184
  * @use plugin_action_links_{$plugin_file_name}
185
  */
186
  function yith_add_action_links( $links, $panel_page = '', $is_premium = false ) {
187
+ $links = is_array( $links ) ? $links : array();
188
  if( ! empty( $panel_page ) ){
189
  $links[] = sprintf( '<a href="%s">%s</a>', admin_url( "admin.php?page={$panel_page}" ), _x( 'Settings', 'Action links', 'yith-plugin-fw' ) );
190
  }
plugin-options/general-options.php CHANGED
@@ -21,53 +21,48 @@ $options = array(
21
  ),
22
 
23
  array(
24
- 'name' => __( 'Link or Button', 'yith-woocommerce-compare' ),
25
- 'desc_tip' => __( 'Choose if you want to use a link or a button for the comepare actions.', 'yith-woocommerce-compare' ),
26
- 'id' => 'yith_woocompare_is_button',
27
- 'std' => 'button',
28
- 'default' => 'button',
29
- 'type' => 'select',
30
- 'class' => 'wc-enhanced-select',
31
- 'options' => array(
32
  'link' => __( 'Link', 'yith-woocommerce-compare' ),
33
  'button' => __( 'Button', 'yith-woocommerce-compare' )
34
  )
35
  ),
36
 
37
  array(
38
- 'name' => __( 'Link/Button text', 'yith-woocommerce-compare' ),
39
- 'desc' => __( 'Type the text to use for the button or the link of the compare.', 'yith-woocommerce-compare' ),
40
- 'id' => 'yith_woocompare_button_text',
41
- 'std' => __( 'Compare', 'yith-woocommerce-compare' ),
42
- 'default' => __( 'Compare', 'yith-woocommerce-compare' ),
43
- 'type' => 'text'
44
  ),
45
 
46
  array(
47
- 'name' => __( 'Show button in single product page', 'yith-woocommerce-compare' ),
48
- 'desc' => __( 'Say if you want to show the button in the single product page.', 'yith-woocommerce-compare' ),
49
- 'id' => 'yith_woocompare_compare_button_in_product_page',
50
- 'std' => 'yes',
51
- 'default' => 'yes',
52
- 'type' => 'checkbox'
53
  ),
54
 
55
  array(
56
- 'name' => __( 'Show button in products list', 'yith-woocommerce-compare' ),
57
- 'desc' => __( 'Say if you want to show the button in the products list.', 'yith-woocommerce-compare' ),
58
- 'id' => 'yith_woocompare_compare_button_in_products_list',
59
- 'std' => 'no',
60
- 'default' => 'no',
61
- 'type' => 'checkbox'
62
  ),
63
 
64
  array(
65
- 'name' => __( 'Open automatically lightbox', 'yith-woocommerce-compare' ),
66
- 'desc' => __( 'Open link after click into "Compare" button".', 'yith-woocommerce-compare' ),
67
- 'id' => 'yith_woocompare_auto_open',
68
- 'std' => 'yes',
69
- 'default' => 'yes',
70
- 'type' => 'checkbox'
71
  ),
72
 
73
  array(
@@ -83,39 +78,35 @@ $options = array(
83
  ),
84
 
85
  array(
86
- 'name' => __( 'Table title', 'yith-woocommerce-compare' ),
87
- 'desc' => __( 'Type the text to use for the table title.', 'yith-woocommerce-compare' ),
88
- 'id' => 'yith_woocompare_table_text',
89
- 'std' => __( 'Compare products', 'yith-woocommerce-compare' ),
90
- 'default' => __( 'Compare products', 'yith-woocommerce-compare' ),
91
- 'type' => 'text'
92
  ),
93
 
94
  array(
95
- 'name' => __( 'Fields to show', 'yith-woocommerce-compare' ),
96
- 'desc' => __( 'Select the fields to show in the comparison table and order them by drag&drop (are included also the woocommerce attributes)', 'yith-woocommerce-compare' ),
97
- 'id' => 'yith_woocompare_fields_attrs',
98
- 'std' => 'all',
99
- 'default' => 'all',
100
- 'type' => 'woocompare_attributes'
101
  ),
102
 
103
  array(
104
- 'name' => __( 'Repeat "Price" field', 'yith-woocommerce-compare' ),
105
- 'desc' => __( 'Repeat the "Price" field at the end of the table', 'yith-woocommerce-compare' ),
106
- 'id' => 'yith_woocompare_price_end',
107
- 'std' => 'yes',
108
- 'default' => 'yes',
109
- 'type' => 'checkbox'
110
  ),
111
 
112
  array(
113
- 'name' => __( 'Repeat "Add to cart" field', 'yith-woocommerce-compare' ),
114
- 'desc' => __( 'Repeat the "Add to cart" field at the end of the table', 'yith-woocommerce-compare' ),
115
- 'id' => 'yith_woocompare_add_to_cart_end',
116
- 'std' => 'no',
117
- 'default' => 'no',
118
- 'type' => 'checkbox'
119
  ),
120
 
121
  array(
21
  ),
22
 
23
  array(
24
+ 'name' => __( 'Link or Button', 'yith-woocommerce-compare' ),
25
+ 'desc_tip' => __( 'Choose if you want to use a link or a button for the comepare actions.', 'yith-woocommerce-compare' ),
26
+ 'id' => 'yith_woocompare_is_button',
27
+ 'default' => 'button',
28
+ 'type' => 'select',
29
+ 'class' => 'wc-enhanced-select',
30
+ 'options' => array(
 
31
  'link' => __( 'Link', 'yith-woocommerce-compare' ),
32
  'button' => __( 'Button', 'yith-woocommerce-compare' )
33
  )
34
  ),
35
 
36
  array(
37
+ 'name' => __( 'Link/Button text', 'yith-woocommerce-compare' ),
38
+ 'desc' => __( 'Type the text to use for the button or the link of the compare.', 'yith-woocommerce-compare' ),
39
+ 'id' => 'yith_woocompare_button_text',
40
+ 'default' => __( 'Compare', 'yith-woocommerce-compare' ),
41
+ 'type' => 'text'
 
42
  ),
43
 
44
  array(
45
+ 'name' => __( 'Show button in single product page', 'yith-woocommerce-compare' ),
46
+ 'desc' => __( 'Say if you want to show the button in the single product page.', 'yith-woocommerce-compare' ),
47
+ 'id' => 'yith_woocompare_compare_button_in_product_page',
48
+ 'default' => 'yes',
49
+ 'type' => 'checkbox'
 
50
  ),
51
 
52
  array(
53
+ 'name' => __( 'Show button in products list', 'yith-woocommerce-compare' ),
54
+ 'desc' => __( 'Say if you want to show the button in the products list.', 'yith-woocommerce-compare' ),
55
+ 'id' => 'yith_woocompare_compare_button_in_products_list',
56
+ 'default' => 'no',
57
+ 'type' => 'checkbox'
 
58
  ),
59
 
60
  array(
61
+ 'name' => __( 'Open automatically lightbox', 'yith-woocommerce-compare' ),
62
+ 'desc' => __( 'Open link after click into "Compare" button".', 'yith-woocommerce-compare' ),
63
+ 'id' => 'yith_woocompare_auto_open',
64
+ 'default' => 'yes',
65
+ 'type' => 'checkbox'
 
66
  ),
67
 
68
  array(
78
  ),
79
 
80
  array(
81
+ 'name' => __( 'Table title', 'yith-woocommerce-compare' ),
82
+ 'desc' => __( 'Type the text to use for the table title.', 'yith-woocommerce-compare' ),
83
+ 'id' => 'yith_woocompare_table_text',
84
+ 'default' => __( 'Compare products', 'yith-woocommerce-compare' ),
85
+ 'type' => 'text'
 
86
  ),
87
 
88
  array(
89
+ 'name' => __( 'Fields to show', 'yith-woocommerce-compare' ),
90
+ 'desc' => __( 'Select the fields to show in the comparison table and order them by drag&drop (are included also the woocommerce attributes)', 'yith-woocommerce-compare' ),
91
+ 'id' => 'yith_woocompare_fields_attrs',
92
+ 'default' => 'all',
93
+ 'type' => 'woocompare_attributes'
 
94
  ),
95
 
96
  array(
97
+ 'name' => __( 'Repeat "Price" field', 'yith-woocommerce-compare' ),
98
+ 'desc' => __( 'Repeat the "Price" field at the end of the table', 'yith-woocommerce-compare' ),
99
+ 'id' => 'yith_woocompare_price_end',
100
+ 'default' => 'yes',
101
+ 'type' => 'checkbox'
 
102
  ),
103
 
104
  array(
105
+ 'name' => __( 'Repeat "Add to cart" field', 'yith-woocommerce-compare' ),
106
+ 'desc' => __( 'Repeat the "Add to cart" field at the end of the table', 'yith-woocommerce-compare' ),
107
+ 'id' => 'yith_woocompare_add_to_cart_end',
108
+ 'default' => 'no',
109
+ 'type' => 'checkbox'
 
110
  ),
111
 
112
  array(
templates/compare.php CHANGED
@@ -19,7 +19,7 @@ wp_enqueue_script( 'jquery-fixedcolumns', YITH_WOOCOMPARE_ASSETS_URL . '/js/Fixe
19
  $widths = array();
20
  foreach( $products as $product ) $widths[] = '{ "sWidth": "205px", resizeable:true }';
21
 
22
- $table_text = get_option( 'yith_woocompare_table_text' );
23
  do_action ( 'wpml_register_single_string', 'Plugins', 'plugin_yit_compare_table_text', $table_text );
24
  $localized_table_text = apply_filters ( 'wpml_translate_single_string', $table_text, 'Plugins', 'plugin_yit_compare_table_text' );
25
 
19
  $widths = array();
20
  foreach( $products as $product ) $widths[] = '{ "sWidth": "205px", resizeable:true }';
21
 
22
+ $table_text = get_option( 'yith_woocompare_table_text', __( 'Compare products', 'yith-woocommerce-compare' ) );
23
  do_action ( 'wpml_register_single_string', 'Plugins', 'plugin_yit_compare_table_text', $table_text );
24
  $localized_table_text = apply_filters ( 'wpml_translate_single_string', $table_text, 'Plugins', 'plugin_yit_compare_table_text' );
25