YITH WooCommerce Quick View - Version 1.3.12

Version Description

Released Jul 31 - 2019

  • New: Support to WooCommerce 3.7.0 RC1
  • New: Plugin admin panel style
  • Update: Plugin Core
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Quick View
Version 1.3.12
Comparing to
See all releases

Code changes from version 1.3.11 to 1.3.12

Files changed (35) hide show
  1. README.txt +10 -2
  2. includes/class.yith-wcqv-admin.php +4 -3
  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 +782 -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 +382 -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 +135 -0
  33. plugin-fw/yit-functions.php +11 -0
  34. plugin-fw/yit-plugin.php +2 -0
  35. plugin-options/settings-options.php +26 -19
README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: yithemes
3
  Tags: woocommerce, quick view, woocommerce quick view, products quick view
4
  Requires at least: 4.0
5
  Tested up to: 5.2
6
- Stable tag: 1.3.11
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -42,6 +42,12 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
42
 
43
  == Changelog ==
44
 
 
 
 
 
 
 
45
  = 1.3.11 = Released Jun 12 - 2019
46
 
47
  * Update: Plugin Core
@@ -226,6 +232,8 @@ Or, if you have created your own language pack, or have an update for an existin
226
 
227
  == Upgrade notice ==
228
 
229
- = 1.3.11 = Released Jun 12 - 2019
230
 
 
 
231
  * Update: Plugin Core
3
  Tags: woocommerce, quick view, woocommerce quick view, products quick view
4
  Requires at least: 4.0
5
  Tested up to: 5.2
6
+ Stable tag: 1.3.12
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
42
 
43
  == Changelog ==
44
 
45
+ = 1.3.12 = Released Jul 31 - 2019
46
+
47
+ * New: Support to WooCommerce 3.7.0 RC1
48
+ * New: Plugin admin panel style
49
+ * Update: Plugin Core
50
+
51
  = 1.3.11 = Released Jun 12 - 2019
52
 
53
  * Update: Plugin Core
232
 
233
  == Upgrade notice ==
234
 
235
+ = 1.3.12 = Released Jul 31 - 2019
236
 
237
+ * New: Support to WooCommerce 3.7.0 RC1
238
+ * New: Plugin admin panel style
239
  * Update: Plugin Core
includes/class.yith-wcqv-admin.php CHANGED
@@ -143,14 +143,15 @@ if ( ! class_exists( 'YITH_WCQV_Admin' ) ) {
143
  $args = array(
144
  'create_menu_page' => true,
145
  'parent_slug' => '',
146
- 'page_title' => __( 'Quick View', 'yith-woocommerce-quick-view' ),
147
- 'menu_title' => __( 'Quick View', 'yith-woocommerce-quick-view' ),
148
  'capability' => 'manage_options',
149
  'parent' => '',
150
  'parent_page' => 'yith_plugin_panel',
151
  'page' => $this->_panel_page,
152
  'admin-tabs' => $admin_tabs,
153
- 'options-path' => YITH_WCQV_DIR . '/plugin-options'
 
154
  );
155
 
156
 
143
  $args = array(
144
  'create_menu_page' => true,
145
  'parent_slug' => '',
146
+ 'page_title' => _x( 'YITH WooCommerce Quick View', 'options page title', 'yith-woocommerce-quick-view' ),
147
+ 'menu_title' => _x( 'Quick View', 'plugin menu title', 'yith-woocommerce-quick-view' ),
148
  'capability' => 'manage_options',
149
  'parent' => '',
150
  'parent_page' => 'yith_plugin_panel',
151
  'page' => $this->_panel_page,
152
  'admin-tabs' => $admin_tabs,
153
+ 'options-path' => YITH_WCQV_DIR . '/plugin-options',
154
+ 'class' => yith_set_wrapper_class()
155
  );
156
 
157
 
init.php CHANGED
@@ -3,17 +3,17 @@
3
  * Plugin Name: YITH WooCommerce Quick View
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-quick-view
5
  * Description: The <code><strong>YITH WooCommerce Quick View</strong></code> plugin allows your customers to have a quick look about products. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
- * Version: 1.3.11
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-quick-view
10
  * Domain Path: /languages/
11
  * WC requires at least: 2.5.0
12
- * WC tested up to: 3.6
13
  *
14
  * @author YITH
15
  * @package YITH WooCommerce Quick View
16
- * @version 1.3.11
17
  */
18
  /* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
19
 
@@ -61,7 +61,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
61
 
62
 
63
  if ( ! defined( 'YITH_WCQV_VERSION' ) ){
64
- define( 'YITH_WCQV_VERSION', '1.3.11' );
65
  }
66
 
67
  if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
3
  * Plugin Name: YITH WooCommerce Quick View
4
  * Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-quick-view
5
  * Description: The <code><strong>YITH WooCommerce Quick View</strong></code> plugin allows your customers to have a quick look about products. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>.
6
+ * Version: 1.3.12
7
  * Author: YITH
8
  * Author URI: https://yithemes.com/
9
  * Text Domain: yith-woocommerce-quick-view
10
  * Domain Path: /languages/
11
  * WC requires at least: 2.5.0
12
+ * WC tested up to: 3.7
13
  *
14
  * @author YITH
15
  * @package YITH WooCommerce Quick View
16
+ * @version 1.3.12
17
  */
18
  /* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
19
 
61
 
62
 
63
  if ( ! defined( 'YITH_WCQV_VERSION' ) ){
64
+ define( 'YITH_WCQV_VERSION', '1.3.12' );
65
  }
66
 
67
  if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
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,132 @@ 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 +1165,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 +1185,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 +1195,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 +1283,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 +1307,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 +1338,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 +1403,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 +1484,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 +1496,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 +1537,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 +1552,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 +1566,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 +1609,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 +1618,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 +1630,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 +1653,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 +1694,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 +1709,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 +1725,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 +1739,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 +1818,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 +1998,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 +2066,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
+
1153
  .yith-plugin-ui .select2-results .select2-results__group,
1154
  .yith-plugin-ui .select2-results .select2-results__option:last-child,
1155
  .yith-plugin-fw-panel .select2-results .select2-results__group,
1156
+ .yith-plugin-fw-panel .select2-results .select2-results__option:last-child {
1157
  border-bottom-left-radius: 8px;
1158
  border-bottom-right-radius: 8px;
1159
  }
1160
+
1161
  .yith-plugin-ui .select2-container--default .select2-results__option[data-selected=true],
1162
  .yith-plugin-ui .select2-container--default .select2-results__option[aria-selected=true],
1163
  .yith-plugin-fw-panel .select2-container--default .select2-results__option[data-selected=true],
1165
  background-color: #fff;
1166
  outline: none;
1167
  }
1168
+
1169
  .yith-plugin-ui .select2-container--default .select2-results__option--highlighted[aria-selected],
1170
  .yith-plugin-ui .select2-container--default .select2-results__option--highlighted[data-selected],
1171
  .yith-plugin-fw-panel .select2-container--default .select2-results__option--highlighted[aria-selected],
1172
+ .yith-plugin-fw-panel .select2-container--default .select2-results__option--highlighted[data-selected] {
1173
  background-color: #e8eff1;
1174
  color: #4e8ba2;
1175
  outline: none;
1176
  }
1177
 
1178
  .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
1179
+ .yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
1180
  float: right;
1181
  padding-left: 15px;
1182
  text-indent: -9999px;
1185
 
1186
  .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after,
1187
  .woocommerce .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after,
1188
+ .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after {
1189
  float: right;
1190
  color: #fff;
1191
  content: "\e906";
1195
  text-indent: 0;
1196
  }
1197
 
1198
+ .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after {
1199
  color: #000;
1200
  }
1201
 
1202
  .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after
1203
+ .yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after {
1204
  color: #000;
1205
  }
1206
+
1207
  .yith-plugin-ui .select2-container .select2-selection--multiple,
1208
+ .yith-plugin-ui .select2-container--default.select2-container--focus .select2-selection--multiple {
1209
  border: 0;
1210
  }
1211
 
1212
+ .yith-plugin-fw .select2-search input[type=text] {
1213
  border: 0;
1214
  padding: 0;
1215
  height: auto;
1216
  }
1217
+
1218
+ .yith-plugin-ui .yith-plugin-fw-select-field-wrapper span.yith-icon.yith-icon-magnifier,
1219
+ .yith-plugin-fw-panel .yith-plugin-fw-select-field-wrapper span.yith-icon.yith-icon-magnifier {
1220
  position: absolute;
1221
  padding-top: 5px;
1222
  }
1223
 
1224
+ .yith-plugin-ui input[type=text].select2-search__field {
1225
  border: 0;
1226
  padding: 0;
1227
  height: 30px;
1228
  }
1229
+
1230
  .yith-plugin-ui .select2-container--default .select2-search--dropdown .select2-search__field,
1231
+ .yith-plugin-fw-panel .select2-container--default .select2-search--dropdown .select2-search__field {
1232
  border: 1px solid #d9d9d9;
1233
  border-radius: 8px;
1234
  box-shadow: none;
1235
  }
1236
+
1237
  .yith-plugin-ui .select2-dropdown,
1238
+ .yith-plugin-fw-panel .select2-dropdown {
1239
  border: 1px solid #d9d9d9;
1240
  }
1241
+
1242
  /** RADIO BUTTON **/
1243
+ .yith-plugin-ui [type="radio"]:checked,
1244
+ .yith-plugin-ui [type="radio"]:not(:checked) {
1245
  position: absolute;
1246
  left: -9999px;
1247
  }
1248
+
1249
  .yith-plugin-ui [type="radio"]:checked + label,
1250
+ .yith-plugin-ui [type="radio"]:not(:checked) + label {
 
1251
  position: relative;
1252
  padding-left: 35px;
1253
  cursor: pointer;
1254
  line-height: 20px;
1255
  display: inline-block;
1256
  color: #716269;
1257
+ font-size: 14px;
1258
  }
1259
+
1260
  .yith-plugin-ui [type="radio"]:checked + label:before,
1261
+ .yith-plugin-ui [type="radio"]:not(:checked) + label:before {
1262
  content: '';
1263
  position: absolute;
1264
  left: 0;
1265
  top: 0;
1266
+ width: 19px;
1267
+ height: 19px;
1268
  border: 1px solid #d8d8d8;
1269
  border-radius: 100%;
1270
  background: #fff;
1271
  }
1272
+
1273
  .yith-plugin-ui [type="radio"]:checked + label:after,
1274
  .yith-plugin-ui [type="radio"]:not(:checked) + label:after {
1275
  content: '';
1276
+ width: 13px;
1277
+ height: 13px;
1278
  background: #4e8ba2;
1279
  position: absolute;
1280
  top: 4px;
1283
  -webkit-transition: all 0.2s ease;
1284
  transition: all 0.2s ease;
1285
  }
1286
+
1287
  .yith-plugin-ui [type="radio"]:not(:checked) + label:after {
1288
  opacity: 0;
1289
  -webkit-transform: scale(0);
1290
  transform: scale(0);
1291
  }
1292
+
1293
  .yith-plugin-ui [type="radio"]:checked + label:after {
1294
  opacity: 1;
1295
  -webkit-transform: scale(1);
1307
  border-radius: 3px;
1308
  display: inline-block;
1309
  position: relative;
1310
+ margin-right: 10px;
1311
  }
1312
+
1313
+ .yith-plugin-ui input[type="checkbox"]:checked {
1314
  background-color: #4e8ba2;
1315
  border-color: #488197;
1316
  }
1317
+
1318
  .yith-plugin-ui .forminp-checkbox span.description.inline {
1319
  margin-left: 10px;
1320
  }
1321
+
1322
+ .yith-plugin-ui input[type="checkbox"]:checked:before {
1323
  display: none;
1324
  }
1325
 
1338
  display: none;
1339
  }
1340
 
1341
+ .yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
1342
  border: 1px solid #d8d8d8;
1343
  background-color: #fff;
1344
+ width: 60px;
1345
+ height: 24px;
1346
  }
1347
 
1348
+ .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
1349
  background-color: #d8d8d8;
1350
  }
1351
 
1352
  .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
1353
  width: 14px;
1354
  height: 14px;
1355
+ top: 5px;
1356
+ left: 6px;
1357
  background-color: #d8d8d8;
1358
  }
1359
+
1360
+ .yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
1361
  content: 'OFF';
1362
  width: 14px;
1363
  height: 14px;
1364
+ font-size: 13px;
1365
+ font-weight: 600;
1366
+ padding-left: 27px;
1367
  color: #979797;
1368
+ margin-top: 5px;
1369
+ display: inline-block;
1370
  }
1371
+
1372
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span,
1373
+ .yith-plugin-ui .yith-plugin-fw-onoff-container input.onoffchecked + span {
1374
  background-color: #fff;
1375
  border-color: #98aa36;
1376
  }
1377
 
1378
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before,
1379
+ .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
1380
  background-color: #98aa36;
1381
+ left: 41px;
1382
  }
1383
 
1384
  .yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after,
1385
+ .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
1386
  content: 'ON';
1387
  color: #98aa36;
1388
  width: 14px;
1389
  height: 14px;
1390
  display: inline-block;
1391
+ font-size: 13px;
1392
+ font-weight: 600;
1393
  padding: 0 10px;
1394
+ margin-top: 5px;
1395
  }
1396
 
1397
+ .yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
1398
  text-indent: 0;
1399
  }
1400
 
1403
  DATEPICKER
1404
  */
1405
  .yith-plugin-ui div#ui-datepicker-div,
1406
+ .yith-plugin-fw-panel div#ui-datepicker-div {
1407
  border: 0;
1408
+ box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
1409
  }
1410
 
1411
  .yith-plugin-ui .ui-datepicker-header.ui-widget-header,
1412
  .yith-plugin-fw-panel .ui-datepicker-header.ui-widget-header {
1413
+ background: #4e8ba2;
1414
  color: #fff;
1415
  font-size: 11px;
1416
  line-height: 25px;
1417
+ border: 0;
1418
  min-height: 25px;
1419
  }
1420
+
1421
  .yith-plugin-ui .ui-datepicker-title,
1422
+ .yith-plugin-fw-panel .ui-datepicker-title {
1423
  line-height: 25px;
1424
  }
1425
+
1426
  .yith-plugin-ui .ui-datepicker th,
1427
+ .yith-plugin-fw-panel .ui-datepicker th {
1428
  color: #716269;
1429
  }
1430
+
1431
  .yith-plugin-ui .ui-widget-header .ui-icon,
1432
  .yith-plugin-ui .ui-widget-header .ui-state-hover,
1433
+ .yith-plugin-ui .ui-datepicker .ui-datepicker-prev,
1434
+ .yith-plugin-ui .ui-datepicker .ui-datepicker-next,
1435
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-w,
1436
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-e,
1437
  .yith-plugin-fw-panel .ui-widget-header .ui-icon,
1438
  .yith-plugin-fw-panel .ui-widget-header .ui-state-hover,
1439
+ .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-prev,
1440
+ .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-next,
1441
  .yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-w,
1442
+ .yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-e {
1443
  background: none;
1444
  content: "";
1445
  border: 0;
1446
  text-indent: 0;
1447
+ width: 15px;
1448
  height: 20px;
1449
+ display: block;
1450
+ overflow: hidden;
1451
+ }
1452
+
1453
+ .yith-plugin-ui .yith-password-wrapper {
1454
+ display: inline-block;
1455
+ width: auto;
1456
+ position: relative;
1457
+ }
1458
+
1459
+ .yith-plugin-ui .yith-password-wrapper .yith-password-eye-closed:before,
1460
+ .yith-plugin-ui .yith-password-wrapper .yith-password-eye:before {
1461
+ content: '\e911';
1462
+ color: #999;
1463
+ font-family: 'yith-icon';
1464
+ font-size: 20px;
1465
+ font-weight: normal;
1466
+ width: 15px;
1467
+ display: block;
1468
+ position: absolute;
1469
+ right: 13px;
1470
+ top: 0;
1471
+ line-height: 38px;
1472
+ bottom: 0;
1473
+ cursor: pointer;
1474
+ }
1475
+
1476
+ .yith-plugin-ui .yith-password-wrapper .yith-password-eye-closed:before {
1477
+ content: '\e912';
1478
  }
1479
 
1480
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-w:before,
1484
  font-family: 'yith-icon';
1485
  font-size: 12px;
1486
  font-weight: normal;
1487
+ width: 15px;
1488
+ display: block;
1489
  }
1490
+
1491
  .yith-plugin-ui .ui-icon.ui-icon-circle-triangle-e:before,
1492
  .yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-e:before {
1493
  content: "\e902";
1496
  font-family: 'yith-icon';
1497
  font-size: 12px;
1498
  font-weight: normal;
1499
+ width: 15px;
1500
+ display: block;
1501
  }
1502
 
1503
  /* arrow */
1504
+ .yith-plugin-ui .ui-datepicker .ui-datepicker-prev,
1505
+ .yith-plugin-ui .ui-datepicker .ui-datepicker-next,
1506
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev-hover,
1507
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-next-hover,
1508
+ .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-prev,
1509
+ .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-next,
1510
  .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev-hover,
1511
+ .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-next-hover {
1512
  top: 1px;
1513
  cursor: pointer;
1514
  }
1515
+
1516
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev,
1517
  .yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev-hover,
1518
  .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev,
1519
+ .yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev-hover {
1520
  left: 5px;
1521
  }
1522
+
1523
  .yith-plugin-ui .ui-datepicker .ui-datepicker-next,
1524
  .yith-plugin-ui .ui-datepicker-next.ui-datepicker-next-hover,
1525
  .yith-plugin-fw-panel .ui-datepicker .ui-datepicker-next,
1526
+ .yith-plugin-fw-panel .ui-datepicker-next.ui-datepicker-next-hover {
1527
  right: 1px;
1528
  }
1529
 
1530
+ .yith-plugin-ui .ui-datepicker table,
1531
+ .yith-plugin-fw-panel .ui-datepicker table {
1532
  font-size: 10px;
1533
  }
1534
 
1537
  .yith-plugin-ui .ui-widget-header .ui-state-default,
1538
  .yith-plugin-fw-panel .ui-state-default,
1539
  .yith-plugin-fw-panel .ui-widget-content .ui-state-default,
1540
+ .yith-plugin-fw-panel .ui-widget-header .ui-state-default {
1541
+ background: #fff;
1542
  border: 1px solid #d9d9d9;
1543
 
1544
  }
1545
+
1546
  .yith-plugin-ui .ui-state-hover,
1547
  .yith-plugin-ui .ui-widget-content .ui-state-hover,
1548
  .yith-plugin-ui a.ui-state-default:focus,
1552
  .yith-plugin-fw-panel .ui-widget-content .ui-state-hover,
1553
  .yith-plugin-fw-panel a.ui-state-default:focus,
1554
  .yith-plugin-fw-panel .ui-widget-content .ui-state-focus,
1555
+ .yith-plugin-fw-panel .ui-widget-header .ui-state-focus {
1556
+ background: #ebf1f3;
1557
+ border: 1px solid #bfd5dd;
1558
  outline: none;
1559
  box-shadow: none;
1560
  }
1561
+
1562
  .yith-plugin-ui .ui-widget-header .ui-state-hover, .woocommerce .yith-plugin-ui .ui-state-focus,
1563
  .yith-plugin-fw-panel .ui-widget-header .ui-state-hover, .woocommerce .yith-plugin-ui .ui-state-focus {
1564
  background: none;
1566
  }
1567
 
1568
  /** colorpicker **/
1569
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .yith-colorpicker-group:not(:first-child) {
1570
+ margin-top: 20px;
1571
+ }
1572
+
1573
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .iris-picker,
1574
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-holder {
1575
  display: none !important;
1576
  }
1577
+
1578
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-input-wrap {
1579
  display: inline !important;
1580
  }
1581
+
1582
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-active .iris-picker,
1583
+ .yith-plugin-ui .yith-plugin-fw-field-wrapper .wp-picker-active .wp-picker-holder {
1584
  display: block !important;
1585
  }
1586
+
1587
+ .woocommerce .yith-plugin-ui .iris-picker {
1588
+ border: 0;
1589
  margin-top: 20px;
1590
  }
1591
+
1592
  .yith-plugin-ui .yith-plugin-fw input[type=text].wp-color-picker {
1593
+ border: 0;
1594
  padding: 2px 5px;
1595
+ height: 30px;
1596
  }
1597
+
1598
+ .yith-plugin-ui .wp-color-result-text {
1599
  display: none;
1600
  }
1601
 
1602
+ .yith-plugin-ui .wp-picker-container .wp-color-result.button {
1603
  width: 30px;
1604
  height: 30px;
1605
  border: 0;
1609
  display: inline-block;
1610
  vertical-align: middle;
1611
  }
1612
+
1613
+ .yith-plugin-ui .wp-picker-default-custom {
1614
  cursor: pointer;
1615
  width: 25px;
1616
  padding: 0 5px;
1618
  vertical-align: middle;
1619
  position: relative;
1620
  }
1621
+
1622
  .yith-plugin-ui .wp-picker-default-custom input.button {
1623
  opacity: 0;
1624
  margin: 0;
1630
  bottom: 0;
1631
  z-index: 2;
1632
  }
1633
+
1634
+ .yith-plugin-ui .wp-picker-default-custom:before {
1635
  content: "\e910";
1636
  text-indent: 0;
1637
  font-family: 'yith-icon';
1638
  font-size: 20px;
1639
  color: #d8d8d8;
1640
  font-weight: normal;
1641
+ width: 15px;
1642
+ display: block;
1643
  background: none;
1644
  line-height: 20px;
1645
  margin-left: 8px;
1646
  }
1647
+
1648
+ .yith-plugin-ui .wp-picker-container {
1649
  width: auto;
1650
  display: inline-block;
1651
  border: 1px solid #d9d9d9;
1653
  padding: 5px;
1654
  }
1655
 
1656
+ .yith-plugin-ui .iris-picker .iris-square-inner {
1657
  box-shadow: none;
1658
  border: 1px solid #d9d9d9;
1659
  }
1660
 
1661
+ .yith-plugin-ui .yith-single-colorpicker {
1662
  display: inline-block;
1663
  width: 220px;
1664
  }
1665
 
1666
+ .yith-plugin-ui .yith-single-colorpicker > label {
1667
  display: block;
1668
  font-size: 11px;
1669
  font-weight: 600;
1670
+ margin: 0 0 10px 0;
1671
  }
1672
 
1673
  /* RANGE SLIDER */
1674
+ .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle {
1675
+ top: -45px !important;
1676
  }
1677
 
1678
  .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle {
1694
  transition: opacity .3s ease-in-out 0s;
1695
  box-shadow: 0px 1px 7px 0px rgba(1, 1, 1, 0.13);
1696
  }
1697
+
1698
  .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle:before {
1699
  position: absolute;
1700
  bottom: -3px;
1709
  -ms-transform: rotate(-45deg);
1710
  transform: rotate(-45deg);
1711
  }
1712
+
1713
+ .yith-plugin-ui .ui-slider.ui-widget-content .ui-widget-header {
1714
+ background: #4e8ba2;
1715
  }
1716
+
1717
+ .yith-plugin-ui .ui-slider-horizontal .ui-slider-handle:after {
1718
  content: '';
1719
  width: 17px;
1720
  height: 17px;
1725
  border-radius: 50%;
1726
  box-shadow: 0px 1px 6px 0px rgba(1, 1, 1, 0.25);
1727
  }
1728
+
1729
+ .yith-plugin-ui .ui-slider.ui-widget-content {
1730
  height: 5px !important;
1731
  }
1732
 
1733
+ .yith-plugin-ui .ui-slider .minCaption,
1734
+ .yith-plugin-ui .ui-slider .maxCaption {
1735
  font-weight: 700;
1736
  font-size: 12px;
1737
  }
1739
 
1740
  /* ADD_BOX AND TOGGLE */
1741
  .yith-plugin-ui .yith-add-box,
1742
+ .yith-plugin-ui .yith-toggle-row {
1743
+ width: 70%;
1744
  border: 1px solid #d9d9d9;
1745
+ box-shadow: none;
1746
  border-radius: 4px;
1747
  margin: 20px 0;
1748
  padding: 10px;
1749
  box-sizing: border-box;
1750
  background: white;
1751
  }
1752
+
1753
+ .yith-plugin-ui .yith-toggle-row {
1754
+ cursor: pointer;
1755
+ transition: all ease 0.5s;
1756
+ }
1757
+
1758
+ .yith-plugin-ui .yith-toggle-row.highlight {
1759
+ transition: all ease 0.5s;
1760
+ /*box-shadow: 0 0 7px rgb(81, 117, 129);*/
1761
+ box-shadow: 0 0 7px rgb(30, 140, 190);
1762
+
1763
+ display: block;
1764
+ }
1765
+
1766
+ .yith-plugin-ui .yith-add-box {
1767
+ padding: 25px;
1768
  display: none;
1769
  }
1770
+
1771
+ .yith-plugin-ui .yith-toggle-title {
1772
  position: relative;
1773
  }
1774
+
1775
  .yith-plugin-ui #plugin-fw-wc .yith-toggle-title h3,
1776
+ .yith-plugin-ui.metaboxes-tab.yith-plugin-ui h3,
1777
+ .yith-plugin-ui .yith-toggle-title h3 {
1778
  padding: 0px 20px 0px 25px;
1779
+ margin: 3px 0;
1780
+
1781
  display: inline-block;
1782
  position: relative;
1783
  min-width: 173px;
1784
  box-sizing: border-box;
1785
  font-weight: 600;
1786
  font-size: 15px;
1787
+ color: #23282d;
1788
+ text-transform: inherit;
1789
  }
1790
 
1791
+ .yith-plugin-ui .yith-toggle-title .subtitle {
1792
  padding-left: 0;
1793
+ padding-top: 8px;
1794
  font-size: 12px;
1795
  }
1796
 
1797
+ .yith-plugin-ui .yith-toggle {
1798
  position: absolute;
1799
  width: 30px;
 
 
1800
  cursor: pointer;
1801
+ left: 0;
1802
  top: 0;
1803
  bottom: 0;
1804
+ margin: auto;
1805
+ display: flex;
1806
+ align-items: center;
1807
  }
1808
+
1809
+ .yith-plugin-ui .yith-toggle > span:before {
1810
  color: #405e69;
1811
  }
1812
 
1813
+ .yith-plugin-ui .yith-toggle > span {
1814
  position: absolute;
1815
  right: 50%;
1816
  transition: transform .3s;
1818
  }
1819
 
1820
 
1821
+ .yith-plugin-ui .yith-toggle-row-opened .yith-toggle span {
1822
+ transform: rotateZ(90deg);
1823
  }
1824
 
1825
+ .yith-plugin-ui .yith-toggle-content {
1826
  display: none;
1827
  position: relative;
1828
  padding: 30px 25px;
1829
  }
1830
+
1831
+ .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content {
1832
+ /* display: block;*/
1833
  }
1834
+
1835
  .yith-plugin-ui .yith-add-box-row,
1836
+ .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row {
1837
  display: table;
1838
+ margin-bottom: 40px;
1839
  }
1840
+
1841
  .yith-plugin-ui .yith-add-box-row label,
1842
+ .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row label {
1843
  display: table-cell;
1844
+ width: 200px;
1845
+ padding-right: 21px;
1846
  color: #33373b;
1847
+ font-size: 14px;
1848
  vertical-align: top;
1849
  font-weight: 600;
1850
  }
1851
+ .yith-plugin-ui .yith-plugin-fw-radio__row label{
1852
+ font-weight: 400!important;
1853
+ }
1854
  .yith-plugin-ui .yith-add-box-row .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper),
1855
+ .yith-plugin-ui .yith-toggle-row-opened .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper) {
1856
+ margin-top: 10px;
1857
  width: auto;
1858
  float: none;
1859
  vertical-align: middle;
1860
  position: relative;
1861
  }
1862
+
1863
  .yith-plugin-ui .yith-add-box-row span.yith-icon,
1864
+ .yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row span.yith-icon {
1865
  position: absolute;
1866
  right: 15px;
1867
  top: 0;
1868
  bottom: 0;
1869
  }
1870
+
1871
  .yith-plugin-ui .yith-add-box-buttons,
1872
+ .yith-plugin-ui .yith-toggle-content-buttons {
1873
  text-align: right;
1874
  }
1875
+
1876
  .yith-plugin-ui .yith-toggle-onoff {
1877
  position: absolute;
1878
  cursor: pointer;
1879
  right: 0;
1880
  }
1881
+
1882
+ .yith-plugin-ui .yith-toggle_wrapper.ui-sortable .yith-toggle-onoff {
1883
  right: 30px;
1884
  }
1885
+
1886
+ .yith-plugin-ui .yith-toggle-row .yith-icon-drag {
1887
  position: absolute;
1888
  right: 0;
1889
  top: 25%;
1890
  bottom: 0;
1891
  line-height: 1;
1892
  }
1893
+
1894
+ .yith-plugin-ui .yith-toggle-row.with-subtitle .yith-toggle-onoff {
 
 
1895
  top: 25%;
1896
  }
1897
 
1898
  /** SPINNER **/
1899
+ .yith-plugin-ui .spinner {
1900
  vertical-align: -5px;
1901
  float: none;
1902
  }
1903
 
1904
+ .yith-plugin-ui .spinner.show {
1905
  visibility: visible;
1906
  }
1907
 
1908
  /* LIST TABLE */
1909
+ .yith-plugin-ui .form-table .list-table td {
1910
  padding: 15px 0px;
1911
  }
1912
+
1913
+ .woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table .bulkactions select {
1914
  border: 1px solid #d8d8d8;
1915
  max-width: 200px;
1916
  max-height: 30px;
1917
  padding: 0 10px;
1918
+ margin-right: 5px;
1919
  }
1920
+
1921
+ .yith-plugin-ui .form-table .list-table th {
1922
  width: initial;
1923
  }
1924
 
1925
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table tbody td {
 
 
 
1926
  padding-left: 20px;
1927
  }
1928
+
1929
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table th,
1930
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table td {
1931
+ padding: 15px 20px 15px 20px;
1932
+ }
1933
+
1934
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table thead td,
1935
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table thead th,
1936
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table tfoot td,
1937
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table tfoot th {
1938
+ padding: 3px 20px;
1939
+ }
1940
+
1941
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table thead a,
1942
+ .yith-plugin-ui #plugin-fw-wc table.wp-list-table tfoot a {
1943
+ padding-left: 0;
1944
+ }
1945
+
1946
+ .yith-plugin-ui .yith-plugin-fw-list-table h2 {
1947
  border: 0;
1948
  padding: 35px 0 15px;
1949
  display: inline-block;
1950
  margin-right: 10px;
1951
  }
1952
+
1953
+ .yith-plugin-ui .form-table .yith-plugin-fw-list-table table th {
1954
  vertical-align: middle;
1955
  }
1956
+
1957
+ .yith-plugin-ui .yith-plugin-fw-list-table-container {
1958
  padding: 0 20px;
1959
  }
1960
+
1961
+ .yith-plugin-ui #doaction, .yith-plugin-ui #doaction2,
1962
+ .yith-plugin-ui #post-query-submit,
1963
+ .yith-plugin-ui #search-submit,
1964
+ .yith-plugin-ui .button.filter-button {
1965
+ margin-left: 0;
1966
  height: 33px;
1967
+ padding: 0 10px;
1968
+ line-height: 33px;
1969
  }
1970
+
1971
+ .yith-plugin-ui .bulkactions {
1972
  margin: 10px 0;
1973
  }
1974
+
1975
+ .yith-plugin-ui .form-table td p.yith-section-description {
1976
+ color: #716269;
1977
  margin-bottom: 20px;
1978
  }
1979
 
1980
  /** Time picker width*/
1981
  .yith-plugin-ui input.ui-timepicker-input {
1982
+ width: 100px !important;
1983
  }
1984
+
1985
  /** date format **/
1986
  .yith-plugin-ui .yith-plugin-fw-date-format code {
1987
  margin-left: 30px;
1998
  float: left;
1999
  }
2000
 
2001
+ .yith-plugin-ui td.forminp-checkbox.two-cols fieldset:nth-child(2n+1) {
2002
+ clear: both;
2003
+ }
2004
+
2005
  .yith-plugin-ui td.forminp-checkbox.three-cols fieldset {
2006
+ width: calc(33% - 10px);
2007
+ padding-right: 10px;
2008
  float: left;
2009
  }
2010
 
2011
+ .yith-plugin-ui td.forminp-checkbox.three-cols fieldset:nth-child(3n+1) {
2012
+ clear: both;
2013
+ }
2014
 
2015
  .yith-plugin-fw-checkbox-field-wrapper {
2016
  display: inline-block !important;
 
 
2017
  }
2018
+
2019
  .yith-plugin-fw-checkbox-field-wrapper + span.description {
2020
  display: inline-block;
2021
  vertical-align: middle;
2022
  margin: 0;
2023
  }
2024
+
2025
  .yith-plugin-ui span.description {
2026
  margin-top: 10px;
2027
+ line-height: 20px;
2028
  }
2029
+
2030
  .yith-plugin-fw-option-with-description {
2031
  display: table-cell;
2032
  width: auto;
2033
  vertical-align: top;
2034
  }
2035
+
2036
  /** YITH PANEL **/
2037
+ .yith-plugin-ui #yith-plugin-fw-panel {
2038
  margin-top: -10px;
2039
  }
2040
+
2041
+ .yith-plugin-ui #plugin-fw-wc, .yith-plugin-ui #yith-plugin-fw-panel {
2042
  padding-top: 0;
2043
  }
2044
+
2045
+ .yith-plugin-ui .plugin-option tr {
2046
  border: 0;
2047
  }
2048
 
2049
+ @media screen and (max-width: 1440px) {
2050
  .yith-plugin-ui .yith-add-box,
2051
+ .yith-plugin-ui .yith-toggle-row {
2052
  width: 80%;
2053
  }
2054
  }
2055
+
2056
+ @media screen and (max-width: 1024px) {
2057
  .yith-plugin-ui .yith-add-box,
2058
+ .yith-plugin-ui .yith-toggle-row {
2059
  width: 90%;
2060
  }
2061
 
2066
  }
2067
 
2068
  .yith-plugin-ui td.forminp-checkbox.three-cols fieldset {
2069
+ width: calc(50% - 10px);
2070
+ padding-right: 10px;
2071
  float: left;
2072
  }
2073
+
2074
+ .yith-plugin-ui td.forminp-checkbox.two-cols fieldset:nth-child(2n+1) {
2075
+ clear: both;
2076
+ }
2077
+
2078
+ .yith-plugin-ui td.forminp-checkbox.three-cols fieldset:nth-child(3n+1) {
2079
+ clear: initial;
2080
+ }
2081
  }
2082
+
2083
+ @media screen and (max-width: 782px) {
2084
+ .yith-plugin-fw-banner.yith-plugin-fw-banner-free {
2085
  height: auto;
2086
  background-color: #a9c7d3;
2087
  }
2088
+
2089
+ .yith-plugin-fw-banner.yith-plugin-fw-banner-free ul {
2090
  width: 90%;
2091
  text-align: center;
2092
  }
2093
+
2094
+ .yith-plugin-fw-banner.yith-plugin-fw-banner-free li img {
2095
  width: 90%;
2096
  margin: 0 auto;
2097
  }
2098
+
2099
+ .yith-plugin-fw-banner h1 {
2100
  line-height: 1.2em;
2101
  }
2102
 
2103
  .yith-plugin-ui .yith-add-box,
2104
+ .yith-plugin-ui .yith-toggle-row {
2105
  width: 100%;
2106
  }
2107
 
2108
  .yith-plugin-ui td.forminp-checkbox.two-cols fieldset,
2109
+ .yith-plugin-ui td.forminp-checkbox.three-cols fieldset {
2110
  width: 100%;
2111
+ clear: initial;
2112
  }
2113
 
2114
  }
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.7
5
  * Author: YITHEMES
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
8
  *
9
  * @author Your Inspiration Themes
10
+ * @version 3.3.6
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,382 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 'opcache_enabled' => __( 'OPCache Save Comments', 'yith-plugin-fw' ),
107
+ 'url_fopen_enabled' => __( 'URL FOpen', 'yith-plugin-fw' ),
108
+ );
109
+
110
+ add_action( 'admin_menu', array( $this, 'add_submenu_page' ), 99 );
111
+ add_action( 'admin_init', array( $this, 'check_system_status' ) );
112
+ add_action( 'admin_notices', array( $this, 'activate_system_notice' ), 15 );
113
+ add_action( 'admin_enqueue_scripts', array( $this, 'dismissable_notice' ), 20 );
114
+
115
+
116
+ }
117
+
118
+ /**
119
+ * Add "System Information" submenu page under YITH Plugins
120
+ *
121
+ * @since 1.0.0
122
+ * @return void
123
+ * @author Alberto Ruggiero
124
+ */
125
+ public function add_submenu_page() {
126
+ add_submenu_page(
127
+ $this->_settings['parent_page'],
128
+ $this->_settings['page_title'],
129
+ $this->_settings['menu_title'],
130
+ $this->_settings['capability'],
131
+ $this->_settings['page'],
132
+ array( $this, 'show_information_panel' )
133
+ );
134
+ }
135
+
136
+ /**
137
+ * Add "System Information" page template under YITH Plugins
138
+ *
139
+ * @since 1.0.0
140
+ * @return void
141
+ * @author Alberto Ruggiero
142
+ */
143
+ public function show_information_panel() {
144
+
145
+ $path = defined( 'YIT_CORE_PLUGIN_PATH' ) ? YIT_CORE_PLUGIN_PATH : get_template_directory() . '/core/plugin-fw/';
146
+ $labels = $this->_requirement_labels;
147
+
148
+ require_once( $path . '/templates/sysinfo/system-information-panel.php' );
149
+
150
+ }
151
+
152
+ /**
153
+ * Perform system status check
154
+ *
155
+ * @since 1.0.0
156
+ * @return void
157
+ * @author Alberto Ruggiero
158
+ */
159
+ public function check_system_status() {
160
+
161
+ if ( '' == get_option( 'yith_system_info' ) || ( isset( $_GET['page'] ) && $_GET['page'] == $this->_page ) ) {
162
+
163
+ $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' ) );
164
+ $this->add_requirements( __( 'WooCommerce', 'yith-plugin-fw' ), array( 'wp_memory_limit' => '64M' ) );
165
+
166
+ $system_info = $this->get_system_info();
167
+ $check_results = array();
168
+ $errors = false;
169
+
170
+ foreach ( $system_info as $key => $value ) {
171
+ $check_results[ $key ] = array( 'value' => $value );
172
+
173
+ if ( isset( $this->_plugins_requirements[ $key ] ) ) {
174
+
175
+ foreach ( $this->_plugins_requirements[ $key ] as $plugin_name => $required_value ) {
176
+
177
+ switch ( $key ) {
178
+ case 'wp_cron_enabled' :
179
+ case 'mbstring_enabled' :
180
+ case 'simplexml_enabled':
181
+ case 'gd_enabled':
182
+ case 'url_fopen_enabled':
183
+ case 'opcache_enabled' :
184
+
185
+ if ( ! $value ) {
186
+ $check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
187
+ $errors = true;
188
+ }
189
+ break;
190
+
191
+ case 'wp_memory_limit' :
192
+ $required_memory = $this->memory_size_to_num( $required_value );
193
+
194
+ if ( $required_memory > $value ) {
195
+ $check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
196
+ $errors = true;
197
+ }
198
+ break;
199
+
200
+ default:
201
+ if ( ! version_compare( $value, $required_value, '>=' ) ) {
202
+ $check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
203
+ $errors = true;
204
+ }
205
+
206
+ }
207
+
208
+ }
209
+
210
+ }
211
+
212
+ }
213
+
214
+ update_option( 'yith_system_info', array( 'system_info' => $check_results, 'errors' => $errors ) );
215
+
216
+ }
217
+
218
+ }
219
+
220
+ /**
221
+ * Handle plugin requirements
222
+ *
223
+ * @since 1.0.0
224
+ *
225
+ * @param $plugin_name string
226
+ * @param $requirements array
227
+ *
228
+ * @return void
229
+ * @author Alberto Ruggiero
230
+ */
231
+ public function add_requirements( $plugin_name, $requirements ) {
232
+
233
+ $allowed_requirements = array_keys( $this->_requirement_labels );
234
+
235
+ foreach ( $requirements as $requirement => $value ) {
236
+
237
+ if ( in_array( $requirement, $allowed_requirements ) ) {
238
+ $this->_plugins_requirements[ $requirement ][ $plugin_name ] = $value;
239
+ }
240
+ }
241
+
242
+ }
243
+
244
+ /**
245
+ * Manages notice dismissing
246
+ *
247
+ * @since 1.0.0
248
+ * @return void
249
+ * @author Alberto Ruggiero
250
+ */
251
+ public function dismissable_notice() {
252
+ $script_path = defined( 'YIT_CORE_PLUGIN_URL' ) ? YIT_CORE_PLUGIN_URL : get_template_directory_uri() . '/core/plugin-fw';
253
+ $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
254
+ wp_register_script( 'yith-system-info', $script_path . '/assets/js/yith-system-info' . $suffix . '.js', array( 'jquery' ), '1.0.0', true );
255
+ }
256
+
257
+ /**
258
+ * Show system notice
259
+ *
260
+ * @since 1.0.0
261
+ * @return void
262
+ * @author Alberto Ruggiero
263
+ */
264
+ public function activate_system_notice() {
265
+
266
+ $system_info = get_option( 'yith_system_info', '' );
267
+
268
+ 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 ) ) {
269
+ return;
270
+ }
271
+
272
+ $show_notice = true;
273
+
274
+ if ( true === $show_notice ) :
275
+ wp_enqueue_script( 'yith-system-info' );
276
+ ?>
277
+ <div id="yith-system-alert" class="notice notice-error is-dismissible" style="position: relative;">
278
+ <p>
279
+ <span class="yith-logo"><img src="<?php echo yith_plugin_fw_get_default_logo() ?>" /></span>
280
+ <b><?php echo __( 'Warning!', 'yith-plugin-fw' ) ?></b><br />
281
+ <?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>' ) ?>
282
+ </p>
283
+ <span class="notice-dismiss"></span>
284
+
285
+ </div>
286
+ <?php endif;
287
+ }
288
+
289
+ /**
290
+ * Get system information
291
+ *
292
+ * @since 1.0.0
293
+ * @return array
294
+ * @author Alberto Ruggiero
295
+ */
296
+ public function get_system_info() {
297
+
298
+ //Get TLS version
299
+ $ch = curl_init( 'https://www.howsmyssl.com/a/check' );
300
+ curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
301
+ $data = curl_exec( $ch );
302
+ curl_close( $ch );
303
+ $json = json_decode( $data );
304
+ $tls = str_replace( 'TLS ', '', $json->tls_version );
305
+
306
+ //Get PHP version
307
+ preg_match( "#^\d+(\.\d+)*#", PHP_VERSION, $match );
308
+ $php_version = $match[0];
309
+
310
+ // WP memory limit.
311
+ $wp_memory_limit = $this->memory_size_to_num( WP_MEMORY_LIMIT );
312
+ if ( function_exists( 'memory_get_usage' ) ) {
313
+ $wp_memory_limit = max( $wp_memory_limit, $this->memory_size_to_num( @ini_get( 'memory_limit' ) ) );
314
+ }
315
+
316
+ $imagick_version = '0.0.0';
317
+ if ( class_exists( 'Imagick' ) ) {
318
+ preg_match( "/([0-9]+\.[0-9]+\.[0-9]+)/", Imagick::getVersion()['versionString'], $imatch );
319
+ $imagick_version = $imatch[0];
320
+ }
321
+
322
+ return apply_filters( 'yith_system_additional_check', array(
323
+ 'min_wp_version' => get_bloginfo( 'version' ),
324
+ 'min_wc_version' => function_exists( 'WC' ) ? WC()->version : __( 'Not installed', 'yith-plugin-fw' ),
325
+ 'wp_memory_limit' => $wp_memory_limit,
326
+ 'min_php_version' => $php_version,
327
+ 'min_tls_version' => $tls,
328
+ 'imagick_version' => $imagick_version,
329
+ 'wp_cron_enabled' => ! ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ),
330
+ 'mbstring_enabled' => extension_loaded( 'mbstring' ),
331
+ 'simplexml_enabled' => extension_loaded( 'simplexml' ),
332
+ 'gd_enabled' => extension_loaded( 'gd' ) && function_exists( 'gd_info' ),
333
+ 'opcache_enabled' => ini_get( 'opcache.save_comments' ),
334
+ 'url_fopen_enabled' => ini_get( 'allow_url_fopen' ),
335
+ ) );
336
+
337
+ }
338
+
339
+ /**
340
+ * Convert site into number
341
+ *
342
+ * @since 1.0.0
343
+ *
344
+ * @param $memory_size string
345
+ *
346
+ * @return integer
347
+ * @author Alberto Ruggiero
348
+ */
349
+ public function memory_size_to_num( $memory_size ) {
350
+ $unit = strtoupper( substr( $memory_size, - 1 ) );
351
+ $size = substr( $memory_size, 0, - 1 );
352
+ $multiplier = array(
353
+ 'P' => 5,
354
+ 'T' => 4,
355
+ 'G' => 3,
356
+ 'M' => 2,
357
+ 'K' => 1,
358
+ );
359
+ for ( $i = 1; $i <= $multiplier[ $unit ]; $i ++ ) {
360
+ $size *= 1024;
361
+ }
362
+
363
+ return $size;
364
+ }
365
+
366
+ }
367
+ }
368
+
369
+ /**
370
+ * Main instance of plugin
371
+ *
372
+ * @return YITH_System_Status object
373
+ * @since 1.0
374
+ * @author Alberto Ruggiero
375
+ */
376
+ if ( ! function_exists( 'YITH_System_Status' ) ) {
377
+ function YITH_System_Status() {
378
+ return YITH_System_Status::instance();
379
+ }
380
+ }
381
+
382
+ 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'] ) ? $element['class'] : '';
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'] = isset( $element['class'] ) ? $element['class'] : '';
144
  ?>
145
+ <div class="yith-toggle-content-row <?php echo $element['class'].' '.$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'] ) ? $element['class'] : '';
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,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 'opcache_enabled':
86
+ case 'url_fopen_enabled':
87
+ echo __( 'Contact your hosting company in order to enable it.', 'yith-plugin-fw' );
88
+ break;
89
+ case 'wp_memory_limit':
90
+ 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>' );
91
+ break;
92
+ default:
93
+ echo apply_filters( 'yith_system_generic_message', '', $item );
94
+
95
+ } ?>
96
+ <?php endif; ?>
97
+
98
+ <?php if ( $has_warnings ) : ?>
99
+ <ul>
100
+ <li>
101
+ <?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>' ); ?>
102
+ </li>
103
+ </ul>
104
+ <?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>' ); ?>
105
+ <?php endif; ?>
106
+ </td>
107
+ </tr>
108
+ <?php endforeach; ?>
109
+ </table>
110
+
111
+ <a href="<?php echo add_query_arg( array( 'yith-phpinfo' => 'true' ) ) ?> "><?php _e( 'Show full PHPInfo', 'yith-plugin-fw' ) ?></a>
112
+
113
+ <?php else : ?>
114
+
115
+ <a href="<?php echo add_query_arg( array( 'yith-phpinfo' => 'false' ) ) ?> "><?php _e( 'Back to System panel', 'yith-plugin-fw' ) ?></a>
116
+
117
+ <?php
118
+
119
+ ob_start();
120
+ phpinfo( 61 );
121
+ $pinfo = ob_get_contents();
122
+ ob_end_clean();
123
+
124
+ $pinfo = preg_replace( '%^.*<div class="center">(.*)</div>.*$%ms', '$1', $pinfo );
125
+ $pinfo = preg_replace( '%(^.*)<a name=\".*\">(.*)</a>(.*$)%m', '$1$2$3', $pinfo );
126
+ $pinfo = str_replace( '<table>', '<table class="widefat striped yith-phpinfo">', $pinfo );
127
+ $pinfo = str_replace( '<td class="e">', '<th class="e">', $pinfo );
128
+ echo $pinfo;
129
+
130
+ ?>
131
+
132
+ <a href="#yith-sysinfo"><?php _e( 'Back to top', 'yith-plugin-fw' ) ?></a>
133
+
134
+ <?php endif; ?>
135
+ </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/settings-options.php CHANGED
@@ -14,7 +14,8 @@ $settings = array(
14
  'enable-quick-view' => array(
15
  'id' => 'yith-wcqv-enable',
16
  'name' => __( 'Enable Quick View', 'yith-woocommerce-quick-view' ),
17
- 'type' => 'checkbox',
 
18
  'default' => 'yes'
19
  ),
20
 
@@ -22,7 +23,8 @@ $settings = array(
22
  'id' => 'yith-wcqv-enable-mobile',
23
  'name' => __( 'Enable Quick View on mobile', 'yith-woocommerce-quick-view' ),
24
  'desc' => __( 'Enable quick view features on mobile device too', 'yith-woocommerce-quick-view' ),
25
- 'type' => 'checkbox',
 
26
  'default' => 'yes'
27
  ),
28
 
@@ -30,7 +32,8 @@ $settings = array(
30
  'id' => 'yith-wcqv-button-label',
31
  'name' => __( 'Quick View Button Label', 'yith-woocommerce-quick-view' ),
32
  'desc' => __( 'Label for the quick view button in the WooCommerce loop.', 'yith-woocommerce-quick-view' ),
33
- 'type' => 'text',
 
34
  'default' => __( 'Quick View', 'yith-woocommerce-quick-view' ),
35
  ),
36
 
@@ -38,7 +41,8 @@ $settings = array(
38
  'id' => 'yith-wcqv-enable-lightbox',
39
  'name' => __( 'Enable Lightbox', 'yith-woocommerce-quick-view' ),
40
  'desc' => __( 'Enable lightbox. Product images will open in a lightbox.', 'yith-woocommerce-quick-view' ),
41
- 'type' => 'checkbox',
 
42
  'default' => 'yes'
43
  ),
44
 
@@ -55,27 +59,30 @@ $settings = array(
55
  ),
56
 
57
  'background-color-modal' => array(
58
- 'name' => __( 'Modal Window Background Color', 'yith-woocommerce-quick-view' ),
59
- 'type' => 'color',
60
- 'desc' => '',
61
- 'id' => 'yith-wcqv-background-modal',
62
- 'default' => '#ffffff'
 
63
  ),
64
 
65
  'close-button-color' => array(
66
- 'name' => __( 'Closing Button Color', 'yith-woocommerce-quick-view' ),
67
- 'type' => 'color',
68
- 'desc' => '',
69
- 'id' => 'yith-wcqv-close-color',
70
- 'default' => '#cdcdcd'
 
71
  ),
72
 
73
  'close-button-color-hover' => array(
74
- 'name' => __( 'Closing Button Hover Color', 'yith-woocommerce-quick-view' ),
75
- 'type' => 'color',
76
- 'desc' => '',
77
- 'id' => 'yith-wcqv-close-color-hover',
78
- 'default' => '#ff0000'
 
79
  ),
80
 
81
  'style-options-end' => array(
14
  'enable-quick-view' => array(
15
  'id' => 'yith-wcqv-enable',
16
  'name' => __( 'Enable Quick View', 'yith-woocommerce-quick-view' ),
17
+ 'type' => 'yith-field',
18
+ 'yith-type' => 'onoff',
19
  'default' => 'yes'
20
  ),
21
 
23
  'id' => 'yith-wcqv-enable-mobile',
24
  'name' => __( 'Enable Quick View on mobile', 'yith-woocommerce-quick-view' ),
25
  'desc' => __( 'Enable quick view features on mobile device too', 'yith-woocommerce-quick-view' ),
26
+ 'type' => 'yith-field',
27
+ 'yith-type' => 'onoff',
28
  'default' => 'yes'
29
  ),
30
 
32
  'id' => 'yith-wcqv-button-label',
33
  'name' => __( 'Quick View Button Label', 'yith-woocommerce-quick-view' ),
34
  'desc' => __( 'Label for the quick view button in the WooCommerce loop.', 'yith-woocommerce-quick-view' ),
35
+ 'type' => 'yith-field',
36
+ 'yith-type' => 'text',
37
  'default' => __( 'Quick View', 'yith-woocommerce-quick-view' ),
38
  ),
39
 
41
  'id' => 'yith-wcqv-enable-lightbox',
42
  'name' => __( 'Enable Lightbox', 'yith-woocommerce-quick-view' ),
43
  'desc' => __( 'Enable lightbox. Product images will open in a lightbox.', 'yith-woocommerce-quick-view' ),
44
+ 'type' => 'yith-field',
45
+ 'yith-type' => 'onoff',
46
  'default' => 'yes'
47
  ),
48
 
59
  ),
60
 
61
  'background-color-modal' => array(
62
+ 'name' => __( 'Modal Window Background Color', 'yith-woocommerce-quick-view' ),
63
+ 'type' => 'yith-field',
64
+ 'yith-type' => 'colorpicker',
65
+ 'desc' => '',
66
+ 'id' => 'yith-wcqv-background-modal',
67
+ 'default' => '#ffffff'
68
  ),
69
 
70
  'close-button-color' => array(
71
+ 'name' => __( 'Closing Button Color', 'yith-woocommerce-quick-view' ),
72
+ 'type' => 'yith-field',
73
+ 'yith-type' => 'colorpicker',
74
+ 'desc' => '',
75
+ 'id' => 'yith-wcqv-close-color',
76
+ 'default' => '#cdcdcd'
77
  ),
78
 
79
  'close-button-color-hover' => array(
80
+ 'name' => __( 'Closing Button Hover Color', 'yith-woocommerce-quick-view' ),
81
+ 'type' => 'yith-field',
82
+ 'yith-type' => 'colorpicker',
83
+ 'desc' => '',
84
+ 'id' => 'yith-wcqv-close-color-hover',
85
+ 'default' => '#ff0000'
86
  ),
87
 
88
  'style-options-end' => array(