Version Description
Released Oct 11 - 2017
- New: Support to WooCommerce 3.2.0 RC2.
- New: Support to WordPress 4.8.2.
- Fix: Compatibility issue with YITH WooCommerce Product Bundles.
- Update: Plugin Core.
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Quick View |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- README.txt +16 -7
- assets/js/frontend.js +9 -7
- assets/js/frontend.min.js +1 -1
- includes/class.yith-wcqv-admin.php +1 -0
- init.php +3 -3
- languages/yith-woocommerce-quick-view-it_IT.mo +0 -0
- languages/yith-woocommerce-quick-view-it_IT.po +38 -35
- languages/yith-woocommerce-quick-view.pot +37 -34
- plugin-fw/assets/css/yit-plugin-panel-sidebar.css +0 -388
- plugin-fw/assets/css/yit-plugin-panel.css +1 -9
- 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 +0 -56
- plugin-fw/assets/js/yit-plugin-panel-sidebar.min.js +0 -1
- plugin-fw/init.php +1 -1
- plugin-fw/languages/yith-plugin-fw.pot +62 -85
- plugin-fw/lib/yit-ajax.php +1 -12
- plugin-fw/lib/yit-plugin-panel-sidebar.php +0 -430
- plugin-fw/lib/yit-plugin-panel-wc.php +3 -5
- plugin-fw/lib/yit-plugin-panel.php +7 -73
- plugin-fw/templates/panel/sidebar/sidebar.php +0 -20
- plugin-fw/templates/panel/sidebar/widget.php +0 -53
- plugin-fw/templates/panel/sidebar/widgets/badges/badge.php +0 -11
- plugin-fw/templates/panel/sidebar/widgets/widget-despacho.php +0 -19
- plugin-fw/templates/panel/sidebar/widgets/widget-links.php +0 -34
- plugin-fw/templates/panel/sidebar/widgets/widget-membership.php +0 -29
- plugin-fw/templates/panel/sidebar/widgets/widgets.php +0 -42
- plugin-fw/templates/panel/woocommerce/woocommerce-form.php +1 -9
- plugin-fw/yit-plugin-registration-hook.php +0 -6
- plugin-fw/yit-plugin.php +0 -1
- plugin-fw/yit-woocommerce-compatibility.php +76 -39
README.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: yithemes
|
3 |
-
Tags:
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -42,6 +42,13 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
= 1.2.1 = Released Apr 05 - 2017
|
46 |
|
47 |
* Fix: Compatibility issue with YITH WooCommerce Wishlist.
|
@@ -142,12 +149,14 @@ If you have suggestions about how to improve YITH WooCommerce Quick View, you ca
|
|
142 |
* English
|
143 |
* Italian
|
144 |
|
145 |
-
If you
|
146 |
-
[
|
147 |
|
148 |
== Upgrade notice ==
|
149 |
|
150 |
-
= 1.2.
|
151 |
|
152 |
-
*
|
|
|
|
|
153 |
* Update: Plugin Core.
|
1 |
=== Plugin Name ===
|
2 |
Contributors: yithemes
|
3 |
+
Tags: woocommerce, quick view, woocommerce quick view, products quick view
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 4.8.2
|
6 |
+
Stable tag: 1.2.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 1.2.2 = Released Oct 11 - 2017
|
46 |
+
|
47 |
+
* New: Support to WooCommerce 3.2.0 RC2.
|
48 |
+
* New: Support to WordPress 4.8.2.
|
49 |
+
* Fix: Compatibility issue with YITH WooCommerce Product Bundles.
|
50 |
+
* Update: Plugin Core.
|
51 |
+
|
52 |
= 1.2.1 = Released Apr 05 - 2017
|
53 |
|
54 |
* Fix: Compatibility issue with YITH WooCommerce Wishlist.
|
149 |
* English
|
150 |
* Italian
|
151 |
|
152 |
+
If you can't find this plugin in your language and want to translate it, use the dedicated tool at [Translating WordPress](https://translate.wordpress.org/locale/it/default/wp-plugins/yith-woocommerce-quick-view "Translating WordPress").
|
153 |
+
Or, if you have created your own language pack, or have an update for an existing one, you can send it as an email attachment from our [Contacts page](http://yithemes.com/contact/ "Your Inspiration Themes") and we will bundle into YITH WooCommerce Quick View.
|
154 |
|
155 |
== Upgrade notice ==
|
156 |
|
157 |
+
= 1.2.2 = Released Oct 11 - 2017
|
158 |
|
159 |
+
* New: Support to WooCommerce 3.2.0 RC2.
|
160 |
+
* New: Support to WordPress 4.8.2.
|
161 |
+
* Fix: Compatibility issue with YITH WooCommerce Product Bundles.
|
162 |
* Update: Plugin Core.
|
assets/js/frontend.js
CHANGED
@@ -96,13 +96,15 @@ jQuery(document).ready(function($){
|
|
96 |
|
97 |
// Variation Form
|
98 |
var form_variation = qv_content.find('.variations_form');
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
}
|
|
|
|
|
106 |
|
107 |
// Init prettyPhoto
|
108 |
if (typeof $.fn.prettyPhoto !== 'undefined') {
|
96 |
|
97 |
// Variation Form
|
98 |
var form_variation = qv_content.find('.variations_form');
|
99 |
+
form_variation.each( function() {
|
100 |
+
$( this ).wc_variation_form();
|
101 |
+
// add Color and Label Integration
|
102 |
+
if( typeof $.fn.yith_wccl !== 'undefined' ) {
|
103 |
+
$(this).yith_wccl();
|
104 |
+
}
|
105 |
+
});
|
106 |
+
form_variation.trigger( 'check_variations' );
|
107 |
+
form_variation.trigger( 'reset_image' );
|
108 |
|
109 |
// Init prettyPhoto
|
110 |
if (typeof $.fn.prettyPhoto !== 'undefined') {
|
assets/js/frontend.min.js
CHANGED
@@ -5,4 +5,4 @@
|
|
5 |
* @package YITH WooCommerce Quick View
|
6 |
* @version 1.0.0
|
7 |
*/
|
8 |
-
jQuery(document).ready(function(
|
5 |
* @package YITH WooCommerce Quick View
|
6 |
* @version 1.0.0
|
7 |
*/
|
8 |
+
jQuery(document).ready(function(t){"use strict";if("undefined"!=typeof yith_qv){var i=t(document).find("#yith-quick-view-modal"),n=i.find(".yith-quick-view-overlay"),o=i.find("#yith-quick-view-content"),e=i.find("#yith-quick-view-close"),a=i.find(".yith-wcqv-wrapper"),d=a.width(),c=a.height(),u=function(){var i=t(window).width(),n=t(window).height(),o=i-60>d?d:i-60,e=n-120>c?c:n-120;a.css({left:i/2-o/2,top:n/2-e/2,width:o+"px",height:e+"px"})};t.fn.yith_quick_view=function(){t(document).off("click",".yith-wcqv-button").on("click",".yith-wcqv-button",function(n){n.preventDefault();var o=t(this),e=o.data("product_id"),a=!1;void 0!==yith_qv.loader&&(a=!0,o.block({message:null,overlayCSS:{background:"#fff url("+yith_qv.loader+") no-repeat center",opacity:.5,cursor:"none"}}),i.hasClass("loading")||i.addClass("loading"),t(document).trigger("qv_loading")),r(o,e,a)})};var r=function(n,e,a){t.ajax({url:yith_qv.ajaxurl,data:{action:"yith_load_product_quick_view",product_id:e},dataType:"html",type:"POST",success:function(e){o.html(e),yith_qv.is2_2&&o.find("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").addClass("buttons_added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />');var d=o.find(".variations_form");d.each(function(){t(this).wc_variation_form(),void 0!==t.fn.yith_wccl&&t(this).yith_wccl()}),d.trigger("check_variations"),d.trigger("reset_image"),void 0!==t.fn.prettyPhoto&&o.find("a[data-rel^='prettyPhoto'], a.zoom").prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1}),i.hasClass("open")||(i.removeClass("loading").addClass("open"),a&&n.unblock()),t(document).trigger("qv_loader_stop")}})};!function(){n.on("click",function(t){a()}),t(document).keyup(function(t){27===t.keyCode&&a()}),e.on("click",function(t){t.preventDefault(),a()});var a=function(){i.removeClass("open").removeClass("loading"),setTimeout(function(){o.html("")},1e3)}}(),u(),t(window).on("resize",u),t.fn.yith_quick_view(),t(document).on("yith_infs_adding_elem yith-wcan-ajax-filtered",function(){t.fn.yith_quick_view()})}});
|
includes/class.yith-wcqv-admin.php
CHANGED
@@ -96,6 +96,7 @@ if ( ! class_exists( 'YITH_WCQV_Admin' ) ) {
|
|
96 |
*/
|
97 |
public function __construct() {
|
98 |
|
|
|
99 |
add_action( 'admin_menu', array( $this, 'register_panel' ), 5) ;
|
100 |
|
101 |
//Add action links
|
96 |
*/
|
97 |
public function __construct() {
|
98 |
|
99 |
+
// Add panel options
|
100 |
add_action( 'admin_menu', array( $this, 'register_panel' ), 5) ;
|
101 |
|
102 |
//Add action links
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Quick View
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-quick-view
|
5 |
* Description: YITH WooCommerce Quick View allows your users to have a quick look about products.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: YITHEMES
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-quick-view
|
@@ -11,7 +11,7 @@
|
|
11 |
*
|
12 |
* @author Yithemes
|
13 |
* @package YITH WooCommerce Quick View
|
14 |
-
* @version 1.2.
|
15 |
*/
|
16 |
/* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
@@ -59,7 +59,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
|
59 |
|
60 |
|
61 |
if ( ! defined( 'YITH_WCQV_VERSION' ) ){
|
62 |
-
define( 'YITH_WCQV_VERSION', '1.2.
|
63 |
}
|
64 |
|
65 |
if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
|
3 |
* Plugin Name: YITH WooCommerce Quick View
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-quick-view
|
5 |
* Description: YITH WooCommerce Quick View allows your users to have a quick look about products.
|
6 |
+
* Version: 1.2.2
|
7 |
* Author: YITHEMES
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-quick-view
|
11 |
*
|
12 |
* @author Yithemes
|
13 |
* @package YITH WooCommerce Quick View
|
14 |
+
* @version 1.2.2
|
15 |
*/
|
16 |
/* Copyright 2015 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
59 |
|
60 |
|
61 |
if ( ! defined( 'YITH_WCQV_VERSION' ) ){
|
62 |
+
define( 'YITH_WCQV_VERSION', '1.2.2' );
|
63 |
}
|
64 |
|
65 |
if ( ! defined( 'YITH_WCQV_FREE_INIT' ) ) {
|
languages/yith-woocommerce-quick-view-it_IT.mo
CHANGED
Binary file
|
languages/yith-woocommerce-quick-view-it_IT.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH WooCommerce Quick View\n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
8 |
"Language: it_IT\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.8.
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
15 |
"X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
@@ -18,20 +18,23 @@ msgstr ""
|
|
18 |
"X-Poedit-SearchPath-0: ..\n"
|
19 |
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
|
20 |
|
21 |
-
#: ../class.yith-wcqv-admin.php:
|
|
|
22 |
msgid "Settings"
|
23 |
msgstr "Impostazioni"
|
24 |
|
25 |
-
#: ../class.yith-wcqv-admin.php:
|
|
|
26 |
msgid "Premium Version"
|
27 |
msgstr "Versione premium"
|
28 |
|
29 |
-
#: ../class.yith-wcqv-admin.php:
|
|
|
30 |
#: ../plugin-options/settings-options.php:57
|
31 |
msgid "Quick View"
|
32 |
msgstr "Quick view"
|
33 |
|
34 |
-
#: ../class.yith-wcqv-admin.php:
|
35 |
msgid "Plugin Documentation"
|
36 |
msgstr "Documentazione plugin"
|
37 |
|
@@ -119,8 +122,8 @@ msgid "Enable lightbox. Product images will open in a lightbox."
|
|
119 |
msgstr ""
|
120 |
"Abilita la lightbox. Le immagini dei prodotti si apriranno in una lightbox."
|
121 |
|
122 |
-
#: ../plugin-options/settings-options.php:74
|
123 |
-
#: ../templates/admin/premium.php:
|
124 |
msgid "Style Options"
|
125 |
msgstr "Opzioni di stile"
|
126 |
|
@@ -136,7 +139,7 @@ msgstr "Colore pulsante chiusura"
|
|
136 |
msgid "Closing Button Hover Color"
|
137 |
msgstr "Colore pulsante chiusura al passaggio del mouse"
|
138 |
|
139 |
-
#: ../templates/admin/premium.php:
|
140 |
#, php-format
|
141 |
msgid ""
|
142 |
"Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Quick View%2$s to "
|
@@ -145,27 +148,27 @@ msgstr ""
|
|
145 |
"Aggiorna alla %1$sversione premium%2$s di %1$sYITH WooCommerce Quick View"
|
146 |
"%2$s per usufruire di tutte le sue funzionalità!"
|
147 |
|
148 |
-
#: ../templates/admin/premium.php:
|
149 |
msgid "UPGRADE"
|
150 |
msgstr "AGGIORNA"
|
151 |
|
152 |
-
#: ../templates/admin/premium.php:
|
153 |
msgid "to the premium version"
|
154 |
msgstr "alla versione premium"
|
155 |
|
156 |
-
#: ../templates/admin/premium.php:
|
157 |
msgid "Premium Features"
|
158 |
msgstr "Funzionalità premium"
|
159 |
|
160 |
-
#: ../templates/admin/premium.php:
|
161 |
msgid "Button type"
|
162 |
msgstr "Tipologia pulsante"
|
163 |
|
164 |
-
#: ../templates/admin/premium.php:
|
165 |
msgid "BUTTON TYPE"
|
166 |
msgstr "TIPOLOGIA PULSANTE"
|
167 |
|
168 |
-
#: ../templates/admin/premium.php:
|
169 |
#, php-format
|
170 |
msgid ""
|
171 |
"Choose between the button or a custom icon to access the %1$sQuick View%2$s: "
|
@@ -176,12 +179,12 @@ msgstr ""
|
|
176 |
"view%2$s: scegli tu se dopo il pulsante “Aggiungi al carrello” o sulla "
|
177 |
"immagine thumbnail del prodotto."
|
178 |
|
179 |
-
#: ../templates/admin/premium.php:
|
180 |
-
#: ../templates/admin/premium.php:
|
181 |
msgid "Product Navigation"
|
182 |
msgstr "Navigazione prodotti"
|
183 |
|
184 |
-
#: ../templates/admin/premium.php:
|
185 |
#, php-format
|
186 |
msgid ""
|
187 |
"The navigation in the \"Quick View\" allows browsing among %1$sproducts%2$s "
|
@@ -193,11 +196,11 @@ msgstr ""
|
|
193 |
"di navigazione, queste mostrano l’immagine del prodotto immediatamente "
|
194 |
"successivo o precedente."
|
195 |
|
196 |
-
#: ../templates/admin/premium.php:
|
197 |
msgid "Content to display"
|
198 |
msgstr "Contenuto da mostrare"
|
199 |
|
200 |
-
#: ../templates/admin/premium.php:
|
201 |
#, php-format
|
202 |
msgid ""
|
203 |
"The display of the product information in the \"Quick View\" are managed by "
|
@@ -208,11 +211,11 @@ msgstr ""
|
|
208 |
"View” sono gestite dall’%1$samministratore%2$s che può decidere se mostrare "
|
209 |
"tutto o solo una parte di esse."
|
210 |
|
211 |
-
#: ../templates/admin/premium.php:
|
212 |
msgid "Quick View Type"
|
213 |
msgstr "Tipologia quick view"
|
214 |
|
215 |
-
#: ../templates/admin/premium.php:
|
216 |
#, php-format
|
217 |
msgid ""
|
218 |
"Quick view has two different displaying modes: the first one opens it as a "
|
@@ -223,15 +226,15 @@ msgstr ""
|
|
223 |
"di una %1$sfinestra modale%2$s o all’interno della stessa pagina con "
|
224 |
"%1$seffetto a cascata%2$s sul resto del contenuto."
|
225 |
|
226 |
-
#: ../templates/admin/premium.php:
|
227 |
msgid "Quick view type"
|
228 |
msgstr "Tipologia quick view"
|
229 |
|
230 |
-
#: ../templates/admin/premium.php:
|
231 |
msgid "\"View details\" button"
|
232 |
msgstr "Pulsante “Visualizza dettagli”"
|
233 |
|
234 |
-
#: ../templates/admin/premium.php:
|
235 |
msgid ""
|
236 |
"An additional button that allows users to access product detail page "
|
237 |
"directly from quick view window just with a click of the mouse."
|
@@ -239,11 +242,11 @@ msgstr ""
|
|
239 |
"Un pulsante aggiuntivo per permettere all’utente di accedere alla pagina "
|
240 |
"dettaglio del prodotto direttamente dalla quick view con un semplice clic."
|
241 |
|
242 |
-
#: ../templates/admin/premium.php:
|
243 |
msgid "Type of product images"
|
244 |
msgstr "Tipologia immagini prodotto"
|
245 |
|
246 |
-
#: ../templates/admin/premium.php:
|
247 |
#, php-format
|
248 |
msgid ""
|
249 |
"Each product can have more than one image: choose whether to hide or show "
|
@@ -254,11 +257,11 @@ msgstr ""
|
|
254 |
"scegli se nasconderle o mostrarle con %1$seffetto scorrimento%2$s o nella "
|
255 |
"classica visualizzazione di %1$sWooCommerce%2$s."
|
256 |
|
257 |
-
#: ../templates/admin/premium.php:
|
258 |
msgid "SHARE"
|
259 |
msgstr "Condivisione"
|
260 |
|
261 |
-
#: ../templates/admin/premium.php:
|
262 |
#, php-format
|
263 |
msgid ""
|
264 |
"%1$sQuick View is also social-friendly!%2$s Activating this option, you will "
|
@@ -268,7 +271,7 @@ msgstr ""
|
|
268 |
"%1$sLa quick view è anche social%2$s! Abilitando l’opzione, potrà essere "
|
269 |
"condivisa su Facebook, Twitter, Pinterest, Google+ e per email."
|
270 |
|
271 |
-
#: ../templates/admin/premium.php:
|
272 |
#, php-format
|
273 |
msgid ""
|
274 |
"A rich option panel to change the colors of the %1$s\"Quick View\"%2$s "
|
@@ -277,22 +280,22 @@ msgstr ""
|
|
277 |
"Un ricco pannello opzioni per modificare i colori del pulsante %1$s“Quick "
|
278 |
"View”%2$s e di tutto ciò che è all’interno della finestra modale generata."
|
279 |
|
280 |
-
#: ../templates/admin/premium.php:
|
281 |
msgid "SHORTCODE"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: ../templates/admin/premium.php:
|
285 |
msgid ""
|
286 |
"The shortcode of plugin is a $1$srapid$2$s and $1$seasy$2$s solution: you "
|
287 |
"can add a button in any spot of the page to allow your users to see the "
|
288 |
"quick view of a specific product in your store."
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: ../templates/admin/premium.php:
|
292 |
msgid "Compatibility with other YITH's plugins"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: ../templates/admin/premium.php:
|
296 |
#, php-format
|
297 |
msgid ""
|
298 |
"Thanks to the compatibility with %1$sYITH WooCommerce Zoom Magnifier, YITH "
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH WooCommerce Quick View\n"
|
4 |
+
"POT-Creation-Date: 2017-10-11 12:42+0200\n"
|
5 |
+
"PO-Revision-Date: 2017-10-11 12:42+0200\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
8 |
"Language: it_IT\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.8.7.1\n"
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
15 |
"X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
18 |
"X-Poedit-SearchPath-0: ..\n"
|
19 |
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
|
20 |
|
21 |
+
#: ../includes/class.yith-wcqv-admin.php:129
|
22 |
+
#: ../includes/class.yith-wcqv-admin.php:151
|
23 |
msgid "Settings"
|
24 |
msgstr "Impostazioni"
|
25 |
|
26 |
+
#: ../includes/class.yith-wcqv-admin.php:130
|
27 |
+
#: ../includes/class.yith-wcqv-admin.php:152
|
28 |
msgid "Premium Version"
|
29 |
msgstr "Versione premium"
|
30 |
|
31 |
+
#: ../includes/class.yith-wcqv-admin.php:158
|
32 |
+
#: ../includes/class.yith-wcqv-admin.php:159
|
33 |
#: ../plugin-options/settings-options.php:57
|
34 |
msgid "Quick View"
|
35 |
msgstr "Quick view"
|
36 |
|
37 |
+
#: ../includes/class.yith-wcqv-admin.php:213
|
38 |
msgid "Plugin Documentation"
|
39 |
msgstr "Documentazione plugin"
|
40 |
|
122 |
msgstr ""
|
123 |
"Abilita la lightbox. Le immagini dei prodotti si apriranno in una lightbox."
|
124 |
|
125 |
+
#: ../plugin-options/settings-options.php:74 ../templates/admin/premium.php:323
|
126 |
+
#: ../templates/admin/premium.php:328
|
127 |
msgid "Style Options"
|
128 |
msgstr "Opzioni di stile"
|
129 |
|
139 |
msgid "Closing Button Hover Color"
|
140 |
msgstr "Colore pulsante chiusura al passaggio del mouse"
|
141 |
|
142 |
+
#: ../templates/admin/premium.php:210 ../templates/admin/premium.php:364
|
143 |
#, php-format
|
144 |
msgid ""
|
145 |
"Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Quick View%2$s to "
|
148 |
"Aggiorna alla %1$sversione premium%2$s di %1$sYITH WooCommerce Quick View"
|
149 |
"%2$s per usufruire di tutte le sue funzionalità!"
|
150 |
|
151 |
+
#: ../templates/admin/premium.php:213 ../templates/admin/premium.php:367
|
152 |
msgid "UPGRADE"
|
153 |
msgstr "AGGIORNA"
|
154 |
|
155 |
+
#: ../templates/admin/premium.php:214 ../templates/admin/premium.php:368
|
156 |
msgid "to the premium version"
|
157 |
msgstr "alla versione premium"
|
158 |
|
159 |
+
#: ../templates/admin/premium.php:220
|
160 |
msgid "Premium Features"
|
161 |
msgstr "Funzionalità premium"
|
162 |
|
163 |
+
#: ../templates/admin/premium.php:223
|
164 |
msgid "Button type"
|
165 |
msgstr "Tipologia pulsante"
|
166 |
|
167 |
+
#: ../templates/admin/premium.php:228
|
168 |
msgid "BUTTON TYPE"
|
169 |
msgstr "TIPOLOGIA PULSANTE"
|
170 |
|
171 |
+
#: ../templates/admin/premium.php:230
|
172 |
#, php-format
|
173 |
msgid ""
|
174 |
"Choose between the button or a custom icon to access the %1$sQuick View%2$s: "
|
179 |
"view%2$s: scegli tu se dopo il pulsante “Aggiungi al carrello” o sulla "
|
180 |
"immagine thumbnail del prodotto."
|
181 |
|
182 |
+
#: ../templates/admin/premium.php:238 ../templates/admin/premium.php:239
|
183 |
+
#: ../templates/admin/premium.php:244
|
184 |
msgid "Product Navigation"
|
185 |
msgstr "Navigazione prodotti"
|
186 |
|
187 |
+
#: ../templates/admin/premium.php:241
|
188 |
#, php-format
|
189 |
msgid ""
|
190 |
"The navigation in the \"Quick View\" allows browsing among %1$sproducts%2$s "
|
196 |
"di navigazione, queste mostrano l’immagine del prodotto immediatamente "
|
197 |
"successivo o precedente."
|
198 |
|
199 |
+
#: ../templates/admin/premium.php:255 ../templates/admin/premium.php:256
|
200 |
msgid "Content to display"
|
201 |
msgstr "Contenuto da mostrare"
|
202 |
|
203 |
+
#: ../templates/admin/premium.php:258
|
204 |
#, php-format
|
205 |
msgid ""
|
206 |
"The display of the product information in the \"Quick View\" are managed by "
|
211 |
"View” sono gestite dall’%1$samministratore%2$s che può decidere se mostrare "
|
212 |
"tutto o solo una parte di esse."
|
213 |
|
214 |
+
#: ../templates/admin/premium.php:267
|
215 |
msgid "Quick View Type"
|
216 |
msgstr "Tipologia quick view"
|
217 |
|
218 |
+
#: ../templates/admin/premium.php:269
|
219 |
#, php-format
|
220 |
msgid ""
|
221 |
"Quick view has two different displaying modes: the first one opens it as a "
|
226 |
"di una %1$sfinestra modale%2$s o all’interno della stessa pagina con "
|
227 |
"%1$seffetto a cascata%2$s sul resto del contenuto."
|
228 |
|
229 |
+
#: ../templates/admin/premium.php:272
|
230 |
msgid "Quick view type"
|
231 |
msgstr "Tipologia quick view"
|
232 |
|
233 |
+
#: ../templates/admin/premium.php:284
|
234 |
msgid "\"View details\" button"
|
235 |
msgstr "Pulsante “Visualizza dettagli”"
|
236 |
|
237 |
+
#: ../templates/admin/premium.php:286
|
238 |
msgid ""
|
239 |
"An additional button that allows users to access product detail page "
|
240 |
"directly from quick view window just with a click of the mouse."
|
242 |
"Un pulsante aggiuntivo per permettere all’utente di accedere alla pagina "
|
243 |
"dettaglio del prodotto direttamente dalla quick view con un semplice clic."
|
244 |
|
245 |
+
#: ../templates/admin/premium.php:295
|
246 |
msgid "Type of product images"
|
247 |
msgstr "Tipologia immagini prodotto"
|
248 |
|
249 |
+
#: ../templates/admin/premium.php:297
|
250 |
#, php-format
|
251 |
msgid ""
|
252 |
"Each product can have more than one image: choose whether to hide or show "
|
257 |
"scegli se nasconderle o mostrarle con %1$seffetto scorrimento%2$s o nella "
|
258 |
"classica visualizzazione di %1$sWooCommerce%2$s."
|
259 |
|
260 |
+
#: ../templates/admin/premium.php:312
|
261 |
msgid "SHARE"
|
262 |
msgstr "Condivisione"
|
263 |
|
264 |
+
#: ../templates/admin/premium.php:314
|
265 |
#, php-format
|
266 |
msgid ""
|
267 |
"%1$sQuick View is also social-friendly!%2$s Activating this option, you will "
|
271 |
"%1$sLa quick view è anche social%2$s! Abilitando l’opzione, potrà essere "
|
272 |
"condivisa su Facebook, Twitter, Pinterest, Google+ e per email."
|
273 |
|
274 |
+
#: ../templates/admin/premium.php:325
|
275 |
#, php-format
|
276 |
msgid ""
|
277 |
"A rich option panel to change the colors of the %1$s\"Quick View\"%2$s "
|
280 |
"Un ricco pannello opzioni per modificare i colori del pulsante %1$s“Quick "
|
281 |
"View”%2$s e di tutto ciò che è all’interno della finestra modale generata."
|
282 |
|
283 |
+
#: ../templates/admin/premium.php:340
|
284 |
msgid "SHORTCODE"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: ../templates/admin/premium.php:342
|
288 |
msgid ""
|
289 |
"The shortcode of plugin is a $1$srapid$2$s and $1$seasy$2$s solution: you "
|
290 |
"can add a button in any spot of the page to allow your users to see the "
|
291 |
"quick view of a specific product in your store."
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: ../templates/admin/premium.php:351
|
295 |
msgid "Compatibility with other YITH's plugins"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: ../templates/admin/premium.php:353
|
299 |
#, php-format
|
300 |
msgid ""
|
301 |
"Thanks to the compatibility with %1$sYITH WooCommerce Zoom Magnifier, YITH "
|
languages/yith-woocommerce-quick-view.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: YITH WooCommerce Quick View\n"
|
5 |
-
"POT-Creation-Date:
|
6 |
"PO-Revision-Date: 2015-05-18 11:52+0100\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
@@ -10,7 +10,7 @@ msgstr ""
|
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Generator: Poedit 1.8.
|
14 |
"X-Poedit-Basepath: .\n"
|
15 |
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
16 |
"X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
@@ -19,20 +19,23 @@ msgstr ""
|
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
|
21 |
|
22 |
-
#: ../class.yith-wcqv-admin.php:
|
|
|
23 |
msgid "Settings"
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: ../class.yith-wcqv-admin.php:
|
|
|
27 |
msgid "Premium Version"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: ../class.yith-wcqv-admin.php:
|
|
|
31 |
#: ../plugin-options/settings-options.php:57
|
32 |
msgid "Quick View"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: ../class.yith-wcqv-admin.php:
|
36 |
msgid "Plugin Documentation"
|
37 |
msgstr ""
|
38 |
|
@@ -110,8 +113,8 @@ msgstr ""
|
|
110 |
msgid "Enable lightbox. Product images will open in a lightbox."
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: ../plugin-options/settings-options.php:74
|
114 |
-
#: ../templates/admin/premium.php:
|
115 |
msgid "Style Options"
|
116 |
msgstr ""
|
117 |
|
@@ -127,34 +130,34 @@ msgstr ""
|
|
127 |
msgid "Closing Button Hover Color"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: ../templates/admin/premium.php:
|
131 |
#, php-format
|
132 |
msgid ""
|
133 |
"Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Quick View%2$s to "
|
134 |
"benefit from all features!"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: ../templates/admin/premium.php:
|
138 |
msgid "UPGRADE"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: ../templates/admin/premium.php:
|
142 |
msgid "to the premium version"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: ../templates/admin/premium.php:
|
146 |
msgid "Premium Features"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: ../templates/admin/premium.php:
|
150 |
msgid "Button type"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: ../templates/admin/premium.php:
|
154 |
msgid "BUTTON TYPE"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: ../templates/admin/premium.php:
|
158 |
#, php-format
|
159 |
msgid ""
|
160 |
"Choose between the button or a custom icon to access the %1$sQuick View%2$s: "
|
@@ -162,12 +165,12 @@ msgid ""
|
|
162 |
"thumbnail of the product."
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: ../templates/admin/premium.php:
|
166 |
-
#: ../templates/admin/premium.php:
|
167 |
msgid "Product Navigation"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: ../templates/admin/premium.php:
|
171 |
#, php-format
|
172 |
msgid ""
|
173 |
"The navigation in the \"Quick View\" allows browsing among %1$sproducts%2$s "
|
@@ -175,11 +178,11 @@ msgid ""
|
|
175 |
"next/previous product."
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: ../templates/admin/premium.php:
|
179 |
msgid "Content to display"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: ../templates/admin/premium.php:
|
183 |
#, php-format
|
184 |
msgid ""
|
185 |
"The display of the product information in the \"Quick View\" are managed by "
|
@@ -187,11 +190,11 @@ msgid ""
|
|
187 |
"part of it."
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: ../templates/admin/premium.php:
|
191 |
msgid "Quick View Type"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: ../templates/admin/premium.php:
|
195 |
#, php-format
|
196 |
msgid ""
|
197 |
"Quick view has two different displaying modes: the first one opens it as a "
|
@@ -199,25 +202,25 @@ msgid ""
|
|
199 |
"%1$scascading effect%2$s above content page."
|
200 |
msgstr ""
|
201 |
|
202 |
-
#: ../templates/admin/premium.php:
|
203 |
msgid "Quick view type"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: ../templates/admin/premium.php:
|
207 |
msgid "\"View details\" button"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: ../templates/admin/premium.php:
|
211 |
msgid ""
|
212 |
"An additional button that allows users to access product detail page "
|
213 |
"directly from quick view window just with a click of the mouse."
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: ../templates/admin/premium.php:
|
217 |
msgid "Type of product images"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: ../templates/admin/premium.php:
|
221 |
#, php-format
|
222 |
msgid ""
|
223 |
"Each product can have more than one image: choose whether to hide or show "
|
@@ -225,11 +228,11 @@ msgid ""
|
|
225 |
"display."
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: ../templates/admin/premium.php:
|
229 |
msgid "SHARE"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: ../templates/admin/premium.php:
|
233 |
#, php-format
|
234 |
msgid ""
|
235 |
"%1$sQuick View is also social-friendly!%2$s Activating this option, you will "
|
@@ -237,29 +240,29 @@ msgid ""
|
|
237 |
"sending an email."
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: ../templates/admin/premium.php:
|
241 |
#, php-format
|
242 |
msgid ""
|
243 |
"A rich option panel to change the colors of the %1$s\"Quick View\"%2$s "
|
244 |
"button and of everything that is within the modal window generated."
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: ../templates/admin/premium.php:
|
248 |
msgid "SHORTCODE"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: ../templates/admin/premium.php:
|
252 |
msgid ""
|
253 |
"The shortcode of plugin is a $1$srapid$2$s and $1$seasy$2$s solution: you "
|
254 |
"can add a button in any spot of the page to allow your users to see the "
|
255 |
"quick view of a specific product in your store."
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: ../templates/admin/premium.php:
|
259 |
msgid "Compatibility with other YITH's plugins"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: ../templates/admin/premium.php:
|
263 |
#, php-format
|
264 |
msgid ""
|
265 |
"Thanks to the compatibility with %1$sYITH WooCommerce Zoom Magnifier, YITH "
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: YITH WooCommerce Quick View\n"
|
5 |
+
"POT-Creation-Date: 2017-10-11 12:42+0200\n"
|
6 |
"PO-Revision-Date: 2015-05-18 11:52+0100\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Generator: Poedit 1.8.7.1\n"
|
14 |
"X-Poedit-Basepath: .\n"
|
15 |
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
16 |
"X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
19 |
"X-Poedit-SearchPath-0: ..\n"
|
20 |
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
|
21 |
|
22 |
+
#: ../includes/class.yith-wcqv-admin.php:129
|
23 |
+
#: ../includes/class.yith-wcqv-admin.php:151
|
24 |
msgid "Settings"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: ../includes/class.yith-wcqv-admin.php:130
|
28 |
+
#: ../includes/class.yith-wcqv-admin.php:152
|
29 |
msgid "Premium Version"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: ../includes/class.yith-wcqv-admin.php:158
|
33 |
+
#: ../includes/class.yith-wcqv-admin.php:159
|
34 |
#: ../plugin-options/settings-options.php:57
|
35 |
msgid "Quick View"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: ../includes/class.yith-wcqv-admin.php:213
|
39 |
msgid "Plugin Documentation"
|
40 |
msgstr ""
|
41 |
|
113 |
msgid "Enable lightbox. Product images will open in a lightbox."
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: ../plugin-options/settings-options.php:74 ../templates/admin/premium.php:323
|
117 |
+
#: ../templates/admin/premium.php:328
|
118 |
msgid "Style Options"
|
119 |
msgstr ""
|
120 |
|
130 |
msgid "Closing Button Hover Color"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: ../templates/admin/premium.php:210 ../templates/admin/premium.php:364
|
134 |
#, php-format
|
135 |
msgid ""
|
136 |
"Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Quick View%2$s to "
|
137 |
"benefit from all features!"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: ../templates/admin/premium.php:213 ../templates/admin/premium.php:367
|
141 |
msgid "UPGRADE"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: ../templates/admin/premium.php:214 ../templates/admin/premium.php:368
|
145 |
msgid "to the premium version"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: ../templates/admin/premium.php:220
|
149 |
msgid "Premium Features"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: ../templates/admin/premium.php:223
|
153 |
msgid "Button type"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: ../templates/admin/premium.php:228
|
157 |
msgid "BUTTON TYPE"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: ../templates/admin/premium.php:230
|
161 |
#, php-format
|
162 |
msgid ""
|
163 |
"Choose between the button or a custom icon to access the %1$sQuick View%2$s: "
|
165 |
"thumbnail of the product."
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: ../templates/admin/premium.php:238 ../templates/admin/premium.php:239
|
169 |
+
#: ../templates/admin/premium.php:244
|
170 |
msgid "Product Navigation"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: ../templates/admin/premium.php:241
|
174 |
#, php-format
|
175 |
msgid ""
|
176 |
"The navigation in the \"Quick View\" allows browsing among %1$sproducts%2$s "
|
178 |
"next/previous product."
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: ../templates/admin/premium.php:255 ../templates/admin/premium.php:256
|
182 |
msgid "Content to display"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: ../templates/admin/premium.php:258
|
186 |
#, php-format
|
187 |
msgid ""
|
188 |
"The display of the product information in the \"Quick View\" are managed by "
|
190 |
"part of it."
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: ../templates/admin/premium.php:267
|
194 |
msgid "Quick View Type"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: ../templates/admin/premium.php:269
|
198 |
#, php-format
|
199 |
msgid ""
|
200 |
"Quick view has two different displaying modes: the first one opens it as a "
|
202 |
"%1$scascading effect%2$s above content page."
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: ../templates/admin/premium.php:272
|
206 |
msgid "Quick view type"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: ../templates/admin/premium.php:284
|
210 |
msgid "\"View details\" button"
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: ../templates/admin/premium.php:286
|
214 |
msgid ""
|
215 |
"An additional button that allows users to access product detail page "
|
216 |
"directly from quick view window just with a click of the mouse."
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: ../templates/admin/premium.php:295
|
220 |
msgid "Type of product images"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: ../templates/admin/premium.php:297
|
224 |
#, php-format
|
225 |
msgid ""
|
226 |
"Each product can have more than one image: choose whether to hide or show "
|
228 |
"display."
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: ../templates/admin/premium.php:312
|
232 |
msgid "SHARE"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: ../templates/admin/premium.php:314
|
236 |
#, php-format
|
237 |
msgid ""
|
238 |
"%1$sQuick View is also social-friendly!%2$s Activating this option, you will "
|
240 |
"sending an email."
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: ../templates/admin/premium.php:325
|
244 |
#, php-format
|
245 |
msgid ""
|
246 |
"A rich option panel to change the colors of the %1$s\"Quick View\"%2$s "
|
247 |
"button and of everything that is within the modal window generated."
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: ../templates/admin/premium.php:340
|
251 |
msgid "SHORTCODE"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: ../templates/admin/premium.php:342
|
255 |
msgid ""
|
256 |
"The shortcode of plugin is a $1$srapid$2$s and $1$seasy$2$s solution: you "
|
257 |
"can add a button in any spot of the page to allow your users to see the "
|
258 |
"quick view of a specific product in your store."
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: ../templates/admin/premium.php:351
|
262 |
msgid "Compatibility with other YITH's plugins"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: ../templates/admin/premium.php:353
|
266 |
#, php-format
|
267 |
msgid ""
|
268 |
"Thanks to the compatibility with %1$sYITH WooCommerce Zoom Magnifier, YITH "
|
plugin-fw/assets/css/yit-plugin-panel-sidebar.css
DELETED
@@ -1,388 +0,0 @@
|
|
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 : 105% 160%;
|
230 |
-
background-size : 50%;
|
231 |
-
}
|
232 |
-
|
233 |
-
#yit-panel-sidebar-membership-widget .membership-row {
|
234 |
-
margin-bottom: 20px;
|
235 |
-
clear : both;
|
236 |
-
overflow: hidden;
|
237 |
-
}
|
238 |
-
|
239 |
-
#yit-panel-sidebar-membership-widget .membership-total-price {
|
240 |
-
font-size : 25px;
|
241 |
-
font-weight : 700;
|
242 |
-
display : block;
|
243 |
-
width : 50%;
|
244 |
-
box-sizing : border-box;
|
245 |
-
float : left;
|
246 |
-
line-height : 37px;
|
247 |
-
|
248 |
-
}
|
249 |
-
|
250 |
-
#yit-panel-sidebar-membership-widget .membership-offer-text {
|
251 |
-
display : block;
|
252 |
-
font-size : 10px;
|
253 |
-
text-transform : uppercase;
|
254 |
-
width : 50%;
|
255 |
-
line-height : 14px;
|
256 |
-
box-sizing : border-box;
|
257 |
-
float : left;
|
258 |
-
}
|
259 |
-
|
260 |
-
#yit-panel-sidebar-membership-widget .membership-offer-text2 {
|
261 |
-
display : block;
|
262 |
-
font-size : 10px;
|
263 |
-
text-transform : uppercase;
|
264 |
-
text-align : right;
|
265 |
-
vertical-align : middle;
|
266 |
-
float : left;
|
267 |
-
}
|
268 |
-
|
269 |
-
#yit-panel-sidebar-membership-widget .membership-offer-sale-text {
|
270 |
-
display : block;
|
271 |
-
font-size : 22px;
|
272 |
-
color : #ff6340;
|
273 |
-
text-transform : uppercase;
|
274 |
-
text-align : left;
|
275 |
-
vertical-align : middle;
|
276 |
-
margin-left : 6px;
|
277 |
-
font-weight : 600;
|
278 |
-
float : left;
|
279 |
-
}
|
280 |
-
|
281 |
-
#yit-panel-sidebar-membership-widget .membership-buttons {
|
282 |
-
text-align : center;
|
283 |
-
margin-bottom : 10px;
|
284 |
-
}
|
285 |
-
|
286 |
-
/* ==== Important Links Widget ==== */
|
287 |
-
#yit-panel-sidebar-links-widget .yit-panel-sidebar-widget-content {
|
288 |
-
background : transparent url('../images/widgets/link-bg.png') no-repeat;
|
289 |
-
background-position : 110% 120%;
|
290 |
-
background-size : 50%;
|
291 |
-
}
|
292 |
-
|
293 |
-
ul.yit-panel-sidebar-links-list {
|
294 |
-
margin : 0;
|
295 |
-
}
|
296 |
-
|
297 |
-
ul.yit-panel-sidebar-links-list li {
|
298 |
-
margin : 0 0 10px 0;
|
299 |
-
}
|
300 |
-
|
301 |
-
ul.yit-panel-sidebar-links-list li:before {
|
302 |
-
content : " ";
|
303 |
-
width : 15px;
|
304 |
-
height : 13px;
|
305 |
-
display : inline-block;
|
306 |
-
background : transparent url('../images/ui-icons_454545_256x240.png') no-repeat -64px -144px;
|
307 |
-
margin-right : 7px;
|
308 |
-
}
|
309 |
-
|
310 |
-
/* === Sidebar Actions ===*/
|
311 |
-
#yit-panel-sidebar-actions {
|
312 |
-
text-align : right;
|
313 |
-
}
|
314 |
-
|
315 |
-
.yit-panel-sidebar-action-title {
|
316 |
-
margin-right : 5px;
|
317 |
-
text-transform : uppercase;
|
318 |
-
font-size : 11px;
|
319 |
-
}
|
320 |
-
|
321 |
-
#yit-panel-sidebar-action-hide {
|
322 |
-
text-align : right;
|
323 |
-
cursor : pointer;
|
324 |
-
}
|
325 |
-
|
326 |
-
.yit-panel-sidebar-action-hide-icon {
|
327 |
-
color : #f4f4f4;
|
328 |
-
background : #565656;
|
329 |
-
border-radius : 50%;
|
330 |
-
}
|
331 |
-
|
332 |
-
#yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-title {
|
333 |
-
color : #000;
|
334 |
-
}
|
335 |
-
|
336 |
-
#yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-hide-icon {
|
337 |
-
background : #000;
|
338 |
-
}
|
339 |
-
|
340 |
-
.hide-on-click .yit-panel-sidebar-action-hide-icon:before {
|
341 |
-
content : "\f139" !important;
|
342 |
-
}
|
343 |
-
|
344 |
-
/* === Responsive === */
|
345 |
-
|
346 |
-
@media (min-width : 767px) {
|
347 |
-
#wpbody-content #yit-panel-sidebar {
|
348 |
-
margin-right : 15px;
|
349 |
-
}
|
350 |
-
}
|
351 |
-
|
352 |
-
@media (max-width : 767px) {
|
353 |
-
#yit-panel-sidebar {
|
354 |
-
width : 275px;
|
355 |
-
margin : 20px auto 0 auto;
|
356 |
-
float : none;
|
357 |
-
display : block;
|
358 |
-
}
|
359 |
-
|
360 |
-
#yit-panel-sidebar.yith-panel-sidebar-hidden {
|
361 |
-
position : static;
|
362 |
-
}
|
363 |
-
|
364 |
-
#yit-panel-sidebar-actions {
|
365 |
-
text-align : center;
|
366 |
-
}
|
367 |
-
|
368 |
-
#yit-panel-sidebar-action-hide {
|
369 |
-
text-align : center;
|
370 |
-
}
|
371 |
-
}
|
372 |
-
|
373 |
-
@media (max-width : 480px) {
|
374 |
-
|
375 |
-
}
|
376 |
-
|
377 |
-
@media (min-width : 768px) and (max-width : 992px) {
|
378 |
-
}
|
379 |
-
|
380 |
-
@media (min-width : 980px) and (max-width : 1199px) {
|
381 |
-
}
|
382 |
-
|
383 |
-
@media (min-width : 1200px) {
|
384 |
-
|
385 |
-
}
|
386 |
-
|
387 |
-
@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) {
|
388 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/css/yit-plugin-panel.css
CHANGED
@@ -675,11 +675,6 @@
|
|
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 |
}
|
@@ -687,10 +682,7 @@
|
|
687 |
/* === Responsive === */
|
688 |
|
689 |
@media (max-width : 767px) {
|
690 |
-
|
691 |
-
width : 100%;
|
692 |
-
display : block;
|
693 |
-
}
|
694 |
}
|
695 |
|
696 |
@media (max-width : 480px) {
|
675 |
position:relative;
|
676 |
}
|
677 |
.yit-admin-panel-content-wrap {
|
|
|
|
|
|
|
|
|
|
|
678 |
width : 100%;
|
679 |
display : block;
|
680 |
}
|
682 |
/* === Responsive === */
|
683 |
|
684 |
@media (max-width : 767px) {
|
685 |
+
|
|
|
|
|
|
|
686 |
}
|
687 |
|
688 |
@media (max-width : 480px) {
|
plugin-fw/assets/images/widgets/box-icon.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/box-white-icon.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/despacho.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/info-icon.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/link-bg.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/link-bg2.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/link-icon.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/membership-bg.png
DELETED
Binary file
|
plugin-fw/assets/js/yit-plugin-panel-sidebar.js
DELETED
@@ -1,56 +0,0 @@
|
|
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
DELETED
@@ -1 +0,0 @@
|
|
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.69
|
5 |
* Author: Yithemes
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
plugin-fw/languages/yith-plugin-fw.pot
CHANGED
@@ -5,7 +5,7 @@ msgid ""
|
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
7 |
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"PO-Revision-Date: 2015-05-05 10:38+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
@@ -13,7 +13,7 @@ msgstr ""
|
|
13 |
"MIME-Version: 1.0\n"
|
14 |
"Content-Type: text/plain; charset=utf-8\n"
|
15 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
-
"X-Generator: Poedit 1.8.
|
17 |
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
18 |
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
19 |
"esc_html_x:1,2c\n"
|
@@ -128,7 +128,7 @@ msgid "%s Settings"
|
|
128 |
msgstr ""
|
129 |
|
130 |
#: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
|
131 |
-
#: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:
|
132 |
msgid "Settings"
|
133 |
msgstr ""
|
134 |
|
@@ -220,81 +220,73 @@ msgstr ""
|
|
220 |
msgid "Upload multiple files"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: lib/yit-plugin-panel-
|
224 |
-
msgid "Hide sidebar"
|
225 |
-
msgstr ""
|
226 |
-
|
227 |
-
#: lib/yit-plugin-panel-sidebar.php:422 templates/panel/sidebar/sidebar.php:3
|
228 |
-
msgid "Show sidebar"
|
229 |
-
msgstr ""
|
230 |
-
|
231 |
-
#: lib/yit-plugin-panel-wc.php:374
|
232 |
msgid "The changes you have made will be lost if you leave this page."
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: lib/yit-plugin-panel.php:
|
236 |
msgid "Plugin Settings"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: lib/yit-plugin-panel.php:
|
240 |
msgid "How to install premium version"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: lib/yit-plugin-panel.php:
|
244 |
#: templates/panel/woocommerce/woocommerce-form.php:11
|
245 |
msgid "Save Changes"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: lib/yit-plugin-panel.php:
|
249 |
msgid "If you continue with this action, you will reset all options in this page."
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: lib/yit-plugin-panel.php:
|
253 |
msgid "Reset to default"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: lib/yit-plugin-panel.php:
|
257 |
#: templates/panel/woocommerce/woocommerce-form.php:18
|
258 |
msgid "Are you sure?"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: lib/yit-plugin-panel.php:
|
262 |
msgid "The element you have entered already exists. Please, enter another name."
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: lib/yit-plugin-panel.php:
|
266 |
msgid "Settings saved"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: lib/yit-plugin-panel.php:
|
270 |
msgid "Settings reset"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: lib/yit-plugin-panel.php:
|
274 |
msgid "Element deleted correctly."
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: lib/yit-plugin-panel.php:
|
278 |
msgid "Element updated correctly."
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: lib/yit-plugin-panel.php:
|
282 |
msgid "Database imported correctly."
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: lib/yit-plugin-panel.php:
|
286 |
msgid "An error has occurred during import. Please try again."
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: lib/yit-plugin-panel.php:
|
290 |
msgid "The added file is not valid."
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: lib/yit-plugin-panel.php:
|
294 |
msgid "Sorry, import is disabled."
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: lib/yit-plugin-panel.php:
|
298 |
msgid "Sorting successful."
|
299 |
msgstr ""
|
300 |
|
@@ -309,9 +301,9 @@ msgstr ""
|
|
309 |
|
310 |
#: lib/yit-pointers.php:71
|
311 |
msgid ""
|
312 |
-
"From now on, you can find all plugin options in
|
313 |
-
"
|
314 |
-
"
|
315 |
msgstr ""
|
316 |
|
317 |
#: lib/yit-pointers.php:73 lib/yit-pointers.php:89
|
@@ -328,13 +320,13 @@ msgstr ""
|
|
328 |
|
329 |
#: lib/yit-pointers.php:85
|
330 |
msgid ""
|
331 |
-
"From now on, you can find
|
332 |
-
"
|
333 |
"entry will be added to this menu.\n"
|
334 |
" For example, after the update, plugin options "
|
335 |
"(such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)\n"
|
336 |
-
" will be moved from previous location to
|
337 |
-
"
|
338 |
msgstr ""
|
339 |
|
340 |
#: lib/yit-upgrade.php:135
|
@@ -369,67 +361,68 @@ msgstr ""
|
|
369 |
msgid "Could not create Temporary file."
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: lib/yit-upgrade.php:
|
373 |
#, php-format
|
374 |
msgid ""
|
375 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
376 |
-
"changelog-button\" title=\"%3$s\">View version %4$s
|
|
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: lib/yit-upgrade.php:
|
380 |
#, php-format
|
381 |
msgid ""
|
382 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
383 |
-
"changelog-button\" title=\"%3$s\">View version %4$s
|
384 |
-
"activate the plugin on a single site of the network
|
385 |
-
"updates.</em>"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: lib/yit-upgrade.php:
|
389 |
#, php-format
|
390 |
msgid ""
|
391 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
392 |
-
"changelog-button\" title=\"%3$s\">View version %4$s
|
393 |
-
"update is unavailable for this plugin, please <a href
|
394 |
-
"activation\">activate</a> your copy of %6s.</em>"
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: lib/yit-upgrade.php:
|
398 |
#, php-format
|
399 |
msgid ""
|
400 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
401 |
-
"changelog-button\" title=\"%3$s\">View version %4$s
|
402 |
-
"\">update now</a>."
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: lib/yit-upgrade.php:
|
406 |
msgid "You can't update the plugins for this site."
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: lib/yit-upgrade.php:
|
410 |
msgid "You do not have sufficient permissions to update the plugins for this site."
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: lib/yit-upgrade.php:
|
414 |
msgid "Update Plugin"
|
415 |
msgstr ""
|
416 |
|
417 |
-
#: licence/lib/yit-licence.php:
|
418 |
#, php-format
|
419 |
msgctxt "%s = field name"
|
420 |
msgid "%s field cannot be empty"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: licence/lib/yit-licence.php:
|
424 |
#, php-format
|
425 |
msgid "%s and %s fields cannot be empty"
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: licence/lib/yit-licence.php:
|
429 |
msgid "Unable to contact the remote server, please try again later. Thanks!"
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: licence/lib/yit-licence.php:
|
433 |
#: licence/templates/panel/activation/activation-panel.php:88
|
434 |
#: licence/templates/panel/activation/activation-panel.php:166
|
435 |
#: licence/templates/panel/activation/activation-panel.php:197
|
@@ -438,62 +431,62 @@ msgstr ""
|
|
438 |
msgid "Email"
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: licence/lib/yit-licence.php:
|
442 |
#: licence/templates/panel/activation/activation-panel.php:89
|
443 |
#: licence/templates/panel/activation/activation-panel.php:167
|
444 |
#: licence/templates/panel/activation/activation-panel.php:198
|
445 |
msgid "License Key"
|
446 |
msgstr ""
|
447 |
|
448 |
-
#: licence/lib/yit-licence.php:
|
449 |
msgid "Are you sure you want to deactivate the license for current site?"
|
450 |
msgstr ""
|
451 |
|
452 |
-
#: licence/lib/yit-licence.php:
|
453 |
msgid "Invalid Request"
|
454 |
msgstr ""
|
455 |
|
456 |
-
#: licence/lib/yit-licence.php:
|
457 |
msgid "Invalid license key"
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: licence/lib/yit-licence.php:
|
461 |
msgid "Software has been deactivated"
|
462 |
msgstr ""
|
463 |
|
464 |
-
#: licence/lib/yit-licence.php:
|
465 |
msgid "Maximum number of activations exceeded"
|
466 |
msgstr ""
|
467 |
|
468 |
-
#: licence/lib/yit-licence.php:
|
469 |
msgid "Invalid instance ID"
|
470 |
msgstr ""
|
471 |
|
472 |
-
#: licence/lib/yit-licence.php:
|
473 |
msgid "Invalid security key"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: licence/lib/yit-licence.php:
|
477 |
msgid "License key has expired"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: licence/lib/yit-licence.php:
|
481 |
msgid "License key has been banned"
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: licence/lib/yit-licence.php:
|
485 |
msgid "Current product is not included in your YITH Club Subscription key"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: licence/lib/yit-licence.php:
|
489 |
msgid "Great"
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: licence/lib/yit-licence.php:
|
493 |
msgid "License successfully activated"
|
494 |
msgstr ""
|
495 |
|
496 |
-
#: licence/lib/yit-licence.php:
|
497 |
msgid "License key deactivated for website"
|
498 |
msgstr ""
|
499 |
|
@@ -969,22 +962,6 @@ msgstr ""
|
|
969 |
msgid "Italic bold"
|
970 |
msgstr ""
|
971 |
|
972 |
-
#: templates/panel/sidebar/widgets/widgets.php:17
|
973 |
-
msgid "Join the club"
|
974 |
-
msgstr ""
|
975 |
-
|
976 |
-
#: templates/panel/sidebar/widgets/widgets.php:24
|
977 |
-
msgid "Despacho Theme - 100% FREE"
|
978 |
-
msgstr ""
|
979 |
-
|
980 |
-
#: templates/panel/sidebar/widgets/widgets.php:28
|
981 |
-
msgid "FREE!"
|
982 |
-
msgstr ""
|
983 |
-
|
984 |
-
#: templates/panel/sidebar/widgets/widgets.php:34
|
985 |
-
msgid "Important Links"
|
986 |
-
msgstr ""
|
987 |
-
|
988 |
#: templates/panel/types/upload.php:32
|
989 |
msgid "Reset"
|
990 |
msgstr ""
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
7 |
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
|
8 |
+
"POT-Creation-Date: 2017-09-27 13:39+0200\n"
|
9 |
"PO-Revision-Date: 2015-05-05 10:38+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
13 |
"MIME-Version: 1.0\n"
|
14 |
"Content-Type: text/plain; charset=utf-8\n"
|
15 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
+
"X-Generator: Poedit 1.8.9\n"
|
17 |
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
18 |
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
19 |
"esc_html_x:1,2c\n"
|
128 |
msgstr ""
|
129 |
|
130 |
#: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
|
131 |
+
#: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:69
|
132 |
msgid "Settings"
|
133 |
msgstr ""
|
134 |
|
220 |
msgid "Upload multiple files"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: lib/yit-plugin-panel-wc.php:372
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
msgid "The changes you have made will be lost if you leave this page."
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: lib/yit-plugin-panel.php:68
|
228 |
msgid "Plugin Settings"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: lib/yit-plugin-panel.php:291 lib/yit-plugin-panel.php:294
|
232 |
msgid "How to install premium version"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: lib/yit-plugin-panel.php:345 lib/yit-plugin-subpanel.php:146
|
236 |
#: templates/panel/woocommerce/woocommerce-form.php:11
|
237 |
msgid "Save Changes"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: lib/yit-plugin-panel.php:348 templates/panel/woocommerce/woocommerce-form.php:14
|
241 |
msgid "If you continue with this action, you will reset all options in this page."
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: lib/yit-plugin-panel.php:350 lib/yit-plugin-subpanel.php:151
|
245 |
msgid "Reset to default"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: lib/yit-plugin-panel.php:350 lib/yit-plugin-subpanel.php:151
|
249 |
#: templates/panel/woocommerce/woocommerce-form.php:18
|
250 |
msgid "Are you sure?"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: lib/yit-plugin-panel.php:487
|
254 |
msgid "The element you have entered already exists. Please, enter another name."
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: lib/yit-plugin-panel.php:488
|
258 |
msgid "Settings saved"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: lib/yit-plugin-panel.php:489
|
262 |
msgid "Settings reset"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: lib/yit-plugin-panel.php:490
|
266 |
msgid "Element deleted correctly."
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: lib/yit-plugin-panel.php:491 lib/yit-plugin-panel.php:492
|
270 |
msgid "Element updated correctly."
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: lib/yit-plugin-panel.php:493
|
274 |
msgid "Database imported correctly."
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: lib/yit-plugin-panel.php:494
|
278 |
msgid "An error has occurred during import. Please try again."
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: lib/yit-plugin-panel.php:495
|
282 |
msgid "The added file is not valid."
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: lib/yit-plugin-panel.php:496
|
286 |
msgid "Sorry, import is disabled."
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: lib/yit-plugin-panel.php:497
|
290 |
msgid "Sorting successful."
|
291 |
msgstr ""
|
292 |
|
301 |
|
302 |
#: lib/yit-pointers.php:71
|
303 |
msgid ""
|
304 |
+
"From now on, you can find all plugin options in YITH Plugins menu.\n"
|
305 |
+
" Plugin customization settings will be "
|
306 |
+
"available as a new entry in YITH Plugins menu."
|
307 |
msgstr ""
|
308 |
|
309 |
#: lib/yit-pointers.php:73 lib/yit-pointers.php:89
|
320 |
|
321 |
#: lib/yit-pointers.php:85
|
322 |
msgid ""
|
323 |
+
"From now on, you can find the option panel of YITH plugins in YITH Plugins menu.\n"
|
324 |
+
" Every time one of our plugins is added, a new "
|
325 |
"entry will be added to this menu.\n"
|
326 |
" For example, after the update, plugin options "
|
327 |
"(such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)\n"
|
328 |
+
" will be moved from previous location to YITH "
|
329 |
+
"Plugins tab."
|
330 |
msgstr ""
|
331 |
|
332 |
#: lib/yit-upgrade.php:135
|
361 |
msgid "Could not create Temporary file."
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: lib/yit-upgrade.php:446
|
365 |
#, php-format
|
366 |
msgid ""
|
367 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
368 |
+
"changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
|
369 |
+
"details</a>."
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: lib/yit-upgrade.php:448
|
373 |
#, php-format
|
374 |
msgid ""
|
375 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
376 |
+
"changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
|
377 |
+
"details</a>. <em>You have to activate the plugin on a single site of the network "
|
378 |
+
"to benefit from automatic updates.</em>"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: lib/yit-upgrade.php:450
|
382 |
#, php-format
|
383 |
msgid ""
|
384 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
385 |
+
"changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
|
386 |
+
"details</a>. <em>Automatic update is unavailable for this plugin, please <a href="
|
387 |
+
"\"%5$s\" title=\"License activation\">activate</a> your copy of %6s.</em>"
|
388 |
msgstr ""
|
389 |
|
390 |
+
#: lib/yit-upgrade.php:452
|
391 |
#, php-format
|
392 |
msgid ""
|
393 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
394 |
+
"changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
|
395 |
+
"details</a> or <a href=\"%5$s\">update now</a>."
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: lib/yit-upgrade.php:526
|
399 |
msgid "You can't update the plugins for this site."
|
400 |
msgstr ""
|
401 |
|
402 |
+
#: lib/yit-upgrade.php:530
|
403 |
msgid "You do not have sufficient permissions to update the plugins for this site."
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: lib/yit-upgrade.php:537
|
407 |
msgid "Update Plugin"
|
408 |
msgstr ""
|
409 |
|
410 |
+
#: licence/lib/yit-licence.php:183
|
411 |
#, php-format
|
412 |
msgctxt "%s = field name"
|
413 |
msgid "%s field cannot be empty"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: licence/lib/yit-licence.php:184
|
417 |
#, php-format
|
418 |
msgid "%s and %s fields cannot be empty"
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: licence/lib/yit-licence.php:185
|
422 |
msgid "Unable to contact the remote server, please try again later. Thanks!"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: licence/lib/yit-licence.php:186
|
426 |
#: licence/templates/panel/activation/activation-panel.php:88
|
427 |
#: licence/templates/panel/activation/activation-panel.php:166
|
428 |
#: licence/templates/panel/activation/activation-panel.php:197
|
431 |
msgid "Email"
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: licence/lib/yit-licence.php:187
|
435 |
#: licence/templates/panel/activation/activation-panel.php:89
|
436 |
#: licence/templates/panel/activation/activation-panel.php:167
|
437 |
#: licence/templates/panel/activation/activation-panel.php:198
|
438 |
msgid "License Key"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: licence/lib/yit-licence.php:188
|
442 |
msgid "Are you sure you want to deactivate the license for current site?"
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: licence/lib/yit-licence.php:668
|
446 |
msgid "Invalid Request"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: licence/lib/yit-licence.php:669
|
450 |
msgid "Invalid license key"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: licence/lib/yit-licence.php:670
|
454 |
msgid "Software has been deactivated"
|
455 |
msgstr ""
|
456 |
|
457 |
+
#: licence/lib/yit-licence.php:671
|
458 |
msgid "Maximum number of activations exceeded"
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: licence/lib/yit-licence.php:672
|
462 |
msgid "Invalid instance ID"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: licence/lib/yit-licence.php:673
|
466 |
msgid "Invalid security key"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: licence/lib/yit-licence.php:674
|
470 |
msgid "License key has expired"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: licence/lib/yit-licence.php:675
|
474 |
msgid "License key has been banned"
|
475 |
msgstr ""
|
476 |
|
477 |
+
#: licence/lib/yit-licence.php:676
|
478 |
msgid "Current product is not included in your YITH Club Subscription key"
|
479 |
msgstr ""
|
480 |
|
481 |
+
#: licence/lib/yit-licence.php:677
|
482 |
msgid "Great"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: licence/lib/yit-licence.php:677
|
486 |
msgid "License successfully activated"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: licence/lib/yit-licence.php:678
|
490 |
msgid "License key deactivated for website"
|
491 |
msgstr ""
|
492 |
|
962 |
msgid "Italic bold"
|
963 |
msgstr ""
|
964 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
965 |
#: templates/panel/types/upload.php:32
|
966 |
msgid "Reset"
|
967 |
msgstr ""
|
plugin-fw/lib/yit-ajax.php
CHANGED
@@ -40,7 +40,7 @@ if ( !class_exists( 'YIT_Ajax' ) ) {
|
|
40 |
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
41 |
*/
|
42 |
private function __construct() {
|
43 |
-
|
44 |
}
|
45 |
|
46 |
/**
|
@@ -59,17 +59,6 @@ if ( !class_exists( 'YIT_Ajax' ) ) {
|
|
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 |
|
40 |
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
41 |
*/
|
42 |
private function __construct() {
|
43 |
+
|
44 |
}
|
45 |
|
46 |
/**
|
59 |
|
60 |
return self::$_instance;
|
61 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
63 |
}
|
64 |
|
plugin-fw/lib/yit-plugin-panel-sidebar.php
DELETED
@@ -1,430 +0,0 @@
|
|
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 |
-
*
|
44 |
-
* @type int
|
45 |
-
*/
|
46 |
-
public $default_remote_widget_priority = 40;
|
47 |
-
|
48 |
-
/**
|
49 |
-
* parent panel
|
50 |
-
*
|
51 |
-
* @var YIT_Plugin_Panel
|
52 |
-
*/
|
53 |
-
public $panel;
|
54 |
-
|
55 |
-
private $_is_collapsed;
|
56 |
-
|
57 |
-
/**
|
58 |
-
* @type string
|
59 |
-
*/
|
60 |
-
public static $transient_remote_widgets = 'yit_panel_sidebar_remote_widgets';
|
61 |
-
|
62 |
-
/**
|
63 |
-
* @type string
|
64 |
-
*/
|
65 |
-
public static $transient_updated_remote_widgets = 'yit_panel_sidebar_remote_widgets_update';
|
66 |
-
|
67 |
-
/**
|
68 |
-
* @type string
|
69 |
-
*/
|
70 |
-
public static $collapse_option = 'yith_plugin_panel_sidebar_collapse';
|
71 |
-
|
72 |
-
/**
|
73 |
-
* Constructor
|
74 |
-
*
|
75 |
-
* @param YIT_Plugin_Panel $panel the parent panel
|
76 |
-
*
|
77 |
-
* @since 1.0
|
78 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
79 |
-
*/
|
80 |
-
private function __construct( $panel ) {
|
81 |
-
$this->panel = $panel;
|
82 |
-
|
83 |
-
/* load and sort default widgets and remote widgets */
|
84 |
-
$this->load_widgets();
|
85 |
-
|
86 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
87 |
-
add_filter( 'yit_admin_panel_content_class', array( $this, 'filter_admin_panel_content_class' ) );
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* get instance
|
92 |
-
*
|
93 |
-
* @static
|
94 |
-
* @return YIT_Plugin_Panel_Sidebar
|
95 |
-
*
|
96 |
-
* @since 1.0
|
97 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
98 |
-
*/
|
99 |
-
public static function instance( $panel ) {
|
100 |
-
return new self( $panel );
|
101 |
-
}
|
102 |
-
|
103 |
-
/**
|
104 |
-
* return true if is collapsed by option
|
105 |
-
*
|
106 |
-
* @return bool
|
107 |
-
*/
|
108 |
-
public function is_collapsed() {
|
109 |
-
if ( !isset( $this->_is_collapsed ) ) {
|
110 |
-
$this->_is_collapsed = get_option( self::$collapse_option, 'no' ) === 'yes';
|
111 |
-
}
|
112 |
-
|
113 |
-
return $this->_is_collapsed;
|
114 |
-
}
|
115 |
-
|
116 |
-
/**
|
117 |
-
* if is collapsed add a class to panel wrapper
|
118 |
-
*
|
119 |
-
* @param $class
|
120 |
-
*
|
121 |
-
* @return string
|
122 |
-
*/
|
123 |
-
public function filter_admin_panel_content_class( $class ) {
|
124 |
-
if ( $this->is_collapsed() ) {
|
125 |
-
$class .= ' yit-admin-panel-content-wrap-full';
|
126 |
-
}
|
127 |
-
|
128 |
-
return $class;
|
129 |
-
}
|
130 |
-
|
131 |
-
/**
|
132 |
-
* Add one or more widgets to $this->widgets
|
133 |
-
*
|
134 |
-
* @param array $widgets
|
135 |
-
*/
|
136 |
-
public function add_widgets( $widgets ) {
|
137 |
-
$this->widgets = array_merge( $this->widgets, $widgets );
|
138 |
-
}
|
139 |
-
|
140 |
-
/**
|
141 |
-
* delete transients
|
142 |
-
*/
|
143 |
-
public static function delete_transients() {
|
144 |
-
delete_transient( self::$transient_remote_widgets );
|
145 |
-
delete_transient( self::$transient_updated_remote_widgets );
|
146 |
-
}
|
147 |
-
|
148 |
-
/**
|
149 |
-
* filter and sort widgets
|
150 |
-
*/
|
151 |
-
private function _filter_and_sort_widgets() {
|
152 |
-
/* filter widgets */
|
153 |
-
$page_name = isset( $this->panel->settings[ 'page' ] ) ? $this->panel->settings[ 'page' ] : '';
|
154 |
-
$this->widgets = apply_filters( 'yit_plugin_panel_sidebar_widgets', $this->widgets, $page_name );
|
155 |
-
|
156 |
-
/*sort widgets*/
|
157 |
-
uasort( $this->widgets, array( $this, 'sort_widgets' ) );
|
158 |
-
}
|
159 |
-
|
160 |
-
/**
|
161 |
-
* get Remote Widget by XML from YIThemes
|
162 |
-
*
|
163 |
-
* @return array
|
164 |
-
*
|
165 |
-
* @since 1.0
|
166 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
167 |
-
*/
|
168 |
-
public function get_remote_widgets() {
|
169 |
-
$load_remote_widgets = apply_filters( 'yit_panel_sidebar_load_remote_widgets', true );
|
170 |
-
if ( !$load_remote_widgets )
|
171 |
-
return array();
|
172 |
-
|
173 |
-
$remote_widgets = get_transient( self::$transient_remote_widgets );
|
174 |
-
$updated = get_transient( self::$transient_updated_remote_widgets );
|
175 |
-
$is_debug = defined( 'YIT_FW_REMOTE_WIDGETS_DEBUG' ) && YIT_FW_REMOTE_WIDGETS_DEBUG;
|
176 |
-
|
177 |
-
if ( $is_debug || $updated === false || $remote_widgets === false ) {
|
178 |
-
$remote_widgets = array();
|
179 |
-
} else {
|
180 |
-
return $remote_widgets;
|
181 |
-
}
|
182 |
-
|
183 |
-
$expiration = 1 * DAY_IN_SECONDS;
|
184 |
-
$updated_expiration = DAY_IN_SECONDS; // update frequency
|
185 |
-
|
186 |
-
$remote_xml = wp_remote_get( $this->_remote_widget_xml );
|
187 |
-
if ( !is_wp_error( $remote_xml ) && isset( $remote_xml[ 'response' ][ 'code' ] ) && '200' == $remote_xml[ 'response' ][ 'code' ] && class_exists( 'SimpleXmlElement' ) ) {
|
188 |
-
try {
|
189 |
-
// suppress all XML errors when loading the document
|
190 |
-
libxml_use_internal_errors( true );
|
191 |
-
|
192 |
-
$xml_data = new SimpleXmlElement( $remote_xml[ 'body' ] );
|
193 |
-
$xml_remote_widgets = isset( $xml_data->widget ) ? $xml_data->widget : array();
|
194 |
-
|
195 |
-
$enabled_args = array(
|
196 |
-
'title',
|
197 |
-
'icon',
|
198 |
-
'content',
|
199 |
-
'class',
|
200 |
-
'title_class',
|
201 |
-
'badge',
|
202 |
-
'badge_text',
|
203 |
-
'image',
|
204 |
-
'image_class',
|
205 |
-
'priority',
|
206 |
-
'starting',
|
207 |
-
'expiration',
|
208 |
-
);
|
209 |
-
|
210 |
-
$last_remote_priority = $this->default_remote_widget_priority;
|
211 |
-
|
212 |
-
foreach ( $xml_remote_widgets as $xml_widget ) {
|
213 |
-
if ( !isset( $xml_widget->id ) )
|
214 |
-
continue;
|
215 |
-
|
216 |
-
$widget_id = (string) $xml_widget->id;
|
217 |
-
$widget_array = array();
|
218 |
-
foreach ( $enabled_args as $key ) {
|
219 |
-
if ( isset( $xml_widget->$key ) ) {
|
220 |
-
$widget_array[ $key ] = (string) $xml_widget->$key;
|
221 |
-
} else {
|
222 |
-
if ( $key == 'priority' ) {
|
223 |
-
$widget_array[ $key ] = $last_remote_priority;
|
224 |
-
$last_remote_priority += 10;
|
225 |
-
}
|
226 |
-
}
|
227 |
-
}
|
228 |
-
$remote_widgets[ $widget_id ] = $widget_array;
|
229 |
-
}
|
230 |
-
|
231 |
-
$xml_expiration = isset( $xml_data->expiration ) ? (string) $xml_data->expiration : '';
|
232 |
-
if ( !empty( $xml_expiration ) ) {
|
233 |
-
$expiration = strtotime( $xml_expiration ) - strtotime( 'now' );
|
234 |
-
// if the XML is expired removes widgets
|
235 |
-
if ( $expiration < 1 )
|
236 |
-
$remote_widgets = array();
|
237 |
-
|
238 |
-
$is_urgent = isset( $xml_data->urgent ) ? !!$xml_data->urgent : false;
|
239 |
-
$is_urgent = true;
|
240 |
-
if ( !$is_urgent ) {
|
241 |
-
$four_days_random = mt_rand( 0, 4 * DAY_IN_SECONDS );
|
242 |
-
$expiration += $four_days_random;
|
243 |
-
} else {
|
244 |
-
/**
|
245 |
-
* - - - - - U R G E N T - - - - -
|
246 |
-
* it will be updated the exact day, BUT in different time! :)
|
247 |
-
* [to prevent too many request at the same time]
|
248 |
-
*/
|
249 |
-
$one_day_random = mt_rand( 0, DAY_IN_SECONDS );
|
250 |
-
$expiration += $one_day_random;
|
251 |
-
}
|
252 |
-
}
|
253 |
-
|
254 |
-
$four_days_random = mt_rand( 0, 4 * DAY_IN_SECONDS );
|
255 |
-
|
256 |
-
/* to prevent multiple request if it's expired */
|
257 |
-
if ( $expiration < 1 ) {
|
258 |
-
$expiration = 1 * DAY_IN_SECONDS + $four_days_random;
|
259 |
-
}
|
260 |
-
} catch ( Exception $e ) {
|
261 |
-
|
262 |
-
}
|
263 |
-
|
264 |
-
//$updated_expiration = 30 * DAY_IN_SECONDS + $four_days_random;
|
265 |
-
}
|
266 |
-
|
267 |
-
set_transient( self::$transient_remote_widgets, $remote_widgets, $expiration );
|
268 |
-
set_transient( self::$transient_updated_remote_widgets, true, $updated_expiration );
|
269 |
-
|
270 |
-
return $remote_widgets;
|
271 |
-
}
|
272 |
-
|
273 |
-
/**
|
274 |
-
* load and sort default widgets and remote widgets
|
275 |
-
*
|
276 |
-
* @since 1.0
|
277 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
278 |
-
*/
|
279 |
-
public function load_widgets() {
|
280 |
-
/* get static widgets */
|
281 |
-
$this->widgets = include( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/sidebar/widgets/widgets.php' );
|
282 |
-
|
283 |
-
/* get remote widgets */
|
284 |
-
$remote_widgets = $this->get_remote_widgets();
|
285 |
-
$this->add_widgets( $remote_widgets );
|
286 |
-
}
|
287 |
-
|
288 |
-
/**
|
289 |
-
* Print the panel sidebar
|
290 |
-
*
|
291 |
-
* @return void
|
292 |
-
*
|
293 |
-
* @since 1.0
|
294 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
295 |
-
*/
|
296 |
-
public function print_panel_sidebar() {
|
297 |
-
do_action( 'yit_panel_before_sidebar' );
|
298 |
-
|
299 |
-
include( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/sidebar/sidebar.php' );
|
300 |
-
|
301 |
-
do_action( 'yit_panel_after_sidebar' );
|
302 |
-
}
|
303 |
-
|
304 |
-
/**
|
305 |
-
* Print the panel sidebar widgets
|
306 |
-
*
|
307 |
-
* @return void
|
308 |
-
*
|
309 |
-
* @since 1.0
|
310 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
311 |
-
*/
|
312 |
-
public function print_panel_sidebar_widgets() {
|
313 |
-
$basename = YIT_CORE_PLUGIN_PATH;
|
314 |
-
$path = '/panel/sidebar/widget.php';
|
315 |
-
|
316 |
-
$default_args = array(
|
317 |
-
'id' => '',
|
318 |
-
'title' => '',
|
319 |
-
'icon' => '',
|
320 |
-
'content' => '',
|
321 |
-
'class' => '',
|
322 |
-
'title_class' => '',
|
323 |
-
'template' => '',
|
324 |
-
'badge' => '',
|
325 |
-
'badge_text' => '',
|
326 |
-
'image' => '',
|
327 |
-
'image_class' => '',
|
328 |
-
'args' => array(),
|
329 |
-
'hide_if_empty_args' => '',
|
330 |
-
'priority' => 10,
|
331 |
-
'starting' => '',
|
332 |
-
'expiration' => '',
|
333 |
-
);
|
334 |
-
|
335 |
-
$this->_filter_and_sort_widgets();
|
336 |
-
|
337 |
-
foreach ( $this->widgets as $widget_id => $widget ) {
|
338 |
-
$args = array_merge( $widget, array( 'id' => $widget_id ) );
|
339 |
-
$args = wp_parse_args( $args, $default_args );
|
340 |
-
|
341 |
-
$is_started = empty( $args[ 'starting' ] ) || strtotime( $args[ 'starting' ] . ' midnight' ) <= strtotime( 'midnight' );
|
342 |
-
$is_expired = !empty( $args[ 'expiration' ] ) && strtotime( $args[ 'expiration' ] . ' midnight' ) < strtotime( 'midnight' );
|
343 |
-
|
344 |
-
if ( $is_expired || !$is_started )
|
345 |
-
continue;
|
346 |
-
|
347 |
-
if ( !empty( $args[ 'hide_if_empty_args' ] ) ) {
|
348 |
-
$hide_if_empty_args = $args[ 'hide_if_empty_args' ];
|
349 |
-
$continue = false;
|
350 |
-
foreach ( $hide_if_empty_args as $hide_if_empty_arg ) {
|
351 |
-
if ( empty( $args[ 'args' ][ $hide_if_empty_arg ] ) ) {
|
352 |
-
$continue = true;
|
353 |
-
break;
|
354 |
-
}
|
355 |
-
}
|
356 |
-
if ( $continue )
|
357 |
-
continue;
|
358 |
-
}
|
359 |
-
|
360 |
-
do_action( 'yit_panel_sidebar_before_widget', $widget_id, $widget );
|
361 |
-
|
362 |
-
yit_plugin_get_template( $basename, $path, $args );
|
363 |
-
|
364 |
-
do_action( 'yit_panel_sidebar_after_widget', $widget_id, $widget );
|
365 |
-
}
|
366 |
-
}
|
367 |
-
|
368 |
-
/**
|
369 |
-
* set transient for first activation
|
370 |
-
* to prevent too many calls to YIThemes
|
371 |
-
*/
|
372 |
-
public static function set_transient_for_first_activation() {
|
373 |
-
$remote_widgets = get_transient( self::$transient_remote_widgets );
|
374 |
-
$updated = get_transient( self::$transient_updated_remote_widgets );
|
375 |
-
|
376 |
-
$first_activation = $updated === false && $remote_widgets === false;
|
377 |
-
if ( $first_activation ) {
|
378 |
-
$seven_days_random = mt_rand( 0, 7 * DAY_IN_SECONDS );
|
379 |
-
$expiration = 1 * DAY_IN_SECONDS + $seven_days_random;
|
380 |
-
|
381 |
-
set_transient( self::$transient_remote_widgets, array(), $expiration );
|
382 |
-
set_transient( self::$transient_updated_remote_widgets, true, $expiration );
|
383 |
-
}
|
384 |
-
}
|
385 |
-
|
386 |
-
/**
|
387 |
-
* Sort widgets by priority
|
388 |
-
*
|
389 |
-
* @param $a
|
390 |
-
* @param $b
|
391 |
-
*
|
392 |
-
* @return bool
|
393 |
-
*
|
394 |
-
* @since 1.0
|
395 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
396 |
-
*/
|
397 |
-
public function sort_widgets( $a, $b ) {
|
398 |
-
$priority_a = isset( $a[ 'priority' ] ) ? intval( $a[ 'priority' ] ) : $this->default_remote_widget_priority;
|
399 |
-
$priority_b = isset( $b[ 'priority' ] ) ? intval( $b[ 'priority' ] ) : $this->default_remote_widget_priority;
|
400 |
-
if ( $priority_a == $priority_b ) {
|
401 |
-
return 0;
|
402 |
-
} elseif ( $priority_a > $priority_b ) {
|
403 |
-
return 1;
|
404 |
-
} else {
|
405 |
-
return -1;
|
406 |
-
}
|
407 |
-
}
|
408 |
-
|
409 |
-
/**
|
410 |
-
* Add Admin WC Style and Scripts
|
411 |
-
*
|
412 |
-
* @return void
|
413 |
-
*
|
414 |
-
* @since 1.0
|
415 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com
|
416 |
-
*/
|
417 |
-
public function admin_enqueue_scripts() {
|
418 |
-
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
419 |
-
|
420 |
-
wp_enqueue_style( 'opensans-font', '//fonts.googleapis.com/css?family=Open+Sans:400,500,600,700,800,100,200,300,900' );
|
421 |
-
wp_enqueue_style( 'yit-plugin-sidebar-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel-sidebar.css', $this->version );
|
422 |
-
wp_enqueue_script( 'yit-plugin-sidebar-js', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel-sidebar' . $min . '.js', array( 'jquery' ), $this->version, true );
|
423 |
-
wp_localize_script( 'yit-plugin-sidebar-js', 'sidebar_labels', array(
|
424 |
-
'hide_sidebar' => __( 'Hide sidebar', 'yith-plugin-fw' ),
|
425 |
-
'show_sidebar' => __( 'Show sidebar', 'yith-plugin-fw' ),
|
426 |
-
'wrapper_class' => 'yit-admin-panel-content-wrap',
|
427 |
-
) );
|
428 |
-
}
|
429 |
-
}
|
430 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/lib/yit-plugin-panel-wc.php
CHANGED
@@ -64,6 +64,8 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
64 |
'image_width'
|
65 |
);
|
66 |
|
|
|
|
|
67 |
if ( ! empty( $args ) ) {
|
68 |
$this->settings = $args;
|
69 |
$this->_tabs_path_files = $this->get_tabs_path_files();
|
@@ -92,9 +94,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
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 |
|
@@ -249,10 +248,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
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
|
256 |
return;
|
257 |
}
|
258 |
else {
|
64 |
'image_width'
|
65 |
);
|
66 |
|
67 |
+
$args = apply_filters( 'yit_plugin_fw_wc_panel_option_args', $args );
|
68 |
+
|
69 |
if ( ! empty( $args ) ) {
|
70 |
$this->settings = $args;
|
71 |
$this->_tabs_path_files = $this->get_tabs_path_files();
|
94 |
/* WooCommerce 2.4 Support */
|
95 |
add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
|
96 |
}
|
|
|
|
|
|
|
97 |
}
|
98 |
|
99 |
|
248 |
$yit_options = $this->get_main_array_options();
|
249 |
$current_tab = $this->get_current_tab();
|
250 |
$custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
|
|
|
251 |
|
252 |
if ( $custom_tab_action ) {
|
253 |
+
$this->print_custom_tab( $custom_tab_action);
|
254 |
return;
|
255 |
}
|
256 |
else {
|
plugin-fw/lib/yit-plugin-panel.php
CHANGED
@@ -46,11 +46,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
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 |
*/
|
@@ -77,7 +72,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
77 |
'position' => null
|
78 |
);
|
79 |
|
80 |
-
$
|
|
|
|
|
81 |
$this->_tabs_path_files = $this->get_tabs_path_files();
|
82 |
|
83 |
if ( isset( $this->settings['create_menu_page'] ) && $this->settings['create_menu_page'] ) {
|
@@ -95,9 +92,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
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 |
|
@@ -329,15 +323,14 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
329 |
</h2>
|
330 |
<?php
|
331 |
$custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
|
332 |
-
$hide_sidebar = $this->hide_sidebar();
|
333 |
if ( $custom_tab_action ) {
|
334 |
-
$this->print_custom_tab( $custom_tab_action
|
335 |
return;
|
336 |
}
|
337 |
?>
|
338 |
<?php $this->print_video_box(); ?>
|
339 |
<?php
|
340 |
-
$panel_content_class =
|
341 |
?>
|
342 |
<div id="wrap" class="plugin-option yit-admin-panel-container">
|
343 |
<?php $this->message(); ?>
|
@@ -359,13 +352,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
359 |
<p> </p>
|
360 |
<?php endif ?>
|
361 |
</div>
|
362 |
-
<?php
|
363 |
-
/**
|
364 |
-
* Add panel Sidebar
|
365 |
-
*/
|
366 |
-
if ( !$hide_sidebar )
|
367 |
-
$this->print_panel_sidebar();
|
368 |
-
?>
|
369 |
</div>
|
370 |
<?php
|
371 |
}
|
@@ -382,71 +368,19 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
382 |
return false;
|
383 |
}
|
384 |
|
385 |
-
/**
|
386 |
-
* Print the panel sidebar
|
387 |
-
*
|
388 |
-
* @return void
|
389 |
-
* @since 1.0
|
390 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
391 |
-
*/
|
392 |
-
public function print_panel_sidebar() {
|
393 |
-
$this->sidebar->print_panel_sidebar();
|
394 |
-
}
|
395 |
-
|
396 |
-
/**
|
397 |
-
* @param $options
|
398 |
-
* @param $current_tab
|
399 |
-
*
|
400 |
-
* @return bool
|
401 |
-
*
|
402 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
403 |
-
*/
|
404 |
-
public function hide_sidebar( $options = '', $current_tab = '' ) {
|
405 |
-
if ( $options === '' )
|
406 |
-
$options = $this->get_main_array_options();
|
407 |
-
if ( $current_tab === '' )
|
408 |
-
$current_tab = $this->get_current_tab();
|
409 |
-
|
410 |
-
$hide = false;
|
411 |
-
|
412 |
-
foreach ( $options[ $current_tab ] as $section => $option ) {
|
413 |
-
if ( isset( $option[ 'hide_sidebar' ] ) ) {
|
414 |
-
$hide = !!$option[ 'hide_sidebar' ];
|
415 |
-
}
|
416 |
-
break;
|
417 |
-
}
|
418 |
-
|
419 |
-
$page = isset( $this->settings[ 'page' ] ) ? $this->settings[ 'page' ] : '';
|
420 |
-
|
421 |
-
return apply_filters( 'yit_panel_hide_sidebar', $hide, $page );
|
422 |
-
}
|
423 |
-
|
424 |
/**
|
425 |
* Fire the action to print the custom tab
|
426 |
*
|
427 |
*
|
428 |
* @param string $action Action to fire
|
429 |
-
* @param bool $hide_sidebar
|
430 |
*
|
431 |
* @return void
|
432 |
* @since 1.0
|
433 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
434 |
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
435 |
*/
|
436 |
-
public function print_custom_tab( $action
|
437 |
-
|
438 |
-
$panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) ;
|
439 |
-
echo "<div class='yit-admin-panel-container'>";
|
440 |
-
echo "<div class='$panel_content_class'>";
|
441 |
-
|
442 |
-
do_action( $action );
|
443 |
-
|
444 |
-
echo "</div>";
|
445 |
-
$this->print_panel_sidebar();
|
446 |
-
echo "</div>";
|
447 |
-
} else {
|
448 |
-
do_action( $action );
|
449 |
-
}
|
450 |
}
|
451 |
|
452 |
/**
|
46 |
*/
|
47 |
private $_main_array_options = array();
|
48 |
|
|
|
|
|
|
|
|
|
|
|
49 |
/**
|
50 |
* @var array
|
51 |
*/
|
72 |
'position' => null
|
73 |
);
|
74 |
|
75 |
+
$args = apply_filters( 'yit_plugin_fw_panel_option_args', wp_parse_args( $args, $default_args ) );
|
76 |
+
|
77 |
+
$this->settings = $args;
|
78 |
$this->_tabs_path_files = $this->get_tabs_path_files();
|
79 |
|
80 |
if ( isset( $this->settings['create_menu_page'] ) && $this->settings['create_menu_page'] ) {
|
92 |
add_action( 'admin_init', array( $this, 'add_fields' ) );
|
93 |
}
|
94 |
|
|
|
|
|
|
|
95 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
96 |
}
|
97 |
|
323 |
</h2>
|
324 |
<?php
|
325 |
$custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
|
|
|
326 |
if ( $custom_tab_action ) {
|
327 |
+
$this->print_custom_tab( $custom_tab_action );
|
328 |
return;
|
329 |
}
|
330 |
?>
|
331 |
<?php $this->print_video_box(); ?>
|
332 |
<?php
|
333 |
+
$panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' );
|
334 |
?>
|
335 |
<div id="wrap" class="plugin-option yit-admin-panel-container">
|
336 |
<?php $this->message(); ?>
|
352 |
<p> </p>
|
353 |
<?php endif ?>
|
354 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
355 |
</div>
|
356 |
<?php
|
357 |
}
|
368 |
return false;
|
369 |
}
|
370 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
371 |
/**
|
372 |
* Fire the action to print the custom tab
|
373 |
*
|
374 |
*
|
375 |
* @param string $action Action to fire
|
|
|
376 |
*
|
377 |
* @return void
|
378 |
* @since 1.0
|
379 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
380 |
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
381 |
*/
|
382 |
+
public function print_custom_tab( $action) {
|
383 |
+
do_action( $action );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
384 |
}
|
385 |
|
386 |
/**
|
plugin-fw/templates/panel/sidebar/sidebar.php
DELETED
@@ -1,20 +0,0 @@
|
|
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
DELETED
@@ -1,53 +0,0 @@
|
|
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
DELETED
@@ -1,11 +0,0 @@
|
|
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
DELETED
@@ -1,19 +0,0 @@
|
|
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
DELETED
@@ -1,34 +0,0 @@
|
|
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
DELETED
@@ -1,29 +0,0 @@
|
|
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-row">
|
18 |
-
<div class="membership-total-price">$10.000+</div>
|
19 |
-
<div class="membership-offer-text">worth of themes<br/>and plugins<br/>for WooCommerce</div>
|
20 |
-
</div>
|
21 |
-
<div class="membership-row">
|
22 |
-
<div class="membership-offer-text2">on a</div>
|
23 |
-
<div class="membership-offer-sale-text">95% OFF DISCOUNT</div>
|
24 |
-
</div>
|
25 |
-
<div class="membership-buttons">
|
26 |
-
<a class="button green" href="//yithemes.com/themes/membership/annual-yithemes-club-subscription/"
|
27 |
-
target="_blank">Discover More!</a>
|
28 |
-
</div>
|
29 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/sidebar/widgets/widgets.php
DELETED
@@ -1,42 +0,0 @@
|
|
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,6 +1,5 @@
|
|
1 |
<?php
|
2 |
-
$
|
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">
|
@@ -19,12 +18,5 @@ $panel_content_class = !$hide_sidebar ? apply_filters( 'yit_admin_panel_content_
|
|
19 |
onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');"/>
|
20 |
</form>
|
21 |
</div>
|
22 |
-
<?php
|
23 |
-
/**
|
24 |
-
* Add panel Sidebar
|
25 |
-
*/
|
26 |
-
if ( !$hide_sidebar )
|
27 |
-
$this->print_panel_sidebar();
|
28 |
-
?>
|
29 |
<?php do_action( 'yit_framework_after_print_wc_panel_content', $current_tab ); ?>
|
30 |
</div>
|
1 |
<?php
|
2 |
+
$panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' );
|
|
|
3 |
?>
|
4 |
|
5 |
<div id="<?php echo $this->settings[ 'page' ] ?>_<?php echo $this->get_current_tab() ?>" class="yit-admin-panel-container">
|
18 |
onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');"/>
|
19 |
</form>
|
20 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
<?php do_action( 'yit_framework_after_print_wc_panel_content', $current_tab ); ?>
|
22 |
</div>
|
plugin-fw/yit-plugin-registration-hook.php
CHANGED
@@ -19,11 +19,5 @@ 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 |
-
/* 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 |
}
|
19 |
$option = get_option( 'yit_recently_activated', array() );
|
20 |
$option[] = $hook;
|
21 |
update_option( 'yit_recently_activated', $option );
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
}
|
plugin-fw/yit-plugin.php
CHANGED
@@ -25,7 +25,6 @@ include_once( 'lib/yit-metabox.php' );
|
|
25 |
include_once( 'lib/yit-plugin-panel.php' );
|
26 |
include_once( 'lib/yit-plugin-panel-wc.php' );
|
27 |
include_once( 'lib/yit-ajax.php' );
|
28 |
-
include_once( 'lib/yit-plugin-panel-sidebar.php' );
|
29 |
include_once( 'lib/yit-plugin-subpanel.php' );
|
30 |
include_once( 'lib/yit-plugin-common.php' );
|
31 |
include_once( 'lib/yit-plugin-gradients.php');
|
25 |
include_once( 'lib/yit-plugin-panel.php' );
|
26 |
include_once( 'lib/yit-plugin-panel-wc.php' );
|
27 |
include_once( 'lib/yit-ajax.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-fw/yit-woocommerce-compatibility.php
CHANGED
@@ -112,13 +112,8 @@ if ( !function_exists( 'yit_save_prop' ) ) {
|
|
112 |
foreach ( $arg1 as $key => $value ) {
|
113 |
yit_set_prop( $object, $key, $value );
|
114 |
|
115 |
-
if (
|
116 |
-
|
117 |
-
$object->save();
|
118 |
-
} else {
|
119 |
-
yit_store_changes( $object, $key, $value );
|
120 |
-
}
|
121 |
-
} else {
|
122 |
if ( yit_wc_check_post_columns( $key ) ) {
|
123 |
yit_store_changes( $object->post, $key, $value );
|
124 |
} else {
|
@@ -128,6 +123,10 @@ if ( !function_exists( 'yit_save_prop' ) ) {
|
|
128 |
}
|
129 |
}
|
130 |
}
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
}
|
133 |
|
@@ -150,7 +149,7 @@ if ( !function_exists( 'yit_delete_prop' ) ) {
|
|
150 |
$object->delete_meta_data( $key, $value );
|
151 |
}
|
152 |
|
153 |
-
|
154 |
} else {
|
155 |
if ( yit_wc_check_post_columns( $key ) && ( !$value || $object->post->$key == $value ) ) {
|
156 |
yit_store_changes( $object->post, $key, '' );
|
@@ -166,28 +165,30 @@ if ( !function_exists( 'yit_delete_prop' ) ) {
|
|
166 |
if ( !function_exists( 'yit_return_new_attribute_map' ) ) {
|
167 |
function yit_return_new_attribute_map() {
|
168 |
return array(
|
169 |
-
'post_parent'
|
170 |
-
'post_title'
|
171 |
-
'post_status'
|
172 |
-
'post_content'
|
173 |
-
'post_excerpt'
|
174 |
/* Orders */
|
175 |
-
'paid_date'
|
176 |
-
'_paid_date'
|
177 |
-
'completed_date'
|
178 |
-
'_completed_date'
|
179 |
-
'_order_date'
|
180 |
-
'order_date'
|
181 |
-
'order_total'
|
182 |
-
'customer_user'
|
183 |
-
'_customer_user'
|
184 |
/* Products */
|
185 |
-
'visibility'
|
186 |
-
'_visibility'
|
187 |
-
'sale_price_dates_from'
|
188 |
-
'_sale_price_dates_from'
|
189 |
-
'sale_price_dates_to'
|
190 |
-
'_sale_price_dates_to'
|
|
|
|
|
191 |
/*Coupons*/
|
192 |
'coupon_amount' => 'amount',
|
193 |
'exclude_product_ids' => 'excluded_product_ids',
|
@@ -210,15 +211,11 @@ if ( !function_exists( 'yit_store_changes' ) ) {
|
|
210 |
*/
|
211 |
$object_reference = $object->get_id();
|
212 |
|
213 |
-
$cache_type = is_a( $object, 'WC_Product' ) ? 'product' : 'order';
|
214 |
-
$cache_key = $cache_type . '-' . $object_reference;
|
215 |
-
$cache_group = $cache_type . 's';
|
216 |
-
|
217 |
$changed_objects[ $object_reference ][ 'object' ] = $object;
|
218 |
$changed_objects[ $object_reference ][ 'changes' ][ $key ] = $value;
|
219 |
|
220 |
|
221 |
-
|
222 |
} else {
|
223 |
$changed_objects[ $object->ID ][ $key ] = $value;
|
224 |
}
|
@@ -253,7 +250,7 @@ if ( !function_exists( 'yit_get_orders' ) ) {
|
|
253 |
*
|
254 |
*/
|
255 |
function yit_get_orders( $args ) {
|
256 |
-
if ( version_compare( WC()->version, '2.
|
257 |
$args[ 'fields' ] = 'objects';
|
258 |
$posts = get_posts( $args );
|
259 |
|
@@ -269,7 +266,7 @@ if ( !function_exists( 'yit_get_products' ) ) {
|
|
269 |
*
|
270 |
*/
|
271 |
function yit_get_products( $args ) {
|
272 |
-
if ( version_compare( WC()->version, '2.
|
273 |
$args[ 'fields' ] = 'objects';
|
274 |
$posts = get_posts( $args );
|
275 |
|
@@ -557,7 +554,7 @@ if ( !function_exists( 'yit_get_product_image_id' ) ) {
|
|
557 |
|
558 |
if ( !function_exists( 'yit_get_refund_amount' ) ) {
|
559 |
/**
|
560 |
-
* @param $refund
|
561 |
* @param $context string
|
562 |
*
|
563 |
* @return float
|
@@ -573,6 +570,44 @@ if ( !function_exists( 'yit_get_refund_amount' ) ) {
|
|
573 |
}
|
574 |
}
|
575 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
576 |
if ( !function_exists( 'yit_add_select2_fields' ) ) {
|
577 |
/**
|
578 |
* Add select 2
|
@@ -639,7 +674,7 @@ if ( !function_exists( 'yit_add_select2_fields' ) ) {
|
|
639 |
<?php
|
640 |
else :
|
641 |
if ( $args[ 'data-multiple' ] === false && is_array( $args[ 'data-selected' ] ) ) {
|
642 |
-
$args[ 'data-selected' ] = current($args[ 'data-selected' ]);
|
643 |
}
|
644 |
|
645 |
?>
|
@@ -667,7 +702,9 @@ if ( !function_exists( 'yit_product_visibility_meta' ) ) {
|
|
667 |
if ( version_compare( WC()->version, '2.7.0', '<' ) ) {
|
668 |
$args[ 'meta_query' ] = isset( $args[ 'meta_query' ] ) ? $args[ 'meta_query' ] : array();
|
669 |
$args[ 'meta_query' ][] = WC()->query->visibility_meta_query();
|
670 |
-
}
|
|
|
|
|
671 |
$product_visibility_term_ids = wc_get_product_visibility_term_ids();
|
672 |
$args[ 'tax_query' ] = isset( $args[ 'tax_query' ] ) ? $args[ 'tax_query' ] : array();
|
673 |
$args[ 'tax_query' ][] = array(
|
@@ -689,7 +726,7 @@ if ( !function_exists( 'yit_datetime_to_timestamp' ) ) {
|
|
689 |
*/
|
690 |
function yit_datetime_to_timestamp( $date ) {
|
691 |
|
692 |
-
if ( !
|
693 |
$date = strtotime( $date );
|
694 |
}
|
695 |
|
112 |
foreach ( $arg1 as $key => $value ) {
|
113 |
yit_set_prop( $object, $key, $value );
|
114 |
|
115 |
+
if ( !$is_wc_data ) {
|
116 |
+
|
|
|
|
|
|
|
|
|
|
|
117 |
if ( yit_wc_check_post_columns( $key ) ) {
|
118 |
yit_store_changes( $object->post, $key, $value );
|
119 |
} else {
|
123 |
}
|
124 |
}
|
125 |
}
|
126 |
+
|
127 |
+
if ( $is_wc_data ) {
|
128 |
+
$object->save();
|
129 |
+
}
|
130 |
}
|
131 |
}
|
132 |
|
149 |
$object->delete_meta_data( $key, $value );
|
150 |
}
|
151 |
|
152 |
+
$object->save();
|
153 |
} else {
|
154 |
if ( yit_wc_check_post_columns( $key ) && ( !$value || $object->post->$key == $value ) ) {
|
155 |
yit_store_changes( $object->post, $key, '' );
|
165 |
if ( !function_exists( 'yit_return_new_attribute_map' ) ) {
|
166 |
function yit_return_new_attribute_map() {
|
167 |
return array(
|
168 |
+
'post_parent' => 'parent_id',
|
169 |
+
'post_title' => 'name',
|
170 |
+
'post_status' => 'status',
|
171 |
+
'post_content' => 'description',
|
172 |
+
'post_excerpt' => 'short_description',
|
173 |
/* Orders */
|
174 |
+
'paid_date' => 'date_paid',
|
175 |
+
'_paid_date' => '_date_paid',
|
176 |
+
'completed_date' => 'date_completed',
|
177 |
+
'_completed_date' => '_date_completed',
|
178 |
+
'_order_date' => '_date_created',
|
179 |
+
'order_date' => 'date_created',
|
180 |
+
'order_total' => 'total',
|
181 |
+
'customer_user' => 'customer_id',
|
182 |
+
'_customer_user' => 'customer_id',
|
183 |
/* Products */
|
184 |
+
'visibility' => 'catalog_visibility',
|
185 |
+
'_visibility' => '_catalog_visibility',
|
186 |
+
'sale_price_dates_from' => 'date_on_sale_from',
|
187 |
+
'_sale_price_dates_from' => '_date_on_sale_from',
|
188 |
+
'sale_price_dates_to' => 'date_on_sale_to',
|
189 |
+
'_sale_price_dates_to' => '_date_on_sale_to',
|
190 |
+
'product_attributes' => 'attributes',
|
191 |
+
'_product_attributes' => '_attributes',
|
192 |
/*Coupons*/
|
193 |
'coupon_amount' => 'amount',
|
194 |
'exclude_product_ids' => 'excluded_product_ids',
|
211 |
*/
|
212 |
$object_reference = $object->get_id();
|
213 |
|
|
|
|
|
|
|
|
|
214 |
$changed_objects[ $object_reference ][ 'object' ] = $object;
|
215 |
$changed_objects[ $object_reference ][ 'changes' ][ $key ] = $value;
|
216 |
|
217 |
|
218 |
+
|
219 |
} else {
|
220 |
$changed_objects[ $object->ID ][ $key ] = $value;
|
221 |
}
|
250 |
*
|
251 |
*/
|
252 |
function yit_get_orders( $args ) {
|
253 |
+
if ( version_compare( WC()->version, '2.7', '<' ) ) {
|
254 |
$args[ 'fields' ] = 'objects';
|
255 |
$posts = get_posts( $args );
|
256 |
|
266 |
*
|
267 |
*/
|
268 |
function yit_get_products( $args ) {
|
269 |
+
if ( version_compare( WC()->version, '2.7', '<' ) ) {
|
270 |
$args[ 'fields' ] = 'objects';
|
271 |
$posts = get_posts( $args );
|
272 |
|
554 |
|
555 |
if ( !function_exists( 'yit_get_refund_amount' ) ) {
|
556 |
/**
|
557 |
+
* @param $refund \WC_Order_Refund
|
558 |
* @param $context string
|
559 |
*
|
560 |
* @return float
|
570 |
}
|
571 |
}
|
572 |
|
573 |
+
if ( !function_exists( 'yit_set_refund_amount' ) ){
|
574 |
+
/**
|
575 |
+
* @param $refund \WC_Order_Refund
|
576 |
+
* @param $amount float
|
577 |
+
*
|
578 |
+
* @return float
|
579 |
+
*/
|
580 |
+
function yit_set_refund_amount( $refund, $amount ){
|
581 |
+
$is_wc_data = $refund instanceof WC_Data;
|
582 |
+
|
583 |
+
if( $is_wc_data ){
|
584 |
+
$refund->set_amount( $amount );
|
585 |
+
}
|
586 |
+
else{
|
587 |
+
$refund->refund_amount = $amount;
|
588 |
+
}
|
589 |
+
}
|
590 |
+
}
|
591 |
+
|
592 |
+
if ( !function_exists( 'yit_get_refund_reason' ) ){
|
593 |
+
/**
|
594 |
+
* @param $refund \WC_Order_Refund
|
595 |
+
* @param $amount float
|
596 |
+
*
|
597 |
+
* @return float
|
598 |
+
*/
|
599 |
+
function yit_get_refund_reason( $refund ){
|
600 |
+
$is_wc_data = $refund instanceof WC_Data;
|
601 |
+
|
602 |
+
if( $is_wc_data ){
|
603 |
+
return $refund->get_reason();
|
604 |
+
}
|
605 |
+
else{
|
606 |
+
return $refund->get_refund_reason();
|
607 |
+
}
|
608 |
+
}
|
609 |
+
}
|
610 |
+
|
611 |
if ( !function_exists( 'yit_add_select2_fields' ) ) {
|
612 |
/**
|
613 |
* Add select 2
|
674 |
<?php
|
675 |
else :
|
676 |
if ( $args[ 'data-multiple' ] === false && is_array( $args[ 'data-selected' ] ) ) {
|
677 |
+
$args[ 'data-selected' ] = current( $args[ 'data-selected' ] );
|
678 |
}
|
679 |
|
680 |
?>
|
702 |
if ( version_compare( WC()->version, '2.7.0', '<' ) ) {
|
703 |
$args[ 'meta_query' ] = isset( $args[ 'meta_query' ] ) ? $args[ 'meta_query' ] : array();
|
704 |
$args[ 'meta_query' ][] = WC()->query->visibility_meta_query();
|
705 |
+
}
|
706 |
+
|
707 |
+
elseif( taxonomy_exists( 'product_visibility' ) ) {
|
708 |
$product_visibility_term_ids = wc_get_product_visibility_term_ids();
|
709 |
$args[ 'tax_query' ] = isset( $args[ 'tax_query' ] ) ? $args[ 'tax_query' ] : array();
|
710 |
$args[ 'tax_query' ][] = array(
|
726 |
*/
|
727 |
function yit_datetime_to_timestamp( $date ) {
|
728 |
|
729 |
+
if ( !is_int( $date ) ) {
|
730 |
$date = strtotime( $date );
|
731 |
}
|
732 |
|