Version Description
Released on Oct 24, 2017
- New: Support to WooCommerce 3.2.1.
- New: Support to WordPress 4.8.2.
- Update: Plugin Core.
- Update: Language Files.
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Compare |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.2.2
- README.txt +16 -12
- assets/js/woocompare.js +1 -0
- assets/js/woocompare.min.js +1 -1
- includes/class.yith-woocompare-frontend.php +31 -4
- init.php +5 -3
- languages/yith-woocommerce-compare-it_IT.mo +0 -0
- languages/yith-woocommerce-compare-it_IT.po +59 -56
- languages/yith-woocommerce-compare-ru_RU.mo +0 -0
- languages/yith-woocommerce-compare-ru_RU.po +67 -67
- languages/yith-woocommerce-compare.pot +53 -49
- 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 +1 -5
- plugin-fw/lib/yit-plugin-panel.php +4 -72
- 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
- widgets/class.yith-woocompare-widget.php +1 -1
README.txt
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
Contributors: yithemes
|
4 |
Tags: woocommerce compare, compare products, product compare, product comparison, compare table
|
5 |
Requires at least: 3.5.1
|
6 |
-
Tested up to: 4.8
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
YITH WooCommerce Compare allows you to compare more products of your shop in one complete table.
|
12 |
-
WooCommerce Compatible up to 3.
|
13 |
|
14 |
== Description ==
|
15 |
|
@@ -66,6 +66,13 @@ yith-woocommerce-compare-<WORDPRESS LOCALE >.mo
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
= 2.2.1 = Released on Jul 05, 2017
|
70 |
|
71 |
* New: Support to WooCommerce 3.1.
|
@@ -244,8 +251,8 @@ If you have suggestions about how to improve YITH WooCommerce Compare, you can [
|
|
244 |
* English (Default)
|
245 |
* Italiano
|
246 |
|
247 |
-
If you
|
248 |
-
[
|
249 |
|
250 |
== Documentation ==
|
251 |
|
@@ -253,12 +260,9 @@ Full documentation is available [here](http://yithemes.com/docs-plugins/yith-woo
|
|
253 |
|
254 |
== Upgrade notice ==
|
255 |
|
256 |
-
= 2.2.
|
257 |
|
258 |
-
* New: Support to WooCommerce 3.1.
|
259 |
-
* New: Support to WordPress 4.8.
|
260 |
-
* New: Russian Translation.
|
261 |
-
* New: Slovenian Translation.
|
262 |
* Update: Plugin Core.
|
263 |
-
* Update: Language Files.
|
264 |
-
* Fix: WPML and Add to cart action from popup.
|
3 |
Contributors: yithemes
|
4 |
Tags: woocommerce compare, compare products, product compare, product comparison, compare table
|
5 |
Requires at least: 3.5.1
|
6 |
+
Tested up to: 4.8.2
|
7 |
+
Stable tag: 2.2.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
YITH WooCommerce Compare allows you to compare more products of your shop in one complete table.
|
12 |
+
WooCommerce Compatible up to 3.2
|
13 |
|
14 |
== Description ==
|
15 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 2.2.2 = Released on Oct 24, 2017
|
70 |
+
|
71 |
+
* New: Support to WooCommerce 3.2.1.
|
72 |
+
* New: Support to WordPress 4.8.2.
|
73 |
+
* Update: Plugin Core.
|
74 |
+
* Update: Language Files.
|
75 |
+
|
76 |
= 2.2.1 = Released on Jul 05, 2017
|
77 |
|
78 |
* New: Support to WooCommerce 3.1.
|
251 |
* English (Default)
|
252 |
* Italiano
|
253 |
|
254 |
+
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-compare "Translating WordPress").
|
255 |
+
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 Compare.
|
256 |
|
257 |
== Documentation ==
|
258 |
|
260 |
|
261 |
== Upgrade notice ==
|
262 |
|
263 |
+
= 2.2.2 = Released on Oct 24, 2017
|
264 |
|
265 |
+
* New: Support to WooCommerce 3.2.1.
|
266 |
+
* New: Support to WordPress 4.8.2.
|
|
|
|
|
267 |
* Update: Plugin Core.
|
268 |
+
* Update: Language Files.
|
|
assets/js/woocompare.js
CHANGED
@@ -68,6 +68,7 @@ jQuery(document).ready(function($) {
|
|
68 |
width: '90%',
|
69 |
height: '90%',
|
70 |
className: 'yith_woocompare_colorbox',
|
|
|
71 |
onClosed: function(){
|
72 |
var widget_list = $('.yith-woocompare-widget ul.products-list'),
|
73 |
data = {
|
68 |
width: '90%',
|
69 |
height: '90%',
|
70 |
className: 'yith_woocompare_colorbox',
|
71 |
+
close: yith_woocompare.close_label,
|
72 |
onClosed: function(){
|
73 |
var widget_list = $('.yith-woocompare-widget ul.products-list'),
|
74 |
data = {
|
assets/js/woocompare.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(o){function e(o,e){o=escape(o),e=escape(e);var t=document.location.search,a=o+"="+e,r=new RegExp("(&|\\?)"+o+"=[^&]*");return t=t.replace(r,"$1"+a),RegExp.$1||(t+=(t.length>0?"&":"?")+a),t}o(document).on("click",".product a.compare:not(.added)",function(e){e.preventDefault();var t=o(this),a={action:yith_woocompare.actionadd,id:t.data("product_id"),context:"frontend"},r=o(".yith-woocompare-widget ul.products-list");void 0!==o.fn.block&&(t.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),r.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}})),o.ajax({type:"post",url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionadd),data:a,dataType:"json",success:function(e){void 0!==o.fn.block&&(t.unblock(),r.unblock()),t.addClass("added").attr("href",e.table_url).text(yith_woocompare.added_label),r.html(e.widget_table),"yes"==yith_woocompare.auto_open&&o("body").trigger("yith_woocompare_open_popup",{response:e.table_url,button:t})}})}),o(document).on("click",".product a.compare.added",function(e){e.preventDefault();var t=this.href;void 0!==t&&o("body").trigger("yith_woocompare_open_popup",{response:t,button:o(this)})}),o("body").on("yith_woocompare_open_popup",function(e,t){var a=t.response;if(o(window).width()>=768)o.colorbox({href:a,iframe:!0,width:"90%",height:"90%",className:"yith_woocompare_colorbox",onClosed:function(){var e=o(".yith-woocompare-widget ul.products-list"),t={action:yith_woocompare.actionreload,context:"frontend"};void 0!==o.fn.block&&e.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),o.ajax({type:"post",url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionreload),data:t,success:function(t){void 0!==o.fn.block&&e.unblock().html(t),e.html(t)}})}}),o(window).resize(function(){o.colorbox.resize({width:"90%",height:"90%"})});else{var r=a.split("?");if(r.length>=2){for(var c=encodeURIComponent("iframe")+"=",n=r[1].split(/[&;]/g),i=n.length;i-- >0;)-1!==n[i].lastIndexOf(c,0)&&n.splice(i,1);a=r[0]+"?"+n.join("&")}window.open(a,yith_woocompare.table_title)}}),o(document).on("click",".remove a",function(e){e.preventDefault();var t=o(this),a={action:yith_woocompare.actionremove,id:t.data("product_id"),context:"frontend"};o("td.product_"+a.id+", th.product_"+a.id);void 0!==o.fn.block&&t.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),o.ajax({type:"post",url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionremove),data:a,dataType:"html",success:function(e){var a=o(e).filter("table.compare-list");o("body > table.compare-list").replaceWith(a),o('.compare[data-product_id="'+t.data("product_id")+'"]',window.parent.document).removeClass("added").html(yith_woocompare.button_text),o(window).trigger("yith_woocompare_product_removed")}})}),o(".yith-woocompare-open a, a.yith-woocompare-open").on("click",function(t){t.preventDefault(),o("body").trigger("yith_woocompare_open_popup",{response:e("action",yith_woocompare.actionview)+"&iframe=true"})}),o(".yith-woocompare-widget").on("click","a.compare",function(e){e.preventDefault(),o("body").trigger("yith_woocompare_open_popup",{response:o(this).attr("href")})}).on("click","li a.remove, a.clear-all",function(e){e.preventDefault();var t=o(".yith-woocompare-widget .products-list").data("lang"),a=o(this),r=a.data("product_id"),c={action:yith_woocompare.actionremove,id:r,context:"frontend",responseType:"product_list",lang:t},n=a.parents(".yith-woocompare-widget").find("ul.products-list");void 0!==o.fn.block&&n.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),o.ajax({type:"post",url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionremove),data:c,dataType:"html",success:function(e){"all"==r?o(".compare.added").removeClass("added").html(yith_woocompare.button_text):o('.compare[data-product_id="'+r+'"]').removeClass("added").html(yith_woocompare.button_text),n.html(e),void 0!==o.fn.block&&n.unblock()}})}),o("body").on("added_to_cart",function(e,t,a,r){o(r).closest("table.compare-list").length&&r.hide()})});
|
1 |
+
jQuery(document).ready(function(o){function e(o,e){o=escape(o),e=escape(e);var t=document.location.search,a=o+"="+e,r=new RegExp("(&|\\?)"+o+"=[^&]*");return t=t.replace(r,"$1"+a),RegExp.$1||(t+=(t.length>0?"&":"?")+a),t}o(document).on("click",".product a.compare:not(.added)",function(e){e.preventDefault();var t=o(this),a={action:yith_woocompare.actionadd,id:t.data("product_id"),context:"frontend"},r=o(".yith-woocompare-widget ul.products-list");void 0!==o.fn.block&&(t.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),r.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}})),o.ajax({type:"post",url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionadd),data:a,dataType:"json",success:function(e){void 0!==o.fn.block&&(t.unblock(),r.unblock()),t.addClass("added").attr("href",e.table_url).text(yith_woocompare.added_label),r.html(e.widget_table),"yes"==yith_woocompare.auto_open&&o("body").trigger("yith_woocompare_open_popup",{response:e.table_url,button:t})}})}),o(document).on("click",".product a.compare.added",function(e){e.preventDefault();var t=this.href;void 0!==t&&o("body").trigger("yith_woocompare_open_popup",{response:t,button:o(this)})}),o("body").on("yith_woocompare_open_popup",function(e,t){var a=t.response;if(o(window).width()>=768)o.colorbox({href:a,iframe:!0,width:"90%",height:"90%",className:"yith_woocompare_colorbox",close:yith_woocompare.close_label,onClosed:function(){var e=o(".yith-woocompare-widget ul.products-list"),t={action:yith_woocompare.actionreload,context:"frontend"};void 0!==o.fn.block&&e.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),o.ajax({type:"post",url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionreload),data:t,success:function(t){void 0!==o.fn.block&&e.unblock().html(t),e.html(t)}})}}),o(window).resize(function(){o.colorbox.resize({width:"90%",height:"90%"})});else{var r=a.split("?");if(r.length>=2){for(var c=encodeURIComponent("iframe")+"=",n=r[1].split(/[&;]/g),i=n.length;i-- >0;)-1!==n[i].lastIndexOf(c,0)&&n.splice(i,1);a=r[0]+"?"+n.join("&")}window.open(a,yith_woocompare.table_title)}}),o(document).on("click",".remove a",function(e){e.preventDefault();var t=o(this),a={action:yith_woocompare.actionremove,id:t.data("product_id"),context:"frontend"};o("td.product_"+a.id+", th.product_"+a.id);void 0!==o.fn.block&&t.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),o.ajax({type:"post",url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionremove),data:a,dataType:"html",success:function(e){var a=o(e).filter("table.compare-list");o("body > table.compare-list").replaceWith(a),o('.compare[data-product_id="'+t.data("product_id")+'"]',window.parent.document).removeClass("added").html(yith_woocompare.button_text),o(window).trigger("yith_woocompare_product_removed")}})}),o(".yith-woocompare-open a, a.yith-woocompare-open").on("click",function(t){t.preventDefault(),o("body").trigger("yith_woocompare_open_popup",{response:e("action",yith_woocompare.actionview)+"&iframe=true"})}),o(".yith-woocompare-widget").on("click","a.compare",function(e){e.preventDefault(),o("body").trigger("yith_woocompare_open_popup",{response:o(this).attr("href")})}).on("click","li a.remove, a.clear-all",function(e){e.preventDefault();var t=o(".yith-woocompare-widget .products-list").data("lang"),a=o(this),r=a.data("product_id"),c={action:yith_woocompare.actionremove,id:r,context:"frontend",responseType:"product_list",lang:t},n=a.parents(".yith-woocompare-widget").find("ul.products-list");void 0!==o.fn.block&&n.block({message:null,overlayCSS:{background:"#fff url("+yith_woocompare.loader+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}}),o.ajax({type:"post",url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionremove),data:c,dataType:"html",success:function(e){"all"==r?o(".compare.added").removeClass("added").html(yith_woocompare.button_text):o('.compare[data-product_id="'+r+'"]').removeClass("added").html(yith_woocompare.button_text),n.html(e),void 0!==o.fn.block&&n.unblock()}})}),o("body").on("added_to_cart",function(e,t,a,r){o(r).closest("table.compare-list").length&&r.hide()})});
|
includes/class.yith-woocompare-frontend.php
CHANGED
@@ -173,7 +173,9 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
|
|
173 |
|
174 |
// check for deleted|private products
|
175 |
$product = wc_get_product( $product_id );
|
176 |
-
|
|
|
|
|
177 |
continue;
|
178 |
}
|
179 |
|
@@ -207,7 +209,8 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
|
|
207 |
'auto_open' => get_option( 'yith_woocompare_auto_open', 'yes' ),
|
208 |
'loader' => YITH_WOOCOMPARE_ASSETS_URL . '/images/loader.gif',
|
209 |
'button_text' => get_option('yith_woocompare_button_text'),
|
210 |
-
'cookie_name' => $this->cookie_name
|
|
|
211 |
));
|
212 |
|
213 |
wp_localize_script( 'yith-woocompare-main', 'yith_woocompare', $args );
|
@@ -279,7 +282,12 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
|
|
279 |
$sitepress->switch_lang( $lang, true );
|
280 |
}
|
281 |
|
282 |
-
|
|
|
|
|
|
|
|
|
|
|
283 |
|
284 |
// remove all styles from compare template
|
285 |
add_action('wp_print_styles', array( $this, 'remove_all_styles' ), 100);
|
@@ -288,6 +296,9 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
|
|
288 |
remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
|
289 |
remove_action( 'wp_head', '_admin_bar_bump_cb' );
|
290 |
|
|
|
|
|
|
|
291 |
$plugin_path = YITH_WOOCOMPARE_TEMPLATE_PATH . '/' . $this->template_file;
|
292 |
|
293 |
if ( defined('WC_TEMPLATE_PATH') ) {
|
@@ -407,7 +418,7 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
|
|
407 |
public function view_table_url( $product_id = false ) {
|
408 |
$url_args = array(
|
409 |
'action' => $this->action_view,
|
410 |
-
'iframe' =>
|
411 |
);
|
412 |
|
413 |
$lang = defined( 'ICL_LANGUAGE_CODE' ) ? ICL_LANGUAGE_CODE : false;
|
@@ -762,5 +773,21 @@ if( !class_exists( 'YITH_Woocompare_Frontend' ) ) {
|
|
762 |
$wc_get_product = function_exists( 'wc_get_product' ) ? 'wc_get_product' : 'get_product';
|
763 |
return $wc_get_product( $product_id );
|
764 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
765 |
}
|
766 |
}
|
173 |
|
174 |
// check for deleted|private products
|
175 |
$product = wc_get_product( $product_id );
|
176 |
+
$post_status = yit_get_prop( $product, 'post_status' );
|
177 |
+
|
178 |
+
if( ! $product || $post_status !== 'publish' ) {
|
179 |
continue;
|
180 |
}
|
181 |
|
209 |
'auto_open' => get_option( 'yith_woocompare_auto_open', 'yes' ),
|
210 |
'loader' => YITH_WOOCOMPARE_ASSETS_URL . '/images/loader.gif',
|
211 |
'button_text' => get_option('yith_woocompare_button_text'),
|
212 |
+
'cookie_name' => $this->cookie_name,
|
213 |
+
'close_label' => _x( 'Close', 'Label for popup close icon', 'yith-woocommerce-compare' )
|
214 |
));
|
215 |
|
216 |
wp_localize_script( 'yith-woocompare-main', 'yith_woocompare', $args );
|
282 |
$sitepress->switch_lang( $lang, true );
|
283 |
}
|
284 |
|
285 |
+
$args = $this->_vars();
|
286 |
+
$args['fixed'] = false;
|
287 |
+
$args['iframe'] = 'yes';
|
288 |
+
|
289 |
+
//extract args
|
290 |
+
extract( $args );
|
291 |
|
292 |
// remove all styles from compare template
|
293 |
add_action('wp_print_styles', array( $this, 'remove_all_styles' ), 100);
|
296 |
remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
|
297 |
remove_action( 'wp_head', '_admin_bar_bump_cb' );
|
298 |
|
299 |
+
// remove filters before render compare popup
|
300 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'actions_before_load_popup' ), 99 );
|
301 |
+
|
302 |
$plugin_path = YITH_WOOCOMPARE_TEMPLATE_PATH . '/' . $this->template_file;
|
303 |
|
304 |
if ( defined('WC_TEMPLATE_PATH') ) {
|
418 |
public function view_table_url( $product_id = false ) {
|
419 |
$url_args = array(
|
420 |
'action' => $this->action_view,
|
421 |
+
'iframe' => 'yes'
|
422 |
);
|
423 |
|
424 |
$lang = defined( 'ICL_LANGUAGE_CODE' ) ? ICL_LANGUAGE_CODE : false;
|
773 |
$wc_get_product = function_exists( 'wc_get_product' ) ? 'wc_get_product' : 'get_product';
|
774 |
return $wc_get_product( $product_id );
|
775 |
}
|
776 |
+
|
777 |
+
|
778 |
+
/**
|
779 |
+
* Do action before loads compare popup
|
780 |
+
*
|
781 |
+
* @since 2.1.1
|
782 |
+
* @author Francesco Licandro
|
783 |
+
*/
|
784 |
+
public function actions_before_load_popup(){
|
785 |
+
// removes WooCommerce Product Filter scripts
|
786 |
+
wp_dequeue_script( 'prdctfltr-main-js' );
|
787 |
+
wp_dequeue_script( 'prdctfltr-history' );
|
788 |
+
wp_dequeue_script( 'prdctfltr-ionrange-js' );
|
789 |
+
wp_dequeue_script( 'prdctfltr-isotope-js' );
|
790 |
+
wp_dequeue_script( 'prdctfltr-scrollbar-js' );
|
791 |
+
}
|
792 |
}
|
793 |
}
|
init.php
CHANGED
@@ -3,15 +3,17 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Compare
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-compare/
|
5 |
* Description: YITH WooCommerce Compare allows you to compare more products with WooCommerce plugin, through product attributes.
|
6 |
-
* Version: 2.2.
|
7 |
* Author: YITHEMES
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-compare
|
10 |
* Domain Path: /languages/
|
|
|
|
|
11 |
*
|
12 |
* @author Yithemes
|
13 |
* @package YITH WooCommerce Compare
|
14 |
-
* @version 2.2.
|
15 |
*/
|
16 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
@@ -56,7 +58,7 @@ if ( ! function_exists( 'yith_plugin_registration_hook' ) ) {
|
|
56 |
register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
57 |
|
58 |
if ( ! defined( 'YITH_WOOCOMPARE_VERSION' ) ){
|
59 |
-
define( 'YITH_WOOCOMPARE_VERSION', '2.2.
|
60 |
}
|
61 |
if ( ! defined( 'YITH_WOOCOMPARE_FREE_INIT' ) ) {
|
62 |
define( 'YITH_WOOCOMPARE_FREE_INIT', plugin_basename( __FILE__ ) );
|
3 |
* Plugin Name: YITH WooCommerce Compare
|
4 |
* Plugin URI: https://yithemes.com/themes/plugins/yith-woocommerce-compare/
|
5 |
* Description: YITH WooCommerce Compare allows you to compare more products with WooCommerce plugin, through product attributes.
|
6 |
+
* Version: 2.2.2
|
7 |
* Author: YITHEMES
|
8 |
* Author URI: https://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-compare
|
10 |
* Domain Path: /languages/
|
11 |
+
* WC requires at least: 2.4.0
|
12 |
+
* WC tested up to: 3.2.1
|
13 |
*
|
14 |
* @author Yithemes
|
15 |
* @package YITH WooCommerce Compare
|
16 |
+
* @version 2.2.2
|
17 |
*/
|
18 |
/* Copyright 2013 Your Inspiration Themes (email : plugins@yithemes.com)
|
19 |
|
58 |
register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
59 |
|
60 |
if ( ! defined( 'YITH_WOOCOMPARE_VERSION' ) ){
|
61 |
+
define( 'YITH_WOOCOMPARE_VERSION', '2.2.2' );
|
62 |
}
|
63 |
if ( ! defined( 'YITH_WOOCOMPARE_FREE_INIT' ) ) {
|
64 |
define( 'YITH_WOOCOMPARE_FREE_INIT', plugin_basename( __FILE__ ) );
|
languages/yith-woocommerce-compare-it_IT.mo
CHANGED
Binary file
|
languages/yith-woocommerce-compare-it_IT.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Compare\n"
|
4 |
-
"POT-Creation-Date:
|
5 |
-
"PO-Revision-Date:
|
6 |
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
|
7 |
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
|
8 |
"Language: 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-KeywordsList: __;_e;_x\n"
|
14 |
"X-Poedit-Basepath: ..\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
@@ -17,33 +17,33 @@ msgstr ""
|
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
|
19 |
|
20 |
-
#: includes/class.yith-woocompare-admin.php:
|
21 |
-
#: includes/class.yith-woocompare-admin.php:
|
22 |
msgid "Settings"
|
23 |
msgstr "Impostazioni"
|
24 |
|
25 |
-
#: includes/class.yith-woocompare-admin.php:
|
26 |
-
#: includes/class.yith-woocompare-admin.php:
|
27 |
msgid "Premium Version"
|
28 |
msgstr "Versione premium"
|
29 |
|
30 |
-
#: includes/class.yith-woocompare-admin.php:
|
31 |
-
#: includes/class.yith-woocompare-admin.php:
|
32 |
-
#: includes/class.yith-woocompare-frontend.php:
|
33 |
-
#: plugin-options/general-options.php:
|
34 |
#: widgets/class.yith-woocompare-widget.php:51
|
35 |
msgid "Compare"
|
36 |
msgstr "Confronta"
|
37 |
|
38 |
-
#: includes/class.yith-woocompare-admin.php:
|
39 |
msgid "Plugin Documentation"
|
40 |
msgstr "Documentazione plugin"
|
41 |
|
42 |
-
#: includes/class.yith-woocompare-admin.php:
|
43 |
msgid "YITH WooCommerce Compare Activated"
|
44 |
msgstr "YITH WooCommerce Compare attivato"
|
45 |
|
46 |
-
#: includes/class.yith-woocompare-admin.php:
|
47 |
#, php-format
|
48 |
msgid ""
|
49 |
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
|
@@ -57,11 +57,11 @@ msgstr ""
|
|
57 |
"WooCommerce Compare con molte nuove opzioni, <a href=\"%s\">scoprila subito</"
|
58 |
"a>."
|
59 |
|
60 |
-
#: includes/class.yith-woocompare-admin.php:
|
61 |
msgid "YITH WooCommerce Compare Updated"
|
62 |
msgstr "YITH WooCommerce Compare aggiornato"
|
63 |
|
64 |
-
#: includes/class.yith-woocompare-admin.php:
|
65 |
#, php-format
|
66 |
msgid ""
|
67 |
"From now on, you can find all the options of YITH WooCommerce Compare under "
|
@@ -77,27 +77,31 @@ msgstr ""
|
|
77 |
"Compare è stato aggiornato includendo nuove opzioni, <a href=\"%s\">scopri "
|
78 |
"la versione PREMIUM</a>."
|
79 |
|
80 |
-
#: includes/class.yith-woocompare-admin.php:
|
81 |
msgid "Do you want to hard crop the image?"
|
82 |
msgstr "Vuoi ritagliare questa immagine?"
|
83 |
|
84 |
-
#: includes/class.yith-woocompare-frontend.php:
|
85 |
msgid "Added"
|
86 |
msgstr "Aggiunto"
|
87 |
|
88 |
-
#: includes/class.yith-woocompare-frontend.php:
|
89 |
msgid "Product Comparison"
|
90 |
msgstr "Comparazione Prodotto"
|
91 |
|
92 |
-
#: includes/class.yith-woocompare-frontend.php:
|
|
|
|
|
|
|
|
|
93 |
msgid "In stock"
|
94 |
msgstr "In stock"
|
95 |
|
96 |
-
#: includes/class.yith-woocompare-frontend.php:
|
97 |
msgid "No products to compare"
|
98 |
msgstr "Nessun prodotto da comparare"
|
99 |
|
100 |
-
#: includes/class.yith-woocompare-frontend.php:
|
101 |
msgid "Remove"
|
102 |
msgstr "Rimuovi"
|
103 |
|
@@ -134,7 +138,7 @@ msgstr "Peso"
|
|
134 |
msgid "Dimensions"
|
135 |
msgstr "Dimensioni"
|
136 |
|
137 |
-
#: init.php:
|
138 |
msgid ""
|
139 |
"YITH WooCommerce Compare is enabled but not effective. It requires "
|
140 |
"WooCommerce in order to work."
|
@@ -142,7 +146,7 @@ msgstr ""
|
|
142 |
"YITH WooCommerce Compare è abilitato ma non in funzione. Devi aver "
|
143 |
"installato WooCommerce perché questo possa funzionare correttamente."
|
144 |
|
145 |
-
#: init.php:
|
146 |
msgid ""
|
147 |
"You can't activate the free version of YITH WooCommerce Compare while you "
|
148 |
"are using the premium one."
|
@@ -159,75 +163,74 @@ msgid "Link or Button"
|
|
159 |
msgstr "Collegamento o pulsante"
|
160 |
|
161 |
#: plugin-options/general-options.php:25
|
162 |
-
msgid "Choose if you want to use a link or a button for the
|
163 |
msgstr ""
|
164 |
-
"Scegli se
|
165 |
-
"\"Confronto\""
|
166 |
|
167 |
-
#: plugin-options/general-options.php:
|
168 |
msgid "Link"
|
169 |
msgstr "Collegamento"
|
170 |
|
171 |
-
#: plugin-options/general-options.php:
|
172 |
msgid "Button"
|
173 |
msgstr "Pulsante"
|
174 |
|
175 |
-
#: plugin-options/general-options.php:
|
176 |
msgid "Link/Button text"
|
177 |
msgstr "Testo collegamento/pulsante"
|
178 |
|
179 |
-
#: plugin-options/general-options.php:
|
180 |
msgid "Type the text to use for the button or the link of the compare."
|
181 |
msgstr ""
|
182 |
"Inserisci il testo da utilizzare per il pulsante o il collegamento che ti "
|
183 |
"permetterà di confrontare i prodotti."
|
184 |
|
185 |
-
#: plugin-options/general-options.php:
|
186 |
msgid "Show button in single product page"
|
187 |
msgstr "Mostra pulsante nella pagina dettaglio prodotto"
|
188 |
|
189 |
-
#: plugin-options/general-options.php:
|
190 |
msgid "Say if you want to show the button in the single product page."
|
191 |
msgstr ""
|
192 |
"Scegli se vuoi mostrare il pulsante nella pagina dettaglio del prodotto."
|
193 |
|
194 |
-
#: plugin-options/general-options.php:
|
195 |
msgid "Show button in products list"
|
196 |
msgstr "Mostra pulsante nella lista prodotti"
|
197 |
|
198 |
-
#: plugin-options/general-options.php:
|
199 |
msgid "Say if you want to show the button in the products list."
|
200 |
msgstr "Imposta se vuoi mostrare il pulsante nella lista prodotti."
|
201 |
|
202 |
-
#: plugin-options/general-options.php:
|
203 |
msgid "Open automatically lightbox"
|
204 |
msgstr "Apri lightbox automaticamente"
|
205 |
|
206 |
-
#: plugin-options/general-options.php:
|
207 |
msgid "Open link after click into \"Compare\" button\"."
|
208 |
msgstr "Apri pagina dopo aver cliccato sul pulsante \"Confronta\"."
|
209 |
|
210 |
-
#: plugin-options/general-options.php:
|
211 |
msgid "Table Settings"
|
212 |
msgstr "Impostazioni tabella."
|
213 |
|
214 |
-
#: plugin-options/general-options.php:
|
215 |
msgid "Table title"
|
216 |
msgstr "Titolo tabella"
|
217 |
|
218 |
-
#: plugin-options/general-options.php:
|
219 |
msgid "Type the text to use for the table title."
|
220 |
msgstr "Inserisci il testo da utilizzare come titolo della tabella."
|
221 |
|
222 |
-
#: plugin-options/general-options.php:
|
223 |
msgid "Compare products"
|
224 |
msgstr "Confronta prodotti"
|
225 |
|
226 |
-
#: plugin-options/general-options.php:
|
227 |
msgid "Fields to show"
|
228 |
msgstr "Campi da mostrare"
|
229 |
|
230 |
-
#: plugin-options/general-options.php:
|
231 |
msgid ""
|
232 |
"Select the fields to show in the comparison table and order them by "
|
233 |
"drag&drop (are included also the woocommerce attributes)"
|
@@ -235,27 +238,27 @@ msgstr ""
|
|
235 |
"Seleziona i campi da mostrare nella tabella di comparazione e ordinali "
|
236 |
"attraverso il drag&drop (sono inclusi anche gli attributi di woocommerce)"
|
237 |
|
238 |
-
#: plugin-options/general-options.php:
|
239 |
msgid "Repeat \"Price\" field"
|
240 |
msgstr "Ripeti campo \"Prezzo\""
|
241 |
|
242 |
-
#: plugin-options/general-options.php:
|
243 |
msgid "Repeat the \"Price\" field at the end of the table"
|
244 |
msgstr "Ripeti il campo \"Prezzo\" alla fine di ogni tabella"
|
245 |
|
246 |
-
#: plugin-options/general-options.php:
|
247 |
msgid "Repeat \"Add to cart\" field"
|
248 |
msgstr "Ripeti campo \"Aggiungi al carrello\""
|
249 |
|
250 |
-
#: plugin-options/general-options.php:
|
251 |
msgid "Repeat the \"Add to cart\" field at the end of the table"
|
252 |
msgstr "Ripeti il campo \"Aggiungi al carrello\" alla fine di ogni tabella"
|
253 |
|
254 |
-
#: plugin-options/general-options.php:
|
255 |
msgid "Image size"
|
256 |
msgstr "Dimensione immagine"
|
257 |
|
258 |
-
#: plugin-options/general-options.php:
|
259 |
msgid "Set the size for the images"
|
260 |
msgstr "Imposta la dimensione per le immagini"
|
261 |
|
@@ -457,11 +460,11 @@ msgid ""
|
|
457 |
"popup to check its existence. "
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: templates/compare.php:
|
461 |
msgid "Close window [X]"
|
462 |
msgstr "Chiudi finestra [X]"
|
463 |
|
464 |
-
#: templates/compare.php:
|
465 |
msgid "No products added in the compare table."
|
466 |
msgstr "Nessun prodotto aggiunto nella tabella di comparazione."
|
467 |
|
@@ -478,6 +481,11 @@ msgstr "YITH WooCommerce Compare Widget"
|
|
478 |
msgid "Clear all"
|
479 |
msgstr "Cancella tutti"
|
480 |
|
|
|
|
|
|
|
|
|
|
|
481 |
#~ msgid ""
|
482 |
#~ "An advanced option panel that let you change all the colors of the "
|
483 |
#~ "plugin, so that you can adapt stylistically all its elements to the "
|
@@ -535,11 +543,6 @@ msgstr "Cancella tutti"
|
|
535 |
#~ "YITH WooCommerce Compare Premium è abilitato ma non in funzione. Devi "
|
536 |
#~ "aver installato WooCommerce perché questo possa funzionare correttamente."
|
537 |
|
538 |
-
#~ msgid ""
|
539 |
-
#~ "Choose if you want to use a link or a button for the comepare actions."
|
540 |
-
#~ msgstr ""
|
541 |
-
#~ "Scegli se utilizzare un linko un pulsante per confrontare i tuoi prodotti."
|
542 |
-
|
543 |
#~ msgid "Page or Popup"
|
544 |
#~ msgstr "Pagina o popup"
|
545 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Compare\n"
|
4 |
+
"POT-Creation-Date: 2017-10-24 16:28+0200\n"
|
5 |
+
"PO-Revision-Date: 2017-10-24 16:28+0200\n"
|
6 |
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
|
7 |
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
|
8 |
"Language: 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-KeywordsList: __;_e;_x\n"
|
14 |
"X-Poedit-Basepath: ..\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
|
19 |
|
20 |
+
#: includes/class.yith-woocompare-admin.php:119
|
21 |
+
#: includes/class.yith-woocompare-admin.php:143
|
22 |
msgid "Settings"
|
23 |
msgstr "Impostazioni"
|
24 |
|
25 |
+
#: includes/class.yith-woocompare-admin.php:121
|
26 |
+
#: includes/class.yith-woocompare-admin.php:147
|
27 |
msgid "Premium Version"
|
28 |
msgstr "Versione premium"
|
29 |
|
30 |
+
#: includes/class.yith-woocompare-admin.php:153
|
31 |
+
#: includes/class.yith-woocompare-admin.php:154
|
32 |
+
#: includes/class.yith-woocompare-frontend.php:484
|
33 |
+
#: plugin-options/general-options.php:41 plugin-options/general-options.php:42
|
34 |
#: widgets/class.yith-woocompare-widget.php:51
|
35 |
msgid "Compare"
|
36 |
msgstr "Confronta"
|
37 |
|
38 |
+
#: includes/class.yith-woocompare-admin.php:217
|
39 |
msgid "Plugin Documentation"
|
40 |
msgstr "Documentazione plugin"
|
41 |
|
42 |
+
#: includes/class.yith-woocompare-admin.php:237
|
43 |
msgid "YITH WooCommerce Compare Activated"
|
44 |
msgstr "YITH WooCommerce Compare attivato"
|
45 |
|
46 |
+
#: includes/class.yith-woocompare-admin.php:238
|
47 |
#, php-format
|
48 |
msgid ""
|
49 |
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
|
57 |
"WooCommerce Compare con molte nuove opzioni, <a href=\"%s\">scoprila subito</"
|
58 |
"a>."
|
59 |
|
60 |
+
#: includes/class.yith-woocompare-admin.php:249
|
61 |
msgid "YITH WooCommerce Compare Updated"
|
62 |
msgstr "YITH WooCommerce Compare aggiornato"
|
63 |
|
64 |
+
#: includes/class.yith-woocompare-admin.php:250
|
65 |
#, php-format
|
66 |
msgid ""
|
67 |
"From now on, you can find all the options of YITH WooCommerce Compare under "
|
77 |
"Compare è stato aggiornato includendo nuove opzioni, <a href=\"%s\">scopri "
|
78 |
"la versione PREMIUM</a>."
|
79 |
|
80 |
+
#: includes/class.yith-woocompare-admin.php:394
|
81 |
msgid "Do you want to hard crop the image?"
|
82 |
msgstr "Vuoi ritagliare questa immagine?"
|
83 |
|
84 |
+
#: includes/class.yith-woocompare-frontend.php:207
|
85 |
msgid "Added"
|
86 |
msgstr "Aggiunto"
|
87 |
|
88 |
+
#: includes/class.yith-woocompare-frontend.php:208 templates/compare.php:49
|
89 |
msgid "Product Comparison"
|
90 |
msgstr "Comparazione Prodotto"
|
91 |
|
92 |
+
#: includes/class.yith-woocompare-frontend.php:213
|
93 |
+
msgid "Close"
|
94 |
+
msgstr "Chiudi"
|
95 |
+
|
96 |
+
#: includes/class.yith-woocompare-frontend.php:368
|
97 |
msgid "In stock"
|
98 |
msgstr "In stock"
|
99 |
|
100 |
+
#: includes/class.yith-woocompare-frontend.php:675
|
101 |
msgid "No products to compare"
|
102 |
msgstr "Nessun prodotto da comparare"
|
103 |
|
104 |
+
#: includes/class.yith-woocompare-frontend.php:688 templates/compare.php:114
|
105 |
msgid "Remove"
|
106 |
msgstr "Rimuovi"
|
107 |
|
138 |
msgid "Dimensions"
|
139 |
msgstr "Dimensioni"
|
140 |
|
141 |
+
#: init.php:42
|
142 |
msgid ""
|
143 |
"YITH WooCommerce Compare is enabled but not effective. It requires "
|
144 |
"WooCommerce in order to work."
|
146 |
"YITH WooCommerce Compare è abilitato ma non in funzione. Devi aver "
|
147 |
"installato WooCommerce perché questo possa funzionare correttamente."
|
148 |
|
149 |
+
#: init.php:50
|
150 |
msgid ""
|
151 |
"You can't activate the free version of YITH WooCommerce Compare while you "
|
152 |
"are using the premium one."
|
163 |
msgstr "Collegamento o pulsante"
|
164 |
|
165 |
#: plugin-options/general-options.php:25
|
166 |
+
msgid "Choose if you want to use a link or a button for the comepare actions."
|
167 |
msgstr ""
|
168 |
+
"Scegli se utilizzare un linko un pulsante per confrontare i tuoi prodotti."
|
|
|
169 |
|
170 |
+
#: plugin-options/general-options.php:32
|
171 |
msgid "Link"
|
172 |
msgstr "Collegamento"
|
173 |
|
174 |
+
#: plugin-options/general-options.php:33
|
175 |
msgid "Button"
|
176 |
msgstr "Pulsante"
|
177 |
|
178 |
+
#: plugin-options/general-options.php:38
|
179 |
msgid "Link/Button text"
|
180 |
msgstr "Testo collegamento/pulsante"
|
181 |
|
182 |
+
#: plugin-options/general-options.php:39
|
183 |
msgid "Type the text to use for the button or the link of the compare."
|
184 |
msgstr ""
|
185 |
"Inserisci il testo da utilizzare per il pulsante o il collegamento che ti "
|
186 |
"permetterà di confrontare i prodotti."
|
187 |
|
188 |
+
#: plugin-options/general-options.php:47
|
189 |
msgid "Show button in single product page"
|
190 |
msgstr "Mostra pulsante nella pagina dettaglio prodotto"
|
191 |
|
192 |
+
#: plugin-options/general-options.php:48
|
193 |
msgid "Say if you want to show the button in the single product page."
|
194 |
msgstr ""
|
195 |
"Scegli se vuoi mostrare il pulsante nella pagina dettaglio del prodotto."
|
196 |
|
197 |
+
#: plugin-options/general-options.php:56
|
198 |
msgid "Show button in products list"
|
199 |
msgstr "Mostra pulsante nella lista prodotti"
|
200 |
|
201 |
+
#: plugin-options/general-options.php:57
|
202 |
msgid "Say if you want to show the button in the products list."
|
203 |
msgstr "Imposta se vuoi mostrare il pulsante nella lista prodotti."
|
204 |
|
205 |
+
#: plugin-options/general-options.php:65
|
206 |
msgid "Open automatically lightbox"
|
207 |
msgstr "Apri lightbox automaticamente"
|
208 |
|
209 |
+
#: plugin-options/general-options.php:66
|
210 |
msgid "Open link after click into \"Compare\" button\"."
|
211 |
msgstr "Apri pagina dopo aver cliccato sul pulsante \"Confronta\"."
|
212 |
|
213 |
+
#: plugin-options/general-options.php:79
|
214 |
msgid "Table Settings"
|
215 |
msgstr "Impostazioni tabella."
|
216 |
|
217 |
+
#: plugin-options/general-options.php:86
|
218 |
msgid "Table title"
|
219 |
msgstr "Titolo tabella"
|
220 |
|
221 |
+
#: plugin-options/general-options.php:87
|
222 |
msgid "Type the text to use for the table title."
|
223 |
msgstr "Inserisci il testo da utilizzare come titolo della tabella."
|
224 |
|
225 |
+
#: plugin-options/general-options.php:89 plugin-options/general-options.php:90
|
226 |
msgid "Compare products"
|
227 |
msgstr "Confronta prodotti"
|
228 |
|
229 |
+
#: plugin-options/general-options.php:95
|
230 |
msgid "Fields to show"
|
231 |
msgstr "Campi da mostrare"
|
232 |
|
233 |
+
#: plugin-options/general-options.php:96
|
234 |
msgid ""
|
235 |
"Select the fields to show in the comparison table and order them by "
|
236 |
"drag&drop (are included also the woocommerce attributes)"
|
238 |
"Seleziona i campi da mostrare nella tabella di comparazione e ordinali "
|
239 |
"attraverso il drag&drop (sono inclusi anche gli attributi di woocommerce)"
|
240 |
|
241 |
+
#: plugin-options/general-options.php:104
|
242 |
msgid "Repeat \"Price\" field"
|
243 |
msgstr "Ripeti campo \"Prezzo\""
|
244 |
|
245 |
+
#: plugin-options/general-options.php:105
|
246 |
msgid "Repeat the \"Price\" field at the end of the table"
|
247 |
msgstr "Ripeti il campo \"Prezzo\" alla fine di ogni tabella"
|
248 |
|
249 |
+
#: plugin-options/general-options.php:113
|
250 |
msgid "Repeat \"Add to cart\" field"
|
251 |
msgstr "Ripeti campo \"Aggiungi al carrello\""
|
252 |
|
253 |
+
#: plugin-options/general-options.php:114
|
254 |
msgid "Repeat the \"Add to cart\" field at the end of the table"
|
255 |
msgstr "Ripeti il campo \"Aggiungi al carrello\" alla fine di ogni tabella"
|
256 |
|
257 |
+
#: plugin-options/general-options.php:122
|
258 |
msgid "Image size"
|
259 |
msgstr "Dimensione immagine"
|
260 |
|
261 |
+
#: plugin-options/general-options.php:123
|
262 |
msgid "Set the size for the images"
|
263 |
msgstr "Imposta la dimensione per le immagini"
|
264 |
|
460 |
"popup to check its existence. "
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: templates/compare.php:76
|
464 |
msgid "Close window [X]"
|
465 |
msgstr "Chiudi finestra [X]"
|
466 |
|
467 |
+
#: templates/compare.php:103
|
468 |
msgid "No products added in the compare table."
|
469 |
msgstr "Nessun prodotto aggiunto nella tabella di comparazione."
|
470 |
|
481 |
msgid "Clear all"
|
482 |
msgstr "Cancella tutti"
|
483 |
|
484 |
+
#~ msgid "Choose if you want to use a link or a button for the action button."
|
485 |
+
#~ msgstr ""
|
486 |
+
#~ "Scegli se vuoi usare un collegamento o un pulsante per l'azione di "
|
487 |
+
#~ "\"Confronto\""
|
488 |
+
|
489 |
#~ msgid ""
|
490 |
#~ "An advanced option panel that let you change all the colors of the "
|
491 |
#~ "plugin, so that you can adapt stylistically all its elements to the "
|
543 |
#~ "YITH WooCommerce Compare Premium è abilitato ma non in funzione. Devi "
|
544 |
#~ "aver installato WooCommerce perché questo possa funzionare correttamente."
|
545 |
|
|
|
|
|
|
|
|
|
|
|
546 |
#~ msgid "Page or Popup"
|
547 |
#~ msgstr "Pagina o popup"
|
548 |
|
languages/yith-woocommerce-compare-ru_RU.mo
CHANGED
Binary file
|
languages/yith-woocommerce-compare-ru_RU.po
CHANGED
@@ -1,50 +1,50 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Compare\n"
|
4 |
-
"POT-Creation-Date: 2017-
|
5 |
-
"PO-Revision-Date: 2017-
|
|
|
6 |
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
|
|
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
-
"X-Generator: Poedit
|
11 |
"X-Poedit-KeywordsList: __;_e;_x\n"
|
12 |
"X-Poedit-Basepath: ..\n"
|
13 |
"X-Poedit-SourceCharset: UTF-8\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
15 |
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
16 |
-
"Last-Translator: \n"
|
17 |
-
"Language: ru_RU\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
|
20 |
|
21 |
-
#: includes/class.yith-woocompare-admin.php:
|
22 |
-
#: includes/class.yith-woocompare-admin.php:
|
23 |
msgid "Settings"
|
24 |
msgstr "Настройки"
|
25 |
|
26 |
-
#: includes/class.yith-woocompare-admin.php:
|
27 |
-
#: includes/class.yith-woocompare-admin.php:
|
28 |
msgid "Premium Version"
|
29 |
msgstr "Премиум версия"
|
30 |
|
31 |
-
#: includes/class.yith-woocompare-admin.php:
|
32 |
-
#: includes/class.yith-woocompare-admin.php:
|
33 |
-
#: includes/class.yith-woocompare-frontend.php:
|
34 |
#: plugin-options/general-options.php:41 plugin-options/general-options.php:42
|
35 |
#: widgets/class.yith-woocompare-widget.php:51
|
36 |
msgid "Compare"
|
37 |
msgstr "Сравнить"
|
38 |
|
39 |
-
#: includes/class.yith-woocompare-admin.php:
|
40 |
msgid "Plugin Documentation"
|
41 |
msgstr "Документация плагина"
|
42 |
|
43 |
-
#: includes/class.yith-woocompare-admin.php:
|
44 |
msgid "YITH WooCommerce Compare Activated"
|
45 |
msgstr "Активировать YITH WooCommerce Compare"
|
46 |
|
47 |
-
#: includes/class.yith-woocompare-admin.php:
|
48 |
#, php-format
|
49 |
msgid ""
|
50 |
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
|
@@ -58,11 +58,11 @@ msgstr ""
|
|
58 |
"доступен в бесплатной версии и PREMIUM версии со множеством новых опций, <a "
|
59 |
"href=«%s»>discover it now</a>."
|
60 |
|
61 |
-
#: includes/class.yith-woocompare-admin.php:
|
62 |
msgid "YITH WooCommerce Compare Updated"
|
63 |
msgstr "Обновить YITH WooCommerce Compare"
|
64 |
|
65 |
-
#: includes/class.yith-woocompare-admin.php:
|
66 |
#, php-format
|
67 |
msgid ""
|
68 |
"From now on, you can find all the options of YITH WooCommerce Compare under "
|
@@ -77,27 +77,27 @@ msgstr ""
|
|
77 |
"меню будет добавлена новая вкладка. YITH WooCommerce Compare был обновлен "
|
78 |
"новыми доступными вариантами, <a href=«%s»>discover the PREMIUM version.</a>"
|
79 |
|
80 |
-
#: includes/class.yith-woocompare-admin.php:
|
81 |
msgid "Do you want to hard crop the image?"
|
82 |
msgstr "Вы хотите принудительно уменьшить изображение?"
|
83 |
|
84 |
-
#: includes/class.yith-woocompare-frontend.php:
|
85 |
msgid "Added"
|
86 |
msgstr "Добавлено"
|
87 |
|
88 |
-
#: includes/class.yith-woocompare-frontend.php:
|
89 |
msgid "Product Comparison"
|
90 |
msgstr "Сравнение товаров"
|
91 |
|
92 |
-
#: includes/class.yith-woocompare-frontend.php:
|
93 |
msgid "In stock"
|
94 |
msgstr "В наличии"
|
95 |
|
96 |
-
#: includes/class.yith-woocompare-frontend.php:
|
97 |
msgid "No products to compare"
|
98 |
msgstr "Нет товаров для сравнения"
|
99 |
|
100 |
-
#: includes/class.yith-woocompare-frontend.php:
|
101 |
msgid "Remove"
|
102 |
msgstr "Удалить"
|
103 |
|
@@ -462,11 +462,11 @@ msgstr ""
|
|
462 |
"момент проверить полный список продуктов, добавленных на вкладку сравнения, "
|
463 |
"и не открывая всплывающее окно, видеть что они сравнивают. "
|
464 |
|
465 |
-
#: templates/compare.php:
|
466 |
msgid "Close window [X]"
|
467 |
msgstr "Закрыть окно [X]"
|
468 |
|
469 |
-
#: templates/compare.php:
|
470 |
msgid "No products added in the compare table."
|
471 |
msgstr "Нет товаров для сравнения."
|
472 |
|
@@ -482,65 +482,65 @@ msgstr "Виджет YITH WooCommerce Compare"
|
|
482 |
msgid "Clear all"
|
483 |
msgstr "Очистить"
|
484 |
|
485 |
-
msgid "Choose if you want to use a link or a button for the action button."
|
486 |
-
msgstr "Выберите, хотите ли вы использовать ссылку или кнопку при нажатии."
|
487 |
|
488 |
-
msgid "The widget show the list of products added in the compare table."
|
489 |
-
msgstr "Виджет отображает список продуктов, добавленных для сравнения."
|
490 |
|
491 |
-
msgid "YITH Woocommerce Compare Widget"
|
492 |
-
msgstr "Виджет YITH WooCommerce Compare"
|
493 |
|
494 |
-
msgid "Products Compare"
|
495 |
-
msgstr "Сравнение товаров"
|
496 |
|
497 |
-
msgid "Repeat \"Price\" field at the end of the table"
|
498 |
-
msgstr "Повторить поле «Цена» в конце таблицы"
|
499 |
|
500 |
-
msgid "Repeat \"Add to cart\" field at the end of the table"
|
501 |
-
msgstr "Повторить поле «Добавить в корзину» в конце таблицы"
|
502 |
|
503 |
-
msgid "Select a date"
|
504 |
-
msgstr "Выберите дату"
|
505 |
|
506 |
-
msgid "Hours"
|
507 |
-
msgstr "Часы"
|
508 |
|
509 |
-
msgid "Minutes"
|
510 |
-
msgstr "Минуты"
|
511 |
|
512 |
-
msgid "Upload"
|
513 |
-
msgstr "Закачать"
|
514 |
|
515 |
-
msgid "px"
|
516 |
-
msgstr "px"
|
517 |
|
518 |
-
msgid "em"
|
519 |
-
msgstr "em"
|
520 |
|
521 |
-
msgid "pt"
|
522 |
-
msgstr "pt"
|
523 |
|
524 |
-
msgid "rem"
|
525 |
-
msgstr "rem"
|
526 |
|
527 |
-
msgid "Select a font family"
|
528 |
-
msgstr "Выберите шрифт"
|
529 |
|
530 |
-
msgid "Regular"
|
531 |
-
msgstr "Обычный"
|
532 |
|
533 |
-
msgid "Bold"
|
534 |
-
msgstr "Жирный"
|
535 |
|
536 |
-
msgid "Extra bold"
|
537 |
-
msgstr "Экстра жирный"
|
538 |
|
539 |
-
msgid "Italic"
|
540 |
-
msgstr "Наклонный"
|
541 |
|
542 |
-
msgid "Italic bold"
|
543 |
-
msgstr "Наклонный жирный"
|
544 |
|
545 |
-
msgid "Click to preview"
|
546 |
-
msgstr "Нажмите для просмотра"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH Woocommerce Compare\n"
|
4 |
+
"POT-Creation-Date: 2017-08-24 15:10+0200\n"
|
5 |
+
"PO-Revision-Date: 2017-08-24 15:10+0200\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
|
8 |
+
"Language: ru_RU\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-KeywordsList: __;_e;_x\n"
|
14 |
"X-Poedit-Basepath: ..\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
17 |
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
|
|
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
|
20 |
|
21 |
+
#: includes/class.yith-woocompare-admin.php:119
|
22 |
+
#: includes/class.yith-woocompare-admin.php:143
|
23 |
msgid "Settings"
|
24 |
msgstr "Настройки"
|
25 |
|
26 |
+
#: includes/class.yith-woocompare-admin.php:121
|
27 |
+
#: includes/class.yith-woocompare-admin.php:147
|
28 |
msgid "Premium Version"
|
29 |
msgstr "Премиум версия"
|
30 |
|
31 |
+
#: includes/class.yith-woocompare-admin.php:153
|
32 |
+
#: includes/class.yith-woocompare-admin.php:154
|
33 |
+
#: includes/class.yith-woocompare-frontend.php:473
|
34 |
#: plugin-options/general-options.php:41 plugin-options/general-options.php:42
|
35 |
#: widgets/class.yith-woocompare-widget.php:51
|
36 |
msgid "Compare"
|
37 |
msgstr "Сравнить"
|
38 |
|
39 |
+
#: includes/class.yith-woocompare-admin.php:217
|
40 |
msgid "Plugin Documentation"
|
41 |
msgstr "Документация плагина"
|
42 |
|
43 |
+
#: includes/class.yith-woocompare-admin.php:237
|
44 |
msgid "YITH WooCommerce Compare Activated"
|
45 |
msgstr "Активировать YITH WooCommerce Compare"
|
46 |
|
47 |
+
#: includes/class.yith-woocompare-admin.php:238
|
48 |
#, php-format
|
49 |
msgid ""
|
50 |
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
|
58 |
"доступен в бесплатной версии и PREMIUM версии со множеством новых опций, <a "
|
59 |
"href=«%s»>discover it now</a>."
|
60 |
|
61 |
+
#: includes/class.yith-woocompare-admin.php:249
|
62 |
msgid "YITH WooCommerce Compare Updated"
|
63 |
msgstr "Обновить YITH WooCommerce Compare"
|
64 |
|
65 |
+
#: includes/class.yith-woocompare-admin.php:250
|
66 |
#, php-format
|
67 |
msgid ""
|
68 |
"From now on, you can find all the options of YITH WooCommerce Compare under "
|
77 |
"меню будет добавлена новая вкладка. YITH WooCommerce Compare был обновлен "
|
78 |
"новыми доступными вариантами, <a href=«%s»>discover the PREMIUM version.</a>"
|
79 |
|
80 |
+
#: includes/class.yith-woocompare-admin.php:394
|
81 |
msgid "Do you want to hard crop the image?"
|
82 |
msgstr "Вы хотите принудительно уменьшить изображение?"
|
83 |
|
84 |
+
#: includes/class.yith-woocompare-frontend.php:205
|
85 |
msgid "Added"
|
86 |
msgstr "Добавлено"
|
87 |
|
88 |
+
#: includes/class.yith-woocompare-frontend.php:206 templates/compare.php:49
|
89 |
msgid "Product Comparison"
|
90 |
msgstr "Сравнение товаров"
|
91 |
|
92 |
+
#: includes/class.yith-woocompare-frontend.php:357
|
93 |
msgid "In stock"
|
94 |
msgstr "В наличии"
|
95 |
|
96 |
+
#: includes/class.yith-woocompare-frontend.php:664
|
97 |
msgid "No products to compare"
|
98 |
msgstr "Нет товаров для сравнения"
|
99 |
|
100 |
+
#: includes/class.yith-woocompare-frontend.php:677 templates/compare.php:114
|
101 |
msgid "Remove"
|
102 |
msgstr "Удалить"
|
103 |
|
462 |
"момент проверить полный список продуктов, добавленных на вкладку сравнения, "
|
463 |
"и не открывая всплывающее окно, видеть что они сравнивают. "
|
464 |
|
465 |
+
#: templates/compare.php:76
|
466 |
msgid "Close window [X]"
|
467 |
msgstr "Закрыть окно [X]"
|
468 |
|
469 |
+
#: templates/compare.php:103
|
470 |
msgid "No products added in the compare table."
|
471 |
msgstr "Нет товаров для сравнения."
|
472 |
|
482 |
msgid "Clear all"
|
483 |
msgstr "Очистить"
|
484 |
|
485 |
+
#~ msgid "Choose if you want to use a link or a button for the action button."
|
486 |
+
#~ msgstr "Выберите, хотите ли вы использовать ссылку или кнопку при нажатии."
|
487 |
|
488 |
+
#~ msgid "The widget show the list of products added in the compare table."
|
489 |
+
#~ msgstr "Виджет отображает список продуктов, добавленных для сравнения."
|
490 |
|
491 |
+
#~ msgid "YITH Woocommerce Compare Widget"
|
492 |
+
#~ msgstr "Виджет YITH WooCommerce Compare"
|
493 |
|
494 |
+
#~ msgid "Products Compare"
|
495 |
+
#~ msgstr "Сравнение товаров"
|
496 |
|
497 |
+
#~ msgid "Repeat \"Price\" field at the end of the table"
|
498 |
+
#~ msgstr "Повторить поле «Цена» в конце таблицы"
|
499 |
|
500 |
+
#~ msgid "Repeat \"Add to cart\" field at the end of the table"
|
501 |
+
#~ msgstr "Повторить поле «Добавить в корзину» в конце таблицы"
|
502 |
|
503 |
+
#~ msgid "Select a date"
|
504 |
+
#~ msgstr "Выберите дату"
|
505 |
|
506 |
+
#~ msgid "Hours"
|
507 |
+
#~ msgstr "Часы"
|
508 |
|
509 |
+
#~ msgid "Minutes"
|
510 |
+
#~ msgstr "Минуты"
|
511 |
|
512 |
+
#~ msgid "Upload"
|
513 |
+
#~ msgstr "Закачать"
|
514 |
|
515 |
+
#~ msgid "px"
|
516 |
+
#~ msgstr "px"
|
517 |
|
518 |
+
#~ msgid "em"
|
519 |
+
#~ msgstr "em"
|
520 |
|
521 |
+
#~ msgid "pt"
|
522 |
+
#~ msgstr "pt"
|
523 |
|
524 |
+
#~ msgid "rem"
|
525 |
+
#~ msgstr "rem"
|
526 |
|
527 |
+
#~ msgid "Select a font family"
|
528 |
+
#~ msgstr "Выберите шрифт"
|
529 |
|
530 |
+
#~ msgid "Regular"
|
531 |
+
#~ msgstr "Обычный"
|
532 |
|
533 |
+
#~ msgid "Bold"
|
534 |
+
#~ msgstr "Жирный"
|
535 |
|
536 |
+
#~ msgid "Extra bold"
|
537 |
+
#~ msgstr "Экстра жирный"
|
538 |
|
539 |
+
#~ msgid "Italic"
|
540 |
+
#~ msgstr "Наклонный"
|
541 |
|
542 |
+
#~ msgid "Italic bold"
|
543 |
+
#~ msgstr "Наклонный жирный"
|
544 |
|
545 |
+
#~ msgid "Click to preview"
|
546 |
+
#~ msgstr "Нажмите для просмотра"
|
languages/yith-woocommerce-compare.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: YITH Woocommerce Compare\n"
|
5 |
-
"POT-Creation-Date:
|
6 |
"PO-Revision-Date: 2015-07-14 15:10+0100\n"
|
7 |
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
|
8 |
"Language-Team: Your Inspiration Themes <support@yithemes.com>\n"
|
@@ -10,41 +10,41 @@ 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-KeywordsList: __;_e;_x\n"
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
|
19 |
|
20 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
21 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
22 |
msgid "Settings"
|
23 |
msgstr ""
|
24 |
|
25 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
26 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
27 |
msgid "Premium Version"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
31 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
32 |
-
#: ../includes/class.yith-woocompare-frontend.php:
|
33 |
-
#: ../plugin-options/general-options.php:40
|
34 |
#: ../plugin-options/general-options.php:41
|
|
|
35 |
#: ../widgets/class.yith-woocompare-widget.php:51
|
36 |
msgid "Compare"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
40 |
msgid "Plugin Documentation"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
44 |
msgid "YITH WooCommerce Compare Activated"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
48 |
#, php-format
|
49 |
msgid ""
|
50 |
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
|
@@ -53,11 +53,11 @@ msgid ""
|
|
53 |
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
57 |
msgid "YITH WooCommerce Compare Updated"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
61 |
#, php-format
|
62 |
msgid ""
|
63 |
"From now on, you can find all the options of YITH WooCommerce Compare under "
|
@@ -67,29 +67,33 @@ msgid ""
|
|
67 |
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: ../includes/class.yith-woocompare-admin.php:
|
71 |
msgid "Do you want to hard crop the image?"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: ../includes/class.yith-woocompare-frontend.php:
|
75 |
msgid "Added"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: ../includes/class.yith-woocompare-frontend.php:
|
79 |
#: ../templates/compare.php:49
|
80 |
msgid "Product Comparison"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: ../includes/class.yith-woocompare-frontend.php:
|
|
|
|
|
|
|
|
|
84 |
msgid "In stock"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: ../includes/class.yith-woocompare-frontend.php:
|
88 |
msgid "No products to compare"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: ../includes/class.yith-woocompare-frontend.php:
|
92 |
-
#: ../templates/compare.php:
|
93 |
msgid "Remove"
|
94 |
msgstr ""
|
95 |
|
@@ -126,13 +130,13 @@ msgstr ""
|
|
126 |
msgid "Dimensions"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: ../init.php:
|
130 |
msgid ""
|
131 |
"YITH WooCommerce Compare is enabled but not effective. It requires "
|
132 |
"WooCommerce in order to work."
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: ../init.php:
|
136 |
msgid ""
|
137 |
"You can't activate the free version of YITH WooCommerce Compare while you "
|
138 |
"are using the premium one."
|
@@ -147,97 +151,97 @@ msgid "Link or Button"
|
|
147 |
msgstr ""
|
148 |
|
149 |
#: ../plugin-options/general-options.php:25
|
150 |
-
msgid "Choose if you want to use a link or a button for the
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: ../plugin-options/general-options.php:
|
154 |
msgid "Link"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: ../plugin-options/general-options.php:
|
158 |
msgid "Button"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: ../plugin-options/general-options.php:
|
162 |
msgid "Link/Button text"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: ../plugin-options/general-options.php:
|
166 |
msgid "Type the text to use for the button or the link of the compare."
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: ../plugin-options/general-options.php:
|
170 |
msgid "Show button in single product page"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: ../plugin-options/general-options.php:
|
174 |
msgid "Say if you want to show the button in the single product page."
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: ../plugin-options/general-options.php:
|
178 |
msgid "Show button in products list"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: ../plugin-options/general-options.php:
|
182 |
msgid "Say if you want to show the button in the products list."
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: ../plugin-options/general-options.php:
|
186 |
msgid "Open automatically lightbox"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: ../plugin-options/general-options.php:
|
190 |
msgid "Open link after click into \"Compare\" button\"."
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: ../plugin-options/general-options.php:
|
194 |
msgid "Table Settings"
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: ../plugin-options/general-options.php:
|
198 |
msgid "Table title"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: ../plugin-options/general-options.php:
|
202 |
msgid "Type the text to use for the table title."
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: ../plugin-options/general-options.php:88
|
206 |
#: ../plugin-options/general-options.php:89
|
|
|
207 |
msgid "Compare products"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: ../plugin-options/general-options.php:
|
211 |
msgid "Fields to show"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: ../plugin-options/general-options.php:
|
215 |
msgid ""
|
216 |
"Select the fields to show in the comparison table and order them by "
|
217 |
"drag&drop (are included also the woocommerce attributes)"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: ../plugin-options/general-options.php:
|
221 |
msgid "Repeat \"Price\" field"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: ../plugin-options/general-options.php:
|
225 |
msgid "Repeat the \"Price\" field at the end of the table"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: ../plugin-options/general-options.php:
|
229 |
msgid "Repeat \"Add to cart\" field"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: ../plugin-options/general-options.php:
|
233 |
msgid "Repeat the \"Add to cart\" field at the end of the table"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: ../plugin-options/general-options.php:
|
237 |
msgid "Image size"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: ../plugin-options/general-options.php:
|
241 |
msgid "Set the size for the images"
|
242 |
msgstr ""
|
243 |
|
@@ -402,11 +406,11 @@ msgid ""
|
|
402 |
"popup to check its existence. "
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: ../templates/compare.php:
|
406 |
msgid "Close window [X]"
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: ../templates/compare.php:
|
410 |
msgid "No products added in the compare table."
|
411 |
msgstr ""
|
412 |
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: YITH Woocommerce Compare\n"
|
5 |
+
"POT-Creation-Date: 2017-10-24 16:27+0200\n"
|
6 |
"PO-Revision-Date: 2015-07-14 15:10+0100\n"
|
7 |
"Last-Translator: Nicola Mustone <mail@nicolamustone.it>\n"
|
8 |
"Language-Team: Your Inspiration Themes <support@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-KeywordsList: __;_e;_x\n"
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
|
19 |
|
20 |
+
#: ../includes/class.yith-woocompare-admin.php:119
|
21 |
+
#: ../includes/class.yith-woocompare-admin.php:143
|
22 |
msgid "Settings"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: ../includes/class.yith-woocompare-admin.php:121
|
26 |
+
#: ../includes/class.yith-woocompare-admin.php:147
|
27 |
msgid "Premium Version"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: ../includes/class.yith-woocompare-admin.php:153
|
31 |
+
#: ../includes/class.yith-woocompare-admin.php:154
|
32 |
+
#: ../includes/class.yith-woocompare-frontend.php:484
|
|
|
33 |
#: ../plugin-options/general-options.php:41
|
34 |
+
#: ../plugin-options/general-options.php:42
|
35 |
#: ../widgets/class.yith-woocompare-widget.php:51
|
36 |
msgid "Compare"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: ../includes/class.yith-woocompare-admin.php:217
|
40 |
msgid "Plugin Documentation"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: ../includes/class.yith-woocompare-admin.php:237
|
44 |
msgid "YITH WooCommerce Compare Activated"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: ../includes/class.yith-woocompare-admin.php:238
|
48 |
#, php-format
|
49 |
msgid ""
|
50 |
"In the YIT Plugin tab you can find the YITH WooCommerce Compare options. "
|
53 |
"PREMIUM version with many new options, <a href=\"%s\">discover it now</a>."
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: ../includes/class.yith-woocompare-admin.php:249
|
57 |
msgid "YITH WooCommerce Compare Updated"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: ../includes/class.yith-woocompare-admin.php:250
|
61 |
#, php-format
|
62 |
msgid ""
|
63 |
"From now on, you can find all the options of YITH WooCommerce Compare under "
|
67 |
"available options, <a href=\"%s\">discover the PREMIUM version.</a>"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: ../includes/class.yith-woocompare-admin.php:394
|
71 |
msgid "Do you want to hard crop the image?"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: ../includes/class.yith-woocompare-frontend.php:207
|
75 |
msgid "Added"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: ../includes/class.yith-woocompare-frontend.php:208
|
79 |
#: ../templates/compare.php:49
|
80 |
msgid "Product Comparison"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: ../includes/class.yith-woocompare-frontend.php:213
|
84 |
+
msgid "Close"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: ../includes/class.yith-woocompare-frontend.php:368
|
88 |
msgid "In stock"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: ../includes/class.yith-woocompare-frontend.php:675
|
92 |
msgid "No products to compare"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: ../includes/class.yith-woocompare-frontend.php:688
|
96 |
+
#: ../templates/compare.php:114
|
97 |
msgid "Remove"
|
98 |
msgstr ""
|
99 |
|
130 |
msgid "Dimensions"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: ../init.php:42
|
134 |
msgid ""
|
135 |
"YITH WooCommerce Compare is enabled but not effective. It requires "
|
136 |
"WooCommerce in order to work."
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: ../init.php:50
|
140 |
msgid ""
|
141 |
"You can't activate the free version of YITH WooCommerce Compare while you "
|
142 |
"are using the premium one."
|
151 |
msgstr ""
|
152 |
|
153 |
#: ../plugin-options/general-options.php:25
|
154 |
+
msgid "Choose if you want to use a link or a button for the comepare actions."
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: ../plugin-options/general-options.php:32
|
158 |
msgid "Link"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: ../plugin-options/general-options.php:33
|
162 |
msgid "Button"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: ../plugin-options/general-options.php:38
|
166 |
msgid "Link/Button text"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: ../plugin-options/general-options.php:39
|
170 |
msgid "Type the text to use for the button or the link of the compare."
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: ../plugin-options/general-options.php:47
|
174 |
msgid "Show button in single product page"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: ../plugin-options/general-options.php:48
|
178 |
msgid "Say if you want to show the button in the single product page."
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: ../plugin-options/general-options.php:56
|
182 |
msgid "Show button in products list"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: ../plugin-options/general-options.php:57
|
186 |
msgid "Say if you want to show the button in the products list."
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: ../plugin-options/general-options.php:65
|
190 |
msgid "Open automatically lightbox"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: ../plugin-options/general-options.php:66
|
194 |
msgid "Open link after click into \"Compare\" button\"."
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: ../plugin-options/general-options.php:79
|
198 |
msgid "Table Settings"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: ../plugin-options/general-options.php:86
|
202 |
msgid "Table title"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: ../plugin-options/general-options.php:87
|
206 |
msgid "Type the text to use for the table title."
|
207 |
msgstr ""
|
208 |
|
|
|
209 |
#: ../plugin-options/general-options.php:89
|
210 |
+
#: ../plugin-options/general-options.php:90
|
211 |
msgid "Compare products"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: ../plugin-options/general-options.php:95
|
215 |
msgid "Fields to show"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: ../plugin-options/general-options.php:96
|
219 |
msgid ""
|
220 |
"Select the fields to show in the comparison table and order them by "
|
221 |
"drag&drop (are included also the woocommerce attributes)"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: ../plugin-options/general-options.php:104
|
225 |
msgid "Repeat \"Price\" field"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: ../plugin-options/general-options.php:105
|
229 |
msgid "Repeat the \"Price\" field at the end of the table"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: ../plugin-options/general-options.php:113
|
233 |
msgid "Repeat \"Add to cart\" field"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: ../plugin-options/general-options.php:114
|
237 |
msgid "Repeat the \"Add to cart\" field at the end of the table"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: ../plugin-options/general-options.php:122
|
241 |
msgid "Image size"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: ../plugin-options/general-options.php:123
|
245 |
msgid "Set the size for the images"
|
246 |
msgstr ""
|
247 |
|
406 |
"popup to check its existence. "
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: ../templates/compare.php:76
|
410 |
msgid "Close window [X]"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: ../templates/compare.php:103
|
414 |
msgid "No products added in the compare table."
|
415 |
msgstr ""
|
416 |
|
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
@@ -94,9 +94,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
94 |
/* WooCommerce 2.4 Support */
|
95 |
add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
|
96 |
}
|
97 |
-
|
98 |
-
/* add YIT Plugin sidebar */
|
99 |
-
$this->sidebar = YIT_Plugin_Panel_Sidebar::instance( $this );
|
100 |
}
|
101 |
|
102 |
|
@@ -251,10 +248,9 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
251 |
$yit_options = $this->get_main_array_options();
|
252 |
$current_tab = $this->get_current_tab();
|
253 |
$custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
|
254 |
-
$hide_sidebar = $this->hide_sidebar( $yit_options, $current_tab );
|
255 |
|
256 |
if ( $custom_tab_action ) {
|
257 |
-
$this->print_custom_tab( $custom_tab_action
|
258 |
return;
|
259 |
}
|
260 |
else {
|
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 |
*/
|
@@ -97,9 +92,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
97 |
add_action( 'admin_init', array( $this, 'add_fields' ) );
|
98 |
}
|
99 |
|
100 |
-
/* add YIT Plugin sidebar */
|
101 |
-
$this->sidebar = YIT_Plugin_Panel_Sidebar::instance( $this );
|
102 |
-
|
103 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
104 |
}
|
105 |
|
@@ -331,15 +323,14 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
331 |
</h2>
|
332 |
<?php
|
333 |
$custom_tab_action = $this->is_custom_tab( $yit_options, $current_tab );
|
334 |
-
$hide_sidebar = $this->hide_sidebar();
|
335 |
if ( $custom_tab_action ) {
|
336 |
-
$this->print_custom_tab( $custom_tab_action
|
337 |
return;
|
338 |
}
|
339 |
?>
|
340 |
<?php $this->print_video_box(); ?>
|
341 |
<?php
|
342 |
-
$panel_content_class =
|
343 |
?>
|
344 |
<div id="wrap" class="plugin-option yit-admin-panel-container">
|
345 |
<?php $this->message(); ?>
|
@@ -361,13 +352,6 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
361 |
<p> </p>
|
362 |
<?php endif ?>
|
363 |
</div>
|
364 |
-
<?php
|
365 |
-
/**
|
366 |
-
* Add panel Sidebar
|
367 |
-
*/
|
368 |
-
if ( !$hide_sidebar )
|
369 |
-
$this->print_panel_sidebar();
|
370 |
-
?>
|
371 |
</div>
|
372 |
<?php
|
373 |
}
|
@@ -384,71 +368,19 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
384 |
return false;
|
385 |
}
|
386 |
|
387 |
-
/**
|
388 |
-
* Print the panel sidebar
|
389 |
-
*
|
390 |
-
* @return void
|
391 |
-
* @since 1.0
|
392 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
393 |
-
*/
|
394 |
-
public function print_panel_sidebar() {
|
395 |
-
$this->sidebar->print_panel_sidebar();
|
396 |
-
}
|
397 |
-
|
398 |
-
/**
|
399 |
-
* @param $options
|
400 |
-
* @param $current_tab
|
401 |
-
*
|
402 |
-
* @return bool
|
403 |
-
*
|
404 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
405 |
-
*/
|
406 |
-
public function hide_sidebar( $options = '', $current_tab = '' ) {
|
407 |
-
if ( $options === '' )
|
408 |
-
$options = $this->get_main_array_options();
|
409 |
-
if ( $current_tab === '' )
|
410 |
-
$current_tab = $this->get_current_tab();
|
411 |
-
|
412 |
-
$hide = false;
|
413 |
-
|
414 |
-
foreach ( $options[ $current_tab ] as $section => $option ) {
|
415 |
-
if ( isset( $option[ 'hide_sidebar' ] ) ) {
|
416 |
-
$hide = !!$option[ 'hide_sidebar' ];
|
417 |
-
}
|
418 |
-
break;
|
419 |
-
}
|
420 |
-
|
421 |
-
$page = isset( $this->settings[ 'page' ] ) ? $this->settings[ 'page' ] : '';
|
422 |
-
|
423 |
-
return apply_filters( 'yit_panel_hide_sidebar', $hide, $page );
|
424 |
-
}
|
425 |
-
|
426 |
/**
|
427 |
* Fire the action to print the custom tab
|
428 |
*
|
429 |
*
|
430 |
* @param string $action Action to fire
|
431 |
-
* @param bool $hide_sidebar
|
432 |
*
|
433 |
* @return void
|
434 |
* @since 1.0
|
435 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
436 |
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
437 |
*/
|
438 |
-
public function print_custom_tab( $action
|
439 |
-
|
440 |
-
$panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' ) ;
|
441 |
-
echo "<div class='yit-admin-panel-container'>";
|
442 |
-
echo "<div class='$panel_content_class'>";
|
443 |
-
|
444 |
-
do_action( $action );
|
445 |
-
|
446 |
-
echo "</div>";
|
447 |
-
$this->print_panel_sidebar();
|
448 |
-
echo "</div>";
|
449 |
-
} else {
|
450 |
-
do_action( $action );
|
451 |
-
}
|
452 |
}
|
453 |
|
454 |
/**
|
46 |
*/
|
47 |
private $_main_array_options = array();
|
48 |
|
|
|
|
|
|
|
|
|
|
|
49 |
/**
|
50 |
* @var array
|
51 |
*/
|
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');
|
widgets/class.yith-woocompare-widget.php
CHANGED
@@ -48,7 +48,7 @@ if( !class_exists( 'YITH_WOOCOMPARE' ) ) {
|
|
48 |
</ul>
|
49 |
|
50 |
<a href="<?php echo $yith_woocompare->obj->remove_product_url('all') ?>" data-product_id="all" class="clear-all" rel="nofollow"><?php _e( 'Clear all', 'yith-woocommerce-compare' ) ?></a>
|
51 |
-
<a href="<?php echo
|
52 |
|
53 |
<?php echo $after_widget;
|
54 |
}
|
48 |
</ul>
|
49 |
|
50 |
<a href="<?php echo $yith_woocompare->obj->remove_product_url('all') ?>" data-product_id="all" class="clear-all" rel="nofollow"><?php _e( 'Clear all', 'yith-woocommerce-compare' ) ?></a>
|
51 |
+
<a href="<?php echo $yith_woocompare->obj->view_table_url() ?>" class="compare added button" rel="nofollow"><?php _e( 'Compare', 'yith-woocommerce-compare' ) ?></a>
|
52 |
|
53 |
<?php echo $after_widget;
|
54 |
}
|