Version Description
Last Stable Tag 1.6.10
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Catalog Mode |
Version | 1.6.10 |
Comparing to | |
See all releases |
Code changes from version 1.6.9 to 1.6.10
- class.yith-woocommerce-catalog-mode.php +25 -9
- init.php +4 -4
- plugin-fw/assets/css/admin.css +112 -33
- plugin-fw/assets/css/metaboxes.css +350 -299
- plugin-fw/assets/css/yith-fields.css +813 -486
- plugin-fw/assets/fonts/yith-icon.eot +0 -0
- plugin-fw/assets/fonts/yith-icon.svg +9 -0
- plugin-fw/assets/fonts/yith-icon.ttf +0 -0
- plugin-fw/assets/fonts/yith-icon.woff +0 -0
- plugin-fw/assets/js/yit-plugin-panel.js +2 -3
- plugin-fw/assets/js/yit-plugin-panel.min.js +2 -2
- plugin-fw/assets/js/yith-enhanced-select.js +62 -0
- plugin-fw/assets/js/yith-enhanced-select.min.js +1 -8
- plugin-fw/assets/js/yith-fields.js +482 -415
- plugin-fw/assets/js/yith-fields.min.js +1 -1
- plugin-fw/assets/js/yith-system-info.js +13 -0
- plugin-fw/assets/js/yith-system-info.min.js +13 -0
- plugin-fw/init.php +2 -2
- plugin-fw/lib/promo/yith-promo.php +1 -1
- plugin-fw/lib/yit-assets.php +9 -9
- plugin-fw/lib/yit-plugin-panel-wc.php +81 -114
- plugin-fw/lib/yith-system-status.php +382 -0
- plugin-fw/templates/fields/ajax-customers.php +122 -0
- plugin-fw/templates/fields/colorpicker.php +6 -1
- plugin-fw/templates/fields/list-table.php +5 -2
- plugin-fw/templates/fields/multi-colorpicker.php +47 -12
- plugin-fw/templates/fields/password.php +30 -0
- plugin-fw/templates/fields/radio.php +2 -1
- plugin-fw/templates/fields/select.php +2 -1
- plugin-fw/templates/fields/toggle-element.php +21 -13
- plugin-fw/templates/fields/upload.php +8 -8
- plugin-fw/templates/metaboxes/tab.php +2 -2
- plugin-fw/templates/sysinfo/system-information-panel.php +135 -0
- plugin-fw/yit-functions.php +11 -0
- plugin-fw/yit-plugin.php +2 -0
- readme.txt +7 -2
class.yith-woocommerce-catalog-mode.php
CHANGED
@@ -364,6 +364,10 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
364 |
|
365 |
$hide = false;
|
366 |
|
|
|
|
|
|
|
|
|
367 |
if ( get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() ) {
|
368 |
|
369 |
if ( $this->disable_shop() ) {
|
@@ -404,7 +408,7 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
404 |
if ( $this->apply_catalog_mode( $post_id ) ) {
|
405 |
|
406 |
$enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $post_id, 'ywctm_exclude_hide_add_to_cart' );
|
407 |
-
$exclude_catalog = apply_filters( 'ywctm_get_exclusion',
|
408 |
|
409 |
$hide = ( $enable_exclusion != 'yes' ? true : ( $exclude_catalog != 'yes' ? true : false ) );
|
410 |
|
@@ -449,6 +453,10 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
449 |
*/
|
450 |
public function avoid_add_to_cart( $passed, $product_id ) {
|
451 |
|
|
|
|
|
|
|
|
|
452 |
if ( get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() ) {
|
453 |
|
454 |
if ( $this->disable_shop() ) {
|
@@ -477,7 +485,7 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
477 |
if ( $this->apply_catalog_mode( $product_id ) ) {
|
478 |
|
479 |
$enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $product_id, 'ywctm_exclude_hide_add_to_cart' );
|
480 |
-
$exclude_catalog = apply_filters( 'ywctm_get_exclusion',
|
481 |
|
482 |
$passed = ( $enable_exclusion != 'yes' ? false : ( $exclude_catalog != 'yes' ? false : true ) );
|
483 |
|
@@ -523,6 +531,10 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
523 |
|
524 |
$hide = false;
|
525 |
|
|
|
|
|
|
|
|
|
526 |
if ( $this->disable_shop() ) {
|
527 |
|
528 |
$hide = true;
|
@@ -531,7 +543,7 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
531 |
|
532 |
global $product;
|
533 |
|
534 |
-
$product_id =
|
535 |
|
536 |
global $sitepress;
|
537 |
$has_wpml = ! empty( $sitepress ) ? true : false;
|
@@ -541,6 +553,10 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
541 |
$product = wc_get_product( $product_id );
|
542 |
}
|
543 |
|
|
|
|
|
|
|
|
|
544 |
$hide_add_to_cart_loop = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_add_to_cart_loop' ), $product_id, 'ywctm_hide_add_to_cart_loop' );
|
545 |
$hide_variations = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_variations' ), $product_id, 'ywctm_hide_variations' );
|
546 |
$hide_variations = apply_filters( 'ywctm_hide_variations_on_loop', $hide_variations );
|
@@ -549,7 +565,7 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
549 |
$is_grouped = $product->is_type( 'grouped' );
|
550 |
|
551 |
|
552 |
-
$can_hide
|
553 |
|
554 |
if ( $hide_add_to_cart_loop != 'yes' ) {
|
555 |
$hide_add_to_cart_loop = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_price' ), $product_id, 'ywctm_hide_price' );
|
@@ -560,13 +576,13 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
560 |
if ( $this->apply_catalog_mode( $product_id ) ) {
|
561 |
|
562 |
$enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $product_id, 'ywctm_exclude_hide_add_to_cart' );
|
563 |
-
$exclude_catalog = apply_filters( 'ywctm_get_exclusion',
|
564 |
|
565 |
$hide = ( $enable_exclusion != 'yes' ? true : ( $exclude_catalog != 'yes' ? true : false ) );
|
566 |
|
567 |
$reverse_criteria = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart_reverse' ), $product_id, 'ywctm_exclude_hide_add_to_cart_reverse' );
|
568 |
|
569 |
-
if ( $is_variable || $is_grouped ) {
|
570 |
|
571 |
$hide = $can_hide;
|
572 |
|
@@ -748,7 +764,7 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
748 |
* @since 1.2.2
|
749 |
*
|
750 |
* @param $value
|
751 |
-
* @param $product
|
752 |
*
|
753 |
* @return string
|
754 |
* @author Alberto Ruggiero
|
@@ -757,7 +773,7 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
757 |
|
758 |
global $yith_wcwl_is_wishlist;
|
759 |
|
760 |
-
if ( $this->check_add_to_cart_single( true,
|
761 |
|
762 |
$value = '';
|
763 |
|
@@ -812,7 +828,7 @@ if ( ! class_exists( 'YITH_WC_Catalog_Mode' ) ) {
|
|
812 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
813 |
*/
|
814 |
public function get_premium_landing_uri() {
|
815 |
-
return $this->_premium_landing;
|
816 |
}
|
817 |
|
818 |
/**
|
364 |
|
365 |
$hide = false;
|
366 |
|
367 |
+
if ( apply_filters( 'ywctm_prices_only_on_cart', false ) ) {
|
368 |
+
return $hide;
|
369 |
+
}
|
370 |
+
|
371 |
if ( get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() ) {
|
372 |
|
373 |
if ( $this->disable_shop() ) {
|
408 |
if ( $this->apply_catalog_mode( $post_id ) ) {
|
409 |
|
410 |
$enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $post_id, 'ywctm_exclude_hide_add_to_cart' );
|
411 |
+
$exclude_catalog = apply_filters( 'ywctm_get_exclusion', $product->get_meta( '_ywctm_exclude_catalog_mode' ), $post_id, '_ywctm_exclude_catalog_mode' );
|
412 |
|
413 |
$hide = ( $enable_exclusion != 'yes' ? true : ( $exclude_catalog != 'yes' ? true : false ) );
|
414 |
|
453 |
*/
|
454 |
public function avoid_add_to_cart( $passed, $product_id ) {
|
455 |
|
456 |
+
if ( apply_filters( 'ywctm_prices_only_on_cart', false ) ) {
|
457 |
+
return $passed;
|
458 |
+
}
|
459 |
+
|
460 |
if ( get_option( 'ywctm_enable_plugin' ) == 'yes' && $this->check_user_admin_enable() ) {
|
461 |
|
462 |
if ( $this->disable_shop() ) {
|
485 |
if ( $this->apply_catalog_mode( $product_id ) ) {
|
486 |
|
487 |
$enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $product_id, 'ywctm_exclude_hide_add_to_cart' );
|
488 |
+
$exclude_catalog = apply_filters( 'ywctm_get_exclusion', $product->get_meta( '_ywctm_exclude_catalog_mode' ), $product_id, '_ywctm_exclude_catalog_mode' );
|
489 |
|
490 |
$passed = ( $enable_exclusion != 'yes' ? false : ( $exclude_catalog != 'yes' ? false : true ) );
|
491 |
|
531 |
|
532 |
$hide = false;
|
533 |
|
534 |
+
if ( apply_filters( 'ywctm_prices_only_on_cart', false ) ) {
|
535 |
+
return $hide;
|
536 |
+
}
|
537 |
+
|
538 |
if ( $this->disable_shop() ) {
|
539 |
|
540 |
$hide = true;
|
543 |
|
544 |
global $product;
|
545 |
|
546 |
+
$product_id = $product->get_id();
|
547 |
|
548 |
global $sitepress;
|
549 |
$has_wpml = ! empty( $sitepress ) ? true : false;
|
553 |
$product = wc_get_product( $product_id );
|
554 |
}
|
555 |
|
556 |
+
if ( ! $product ) {
|
557 |
+
return $hide;
|
558 |
+
}
|
559 |
+
|
560 |
$hide_add_to_cart_loop = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_add_to_cart_loop' ), $product_id, 'ywctm_hide_add_to_cart_loop' );
|
561 |
$hide_variations = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_variations' ), $product_id, 'ywctm_hide_variations' );
|
562 |
$hide_variations = apply_filters( 'ywctm_hide_variations_on_loop', $hide_variations );
|
565 |
$is_grouped = $product->is_type( 'grouped' );
|
566 |
|
567 |
|
568 |
+
$can_hide = ( ( $is_variable || $is_grouped ) ? $hide_variations == 'yes' : true );
|
569 |
|
570 |
if ( $hide_add_to_cart_loop != 'yes' ) {
|
571 |
$hide_add_to_cart_loop = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_price' ), $product_id, 'ywctm_hide_price' );
|
576 |
if ( $this->apply_catalog_mode( $product_id ) ) {
|
577 |
|
578 |
$enable_exclusion = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart' ), $product_id, 'ywctm_exclude_hide_add_to_cart' );
|
579 |
+
$exclude_catalog = apply_filters( 'ywctm_get_exclusion', $product->get_meta( '_ywctm_exclude_catalog_mode' ), $product_id, '_ywctm_exclude_catalog_mode' );
|
580 |
|
581 |
$hide = ( $enable_exclusion != 'yes' ? true : ( $exclude_catalog != 'yes' ? true : false ) );
|
582 |
|
583 |
$reverse_criteria = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_exclude_hide_add_to_cart_reverse' ), $product_id, 'ywctm_exclude_hide_add_to_cart_reverse' );
|
584 |
|
585 |
+
if ( ( $is_variable || $is_grouped ) && $enable_exclusion != 'yes' ) {
|
586 |
|
587 |
$hide = $can_hide;
|
588 |
|
764 |
* @since 1.2.2
|
765 |
*
|
766 |
* @param $value
|
767 |
+
* @param $product WC_Product
|
768 |
*
|
769 |
* @return string
|
770 |
* @author Alberto Ruggiero
|
773 |
|
774 |
global $yith_wcwl_is_wishlist;
|
775 |
|
776 |
+
if ( $this->check_add_to_cart_single( true, $product->get_id() ) && $yith_wcwl_is_wishlist ) {
|
777 |
|
778 |
$value = '';
|
779 |
|
828 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
829 |
*/
|
830 |
public function get_premium_landing_uri() {
|
831 |
+
return defined( 'YITH_REFER_ID' ) ? $this->_premium_landing . '?refer_id=' . YITH_REFER_ID : $this->_premium_landing;
|
832 |
}
|
833 |
|
834 |
/**
|
init.php
CHANGED
@@ -5,10 +5,10 @@
|
|
5 |
* Description: <code><strong>YITH WooCommerce Catalog Mode</strong></code> allows hiding product prices, cart and checkout from your store and turning it into a performing product catalogue. You will be able to adjust your catalogue settings as you prefer based on your requirements. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
|
6 |
* Author: YITH
|
7 |
* Text Domain: yith-woocommerce-catalog-mode
|
8 |
-
* Version: 1.6.
|
9 |
* Author URI: http://yithemes.com/
|
10 |
-
* WC requires at least: 3.
|
11 |
-
* WC tested up to: 3.
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -36,7 +36,7 @@ function ywctm_install_free_admin_notice() {
|
|
36 |
}
|
37 |
|
38 |
if ( ! defined( 'YWCTM_VERSION' ) ) {
|
39 |
-
define( 'YWCTM_VERSION', '1.6.
|
40 |
}
|
41 |
|
42 |
if ( ! defined( 'YWCTM_FREE_INIT' ) ) {
|
5 |
* Description: <code><strong>YITH WooCommerce Catalog Mode</strong></code> allows hiding product prices, cart and checkout from your store and turning it into a performing product catalogue. You will be able to adjust your catalogue settings as you prefer based on your requirements. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
|
6 |
* Author: YITH
|
7 |
* Text Domain: yith-woocommerce-catalog-mode
|
8 |
+
* Version: 1.6.10
|
9 |
* Author URI: http://yithemes.com/
|
10 |
+
* WC requires at least: 3.5.0
|
11 |
+
* WC tested up to: 3.7.x
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
36 |
}
|
37 |
|
38 |
if ( ! defined( 'YWCTM_VERSION' ) ) {
|
39 |
+
define( 'YWCTM_VERSION', '1.6.10' );
|
40 |
}
|
41 |
|
42 |
if ( ! defined( 'YWCTM_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
|
7 |
-
color
|
8 |
}
|
9 |
|
10 |
#wpadminbar .yith-debug-admin-bar a,
|
11 |
#wpadminbar .yith-debug-admin-bar strong {
|
12 |
-
color
|
13 |
}
|
14 |
|
15 |
#wpadminbar .yith-debug-admin-bar strong {
|
16 |
-
font-weight
|
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
|
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
|
27 |
-
max-height
|
28 |
-
overflow-y
|
29 |
}
|
30 |
|
31 |
#wpadminbar .yith-debug-admin-bar pre {
|
32 |
-
padding
|
33 |
-
line-height
|
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
|
81 |
|
82 |
.auto-fold #adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu-head {
|
83 |
-
width
|
84 |
}
|
85 |
|
86 |
#adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu {
|
87 |
-
min-width
|
88 |
-
display
|
89 |
-
flex-flow
|
90 |
}
|
91 |
|
92 |
#adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head) {
|
93 |
-
width
|
94 |
-
border-left
|
95 |
-
box-sizing
|
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
|
100 |
}
|
101 |
|
102 |
#adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu {
|
103 |
-
min-width
|
104 |
-
display
|
105 |
-
flex-flow
|
106 |
}
|
107 |
|
108 |
#adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head) {
|
109 |
-
width
|
110 |
-
border-left
|
111 |
-
box-sizing
|
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
|
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
|
5 |
-
height
|
6 |
-
clear
|
7 |
-
visibility
|
8 |
-
overflow
|
9 |
}
|
10 |
|
11 |
/* ie.css */
|
12 |
* html .clearfix { /* IE6 */
|
13 |
-
height
|
14 |
}
|
15 |
|
16 |
*:first-child + html .clearfix { /* IE7 */
|
17 |
-
min-height
|
18 |
}
|
19 |
|
20 |
.clearboth {
|
21 |
-
clear
|
22 |
}
|
23 |
|
24 |
/* === TAB STYLE */
|
25 |
.metaboxes-tab {
|
26 |
-
margin
|
27 |
}
|
28 |
|
29 |
.metaboxes-tab div.tabs-panel {
|
30 |
-
height
|
31 |
-
overflow
|
32 |
-
margin-top
|
33 |
-
padding
|
34 |
-
background
|
35 |
-
border
|
36 |
}
|
37 |
|
38 |
.metaboxes-tab ul.metaboxes-tabs {
|
39 |
-
background
|
40 |
-
margin
|
41 |
-
padding
|
42 |
}
|
43 |
|
44 |
.metaboxes-tab ul.metaboxes-tabs li {
|
45 |
-
float
|
46 |
-
background
|
47 |
-
margin
|
48 |
}
|
49 |
|
50 |
.metaboxes-tab ul.metaboxes-tabs li a {
|
51 |
-
color
|
52 |
-
text-decoration
|
53 |
-
padding
|
54 |
-
display
|
55 |
-
box-shadow
|
56 |
}
|
57 |
|
58 |
.metaboxes-tab ul.metaboxes-tabs li.tabs {
|
59 |
-
background
|
60 |
}
|
61 |
|
62 |
.metaboxes-tab p.field-row {
|
63 |
-
margin
|
64 |
}
|
65 |
|
66 |
.metaboxes-tab div.sep {
|
67 |
-
height
|
68 |
-
background
|
69 |
-
clear
|
70 |
-
margin-left
|
71 |
-
margin-right
|
72 |
}
|
73 |
|
74 |
.metaboxes-tab label {
|
75 |
-
font-weight
|
76 |
-
width
|
77 |
-
float
|
78 |
-
line-height
|
79 |
-
margin-left
|
80 |
}
|
81 |
|
82 |
.metaboxes-tab label small {
|
83 |
-
font-weight
|
84 |
-
line-height
|
85 |
-
font-style
|
86 |
-
color
|
87 |
-
display
|
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
|
103 |
}
|
|
|
104 |
.metaboxes-tab .wp-picker-container label {
|
105 |
-
font-weight
|
106 |
-
width
|
107 |
-
float
|
108 |
-
line-height
|
109 |
-
margin-left
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
}
|
111 |
|
112 |
.metaboxes-tab input[type="checkbox"] {
|
113 |
-
vertical-align
|
114 |
}
|
115 |
|
116 |
.metaboxes-tab input.button-secondary, .metaboxes-tab input.checkbox {
|
117 |
-
width
|
118 |
}
|
119 |
|
120 |
.metaboxes-tab p.field-row.textarea .description {
|
121 |
-
vertical-align
|
122 |
}
|
123 |
|
124 |
.metaboxes-tab p.field-row.checkbox {
|
125 |
-
background
|
126 |
}
|
127 |
|
128 |
.metaboxes-tab .the-metabox {
|
129 |
-
margin
|
130 |
-
margin-left
|
131 |
}
|
132 |
|
133 |
.metaboxes-tab .the-metabox.no-label {
|
134 |
-
margin
|
135 |
-
margin-left
|
136 |
}
|
137 |
|
138 |
.metaboxes-tab hr {
|
139 |
-
height
|
140 |
-
border-top
|
141 |
-
width
|
142 |
-
margin-left
|
143 |
-
margin-right
|
144 |
}
|
145 |
|
146 |
.metaboxes-tab .the-metabox p {
|
147 |
-
margin
|
148 |
}
|
149 |
|
150 |
.metaboxes-tab .the-metabox:last-child {
|
151 |
-
border-bottom
|
152 |
}
|
153 |
|
154 |
.metaboxes-tab .the-metabox.checkbox {
|
155 |
-
background
|
156 |
}
|
157 |
|
158 |
.metaboxes-tab span.description.inline {
|
159 |
-
display
|
160 |
-
line-height
|
161 |
-
width
|
162 |
-
vertical-align
|
163 |
-
margin
|
164 |
}
|
165 |
|
166 |
.metaboxes-tab .slider label {
|
167 |
-
padding
|
168 |
}
|
169 |
|
170 |
/* sortable table posts */
|
171 |
|
172 |
#the-list.ui-sortable tr:hover {
|
173 |
-
cursor
|
174 |
}
|
175 |
|
176 |
.the-metabox.preview {
|
177 |
-
float
|
178 |
}
|
179 |
|
180 |
.metaboxes-tab .the-metabox.no-label.preview {
|
181 |
-
margin-left
|
182 |
}
|
183 |
|
184 |
.metaboxes-tab .the-metabox.no-label.preview img {
|
185 |
-
box-shadow
|
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
|
202 |
-
max-width
|
203 |
}
|
204 |
-
|
|
|
205 |
width: auto;
|
206 |
min-width: 90px;
|
207 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
.metaboxes-tab .yith-plugin-fw-text-array-table input[type=text] {
|
209 |
-
width
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
}
|
211 |
|
212 |
/* wp editor */
|
213 |
.the-metabox.textarea-editor .mceIframeContainer {
|
214 |
-
background
|
215 |
}
|
216 |
|
|
|
217 |
.the-metabox.textarea-editor label {
|
218 |
-
margin-top
|
219 |
}
|
220 |
|
221 |
/* categories */
|
222 |
.categories-panel {
|
223 |
-
width
|
224 |
-
float
|
225 |
-
margin-right
|
226 |
}
|
227 |
|
228 |
.categories-panel .box {
|
229 |
-
height
|
230 |
-
border
|
231 |
-
background
|
232 |
-
padding
|
233 |
-
overflow
|
234 |
}
|
235 |
|
236 |
.categories-panel ul {
|
237 |
-
list-style
|
238 |
-
margin
|
239 |
}
|
240 |
|
241 |
.categories-panel ul li {
|
242 |
-
line-height
|
243 |
-
margin
|
244 |
-
padding
|
245 |
-
word-wrap
|
246 |
}
|
247 |
|
248 |
.categories-panel ul li label {
|
249 |
-
font-weight
|
250 |
-
margin-left
|
251 |
}
|
252 |
|
253 |
.categories-panel input.newcategory {
|
254 |
-
width
|
255 |
-
margin-bottom
|
256 |
}
|
257 |
|
258 |
/* contact form */
|
259 |
.contactform_item {
|
260 |
-
border-style
|
261 |
-
border-width
|
262 |
-
line-height
|
263 |
-
margin-bottom
|
264 |
-
padding
|
265 |
-
background-color
|
266 |
-
background-image
|
267 |
-
border-color
|
268 |
-
border-radius
|
269 |
-
box-shadow
|
270 |
-
min-width
|
271 |
-
position
|
272 |
}
|
273 |
|
274 |
.contactform_item .handlediv {
|
275 |
-
position
|
276 |
-
top
|
277 |
}
|
278 |
|
279 |
.contactform_item h3 {
|
280 |
-
min-height
|
281 |
-
margin
|
282 |
}
|
283 |
|
284 |
.contactform_item .inside {
|
285 |
-
padding
|
286 |
}
|
287 |
|
288 |
.contactform_item .deps {
|
289 |
-
display
|
290 |
}
|
291 |
|
292 |
.contactform_item .addoptions p.option {
|
293 |
-
margin
|
294 |
}
|
295 |
|
296 |
.contactform_item .addoptions p label {
|
297 |
-
width
|
298 |
}
|
299 |
|
300 |
.contactform_item .add-field-option {
|
301 |
-
margin-bottom
|
302 |
}
|
303 |
|
304 |
.remove_item {
|
305 |
-
float
|
306 |
}
|
307 |
|
308 |
.metabox-sortable-placeholder {
|
309 |
-
border
|
310 |
-
margin
|
311 |
}
|
312 |
|
313 |
/* features tab */
|
314 |
.featurestab_item {
|
315 |
-
border-style
|
316 |
-
border-width
|
317 |
-
line-height
|
318 |
-
margin-bottom
|
319 |
-
padding
|
320 |
-
background-color
|
321 |
-
background-image
|
322 |
-
border-color
|
323 |
-
border-radius
|
324 |
-
box-shadow
|
325 |
-
min-width
|
326 |
-
position
|
327 |
}
|
328 |
|
329 |
.featurestab_item .handlediv {
|
330 |
-
position
|
331 |
-
top
|
332 |
}
|
333 |
|
334 |
.featurestab_item h3 {
|
335 |
-
min-height
|
336 |
}
|
337 |
|
338 |
.featurestab_item .inside {
|
339 |
-
padding
|
340 |
}
|
341 |
|
342 |
.featurestab_item .deps {
|
343 |
-
display
|
344 |
}
|
345 |
|
346 |
.featurestab_item .addoptions p.option {
|
347 |
-
margin
|
348 |
}
|
349 |
|
350 |
.featurestab_item .addoptions p label {
|
351 |
-
width
|
352 |
}
|
353 |
|
354 |
.featurestab_item .add-field-option {
|
355 |
-
margin-bottom
|
356 |
}
|
357 |
|
358 |
.messages-panel.updated {
|
359 |
-
margin
|
360 |
-
max-width
|
361 |
-
border-radius
|
362 |
-
-webkit-box-sizing
|
363 |
-
box-sizing
|
364 |
}
|
365 |
|
366 |
.ui-widget-overlay {
|
367 |
-
background-image
|
368 |
}
|
369 |
|
370 |
.the-metabox .icon_type {
|
371 |
-
width
|
372 |
-
float
|
373 |
-
margin-right
|
374 |
}
|
375 |
|
376 |
#post-type-settings .category-list label {
|
377 |
-
width
|
378 |
}
|
379 |
|
380 |
.remove_cat {
|
381 |
-
float
|
382 |
-
text-align
|
383 |
-
display
|
384 |
-
width
|
385 |
-
height
|
386 |
-
border-radius
|
387 |
-
font-weight
|
388 |
-
font-size
|
389 |
-
background
|
390 |
-
text-decoration
|
391 |
}
|
392 |
|
393 |
/* typography */
|
394 |
.the-metabox.typography .select_wrapper.font-family {
|
395 |
-
width
|
396 |
}
|
397 |
|
398 |
.the-metabox.typography .spinner_container {
|
399 |
-
float
|
400 |
-
margin-right
|
401 |
}
|
402 |
|
403 |
.the-metabox.typography .spinner_container input.number {
|
404 |
-
width
|
405 |
-
-webkit-border-top-right-radius
|
406 |
-
-webkit-border-bottom-right-radius
|
407 |
-
-moz-border-radius-topright
|
408 |
-
-moz-border-radius-bottomright
|
409 |
-
border-top-right-radius
|
410 |
-
border-bottom-right-radius
|
411 |
}
|
412 |
|
413 |
/* number */
|
414 |
.the-metabox.number input.number {
|
415 |
-
width
|
416 |
}
|
417 |
|
418 |
/* number */
|
419 |
.rm_number .number {
|
420 |
-
width
|
421 |
-
text-align
|
422 |
-
-webkit-border-top-right-radius
|
423 |
-
-webkit-border-bottom-right-radius
|
424 |
-
-moz-border-radius-topright
|
425 |
-
-moz-border-radius-bottomright
|
426 |
-
border-top-right-radius
|
427 |
-
border-bottom-right-radius
|
428 |
}
|
429 |
|
430 |
.spinner-wrapper {
|
431 |
-
position
|
432 |
-
height
|
433 |
-
overflow
|
434 |
}
|
435 |
|
436 |
.spinner-wrapper input.number {
|
437 |
-
float
|
438 |
}
|
439 |
|
440 |
.spinner-wrapper .spinner-button {
|
441 |
-
cursor
|
442 |
-
float
|
443 |
-
position
|
444 |
-
left
|
445 |
-
width
|
446 |
-
height
|
447 |
-
border
|
448 |
-
background
|
449 |
-
margin
|
450 |
-
padding
|
451 |
-
line-height
|
452 |
-
overflow
|
453 |
-
background
|
454 |
}
|
455 |
|
456 |
.spinner-wrapper .spinner-button.button-plus {
|
457 |
-
top
|
458 |
-
-webkit-border-top-right-radius
|
459 |
-
-moz-border-radius-topright
|
460 |
-
border-top-right-radius
|
461 |
}
|
462 |
|
463 |
.spinner-wrapper .spinner-button.button-minus {
|
464 |
-
bottom
|
465 |
-
background-position
|
466 |
-
-webkit-border-bottom-right-radius
|
467 |
-
-moz-border-radius-bottomright
|
468 |
-
border-bottom-right-radius
|
469 |
}
|
470 |
|
471 |
.spinner-wrapper .spinner-button.button-plus:active {
|
472 |
-
background-position
|
473 |
}
|
474 |
|
475 |
.spinner-wrapper .spinner-button.button-minus:active {
|
476 |
-
background-position
|
477 |
}
|
478 |
|
479 |
.rm_typography .spinner_container {
|
480 |
-
float
|
481 |
-
margin-right
|
482 |
}
|
483 |
|
484 |
.rm_typography .spinner-wrapper {
|
485 |
-
height
|
486 |
}
|
487 |
|
488 |
.rm_typography .spinner-wrapper input.number {
|
489 |
-
height
|
490 |
}
|
491 |
|
492 |
.rm_typography .spinner-wrapper .spinner-button.button-plus {
|
493 |
-
height
|
494 |
-
background-position
|
495 |
}
|
496 |
|
497 |
.rm_typography .spinner-wrapper .spinner-button.button-minus {
|
498 |
-
height
|
499 |
}
|
500 |
|
501 |
.the-metabox .spinner-wrapper .spinner-button {
|
502 |
-
left
|
503 |
}
|
504 |
|
505 |
.the-metabox.typography .spinner-wrapper .spinner-button {
|
506 |
-
left
|
507 |
}
|
508 |
|
509 |
/* images */
|
510 |
.the-metabox.images, .the-metabox.images label {
|
511 |
-
margin-left
|
512 |
-
display
|
513 |
}
|
514 |
|
515 |
.the-metabox.images .slides-wrapper {
|
516 |
-
clear
|
517 |
}
|
518 |
|
519 |
.the-metabox.images .slides-wrapper li {
|
520 |
-
position
|
521 |
}
|
522 |
|
523 |
.the-metabox.images a.delete {
|
524 |
-
display
|
525 |
-
margin-left
|
526 |
-
text-decoration
|
527 |
-
font-weight
|
528 |
-
color
|
529 |
-
position
|
530 |
-
top
|
531 |
-
right
|
532 |
-
width
|
533 |
-
height
|
534 |
-
z-index
|
535 |
-
cursor
|
536 |
}
|
537 |
|
538 |
/* wp editor */
|
539 |
.wp_themeSkin iframe {
|
540 |
-
background
|
541 |
}
|
542 |
|
543 |
/* custom tabs */
|
544 |
.customtab_item {
|
545 |
-
border-style
|
546 |
-
border-width
|
547 |
-
line-height
|
548 |
-
margin-bottom
|
549 |
-
padding
|
550 |
-
background-color
|
551 |
-
background-image
|
552 |
-
border-color
|
553 |
-
border-radius
|
554 |
-
box-shadow
|
555 |
-
min-width
|
556 |
-
position
|
557 |
}
|
558 |
|
559 |
.customtab_item .handlediv {
|
560 |
-
position
|
561 |
-
top
|
562 |
}
|
563 |
|
564 |
.customtab_item h3 {
|
565 |
-
min-height
|
566 |
}
|
567 |
|
568 |
.customtab_item .inside {
|
569 |
-
padding
|
570 |
}
|
571 |
|
572 |
.customtab_item .deps {
|
573 |
-
display
|
574 |
}
|
575 |
|
576 |
.customtab_item .addoptions p.option {
|
577 |
-
margin
|
578 |
}
|
579 |
|
580 |
.customtab_item .addoptions p label {
|
581 |
-
width
|
582 |
}
|
583 |
|
584 |
.customtab_item .add-field-option {
|
585 |
-
margin-bottom
|
586 |
}
|
587 |
|
588 |
.customtab_item .remove_item {
|
589 |
-
float
|
590 |
}
|
591 |
|
592 |
.metabox-sortable-placeholder {
|
593 |
-
border
|
594 |
-
margin
|
595 |
}
|
596 |
|
597 |
.the-metabox.customtabs {
|
598 |
-
margin-left
|
599 |
}
|
600 |
|
601 |
#customtab_item_sample {
|
602 |
-
display
|
603 |
}
|
604 |
|
605 |
.the-metabox.customtabs .field-row {
|
606 |
-
margin-bottom
|
607 |
}
|
608 |
|
609 |
#yit_custom_tabs label {
|
610 |
-
font-weight
|
611 |
-
width
|
612 |
-
float
|
613 |
-
line-height
|
614 |
-
margin-left
|
615 |
}
|
616 |
|
617 |
.wp-admin p label input[type=radio] {
|
618 |
-
width
|
619 |
-
margin-right
|
620 |
-
margin-top
|
621 |
}
|
622 |
|
623 |
.wp-admin .form-field._preset_onsale_icon_field label input[type=radio] {
|
624 |
-
margin-top
|
625 |
}
|
626 |
|
627 |
.the-metabox .spinner {
|
628 |
-
margin-top
|
629 |
-
float
|
630 |
}
|
631 |
|
632 |
/*sidebars*/
|
633 |
#choose-sidebars.choose {
|
634 |
-
margin-left
|
635 |
}
|
636 |
|
637 |
#_active_page_options-container label, #_active_page_options-container p {
|
638 |
-
display
|
639 |
-
margin
|
640 |
}
|
641 |
|
642 |
#_active_page_options-container label {
|
643 |
-
margin-right
|
644 |
-
margin-top
|
645 |
}
|
646 |
|
647 |
#_active_page_options-container {
|
648 |
-
float
|
649 |
-
margin-right
|
650 |
-
margin-top
|
651 |
-
z-index
|
652 |
-
position
|
653 |
-
right
|
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
|
661 |
-
width
|
662 |
-
height
|
663 |
-
overflow
|
664 |
-
top
|
665 |
-
left
|
666 |
-
background
|
667 |
-
position
|
668 |
-
z-index
|
669 |
-
font-family
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
3 |
-
margin-top
|
4 |
-
font-size
|
5 |
-
color
|
6 |
-
font-style
|
7 |
-
clear
|
8 |
}
|
9 |
|
10 |
.yith-plugin-fw span.description.inline {
|
11 |
-
display
|
12 |
-
margin
|
13 |
}
|
14 |
|
15 |
.yith-disabled {
|
16 |
-
opacity
|
17 |
-
pointer-events
|
18 |
}
|
19 |
|
20 |
.yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper) {
|
21 |
-
display
|
22 |
-
width
|
23 |
}
|
24 |
|
25 |
.yith-plugin-fw-field-wrapper span.desc {
|
26 |
-
display
|
27 |
-
width
|
28 |
}
|
29 |
|
30 |
.yith-plugin-fw-title-field-wrapper h3.title {
|
31 |
-
width
|
32 |
}
|
33 |
|
34 |
.the-metabox .yith-plugin-fw-title-field-wrapper h3.title {
|
35 |
-
float
|
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
|
47 |
-
max-width
|
48 |
-
height
|
49 |
-
padding
|
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
|
57 |
-
max-width
|
58 |
-
height
|
59 |
-
padding
|
60 |
}
|
61 |
|
62 |
.woocommerce .yith-plugin-fw table.form-table input[type=text].colorpick,
|
63 |
.yith-plugin-fw input[type=text].colorpick {
|
64 |
-
width
|
65 |
-
max-width
|
66 |
-
height
|
67 |
-
padding
|
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
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
|
77 |
.yith-plugin-fw textarea {
|
78 |
-
width
|
79 |
-
max-width
|
80 |
-
padding
|
81 |
}
|
82 |
|
83 |
/* ------------- ICONS ------------- */
|
84 |
.yit-icons-manager-wrapper {
|
85 |
-
width
|
86 |
-
max-width
|
87 |
}
|
88 |
|
89 |
.yit-icons-manager-text {
|
90 |
-
width
|
91 |
}
|
92 |
|
93 |
.yit-icons-manager-icon-text {
|
94 |
-
width
|
95 |
-
height
|
96 |
-
float
|
97 |
-
margin
|
98 |
}
|
99 |
|
100 |
.yit-icons-manager-icon-preview {
|
101 |
-
width
|
102 |
-
height
|
103 |
-
margin-right
|
104 |
-
float
|
105 |
-
padding-top
|
106 |
-
box-sizing
|
107 |
-
text-align
|
108 |
-
background
|
109 |
}
|
110 |
|
111 |
.yit-icons-manager-list-wrapper {
|
112 |
-
margin
|
113 |
-
box-shadow
|
114 |
}
|
115 |
|
116 |
ul.yit-icons-manager-list {
|
117 |
-
width
|
118 |
-
height
|
119 |
-
overflow-y
|
120 |
-
margin
|
121 |
}
|
122 |
|
123 |
ul.yit-icons-manager-list li {
|
124 |
-
float
|
125 |
-
width
|
126 |
-
height
|
127 |
-
padding-top
|
128 |
-
box-sizing
|
129 |
-
text-align
|
130 |
-
background
|
131 |
-
margin
|
132 |
-
cursor
|
133 |
}
|
134 |
|
135 |
ul.yit-icons-manager-list li:hover {
|
136 |
-
background
|
137 |
}
|
138 |
|
139 |
ul.yit-icons-manager-list li.active {
|
140 |
-
background
|
141 |
}
|
142 |
|
143 |
.yit-icons-manager-action-set-default {
|
144 |
-
margin-bottom
|
145 |
}
|
146 |
|
147 |
.yit-icons-manager-default-icon-preview {
|
148 |
-
height
|
149 |
-
display
|
150 |
-
padding-left
|
151 |
-
border-left
|
152 |
-
margin-left
|
153 |
}
|
154 |
|
155 |
/* ------- Text Array ------- */
|
156 |
.yith-plugin-fw-text-array-table td {
|
157 |
-
padding
|
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
|
163 |
}
|
164 |
|
165 |
/* ------- Image Gallery ------- */
|
166 |
.yith-plugin-fw .image-gallery ul li {
|
167 |
-
display
|
168 |
-
width
|
169 |
-
margin-left
|
170 |
-
position
|
171 |
}
|
172 |
|
173 |
.yith-plugin-fw .image-gallery ul li img {
|
174 |
-
width
|
175 |
-
border
|
176 |
}
|
177 |
|
178 |
.yith-plugin-fw .image-gallery ul li ul {
|
179 |
-
position
|
180 |
-
top
|
181 |
-
right
|
182 |
-
width
|
183 |
-
height
|
184 |
}
|
185 |
|
186 |
.yith-plugin-fw .image-gallery ul a.delete {
|
187 |
-
background
|
188 |
-
width
|
189 |
-
height
|
190 |
-
display
|
191 |
-
text-indent
|
192 |
}
|
193 |
|
194 |
/* ------- OnOff ------- */
|
195 |
.yith-plugin-fw-onoff-container {
|
196 |
-
display
|
197 |
}
|
198 |
|
199 |
.yith-plugin-fw-onoff-container input {
|
200 |
-
display
|
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
|
218 |
-
width
|
219 |
-
height
|
220 |
-
border-radius
|
221 |
-
position
|
222 |
-
top
|
223 |
-
left
|
224 |
-
transition
|
225 |
}
|
226 |
|
227 |
.yith-plugin-fw-onoff-container input:checked + span,
|
228 |
.yith-plugin-fw-onoff-container input.onoffchecked + span {
|
229 |
-
background
|
230 |
}
|
231 |
|
232 |
.yith-plugin-fw-onoff-container input:checked + span:before,
|
233 |
.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
|
234 |
-
left
|
235 |
}
|
236 |
|
237 |
/* ------- Preview ------- */
|
238 |
.yith-plugin-fw-preview-field {
|
239 |
-
max-height
|
240 |
}
|
241 |
|
242 |
/* ------- Radio ------- */
|
243 |
.yith-plugin-fw-radio input[type=radio] {
|
244 |
-
margin
|
245 |
}
|
246 |
|
247 |
.yith-plugin-fw-radio__row {
|
248 |
-
margin-bottom
|
249 |
}
|
250 |
|
251 |
/* ------- Sidebar Layout ------- */
|
252 |
.yith-plugin-fw-sidebar-layout input[type="radio"] {
|
253 |
-
display
|
254 |
-
width
|
255 |
}
|
256 |
|
257 |
.yith-plugin-fw-sidebar-layout input[type="radio"]:first-child {
|
258 |
-
margin-right
|
259 |
}
|
260 |
|
261 |
.yith-plugin-fw-sidebar-layout input[type="radio"] + img {
|
262 |
-
border
|
263 |
-
padding
|
264 |
}
|
265 |
|
266 |
.yith-plugin-fw-sidebar-layout input[type="radio"] + img:hover {
|
267 |
-
cursor
|
268 |
}
|
269 |
|
270 |
.yith-plugin-fw-sidebar-layout input[checked] + img {
|
271 |
-
border
|
272 |
-
padding
|
273 |
}
|
274 |
|
275 |
.yith-plugin-fw-sidebar-layout select {
|
276 |
-
vertical-align
|
277 |
}
|
278 |
|
279 |
.yit-admin-panel-content-wrap .yith-plugin-fw-sidebar-layout label {
|
280 |
-
font-weight
|
281 |
-
width
|
282 |
-
float
|
283 |
-
line-height
|
284 |
-
margin-left
|
285 |
}
|
286 |
|
287 |
/* ------- Slider ------- */
|
288 |
.yith-plugin-fw .slider {
|
289 |
-
padding-top
|
290 |
}
|
291 |
|
292 |
.ui-slider .minCaption {
|
293 |
-
position
|
294 |
-
right
|
295 |
-
top
|
296 |
-
margin-right
|
297 |
}
|
298 |
|
299 |
.ui-slider .maxCaption {
|
300 |
-
position
|
301 |
-
left
|
302 |
-
top
|
303 |
-
margin-left
|
304 |
}
|
305 |
|
306 |
.ui-slider-horizontal .ui-slider-handle {
|
307 |
-
background
|
308 |
-
border
|
309 |
-
top
|
310 |
-
border-radius
|
311 |
-
width
|
312 |
-
height
|
313 |
-
box-sizing
|
314 |
-
box-shadow
|
315 |
-
font-size
|
316 |
-
padding
|
317 |
-
font-weight
|
318 |
-
color
|
319 |
-
text-align
|
320 |
}
|
321 |
|
322 |
.ui-slider.ui-widget-content {
|
323 |
-
background
|
324 |
-
border
|
325 |
-
height
|
326 |
-
border-radius
|
327 |
-
width
|
328 |
-
margin
|
329 |
}
|
330 |
|
331 |
.iris-slider-offset.ui-slider.ui-widget-content {
|
332 |
-
background
|
333 |
-
height
|
334 |
}
|
335 |
|
336 |
.ui-slider.ui-widget-content .ui-widget-header {
|
337 |
-
background
|
338 |
-
left
|
339 |
-
-webkit-border-radius
|
340 |
-
-moz-border-radius
|
341 |
-
-khtml-border-radius
|
342 |
-
border-radius
|
343 |
}
|
344 |
|
345 |
/* ------- Select2 ------- */
|
346 |
.yith-plugin-fw-select2-wrapper {
|
347 |
-
width
|
348 |
}
|
349 |
|
350 |
/* ------- Textarea ------- */
|
351 |
.yith-plugin-fw-textarea-editor-field-wrapper {
|
352 |
-
max-width
|
353 |
-
clear
|
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
|
359 |
}
|
360 |
|
361 |
/* ------- Buttons ------- */
|
362 |
.yith-plugin-fw-buttons-field-wrapper {
|
363 |
-
margin-top
|
364 |
}
|
365 |
|
366 |
/* ------- Select Images ------- */
|
367 |
.yith-plugin-fw-select-images__list {
|
368 |
-
margin
|
369 |
-
display
|
370 |
-
flex-wrap
|
371 |
}
|
372 |
|
373 |
.yith-plugin-fw-select-images__item {
|
374 |
-
width
|
375 |
-
min-width
|
376 |
-
margin
|
377 |
-
padding
|
378 |
-
box-sizing
|
379 |
-
cursor
|
380 |
-
transition
|
381 |
-
border
|
382 |
-
display
|
383 |
-
flex-direction
|
384 |
-
justify-content
|
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
|
390 |
}
|
391 |
|
392 |
.yith-plugin-fw-select-images__item__label {
|
393 |
-
text-align
|
394 |
-
font-weight
|
395 |
-
margin-bottom
|
396 |
}
|
397 |
|
398 |
.yith-plugin-fw-select-images__item img {
|
399 |
-
display
|
400 |
-
max-width
|
401 |
-
margin
|
402 |
}
|
403 |
|
404 |
/****************
|
@@ -406,8 +413,8 @@ YITH UI
|
|
406 |
****************/
|
407 |
@font-face {
|
408 |
font-family: 'yith-icon';
|
409 |
-
src:
|
410 |
-
src:
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
433 |
content: "\e90f";
|
434 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
}
|
436 |
-
|
|
|
437 |
content: "\e900";
|
438 |
-
color: #
|
439 |
}
|
440 |
-
|
|
|
441 |
content: "\e901";
|
442 |
-
color: #
|
443 |
}
|
444 |
-
|
|
|
445 |
content: "\e902";
|
446 |
-
color: #
|
447 |
}
|
448 |
-
|
|
|
449 |
content: "\e903";
|
450 |
-
color: #
|
451 |
}
|
452 |
-
|
|
|
453 |
content: "\e904";
|
454 |
-
color: #
|
455 |
}
|
456 |
-
|
|
|
457 |
content: "\e905";
|
458 |
-
color: #
|
459 |
}
|
460 |
-
|
|
|
461 |
content: "\e906";
|
462 |
-
color: #
|
463 |
}
|
464 |
-
|
|
|
465 |
content: "\e907";
|
466 |
-
color: #
|
467 |
}
|
468 |
-
|
|
|
469 |
content: "\e908";
|
470 |
-
color: #
|
471 |
}
|
472 |
-
|
|
|
473 |
content: "\e909";
|
474 |
-
color: #
|
475 |
}
|
476 |
-
|
|
|
477 |
content: "\e90a";
|
478 |
-
color: #
|
479 |
}
|
480 |
-
|
|
|
481 |
content: "\e90b";
|
482 |
-
color: #
|
483 |
}
|
484 |
-
|
|
|
485 |
content: "\e90c";
|
486 |
-
color: #
|
487 |
-
}
|
488 |
-
.icon-trash:before {
|
489 |
-
content: "\e90d";
|
490 |
-
color: #d8d8d8;
|
491 |
-
}
|
492 |
-
.icon-info:before {
|
493 |
-
content: "\e90e";
|
494 |
-
color: #d8d8d8;
|
495 |
}
|
496 |
-
|
497 |
-
|
498 |
-
color: #d8d8d8;
|
499 |
-
}
|
500 |
-
.yith-plugin-fw-banner{
|
501 |
width: 100%;
|
502 |
height: 75px;
|
503 |
background: url('../images/banner-premium.png');
|
504 |
}
|
505 |
-
|
|
|
506 |
height: 290px;
|
507 |
background: url('../images/banner-free.png') no-repeat;
|
508 |
}
|
509 |
-
|
|
|
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
|
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 |
-
|
|
|
554 |
outline: none;
|
555 |
box-shadow: none;
|
556 |
}
|
557 |
|
558 |
-
.yith-plugin-ui{
|
559 |
-
font-family:
|
560 |
}
|
561 |
|
562 |
-
.yith-plugin-ui #wpwrap h2.nav-tab-wrapper, .yith-plugin-ui
|
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:
|
572 |
padding: 7px 20px;
|
573 |
border: 0;
|
574 |
}
|
575 |
-
|
|
|
576 |
border-left: 1px solid #d9d9d9;
|
577 |
}
|
578 |
|
579 |
-
.yith-plugin-ui .nav-tab.yith-premium{
|
580 |
background-color: #be421c;
|
581 |
}
|
582 |
-
|
|
|
583 |
background-color: #fff;
|
584 |
color: #336374;
|
585 |
-
border-bottom:1px solid #fff;
|
586 |
}
|
587 |
-
|
|
|
588 |
background-color: #fff;
|
589 |
color: #be421c;
|
590 |
}
|
591 |
-
|
|
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
|
602 |
}
|
603 |
|
604 |
-
.yith-plugin-ui
|
|
|
|
|
|
|
|
|
|
|
605 |
color: #716269;
|
606 |
-
font-size:
|
607 |
font-style: normal;
|
608 |
font-weight: 400;
|
609 |
margin-top: 15px;
|
610 |
margin-left: 0;
|
611 |
}
|
612 |
-
|
|
|
613 |
border: 0;
|
614 |
-
border-bottom
|
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:
|
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 |
-
|
|
|
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:
|
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,14 +809,22 @@ 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 |
}
|
727 |
|
728 |
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].small-text,
|
@@ -738,27 +840,27 @@ YITH UI
|
|
738 |
}
|
739 |
|
740 |
.yith-plugin-ui select:focus,
|
741 |
-
.yith-plugin-ui input
|
742 |
-
border-color: #a7d9ec;
|
743 |
}
|
744 |
|
745 |
.woocommerce .yith-plugin-ui table.form-table select,
|
746 |
-
.yith-plugin-ui select{
|
747 |
-webkit-appearance: none;
|
748 |
-
line-height: 1;
|
749 |
min-height: 35px;
|
750 |
background: url("../images/arrow_down.svg") no-repeat right center;
|
751 |
background-size: 35px 13px;
|
752 |
border-radius: 8px;
|
|
|
753 |
}
|
754 |
|
755 |
-
.yith-plugin-ui .form-table th{
|
756 |
-
width:
|
757 |
padding-right: 50px;
|
758 |
}
|
759 |
|
760 |
/** BUTTONS **/
|
761 |
-
.yith-plugin-ui .tablenav .button.action,
|
762 |
.wp-core-ui .yith-plugin-ui .button-primary,
|
763 |
.wp-core-ui .yith-plugin-ui .button-secondary,
|
764 |
.yith-plugin-ui .yith-add-button,
|
@@ -786,12 +888,14 @@ YITH UI
|
|
786 |
line-height: 26px;
|
787 |
display: inline-block;
|
788 |
text-decoration: none;
|
|
|
789 |
}
|
|
|
790 |
.wp-core-ui .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button-reset,
|
791 |
.wp-core-ui .yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button,
|
792 |
.yith-plugin-ui .yith-plugin-fw-upload-button-reset,
|
793 |
.yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button-reset,
|
794 |
-
.yith-plugin-ui .button-secondary.yith-plugin-fw-upload-button{
|
795 |
height: 38px;
|
796 |
}
|
797 |
|
@@ -801,49 +905,55 @@ YITH UI
|
|
801 |
.yith-plugin-ui .yith-save-button:focus,
|
802 |
.yith-plugin-ui .yith-edit-button:focus,
|
803 |
.yith-plugin-ui .yith-update-button:focus,
|
804 |
-
.wp-core-ui .yith-plugin-ui .button-secondary:focus{
|
805 |
outline: none;
|
806 |
box-shadow: none;
|
807 |
}
|
808 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
809 |
/** button with inside a span with icon class */
|
810 |
-
.yith-plugin-ui .button-secondary span.yith-icon{
|
811 |
margin-left: 0px;
|
812 |
margin-right: 10px;
|
813 |
line-height: normal;
|
814 |
}
|
815 |
|
816 |
-
.yith-plugin-ui .button-secondary span.yith-icon:before{
|
817 |
color: #656565;
|
818 |
font-size: 15px;
|
819 |
}
|
820 |
|
821 |
-
|
822 |
.wp-core-ui .yith-plugin-ui .button:focus,
|
823 |
.wp-core-ui .yith-plugin-ui .button-secondary:focus,
|
824 |
.yith-plugin-ui .yith-save-button:hover,
|
825 |
.wp-core-ui .yith-plugin-ui .button-secondary:hover,
|
826 |
-
.yith-plugin-ui .yith-plugin-fw-upload-button-reset:hover{
|
827 |
background-color: #cacaca;
|
828 |
color: #515151;
|
829 |
}
|
830 |
|
831 |
.wp-core-ui .yith-plugin-ui .button-primary,
|
832 |
-
.yith-plugin-ui .tablenav .button.action,
|
833 |
.yith-plugin-ui .button-secondary.yith-plugin-fw-select-all,
|
834 |
-
.yith-plugin-ui
|
835 |
background-color: #007694;
|
836 |
color: #fff;
|
837 |
}
|
838 |
|
839 |
-
|
840 |
-
.yith-plugin-ui .tablenav .button.action:focus,
|
841 |
-
.yith-plugin-ui .tablenav .button.action:hover,
|
842 |
.yith-plugin-ui .yith-add-button,
|
843 |
.wp-core-ui .yith-plugin-ui .button-primary:focus,
|
844 |
-
.wp-core-ui .yith-plugin-ui .button-primary:hover{
|
845 |
background-color: #375f6b;
|
846 |
color: #fff;
|
|
|
847 |
}
|
848 |
|
849 |
|
@@ -851,7 +961,7 @@ YITH UI
|
|
851 |
.wp-core-ui .yith-plugin-ui .yith-plugin-fw-upload-button:focus,
|
852 |
.yith-plugin-ui .button-secondary.yith-plugin-fw-select-all:hover,
|
853 |
.yith-plugin-ui .button-secondary.yith-plugin-fw-select-all:focus,
|
854 |
-
.yith-plugin-ui
|
855 |
border-color: #007694;
|
856 |
background: #007694;
|
857 |
color: #fff;
|
@@ -864,13 +974,13 @@ YITH UI
|
|
864 |
.yith-plugin-ui .yith-save-button:before,
|
865 |
.yith-plugin-ui .yith-edit-button:before,
|
866 |
.yith-plugin-ui .yith-update-button:before,
|
867 |
-
.yith-plugin-ui .button-secondary:before{
|
868 |
font-family: 'yith-icon';
|
869 |
font-size: 10px;
|
870 |
font-weight: 700;
|
871 |
margin-right: 10px;
|
872 |
vertical-align: bottom;
|
873 |
-
display:inline-block;
|
874 |
}
|
875 |
|
876 |
/** yith-edit-button **/
|
@@ -878,25 +988,30 @@ YITH UI
|
|
878 |
background-color: #7f9298;
|
879 |
color: #fff;
|
880 |
}
|
|
|
881 |
.yith-plugin-ui .yith-edit-button:focus,
|
882 |
.yith-plugin-ui .yith-edit-button:hover {
|
883 |
background-color: #718085;
|
884 |
color: #fff;
|
885 |
}
|
886 |
-
|
|
|
887 |
content: "\e907";
|
888 |
}
|
|
|
889 |
/** yith-update-button **/
|
890 |
.yith-plugin-ui .yith-update-button {
|
891 |
background-color: #94aa09;
|
892 |
color: #fff;
|
893 |
}
|
|
|
894 |
.yith-plugin-ui .yith-update-button:focus,
|
895 |
.yith-plugin-ui .yith-update-button:hover {
|
896 |
background-color: #7a9009;
|
897 |
color: #fff;
|
898 |
}
|
899 |
-
|
|
|
900 |
content: "\e90b";
|
901 |
font-size: 15px;
|
902 |
}
|
@@ -907,6 +1022,7 @@ YITH UI
|
|
907 |
background-color: #267390;
|
908 |
color: #fff;
|
909 |
}
|
|
|
910 |
.yith-plugin-ui .yith-save-button:focus,
|
911 |
.yith-plugin-ui .yith-save-button:hover {
|
912 |
background-color: #1c4863;
|
@@ -916,111 +1032,132 @@ YITH UI
|
|
916 |
|
917 |
/** yith-remove-button **/
|
918 |
|
919 |
-
.yith-plugin-ui .button-secondary.yith-remove-button:before{
|
920 |
content: "\e90d";
|
921 |
font-size: 15px;
|
922 |
}
|
923 |
|
924 |
|
925 |
/** yith-add-button **/
|
926 |
-
|
927 |
-
.yith-plugin-ui .yith-add-button:before{
|
928 |
content: "\e90a";
|
929 |
}
|
930 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
931 |
/** yith-plugin-fw-upload-button **/
|
932 |
-
.yith-plugin-ui
|
933 |
content: "\e90c";
|
934 |
font-family: 'yith-icon';
|
935 |
font-size: 19px;
|
936 |
font-weight: 400;
|
937 |
margin-right: 10px;
|
938 |
vertical-align: middle;
|
939 |
-
display:inline-block;
|
940 |
}
|
|
|
941 |
/** SELECT 2 **/
|
942 |
.yith-plugin-ui .select2-container,
|
943 |
-
.yith-plugin-ui
|
944 |
height: auto;
|
945 |
padding: 2px;
|
946 |
outline: none;
|
947 |
}
|
948 |
|
949 |
-
.yith-plugin-ui
|
950 |
margin: 0;
|
951 |
border: 0;
|
952 |
}
|
953 |
|
954 |
/* old panel*/
|
955 |
|
956 |
-
.yith-plugin-ui
|
957 |
border: 1px solid #d8d8d8;
|
958 |
-
border-radius:8px;
|
959 |
}
|
960 |
-
|
961 |
-
.yith-plugin-ui
|
962 |
-
.yith-plugin-ui
|
|
|
963 |
border-color: #a7d9ec;
|
964 |
}
|
965 |
-
|
|
|
966 |
color: #fff;
|
967 |
}
|
|
|
968 |
.woocommerce.yith-plugin-fw-panel .yith-plugin-ui table.form-table input[type=text].select2-search__field,
|
969 |
-
.yith-plugin-ui .yith-plugin-fw table.form-table input.select2-search__field{
|
970 |
border: 0;
|
971 |
padding: 0;
|
972 |
height: initial;
|
973 |
}
|
|
|
974 |
.yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice,
|
975 |
-
.yith-plugin-ui .select2-selection__choice{
|
976 |
color: #fff;
|
977 |
background-color: #4e8ba2;
|
978 |
border-radius: 12px;
|
979 |
padding: 3px 11px;
|
980 |
border-color: #33937e;
|
981 |
-
font-size:
|
982 |
}
|
983 |
|
984 |
-
.yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__arrow:before{
|
985 |
content: "\e900";
|
986 |
font-family: 'yith-icon' !important;
|
987 |
line-height: 36px;
|
988 |
color: #d9d9d9;
|
989 |
}
|
990 |
|
991 |
-
.yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__arrow b{
|
992 |
display: none;
|
993 |
}
|
|
|
994 |
.yith-plugin-ui .select2-container--open .select2-dropdown--below,
|
995 |
.yith-plugin-ui .select2-container--open .select2-dropdown--above,
|
996 |
.yith-plugin-fw-panel .select2-container--open .select2-dropdown--below,
|
997 |
.yith-plugin-fw-panel .select2-container--open .select2-dropdown--above {
|
998 |
margin-top: 10px;
|
999 |
border-radius: 8px;
|
1000 |
-
box-shadow:0 2px 4px 0 rgba(0,0,0,0.12),0 2px 10px 0 rgba(0,0,0,0.12) !important;
|
1001 |
}
|
|
|
1002 |
.yith-plugin-ui .select2-container--open .select2-dropdown--above,
|
1003 |
-
.yith-plugin-fw-panel .select2-container--open .select2-dropdown--above{
|
1004 |
margin-top: -10px;
|
1005 |
}
|
|
|
1006 |
.yith-plugin-ui .select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
|
1007 |
.yith-plugin-ui .select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
|
1008 |
.yith-plugin-fw-panel .select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
|
1009 |
-
.yith-plugin-fw-panel .select2-container--default.select2-container--open.select2-container--above .select2-selection--single{
|
1010 |
border-radius: 8px;
|
1011 |
}
|
|
|
1012 |
.yith-plugin-ui .select2-results .select2-results__group, .select2-results .select2-results__option:first-child,
|
1013 |
-
.yith-plugin-fw-panel .select2-results .select2-results__group, .select2-results .select2-results__option:first-child{
|
1014 |
border-top-left-radius: 8px;
|
1015 |
border-top-right-radius: 8px;
|
1016 |
}
|
|
|
1017 |
.yith-plugin-ui .select2-results .select2-results__group,
|
1018 |
.yith-plugin-ui .select2-results .select2-results__option:last-child,
|
1019 |
.yith-plugin-fw-panel .select2-results .select2-results__group,
|
1020 |
-
.yith-plugin-fw-panel .select2-results .select2-results__option:last-child{
|
1021 |
border-bottom-left-radius: 8px;
|
1022 |
border-bottom-right-radius: 8px;
|
1023 |
}
|
|
|
1024 |
.yith-plugin-ui .select2-container--default .select2-results__option[data-selected=true],
|
1025 |
.yith-plugin-ui .select2-container--default .select2-results__option[aria-selected=true],
|
1026 |
.yith-plugin-fw-panel .select2-container--default .select2-results__option[data-selected=true],
|
@@ -1028,17 +1165,18 @@ YITH UI
|
|
1028 |
background-color: #fff;
|
1029 |
outline: none;
|
1030 |
}
|
|
|
1031 |
.yith-plugin-ui .select2-container--default .select2-results__option--highlighted[aria-selected],
|
1032 |
.yith-plugin-ui .select2-container--default .select2-results__option--highlighted[data-selected],
|
1033 |
.yith-plugin-fw-panel .select2-container--default .select2-results__option--highlighted[aria-selected],
|
1034 |
-
.yith-plugin-fw-panel .select2-container--default .select2-results__option--highlighted[data-selected]{
|
1035 |
background-color: #e8eff1;
|
1036 |
color: #4e8ba2;
|
1037 |
outline: none;
|
1038 |
}
|
1039 |
|
1040 |
.yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
|
1041 |
-
.yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
|
1042 |
float: right;
|
1043 |
padding-left: 15px;
|
1044 |
text-indent: -9999px;
|
@@ -1047,7 +1185,7 @@ YITH UI
|
|
1047 |
|
1048 |
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after,
|
1049 |
.woocommerce .yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after,
|
1050 |
-
.yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after{
|
1051 |
float: right;
|
1052 |
color: #fff;
|
1053 |
content: "\e906";
|
@@ -1057,79 +1195,86 @@ YITH UI
|
|
1057 |
text-indent: 0;
|
1058 |
}
|
1059 |
|
1060 |
-
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after{
|
1061 |
color: #000;
|
1062 |
}
|
1063 |
|
1064 |
.yith-plugin-ui .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after
|
1065 |
-
.yith-plugin-fw-panel .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:after{
|
1066 |
color: #000;
|
1067 |
}
|
|
|
1068 |
.yith-plugin-ui .select2-container .select2-selection--multiple,
|
1069 |
-
.yith-plugin-ui .select2-container--default.select2-container--focus .select2-selection--multiple{
|
1070 |
border: 0;
|
1071 |
}
|
1072 |
|
1073 |
-
.yith-plugin-fw
|
1074 |
border: 0;
|
1075 |
padding: 0;
|
1076 |
height: auto;
|
1077 |
}
|
1078 |
-
|
1079 |
-
.yith-plugin-
|
|
|
1080 |
position: absolute;
|
1081 |
padding-top: 5px;
|
1082 |
}
|
1083 |
|
1084 |
-
.yith-plugin-ui input[type=text].select2-search__field{
|
1085 |
border: 0;
|
1086 |
padding: 0;
|
1087 |
height: 30px;
|
1088 |
}
|
|
|
1089 |
.yith-plugin-ui .select2-container--default .select2-search--dropdown .select2-search__field,
|
1090 |
-
.yith-plugin-fw-panel
|
1091 |
border: 1px solid #d9d9d9;
|
1092 |
border-radius: 8px;
|
1093 |
box-shadow: none;
|
1094 |
}
|
|
|
1095 |
.yith-plugin-ui .select2-dropdown,
|
1096 |
-
.yith-plugin-fw-panel
|
1097 |
border: 1px solid #d9d9d9;
|
1098 |
}
|
|
|
1099 |
/** RADIO BUTTON **/
|
1100 |
-
.yith-plugin-ui
|
1101 |
-
.yith-plugin-ui
|
1102 |
position: absolute;
|
1103 |
left: -9999px;
|
1104 |
}
|
|
|
1105 |
.yith-plugin-ui [type="radio"]:checked + label,
|
1106 |
-
.yith-plugin-ui [type="radio"]:not(:checked) + label
|
1107 |
-
{
|
1108 |
position: relative;
|
1109 |
padding-left: 35px;
|
1110 |
cursor: pointer;
|
1111 |
line-height: 20px;
|
1112 |
display: inline-block;
|
1113 |
color: #716269;
|
1114 |
-
font-size:
|
1115 |
}
|
|
|
1116 |
.yith-plugin-ui [type="radio"]:checked + label:before,
|
1117 |
-
.yith-plugin-ui
|
1118 |
content: '';
|
1119 |
position: absolute;
|
1120 |
left: 0;
|
1121 |
top: 0;
|
1122 |
-
width:
|
1123 |
-
height:
|
1124 |
border: 1px solid #d8d8d8;
|
1125 |
border-radius: 100%;
|
1126 |
background: #fff;
|
1127 |
}
|
|
|
1128 |
.yith-plugin-ui [type="radio"]:checked + label:after,
|
1129 |
.yith-plugin-ui [type="radio"]:not(:checked) + label:after {
|
1130 |
content: '';
|
1131 |
-
width:
|
1132 |
-
height:
|
1133 |
background: #4e8ba2;
|
1134 |
position: absolute;
|
1135 |
top: 4px;
|
@@ -1138,11 +1283,13 @@ YITH UI
|
|
1138 |
-webkit-transition: all 0.2s ease;
|
1139 |
transition: all 0.2s ease;
|
1140 |
}
|
|
|
1141 |
.yith-plugin-ui [type="radio"]:not(:checked) + label:after {
|
1142 |
opacity: 0;
|
1143 |
-webkit-transform: scale(0);
|
1144 |
transform: scale(0);
|
1145 |
}
|
|
|
1146 |
.yith-plugin-ui [type="radio"]:checked + label:after {
|
1147 |
opacity: 1;
|
1148 |
-webkit-transform: scale(1);
|
@@ -1160,15 +1307,19 @@ YITH UI
|
|
1160 |
border-radius: 3px;
|
1161 |
display: inline-block;
|
1162 |
position: relative;
|
|
|
1163 |
}
|
1164 |
-
|
|
|
1165 |
background-color: #4e8ba2;
|
1166 |
border-color: #488197;
|
1167 |
}
|
|
|
1168 |
.yith-plugin-ui .forminp-checkbox span.description.inline {
|
1169 |
margin-left: 10px;
|
1170 |
}
|
1171 |
-
|
|
|
1172 |
display: none;
|
1173 |
}
|
1174 |
|
@@ -1187,55 +1338,63 @@ YITH UI
|
|
1187 |
display: none;
|
1188 |
}
|
1189 |
|
1190 |
-
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span{
|
1191 |
border: 1px solid #d8d8d8;
|
1192 |
background-color: #fff;
|
1193 |
-
width:
|
|
|
1194 |
}
|
1195 |
|
1196 |
-
.yith-plugin-ui
|
1197 |
background-color: #d8d8d8;
|
1198 |
}
|
1199 |
|
1200 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
|
1201 |
width: 14px;
|
1202 |
height: 14px;
|
1203 |
-
top:
|
1204 |
-
left:
|
1205 |
background-color: #d8d8d8;
|
1206 |
}
|
1207 |
-
|
|
|
1208 |
content: 'OFF';
|
1209 |
width: 14px;
|
1210 |
height: 14px;
|
1211 |
-
font-size:
|
1212 |
-
|
|
|
1213 |
color: #979797;
|
|
|
|
|
1214 |
}
|
|
|
1215 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span,
|
1216 |
-
.yith-plugin-ui .yith-plugin-fw-onoff-container input.onoffchecked + span{
|
1217 |
background-color: #fff;
|
1218 |
border-color: #98aa36;
|
1219 |
}
|
1220 |
|
1221 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before,
|
1222 |
-
.yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before{
|
1223 |
background-color: #98aa36;
|
1224 |
-
left:
|
1225 |
}
|
1226 |
|
1227 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after,
|
1228 |
-
.yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after{
|
1229 |
content: 'ON';
|
1230 |
color: #98aa36;
|
1231 |
width: 14px;
|
1232 |
height: 14px;
|
1233 |
display: inline-block;
|
1234 |
-
font-size:
|
|
|
1235 |
padding: 0 10px;
|
|
|
1236 |
}
|
1237 |
|
1238 |
-
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span{
|
1239 |
text-indent: 0;
|
1240 |
}
|
1241 |
|
@@ -1244,48 +1403,78 @@ YITH UI
|
|
1244 |
DATEPICKER
|
1245 |
*/
|
1246 |
.yith-plugin-ui div#ui-datepicker-div,
|
1247 |
-
.yith-plugin-fw-panel
|
1248 |
border: 0;
|
1249 |
-
box-shadow:0 2px 4px 0 rgba(0,0,0,0.12),0 2px 10px 0 rgba(0,0,0,0.12) !important;
|
1250 |
}
|
1251 |
|
1252 |
.yith-plugin-ui .ui-datepicker-header.ui-widget-header,
|
1253 |
.yith-plugin-fw-panel .ui-datepicker-header.ui-widget-header {
|
1254 |
-
background
|
1255 |
color: #fff;
|
1256 |
font-size: 11px;
|
1257 |
line-height: 25px;
|
1258 |
-
border:0;
|
1259 |
min-height: 25px;
|
1260 |
}
|
|
|
1261 |
.yith-plugin-ui .ui-datepicker-title,
|
1262 |
-
.yith-plugin-fw-panel .ui-datepicker-title{
|
1263 |
line-height: 25px;
|
1264 |
}
|
|
|
1265 |
.yith-plugin-ui .ui-datepicker th,
|
1266 |
-
.yith-plugin-fw-panel .ui-datepicker th{
|
1267 |
color: #716269;
|
1268 |
}
|
|
|
1269 |
.yith-plugin-ui .ui-widget-header .ui-icon,
|
1270 |
.yith-plugin-ui .ui-widget-header .ui-state-hover,
|
1271 |
-
.yith-plugin-ui .ui-datepicker
|
1272 |
-
.yith-plugin-ui .ui-datepicker
|
1273 |
.yith-plugin-ui .ui-icon.ui-icon-circle-triangle-w,
|
1274 |
.yith-plugin-ui .ui-icon.ui-icon-circle-triangle-e,
|
1275 |
.yith-plugin-fw-panel .ui-widget-header .ui-icon,
|
1276 |
.yith-plugin-fw-panel .ui-widget-header .ui-state-hover,
|
1277 |
-
.yith-plugin-fw-panel .ui-datepicker
|
1278 |
-
.yith-plugin-fw-panel .ui-datepicker
|
1279 |
.yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-w,
|
1280 |
-
.yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-e{
|
1281 |
background: none;
|
1282 |
content: "";
|
1283 |
border: 0;
|
1284 |
text-indent: 0;
|
1285 |
-
width:15px;
|
1286 |
height: 20px;
|
1287 |
-
display:block;
|
1288 |
-
overflow:hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1289 |
}
|
1290 |
|
1291 |
.yith-plugin-ui .ui-icon.ui-icon-circle-triangle-w:before,
|
@@ -1295,9 +1484,10 @@ DATEPICKER
|
|
1295 |
font-family: 'yith-icon';
|
1296 |
font-size: 12px;
|
1297 |
font-weight: normal;
|
1298 |
-
width:15px;
|
1299 |
-
display:block;
|
1300 |
}
|
|
|
1301 |
.yith-plugin-ui .ui-icon.ui-icon-circle-triangle-e:before,
|
1302 |
.yith-plugin-fw-panel .ui-icon.ui-icon-circle-triangle-e:before {
|
1303 |
content: "\e902";
|
@@ -1306,37 +1496,39 @@ DATEPICKER
|
|
1306 |
font-family: 'yith-icon';
|
1307 |
font-size: 12px;
|
1308 |
font-weight: normal;
|
1309 |
-
width:15px;
|
1310 |
-
display:block;
|
1311 |
}
|
1312 |
|
1313 |
/* arrow */
|
1314 |
-
.yith-plugin-ui .ui-datepicker
|
1315 |
-
.yith-plugin-ui .ui-datepicker
|
1316 |
.yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev-hover,
|
1317 |
.yith-plugin-ui .ui-datepicker-prev.ui-datepicker-next-hover,
|
1318 |
-
.yith-plugin-fw-panel .ui-datepicker
|
1319 |
-
.yith-plugin-fw-panel .ui-datepicker
|
1320 |
.yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev-hover,
|
1321 |
-
.yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-next-hover{
|
1322 |
top: 1px;
|
1323 |
cursor: pointer;
|
1324 |
}
|
|
|
1325 |
.yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev,
|
1326 |
.yith-plugin-ui .ui-datepicker-prev.ui-datepicker-prev-hover,
|
1327 |
.yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev,
|
1328 |
-
.yith-plugin-fw-panel .ui-datepicker-prev.ui-datepicker-prev-hover{
|
1329 |
left: 5px;
|
1330 |
}
|
|
|
1331 |
.yith-plugin-ui .ui-datepicker .ui-datepicker-next,
|
1332 |
.yith-plugin-ui .ui-datepicker-next.ui-datepicker-next-hover,
|
1333 |
.yith-plugin-fw-panel .ui-datepicker .ui-datepicker-next,
|
1334 |
-
.yith-plugin-fw-panel .ui-datepicker-next.ui-datepicker-next-hover{
|
1335 |
right: 1px;
|
1336 |
}
|
1337 |
|
1338 |
-
.yith-plugin-ui
|
1339 |
-
.yith-plugin-fw-panel .ui-datepicker table{
|
1340 |
font-size: 10px;
|
1341 |
}
|
1342 |
|
@@ -1345,11 +1537,12 @@ DATEPICKER
|
|
1345 |
.yith-plugin-ui .ui-widget-header .ui-state-default,
|
1346 |
.yith-plugin-fw-panel .ui-state-default,
|
1347 |
.yith-plugin-fw-panel .ui-widget-content .ui-state-default,
|
1348 |
-
.yith-plugin-fw-panel .ui-widget-header .ui-state-default{
|
1349 |
-
background
|
1350 |
border: 1px solid #d9d9d9;
|
1351 |
|
1352 |
}
|
|
|
1353 |
.yith-plugin-ui .ui-state-hover,
|
1354 |
.yith-plugin-ui .ui-widget-content .ui-state-hover,
|
1355 |
.yith-plugin-ui a.ui-state-default:focus,
|
@@ -1359,12 +1552,13 @@ DATEPICKER
|
|
1359 |
.yith-plugin-fw-panel .ui-widget-content .ui-state-hover,
|
1360 |
.yith-plugin-fw-panel a.ui-state-default:focus,
|
1361 |
.yith-plugin-fw-panel .ui-widget-content .ui-state-focus,
|
1362 |
-
.yith-plugin-fw-panel .ui-widget-header .ui-state-focus{
|
1363 |
-
background
|
1364 |
-
border:1px solid #bfd5dd;
|
1365 |
outline: none;
|
1366 |
box-shadow: none;
|
1367 |
}
|
|
|
1368 |
.yith-plugin-ui .ui-widget-header .ui-state-hover, .woocommerce .yith-plugin-ui .ui-state-focus,
|
1369 |
.yith-plugin-fw-panel .ui-widget-header .ui-state-hover, .woocommerce .yith-plugin-ui .ui-state-focus {
|
1370 |
background: none;
|
@@ -1372,42 +1566,86 @@ DATEPICKER
|
|
1372 |
}
|
1373 |
|
1374 |
/** colorpicker **/
|
1375 |
-
.yith-plugin-ui .yith-plugin-fw-
|
1376 |
-
|
|
|
|
|
|
|
|
|
1377 |
display: none !important;
|
1378 |
}
|
1379 |
-
|
|
|
1380 |
display: inline !important;
|
1381 |
}
|
1382 |
-
|
1383 |
-
.yith-plugin-ui .yith-plugin-fw-
|
|
|
1384 |
display: block !important;
|
1385 |
}
|
1386 |
-
|
1387 |
-
|
|
|
1388 |
margin-top: 20px;
|
1389 |
}
|
|
|
1390 |
.yith-plugin-ui .yith-plugin-fw input[type=text].wp-color-picker {
|
1391 |
-
border:0;
|
1392 |
padding: 2px 5px;
|
1393 |
-
height:30px;
|
1394 |
}
|
1395 |
-
|
|
|
1396 |
display: none;
|
1397 |
}
|
1398 |
|
1399 |
-
.yith-plugin-ui .wp-picker-container .wp-color-result.button{
|
1400 |
width: 30px;
|
1401 |
height: 30px;
|
1402 |
border: 0;
|
1403 |
box-shadow: none;
|
1404 |
border: 1px solid #d9d9d9;
|
1405 |
margin-bottom: 0;
|
|
|
|
|
1406 |
}
|
1407 |
-
|
1408 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1409 |
}
|
1410 |
-
|
|
|
1411 |
width: auto;
|
1412 |
display: inline-block;
|
1413 |
border: 1px solid #d9d9d9;
|
@@ -1415,26 +1653,26 @@ DATEPICKER
|
|
1415 |
padding: 5px;
|
1416 |
}
|
1417 |
|
1418 |
-
.yith-plugin-ui .iris-picker .iris-square-inner{
|
1419 |
box-shadow: none;
|
1420 |
border: 1px solid #d9d9d9;
|
1421 |
}
|
1422 |
|
1423 |
-
.yith-plugin-ui .yith-single-colorpicker{
|
1424 |
display: inline-block;
|
1425 |
width: 220px;
|
1426 |
}
|
1427 |
|
1428 |
-
.yith-plugin-ui .yith-single-colorpicker > label{
|
1429 |
display: block;
|
1430 |
font-size: 11px;
|
1431 |
font-weight: 600;
|
1432 |
-
margin
|
1433 |
}
|
1434 |
|
1435 |
/* RANGE SLIDER */
|
1436 |
-
.yith-plugin-ui .ui-slider-horizontal .ui-slider-handle{
|
1437 |
-
top: -45px!important;
|
1438 |
}
|
1439 |
|
1440 |
.yith-plugin-ui .ui-slider-horizontal .ui-slider-handle {
|
@@ -1456,6 +1694,7 @@ DATEPICKER
|
|
1456 |
transition: opacity .3s ease-in-out 0s;
|
1457 |
box-shadow: 0px 1px 7px 0px rgba(1, 1, 1, 0.13);
|
1458 |
}
|
|
|
1459 |
.yith-plugin-ui .ui-slider-horizontal .ui-slider-handle:before {
|
1460 |
position: absolute;
|
1461 |
bottom: -3px;
|
@@ -1470,10 +1709,12 @@ DATEPICKER
|
|
1470 |
-ms-transform: rotate(-45deg);
|
1471 |
transform: rotate(-45deg);
|
1472 |
}
|
1473 |
-
|
1474 |
-
|
|
|
1475 |
}
|
1476 |
-
|
|
|
1477 |
content: '';
|
1478 |
width: 17px;
|
1479 |
height: 17px;
|
@@ -1484,12 +1725,13 @@ DATEPICKER
|
|
1484 |
border-radius: 50%;
|
1485 |
box-shadow: 0px 1px 6px 0px rgba(1, 1, 1, 0.25);
|
1486 |
}
|
1487 |
-
|
|
|
1488 |
height: 5px !important;
|
1489 |
}
|
1490 |
|
1491 |
-
.yith-plugin-ui
|
1492 |
-
.yith-plugin-ui
|
1493 |
font-weight: 700;
|
1494 |
font-size: 12px;
|
1495 |
}
|
@@ -1497,56 +1739,78 @@ DATEPICKER
|
|
1497 |
|
1498 |
/* ADD_BOX AND TOGGLE */
|
1499 |
.yith-plugin-ui .yith-add-box,
|
1500 |
-
.yith-plugin-ui .yith-toggle-row{
|
1501 |
-
width:70%;
|
1502 |
border: 1px solid #d9d9d9;
|
1503 |
-
box-shadow:none;
|
1504 |
border-radius: 4px;
|
1505 |
margin: 20px 0;
|
1506 |
padding: 10px;
|
1507 |
box-sizing: border-box;
|
1508 |
background: white;
|
1509 |
}
|
1510 |
-
|
1511 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1512 |
display: none;
|
1513 |
}
|
1514 |
-
|
|
|
1515 |
position: relative;
|
1516 |
}
|
|
|
1517 |
.yith-plugin-ui #plugin-fw-wc .yith-toggle-title h3,
|
1518 |
-
.yith-plugin-ui
|
|
|
1519 |
padding: 0px 20px 0px 25px;
|
1520 |
-
margin: 0;
|
|
|
1521 |
display: inline-block;
|
1522 |
position: relative;
|
1523 |
min-width: 173px;
|
1524 |
box-sizing: border-box;
|
1525 |
font-weight: 600;
|
1526 |
font-size: 15px;
|
|
|
|
|
1527 |
}
|
1528 |
|
1529 |
-
.yith-plugin-ui .yith-toggle-title .subtitle{
|
1530 |
padding-left: 0;
|
1531 |
-
padding-top:8px;
|
1532 |
font-size: 12px;
|
1533 |
}
|
1534 |
|
1535 |
-
.yith-plugin-ui .yith-toggle{
|
1536 |
position: absolute;
|
1537 |
width: 30px;
|
1538 |
-
height: 30px;
|
1539 |
-
display: block;
|
1540 |
cursor: pointer;
|
1541 |
-
left:
|
1542 |
top: 0;
|
1543 |
bottom: 0;
|
|
|
|
|
|
|
1544 |
}
|
1545 |
-
|
|
|
1546 |
color: #405e69;
|
1547 |
}
|
1548 |
|
1549 |
-
.yith-plugin-ui .yith-toggle > span{
|
1550 |
position: absolute;
|
1551 |
right: 50%;
|
1552 |
transition: transform .3s;
|
@@ -1554,133 +1818,170 @@ DATEPICKER
|
|
1554 |
}
|
1555 |
|
1556 |
|
1557 |
-
.yith-plugin-ui .yith-toggle-row-opened .yith-toggle span{
|
1558 |
-
transform:
|
1559 |
}
|
1560 |
|
1561 |
-
.yith-plugin-ui .yith-toggle-content{
|
1562 |
display: none;
|
1563 |
position: relative;
|
1564 |
padding: 30px 25px;
|
1565 |
}
|
1566 |
-
|
1567 |
-
|
|
|
1568 |
}
|
|
|
1569 |
.yith-plugin-ui .yith-add-box-row,
|
1570 |
-
.yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row{
|
1571 |
display: table;
|
1572 |
-
margin-bottom:
|
1573 |
}
|
|
|
1574 |
.yith-plugin-ui .yith-add-box-row label,
|
1575 |
-
.yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row label{
|
1576 |
display: table-cell;
|
1577 |
-
width:
|
1578 |
-
padding-right:
|
1579 |
color: #33373b;
|
1580 |
-
font-size:
|
1581 |
vertical-align: top;
|
1582 |
font-weight: 600;
|
1583 |
}
|
1584 |
-
|
|
|
|
|
1585 |
.yith-plugin-ui .yith-add-box-row .yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper),
|
1586 |
-
.yith-plugin-ui .yith-toggle-row-opened
|
1587 |
-
|
1588 |
width: auto;
|
1589 |
float: none;
|
1590 |
vertical-align: middle;
|
1591 |
position: relative;
|
1592 |
}
|
|
|
1593 |
.yith-plugin-ui .yith-add-box-row span.yith-icon,
|
1594 |
-
.yith-plugin-ui .yith-toggle-row-opened .yith-toggle-content .yith-toggle-content-row span.yith-icon{
|
1595 |
position: absolute;
|
1596 |
right: 15px;
|
1597 |
top: 0;
|
1598 |
bottom: 0;
|
1599 |
}
|
|
|
1600 |
.yith-plugin-ui .yith-add-box-buttons,
|
1601 |
-
.yith-plugin-ui
|
1602 |
text-align: right;
|
1603 |
}
|
|
|
1604 |
.yith-plugin-ui .yith-toggle-onoff {
|
1605 |
position: absolute;
|
1606 |
cursor: pointer;
|
1607 |
right: 0;
|
1608 |
}
|
1609 |
-
|
|
|
1610 |
right: 30px;
|
1611 |
}
|
1612 |
-
|
|
|
1613 |
position: absolute;
|
1614 |
right: 0;
|
1615 |
top: 25%;
|
1616 |
bottom: 0;
|
1617 |
line-height: 1;
|
1618 |
}
|
1619 |
-
|
1620 |
-
|
1621 |
-
}
|
1622 |
-
.yith-plugin-ui .yith-toggle-row.with-subtitle .yith-toggle-onoff{
|
1623 |
top: 25%;
|
1624 |
}
|
1625 |
|
1626 |
/** SPINNER **/
|
1627 |
-
.yith-plugin-ui .spinner{
|
1628 |
vertical-align: -5px;
|
1629 |
float: none;
|
1630 |
}
|
1631 |
|
1632 |
-
.yith-plugin-ui .spinner.show{
|
1633 |
visibility: visible;
|
1634 |
}
|
1635 |
|
1636 |
/* LIST TABLE */
|
1637 |
-
.yith-plugin-ui .form-table .list-table td{
|
1638 |
padding: 15px 0px;
|
1639 |
}
|
1640 |
-
|
|
|
1641 |
border: 1px solid #d8d8d8;
|
1642 |
max-width: 200px;
|
1643 |
max-height: 30px;
|
1644 |
padding: 0 10px;
|
|
|
1645 |
}
|
1646 |
-
|
|
|
1647 |
width: initial;
|
1648 |
}
|
1649 |
|
1650 |
-
.yith-plugin-ui #plugin-fw-wc table.
|
1651 |
-
padding-left: 3px;
|
1652 |
-
}
|
1653 |
-
.yith-plugin-ui #plugin-fw-wc table.wp-list-table tbody td{
|
1654 |
padding-left: 20px;
|
1655 |
}
|
1656 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1657 |
border: 0;
|
1658 |
padding: 35px 0 15px;
|
1659 |
display: inline-block;
|
1660 |
margin-right: 10px;
|
1661 |
}
|
1662 |
-
|
|
|
1663 |
vertical-align: middle;
|
1664 |
}
|
1665 |
-
|
|
|
1666 |
padding: 0 20px;
|
1667 |
}
|
1668 |
-
|
1669 |
-
|
|
|
|
|
|
|
|
|
1670 |
height: 33px;
|
|
|
|
|
1671 |
}
|
1672 |
-
|
|
|
1673 |
margin: 10px 0;
|
1674 |
}
|
1675 |
-
|
1676 |
-
|
|
|
1677 |
margin-bottom: 20px;
|
1678 |
}
|
1679 |
|
1680 |
/** Time picker width*/
|
1681 |
.yith-plugin-ui input.ui-timepicker-input {
|
1682 |
-
width: 100px!important;
|
1683 |
}
|
|
|
1684 |
/** date format **/
|
1685 |
.yith-plugin-ui .yith-plugin-fw-date-format code {
|
1686 |
margin-left: 30px;
|
@@ -1697,51 +1998,64 @@ DATEPICKER
|
|
1697 |
float: left;
|
1698 |
}
|
1699 |
|
|
|
|
|
|
|
|
|
1700 |
.yith-plugin-ui td.forminp-checkbox.three-cols fieldset {
|
1701 |
-
width: calc(33% -
|
1702 |
-
padding-right:
|
1703 |
float: left;
|
1704 |
}
|
1705 |
|
|
|
|
|
|
|
1706 |
|
1707 |
.yith-plugin-fw-checkbox-field-wrapper {
|
1708 |
display: inline-block !important;
|
1709 |
-
width: 19px !important;
|
1710 |
-
margin-right: 10px;
|
1711 |
}
|
|
|
1712 |
.yith-plugin-fw-checkbox-field-wrapper + span.description {
|
1713 |
display: inline-block;
|
1714 |
vertical-align: middle;
|
1715 |
margin: 0;
|
1716 |
}
|
|
|
1717 |
.yith-plugin-ui span.description {
|
1718 |
margin-top: 10px;
|
|
|
1719 |
}
|
|
|
1720 |
.yith-plugin-fw-option-with-description {
|
1721 |
display: table-cell;
|
1722 |
width: auto;
|
1723 |
vertical-align: top;
|
1724 |
}
|
|
|
1725 |
/** YITH PANEL **/
|
1726 |
-
.yith-plugin-ui #yith-plugin-fw-panel{
|
1727 |
margin-top: -10px;
|
1728 |
}
|
1729 |
-
|
|
|
1730 |
padding-top: 0;
|
1731 |
}
|
1732 |
-
|
|
|
1733 |
border: 0;
|
1734 |
}
|
1735 |
|
1736 |
-
@media screen and (max-width: 1440px){
|
1737 |
.yith-plugin-ui .yith-add-box,
|
1738 |
-
.yith-plugin-ui .yith-toggle-row{
|
1739 |
width: 80%;
|
1740 |
}
|
1741 |
}
|
1742 |
-
|
|
|
1743 |
.yith-plugin-ui .yith-add-box,
|
1744 |
-
.yith-plugin-ui .yith-toggle-row{
|
1745 |
width: 90%;
|
1746 |
}
|
1747 |
|
@@ -1752,36 +2066,49 @@ DATEPICKER
|
|
1752 |
}
|
1753 |
|
1754 |
.yith-plugin-ui td.forminp-checkbox.three-cols fieldset {
|
1755 |
-
width: calc(50% -
|
1756 |
-
padding-right:
|
1757 |
float: left;
|
1758 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1759 |
}
|
1760 |
-
|
1761 |
-
|
|
|
1762 |
height: auto;
|
1763 |
background-color: #a9c7d3;
|
1764 |
}
|
1765 |
-
|
|
|
1766 |
width: 90%;
|
1767 |
text-align: center;
|
1768 |
}
|
1769 |
-
|
|
|
1770 |
width: 90%;
|
1771 |
margin: 0 auto;
|
1772 |
}
|
1773 |
-
|
|
|
1774 |
line-height: 1.2em;
|
1775 |
}
|
1776 |
|
1777 |
.yith-plugin-ui .yith-add-box,
|
1778 |
-
.yith-plugin-ui .yith-toggle-row{
|
1779 |
width: 100%;
|
1780 |
}
|
1781 |
|
1782 |
.yith-plugin-ui td.forminp-checkbox.two-cols fieldset,
|
1783 |
-
.yith-plugin-ui td.forminp-checkbox.three-cols fieldset{
|
1784 |
width: 100%;
|
|
|
1785 |
}
|
1786 |
|
1787 |
}
|
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,
|
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;
|
1606 |
box-shadow: none;
|
1607 |
border: 1px solid #d9d9d9;
|
1608 |
margin-bottom: 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;
|
1617 |
+
display: inline-block;
|
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;
|
1625 |
+
padding: 0;
|
1626 |
+
position: absolute;
|
1627 |
+
top: 0;
|
1628 |
+
right: 0;
|
1629 |
+
left: 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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 |
-
}
|
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")})
|
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
|
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,245 +1,270 @@
|
|
1 |
-
|
|
|
|
|
2 |
/* global yith_framework_fw_fields*/
|
3 |
|
4 |
var yith_fields_init = function () {
|
5 |
-
var $datepicker
|
6 |
-
$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
|
15 |
$imageGallery = {
|
16 |
-
sliderWrapper: $('.yith-plugin-fw .image-gallery ul.slides-wrapper'),
|
17 |
buttonHandler: '.yith-plugin-fw .image-gallery-button'
|
18 |
},
|
19 |
-
$sidebars
|
20 |
-
$slider
|
21 |
-
$codemirror
|
22 |
-
$icons
|
23 |
-
$checkgroup
|
24 |
|
25 |
/* Datepicker */
|
26 |
-
$datepicker.each(function () {
|
27 |
-
var args = $(this).data();
|
28 |
-
$(this).datepicker(args);
|
29 |
-
});
|
30 |
|
31 |
/* Colorpicker */
|
32 |
-
$colorpicker.wpColorPicker({
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
-
});
|
42 |
|
43 |
-
$colorpicker.each(function () {
|
44 |
-
var select_label = $(this).data('variations-label');
|
45 |
-
$(this).parent().parent().find('a.wp-color-result').attr('title', select_label);
|
46 |
-
});
|
47 |
|
48 |
/* Upload */
|
49 |
-
if (typeof wp !== 'undefined' && typeof wp.media !== 'undefined') {
|
50 |
var _custom_media = true;
|
51 |
// preview
|
52 |
-
$upload.imgUrl.change(function () {
|
53 |
-
var url
|
54 |
-
re
|
55 |
-
preview = $(this).parent().find($upload.imgPreviewHandler).first();
|
56 |
|
57 |
-
if (preview.length < 1)
|
58 |
-
preview = $(this).parent().parent().find($upload.imgPreviewHandler).first();
|
|
|
59 |
|
60 |
-
if (re.test(url)) {
|
61 |
-
preview.html('<img src="' + url + '" style="max-width:100px; max-height:100px;" />');
|
62 |
} else {
|
63 |
-
preview.html('');
|
64 |
}
|
65 |
-
}).trigger('change');
|
66 |
|
67 |
-
$(document).on('click', $upload.uploadButtonHandler, function (e) {
|
68 |
e.preventDefault();
|
69 |
|
70 |
-
var t
|
71 |
custom_uploader,
|
72 |
-
id = t.attr('id').replace(/-button$/, '');
|
73 |
|
74 |
//If the uploader object has already been created, reopen the dialog
|
75 |
-
if (custom_uploader) {
|
76 |
custom_uploader.open();
|
77 |
return;
|
78 |
}
|
79 |
|
80 |
var custom_uploader_states = [
|
81 |
// Main states.
|
82 |
-
new wp.media.controller.Library({
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
];
|
90 |
|
91 |
// Create the media frame.
|
92 |
-
custom_uploader = wp.media.frames.downloadable_file = wp.media({
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
|
105 |
//When a file is selected, grab the URL and set it as the text field's value
|
106 |
-
custom_uploader.on('select', function () {
|
107 |
-
var attachment = custom_uploader.state().get('selection').first().toJSON();
|
108 |
|
109 |
-
$("#" + id).val(attachment.url);
|
110 |
// Save the id of the selected element to an element which name is the same with a suffix "-yith-attachment-id"
|
111 |
-
if ($("#" + id + "-yith-attachment-id")) {
|
112 |
-
$("#" + id + "-yith-attachment-id").val(attachment.id);
|
113 |
}
|
114 |
-
$upload.imgUrl.trigger('change');
|
115 |
-
});
|
116 |
|
117 |
//Open the uploader dialog
|
118 |
custom_uploader.open();
|
119 |
-
});
|
120 |
|
121 |
-
$(document).on('click', $upload.resetButtonHandler, function (e) {
|
122 |
-
var t
|
123 |
-
id
|
124 |
-
input_id
|
125 |
-
default_value = $('#' + id).data('default');
|
126 |
|
127 |
-
$("#" + input_id).val(default_value);
|
128 |
-
$upload.imgUrl.trigger('change');
|
129 |
-
});
|
130 |
}
|
131 |
|
132 |
-
$wpAddMedia.on('click', function () {
|
133 |
_custom_media = false;
|
134 |
-
});
|
135 |
|
136 |
/* Image Gallery */
|
137 |
-
if (typeof wp !== 'undefined' && typeof wp.media !== 'undefined') {
|
138 |
-
$(document).on('click', $imageGallery.buttonHandler, function (e) {
|
139 |
-
var $t
|
140 |
-
$container
|
141 |
-
$image_gallery_ids
|
142 |
-
attachment_ids
|
143 |
-
$gallery_images_wrapper = $container.find('ul.slides-wrapper');
|
144 |
|
145 |
// Create the media frame.
|
146 |
-
var image_gallery_frame = wp.media.frames.image_gallery = wp.media({
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
|
161 |
// When an image is selected, run a callback.
|
162 |
-
image_gallery_frame.on('select', function () {
|
163 |
-
var selection = image_gallery_frame.state().get('selection');
|
164 |
-
selection.map(function (attachment) {
|
165 |
attachment = attachment.toJSON();
|
166 |
|
167 |
-
if (attachment.id) {
|
168 |
attachment_ids = attachment_ids ? attachment_ids + "," + attachment.id : attachment.id;
|
169 |
-
$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>');
|
170 |
}
|
171 |
-
});
|
172 |
|
173 |
-
$image_gallery_ids.val(attachment_ids);
|
174 |
-
});
|
175 |
|
176 |
image_gallery_frame.open();
|
177 |
|
178 |
-
});
|
179 |
|
180 |
// Image ordering
|
181 |
-
$imageGallery.sliderWrapper.each(function () {
|
182 |
-
var $t = $(this);
|
183 |
-
$t.sortable({
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
});
|
209 |
|
210 |
// Remove images
|
211 |
-
$imageGallery.sliderWrapper.on('click', 'a.delete', function () {
|
212 |
-
var $wrapper
|
213 |
-
$gallery
|
214 |
-
$image_gallery_ids = $wrapper.find('.image_gallery_ids'),
|
215 |
-
attachment_ids
|
216 |
|
217 |
-
$(this).closest('li.image').remove();
|
218 |
|
219 |
-
$gallery.find('li.image').css('cursor', 'default').each(function () {
|
220 |
-
var attachment_id = $(this).attr('data-attachment_id');
|
221 |
-
attachment_ids
|
222 |
-
});
|
223 |
|
224 |
-
$image_gallery_ids.val(attachment_ids);
|
225 |
-
});
|
226 |
}
|
227 |
|
228 |
|
229 |
/* Sidebars */
|
230 |
-
$sidebars.each(function () {
|
231 |
-
var $images = $(this).find('img');
|
232 |
-
$images.on('click', function () {
|
233 |
-
var $container = $(this).closest('.yith-plugin-fw-sidebar-layout'),
|
234 |
-
$left
|
235 |
-
$right
|
236 |
-
type
|
237 |
-
|
238 |
-
$(this).parent().children(':radio').attr('checked', false);
|
239 |
-
$(this).prev(':radio').attr('checked', true);
|
240 |
-
|
241 |
-
if (typeof type != 'undefined') {
|
242 |
-
switch (type) {
|
243 |
case 'left':
|
244 |
$left.show();
|
245 |
$right.hide();
|
@@ -258,156 +283,146 @@ jQuery(function ($) {
|
|
258 |
break;
|
259 |
}
|
260 |
}
|
261 |
-
});
|
262 |
-
});
|
263 |
|
264 |
/* Slider */
|
265 |
-
$slider.each(function () {
|
266 |
-
var val
|
267 |
-
minValue = $(this).data('min'),
|
268 |
-
maxValue = $(this).data('max'),
|
269 |
-
step
|
270 |
-
labels
|
271 |
-
|
272 |
-
$(this).slider({
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
});
|
291 |
|
292 |
/* codemirror */
|
293 |
-
$codemirror.each(function (i, v) {
|
294 |
-
var editor = CodeMirror.fromTextArea(v, {
|
295 |
-
lineNumbers: 1,
|
296 |
-
mode: 'javascript',
|
297 |
showCursorWhenSelecting: true
|
298 |
-
});
|
299 |
|
300 |
-
$(v).data('codemirrorInstance', editor);
|
301 |
-
});
|
302 |
|
303 |
/* Select All - Deselect All */
|
304 |
-
$(document).on('click', '.yith-plugin-fw-select-all', function () {
|
305 |
-
var $targetSelect = $('#' + $(this).data('select-id'));
|
306 |
-
$targetSelect.find('option').prop('selected', true).trigger('change');
|
307 |
-
});
|
308 |
|
309 |
-
$(document).on('click', '.yith-plugin-fw-deselect-all', function () {
|
310 |
-
var $targetSelect = $('#' + $(this).data('select-id'));
|
311 |
-
$targetSelect.find('option').prop('selected', false).trigger('change');
|
312 |
-
});
|
313 |
|
314 |
|
315 |
-
$icons.each(function () {
|
316 |
-
var $container = $(this),
|
317 |
-
$preview
|
318 |
-
$text
|
319 |
|
320 |
-
$container.on('click', '.yit-icons-manager-list li', function (event) {
|
321 |
-
var $target = $(event.target).closest('li'),
|
322 |
-
font
|
323 |
-
icon
|
324 |
-
key
|
325 |
-
name
|
326 |
|
327 |
-
$preview.attr('data-font', font);
|
328 |
-
$preview.attr('data-icon', icon);
|
329 |
-
$preview.attr('data-key', key);
|
330 |
-
$preview.attr('data-name', name);
|
331 |
|
332 |
-
$text.val(font + ':' + name);
|
333 |
|
334 |
-
$container.find('.yit-icons-manager-list li').removeClass('active');
|
335 |
-
$target.addClass('active');
|
336 |
-
});
|
337 |
|
338 |
-
$container.on('click', '.yit-icons-manager-action-set-default', function () {
|
339 |
-
$container.find('.yit-icons-manager-list li.default').trigger('click');
|
340 |
-
});
|
341 |
-
});
|
342 |
|
343 |
/** Select Images */
|
344 |
-
$(document).on('click', '.yith-plugin-fw-select-images__item', function () {
|
345 |
-
var item
|
346 |
-
key
|
347 |
-
wrapper = item.closest('.yith-plugin-fw-select-images__wrapper'),
|
348 |
-
items
|
349 |
-
select
|
350 |
-
|
351 |
-
if (select.length) {
|
352 |
-
select.val(key);
|
353 |
-
items.removeClass('yith-plugin-fw-select-images__item--selected');
|
354 |
-
item.addClass('yith-plugin-fw-select-images__item--selected');
|
355 |
}
|
356 |
-
});
|
357 |
|
358 |
-
$(document.body).trigger('wc-enhanced-select-init');
|
359 |
|
360 |
-
$(document).find('.ui-sortable .yith-toggle-elements').sortable(
|
361 |
{
|
362 |
-
cursor: 'move',
|
363 |
-
axis: 'y',
|
364 |
-
scrollSensitivity: 40,
|
365 |
forcePlaceholderSize: true,
|
366 |
-
helper: 'clone',
|
367 |
|
368 |
-
stop: function (event, ui) {
|
369 |
-
var keys
|
370 |
-
i
|
371 |
array_keys = new Array();
|
372 |
-
for (i = 0; i < keys.length; i++) {
|
373 |
-
array_keys[i] = $(keys[i]).data('item_key');
|
374 |
}
|
375 |
-
if (array_keys.length > 0) {
|
376 |
-
var toggle = $(this).closest('.toggle-element');
|
377 |
-
toggle.saveToggleElement(null, array_keys);
|
378 |
}
|
379 |
}
|
380 |
}
|
381 |
);
|
382 |
|
383 |
-
|
384 |
-
var children = $(this).find('fieldset');
|
385 |
-
if (children.length > 3 && children.length < 6) {
|
386 |
-
$(this).addClass('two-cols')
|
387 |
-
}
|
388 |
-
if (children.length > 6) {
|
389 |
-
$(this).addClass('three-cols')
|
390 |
-
}
|
391 |
-
});
|
392 |
-
|
393 |
-
$(document.body).trigger('yith-framework-enhanced-select-init');
|
394 |
};
|
395 |
|
396 |
yith_fields_init();
|
397 |
|
398 |
/* on-off */
|
399 |
-
$(document).on('click', '.yith-plugin-fw-onoff-container span', function () {
|
400 |
-
var input
|
401 |
-
checked = input.prop('checked');
|
402 |
|
403 |
-
if (checked) {
|
404 |
-
input.prop('checked', false).attr('value', 'no').removeClass('onoffchecked');
|
405 |
} else {
|
406 |
-
input.prop('checked', true).attr('value', 'yes').addClass('onoffchecked');
|
407 |
}
|
408 |
|
409 |
input.change();
|
410 |
-
});
|
411 |
|
412 |
|
413 |
/** Toggle **/
|
@@ -415,222 +430,274 @@ jQuery(function ($) {
|
|
415 |
|
416 |
|
417 |
//TOGGLE ELEMENT
|
418 |
-
$.fn.saveToggleElement = function (spinner, array_keys) {
|
419 |
-
var toggle
|
420 |
-
action
|
421 |
-
formdata
|
422 |
-
id
|
423 |
-
current_tab = $.urlParam('tab');
|
424 |
-
|
425 |
-
if (typeof array_keys != 'undefined' && array_keys.length > 0) {
|
426 |
-
formdata.append('yith_toggle_elements_order_keys', array_keys);
|
427 |
}
|
428 |
|
429 |
-
if (toggle.closest('.metaboxes-tab.yith-plugin-ui').length) {
|
430 |
-
action
|
431 |
-
post_id
|
432 |
-
yit_metaboxes_nonce = $(this).closest('form#post').find('#yit_metaboxes_nonce').val();
|
433 |
-
url
|
434 |
} else {
|
435 |
url = yith_framework_fw_fields.admin_url + '?action=' + action + '&tab=' + current_tab + "&toggle_id=" + id;
|
436 |
}
|
437 |
|
438 |
-
$.ajax({
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
};
|
453 |
|
454 |
$.fn.serializeToggleElement = function () {
|
455 |
-
var obj = $(this);
|
456 |
/* ADD FILE TO PARAM AJAX */
|
457 |
var formData = new FormData();
|
458 |
-
var params
|
459 |
|
460 |
-
$.each(params, function (i, val) {
|
461 |
el_name = val.name;
|
462 |
-
formData.append(val.name, val.value);
|
463 |
-
});
|
464 |
|
465 |
return formData;
|
466 |
};
|
467 |
|
468 |
$.fn.formatToggleTitle = function () {
|
469 |
-
var toggle_el = $(this),
|
470 |
-
fields
|
471 |
-
title
|
472 |
-
subtitle
|
473 |
-
regExp
|
474 |
|
475 |
-
if (typeof title != 'undefined') {
|
476 |
var res = title.match( regExp );
|
477 |
}
|
478 |
|
479 |
-
if (typeof subtitle != 'undefined') {
|
480 |
var ressub = subtitle.match( regExp );
|
481 |
}
|
482 |
|
483 |
-
$.each(fields, function (i, field) {
|
484 |
-
if (typeof $(field).attr('id') != 'undefined') {
|
485 |
-
$field_id
|
486 |
-
$field_array = $field_id.split('_');
|
487 |
$field_array.pop();
|
488 |
-
$field_id
|
489 |
-
$field_val = $(field).val();
|
490 |
|
491 |
-
if (res != null && typeof res != 'undefined' && res.indexOf($field_id) !== -1) {
|
492 |
-
title = title.replace('%%' + $field_id + '%%', $field_val);
|
493 |
}
|
494 |
-
if (ressub != null && typeof ressub != 'undefined' && ressub.indexOf($field_id) !== -1) {
|
495 |
-
subtitle = subtitle.replace('%%' + $field_id + '%%', $field_val);
|
496 |
}
|
497 |
}
|
498 |
-
});
|
499 |
|
500 |
-
if ('' !== title) {
|
501 |
-
toggle_el.find('span.title').html(title);
|
502 |
}
|
503 |
|
504 |
-
if ('' !== subtitle) {
|
505 |
-
toggle_el.find('.subtitle').html(subtitle);
|
506 |
}
|
507 |
|
508 |
-
$(document).trigger('yith-toggle-element-item-title', [toggle_el]);
|
509 |
};
|
510 |
|
511 |
-
$.urlParam = function (name) {
|
512 |
-
var results = new RegExp('[\?&]' + name + '=([^&#]*)')
|
513 |
-
.exec(window.location.search);
|
514 |
|
515 |
-
return (results !== null) ? results[1] || 0 : false;
|
516 |
};
|
517 |
|
518 |
-
$(document).on('click', '.yith-toggle', function (event) {
|
519 |
-
var _toggle
|
520 |
-
_section = _toggle.closest('.yith-toggle-row'),
|
521 |
-
_content = _section.find('.yith-toggle-content');
|
|
|
|
|
|
|
|
|
522 |
|
523 |
-
if (_section.is('.yith-toggle-row-opened')) {
|
524 |
-
_content.slideUp(400);
|
525 |
} else {
|
526 |
-
_content.slideDown(400);
|
527 |
}
|
528 |
-
_section.toggleClass('yith-toggle-row-opened');
|
529 |
-
});
|
530 |
|
531 |
/**Add new box toggle**/
|
532 |
-
$(document).on('click', '.yith-add-box-button', function (event) {
|
533 |
event.preventDefault();
|
534 |
-
var
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
$('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
539 |
yith_fields_init();
|
540 |
-
$(document).trigger('yith-add-box-button-toggle', [$
|
541 |
}
|
542 |
-
});
|
|
|
|
|
543 |
|
544 |
-
$(document).on('click', '.yith-add-box-buttons .yith-save-button', function (event) {
|
545 |
event.preventDefault();
|
546 |
-
var add_box
|
547 |
-
id
|
548 |
-
spinner
|
549 |
-
toggle_element = $(this).parents('.toggle-element'),
|
550 |
-
fields
|
551 |
-
counter
|
552 |
-
hidden_obj
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
counter
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
|
|
|
|
571 |
$field_id = $field_id + '_dataindex-' + $field_val;
|
572 |
} else {
|
573 |
-
$field_id = $field_id.replace('new_', '') + '_' + counter;
|
574 |
}
|
575 |
|
576 |
-
if ($(field).is(':checked')) {
|
577 |
-
$(toggle_el).find('#' + $field_id).prop('checked', true);
|
578 |
}
|
579 |
|
580 |
-
if ($(field).hasClass('yith-post-search') || $(field).hasClass('yith-term-search')) {
|
581 |
-
$(toggle_el).find('#' + $field_id).html($('#' + $(field).attr('id')).html());
|
582 |
}
|
583 |
|
584 |
-
$(toggle_el).find('#' + $field_id).val($field_val);
|
585 |
|
586 |
}
|
587 |
|
588 |
-
});
|
589 |
|
590 |
-
$(toggle_el).formatToggleTitle();
|
591 |
-
var form_is_valid = $('<input type="hidden">').val('yes');
|
592 |
-
$(document).trigger('yith-toggle-element-item-before-add', [add_box, toggle_el, form_is_valid]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
593 |
|
594 |
|
595 |
-
if (form_is_valid.val() === 'yes') {
|
596 |
-
$(toggle_element).find('.yith-toggle-elements').append(toggle_el);
|
597 |
-
$(add_box).find('.yith-plugin-fw-datepicker').datepicker('destroy');
|
598 |
-
$(add_box).html('').toggle();
|
599 |
-
toggle_element.saveToggleElement();
|
600 |
-
yith_fields_init();
|
601 |
-
}
|
602 |
-
});
|
603 |
|
604 |
-
|
|
|
|
|
605 |
event.preventDefault();
|
606 |
-
var toggle
|
607 |
-
toggle_row = $(this).closest('.yith-toggle-row'),
|
608 |
-
spinner
|
609 |
-
|
610 |
-
|
611 |
-
var form_is_valid = $('<input type="hidden">').val('yes');
|
612 |
-
$(document).trigger('yith-toggle-element-item-before-update', [toggle, toggle_row, form_is_valid]);
|
613 |
-
if (form_is_valid.val() === 'yes') {
|
614 |
-
spinner.addClass('show');
|
615 |
-
toggle.saveToggleElement(spinner);
|
616 |
}
|
617 |
-
});
|
618 |
|
619 |
//register remove the dome and save the toggle
|
620 |
-
$(document).on('click', '.yith-toggle-row .yith-delete-button', function (event) {
|
621 |
event.preventDefault();
|
622 |
-
var toggle
|
623 |
-
toggle_row = $(this).closest('.yith-toggle-row');
|
624 |
toggle_row.remove();
|
625 |
toggle.saveToggleElement();
|
626 |
-
});
|
627 |
|
628 |
//register onoff status
|
629 |
-
$(document).on('click', '.yith-toggle-onoff', function (event) {
|
630 |
event.preventDefault();
|
631 |
-
var toggle = $(this).closest('.toggle-element');
|
632 |
toggle.saveToggleElement();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
633 |
});
|
634 |
|
|
|
|
|
|
|
635 |
|
636 |
-
});
|
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@?^=%&:/~+#-_.]*.(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 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"),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");g(this).parent().parent().find("a.wp-color-result").attr("title",e)}),"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@?^=%&:/~+#-_.]*.(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")}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",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(),h(),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(),h())}),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@?^=%&:/~+#-_.]*.(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.
|
5 |
* Author: YITHEMES
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
-
* @version 3.3.
|
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',
|
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 |
-
|
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 |
-
|
93 |
-
|
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 |
-
|
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 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
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 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
|
554 |
-
|
555 |
|
556 |
-
|
557 |
|
558 |
-
|
559 |
|
560 |
-
|
561 |
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
|
568 |
-
|
569 |
-
|
570 |
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
|
577 |
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
|
582 |
|
583 |
-
|
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 |
-
|
|
|
|
|
|
|
|
|
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 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
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 – %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 – %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,11 +17,16 @@ 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 ?>"
|
23 |
id="<?php echo $id ?>" value="<?php echo esc_attr( $value ) ?>"
|
24 |
-
<?php if ( isset( $
|
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 ?>"
|
27 |
id="<?php echo $id ?>" value="<?php echo esc_attr( $value ) ?>"
|
28 |
+
<?php if ( isset( $default ) ) : ?> data-default-color="<?php echo $default ?>"<?php endif ?>
|
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 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
?>
|
33 |
-
<div class="yith-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/select.php
CHANGED
@@ -22,9 +22,10 @@ if ( $multiple && !is_array( $value ) )
|
|
22 |
$class = isset( $class ) ? $class : 'yith-plugin-fw-select';
|
23 |
?>
|
24 |
<select<?php echo $multiple_html ?>
|
25 |
-
|
26 |
name="<?php echo $name ?><?php if ( $multiple ) echo "[]" ?>" <?php if ( isset( $std ) ) : ?>
|
27 |
data-std="<?php echo ( $multiple ) ? implode( ' ,', $std ) : $std ?>"<?php endif ?>
|
|
|
28 |
class="<?php echo $class ?>"
|
29 |
<?php echo $placeholder ?>
|
30 |
<?php echo $custom_attributes ?>
|
22 |
$class = isset( $class ) ? $class : 'yith-plugin-fw-select';
|
23 |
?>
|
24 |
<select<?php echo $multiple_html ?>
|
25 |
+
id="<?php echo $id ?>"
|
26 |
name="<?php echo $name ?><?php if ( $multiple ) echo "[]" ?>" <?php if ( isset( $std ) ) : ?>
|
27 |
data-std="<?php echo ( $multiple ) ? implode( ' ,', $std ) : $std ?>"<?php endif ?>
|
28 |
+
|
29 |
class="<?php echo $class ?>"
|
30 |
<?php echo $placeholder ?>
|
31 |
<?php echo $custom_attributes ?>
|
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"
|
|
|
|
|
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
|
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']
|
|
|
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/fields/upload.php
CHANGED
@@ -14,15 +14,15 @@
|
|
14 |
|
15 |
extract( $field );
|
16 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
<input type="text" id="<?php echo $id ?>" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ) ?>" <?php if ( isset( $default ) ) : ?>data-std="<?php echo $default ?>"<?php endif ?> class="yith-plugin-fw-upload-img-url"/>
|
18 |
<button class="button-secondary yith-plugin-fw-upload-button" id="<?php echo $id ?>-button"><?php _e( 'Upload', 'yith-plugin-fw' ) ?></button>
|
19 |
<button type="button" id="<?php echo $id ?>-button-reset" class="yith-plugin-fw-upload-button-reset button"
|
20 |
data-default="<?php echo isset( $default ) ? $default : '' ?>"><?php _e( 'Reset', 'yith-plugin-fw' ) ?></button>
|
21 |
-
<div class="yith-plugin-fw-upload-img-preview" style="margin-top:10px;">
|
22 |
-
<?php
|
23 |
-
$file = $value;
|
24 |
-
if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
|
25 |
-
echo "<img src='$file' style='max-width:600px; max-height:300px;' />";
|
26 |
-
}
|
27 |
-
?>
|
28 |
-
</div>
|
14 |
|
15 |
extract( $field );
|
16 |
?>
|
17 |
+
<div class="yith-plugin-fw-upload-img-preview" style="margin-top:10px;">
|
18 |
+
<?php
|
19 |
+
$file = $value;
|
20 |
+
if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
|
21 |
+
echo "<img src='$file' style='max-width:600px; max-height:300px;' />";
|
22 |
+
}
|
23 |
+
?>
|
24 |
+
</div>
|
25 |
<input type="text" id="<?php echo $id ?>" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ) ?>" <?php if ( isset( $default ) ) : ?>data-std="<?php echo $default ?>"<?php endif ?> class="yith-plugin-fw-upload-img-url"/>
|
26 |
<button class="button-secondary yith-plugin-fw-upload-button" id="<?php echo $id ?>-button"><?php _e( 'Upload', 'yith-plugin-fw' ) ?></button>
|
27 |
<button type="button" id="<?php echo $id ?>-button-reset" class="yith-plugin-fw-upload-button-reset button"
|
28 |
data-default="<?php echo isset( $default ) ? $default : '' ?>"><?php _e( 'Reset', 'yith-plugin-fw' ) ?></button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce catalog mode plugin, woocommerce catalog only, woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -113,6 +113,11 @@ yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
|
|
|
|
116 |
= Version 1.6.9 - Released: June 12, 2019 =
|
117 |
|
118 |
* Update: plugin framework
|
@@ -290,7 +295,7 @@ yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
|
|
290 |
|
291 |
== Upgrade Notice ==
|
292 |
|
293 |
-
Last Stable Tag 1.6.
|
294 |
|
295 |
== Suggestions ==
|
296 |
|
4 |
Tags: woocommerce catalog mode plugin, woocommerce catalog only, woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2
|
7 |
+
Stable tag: 1.6.10
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= Version 1.6.10 - Released: July 30, 2019 =
|
117 |
+
|
118 |
+
* New: Support to WooCommerce 3.7.0 RC1
|
119 |
+
* Update: plugin framework
|
120 |
+
|
121 |
= Version 1.6.9 - Released: June 12, 2019 =
|
122 |
|
123 |
* Update: plugin framework
|
295 |
|
296 |
== Upgrade Notice ==
|
297 |
|
298 |
+
Last Stable Tag 1.6.10
|
299 |
|
300 |
== Suggestions ==
|
301 |
|