Version Description
Released: Apr, 04 - 2016 =
Added: filter yith_wcwl_is_product_in_wishlist to choose whether a product is in wishlist or not
Added: filter yith_wcwl_cookie_expiration to set default wishlist cookie expiration time in seconds
Tweak: updated plugin-fw
Fixed: get_products query returning product multiple times when product has more then one visibility meta
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Wishlist |
Version | 2.0.15 |
Comparing to | |
See all releases |
Code changes from version 2.0.14 to 2.0.15
- README.txt +15 -22
- assets/css/style.css +0 -2
- includes/class.yith-wcwl-init.php +1 -1
- includes/class.yith-wcwl.php +3 -1
- includes/functions.yith-wcwl.php +1 -1
- init.php +2 -2
- plugin-fw/assets/css/yit-plugin-panel-sidebar.css +377 -0
- plugin-fw/assets/css/yit-plugin-panel.css +386 -337
- plugin-fw/assets/images/widgets/box-icon.png +0 -0
- plugin-fw/assets/images/widgets/box-white-icon.png +0 -0
- plugin-fw/assets/images/widgets/despacho.png +0 -0
- plugin-fw/assets/images/widgets/info-icon.png +0 -0
- plugin-fw/assets/images/widgets/link-bg.png +0 -0
- plugin-fw/assets/images/widgets/link-bg2.png +0 -0
- plugin-fw/assets/images/widgets/link-icon.png +0 -0
- plugin-fw/assets/images/widgets/membership-bg.png +0 -0
- plugin-fw/assets/js/yit-plugin-panel-sidebar.js +56 -0
- plugin-fw/assets/js/yit-plugin-panel-sidebar.min.js +1 -0
- plugin-fw/init.php +1 -1
- plugin-fw/lib/yit-ajax.php +76 -0
- plugin-fw/lib/yit-plugin-panel-sidebar.php +417 -0
- plugin-fw/lib/yit-plugin-panel-wc.php +13 -3
- plugin-fw/lib/yit-plugin-panel.php +92 -8
- plugin-fw/templates/panel/sidebar/sidebar.php +20 -0
- plugin-fw/templates/panel/sidebar/widget.php +53 -0
- plugin-fw/templates/panel/sidebar/widgets/badges/badge.php +11 -0
- plugin-fw/templates/panel/sidebar/widgets/widget-despacho.php +19 -0
- plugin-fw/templates/panel/sidebar/widgets/widget-links.php +34 -0
- plugin-fw/templates/panel/sidebar/widgets/widget-membership.php +24 -0
- plugin-fw/templates/panel/sidebar/widgets/widgets.php +42 -0
- plugin-fw/templates/panel/woocommerce/woocommerce-form.php +28 -13
- plugin-fw/templates/upgrade/upgrade-to-pro-version.php +1 -1
- plugin-fw/yit-functions.php +1 -1
- plugin-fw/yit-plugin-registration-hook.php +6 -0
- plugin-fw/yit-plugin.php +2 -0
- plugin-options/premium-options.php +2 -1
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: wishlist, woocommerce, products, themes, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, woocommerce 2.3 ready, shop wishlist
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -106,6 +106,13 @@ you should ask theme developers to update custom templates and replace the old t
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
= 2.0.14 - Released: Mar, 21 - 2016 =
|
110 |
|
111 |
* Added: Dutch translation (thanks to w.vankuipers)
|
@@ -117,8 +124,8 @@ you should ask theme developers to update custom templates and replace the old t
|
|
117 |
* Added: check over existance of $.prettyPhoto.close before using it
|
118 |
* Added: method count_add_to_wishlist to YITH_WCWL class
|
119 |
* Added: function yith_wcwl_count_add_to_wishlist
|
120 |
-
*
|
121 |
-
*
|
122 |
* Tweak: Removed deprecated WC functions
|
123 |
* Tweak: Skipped removed_from_wishlist query arg adding, when external product
|
124 |
* Tweak: Added transients for wishist counts
|
@@ -377,23 +384,9 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
|
|
377 |
|
378 |
== Upgrade notice ==
|
379 |
|
380 |
-
= 2.0.
|
381 |
|
382 |
-
* Added:
|
383 |
-
* Added:
|
384 |
-
*
|
385 |
-
*
|
386 |
-
* Added: filter yith_wcwl_current_wishlist_view_params for shortcode view params
|
387 |
-
* Added: "defined YITH_WCWL" check before every template
|
388 |
-
* Added: check over existance of $.prettyPhoto.close before using it
|
389 |
-
* Added: method count_add_to_wishlist to YITH_WCWL class Added function yith_wcwl_count_add_to_wishlist
|
390 |
-
* Twaek: Changed ajax url to "relative"
|
391 |
-
* Twaek: Removed yit-common (old plugin-fw) deprecated since 2.0
|
392 |
-
* Tweak: Removed deprecated WC functions
|
393 |
-
* Tweak: Skipped removed_from_wishlist query arg adding, when external product
|
394 |
-
* Tweak: Added transients for wishist counts
|
395 |
-
* Tweak: Removed DOM structure dependencies from js for wishlist table handling
|
396 |
-
* Tweak: All methods/functions that prints/counts products in wishlist now skip trashed or not visible products
|
397 |
-
* Fixed: shortcode callback setting global product in some conditions
|
398 |
-
* Fixed: typo in hook yith_wccl_table_after_product_name (now set to yith_wcwl_table_after_product_name)
|
399 |
-
* Fixed: notice appearing when wishlist page slug is empty
|
4 |
Tags: wishlist, woocommerce, products, themes, yit, e-commerce, shop, ecommerce wishlist, yith, woocommerce wishlist, woocommerce 2.3 ready, shop wishlist
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 2.0.15
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= 2.0.15 - Released: Apr, 04 - 2016 =
|
110 |
+
|
111 |
+
* Added: filter yith_wcwl_is_product_in_wishlist to choose whether a product is in wishlist or not
|
112 |
+
* Added: filter yith_wcwl_cookie_expiration to set default wishlist cookie expiration time in seconds
|
113 |
+
* Tweak: updated plugin-fw
|
114 |
+
* Fixed: get_products query returning product multiple times when product has more then one visibility meta
|
115 |
+
|
116 |
= 2.0.14 - Released: Mar, 21 - 2016 =
|
117 |
|
118 |
* Added: Dutch translation (thanks to w.vankuipers)
|
124 |
* Added: check over existance of $.prettyPhoto.close before using it
|
125 |
* Added: method count_add_to_wishlist to YITH_WCWL class
|
126 |
* Added: function yith_wcwl_count_add_to_wishlist
|
127 |
+
* Tweak: Changed ajax url to "relative"
|
128 |
+
* Tweak: Removed yit-common (old plugin-fw) deprecated since 2.0
|
129 |
* Tweak: Removed deprecated WC functions
|
130 |
* Tweak: Skipped removed_from_wishlist query arg adding, when external product
|
131 |
* Tweak: Added transients for wishist counts
|
384 |
|
385 |
== Upgrade notice ==
|
386 |
|
387 |
+
= 2.0.15 - Released: Apr, 04 - 2016 =
|
388 |
|
389 |
+
* Added: filter yith_wcwl_is_product_in_wishlist to choose whether a product is in wishlist or not
|
390 |
+
* Added: filter yith_wcwl_cookie_expiration to set default wishlist cookie expiration time in seconds
|
391 |
+
* Tweak: updated plugin-fw
|
392 |
+
* Fixed: get_products query returning product multiple times when product has more then one visibility meta
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/style.css
CHANGED
@@ -6,8 +6,6 @@
|
|
6 |
* @version 1.1.5
|
7 |
*/
|
8 |
|
9 |
-
.summary .product_meta { margin-top: 45px; }
|
10 |
-
|
11 |
/* Selectbox style */
|
12 |
.woocommerce a.selectBox{
|
13 |
background: #ffffff;
|
6 |
* @version 1.1.5
|
7 |
*/
|
8 |
|
|
|
|
|
9 |
/* Selectbox style */
|
10 |
.woocommerce a.selectBox{
|
11 |
background: #ffffff;
|
includes/class.yith-wcwl-init.php
CHANGED
@@ -49,7 +49,7 @@ if ( ! class_exists( 'YITH_WCWL_Init' ) ) {
|
|
49 |
* @var string
|
50 |
* @since 1.0.0
|
51 |
*/
|
52 |
-
public $version = '2.0.
|
53 |
|
54 |
/**
|
55 |
* Plugin database version
|
49 |
* @var string
|
50 |
* @since 1.0.0
|
51 |
*/
|
52 |
+
public $version = '2.0.15';
|
53 |
|
54 |
/**
|
55 |
* Plugin database version
|
includes/class.yith-wcwl.php
CHANGED
@@ -181,7 +181,7 @@ if ( ! class_exists( 'YITH_WCWL' ) ) {
|
|
181 |
}
|
182 |
}
|
183 |
|
184 |
-
return $exists;
|
185 |
}
|
186 |
|
187 |
/**
|
@@ -626,6 +626,8 @@ if ( ! class_exists( 'YITH_WCWL' ) ) {
|
|
626 |
$sql .= " LIMIT " . $offset . ", " . $limit;
|
627 |
}
|
628 |
|
|
|
|
|
629 |
$wishlist = $wpdb->get_results( $wpdb->prepare( $sql, $sql_args ), ARRAY_A );
|
630 |
}
|
631 |
else{
|
181 |
}
|
182 |
}
|
183 |
|
184 |
+
return apply_filters( 'yith_wcwl_is_product_in_wishlist', $exists, $product_id, $wishlist_id );
|
185 |
}
|
186 |
|
187 |
/**
|
626 |
$sql .= " LIMIT " . $offset . ", " . $limit;
|
627 |
}
|
628 |
|
629 |
+
$sql .= " GROUP BY i.prod_id, l.ID";
|
630 |
+
|
631 |
$wishlist = $wpdb->get_results( $wpdb->prepare( $sql, $sql_args ), ARRAY_A );
|
632 |
}
|
633 |
else{
|
includes/functions.yith-wcwl.php
CHANGED
@@ -188,7 +188,7 @@ if( !function_exists( 'yith_setcookie' ) ) {
|
|
188 |
* @since 1.0.0
|
189 |
*/
|
190 |
function yith_setcookie( $name, $value = array(), $time = null ) {
|
191 |
-
$time = $time != null ? $time : time() + 60 * 60 * 24 * 30;
|
192 |
|
193 |
//$value = maybe_serialize( stripslashes_deep( $value ) );
|
194 |
$value = json_encode( stripslashes_deep( $value ) );
|
188 |
* @since 1.0.0
|
189 |
*/
|
190 |
function yith_setcookie( $name, $value = array(), $time = null ) {
|
191 |
+
$time = $time != null ? $time : time() + apply_filters( 'yith_wcwl_cookie_expiration', 60 * 60 * 24 * 30 );
|
192 |
|
193 |
//$value = maybe_serialize( stripslashes_deep( $value ) );
|
194 |
$value = json_encode( stripslashes_deep( $value ) );
|
init.php
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Wishlist
|
4 |
* Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
|
5 |
* Description: YITH WooCommerce Wishlist allows you to add Wishlist functionality to your e-commerce.
|
6 |
-
* Version: 2.0.
|
7 |
-
* Author:
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-wishlist
|
10 |
* Domain Path: /languages/
|
3 |
* Plugin Name: YITH WooCommerce Wishlist
|
4 |
* Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-wishlist/
|
5 |
* Description: YITH WooCommerce Wishlist allows you to add Wishlist functionality to your e-commerce.
|
6 |
+
* Version: 2.0.15
|
7 |
+
* Author: YITHEMES
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-wishlist
|
10 |
* Domain Path: /languages/
|
plugin-fw/assets/css/yit-plugin-panel-sidebar.css
ADDED
@@ -0,0 +1,377 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* This file belongs to the YIT Plugin Framework.
|
3 |
+
*
|
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:
|
7 |
+
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
+
*/
|
9 |
+
|
10 |
+
/* === Panel Sidebar === */
|
11 |
+
#yit-panel-sidebar {
|
12 |
+
width : 275px;
|
13 |
+
float : right;
|
14 |
+
margin : 10px 0 0 10px;
|
15 |
+
}
|
16 |
+
|
17 |
+
#yit-panel-sidebar.yith-panel-sidebar-hidden {
|
18 |
+
position : absolute;
|
19 |
+
top : 0;
|
20 |
+
right : 0;
|
21 |
+
}
|
22 |
+
|
23 |
+
#yit-panel-sidebar.yith-panel-sidebar-hidden #yit-panel-sidebar-widgets-container{
|
24 |
+
display: none;
|
25 |
+
}
|
26 |
+
|
27 |
+
.yit-panel-sidebar-widget-wrapper {
|
28 |
+
position : relative;
|
29 |
+
margin : 10px 0 30px 0;
|
30 |
+
}
|
31 |
+
|
32 |
+
.yit-panel-sidebar-widget-container {
|
33 |
+
border-radius : 5px;
|
34 |
+
border : 1px solid #ddd;
|
35 |
+
background : #fff;
|
36 |
+
box-shadow : 0 2px 1px -1px #ccc;
|
37 |
+
overflow : hidden;
|
38 |
+
}
|
39 |
+
|
40 |
+
.yit-panel-sidebar-widget-container a {
|
41 |
+
text-decoration : none;
|
42 |
+
}
|
43 |
+
|
44 |
+
.yit-panel-sidebar-widget-container img.yit-panel-sidebar-widget-image {
|
45 |
+
width : 100%;
|
46 |
+
position : relative;
|
47 |
+
bottom : -5px;
|
48 |
+
}
|
49 |
+
|
50 |
+
.yit-panel-sidebar-widget-title {
|
51 |
+
padding : 12px 10px;
|
52 |
+
background : #f4f4f4;
|
53 |
+
font-size : 10px;
|
54 |
+
text-transform : uppercase;
|
55 |
+
font-weight : 700;
|
56 |
+
}
|
57 |
+
|
58 |
+
.yit-panel-sidebar-widget-title.dashicons {
|
59 |
+
width : auto !important;
|
60 |
+
height : auto !important;
|
61 |
+
display : block;
|
62 |
+
font-family : "Open Sans", sans-serif;
|
63 |
+
text-align : left;
|
64 |
+
}
|
65 |
+
|
66 |
+
.yit-panel-sidebar-widget-title.dashicons::before {
|
67 |
+
font-family : "Dashicons";
|
68 |
+
font-size : 18px;
|
69 |
+
display : inline-block;
|
70 |
+
vertical-align : middle;
|
71 |
+
margin-right : 10px;
|
72 |
+
font-weight : normal;
|
73 |
+
}
|
74 |
+
|
75 |
+
.yit-panel-sidebar-widget-title.orange {
|
76 |
+
background : #ff643e;
|
77 |
+
color : #fff;
|
78 |
+
}
|
79 |
+
|
80 |
+
.yit-panel-sidebar-widget-title.green {
|
81 |
+
background : #a3c401;
|
82 |
+
color : #fff;
|
83 |
+
}
|
84 |
+
|
85 |
+
.yit-panel-sidebar-widget-title.red {
|
86 |
+
background : #e4313c;
|
87 |
+
color : #fff;
|
88 |
+
}
|
89 |
+
|
90 |
+
.yit-panel-sidebar-widget-title.yellow {
|
91 |
+
background : #ffc400;
|
92 |
+
color : #333;
|
93 |
+
}
|
94 |
+
|
95 |
+
.yit-panel-sidebar-widget-title.center {
|
96 |
+
text-align : center;
|
97 |
+
}
|
98 |
+
|
99 |
+
.yit-panel-sidebar-widget-title.right {
|
100 |
+
text-align : right;
|
101 |
+
}
|
102 |
+
|
103 |
+
.yit-panel-sidebar-widget-content {
|
104 |
+
padding : 15px;
|
105 |
+
}
|
106 |
+
|
107 |
+
.yit-panel-sidebar-widget-content p {
|
108 |
+
font-size : 11px;
|
109 |
+
line-height : 18px;
|
110 |
+
margin : 0;
|
111 |
+
text-align : justify;
|
112 |
+
}
|
113 |
+
|
114 |
+
.yit-panel-sidebar-widget-badge.gift-tape {
|
115 |
+
color : #000;
|
116 |
+
font-family : "Open Sans", sans-serif;
|
117 |
+
box-sizing : border-box;
|
118 |
+
position : absolute;
|
119 |
+
background-color : transparent;
|
120 |
+
width : 70px;
|
121 |
+
height : 70px;
|
122 |
+
overflow : hidden;
|
123 |
+
top : 0;
|
124 |
+
right : 0;
|
125 |
+
}
|
126 |
+
|
127 |
+
.yit-panel-sidebar-widget-badge.gift-tape div.yit-panel-sidebar-widget-badge-text {
|
128 |
+
background : #ffd600;
|
129 |
+
background : -webkit-linear-gradient(left, #fe8502, #ffe400); /* For Safari 5.1 to 6.0 */
|
130 |
+
background : -o-linear-gradient(right, #fe8502, #ffe400); /* For Opera 11.1 to 12.0 */
|
131 |
+
background : -moz-linear-gradient(right, #fe8502, #ffe400); /* For Firefox 3.6 to 15 */
|
132 |
+
background : linear-gradient(to right, #fe8502, #ffe400); /* Standard syntax */
|
133 |
+
font-size : 10px;
|
134 |
+
font-weight : bold;
|
135 |
+
line-height : 24px;
|
136 |
+
position : absolute;
|
137 |
+
text-align : center;
|
138 |
+
z-index : 100;
|
139 |
+
-webkit-transform : rotate(45deg);
|
140 |
+
-ms-transform : rotate(45deg);
|
141 |
+
transform : rotate(45deg);
|
142 |
+
top : 15px;
|
143 |
+
left : -6px;
|
144 |
+
width : 100px;
|
145 |
+
text-shadow : 1px 1px 1px #fff;
|
146 |
+
}
|
147 |
+
|
148 |
+
img.yit-panel-sidebar-widget-despacho-image {
|
149 |
+
background : #ffffff;
|
150 |
+
background : -webkit-linear-gradient(#ffffff, #a5b7c5); /* For Safari 5.1 to 6.0 */
|
151 |
+
background : -o-linear-gradient(#ffffff, #a5b7c5); /* For Opera 11.1 to 12.0 */
|
152 |
+
background : -moz-linear-gradient(#ffffff, #a5b7c5); /* For Firefox 3.6 to 15 */
|
153 |
+
background : linear-gradient(#ffffff, #a5b7c5); /* Standard syntax */
|
154 |
+
}
|
155 |
+
|
156 |
+
/* ==== Buttons ==== */
|
157 |
+
#yit-panel-sidebar .button {
|
158 |
+
color : #ffffff;
|
159 |
+
border : none;
|
160 |
+
background : #666666;
|
161 |
+
-webkit-box-shadow : none;
|
162 |
+
box-shadow : none;
|
163 |
+
vertical-align : middle;
|
164 |
+
text-transform : uppercase;
|
165 |
+
font-size : 11px;
|
166 |
+
font-weight : 700;
|
167 |
+
height : 32px;
|
168 |
+
line-height : 32px;
|
169 |
+
padding : 0 18px 1px;
|
170 |
+
}
|
171 |
+
|
172 |
+
#yit-panel-sidebar .button.orange {
|
173 |
+
background : #ff6340;
|
174 |
+
}
|
175 |
+
|
176 |
+
#yit-panel-sidebar .button.green {
|
177 |
+
background : #a3c401;
|
178 |
+
}
|
179 |
+
|
180 |
+
#yit-panel-sidebar .button.red {
|
181 |
+
background : #e4313c;
|
182 |
+
}
|
183 |
+
|
184 |
+
#yit-panel-sidebar .button.yellow {
|
185 |
+
background : #ffc400;
|
186 |
+
}
|
187 |
+
|
188 |
+
/* === Title Icons === */
|
189 |
+
#yit-panel-sidebar .yit-panel-sidebar-widget-icon:before {
|
190 |
+
content : " ";
|
191 |
+
width : 16px;
|
192 |
+
height : 16px;
|
193 |
+
display : inline-block;
|
194 |
+
vertical-align : middle;
|
195 |
+
margin-right : 10px;
|
196 |
+
}
|
197 |
+
|
198 |
+
#yit-panel-sidebar .yit-panel-sidebar-widget-icon.link-icon:before {
|
199 |
+
background : transparent url('../images/widgets/link-icon.png') no-repeat;
|
200 |
+
background-size : contain;
|
201 |
+
}
|
202 |
+
|
203 |
+
#yit-panel-sidebar .yit-panel-sidebar-widget-icon.info-icon:before {
|
204 |
+
background : transparent url('../images/widgets/info-icon.png') no-repeat;
|
205 |
+
background-size : contain;
|
206 |
+
}
|
207 |
+
|
208 |
+
#yit-panel-sidebar .yit-panel-sidebar-widget-icon.box-icon:before {
|
209 |
+
background : transparent url('../images/widgets/box-icon.png') no-repeat;
|
210 |
+
background-size : contain;
|
211 |
+
}
|
212 |
+
|
213 |
+
#yit-panel-sidebar .yit-panel-sidebar-widget-icon.box-white-icon:before {
|
214 |
+
background : transparent url('../images/widgets/box-white-icon.png') no-repeat;
|
215 |
+
background-size : contain;
|
216 |
+
}
|
217 |
+
|
218 |
+
/* ==== Membership Widget ==== */
|
219 |
+
#yit-panel-sidebar-membership-widget {
|
220 |
+
|
221 |
+
}
|
222 |
+
|
223 |
+
#yit-panel-sidebar-membership-widget .yit-panel-sidebar-widget-title {
|
224 |
+
text-align : center;
|
225 |
+
}
|
226 |
+
|
227 |
+
#yit-panel-sidebar-membership-widget .yit-panel-sidebar-widget-content {
|
228 |
+
background : transparent url('../images/widgets/membership-bg.png') no-repeat;
|
229 |
+
background-position : 100% 180%;
|
230 |
+
background-size : 50%;
|
231 |
+
}
|
232 |
+
|
233 |
+
#yit-panel-sidebar-membership-widget .membership-total-price {
|
234 |
+
font-size : 25px;
|
235 |
+
font-weight : 700;
|
236 |
+
display : inline-block;
|
237 |
+
|
238 |
+
}
|
239 |
+
|
240 |
+
#yit-panel-sidebar-membership-widget .membership-offer-text {
|
241 |
+
display : inline-block;
|
242 |
+
font-size : 10px;
|
243 |
+
text-transform : uppercase;
|
244 |
+
width : 130px;
|
245 |
+
line-height : 14px;
|
246 |
+
}
|
247 |
+
|
248 |
+
#yit-panel-sidebar-membership-widget .membership-offer-text2 {
|
249 |
+
display : inline-block;
|
250 |
+
font-size : 10px;
|
251 |
+
text-transform : uppercase;
|
252 |
+
width : 36%;
|
253 |
+
text-align : right;
|
254 |
+
vertical-align : middle;
|
255 |
+
margin : 17px 0;
|
256 |
+
}
|
257 |
+
|
258 |
+
#yit-panel-sidebar-membership-widget .membership-offer-sale-text {
|
259 |
+
display : inline-block;
|
260 |
+
font-size : 24px;
|
261 |
+
color : #ff6340;
|
262 |
+
text-transform : uppercase;
|
263 |
+
width : 55%;
|
264 |
+
text-align : left;
|
265 |
+
vertical-align : middle;
|
266 |
+
margin : 17px 0;
|
267 |
+
font-weight : 700;
|
268 |
+
}
|
269 |
+
|
270 |
+
#yit-panel-sidebar-membership-widget .membership-buttons {
|
271 |
+
text-align : center;
|
272 |
+
margin-bottom : 10px;
|
273 |
+
}
|
274 |
+
|
275 |
+
/* ==== Important Links Widget ==== */
|
276 |
+
#yit-panel-sidebar-links-widget .yit-panel-sidebar-widget-content {
|
277 |
+
background : transparent url('../images/widgets/link-bg.png') no-repeat;
|
278 |
+
background-position : 110% 120%;
|
279 |
+
background-size : 50%;
|
280 |
+
}
|
281 |
+
|
282 |
+
ul.yit-panel-sidebar-links-list {
|
283 |
+
margin : 0;
|
284 |
+
}
|
285 |
+
|
286 |
+
ul.yit-panel-sidebar-links-list li {
|
287 |
+
margin : 0 0 10px 0;
|
288 |
+
}
|
289 |
+
|
290 |
+
ul.yit-panel-sidebar-links-list li:before {
|
291 |
+
content : " ";
|
292 |
+
width : 15px;
|
293 |
+
height : 13px;
|
294 |
+
display : inline-block;
|
295 |
+
background : transparent url('../images/ui-icons_454545_256x240.png') no-repeat -64px -144px;
|
296 |
+
margin-right : 7px;
|
297 |
+
}
|
298 |
+
|
299 |
+
/* === Sidebar Actions ===*/
|
300 |
+
#yit-panel-sidebar-actions {
|
301 |
+
text-align : right;
|
302 |
+
}
|
303 |
+
|
304 |
+
.yit-panel-sidebar-action-title {
|
305 |
+
margin-right : 5px;
|
306 |
+
text-transform : uppercase;
|
307 |
+
font-size : 11px;
|
308 |
+
}
|
309 |
+
|
310 |
+
#yit-panel-sidebar-action-hide {
|
311 |
+
text-align : right;
|
312 |
+
cursor : pointer;
|
313 |
+
}
|
314 |
+
|
315 |
+
.yit-panel-sidebar-action-hide-icon {
|
316 |
+
color : #f4f4f4;
|
317 |
+
background : #565656;
|
318 |
+
border-radius : 50%;
|
319 |
+
}
|
320 |
+
|
321 |
+
#yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-title{
|
322 |
+
color: #000;
|
323 |
+
}
|
324 |
+
|
325 |
+
#yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-hide-icon{
|
326 |
+
background: #000;
|
327 |
+
}
|
328 |
+
|
329 |
+
.hide-on-click .yit-panel-sidebar-action-hide-icon:before {
|
330 |
+
content : "\f139" !important;
|
331 |
+
}
|
332 |
+
|
333 |
+
/* === Responsive === */
|
334 |
+
|
335 |
+
@media (min-width : 767px) {
|
336 |
+
#wpbody-content #yit-panel-sidebar {
|
337 |
+
margin-right : 15px;
|
338 |
+
}
|
339 |
+
}
|
340 |
+
|
341 |
+
@media (max-width : 767px) {
|
342 |
+
#yit-panel-sidebar {
|
343 |
+
width : 275px;
|
344 |
+
margin : 20px auto 0 auto;
|
345 |
+
float : none;
|
346 |
+
display : block;
|
347 |
+
}
|
348 |
+
|
349 |
+
#yit-panel-sidebar.yith-panel-sidebar-hidden {
|
350 |
+
position : static;
|
351 |
+
}
|
352 |
+
|
353 |
+
#yit-panel-sidebar-actions {
|
354 |
+
text-align : center;
|
355 |
+
}
|
356 |
+
|
357 |
+
#yit-panel-sidebar-action-hide {
|
358 |
+
text-align : center;
|
359 |
+
}
|
360 |
+
}
|
361 |
+
|
362 |
+
@media (max-width : 480px) {
|
363 |
+
|
364 |
+
}
|
365 |
+
|
366 |
+
@media (min-width : 768px) and (max-width : 992px) {
|
367 |
+
}
|
368 |
+
|
369 |
+
@media (min-width : 980px) and (max-width : 1199px) {
|
370 |
+
}
|
371 |
+
|
372 |
+
@media (min-width : 1200px) {
|
373 |
+
|
374 |
+
}
|
375 |
+
|
376 |
+
@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (-o-min-device-pixel-ratio : 3/2), only screen and (min--moz-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) {
|
377 |
+
}
|
plugin-fw/assets/css/yit-plugin-panel.css
CHANGED
@@ -9,599 +9,627 @@
|
|
9 |
|
10 |
/* onoff */
|
11 |
.rm_onoff input {
|
12 |
-
display: none;
|
13 |
}
|
14 |
|
15 |
.rm_onoff input + span {
|
16 |
-
cursor: pointer;
|
17 |
-
text-indent: -9999px;
|
18 |
-
display: block;
|
19 |
-
width: 85px;
|
20 |
-
height: 37px;
|
21 |
-
background: transparent url(../images/off.png);
|
22 |
}
|
23 |
|
24 |
.rm_onoff input:checked + span {
|
25 |
-
background: transparent url(../images/on.png);
|
26 |
}
|
27 |
|
28 |
.rm_onoff input.onoffchecked + span {
|
29 |
-
background: transparent url(../images/on.png);
|
30 |
}
|
31 |
|
32 |
/* slider */
|
33 |
/*numbers*/
|
34 |
.ui-slider .maxCaption, .ui-slider .minCaption {
|
35 |
-
margin-bottom: 5px;
|
36 |
}
|
|
|
37 |
.ui-slider .feedback {
|
38 |
-
background: url(../images/slider/tooltip.png) no-repeat center top;
|
39 |
-
position: absolute;
|
40 |
-
top: -25px;
|
41 |
-
width: 35px;
|
42 |
-
height: 43px;
|
43 |
-
text-align: center;
|
44 |
-
width: 100%;
|
45 |
-
display: block;
|
46 |
}
|
|
|
47 |
.ui-slider .feedback strong {
|
48 |
-
display: inline-block;
|
49 |
-
padding-top: 4px;
|
50 |
-
top: -30px;
|
51 |
}
|
|
|
52 |
/*handle*/
|
53 |
.yit-options .ui-slider-horizontal .ui-slider-handle,
|
54 |
.yit_options .ui-slider-horizontal .ui-slider-handle {
|
55 |
-
background: transparent url(../images/slider/handle.png) no-repeat left top !important;
|
56 |
-
border: 0px !important;
|
57 |
-
top: -.35em !important;
|
58 |
-
width: 18px !important;
|
59 |
-
height: 19px !important;
|
60 |
}
|
61 |
|
62 |
/*bg on the left:grey*/
|
63 |
.yit-options .ui-slider.ui-widget-content,
|
64 |
.yit_options .ui-slider.ui-widget-content {
|
65 |
-
background: url(../images/slider/grey.gif) repeat-x left center !important;
|
66 |
-
border-color: #c1c1c0 !important;
|
67 |
-
height: 10px !important;
|
68 |
}
|
69 |
|
70 |
.iris-slider-offset.ui-slider.ui-widget-content {
|
71 |
-
background: transparent!important;
|
72 |
-
height: auto!important;
|
73 |
}
|
74 |
|
75 |
/*bg on the right:orange*/
|
76 |
.ui-slider.ui-widget-content .ui-widget-header {
|
77 |
-
background: url(../images/slider/orange.gif) repeat-x left center !important;
|
78 |
-
left: 2px !important;
|
79 |
-
-webkit-border-radius: 15px;
|
80 |
-
-moz-border-radius: 15px;
|
81 |
-
-khtml-border-radius: 15px;
|
82 |
-
border-radius: 15px;
|
83 |
}
|
84 |
|
85 |
-
.plugin-option tr{
|
86 |
-
border-bottom: 1px solid #ccc;
|
87 |
}
|
|
|
88 |
.plugin-option .yit_options,
|
89 |
-
.plugin-option .yit-options{
|
90 |
-
border-bottom: 0px;
|
91 |
}
|
|
|
92 |
.plugin-option .yit-options .option,
|
93 |
.plugin-option .yit_options .option {
|
94 |
-
width: 600px;
|
95 |
-
float: left;
|
96 |
}
|
97 |
|
98 |
-
.plugin-option .form-table td{
|
99 |
-
padding: 25px 10px;
|
100 |
}
|
101 |
|
102 |
.yit_options .select_wrapper,
|
103 |
.yit-options .select_wrapper {
|
104 |
-
background: url("../images/select.png") no-repeat scroll right center #FAFAFA;
|
105 |
-
border-color: #CCCCCC #EEEEEE #EEEEEE #CCCCCC;
|
106 |
-
border-radius: 4px 4px 4px 4px;
|
107 |
-
border-style: solid;
|
108 |
-
border-width: 1px;
|
109 |
-
color: #555555;
|
110 |
-
display: block;
|
111 |
-
float: left;
|
112 |
-
font-family: sans-serif;
|
113 |
-
font-size: 12px;
|
114 |
-
height: 26px;
|
115 |
-
margin-bottom: 9px !important;
|
116 |
-
margin-left: 0;
|
117 |
-
margin-right: 5px;
|
118 |
-
margin-top: 0;
|
119 |
-
width: 400px;
|
120 |
}
|
|
|
121 |
.chosen .select_wrapper {
|
122 |
-
background: none;
|
123 |
-
border: none;
|
124 |
}
|
125 |
-
|
126 |
-
|
|
|
127 |
}
|
128 |
-
|
129 |
-
|
130 |
-
|
|
|
131 |
}
|
132 |
-
|
133 |
-
|
134 |
-
|
|
|
135 |
}
|
136 |
-
|
137 |
-
|
138 |
-
|
|
|
139 |
}
|
140 |
-
|
141 |
-
|
142 |
-
height: 15px;
|
143 |
-
|
|
|
144 |
}
|
145 |
-
|
146 |
-
|
|
|
147 |
}
|
148 |
-
|
149 |
-
|
|
|
150 |
}
|
151 |
|
152 |
/* === Multiple Chosen Customizzation === */
|
153 |
|
154 |
.yith-choosen .chosen-choices {
|
155 |
-
line-height: 27px;
|
156 |
-
min-height: 27px;
|
157 |
-
border: 1px solid #ddd;
|
158 |
}
|
159 |
|
160 |
-
.yith-choosen .chosen-container-active .chosen-choices{
|
161 |
-
border: 1px solid #5b9dd9;
|
162 |
-
-webkit-box-shadow: 0 0 2px rgba(30,140,190
|
163 |
-
box-shadow: 0 0 2px rgba(30,140,190
|
164 |
}
|
165 |
|
166 |
.select_wrapper span {
|
167 |
-
height: 26px;
|
168 |
-
line-height: 26px;
|
169 |
-
padding-left: 6px;
|
170 |
-
position: absolute;
|
171 |
-
z-index: 2;
|
172 |
-
overflow: hidden;
|
173 |
}
|
|
|
174 |
.ie8 .yit_options select,
|
175 |
.ie8 .yit-options select {
|
176 |
-
height: 26px;
|
177 |
}
|
|
|
178 |
.yit_options select, .yit-options select, .the-metabox .select_wrapper select {
|
179 |
-
cursor: pointer;
|
180 |
-
height: 28px;
|
181 |
-
margin: 0;
|
182 |
-
opacity: 0;
|
183 |
-
padding: 0;
|
184 |
-
position: relative;
|
185 |
-
width: inherit;
|
186 |
-
z-index: 4;
|
187 |
-
background-color: #FAFAFA;
|
188 |
}
|
189 |
|
190 |
/* === Single Chosen Customizzation === */
|
191 |
|
192 |
.yith-choosen .chosen-container-single .chosen-default {
|
193 |
-
background: transparent;
|
194 |
-
border-color: #ddd;
|
195 |
}
|
196 |
|
197 |
-
.yith-choosen .chosen-search > input[type=text]{
|
198 |
-
width: 100% !important;
|
199 |
}
|
200 |
|
201 |
.yith-choosen .chosen-container-single .chosen-single {
|
202 |
-
background: transparent;
|
203 |
-
border-color: #ddd;
|
204 |
}
|
205 |
|
206 |
-
|
207 |
/* Style to woocommerce panel*/
|
208 |
|
209 |
-
#plugin-fw-wc{
|
210 |
-
padding-top: 20px;
|
211 |
}
|
212 |
-
|
213 |
-
|
214 |
-
|
|
|
215 |
}
|
|
|
216 |
#plugin-fw-wc table.form-table th {
|
217 |
-
padding: 20px;
|
218 |
}
|
219 |
-
|
220 |
-
|
221 |
-
|
|
|
222 |
}
|
223 |
|
224 |
/* === VIDEO BOX === */
|
225 |
|
226 |
.yith-videobox-wrapper {
|
227 |
-
padding-top: 20px;
|
228 |
}
|
229 |
-
|
230 |
-
|
231 |
-
|
|
|
232 |
}
|
233 |
|
234 |
.yith-videobox-wrapper .postbox {
|
235 |
-
display: inline-block;
|
236 |
}
|
|
|
237 |
.yith-videobox-wrapper .yith_videobox .column {
|
238 |
-
width: 45%;
|
239 |
-
float: left;
|
240 |
-
padding-right: 2.5%;
|
241 |
-
border-right: 1px solid #ebebeb;
|
242 |
-
padding-bottom: 2em;
|
243 |
}
|
|
|
244 |
.yith-videobox-wrapper .yith_videobox .column.two {
|
245 |
-
margin-right: 0;
|
246 |
-
padding-right: 0;
|
247 |
-
padding-left: 2.5%;
|
248 |
-
border: 0;
|
249 |
-
max-width: 49%;
|
250 |
}
|
251 |
-
|
252 |
-
|
253 |
-
|
|
|
254 |
}
|
|
|
255 |
.yith-videobox-wrapper .yith-video-link {
|
256 |
-
width: 100%;
|
257 |
-
max-width: 200px;
|
258 |
-
float: left;
|
259 |
-
margin: 0 1.5em 1.5em 0;
|
260 |
}
|
|
|
261 |
.yith-videobox-wrapper .yith-video-link {
|
262 |
-
width: 100%;
|
263 |
-
max-width: 200px;
|
264 |
-
float: left;
|
265 |
-
margin: 0 1.5em 1.5em 0;
|
266 |
}
|
|
|
267 |
.yith-videobox-wrapper .yith-image-frame img {
|
268 |
-
max-width: 100%;
|
269 |
-
height: auto;
|
270 |
}
|
|
|
271 |
.yith-videobox-wrapper .yith-video-link img {
|
272 |
-
max-width: 100%;
|
273 |
-
height: auto;
|
274 |
}
|
|
|
275 |
.yith-videobox-wrapper .yith-video-iframe {
|
276 |
-
display: none;
|
277 |
|
278 |
}
|
279 |
|
280 |
/* === Plugins Upgrader === */
|
281 |
|
282 |
.yit-plugin-changelog-wrapper {
|
283 |
-
display: none;
|
284 |
}
|
285 |
|
286 |
.yit-plugin-changelog-title {
|
287 |
-
text-transform: uppercase;
|
288 |
}
|
289 |
|
290 |
.yit-plugin-changelog {
|
291 |
-
background: #fcfcfc;
|
292 |
-
height: 97%;
|
293 |
-
z-index: 999;
|
294 |
-
overflow: auto;
|
295 |
}
|
296 |
|
297 |
/* === Plugins Licence Activation === */
|
298 |
|
299 |
.yit-container.plugin-licence-activation {
|
300 |
-
font-family: 'Raleway', sans-serif;
|
301 |
}
|
302 |
|
303 |
.yit-container.plugin-licence-activation .to-active-wrapper {
|
304 |
-
margin-bottom: 60px;
|
305 |
}
|
306 |
|
307 |
.yit-container.plugin-licence-activation .to-active-wrapper form.to-active-form {
|
308 |
-
position: relative;
|
309 |
-
border-color: #e1e1e1;
|
310 |
-
border-style: solid;
|
311 |
-
border-width: 0;
|
312 |
}
|
313 |
|
314 |
.yit-container.plugin-licence-activation .to-active-wrapper form.to-active-form:first-child {
|
315 |
-
border-top-width: 1px;
|
316 |
}
|
317 |
|
318 |
.yit-container.plugin-licence-activation .to-active-wrapper form.to-active-form:last-child {
|
319 |
-
border-bottom-width: 1px;
|
320 |
}
|
321 |
|
322 |
.yit-container.plugin-licence-activation .to-active-wrapper table.to-active-table {
|
323 |
-
border-width: 0;
|
324 |
-
border-spacing: 0;
|
325 |
-
width: 100%;
|
326 |
}
|
327 |
|
328 |
.yit-container.plugin-licence-activation .message {
|
329 |
-
display: none;
|
330 |
-
line-height: normal;
|
331 |
-
background: #ffffff url(../images/licence-error.png) 15px center no-repeat;
|
332 |
-
padding-left: 65px;
|
333 |
-
padding-right: 15px;
|
334 |
-
width: 150px;
|
335 |
}
|
336 |
|
337 |
.yit-container.plugin-licence-activation .message-wrapper {
|
338 |
-
height: 75px;
|
339 |
-
display: none;
|
340 |
-
position: absolute;
|
341 |
-
top: 0;
|
342 |
-
right: -250px;
|
343 |
-
border: 1px solid #ff3838;
|
344 |
}
|
345 |
|
346 |
.yit-container.plugin-licence-activation .message-wrapper.visible {
|
347 |
-
display: table;
|
348 |
}
|
349 |
|
350 |
.yit-container.plugin-licence-activation .message {
|
351 |
-
display: table-cell;
|
352 |
-
vertical-align: middle;
|
353 |
}
|
354 |
|
355 |
.yit-container.plugin-licence-activation .arrow-left:after,
|
356 |
.yit-container.plugin-licence-activation .arrow-left:before {
|
357 |
-
content: "";
|
358 |
-
display: block;
|
359 |
-
width: 0;
|
360 |
-
height: 0;
|
361 |
-
position: absolute;
|
362 |
}
|
363 |
|
364 |
.yit-container.plugin-licence-activation .arrow-left:before {
|
365 |
-
border-top: 9px solid transparent;
|
366 |
-
border-bottom: 9px solid transparent;
|
367 |
-
border-right: 9px solid #ff3838;
|
368 |
-
top: 26px;
|
369 |
-
left: -9px;
|
370 |
}
|
371 |
|
372 |
.yit-container.plugin-licence-activation .arrow-left:after {
|
373 |
-
border-top: 8px solid transparent;
|
374 |
-
border-bottom: 8px solid transparent;
|
375 |
-
border-right: 8px solid #fff;
|
376 |
-
left: -8px;
|
377 |
-
top: 27px;
|
378 |
}
|
379 |
|
380 |
.yit-container.plugin-licence-activation h2,
|
381 |
.yit-container.plugin-licence-activation h3 {
|
382 |
-
text-transform: uppercase;
|
383 |
-
font-weight: 800;
|
384 |
-
margin-bottom: 30px;
|
385 |
}
|
386 |
|
387 |
.yit-container.plugin-licence-activation h2 {
|
388 |
-
color: #808a97;
|
389 |
-
font-size: 25px;
|
390 |
}
|
|
|
391 |
.yit-container.plugin-licence-activation h3 {
|
392 |
-
color: #313131;
|
393 |
-
font-size: 15px;
|
394 |
-
height: 20px;
|
395 |
}
|
396 |
|
397 |
.yit-container.plugin-licence-activation h3.to-active {
|
398 |
-
height: 20px;
|
399 |
-
position: relative;
|
400 |
-
vertical-align: top;
|
401 |
}
|
402 |
|
403 |
-
.yit-container.plugin-licence-activation .spinner.show{
|
404 |
-
display: inline-block;
|
405 |
-
vertical-align: middle;
|
406 |
-
float: none;
|
407 |
}
|
408 |
|
409 |
.yit-container.plugin-licence-activation h3.to-active > .spinner.show {
|
410 |
-
display: inline-block;
|
411 |
-
float: none;
|
412 |
-
top: -3px;
|
413 |
-
position: relative;
|
414 |
}
|
415 |
|
416 |
-
.yit-container.plugin-licence-activation .licence-check-section{
|
417 |
-
margin-bottom: 60px;
|
418 |
}
|
419 |
|
420 |
.yit-container.plugin-licence-activation span.licence-label {
|
421 |
-
font-weight: 500;
|
422 |
-
color: #606060;
|
423 |
-
margin-bottom: 30px;
|
424 |
}
|
425 |
|
426 |
.yit-container.plugin-licence-activation .button-licence {
|
427 |
-
border: 0;
|
428 |
-
font-size: 13px;
|
429 |
-
text-transform: uppercase;
|
430 |
-
background-color: #808a97;
|
431 |
-
color: #fff;
|
432 |
-
font-weight: 700;
|
433 |
-
border-radius: 3px;
|
434 |
-
cursor: pointer;
|
435 |
-
text-decoration: none;
|
436 |
-
padding: 5px 7px;
|
437 |
-
-webkit-transition: background-color 0.3s ease;
|
438 |
-
-moz-transition: background-color 0.3s ease;
|
439 |
-
-ms-transition: background-color 0.3s ease;
|
440 |
-
-o-transition: background-color 0.3s ease;
|
441 |
-
transition: background-color 0.3s ease;
|
442 |
}
|
443 |
|
444 |
.yit-container.plugin-licence-activation .button-licence:hover {
|
445 |
-
background-color: #4d5c6f;
|
446 |
}
|
447 |
|
448 |
.yit-container.plugin-licence-activation .button-licence.clicked {
|
449 |
-
cursor: not-allowed;
|
450 |
-
background-color: #e2e2e2 !important;
|
451 |
}
|
452 |
|
453 |
.yit-container.plugin-licence-activation .button-licence.licence-check {
|
454 |
-
font-weight: 400;
|
455 |
-
padding: 12px 19px;
|
456 |
}
|
457 |
|
458 |
.yit-container.plugin-licence-activation .button-licence.licence-renew {
|
459 |
-
text-decoration: none;
|
460 |
-
padding: 7px 12px;
|
461 |
-
font-size: 9px;
|
462 |
}
|
463 |
|
464 |
.yit-container.plugin-licence-activation .button-licence.licence-renew:focus {
|
465 |
-
box-shadow: none;
|
466 |
}
|
467 |
|
468 |
.yit-container.plugin-licence-activation table:not(.to-active-table) {
|
469 |
-
width: 100%;
|
470 |
-
border: 1px solid #dcdcdc;
|
471 |
-
border-spacing: 0;
|
472 |
-
border-radius: 5px;
|
473 |
-
border-collapse: separate;
|
474 |
-
overflow: hidden;
|
475 |
}
|
476 |
|
477 |
.yit-container.plugin-licence-activation table:not(.to-active-table) th {
|
478 |
-
border-bottom: 1px solid #dcdcdc;
|
479 |
}
|
480 |
|
481 |
.yit-container.plugin-licence-activation table:not(.to-active-table) td,
|
482 |
.yit-container.plugin-licence-activation table:not(.to-active-table) th {
|
483 |
-
border-right: 1px solid #dcdcdc;
|
484 |
}
|
|
|
485 |
.yit-container.plugin-licence-activation table td:last-child,
|
486 |
.yit-container.plugin-licence-activation table th:last-child {
|
487 |
-
border-right: 0;
|
488 |
}
|
489 |
|
490 |
.yit-container.plugin-licence-activation table thead tr {
|
491 |
-
background-color: #f6f4f4;
|
492 |
}
|
493 |
|
494 |
.yit-container.plugin-licence-activation table tbody tr {
|
495 |
-
background-color: #ffffff;
|
496 |
}
|
497 |
|
498 |
.yit-container.plugin-licence-activation table thead tr th {
|
499 |
-
font-size: 13px;
|
500 |
-
color: #313131;
|
501 |
-
text-transform: uppercase;
|
502 |
-
font-weight: bold;
|
503 |
}
|
504 |
|
505 |
.yit-container.plugin-licence-activation table thead tr,
|
506 |
.yit-container.plugin-licence-activation table tbody tr {
|
507 |
-
line-height: 60px;
|
508 |
}
|
509 |
|
510 |
-
.yit-container.plugin-licence-activation table tbody tr td{
|
511 |
-
text-align: center;
|
512 |
-
line-height: 20px;
|
513 |
-
padding: 10px 5px;
|
514 |
}
|
515 |
|
516 |
.yit-container.plugin-licence-activation .button-licence.licence-activation {
|
517 |
-
padding: 12px 18px;
|
518 |
}
|
519 |
|
520 |
.yit-container.plugin-licence-activation .to-active-table tr {
|
521 |
-
line-height: 75px;
|
522 |
}
|
523 |
|
524 |
.yit-container.plugin-licence-activation .to-active-table tr.plugin-row {
|
525 |
-
background-color: transparent;
|
526 |
-
-webkit-transition: all 0.3s ease;
|
527 |
-
-moz-transition: all 0.3s ease;
|
528 |
-
-ms-transition: all 0.3s ease;
|
529 |
-
-o-transition: all 0.3s ease;
|
530 |
-
transition: all 0.3s ease;
|
531 |
}
|
532 |
|
533 |
.yit-container.plugin-licence-activation .to-active-table tr.plugin-row.error {
|
534 |
-
background-color: #ffdcdc;
|
535 |
}
|
536 |
|
537 |
.yit-container.plugin-licence-activation .to-active-table td {
|
538 |
-
padding-right: 12px;
|
539 |
-
width: 33%;
|
540 |
}
|
541 |
|
542 |
-
|
543 |
.yit-container.plugin-licence-activation .to-active-table td.plugin-name {
|
544 |
-
color: #808a97;
|
545 |
-
font-size: 12px;
|
546 |
-
text-transform: uppercase;
|
547 |
-
font-weight: bold;
|
548 |
-
line-height: 20px;
|
549 |
-
width: 20%;
|
550 |
-
padding-left: 20px;
|
551 |
}
|
552 |
|
553 |
.yit-container.plugin-licence-activation .to-active-table td.activate-button {
|
554 |
-
width: 15%;
|
555 |
-
position: relative;
|
556 |
}
|
557 |
|
558 |
.yit-container.plugin-licence-activation input[type=text],
|
559 |
-
.yit-container.plugin-licence-activation input[type=email]{
|
560 |
-
-webkit-transition: all 0.3s ease;
|
561 |
-
-moz-transition: all 0.3s ease;
|
562 |
-
-ms-transition: all 0.3s ease;
|
563 |
-
-o-transition: all 0.3s ease;
|
564 |
-
transition: all 0.3s ease;
|
565 |
|
566 |
-
border: 1px solid #dcdcdc;
|
567 |
-
padding: 0 15px;
|
568 |
-
border-radius: 3px;
|
569 |
-
height: 41px;
|
570 |
-
width: 100%;
|
571 |
}
|
572 |
|
573 |
.yit-container.plugin-licence-activation input[type=text].require,
|
574 |
.yit-container.plugin-licence-activation input[type=email].require {
|
575 |
-
border: 1px solid #ff3838;
|
576 |
}
|
577 |
|
578 |
.yit-container.plugin-licence-activation input[type=text]:focus,
|
579 |
-
.yit-container.plugin-licence-activation input[type=email]:focus{
|
580 |
-
webkit-box-shadow: 0 0 1px rgba(30,140,190
|
581 |
-
box-shadow: 0 0 1px rgba(30,140,190
|
582 |
}
|
583 |
|
584 |
-
.yit-container.plugin-licence-activation input[type=text]{
|
585 |
-
text-transform: uppercase;
|
586 |
-
text-align: center;
|
587 |
}
|
588 |
|
589 |
.yit-container.plugin-licence-activation input[type=email] {
|
590 |
-
text-align: left;
|
591 |
}
|
592 |
|
593 |
-
.yit-container.plugin-licence-activation input[type=submit]:focus{
|
594 |
-
outline: 0;
|
595 |
}
|
596 |
|
597 |
/* === Woocommerce panel === */
|
598 |
-
#plugin-fw-wc .yit_options{
|
599 |
-
padding: 0;
|
600 |
-
border: 0;
|
601 |
}
|
602 |
-
|
603 |
-
|
604 |
-
|
|
|
605 |
}
|
606 |
|
607 |
/* === WP Pointers === */
|
@@ -609,26 +637,26 @@
|
|
609 |
#adminmenu li.menu-top.yit-pointer-selected-row,
|
610 |
#adminmenu li.menu-top.yit-pointer-selected-row:hover,
|
611 |
#adminmenu li.yit-pointer-selected-row a.menu-top {
|
612 |
-
background-color: #acc327;
|
613 |
-
color: #000;
|
614 |
}
|
615 |
|
616 |
-
#adminmenu a.menu-top.toplevel_page_yit_plugin_panel.yit-pointer{
|
617 |
-
color: #000;
|
618 |
}
|
619 |
|
620 |
#adminmenu a.menu-top.toplevel_page_yit_plugin_panel.yit-pointer:hover,
|
621 |
#adminmenu .wp-submenu a.yit-pointer-selected-row {
|
622 |
-
color: #fff;
|
623 |
}
|
624 |
|
625 |
#adminmenu .wp-submenu a.yit-pointer-selected-row:hover {
|
626 |
-
color: #45bbe6;
|
627 |
}
|
628 |
|
629 |
/* WooCommerce 2.4 Support */
|
630 |
-
.woocommerce table.form-table .colorpick{
|
631 |
-
width: 6em;
|
632 |
}
|
633 |
|
634 |
#wpwrap h2.nav-tab-wrapper , #wpbody-content h2.nav-tab-wrapper {
|
@@ -637,28 +665,49 @@
|
|
637 |
|
638 |
/* === YIT FRAMEWORK === */
|
639 |
.plugin-card .plugin-icon img {
|
640 |
-
max-width: 100%;
|
641 |
-
width: auto;
|
642 |
-
height: auto;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
643 |
}
|
644 |
|
645 |
/* === Responsive === */
|
646 |
|
647 |
-
@media (max-width: 767px) {
|
|
|
|
|
|
|
|
|
|
|
648 |
|
649 |
-
@media (max-width: 480px) {
|
650 |
|
651 |
-
|
652 |
|
653 |
-
@media (min-width:
|
|
|
654 |
|
655 |
-
@media (min-width:
|
656 |
-
|
657 |
-
|
|
|
|
|
|
|
658 |
}
|
659 |
}
|
660 |
|
661 |
-
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
|
662 |
-
|
663 |
-
only screen and (min--moz-device-pixel-ratio: 1.5),
|
664 |
-
only screen and (min-device-pixel-ratio: 1.5) {}
|
9 |
|
10 |
/* onoff */
|
11 |
.rm_onoff input {
|
12 |
+
display : none;
|
13 |
}
|
14 |
|
15 |
.rm_onoff input + span {
|
16 |
+
cursor : pointer;
|
17 |
+
text-indent : -9999px;
|
18 |
+
display : block;
|
19 |
+
width : 85px;
|
20 |
+
height : 37px;
|
21 |
+
background : transparent url(../images/off.png);
|
22 |
}
|
23 |
|
24 |
.rm_onoff input:checked + span {
|
25 |
+
background : transparent url(../images/on.png);
|
26 |
}
|
27 |
|
28 |
.rm_onoff input.onoffchecked + span {
|
29 |
+
background : transparent url(../images/on.png);
|
30 |
}
|
31 |
|
32 |
/* slider */
|
33 |
/*numbers*/
|
34 |
.ui-slider .maxCaption, .ui-slider .minCaption {
|
35 |
+
margin-bottom : 5px;
|
36 |
}
|
37 |
+
|
38 |
.ui-slider .feedback {
|
39 |
+
background : url(../images/slider/tooltip.png) no-repeat center top;
|
40 |
+
position : absolute;
|
41 |
+
top : -25px;
|
42 |
+
width : 35px;
|
43 |
+
height : 43px;
|
44 |
+
text-align : center;
|
45 |
+
width : 100%;
|
46 |
+
display : block;
|
47 |
}
|
48 |
+
|
49 |
.ui-slider .feedback strong {
|
50 |
+
display : inline-block;
|
51 |
+
padding-top : 4px;
|
52 |
+
top : -30px;
|
53 |
}
|
54 |
+
|
55 |
/*handle*/
|
56 |
.yit-options .ui-slider-horizontal .ui-slider-handle,
|
57 |
.yit_options .ui-slider-horizontal .ui-slider-handle {
|
58 |
+
background : transparent url(../images/slider/handle.png) no-repeat left top !important;
|
59 |
+
border : 0px !important;
|
60 |
+
top : -.35em !important;
|
61 |
+
width : 18px !important;
|
62 |
+
height : 19px !important;
|
63 |
}
|
64 |
|
65 |
/*bg on the left:grey*/
|
66 |
.yit-options .ui-slider.ui-widget-content,
|
67 |
.yit_options .ui-slider.ui-widget-content {
|
68 |
+
background : url(../images/slider/grey.gif) repeat-x left center !important;
|
69 |
+
border-color : #c1c1c0 !important;
|
70 |
+
height : 10px !important;
|
71 |
}
|
72 |
|
73 |
.iris-slider-offset.ui-slider.ui-widget-content {
|
74 |
+
background : transparent !important;
|
75 |
+
height : auto !important;
|
76 |
}
|
77 |
|
78 |
/*bg on the right:orange*/
|
79 |
.ui-slider.ui-widget-content .ui-widget-header {
|
80 |
+
background : url(../images/slider/orange.gif) repeat-x left center !important;
|
81 |
+
left : 2px !important;
|
82 |
+
-webkit-border-radius : 15px;
|
83 |
+
-moz-border-radius : 15px;
|
84 |
+
-khtml-border-radius : 15px;
|
85 |
+
border-radius : 15px;
|
86 |
}
|
87 |
|
88 |
+
.plugin-option tr {
|
89 |
+
border-bottom : 1px solid #ccc;
|
90 |
}
|
91 |
+
|
92 |
.plugin-option .yit_options,
|
93 |
+
.plugin-option .yit-options {
|
94 |
+
border-bottom : 0px;
|
95 |
}
|
96 |
+
|
97 |
.plugin-option .yit-options .option,
|
98 |
.plugin-option .yit_options .option {
|
99 |
+
width : 600px;
|
100 |
+
float : left;
|
101 |
}
|
102 |
|
103 |
+
.plugin-option .form-table td {
|
104 |
+
padding : 25px 10px;
|
105 |
}
|
106 |
|
107 |
.yit_options .select_wrapper,
|
108 |
.yit-options .select_wrapper {
|
109 |
+
background : url("../images/select.png") no-repeat scroll right center #FAFAFA;
|
110 |
+
border-color : #CCCCCC #EEEEEE #EEEEEE #CCCCCC;
|
111 |
+
border-radius : 4px 4px 4px 4px;
|
112 |
+
border-style : solid;
|
113 |
+
border-width : 1px;
|
114 |
+
color : #555555;
|
115 |
+
display : block;
|
116 |
+
float : left;
|
117 |
+
font-family : sans-serif;
|
118 |
+
font-size : 12px;
|
119 |
+
height : 26px;
|
120 |
+
margin-bottom : 9px !important;
|
121 |
+
margin-left : 0;
|
122 |
+
margin-right : 5px;
|
123 |
+
margin-top : 0;
|
124 |
+
width : 400px;
|
125 |
}
|
126 |
+
|
127 |
.chosen .select_wrapper {
|
128 |
+
background : none;
|
129 |
+
border : none;
|
130 |
}
|
131 |
+
|
132 |
+
.chosen .select_wrapper .chosen-container {
|
133 |
+
width : 338px !important;
|
134 |
}
|
135 |
+
|
136 |
+
.chosen .select_wrapper .chosen-container .search-field input {
|
137 |
+
height : 27px !important;
|
138 |
+
color : #333;
|
139 |
}
|
140 |
+
|
141 |
+
.chosen .select_wrapper .chosen-container .chosen-choices {
|
142 |
+
border : 1px solid #ddd;
|
143 |
+
box-shadow : none;
|
144 |
}
|
145 |
+
|
146 |
+
.chosen .select_wrapper .chosen-container .chosen-choices li.search-choice {
|
147 |
+
height : 15px !important;
|
148 |
+
min-width : 105px;
|
149 |
}
|
150 |
+
|
151 |
+
.chosen .select_wrapper .chosen-container .chosen-choices li.search-choice span {
|
152 |
+
line-height : 15px;
|
153 |
+
height : 15px;
|
154 |
+
padding-top : 2px;
|
155 |
}
|
156 |
+
|
157 |
+
.chosen .select_wrapper .chosen-container .chosen-choices li.search-choice a.search-choice-close {
|
158 |
+
top : 5px;
|
159 |
}
|
160 |
+
|
161 |
+
.chosen .select_wrapper .chosen-container .chosen-drop .chosen-search input {
|
162 |
+
width : 100% !important;
|
163 |
}
|
164 |
|
165 |
/* === Multiple Chosen Customizzation === */
|
166 |
|
167 |
.yith-choosen .chosen-choices {
|
168 |
+
line-height : 27px;
|
169 |
+
min-height : 27px;
|
170 |
+
border : 1px solid #ddd;
|
171 |
}
|
172 |
|
173 |
+
.yith-choosen .chosen-container-active .chosen-choices {
|
174 |
+
border : 1px solid #5b9dd9;
|
175 |
+
-webkit-box-shadow : 0 0 2px rgba(30, 140, 190, .8);
|
176 |
+
box-shadow : 0 0 2px rgba(30, 140, 190, .8);
|
177 |
}
|
178 |
|
179 |
.select_wrapper span {
|
180 |
+
height : 26px;
|
181 |
+
line-height : 26px;
|
182 |
+
padding-left : 6px;
|
183 |
+
position : absolute;
|
184 |
+
z-index : 2;
|
185 |
+
overflow : hidden;
|
186 |
}
|
187 |
+
|
188 |
.ie8 .yit_options select,
|
189 |
.ie8 .yit-options select {
|
190 |
+
height : 26px;
|
191 |
}
|
192 |
+
|
193 |
.yit_options select, .yit-options select, .the-metabox .select_wrapper select {
|
194 |
+
cursor : pointer;
|
195 |
+
height : 28px;
|
196 |
+
margin : 0;
|
197 |
+
opacity : 0;
|
198 |
+
padding : 0;
|
199 |
+
position : relative;
|
200 |
+
width : inherit;
|
201 |
+
z-index : 4;
|
202 |
+
background-color : #FAFAFA;
|
203 |
}
|
204 |
|
205 |
/* === Single Chosen Customizzation === */
|
206 |
|
207 |
.yith-choosen .chosen-container-single .chosen-default {
|
208 |
+
background : transparent;
|
209 |
+
border-color : #ddd;
|
210 |
}
|
211 |
|
212 |
+
.yith-choosen .chosen-search > input[type=text] {
|
213 |
+
width : 100% !important;
|
214 |
}
|
215 |
|
216 |
.yith-choosen .chosen-container-single .chosen-single {
|
217 |
+
background : transparent;
|
218 |
+
border-color : #ddd;
|
219 |
}
|
220 |
|
|
|
221 |
/* Style to woocommerce panel*/
|
222 |
|
223 |
+
#plugin-fw-wc {
|
224 |
+
padding-top : 20px;
|
225 |
}
|
226 |
+
|
227 |
+
#plugin-fw-wc table.form-table {
|
228 |
+
background-color : #fff;
|
229 |
+
margin-bottom : 20px;
|
230 |
}
|
231 |
+
|
232 |
#plugin-fw-wc table.form-table th {
|
233 |
+
padding : 20px;
|
234 |
}
|
235 |
+
|
236 |
+
#plugin-fw-wc h3 {
|
237 |
+
padding : 0px 10px 10px;
|
238 |
+
border-bottom : 1px solid #eee;
|
239 |
}
|
240 |
|
241 |
/* === VIDEO BOX === */
|
242 |
|
243 |
.yith-videobox-wrapper {
|
244 |
+
padding-top : 20px;
|
245 |
}
|
246 |
+
|
247 |
+
.yith-videobox-wrapper h3 {
|
248 |
+
padding : 0px 10px 10px;
|
249 |
+
border-bottom : 1px solid #eee;
|
250 |
}
|
251 |
|
252 |
.yith-videobox-wrapper .postbox {
|
253 |
+
display : inline-block;
|
254 |
}
|
255 |
+
|
256 |
.yith-videobox-wrapper .yith_videobox .column {
|
257 |
+
width : 45%;
|
258 |
+
float : left;
|
259 |
+
padding-right : 2.5%;
|
260 |
+
border-right : 1px solid #ebebeb;
|
261 |
+
padding-bottom : 2em;
|
262 |
}
|
263 |
+
|
264 |
.yith-videobox-wrapper .yith_videobox .column.two {
|
265 |
+
margin-right : 0;
|
266 |
+
padding-right : 0;
|
267 |
+
padding-left : 2.5%;
|
268 |
+
border : 0;
|
269 |
+
max-width : 49%;
|
270 |
}
|
271 |
+
|
272 |
+
.yith-videobox-wrapper .yith_videobox h2 {
|
273 |
+
font-size : 16px;
|
274 |
+
margin-bottom : 20px;
|
275 |
}
|
276 |
+
|
277 |
.yith-videobox-wrapper .yith-video-link {
|
278 |
+
width : 100%;
|
279 |
+
max-width : 200px;
|
280 |
+
float : left;
|
281 |
+
margin : 0 1.5em 1.5em 0;
|
282 |
}
|
283 |
+
|
284 |
.yith-videobox-wrapper .yith-video-link {
|
285 |
+
width : 100%;
|
286 |
+
max-width : 200px;
|
287 |
+
float : left;
|
288 |
+
margin : 0 1.5em 1.5em 0;
|
289 |
}
|
290 |
+
|
291 |
.yith-videobox-wrapper .yith-image-frame img {
|
292 |
+
max-width : 100%;
|
293 |
+
height : auto;
|
294 |
}
|
295 |
+
|
296 |
.yith-videobox-wrapper .yith-video-link img {
|
297 |
+
max-width : 100%;
|
298 |
+
height : auto;
|
299 |
}
|
300 |
+
|
301 |
.yith-videobox-wrapper .yith-video-iframe {
|
302 |
+
display : none;
|
303 |
|
304 |
}
|
305 |
|
306 |
/* === Plugins Upgrader === */
|
307 |
|
308 |
.yit-plugin-changelog-wrapper {
|
309 |
+
display : none;
|
310 |
}
|
311 |
|
312 |
.yit-plugin-changelog-title {
|
313 |
+
text-transform : uppercase;
|
314 |
}
|
315 |
|
316 |
.yit-plugin-changelog {
|
317 |
+
background : #fcfcfc;
|
318 |
+
height : 97%;
|
319 |
+
z-index : 999;
|
320 |
+
overflow : auto;
|
321 |
}
|
322 |
|
323 |
/* === Plugins Licence Activation === */
|
324 |
|
325 |
.yit-container.plugin-licence-activation {
|
326 |
+
font-family : 'Raleway', sans-serif;
|
327 |
}
|
328 |
|
329 |
.yit-container.plugin-licence-activation .to-active-wrapper {
|
330 |
+
margin-bottom : 60px;
|
331 |
}
|
332 |
|
333 |
.yit-container.plugin-licence-activation .to-active-wrapper form.to-active-form {
|
334 |
+
position : relative;
|
335 |
+
border-color : #e1e1e1;
|
336 |
+
border-style : solid;
|
337 |
+
border-width : 0;
|
338 |
}
|
339 |
|
340 |
.yit-container.plugin-licence-activation .to-active-wrapper form.to-active-form:first-child {
|
341 |
+
border-top-width : 1px;
|
342 |
}
|
343 |
|
344 |
.yit-container.plugin-licence-activation .to-active-wrapper form.to-active-form:last-child {
|
345 |
+
border-bottom-width : 1px;
|
346 |
}
|
347 |
|
348 |
.yit-container.plugin-licence-activation .to-active-wrapper table.to-active-table {
|
349 |
+
border-width : 0;
|
350 |
+
border-spacing : 0;
|
351 |
+
width : 100%;
|
352 |
}
|
353 |
|
354 |
.yit-container.plugin-licence-activation .message {
|
355 |
+
display : none;
|
356 |
+
line-height : normal;
|
357 |
+
background : #ffffff url(../images/licence-error.png) 15px center no-repeat;
|
358 |
+
padding-left : 65px;
|
359 |
+
padding-right : 15px;
|
360 |
+
width : 150px;
|
361 |
}
|
362 |
|
363 |
.yit-container.plugin-licence-activation .message-wrapper {
|
364 |
+
height : 75px;
|
365 |
+
display : none;
|
366 |
+
position : absolute;
|
367 |
+
top : 0;
|
368 |
+
right : -250px;
|
369 |
+
border : 1px solid #ff3838;
|
370 |
}
|
371 |
|
372 |
.yit-container.plugin-licence-activation .message-wrapper.visible {
|
373 |
+
display : table;
|
374 |
}
|
375 |
|
376 |
.yit-container.plugin-licence-activation .message {
|
377 |
+
display : table-cell;
|
378 |
+
vertical-align : middle;
|
379 |
}
|
380 |
|
381 |
.yit-container.plugin-licence-activation .arrow-left:after,
|
382 |
.yit-container.plugin-licence-activation .arrow-left:before {
|
383 |
+
content : "";
|
384 |
+
display : block;
|
385 |
+
width : 0;
|
386 |
+
height : 0;
|
387 |
+
position : absolute;
|
388 |
}
|
389 |
|
390 |
.yit-container.plugin-licence-activation .arrow-left:before {
|
391 |
+
border-top : 9px solid transparent;
|
392 |
+
border-bottom : 9px solid transparent;
|
393 |
+
border-right : 9px solid #ff3838;
|
394 |
+
top : 26px;
|
395 |
+
left : -9px;
|
396 |
}
|
397 |
|
398 |
.yit-container.plugin-licence-activation .arrow-left:after {
|
399 |
+
border-top : 8px solid transparent;
|
400 |
+
border-bottom : 8px solid transparent;
|
401 |
+
border-right : 8px solid #fff;
|
402 |
+
left : -8px;
|
403 |
+
top : 27px;
|
404 |
}
|
405 |
|
406 |
.yit-container.plugin-licence-activation h2,
|
407 |
.yit-container.plugin-licence-activation h3 {
|
408 |
+
text-transform : uppercase;
|
409 |
+
font-weight : 800;
|
410 |
+
margin-bottom : 30px;
|
411 |
}
|
412 |
|
413 |
.yit-container.plugin-licence-activation h2 {
|
414 |
+
color : #808a97;
|
415 |
+
font-size : 25px;
|
416 |
}
|
417 |
+
|
418 |
.yit-container.plugin-licence-activation h3 {
|
419 |
+
color : #313131;
|
420 |
+
font-size : 15px;
|
421 |
+
height : 20px;
|
422 |
}
|
423 |
|
424 |
.yit-container.plugin-licence-activation h3.to-active {
|
425 |
+
height : 20px;
|
426 |
+
position : relative;
|
427 |
+
vertical-align : top;
|
428 |
}
|
429 |
|
430 |
+
.yit-container.plugin-licence-activation .spinner.show {
|
431 |
+
display : inline-block;
|
432 |
+
vertical-align : middle;
|
433 |
+
float : none;
|
434 |
}
|
435 |
|
436 |
.yit-container.plugin-licence-activation h3.to-active > .spinner.show {
|
437 |
+
display : inline-block;
|
438 |
+
float : none;
|
439 |
+
top : -3px;
|
440 |
+
position : relative;
|
441 |
}
|
442 |
|
443 |
+
.yit-container.plugin-licence-activation .licence-check-section {
|
444 |
+
margin-bottom : 60px;
|
445 |
}
|
446 |
|
447 |
.yit-container.plugin-licence-activation span.licence-label {
|
448 |
+
font-weight : 500;
|
449 |
+
color : #606060;
|
450 |
+
margin-bottom : 30px;
|
451 |
}
|
452 |
|
453 |
.yit-container.plugin-licence-activation .button-licence {
|
454 |
+
border : 0;
|
455 |
+
font-size : 13px;
|
456 |
+
text-transform : uppercase;
|
457 |
+
background-color : #808a97;
|
458 |
+
color : #fff;
|
459 |
+
font-weight : 700;
|
460 |
+
border-radius : 3px;
|
461 |
+
cursor : pointer;
|
462 |
+
text-decoration : none;
|
463 |
+
padding : 5px 7px;
|
464 |
+
-webkit-transition : background-color 0.3s ease;
|
465 |
+
-moz-transition : background-color 0.3s ease;
|
466 |
+
-ms-transition : background-color 0.3s ease;
|
467 |
+
-o-transition : background-color 0.3s ease;
|
468 |
+
transition : background-color 0.3s ease;
|
469 |
}
|
470 |
|
471 |
.yit-container.plugin-licence-activation .button-licence:hover {
|
472 |
+
background-color : #4d5c6f;
|
473 |
}
|
474 |
|
475 |
.yit-container.plugin-licence-activation .button-licence.clicked {
|
476 |
+
cursor : not-allowed;
|
477 |
+
background-color : #e2e2e2 !important;
|
478 |
}
|
479 |
|
480 |
.yit-container.plugin-licence-activation .button-licence.licence-check {
|
481 |
+
font-weight : 400;
|
482 |
+
padding : 12px 19px;
|
483 |
}
|
484 |
|
485 |
.yit-container.plugin-licence-activation .button-licence.licence-renew {
|
486 |
+
text-decoration : none;
|
487 |
+
padding : 7px 12px;
|
488 |
+
font-size : 9px;
|
489 |
}
|
490 |
|
491 |
.yit-container.plugin-licence-activation .button-licence.licence-renew:focus {
|
492 |
+
box-shadow : none;
|
493 |
}
|
494 |
|
495 |
.yit-container.plugin-licence-activation table:not(.to-active-table) {
|
496 |
+
width : 100%;
|
497 |
+
border : 1px solid #dcdcdc;
|
498 |
+
border-spacing : 0;
|
499 |
+
border-radius : 5px;
|
500 |
+
border-collapse : separate;
|
501 |
+
overflow : hidden;
|
502 |
}
|
503 |
|
504 |
.yit-container.plugin-licence-activation table:not(.to-active-table) th {
|
505 |
+
border-bottom : 1px solid #dcdcdc;
|
506 |
}
|
507 |
|
508 |
.yit-container.plugin-licence-activation table:not(.to-active-table) td,
|
509 |
.yit-container.plugin-licence-activation table:not(.to-active-table) th {
|
510 |
+
border-right : 1px solid #dcdcdc;
|
511 |
}
|
512 |
+
|
513 |
.yit-container.plugin-licence-activation table td:last-child,
|
514 |
.yit-container.plugin-licence-activation table th:last-child {
|
515 |
+
border-right : 0;
|
516 |
}
|
517 |
|
518 |
.yit-container.plugin-licence-activation table thead tr {
|
519 |
+
background-color : #f6f4f4;
|
520 |
}
|
521 |
|
522 |
.yit-container.plugin-licence-activation table tbody tr {
|
523 |
+
background-color : #ffffff;
|
524 |
}
|
525 |
|
526 |
.yit-container.plugin-licence-activation table thead tr th {
|
527 |
+
font-size : 13px;
|
528 |
+
color : #313131;
|
529 |
+
text-transform : uppercase;
|
530 |
+
font-weight : bold;
|
531 |
}
|
532 |
|
533 |
.yit-container.plugin-licence-activation table thead tr,
|
534 |
.yit-container.plugin-licence-activation table tbody tr {
|
535 |
+
line-height : 60px;
|
536 |
}
|
537 |
|
538 |
+
.yit-container.plugin-licence-activation table tbody tr td {
|
539 |
+
text-align : center;
|
540 |
+
line-height : 20px;
|
541 |
+
padding : 10px 5px;
|
542 |
}
|
543 |
|
544 |
.yit-container.plugin-licence-activation .button-licence.licence-activation {
|
545 |
+
padding : 12px 18px;
|
546 |
}
|
547 |
|
548 |
.yit-container.plugin-licence-activation .to-active-table tr {
|
549 |
+
line-height : 75px;
|
550 |
}
|
551 |
|
552 |
.yit-container.plugin-licence-activation .to-active-table tr.plugin-row {
|
553 |
+
background-color : transparent;
|
554 |
+
-webkit-transition : all 0.3s ease;
|
555 |
+
-moz-transition : all 0.3s ease;
|
556 |
+
-ms-transition : all 0.3s ease;
|
557 |
+
-o-transition : all 0.3s ease;
|
558 |
+
transition : all 0.3s ease;
|
559 |
}
|
560 |
|
561 |
.yit-container.plugin-licence-activation .to-active-table tr.plugin-row.error {
|
562 |
+
background-color : #ffdcdc;
|
563 |
}
|
564 |
|
565 |
.yit-container.plugin-licence-activation .to-active-table td {
|
566 |
+
padding-right : 12px;
|
567 |
+
width : 33%;
|
568 |
}
|
569 |
|
|
|
570 |
.yit-container.plugin-licence-activation .to-active-table td.plugin-name {
|
571 |
+
color : #808a97;
|
572 |
+
font-size : 12px;
|
573 |
+
text-transform : uppercase;
|
574 |
+
font-weight : bold;
|
575 |
+
line-height : 20px;
|
576 |
+
width : 20%;
|
577 |
+
padding-left : 20px;
|
578 |
}
|
579 |
|
580 |
.yit-container.plugin-licence-activation .to-active-table td.activate-button {
|
581 |
+
width : 15%;
|
582 |
+
position : relative;
|
583 |
}
|
584 |
|
585 |
.yit-container.plugin-licence-activation input[type=text],
|
586 |
+
.yit-container.plugin-licence-activation input[type=email] {
|
587 |
+
-webkit-transition : all 0.3s ease;
|
588 |
+
-moz-transition : all 0.3s ease;
|
589 |
+
-ms-transition : all 0.3s ease;
|
590 |
+
-o-transition : all 0.3s ease;
|
591 |
+
transition : all 0.3s ease;
|
592 |
|
593 |
+
border : 1px solid #dcdcdc;
|
594 |
+
padding : 0 15px;
|
595 |
+
border-radius : 3px;
|
596 |
+
height : 41px;
|
597 |
+
width : 100%;
|
598 |
}
|
599 |
|
600 |
.yit-container.plugin-licence-activation input[type=text].require,
|
601 |
.yit-container.plugin-licence-activation input[type=email].require {
|
602 |
+
border : 1px solid #ff3838;
|
603 |
}
|
604 |
|
605 |
.yit-container.plugin-licence-activation input[type=text]:focus,
|
606 |
+
.yit-container.plugin-licence-activation input[type=email]:focus {
|
607 |
+
webkit-box-shadow : 0 0 1px rgba(30, 140, 190, .8);
|
608 |
+
box-shadow : 0 0 1px rgba(30, 140, 190, .8);
|
609 |
}
|
610 |
|
611 |
+
.yit-container.plugin-licence-activation input[type=text] {
|
612 |
+
text-transform : uppercase;
|
613 |
+
text-align : center;
|
614 |
}
|
615 |
|
616 |
.yit-container.plugin-licence-activation input[type=email] {
|
617 |
+
text-align : left;
|
618 |
}
|
619 |
|
620 |
+
.yit-container.plugin-licence-activation input[type=submit]:focus {
|
621 |
+
outline : 0;
|
622 |
}
|
623 |
|
624 |
/* === Woocommerce panel === */
|
625 |
+
#plugin-fw-wc .yit_options {
|
626 |
+
padding : 0;
|
627 |
+
border : 0;
|
628 |
}
|
629 |
+
|
630 |
+
#plugin-fw-wc .yit_options input.upload_button, .yit_options input.button {
|
631 |
+
background : none;
|
632 |
+
border : 1px solid #ccc;
|
633 |
}
|
634 |
|
635 |
/* === WP Pointers === */
|
637 |
#adminmenu li.menu-top.yit-pointer-selected-row,
|
638 |
#adminmenu li.menu-top.yit-pointer-selected-row:hover,
|
639 |
#adminmenu li.yit-pointer-selected-row a.menu-top {
|
640 |
+
background-color : #acc327;
|
641 |
+
color : #000;
|
642 |
}
|
643 |
|
644 |
+
#adminmenu a.menu-top.toplevel_page_yit_plugin_panel.yit-pointer {
|
645 |
+
color : #000;
|
646 |
}
|
647 |
|
648 |
#adminmenu a.menu-top.toplevel_page_yit_plugin_panel.yit-pointer:hover,
|
649 |
#adminmenu .wp-submenu a.yit-pointer-selected-row {
|
650 |
+
color : #fff;
|
651 |
}
|
652 |
|
653 |
#adminmenu .wp-submenu a.yit-pointer-selected-row:hover {
|
654 |
+
color : #45bbe6;
|
655 |
}
|
656 |
|
657 |
/* WooCommerce 2.4 Support */
|
658 |
+
.woocommerce table.form-table .colorpick {
|
659 |
+
width : 6em;
|
660 |
}
|
661 |
|
662 |
#wpwrap h2.nav-tab-wrapper , #wpbody-content h2.nav-tab-wrapper {
|
665 |
|
666 |
/* === YIT FRAMEWORK === */
|
667 |
.plugin-card .plugin-icon img {
|
668 |
+
max-width : 100%;
|
669 |
+
width : auto;
|
670 |
+
height : auto;
|
671 |
+
}
|
672 |
+
|
673 |
+
/* === Panel Content and Container === */
|
674 |
+
.yit-admin-panel-container{
|
675 |
+
position:relative;
|
676 |
+
}
|
677 |
+
.yit-admin-panel-content-wrap {
|
678 |
+
width : calc(100% - 300px);
|
679 |
+
display : inline-block;
|
680 |
+
}
|
681 |
+
|
682 |
+
.yit-admin-panel-content-wrap.yit-admin-panel-content-wrap-full {
|
683 |
+
width : 100%;
|
684 |
+
display : block;
|
685 |
}
|
686 |
|
687 |
/* === Responsive === */
|
688 |
|
689 |
+
@media (max-width : 767px) {
|
690 |
+
.yit-admin-panel-content-wrap {
|
691 |
+
width : 100%;
|
692 |
+
display : block;
|
693 |
+
}
|
694 |
+
}
|
695 |
|
696 |
+
@media (max-width : 480px) {
|
697 |
|
698 |
+
}
|
699 |
|
700 |
+
@media (min-width : 768px) and (max-width : 992px) {
|
701 |
+
}
|
702 |
|
703 |
+
@media (min-width : 980px) and (max-width : 1199px) {
|
704 |
+
}
|
705 |
+
|
706 |
+
@media (min-width : 1200px) {
|
707 |
+
.yit-container.plugin-licence-activation {
|
708 |
+
width : 900px;
|
709 |
}
|
710 |
}
|
711 |
|
712 |
+
@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (-o-min-device-pixel-ratio : 3/2), only screen and (min--moz-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) {
|
713 |
+
}
|
|
|
|
plugin-fw/assets/images/widgets/box-icon.png
ADDED
Binary file
|
plugin-fw/assets/images/widgets/box-white-icon.png
ADDED
Binary file
|
plugin-fw/assets/images/widgets/despacho.png
ADDED
Binary file
|
plugin-fw/assets/images/widgets/info-icon.png
ADDED
Binary file
|
plugin-fw/assets/images/widgets/link-bg.png
ADDED
Binary file
|
plugin-fw/assets/images/widgets/link-bg2.png
ADDED
Binary file
|
plugin-fw/assets/images/widgets/link-icon.png
ADDED
Binary file
|
plugin-fw/assets/images/widgets/membership-bg.png
ADDED
Binary file
|
plugin-fw/assets/js/yit-plugin-panel-sidebar.js
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* This file belongs to the YIT Plugin Framework.
|
3 |
+
*
|
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:
|
7 |
+
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
+
*/
|
9 |
+
|
10 |
+
|
11 |
+
(function ( $ ) {
|
12 |
+
var hide_sidebar_btn = $( '#yit-panel-sidebar-action-hide' ),
|
13 |
+
hide_sidebar_text = hide_sidebar_btn.find( '.yit-panel-sidebar-action-title' ),
|
14 |
+
sidebar = $( '#yit-panel-sidebar' ),
|
15 |
+
panel_wrapper = $( '.' + sidebar_labels.wrapper_class ),
|
16 |
+
ajax_hide_option_save_call,
|
17 |
+
ajax_hide_option_save = function ( option ) {
|
18 |
+
if ( ajax_hide_option_save_call ) {
|
19 |
+
ajax_hide_option_save_call.abort();
|
20 |
+
}
|
21 |
+
|
22 |
+
var post_data = {
|
23 |
+
option: option,
|
24 |
+
action: 'yith_plugin_panel_sidebar_set_collapse_option'
|
25 |
+
};
|
26 |
+
|
27 |
+
ajax_hide_option_save_call = $.ajax( {
|
28 |
+
type: "POST",
|
29 |
+
data: post_data,
|
30 |
+
url: ajaxurl
|
31 |
+
} );
|
32 |
+
},
|
33 |
+
hide_sidebar = function () {
|
34 |
+
hide_sidebar_btn.removeClass( 'hide-on-click' );
|
35 |
+
hide_sidebar_text.html( sidebar_labels.show_sidebar );
|
36 |
+
sidebar.addClass( 'yith-panel-sidebar-hidden' );
|
37 |
+
panel_wrapper.addClass( 'yit-admin-panel-content-wrap-full' );
|
38 |
+
ajax_hide_option_save( 'yes' );
|
39 |
+
},
|
40 |
+
show_sidebar = function () {
|
41 |
+
hide_sidebar_btn.addClass( 'hide-on-click' );
|
42 |
+
hide_sidebar_text.html( sidebar_labels.hide_sidebar );
|
43 |
+
sidebar.removeClass( 'yith-panel-sidebar-hidden' );
|
44 |
+
panel_wrapper.removeClass( 'yit-admin-panel-content-wrap-full' );
|
45 |
+
ajax_hide_option_save( 'no' );
|
46 |
+
};
|
47 |
+
|
48 |
+
hide_sidebar_btn.on( 'click', function () {
|
49 |
+
if ( $( this ).is( '.hide-on-click' ) ) {
|
50 |
+
hide_sidebar();
|
51 |
+
} else {
|
52 |
+
show_sidebar();
|
53 |
+
}
|
54 |
+
} );
|
55 |
+
|
56 |
+
})( jQuery );
|
plugin-fw/assets/js/yit-plugin-panel-sidebar.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a){var i,e=a("#yit-panel-sidebar-action-hide"),n=e.find(".yit-panel-sidebar-action-title"),l=a("#yit-panel-sidebar"),s=a("."+sidebar_labels.wrapper_class),t=function(e){i&&i.abort();var n={option:e,action:"yith_plugin_panel_sidebar_set_collapse_option"};i=a.ajax({type:"POST",data:n,url:ajaxurl})},d=function(){e.removeClass("hide-on-click"),n.html(sidebar_labels.show_sidebar),l.addClass("yith-panel-sidebar-hidden"),s.addClass("yit-admin-panel-content-wrap-full"),t("yes")},o=function(){e.addClass("hide-on-click"),n.html(sidebar_labels.hide_sidebar),l.removeClass("yith-panel-sidebar-hidden"),s.removeClass("yit-admin-panel-content-wrap-full"),t("no")};e.on("click",function(){a(this).is(".hide-on-click")?d():o()})}(jQuery);
|
plugin-fw/init.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 2.9.
|
5 |
* Author: Yithemes
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 2.9.21
|
5 |
* Author: Yithemes
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
plugin-fw/lib/yit-ajax.php
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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( 'YIT_Ajax' ) ) {
|
16 |
+
/**
|
17 |
+
* YIT Ajax
|
18 |
+
*
|
19 |
+
* @class YIT_Ajax
|
20 |
+
* @package Yithemes
|
21 |
+
* @since 1.0
|
22 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
23 |
+
*/
|
24 |
+
class YIT_Ajax {
|
25 |
+
/**
|
26 |
+
* @var string version of class
|
27 |
+
*/
|
28 |
+
public $version = '1.0.0';
|
29 |
+
|
30 |
+
/**
|
31 |
+
* @var object The single instance of the class
|
32 |
+
* @since 1.0
|
33 |
+
*/
|
34 |
+
protected static $_instance = null;
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Constructor
|
38 |
+
*
|
39 |
+
* @since 1.0
|
40 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
41 |
+
*/
|
42 |
+
private function __construct() {
|
43 |
+
add_action( 'wp_ajax_yith_plugin_panel_sidebar_set_collapse_option', array( $this, 'set_ajax_sidebar_collapse_option' ) );
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* get single instance
|
48 |
+
*
|
49 |
+
* @static
|
50 |
+
* @return YIT_Ajax
|
51 |
+
*
|
52 |
+
* @since 1.0
|
53 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
54 |
+
*/
|
55 |
+
public static function instance() {
|
56 |
+
if ( is_null( self::$_instance ) ) {
|
57 |
+
self::$_instance = new self();
|
58 |
+
}
|
59 |
+
|
60 |
+
return self::$_instance;
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Set Sidebar collapse option [AJAX]
|
65 |
+
*/
|
66 |
+
public function set_ajax_sidebar_collapse_option() {
|
67 |
+
if ( isset( $_REQUEST[ 'option' ] ) ) {
|
68 |
+
$option = $_REQUEST[ 'option' ];
|
69 |
+
update_option( YIT_Plugin_Panel_Sidebar::$collapse_option, $option );
|
70 |
+
}
|
71 |
+
die();
|
72 |
+
}
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
+
YIT_Ajax::instance();
|
plugin-fw/lib/yit-plugin-panel-sidebar.php
ADDED
@@ -0,0 +1,417 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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( 'YIT_Plugin_Panel_Sidebar' ) ) {
|
16 |
+
/**
|
17 |
+
* YIT Plugin Panel Sidebar
|
18 |
+
*
|
19 |
+
* @class YIT_Plugin_Panel_Sidebar
|
20 |
+
* @package Yithemes
|
21 |
+
* @since 1.0
|
22 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
23 |
+
*/
|
24 |
+
class YIT_Plugin_Panel_Sidebar {
|
25 |
+
/**
|
26 |
+
* @var string version of class
|
27 |
+
*/
|
28 |
+
public $version = '1.0.1';
|
29 |
+
|
30 |
+
|
31 |
+
/**
|
32 |
+
* @var array array of widgets
|
33 |
+
*/
|
34 |
+
public $widgets = array();
|
35 |
+
|
36 |
+
/**
|
37 |
+
* @type string
|
38 |
+
*/
|
39 |
+
protected $_remote_widget_xml = 'http://bit.ly/1UJ83xN';
|
40 |
+
|
41 |
+
/**
|
42 |
+
* default priority for Remote Widgets
|
43 |
+
* @type int
|
44 |
+
*/
|
45 |
+
public $default_remote_widget_priority = 40;
|
46 |
+
|
47 |
+
/**
|
48 |
+
* parent panel
|
49 |
+
* @var YIT_Plugin_Panel
|
50 |
+
*/
|
51 |
+
public $panel;
|
52 |
+
|
53 |
+
private $_is_collapsed;
|
54 |
+
|
55 |
+
/**
|
56 |
+
* @type string
|
57 |
+
*/
|
58 |
+
public static $transient_remote_widgets = 'yit_panel_sidebar_remote_widgets';
|
59 |
+
|
60 |
+
/**
|
61 |
+
* @type string
|
62 |
+
*/
|
63 |
+
public static $transient_updated_remote_widgets = 'yit_panel_sidebar_remote_widgets_update';
|
64 |
+
|
65 |
+
/**
|
66 |
+
* @type string
|
67 |
+
*/
|
68 |
+
public static $collapse_option = 'yith_plugin_panel_sidebar_collapse';
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Constructor
|
72 |
+
*
|
73 |
+
* @param YIT_Plugin_Panel $panel the parent panel
|
74 |
+
*
|
75 |
+
* @since 1.0
|
76 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
77 |
+
*/
|
78 |
+
private function __construct( $panel ) {
|
79 |
+
$this->panel = $panel;
|
80 |
+
|
81 |
+
/* load and sort default widgets and remote widgets */
|
82 |
+
$this->load_widgets();
|
83 |
+
|
84 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
85 |
+
add_filter( 'yit_admin_panel_content_class', array( $this, 'filter_admin_panel_content_class' ) );
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* get instance
|
90 |
+
*
|
91 |
+
* @static
|
92 |
+
* @return YIT_Plugin_Panel_Sidebar
|
93 |
+
*
|
94 |
+
* @since 1.0
|
95 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
96 |
+
*/
|
97 |
+
public static function instance( $panel ) {
|
98 |
+
return new self( $panel );
|
99 |
+
}
|
100 |
+
|
101 |
+
/**
|
102 |
+
* return true if is collapsed by option
|
103 |
+
*
|
104 |
+
* @return bool
|
105 |
+
*/
|
106 |
+
public function is_collapsed() {
|
107 |
+
if ( !isset( $this->_is_collapsed ) ) {
|
108 |
+
$this->_is_collapsed = get_option( self::$collapse_option, 'no' ) === 'yes';
|
109 |
+
}
|
110 |
+
|
111 |
+
return $this->_is_collapsed;
|
112 |
+
}
|
113 |
+
|
114 |
+
/**
|
115 |
+
* if is collapsed add a class to panel wrapper
|
116 |
+
*
|
117 |
+
* @param $class
|
118 |
+
*
|
119 |
+
* @return string
|
120 |
+
*/
|
121 |
+
public function filter_admin_panel_content_class( $class ) {
|
122 |
+
if ( $this->is_collapsed() ) {
|
123 |
+
$class .= ' yit-admin-panel-content-wrap-full';
|
124 |
+
}
|
125 |
+
|
126 |
+
return $class;
|
127 |
+
}
|
128 |
+
|
129 |
+
/**
|
130 |
+
* Add one or more widgets to $this->widgets
|
131 |
+
*
|
132 |
+
* @param array $widgets
|
133 |
+
*/
|
134 |
+
public function add_widgets( $widgets ) {
|
135 |
+
$this->widgets = array_merge( $this->widgets, $widgets );
|
136 |
+
}
|
137 |
+
|
138 |
+
/**
|
139 |
+
* delete transients
|
140 |
+
*/
|
141 |
+
public static function delete_transients() {
|
142 |
+
delete_transient( self::$transient_remote_widgets );
|
143 |
+
delete_transient( self::$transient_updated_remote_widgets );
|
144 |
+
}
|
145 |
+
|
146 |
+
/**
|
147 |
+
* filter and sort widgets
|
148 |
+
*/
|
149 |
+
private function _filter_and_sort_widgets() {
|
150 |
+
/* filter widgets */
|
151 |
+
$page_name = isset( $this->panel->settings[ 'page' ] ) ? $this->panel->settings[ 'page' ] : '';
|
152 |
+
$this->widgets = apply_filters( 'yit_plugin_panel_sidebar_widgets', $this->widgets, $page_name );
|
153 |
+
|
154 |
+
/*sort widgets*/
|
155 |
+
uasort( $this->widgets, array( $this, 'sort_widgets' ) );
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* get Remote Widget by XML from YIThemes
|
160 |
+
*
|
161 |
+
* @return array
|
162 |
+
*
|
163 |
+
* @since 1.0
|
164 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
165 |
+
*/
|
166 |
+
public function get_remote_widgets() {
|
167 |
+
$remote_widgets = get_transient( self::$transient_remote_widgets );
|
168 |
+
$updated = get_transient( self::$transient_updated_remote_widgets );
|
169 |
+
$is_debug = defined( 'YIT_FW_REMOTE_WIDGETS_DEBUG' ) && YIT_FW_REMOTE_WIDGETS_DEBUG;
|
170 |
+
|
171 |
+
if ( $is_debug || $updated === false || $remote_widgets === false ) {
|
172 |
+
$remote_widgets = array();
|
173 |
+
} else {
|
174 |
+
return $remote_widgets;
|
175 |
+
}
|
176 |
+
|
177 |
+
$expiration = 1 * DAY_IN_SECONDS;
|
178 |
+
$updated_expiration = DAY_IN_SECONDS; // update frequency
|
179 |
+
|
180 |
+
$remote_xml = wp_remote_get( $this->_remote_widget_xml );
|
181 |
+
if ( !is_wp_error( $remote_xml ) && isset( $remote_xml[ 'response' ][ 'code' ] ) && '200' == $remote_xml[ 'response' ][ 'code' ] ) {
|
182 |
+
$xml_data = new SimpleXmlElement( $remote_xml[ 'body' ] );
|
183 |
+
$xml_remote_widgets = isset( $xml_data->widget ) ? $xml_data->widget : array();
|
184 |
+
|
185 |
+
$enabled_args = array(
|
186 |
+
'title',
|
187 |
+
'icon',
|
188 |
+
'content',
|
189 |
+
'class',
|
190 |
+
'title_class',
|
191 |
+
'badge',
|
192 |
+
'badge_text',
|
193 |
+
'image',
|
194 |
+
'image_class',
|
195 |
+
'priority',
|
196 |
+
'starting',
|
197 |
+
'expiration',
|
198 |
+
);
|
199 |
+
|
200 |
+
$last_remote_priority = $this->default_remote_widget_priority;
|
201 |
+
|
202 |
+
foreach ( $xml_remote_widgets as $xml_widget ) {
|
203 |
+
if ( !isset( $xml_widget->id ) )
|
204 |
+
continue;
|
205 |
+
|
206 |
+
$widget_id = (string)$xml_widget->id;
|
207 |
+
$widget_array = array();
|
208 |
+
foreach ( $enabled_args as $key ) {
|
209 |
+
if ( isset( $xml_widget->$key ) ) {
|
210 |
+
$widget_array[ $key ] = (string)$xml_widget->$key;
|
211 |
+
} else {
|
212 |
+
if ( $key == 'priority' ) {
|
213 |
+
$widget_array[ $key ] = $last_remote_priority;
|
214 |
+
$last_remote_priority += 10;
|
215 |
+
}
|
216 |
+
}
|
217 |
+
}
|
218 |
+
$remote_widgets[ $widget_id ] = $widget_array;
|
219 |
+
}
|
220 |
+
|
221 |
+
$xml_expiration = isset( $xml_data->expiration ) ? (string)$xml_data->expiration : '';
|
222 |
+
if ( !empty( $xml_expiration ) ) {
|
223 |
+
$expiration = strtotime( $xml_expiration ) - strtotime( 'now' );
|
224 |
+
// if the XML is expired removes widgets
|
225 |
+
if ( $expiration < 1 )
|
226 |
+
$remote_widgets = array();
|
227 |
+
|
228 |
+
$is_urgent = isset( $xml_data->urgent ) ? !!$xml_data->urgent : false;
|
229 |
+
$is_urgent = true;
|
230 |
+
if ( !$is_urgent ) {
|
231 |
+
$four_days_random = mt_rand( 0, 4 * DAY_IN_SECONDS );
|
232 |
+
$expiration += $four_days_random;
|
233 |
+
} else {
|
234 |
+
/**
|
235 |
+
* - - - - - U R G E N T - - - - -
|
236 |
+
* it will be updated the exact day, BUT in different time! :)
|
237 |
+
* [to prevent too many request at the same time]
|
238 |
+
*/
|
239 |
+
$one_day_random = mt_rand( 0, DAY_IN_SECONDS );
|
240 |
+
$expiration += $one_day_random;
|
241 |
+
}
|
242 |
+
}
|
243 |
+
|
244 |
+
$four_days_random = mt_rand( 0, 4 * DAY_IN_SECONDS );
|
245 |
+
|
246 |
+
/* to prevent multiple request if it's expired */
|
247 |
+
if ( $expiration < 1 ) {
|
248 |
+
$expiration = 1 * DAY_IN_SECONDS + $four_days_random;
|
249 |
+
}
|
250 |
+
|
251 |
+
//$updated_expiration = 30 * DAY_IN_SECONDS + $four_days_random;
|
252 |
+
}
|
253 |
+
|
254 |
+
set_transient( self::$transient_remote_widgets, $remote_widgets, $expiration );
|
255 |
+
set_transient( self::$transient_updated_remote_widgets, true, $updated_expiration );
|
256 |
+
|
257 |
+
return $remote_widgets;
|
258 |
+
}
|
259 |
+
|
260 |
+
/**
|
261 |
+
* load and sort default widgets and remote widgets
|
262 |
+
*
|
263 |
+
* @since 1.0
|
264 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
265 |
+
*/
|
266 |
+
public function load_widgets() {
|
267 |
+
/* get static widgets */
|
268 |
+
$this->widgets = include( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/sidebar/widgets/widgets.php' );
|
269 |
+
|
270 |
+
/* get remote widgets */
|
271 |
+
$remote_widgets = $this->get_remote_widgets();
|
272 |
+
$this->add_widgets( $remote_widgets );
|
273 |
+
}
|
274 |
+
|
275 |
+
/**
|
276 |
+
* Print the panel sidebar
|
277 |
+
*
|
278 |
+
* @return void
|
279 |
+
*
|
280 |
+
* @since 1.0
|
281 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
282 |
+
*/
|
283 |
+
public function print_panel_sidebar() {
|
284 |
+
do_action( 'yit_panel_before_sidebar' );
|
285 |
+
|
286 |
+
include( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/sidebar/sidebar.php' );
|
287 |
+
|
288 |
+
do_action( 'yit_panel_after_sidebar' );
|
289 |
+
}
|
290 |
+
|
291 |
+
/**
|
292 |
+
* Print the panel sidebar widgets
|
293 |
+
*
|
294 |
+
* @return void
|
295 |
+
*
|
296 |
+
* @since 1.0
|
297 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
298 |
+
*/
|
299 |
+
public function print_panel_sidebar_widgets() {
|
300 |
+
$basename = YIT_CORE_PLUGIN_PATH;
|
301 |
+
$path = '/panel/sidebar/widget.php';
|
302 |
+
|
303 |
+
$default_args = array(
|
304 |
+
'id' => '',
|
305 |
+
'title' => '',
|
306 |
+
'icon' => '',
|
307 |
+
'content' => '',
|
308 |
+
'class' => '',
|
309 |
+
'title_class' => '',
|
310 |
+
'template' => '',
|
311 |
+
'badge' => '',
|
312 |
+
'badge_text' => '',
|
313 |
+
'image' => '',
|
314 |
+
'image_class' => '',
|
315 |
+
'args' => array(),
|
316 |
+
'hide_if_empty_args' => '',
|
317 |
+
'priority' => 10,
|
318 |
+
'starting' => '',
|
319 |
+
'expiration' => '',
|
320 |
+
);
|
321 |
+
|
322 |
+
$this->_filter_and_sort_widgets();
|
323 |
+
|
324 |
+
foreach ( $this->widgets as $widget_id => $widget ) {
|
325 |
+
$args = array_merge( $widget, array( 'id' => $widget_id ) );
|
326 |
+
$args = wp_parse_args( $args, $default_args );
|
327 |
+
|
328 |
+
$is_started = empty( $args[ 'starting' ] ) || strtotime( $args[ 'starting' ] . ' midnight' ) <= strtotime( 'midnight' );
|
329 |
+
$is_expired = !empty( $args[ 'expiration' ] ) && strtotime( $args[ 'expiration' ] . ' midnight' ) < strtotime( 'midnight' );
|
330 |
+
|
331 |
+
if ( $is_expired || !$is_started )
|
332 |
+
continue;
|
333 |
+
|
334 |
+
if ( !empty( $args[ 'hide_if_empty_args' ] ) ) {
|
335 |
+
$hide_if_empty_args = $args[ 'hide_if_empty_args' ];
|
336 |
+
$continue = false;
|
337 |
+
foreach ( $hide_if_empty_args as $hide_if_empty_arg ) {
|
338 |
+
if ( empty( $args[ 'args' ][ $hide_if_empty_arg ] ) ) {
|
339 |
+
$continue = true;
|
340 |
+
break;
|
341 |
+
}
|
342 |
+
}
|
343 |
+
if ( $continue )
|
344 |
+
continue;
|
345 |
+
}
|
346 |
+
|
347 |
+
do_action( 'yit_panel_sidebar_before_widget', $widget_id, $widget );
|
348 |
+
|
349 |
+
yit_plugin_get_template( $basename, $path, $args );
|
350 |
+
|
351 |
+
do_action( 'yit_panel_sidebar_after_widget', $widget_id, $widget );
|
352 |
+
}
|
353 |
+
}
|
354 |
+
|
355 |
+
/**
|
356 |
+
* set transient for first activation
|
357 |
+
* to prevent too many calls to YIThemes
|
358 |
+
*/
|
359 |
+
public static function set_transient_for_first_activation() {
|
360 |
+
$remote_widgets = get_transient( self::$transient_remote_widgets );
|
361 |
+
$updated = get_transient( self::$transient_updated_remote_widgets );
|
362 |
+
|
363 |
+
$first_activation = $updated === false && $remote_widgets === false;
|
364 |
+
if ( $first_activation ) {
|
365 |
+
$seven_days_random = mt_rand( 0, 7 * DAY_IN_SECONDS );
|
366 |
+
$expiration = 1 * DAY_IN_SECONDS + $seven_days_random;
|
367 |
+
|
368 |
+
set_transient( self::$transient_remote_widgets, array(), $expiration );
|
369 |
+
set_transient( self::$transient_updated_remote_widgets, true, $expiration );
|
370 |
+
}
|
371 |
+
}
|
372 |
+
|
373 |
+
/**
|
374 |
+
* Sort widgets by priority
|
375 |
+
*
|
376 |
+
* @param $a
|
377 |
+
* @param $b
|
378 |
+
*
|
379 |
+
* @return bool
|
380 |
+
*
|
381 |
+
* @since 1.0
|
382 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
383 |
+
*/
|
384 |
+
public function sort_widgets( $a, $b ) {
|
385 |
+
$priority_a = isset( $a[ 'priority' ] ) ? intval( $a[ 'priority' ] ) : $this->default_remote_widget_priority;
|
386 |
+
$priority_b = isset( $b[ 'priority' ] ) ? intval( $b[ 'priority' ] ) : $this->default_remote_widget_priority;
|
387 |
+
if ( $priority_a == $priority_b ) {
|
388 |
+
return 0;
|
389 |
+
} elseif ( $priority_a > $priority_b ) {
|
390 |
+
return 1;
|
391 |
+
} else {
|
392 |
+
return -1;
|
393 |
+
}
|
394 |
+
}
|
395 |
+
|
396 |
+
/**
|
397 |
+
* Add Admin WC Style and Scripts
|
398 |
+
*
|
399 |
+
* @return void
|
400 |
+
*
|
401 |
+
* @since 1.0
|
402 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com
|
403 |
+
*/
|
404 |
+
public function admin_enqueue_scripts() {
|
405 |
+
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
406 |
+
|
407 |
+
wp_enqueue_style( 'opensans-font', '//fonts.googleapis.com/css?family=Open+Sans:400,500,600,700,800,100,200,300,900' );
|
408 |
+
wp_enqueue_style( 'yit-plugin-sidebar-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel-sidebar.css', $this->version );
|
409 |
+
wp_enqueue_script( 'yit-plugin-sidebar-js', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel-sidebar' . $min . '.js', array( 'jquery' ), $this->version, true );
|
410 |
+
wp_localize_script( 'yit-plugin-sidebar-js', 'sidebar_labels', array(
|
411 |
+
'hide_sidebar' => __( 'Hide sidebar', 'yith-plugin-fw' ),
|
412 |
+
'show_sidebar' => __( 'Show sidebar', 'yith-plugin-fw' ),
|
413 |
+
'wrapper_class' => 'yit-admin-panel-content-wrap',
|
414 |
+
) );
|
415 |
+
}
|
416 |
+
}
|
417 |
+
}
|
plugin-fw/lib/yit-plugin-panel-wc.php
CHANGED
@@ -71,6 +71,11 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
71 |
if( isset( $this->settings['create_menu_page'] ) && $this->settings[ 'create_menu_page'] ){
|
72 |
$this->add_menu_page();
|
73 |
}
|
|
|
|
|
|
|
|
|
|
|
74 |
add_action( 'admin_init', array( $this, 'set_default_options') );
|
75 |
add_action( 'admin_menu', array( $this, 'add_setting_page' ) );
|
76 |
add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 );
|
@@ -87,6 +92,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
87 |
/* WooCommerce 2.4 Support */
|
88 |
add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
|
89 |
}
|
|
|
|
|
|
|
90 |
}
|
91 |
|
92 |
|
@@ -235,14 +243,16 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
235 |
* @since 1.0
|
236 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
237 |
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
|
|
238 |
*/
|
239 |
public function print_panel_content() {
|
240 |
$yit_options = $this->get_main_array_options();
|
241 |
$current_tab = $this->get_current_tab();
|
242 |
$custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
|
|
|
243 |
|
244 |
if ( $custom_tab_action ) {
|
245 |
-
$this->print_custom_tab( $custom_tab_action );
|
246 |
return;
|
247 |
}
|
248 |
else {
|
@@ -292,7 +302,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
292 |
);
|
293 |
}
|
294 |
}
|
295 |
-
|
296 |
woocommerce_update_options( $yit_options[ $current_tab ] );
|
297 |
|
298 |
do_action( 'yit_panel_wc_after_update' );
|
@@ -319,7 +329,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
319 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
320 |
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
321 |
*/
|
322 |
-
public function admin_enqueue_scripts() {
|
323 |
global $woocommerce, $pagenow;
|
324 |
|
325 |
wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
|
71 |
if( isset( $this->settings['create_menu_page'] ) && $this->settings[ 'create_menu_page'] ){
|
72 |
$this->add_menu_page();
|
73 |
}
|
74 |
+
|
75 |
+
if ( !empty( $this->settings[ 'links' ] ) ) {
|
76 |
+
$this->links = $this->settings[ 'links' ];
|
77 |
+
}
|
78 |
+
|
79 |
add_action( 'admin_init', array( $this, 'set_default_options') );
|
80 |
add_action( 'admin_menu', array( $this, 'add_setting_page' ) );
|
81 |
add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 );
|
92 |
/* WooCommerce 2.4 Support */
|
93 |
add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
|
94 |
}
|
95 |
+
|
96 |
+
/* add YIT Plugin sidebar */
|
97 |
+
$this->sidebar = YIT_Plugin_Panel_Sidebar::instance( $this );
|
98 |
}
|
99 |
|
100 |
|
243 |
* @since 1.0
|
244 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
245 |
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
246 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
247 |
*/
|
248 |
public function print_panel_content() {
|
249 |
$yit_options = $this->get_main_array_options();
|
250 |
$current_tab = $this->get_current_tab();
|
251 |
$custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
|
252 |
+
$hide_sidebar = $this->hide_sidebar( $yit_options, $current_tab );
|
253 |
|
254 |
if ( $custom_tab_action ) {
|
255 |
+
$this->print_custom_tab( $custom_tab_action, $hide_sidebar );
|
256 |
return;
|
257 |
}
|
258 |
else {
|
302 |
);
|
303 |
}
|
304 |
}
|
305 |
+
|
306 |
woocommerce_update_options( $yit_options[ $current_tab ] );
|
307 |
|
308 |
do_action( 'yit_panel_wc_after_update' );
|
329 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
330 |
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
|
331 |
*/
|
332 |
+
public function admin_enqueue_scripts() {
|
333 |
global $woocommerce, $pagenow;
|
334 |
|
335 |
wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
|
plugin-fw/lib/yit-plugin-panel.php
CHANGED
@@ -46,6 +46,16 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
46 |
*/
|
47 |
private $_main_array_options = array();
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
/**
|
50 |
* Constructor
|
51 |
*
|
@@ -74,6 +84,10 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
74 |
$this->add_menu_page();
|
75 |
}
|
76 |
|
|
|
|
|
|
|
|
|
77 |
add_action( 'admin_init', array( $this, 'register_settings' ) );
|
78 |
add_action( 'admin_menu', array( $this, 'add_setting_page' ), 20 );
|
79 |
add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 );
|
@@ -81,6 +95,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
81 |
add_action( 'admin_init', array( $this, 'add_fields' ) );
|
82 |
}
|
83 |
|
|
|
|
|
|
|
84 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
85 |
}
|
86 |
|
@@ -109,7 +126,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
109 |
* @since 1.0
|
110 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
111 |
*/
|
112 |
-
public function remove_duplicate_submenu_page() {
|
113 |
/* === Duplicate Items Hack === */
|
114 |
remove_submenu_page( 'yit_plugin_panel', 'yit_plugin_panel' );
|
115 |
}
|
@@ -158,7 +175,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
158 |
if( 'admin.php' == $pagenow && strpos( get_current_screen()->id, 'yith_upgrade_premium_version' ) !== false ){
|
159 |
wp_enqueue_style( 'yit-upgrade-to-pro' );
|
160 |
wp_enqueue_script( 'colorbox' );
|
161 |
-
|
162 |
}
|
163 |
|
164 |
/**
|
@@ -304,14 +321,19 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
304 |
</h2>
|
305 |
<?php
|
306 |
$custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
|
|
|
307 |
if ( $custom_tab_action ) {
|
308 |
-
$this->print_custom_tab( $custom_tab_action );
|
309 |
return;
|
310 |
}
|
311 |
?>
|
312 |
<?php $this->print_video_box(); ?>
|
313 |
-
|
|
|
|
|
|
|
314 |
<?php $this->message(); ?>
|
|
|
315 |
<h2><?php echo $this->get_tab_title() ?></h2>
|
316 |
<?php if ( $this->is_show_form() ) : ?>
|
317 |
<form method="post" action="options.php">
|
@@ -328,6 +350,14 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
328 |
</form>
|
329 |
<p> </p>
|
330 |
<?php endif ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
331 |
</div>
|
332 |
<?php
|
333 |
}
|
@@ -341,20 +371,74 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
341 |
return false;
|
342 |
}
|
343 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
}
|
345 |
|
346 |
/**
|
347 |
* Fire the action to print the custom tab
|
348 |
*
|
349 |
*
|
350 |
-
* @param $action Action to fire
|
|
|
351 |
*
|
352 |
* @return void
|
353 |
* @since 1.0
|
354 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
|
|
355 |
*/
|
356 |
-
public function print_custom_tab( $action ) {
|
357 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
}
|
359 |
|
360 |
/**
|
@@ -832,6 +916,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
832 |
*/
|
833 |
public function show_premium_version_upgrade() {
|
834 |
yit_plugin_get_template ( YIT_CORE_PLUGIN_PATH, 'upgrade/upgrade-to-pro-version.php', array( 'core_plugin_url' => YIT_CORE_PLUGIN_URL ) ) ;
|
835 |
-
|
836 |
}
|
837 |
}
|
46 |
*/
|
47 |
private $_main_array_options = array();
|
48 |
|
49 |
+
/**
|
50 |
+
* @var YIT_Plugin_Panel_Sidebar
|
51 |
+
*/
|
52 |
+
public $sidebar;
|
53 |
+
|
54 |
+
/**
|
55 |
+
* @var array
|
56 |
+
*/
|
57 |
+
public $links;
|
58 |
+
|
59 |
/**
|
60 |
* Constructor
|
61 |
*
|
84 |
$this->add_menu_page();
|
85 |
}
|
86 |
|
87 |
+
if ( !empty( $this->settings[ 'links' ] ) ) {
|
88 |
+
$this->links = $this->settings[ 'links' ];
|
89 |
+
}
|
90 |
+
|
91 |
add_action( 'admin_init', array( $this, 'register_settings' ) );
|
92 |
add_action( 'admin_menu', array( $this, 'add_setting_page' ), 20 );
|
93 |
add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 );
|
95 |
add_action( 'admin_init', array( $this, 'add_fields' ) );
|
96 |
}
|
97 |
|
98 |
+
/* add YIT Plugin sidebar */
|
99 |
+
$this->sidebar = YIT_Plugin_Panel_Sidebar::instance( $this );
|
100 |
+
|
101 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
102 |
}
|
103 |
|
126 |
* @since 1.0
|
127 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
128 |
*/
|
129 |
+
public function remove_duplicate_submenu_page() {
|
130 |
/* === Duplicate Items Hack === */
|
131 |
remove_submenu_page( 'yit_plugin_panel', 'yit_plugin_panel' );
|
132 |
}
|
175 |
if( 'admin.php' == $pagenow && strpos( get_current_screen()->id, 'yith_upgrade_premium_version' ) !== false ){
|
176 |
wp_enqueue_style( 'yit-upgrade-to-pro' );
|
177 |
wp_enqueue_script( 'colorbox' );
|
178 |
+
}
|
179 |
}
|
180 |
|
181 |
/**
|
321 |
</h2>
|
322 |
<?php
|
323 |
$custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
|
324 |
+
$hide_sidebar = $this->hide_sidebar();
|
325 |
if ( $custom_tab_action ) {
|
326 |
+
$this->print_custom_tab( $custom_tab_action, $hide_sidebar );
|
327 |
return;
|
328 |
}
|
329 |
?>
|
330 |
<?php $this->print_video_box(); ?>
|
331 |
+
<?php
|
332 |
+
$panel_content_class = !$hide_sidebar ? apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) : 'yit-admin-panel-content-wrap-no-sidebar';
|
333 |
+
?>
|
334 |
+
<div id="wrap" class="plugin-option yit-admin-panel-container">
|
335 |
<?php $this->message(); ?>
|
336 |
+
<div class="<?php echo $panel_content_class; ?>">
|
337 |
<h2><?php echo $this->get_tab_title() ?></h2>
|
338 |
<?php if ( $this->is_show_form() ) : ?>
|
339 |
<form method="post" action="options.php">
|
350 |
</form>
|
351 |
<p> </p>
|
352 |
<?php endif ?>
|
353 |
+
</div>
|
354 |
+
<?php
|
355 |
+
/**
|
356 |
+
* Add panel Sidebar
|
357 |
+
*/
|
358 |
+
if ( !$hide_sidebar )
|
359 |
+
$this->print_panel_sidebar();
|
360 |
+
?>
|
361 |
</div>
|
362 |
<?php
|
363 |
}
|
371 |
return false;
|
372 |
}
|
373 |
}
|
374 |
+
return false;
|
375 |
+
}
|
376 |
+
|
377 |
+
/**
|
378 |
+
* Print the panel sidebar
|
379 |
+
*
|
380 |
+
* @return void
|
381 |
+
* @since 1.0
|
382 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
383 |
+
*/
|
384 |
+
public function print_panel_sidebar() {
|
385 |
+
$this->sidebar->print_panel_sidebar();
|
386 |
+
}
|
387 |
+
|
388 |
+
/**
|
389 |
+
* @param $options
|
390 |
+
* @param $current_tab
|
391 |
+
*
|
392 |
+
* @return bool
|
393 |
+
*
|
394 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
395 |
+
*/
|
396 |
+
public function hide_sidebar( $options = '', $current_tab = '' ) {
|
397 |
+
if ( $options === '' )
|
398 |
+
$options = $this->get_main_array_options();
|
399 |
+
if ( $current_tab === '' )
|
400 |
+
$current_tab = $this->get_current_tab();
|
401 |
+
|
402 |
+
$hide = false;
|
403 |
+
|
404 |
+
foreach ( $options[ $current_tab ] as $section => $option ) {
|
405 |
+
if ( isset( $option[ 'hide_sidebar' ] ) ) {
|
406 |
+
$hide = !!$option[ 'hide_sidebar' ];
|
407 |
+
}
|
408 |
+
break;
|
409 |
+
}
|
410 |
+
|
411 |
+
$page = isset( $this->settings[ 'page' ] ) ? $this->settings[ 'page' ] : '';
|
412 |
+
|
413 |
+
return apply_filters( 'yit_panel_hide_sidebar', $hide, $page );
|
414 |
}
|
415 |
|
416 |
/**
|
417 |
* Fire the action to print the custom tab
|
418 |
*
|
419 |
*
|
420 |
+
* @param string $action Action to fire
|
421 |
+
* @param bool $hide_sidebar
|
422 |
*
|
423 |
* @return void
|
424 |
* @since 1.0
|
425 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
426 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
427 |
*/
|
428 |
+
public function print_custom_tab( $action, $hide_sidebar = false ) {
|
429 |
+
if ( !$hide_sidebar ) {
|
430 |
+
$panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) ;
|
431 |
+
echo "<div class='yit-admin-panel-container'>";
|
432 |
+
echo "<div class='$panel_content_class'>";
|
433 |
+
|
434 |
+
do_action( $action );
|
435 |
+
|
436 |
+
echo "</div>";
|
437 |
+
$this->print_panel_sidebar();
|
438 |
+
echo "</div>";
|
439 |
+
} else {
|
440 |
+
do_action( $action );
|
441 |
+
}
|
442 |
}
|
443 |
|
444 |
/**
|
916 |
*/
|
917 |
public function show_premium_version_upgrade() {
|
918 |
yit_plugin_get_template ( YIT_CORE_PLUGIN_PATH, 'upgrade/upgrade-to-pro-version.php', array( 'core_plugin_url' => YIT_CORE_PLUGIN_URL ) ) ;
|
919 |
+
}
|
920 |
}
|
921 |
}
|
plugin-fw/templates/panel/sidebar/sidebar.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$sidebar_action_hide_class = $this->is_collapsed() ? '' : 'hide-on-click';
|
3 |
+
$sidebar_action_hide_title = $this->is_collapsed() ? __( 'Show sidebar', 'yith-plugin-fw' ) : __( 'Hide sidebar', 'yith-plugin-fw' );
|
4 |
+
$sidebar_class = $this->is_collapsed() ? 'yith-panel-sidebar-hidden' : '';
|
5 |
+
?>
|
6 |
+
|
7 |
+
|
8 |
+
<div id="yit-panel-sidebar" class="<?php echo $sidebar_class; ?>">
|
9 |
+
<div id="yit-panel-sidebar-actions">
|
10 |
+
<div id="yit-panel-sidebar-action-hide" class="<?php echo $sidebar_action_hide_class; ?>">
|
11 |
+
<span class="yit-panel-sidebar-action-title"><?php echo $sidebar_action_hide_title; ?></span>
|
12 |
+
<span class="yit-panel-sidebar-action-hide-icon dashicons dashicons-arrow-left"></span>
|
13 |
+
</div>
|
14 |
+
</div>
|
15 |
+
<div id="yit-panel-sidebar-widgets-container">
|
16 |
+
<?php
|
17 |
+
$this->print_panel_sidebar_widgets();
|
18 |
+
?>
|
19 |
+
</div>
|
20 |
+
</div>
|
plugin-fw/templates/panel/sidebar/widget.php
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @var string $id
|
4 |
+
* @var string $title
|
5 |
+
* @var string $content
|
6 |
+
* @var string $class
|
7 |
+
* @var string $title_class
|
8 |
+
* @var string $template
|
9 |
+
* @var string $badge
|
10 |
+
* @var string $badge_text
|
11 |
+
* @var string $image
|
12 |
+
* @var array $args
|
13 |
+
* @var string $icon
|
14 |
+
*
|
15 |
+
*/
|
16 |
+
|
17 |
+
if ( !empty( $template ) ) {
|
18 |
+
ob_start();
|
19 |
+
$basename = YIT_CORE_PLUGIN_PATH;
|
20 |
+
$path = '/panel/sidebar/widgets/widget-' . $template . '.php';
|
21 |
+
yit_plugin_get_template( $basename, $path, $args );
|
22 |
+
$content = ob_get_clean();
|
23 |
+
}
|
24 |
+
|
25 |
+
if ( !empty( $icon ) ) {
|
26 |
+
$title_class .= ' yit-panel-sidebar-widget-icon ' . $icon . '-icon';
|
27 |
+
}
|
28 |
+
|
29 |
+
?>
|
30 |
+
|
31 |
+
<div id="yit-panel-sidebar-<?php echo $id ?>-widget" class="yit-panel-sidebar-widget-wrapper <?php echo $class; ?>">
|
32 |
+
<div class="yit-panel-sidebar-widget-container">
|
33 |
+
<?php if ( !empty( $title ) ): ?>
|
34 |
+
<div class="yit-panel-sidebar-widget-title <?php echo $title_class; ?>">
|
35 |
+
<?php echo $title; ?>
|
36 |
+
</div>
|
37 |
+
<?php endif; ?>
|
38 |
+
<div class="yit-panel-sidebar-widget-content"><?php echo $content; ?></div>
|
39 |
+
<?php
|
40 |
+
if ( !empty( $image ) ) {
|
41 |
+
$path = YIT_CORE_PLUGIN_URL . '/assets/images/widgets/' . $image;
|
42 |
+
echo "<img class='yit-panel-sidebar-widget-image $image_class' src='{$path}' alt='' width='100%'/>";
|
43 |
+
}
|
44 |
+
?>
|
45 |
+
</div>
|
46 |
+
<?php
|
47 |
+
if ( !empty( $badge ) ) {
|
48 |
+
$basename = YIT_CORE_PLUGIN_PATH;
|
49 |
+
$path = '/panel/sidebar/widgets/badges/badge.php';
|
50 |
+
yit_plugin_get_template( $basename, $path, array( 'text' => $badge_text, 'type' => $badge ) );
|
51 |
+
}
|
52 |
+
?>
|
53 |
+
</div>
|
plugin-fw/templates/panel/sidebar/widgets/badges/badge.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @var string $type
|
4 |
+
*/
|
5 |
+
?>
|
6 |
+
|
7 |
+
<div class="yit-panel-sidebar-widget-badge <?php echo $type; ?>">
|
8 |
+
<div class="yit-panel-sidebar-widget-badge-s1"></div>
|
9 |
+
<div class="yit-panel-sidebar-widget-badge-s2"></div>
|
10 |
+
<div class="yit-panel-sidebar-widget-badge-text"><?php echo $text ?></div>
|
11 |
+
</div>
|
plugin-fw/templates/panel/sidebar/widgets/widget-despacho.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
<p>We are happy to present Despacho, our new cutting edge WordPress theme for e-commerce sites.
|
16 |
+
Conceived to include all the best and hi-quality features for shops,
|
17 |
+
this powerful theme offers a wide range of options to
|
18 |
+
<strong>easily customize and shape the appearande of your site. <a href="//despacho.yithemes.com" target="_blank">Discover More ></a></strong>
|
19 |
+
</p>
|
plugin-fw/templates/panel/sidebar/widgets/widget-links.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
/**
|
16 |
+
* @var array $links
|
17 |
+
*/
|
18 |
+
$links = !empty( $links ) ? $links : array();
|
19 |
+
|
20 |
+
$link_default_args = array(
|
21 |
+
'url' => '',
|
22 |
+
'title' => '',
|
23 |
+
'target' => '_blank'
|
24 |
+
);
|
25 |
+
?>
|
26 |
+
|
27 |
+
<ul class="yit-panel-sidebar-links-list">
|
28 |
+
<?php foreach ( $links as $link ) {
|
29 |
+
$link = wp_parse_args( $link, $link_default_args );
|
30 |
+
$link = (object)$link;
|
31 |
+
echo "<li><a href='$link->url' target='$link->target'>$link->title</a></li>";
|
32 |
+
}
|
33 |
+
?>
|
34 |
+
</ul>
|
plugin-fw/templates/panel/sidebar/widgets/widget-membership.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|
16 |
+
<div class="membership-wrapper">
|
17 |
+
<div class="membership-total-price">$10.000+</div>
|
18 |
+
<div class="membership-offer-text">of themes and plugins for WooCommerce</div>
|
19 |
+
<div class="membership-offer-text2">with a</div>
|
20 |
+
<div class="membership-offer-sale-text">95% OFF</div>
|
21 |
+
<div class="membership-buttons">
|
22 |
+
<a class="button green" href="//yithemes.com/themes/membership/annual-yithemes-club-subscription/" target="_blank">Discover More!</a>
|
23 |
+
</div>
|
24 |
+
</div>
|
plugin-fw/templates/panel/sidebar/widgets/widgets.php
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
/**
|
12 |
+
* @var YIT_Plugin_Panel_Sidebar $this
|
13 |
+
*/
|
14 |
+
|
15 |
+
$widgets = array(
|
16 |
+
'membership' => array(
|
17 |
+
'title' => __( 'Join the club', 'yit' ),
|
18 |
+
'title_class' => 'orange',
|
19 |
+
'icon' => 'box-white',
|
20 |
+
'template' => 'membership',
|
21 |
+
'priority' => 10,
|
22 |
+
),
|
23 |
+
'despacho' => array(
|
24 |
+
'title' => __( 'Despacho Theme - 100% FREE', 'yit' ),
|
25 |
+
'icon' => 'info',
|
26 |
+
'template' => 'despacho',
|
27 |
+
'badge' => 'gift-tape',
|
28 |
+
'badge_text' => __( 'FREE!', 'yit' ),
|
29 |
+
'image' => 'despacho.png',
|
30 |
+
'image_class' => 'yit-panel-sidebar-widget-despacho-image',
|
31 |
+
'priority' => 20,
|
32 |
+
),
|
33 |
+
'links' => array(
|
34 |
+
'title' => __( 'Important Links', 'yit' ),
|
35 |
+
'icon' => 'link',
|
36 |
+
'template' => 'links',
|
37 |
+
'args' => array( 'links' => $this->panel->links ),
|
38 |
+
'hide_if_empty_args' => array( 'links' ),
|
39 |
+
'priority' => 30,
|
40 |
+
),
|
41 |
+
);
|
42 |
+
return apply_filters( 'yit_panel_widgets_array', $widgets );
|
plugin-fw/templates/panel/woocommerce/woocommerce-form.php
CHANGED
@@ -1,13 +1,28 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$hide_sidebar = $this->hide_sidebar();
|
3 |
+
$panel_content_class = !$hide_sidebar ? apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) : 'yit-admin-panel-content-wrap-no-sidebar';
|
4 |
+
?>
|
5 |
+
|
6 |
+
<div id="<?php echo $this->settings[ 'page' ] ?>_<?php echo $this->get_current_tab() ?>" class="yit-admin-panel-container">
|
7 |
+
<div class="<?php echo $panel_content_class; ?>">
|
8 |
+
<form id="plugin-fw-wc" method="post">
|
9 |
+
<?php $this->add_fields() ?>
|
10 |
+
<?php wp_nonce_field( 'yit_panel_wc_options_' . $this->settings[ 'page' ], 'yit_panel_wc_options_nonce' ); ?>
|
11 |
+
<input style="float: left; margin-right: 10px;" class="button-primary" type="submit" value="<?php _e( 'Save Changes', 'yith-plugin-fw' ) ?>"/>
|
12 |
+
</form>
|
13 |
+
<form id="plugin-fw-wc-reset" method="post">
|
14 |
+
<?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ) ?>
|
15 |
+
<input type="hidden" name="yit-action" value="wc-options-reset"/>
|
16 |
+
<?php wp_nonce_field( 'yith_wc_reset_options_' . $this->settings[ 'page' ], 'yith_wc_reset_options_nonce' ); ?>
|
17 |
+
<input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset Defaults', 'yith-plugin-fw' ) ?>"
|
18 |
+
onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');"/>
|
19 |
+
</form>
|
20 |
+
</div>
|
21 |
+
<?php
|
22 |
+
/**
|
23 |
+
* Add panel Sidebar
|
24 |
+
*/
|
25 |
+
if ( !$hide_sidebar )
|
26 |
+
$this->print_panel_sidebar();
|
27 |
+
?>
|
28 |
+
</div>
|
plugin-fw/templates/upgrade/upgrade-to-pro-version.php
CHANGED
@@ -52,7 +52,7 @@
|
|
52 |
<?php _e( 'If everything worked allright, your plugin is now correctly installed on your website. Enjoy it :-)', 'yith-plugin-fw' ); ?>
|
53 |
</li>
|
54 |
<li class="step">
|
55 |
-
<?php _e( 'The last step is the activation of the plugin through its license key you received after the purchase. Click on "License Activation" that you find in "YITH Plugins" and insert the license key and the email address you used during the
|
56 |
<a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/08.jpg" title="Activate license">
|
57 |
<img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/08.jpg" alt="Activate license">
|
58 |
</a>
|
52 |
<?php _e( 'If everything worked allright, your plugin is now correctly installed on your website. Enjoy it :-)', 'yith-plugin-fw' ); ?>
|
53 |
</li>
|
54 |
<li class="step">
|
55 |
+
<?php _e( 'The last step is the activation of the plugin through its license key you received after the purchase. Click on "License Activation" that you find in "YITH Plugins" and insert the license key and the email address you used during the purchase.', 'yith-plugin-fw' ); ?>
|
56 |
<a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/08.jpg" title="Activate license">
|
57 |
<img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/08.jpg" alt="Activate license">
|
58 |
</a>
|
plugin-fw/yit-functions.php
CHANGED
@@ -809,7 +809,7 @@ if ( ! function_exists ( 'yit_load_js_file' ) ) {
|
|
809 |
*/
|
810 |
function yit_load_js_file ( $filename ) {
|
811 |
|
812 |
-
if ( ! ( ( defined ( 'WP_DEBUG' ) && WP_DEBUG ) || ( defined ( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ) ) {
|
813 |
$filename = str_replace ( '.js', '.min.js', $filename );
|
814 |
}
|
815 |
|
809 |
*/
|
810 |
function yit_load_js_file ( $filename ) {
|
811 |
|
812 |
+
if ( ! ( ( defined ( 'WP_DEBUG' ) && WP_DEBUG ) || ( defined ( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) || isset( $_GET['yith_script_debug'] ) ) ) {
|
813 |
$filename = str_replace ( '.js', '.min.js', $filename );
|
814 |
}
|
815 |
|
plugin-fw/yit-plugin-registration-hook.php
CHANGED
@@ -19,5 +19,11 @@ if( ! function_exists( 'yith_plugin_registration_hook' ) ){
|
|
19 |
$option = get_option( 'yit_recently_activated', array() );
|
20 |
$option[] = $hook;
|
21 |
update_option( 'yit_recently_activated', $option );
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
}
|
19 |
$option = get_option( 'yit_recently_activated', array() );
|
20 |
$option[] = $hook;
|
21 |
update_option( 'yit_recently_activated', $option );
|
22 |
+
|
23 |
+
/* set remote widget transient for first activation */
|
24 |
+
if ( !class_exists( 'YIT_Plugin_Panel_Sidebar' ) ) {
|
25 |
+
require_once 'lib/yit-plugin-panel-sidebar.php';
|
26 |
+
}
|
27 |
+
YIT_Plugin_Panel_Sidebar::set_transient_for_first_activation();
|
28 |
}
|
29 |
}
|
plugin-fw/yit-plugin.php
CHANGED
@@ -23,6 +23,8 @@ include_once( 'yit-plugin-registration-hook.php' );
|
|
23 |
include_once( 'lib/yit-metabox.php' );
|
24 |
include_once( 'lib/yit-plugin-panel.php' );
|
25 |
include_once( 'lib/yit-plugin-panel-wc.php' );
|
|
|
|
|
26 |
include_once( 'lib/yit-plugin-subpanel.php' );
|
27 |
include_once( 'lib/yit-plugin-common.php' );
|
28 |
include_once( 'lib/yit-plugin-gradients.php');
|
23 |
include_once( 'lib/yit-metabox.php' );
|
24 |
include_once( 'lib/yit-plugin-panel.php' );
|
25 |
include_once( 'lib/yit-plugin-panel-wc.php' );
|
26 |
+
include_once( 'lib/yit-ajax.php' );
|
27 |
+
include_once( 'lib/yit-plugin-panel-sidebar.php' );
|
28 |
include_once( 'lib/yit-plugin-subpanel.php' );
|
29 |
include_once( 'lib/yit-plugin-common.php' );
|
30 |
include_once( 'lib/yit-plugin-gradients.php');
|
plugin-options/premium-options.php
CHANGED
@@ -15,7 +15,8 @@ return array(
|
|
15 |
'premium' => array(
|
16 |
'landing' => array(
|
17 |
'type' => 'custom_tab',
|
18 |
-
'action' => 'yith_wcwl_premium_tab'
|
|
|
19 |
)
|
20 |
)
|
21 |
);
|
15 |
'premium' => array(
|
16 |
'landing' => array(
|
17 |
'type' => 'custom_tab',
|
18 |
+
'action' => 'yith_wcwl_premium_tab',
|
19 |
+
'hide_sidebar' => true
|
20 |
)
|
21 |
)
|
22 |
);
|