YITH WooCommerce Ajax Search - Version 1.3.9

Version Description

  • Released: Dec 15, 2015 =
  • Added: Support to Wordpress 4.4
  • Updated: Plugin Core Framework
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Ajax Search
Version 1.3.9
Comparing to
See all releases

Code changes from version 1.3.8 to 1.3.9

README.txt CHANGED
@@ -3,8 +3,8 @@
3
Contributors: yithemes
4
Tags: woocommerce search by sku, woocommerce search results, woocommerce search shortcode, woocommerce search page, woocommerce search form, woocommerce search filter, woocommerce search products, woocommerce search content, woocommerce search autocomplete, woocommerce advanced search, woocommerce search category, woocommerce search product attributes, woocommerce search by tag, woocommerce search by brand, woocommerce predictive, woocommerce live search, woocommerce single product search, woocommerce site search, woocommerce search tex, tajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
5
Requires at least: 3.5.1
6
- Tested up to: 4.2
7
- Stable tag: 1.3.8
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -138,172 +138,176 @@ If you have created your own language pack for YITH WooCommerce Ajax Search, or
138
2. YITH WooCommerce Ajax Search in operation displaying WooCommerce search results
139
140
== Changelog ==
141
- = 1.3.8 =
142
* Added: Add Plugin-Fw support for Essential Kit #1
143
144
- = 1.3.7 =
145
* Updated: Changed Text Domain from 'yit' to 'yith-woocommerce-ajax-search'
146
* Updated: Plugin Core Framework
147
148
- = 1.3.6 =
149
* Added: Support to WooCommerce 2.4.2
150
* Updated: Plugin Core Framework
151
152
- = 1.3.5 =
153
* Added: Support more search elements on a page
154
155
- = 1.3.4 =
156
* Fixed: Support to WPML
157
158
- = 1.3.3 =
159
* Fixed: Called to WP_Widget construct
160
* Fixed: Support to WPML
161
162
- = 1.3.2 =
163
164
* Fixed: Backward compatibility with Autocomplete function
165
166
- = 1.3.1 =
167
168
* Updated: Renamed Autocomplete function with YithAutocomplete
169
170
- = 1.3.0 =
171
172
* Added: Wordpress 4.2 compatibility
173
* Fixed: Shorcode output
174
- * Fixed: WP security issue
175
176
- = 1.2.7 =
177
178
* Updated: Plugin Core Framework
179
180
- = 1.2.6 =
181
182
* Updated: Plugin Core Framework
183
- * Fixed: Loader image not hidden after search
184
* Fixed: Disabled submit when search string is empty
185
* Fixed: Support to WPML in query string
186
187
- = 1.2.5 =
188
189
* Fixed: Plugin installation bug
190
191
- = 1.2.4 =
192
193
* Fixed: Minor bugs
194
195
- = 1.2.3 =
196
197
* Added: Support to Wordpress 4.1.1
198
* Fixed: Minor bugs
199
200
- = 1.2.2 =
201
202
* Added: Support to WooCommerce 2.3.x
203
* Fixed: Minor bugs
204
205
- = 1.2.1 =
206
207
* Updated: Plugin Core Framework
208
209
- = 1.2 =
210
211
* Updated: Plugin Core Framework
212
213
- = 1.1.3 =
214
215
* Fixed: Javascript code in external file
216
217
- = 1.1.2 =
218
219
* Fixed: Prevent undefined title index if the widget is called by the the_widget func
220
* Updated: Autocomplete js library
221
* Updated: Plugin Core Framework
222
223
- = 1.1.1 =
224
225
* Fixed: Settings link doesn't work on WooCommerce 2.1.1
226
227
- = 1.1.0 =
228
229
* Added: Support to WooCommerce 2.1.x
230
231
- = 1.0.0 =
232
233
* Initial release
234
235
-
236
== Upgrade notice ==
237
238
- = 1.3.2 =
239
240
* Fixed: Backward compatibility with Autocomplete function
241
242
- = 1.3.1 =
243
244
* Updated: Renamed Autocomplete function with YithAutocomplete
245
246
- = 1.3.0 =
247
248
* Added: Wordpress 4.2 compatibility
249
* Fixed: Shorcode output
250
* Fixed: Wp security issue
251
252
- = 1.2.7 =
253
254
* Updated: Plugin Core Framework
255
256
- = 1.2.6 =
257
258
* Updated: Plugin Core Framework
259
* Fixed: Loader image not hided after search
260
* Fixed: Disabled submit when search string is empty
261
* Fixed: Support to WPML in query string
262
263
- = 1.2.5 =
264
265
* Fixed: Plugin installation bug
266
267
- = 1.2.4 =
268
269
* Fixed: Minor bugs
270
271
- = 1.2.3 =
272
273
* Added: Support to Wordpress 4.1.1
274
* Fixed: Minor bugs
275
276
- = 1.2.2 =
277
278
* Added: Support to WooCommerce 2.3.x
279
* Fixed: Minor bugs
280
281
- = 1.2.1 =
282
283
* Updated: Plugin Core Framework
284
285
- = 1.2 =
286
287
* Updated: Plugin Core Framework
288
289
- = 1.1.3 =
290
291
* Fixed: Javascript code in external file
292
293
- = 1.1.2 =
294
295
* Fixed: Prevent undefined title index if the widget is called by the the_widget func
296
* Updated: Autocomplete js library
297
* Updated: Plugin Core Framework
298
299
- = 1.1.1 =
300
301
* Fixed: Settings link doesn't work on WooCommerce 2.1.1
302
303
- = 1.1.0 =
304
305
* Added: Support to WooCommerce 2.1.x
306
307
- = 1.0.0 =
308
309
- * Initial release
3
Contributors: yithemes
4
Tags: woocommerce search by sku, woocommerce search results, woocommerce search shortcode, woocommerce search page, woocommerce search form, woocommerce search filter, woocommerce search products, woocommerce search content, woocommerce search autocomplete, woocommerce advanced search, woocommerce search category, woocommerce search product attributes, woocommerce search by tag, woocommerce search by brand, woocommerce predictive, woocommerce live search, woocommerce single product search, woocommerce site search, woocommerce search tex, tajax, search, woocommerce, products, themes, yit, e-commerce, shop, yith, ajax search, instant search, premium, yithemes, autocomplete, autosuggest, better search, category search, custom search, highlight terms, Live Search, Predictive Search, product search, relevant search, search highlight, search product, suggest, typeahead, WooCommerce Plugin, woocommerce product search, woocommerce search, wordpress ecommerce
5
Requires at least: 3.5.1
6
+ Tested up to: 4.5.1
7
+ Stable tag: 1.3.9
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
138
2. YITH WooCommerce Ajax Search in operation displaying WooCommerce search results
139
140
== Changelog ==
141
+
142
+ = 1.3.9 - Released: Dec 15, 2015 =
143
+ * Added: Support to Wordpress 4.4
144
+ * Updated: Plugin Core Framework
145
+
146
+ = 1.3.8 - Released: Oct 30, 2015 =
147
* Added: Add Plugin-Fw support for Essential Kit #1
148
149
+ = 1.3.7 - Released: Sep 18, 2015 =
150
* Updated: Changed Text Domain from 'yit' to 'yith-woocommerce-ajax-search'
151
* Updated: Plugin Core Framework
152
153
+ = 1.3.6 - Released: Aug 12, 2015 =
154
* Added: Support to WooCommerce 2.4.2
155
* Updated: Plugin Core Framework
156
157
+ = 1.3.5 - Released: Aug 07, 2015 =
158
* Added: Support more search elements on a page
159
160
+ = 1.3.4 - Released: Jul 17, 2015 =
161
* Fixed: Support to WPML
162
163
+ = 1.3.3 - Released: Jul 07, 2015 =
164
* Fixed: Called to WP_Widget construct
165
* Fixed: Support to WPML
166
167
+ = 1.3.2 - Released: Jun 15, 2015 =
168
169
* Fixed: Backward compatibility with Autocomplete function
170
171
+ = 1.3.1 - Released: Jun 10, 2015 =
172
173
* Updated: Renamed Autocomplete function with YithAutocomplete
174
175
+ = 1.3.0 - Released: Apr 24, 2015 =
176
177
* Added: Wordpress 4.2 compatibility
178
* Fixed: Shorcode output
179
+ * Fixed: Wp security issue
180
181
+ = 1.2.7 - Released: Apr 07, 2015 =
182
183
* Updated: Plugin Core Framework
184
185
+ = 1.2.6 - Released: Mar 30, 2015 =
186
187
* Updated: Plugin Core Framework
188
+ * Fixed: Loader image not hided after search
189
* Fixed: Disabled submit when search string is empty
190
* Fixed: Support to WPML in query string
191
192
+ = 1.2.5 - Released: Mar 12, 2015 =
193
194
* Fixed: Plugin installation bug
195
196
+ = 1.2.4 - Released: Mar 04, 2015 =
197
198
* Fixed: Minor bugs
199
200
+ = 1.2.3 - Released: Mar 02, 2015 =
201
202
* Added: Support to Wordpress 4.1.1
203
* Fixed: Minor bugs
204
205
+ = 1.2.2 - Released: Feb 12, 2015 =
206
207
* Added: Support to WooCommerce 2.3.x
208
* Fixed: Minor bugs
209
210
+ = 1.2.1 - Released: Feb 06, 2015 =
211
212
* Updated: Plugin Core Framework
213
214
+ = 1.2.0 - Released: Jan 29, 2015 =
215
216
* Updated: Plugin Core Framework
217
218
+ = 1.1.3 - Released: Oct 16, 2014 =
219
220
* Fixed: Javascript code in external file
221
222
+ = 1.1.2 - Released: Sep 14, 2014 =
223
224
* Fixed: Prevent undefined title index if the widget is called by the the_widget func
225
* Updated: Autocomplete js library
226
* Updated: Plugin Core Framework
227
228
+ = 1.1.1 - Released: Feb 14, 2014 =
229
230
* Fixed: Settings link doesn't work on WooCommerce 2.1.1
231
232
+ = 1.1.0 - Released: Feb 12, 2013 =
233
234
* Added: Support to WooCommerce 2.1.x
235
236
+ = 1.0.0 - Released: Aug 01, 2013 =
237
238
* Initial release
239
240
== Upgrade notice ==
241
242
+ = 1.3.2 - Released: Jun 15, 2015 =
243
244
* Fixed: Backward compatibility with Autocomplete function
245
246
+ = 1.3.1 - Released: Jun 10, 2015 =
247
248
* Updated: Renamed Autocomplete function with YithAutocomplete
249
250
+ = 1.3.0 - Released: Apr 24, 2015 =
251
252
* Added: Wordpress 4.2 compatibility
253
* Fixed: Shorcode output
254
* Fixed: Wp security issue
255
256
+ = 1.2.7 - Released: Apr 07, 2015 =
257
258
* Updated: Plugin Core Framework
259
260
+ = 1.2.6 - Released: Mar 30, 2015 =
261
262
* Updated: Plugin Core Framework
263
* Fixed: Loader image not hided after search
264
* Fixed: Disabled submit when search string is empty
265
* Fixed: Support to WPML in query string
266
267
+ = 1.2.5 - Released: Mar 12, 2015 =
268
269
* Fixed: Plugin installation bug
270
271
+ = 1.2.4 - Released: Mar 04, 2015 =
272
273
* Fixed: Minor bugs
274
275
+ = 1.2.3 - Released: Mar 02, 2015 =
276
277
* Added: Support to Wordpress 4.1.1
278
* Fixed: Minor bugs
279
280
+ = 1.2.2 - Released: Feb 12, 2015 =
281
282
* Added: Support to WooCommerce 2.3.x
283
* Fixed: Minor bugs
284
285
+ = 1.2.1 - Released: Feb 06, 2015 =
286
287
* Updated: Plugin Core Framework
288
289
+ = 1.2.0 - Released: Jan 29, 2015 =
290
291
* Updated: Plugin Core Framework
292
293
+ = 1.1.3 - Released: Oct 16, 2014 =
294
295
* Fixed: Javascript code in external file
296
297
+ = 1.1.2 - Released: Sep 14, 2014 =
298
299
* Fixed: Prevent undefined title index if the widget is called by the the_widget func
300
* Updated: Autocomplete js library
301
* Updated: Plugin Core Framework
302
303
+ = 1.1.1 - Released: Feb 14, 2014 =
304
305
* Fixed: Settings link doesn't work on WooCommerce 2.1.1
306
307
+ = 1.1.0 - Released: Feb 12, 2013 =
308
309
* Added: Support to WooCommerce 2.1.x
310
311
+ = 1.0.0 - Released: Aug 01, 2013 =
312
313
+ * Initial release
init.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: YITH WooCommerce Ajax Search
4
* Plugin URI: http://yithemes.com/
5
* Description: YITH WooCommerce Ajax Search allows your users to search products in real time.
6
- * Version: 1.3.8
7
* Author: Yithemes
8
* Author URI: http://yithemes.com/
9
* Text Domain: yith-woocommerce-ajax-search
@@ -68,7 +68,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
68
if ( defined( 'YITH_WCAS_VERSION' ) ){
69
return;
70
}else{
71
- define( 'YITH_WCAS_VERSION', '1.3.8' );
72
}
73
74
if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
3
* Plugin Name: YITH WooCommerce Ajax Search
4
* Plugin URI: http://yithemes.com/
5
* Description: YITH WooCommerce Ajax Search allows your users to search products in real time.
6
+ * Version: 1.3.9
7
* Author: Yithemes
8
* Author URI: http://yithemes.com/
9
* Text Domain: yith-woocommerce-ajax-search
68
if ( defined( 'YITH_WCAS_VERSION' ) ){
69
return;
70
}else{
71
+ define( 'YITH_WCAS_VERSION', '1.3.9' );
72
}
73
74
if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
plugin-fw/assets/css/metaboxes.css CHANGED
@@ -237,6 +237,27 @@
237
.chosen .select_wrapper .chosen-container .chosen-drop .chosen-search input{
238
width: 100%!important;
239
}
240
241
/* typography */
242
.the-metabox.typography .select_wrapper.font-family { width:200px; }
237
.chosen .select_wrapper .chosen-container .chosen-drop .chosen-search input{
238
width: 100%!important;
239
}
240
+ .select_wrapper span {
241
+ height: 26px;
242
+ line-height: 26px;
243
+ padding-left: 6px;
244
+ position: absolute;
245
+ z-index: 2;
246
+ overflow: hidden;
247
+ }
248
+
249
+ .the-metabox .select_wrapper select {
250
+ cursor: pointer;
251
+ height: 28px;
252
+ margin: 0;
253
+ opacity: 0;
254
+ padding: 0;
255
+ position: relative;
256
+ width: inherit;
257
+ z-index: 4;
258
+ background-color: #FAFAFA;
259
+ }
260
+
261
262
/* typography */
263
.the-metabox.typography .select_wrapper.font-family { width:200px; }
plugin-fw/assets/css/yit-plugin-panel.css CHANGED
@@ -631,6 +631,10 @@
631
width: 6em;
632
}
633
634
/* === YIT FRAMEWORK === */
635
.plugin-card .plugin-icon img {
636
max-width: 100%;
631
width: 6em;
632
}
633
634
+ #wpwrap h2.nav-tab-wrapper {
635
+ border-bottom: 1px solid #ccc;
636
+ }
637
+
638
/* === YIT FRAMEWORK === */
639
.plugin-card .plugin-icon img {
640
max-width: 100%;
plugin-fw/assets/js/yit-plugin-panel.js CHANGED
@@ -177,6 +177,16 @@
177
//Open the uploader dialog
178
custom_uploader.open();
179
});
180
}
181
182
$('.plugin-option .add_media').on('click', function () {
177
//Open the uploader dialog
178
custom_uploader.open();
179
});
180
+
181
+ $( document).on( 'click', '.plugin-option .upload_button_reset', function(e){
182
+ var t = $(this),
183
+ id = t.attr('id'),
184
+ input_id = t.attr('id').replace(/-button_reset#x2F;, ''),
185
+ default_value = $('#' + id).data('default');
186
+
187
+ $("#" + input_id).val( default_value );
188
+ $('.plugin-option .upload_img_url').trigger('change');
189
+ } );
190
}
191
192
$('.plugin-option .add_media').on('click', function () {
plugin-fw/assets/js/yit-plugin-panel.min.js CHANGED
@@ -3,8 +3,8 @@
3
function(){var b=a(this).prev("input");b.prop("checked")?b.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):b.prop("checked",!0).attr("value","yes").addClass("onoffchecked");b.change()});a(".plugin-option .slider_container .ui-slider-horizontal").each(function(){var b=a(this).data("val"),c=a(this).data("min"),d=a(this).data("max"),e=a(this).data("step"),f=a(this).data("labels");a(this).slider({value:b,min:c,max:d,range:"min",step:e,slide:function(b,c){a(this).find("input").val(c.value);
4
a(this).siblings(".feedback").find("strong").text(c.value+f)}})});"undefined"!==typeof wp&&"undefined"!==typeof wp.media&&(a(".plugin-option .upload_img_url").change(function(){var b=a(this).val(),c=a(this).parents().siblings(".upload_img_preview");/(http|ftp|https):\/\/[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)/.test(b)?c.html('<img src="'+b+'" style="max-width:600px; max-height:300px;" />'):c.html("")}).trigger("change"),a(document).on("click",".plugin-option .upload_button",function(b){b.preventDefault();
5
var c,d=a(this).attr("id").replace(/-button#x2F;,"");c||(b=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})],c=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:b}),c.on("select",function(){var b=c.state().get("selection").first().toJSON();a("#"+d).val(b.url);a("#"+d+"-yith-attachment-id")&&a("#"+d+"-yith-attachment-id").val(b.id);a(".plugin-option .upload_img_url").trigger("change")}));
6
- c.open()}));a(".plugin-option .add_media").on("click",function(){});a("[data-field]").each(function(){var b=a(this),c="#"+b.data("field"),d="#"+b.data("dep"),e=b.data("value");a(d).on("change",function(){var b=d,g=e.toString(),h=!0;if("string"==typeof b){":radio"==b.substr(0,6)&&(b+=":checked");for(var g=g.split(","),k=0;k<g.length;k++)if(a(b).val()!=g[k])h=!1;else{h=!0;break}}h?a(c+"-container").closest("tr").show():a(c+"-container").closest("tr").hide()}).change()});a(".rm_connectedlist").each(function(){var b=
7
- a(this).find("ul"),c=a(this).find(":hidden");b.sortable({connectWith:b,update:function(d,e){var f={};b.each(function(){var b={};a(this).children().each(function(){b[a(this).data("option")]=a(this).text()});f[a(this).data("list")]=b});c.val(JSON.stringify(f).replace(/[\\"']/g,"\\amp;").replace(/\u0000/g,"\\0"))}}).disableSelection()});a(document).ready(function(){a(".yith-video-link").click(function(b){b.preventDefault();b=a(this).data("video-id");a("."+b).dialog({dialogClass:"wp-dialog yit-dialog yit-video-dialog",
8
- modal:!0,closeOnEscape:!0,width:"auto",resizable:!1,draggable:!1,create:function(b,d){a(this).css("maxWidth","853px")},open:function(b,d){a(".ui-widget-overlay").bind("click",function(){a(this).siblings(".ui-dialog").find(".ui-dialog-content").dialog("close")})}});a(".ui-dialog :button").blur()})});a(document).ready(function(){a(".codemirror").each(function(b,c){var d=CodeMirror.fromTextArea(c,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});a(c).data("codemirrorInstance",d)})});a(document).ready(function(){a(".google-analytic-generate").click(function(){var b=
9
- a("#"+a(this).data("textarea")).data("codemirrorInstance"),c=a("#"+a(this).data("input")).val(),d=a(this).data("basename"),e;e="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\nm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n";e+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n";e+="ga('create', '"+c+"', '"+d+"');\n";e+="ga('send', 'pageview');\n";
10
- b.replaceRange(e,b.getCursor("start"),b.getCursor("end"))})})})(jQuery);
3
function(){var b=a(this).prev("input");b.prop("checked")?b.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):b.prop("checked",!0).attr("value","yes").addClass("onoffchecked");b.change()});a(".plugin-option .slider_container .ui-slider-horizontal").each(function(){var b=a(this).data("val"),c=a(this).data("min"),d=a(this).data("max"),e=a(this).data("step"),f=a(this).data("labels");a(this).slider({value:b,min:c,max:d,range:"min",step:e,slide:function(b,c){a(this).find("input").val(c.value);
4
a(this).siblings(".feedback").find("strong").text(c.value+f)}})});"undefined"!==typeof wp&&"undefined"!==typeof wp.media&&(a(".plugin-option .upload_img_url").change(function(){var b=a(this).val(),c=a(this).parents().siblings(".upload_img_preview");/(http|ftp|https):\/\/[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)/.test(b)?c.html('<img src="'+b+'" style="max-width:600px; max-height:300px;" />'):c.html("")}).trigger("change"),a(document).on("click",".plugin-option .upload_button",function(b){b.preventDefault();
5
var c,d=a(this).attr("id").replace(/-button#x2F;,"");c||(b=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})],c=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:b}),c.on("select",function(){var b=c.state().get("selection").first().toJSON();a("#"+d).val(b.url);a("#"+d+"-yith-attachment-id")&&a("#"+d+"-yith-attachment-id").val(b.id);a(".plugin-option .upload_img_url").trigger("change")}));
6
+ c.open()}),a(document).on("click",".plugin-option .upload_button_reset",function(b){var c=a(this);b=c.attr("id");c=c.attr("id").replace(/-button_reset#x2F;,"");b=a("#"+b).data("default");a("#"+c).val(b);a(".plugin-option .upload_img_url").trigger("change")}));a(".plugin-option .add_media").on("click",function(){});a("[data-field]").each(function(){var b=a(this),c="#"+b.data("field"),d="#"+b.data("dep"),e=b.data("value");a(d).on("change",function(){var b=d,g=e.toString(),h=!0;if("string"==typeof b){":radio"==
7
+ b.substr(0,6)&&(b+=":checked");for(var g=g.split(","),k=0;k<g.length;k++)if(a(b).val()!=g[k])h=!1;else{h=!0;break}}h?a(c+"-container").closest("tr").show():a(c+"-container").closest("tr").hide()}).change()});a(".rm_connectedlist").each(function(){var b=a(this).find("ul"),c=a(this).find(":hidden");b.sortable({connectWith:b,update:function(d,e){var f={};b.each(function(){var b={};a(this).children().each(function(){b[a(this).data("option")]=a(this).text()});f[a(this).data("list")]=b});c.val(JSON.stringify(f).replace(/[\\"']/g,
8
+ "\\amp;").replace(/\u0000/g,"\\0"))}}).disableSelection()});a(document).ready(function(){a(".yith-video-link").click(function(b){b.preventDefault();b=a(this).data("video-id");a("."+b).dialog({dialogClass:"wp-dialog yit-dialog yit-video-dialog",modal:!0,closeOnEscape:!0,width:"auto",resizable:!1,draggable:!1,create:function(b,d){a(this).css("maxWidth","853px")},open:function(b,d){a(".ui-widget-overlay").bind("click",function(){a(this).siblings(".ui-dialog").find(".ui-dialog-content").dialog("close")})}});
9
+ a(".ui-dialog :button").blur()})});a(document).ready(function(){a(".codemirror").each(function(b,c){var d=CodeMirror.fromTextArea(c,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});a(c).data("codemirrorInstance",d)})});a(document).ready(function(){a(".google-analytic-generate").click(function(){var b=a("#"+a(this).data("textarea")).data("codemirrorInstance"),c=a("#"+a(this).data("input")).val(),d=a(this).data("basename"),e;e="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\nm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n";
10
+ e+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n";e+="ga('create', '"+c+"', '"+d+"');\n";e+="ga('send', 'pageview');\n";b.replaceRange(e,b.getCursor("start"),b.getCursor("end"))})})})(jQuery);
plugin-fw/init.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/**
3
* Framework Name: YIT Plugin Framework
4
- * Version: 2.1
5
* Author: Yithemes
6
* Text Domain: yith-plugin-fw
7
* Domain Path: /languages/
@@ -20,20 +20,20 @@
20
*/
21
22
23
- if ( ! defined( 'ABSPATH' ) ) {
24
exit;
25
} // Exit if accessed directly
26
27
- if ( ! function_exists( 'yit_maybe_plugin_fw_loader' ) ) {
28
/**
29
* YITH WooCommerce Ajax Navigation
30
*
31
* @since 1.0.0
32
*/
33
- function yit_maybe_plugin_fw_loader( $plugin_path ) {
34
global $plugin_fw_data;
35
36
- $default_headers = array(
37
'Name' => 'Framework Name',
38
'Version' => 'Version',
39
'Author' => 'Author',
@@ -41,19 +41,17 @@ if ( ! function_exists( 'yit_maybe_plugin_fw_loader' ) ) {
41
'DomainPath' => 'Domain Path',
42
);
43
44
- $framework_data = get_file_data( trailingslashit( $plugin_path ) .'plugin-fw/init.php', $default_headers );
45
- $plugin_fw_main_file = trailingslashit( $plugin_path ) . 'plugin-fw/yit-plugin.php';
46
47
- if( ! empty( $plugin_fw_data ) ){
48
- foreach( $plugin_fw_data as $version => $path ){
49
- if( version_compare( $version, $framework_data['Version'], '<' ) ){
50
- $plugin_fw_data = array( $framework_data['Version'] => $plugin_fw_main_file );
51
}
52
}
53
- }
54
-
55
- else {
56
- $plugin_fw_data = array( $framework_data['Version'] => $plugin_fw_main_file );
57
}
58
}
59
}
1
<?php
2
/**
3
* Framework Name: YIT Plugin Framework
4
+ * Version: 2.9.5
5
* Author: Yithemes
6
* Text Domain: yith-plugin-fw
7
* Domain Path: /languages/
20
*/
21
22
23
+ if ( ! defined ( 'ABSPATH' ) ) {
24
exit;
25
} // Exit if accessed directly
26
27
+ if ( ! function_exists ( 'yit_maybe_plugin_fw_loader' ) ) {
28
/**
29
* YITH WooCommerce Ajax Navigation
30
*
31
* @since 1.0.0
32
*/
33
+ function yit_maybe_plugin_fw_loader ( $plugin_path ) {
34
global $plugin_fw_data;
35
36
+ $default_headers = array (
37
'Name' => 'Framework Name',
38
'Version' => 'Version',
39
'Author' => 'Author',
41
'DomainPath' => 'Domain Path',
42
);
43
44
+ $framework_data = get_file_data ( trailingslashit ( $plugin_path ) . 'plugin-fw/init.php', $default_headers );
45
+ $plugin_fw_main_file = trailingslashit ( $plugin_path ) . 'plugin-fw/yit-plugin.php';
46
47
+ if ( ! empty( $plugin_fw_data ) ) {
48
+ foreach ( $plugin_fw_data as $version => $path ) {
49
+ if ( version_compare ( $version, $framework_data[ 'Version' ], '<' ) ) {
50
+ $plugin_fw_data = array ( $framework_data[ 'Version' ] => $plugin_fw_main_file );
51
}
52
}
53
+ } else {
54
+ $plugin_fw_data = array ( $framework_data[ 'Version' ] => $plugin_fw_main_file );
55
}
56
}
57
}
plugin-fw/languages/yith-plugin-fw-it_IT.mo CHANGED
Binary file
plugin-fw/languages/yith-plugin-fw-it_IT.po CHANGED
@@ -4,15 +4,15 @@ msgid ""
4
msgstr ""
5
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2015-05-11 17:13+0100\n"
8
- "PO-Revision-Date: 2015-07-24 16:13+0100\n"
9
"Last-Translator: \n"
10
- "Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
11
- "Language: en\n"
12
"MIME-Version: 1.0\n"
13
- "Content-Type: text/plain; charset=utf-8\n"
14
"Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.8\n"
16
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
"esc_html_x:1,2c\n"
@@ -136,8 +136,9 @@ msgid "Type"
136
msgstr "Tipologia"
137
138
#: lib/yit-cpt-unlimited.php:1052
139
- msgid "Layout for this "
140
- msgstr "Layout per questo"
141
142
#: lib/yit-cpt-unlimited.php:1058
143
msgid "Rewrite"
@@ -220,10 +221,10 @@ msgid "Add %s from images"
220
msgstr "Aggiungi %s dalla immagini"
221
222
#: lib/yit-cpt-unlimited.php:1633
223
- msgid "Add with multiupload"
224
- msgstr "Aggiungi con caricamento multiplo"
225
226
- #: lib/yit-plugin-panel-wc.php:295
227
msgid "The changes you have made will be lost if you leave this page."
228
msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
229
@@ -231,71 +232,71 @@ msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
231
msgid "Plugin Settings"
232
msgstr "Impostazioni plugin"
233
234
- #: lib/yit-plugin-panel.php:95 lib/yit-plugin-subpanel.php:101
235
msgid "YIT Plugins"
236
msgstr "YIT Plugins"
237
238
- #: lib/yit-plugin-panel.php:292 lib/yit-plugin-subpanel.php:142
239
#: templates/panel/woocommerce/woocommerce-form.php:5
240
msgid "Save Changes"
241
msgstr "Salva modifiche"
242
243
- #: lib/yit-plugin-panel.php:295 templates/panel/woocommerce/woocommerce-form.php:8
244
msgid "If you continue with this action, you will reset all options in this page."
245
msgstr ""
246
"Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
247
"reimpostate."
248
249
- #: lib/yit-plugin-panel.php:297 lib/yit-plugin-subpanel.php:147
250
- msgid "Reset to Default"
251
- msgstr "Ripristina impostazioni iniziali"
252
253
- #: lib/yit-plugin-panel.php:297 lib/yit-plugin-subpanel.php:147
254
- #: templates/panel/woocommerce/woocommerce-form.php:10
255
msgid "Are you sure?"
256
msgstr "Sei sicuro?"
257
258
- #: lib/yit-plugin-panel.php:431
259
msgid "The element you have entered already exists. Please, enter another name."
260
msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
261
262
- #: lib/yit-plugin-panel.php:432
263
msgid "Settings saved"
264
msgstr "Impostazioni salvate"
265
266
- #: lib/yit-plugin-panel.php:433
267
msgid "Settings reset"
268
msgstr "Impostazioni azzerate"
269
270
- #: lib/yit-plugin-panel.php:434
271
msgid "Element deleted correctly."
272
msgstr "Elemento rimosso correttamente."
273
274
- #: lib/yit-plugin-panel.php:435 lib/yit-plugin-panel.php:436
275
msgid "Element updated correctly."
276
msgstr "Elemento aggiornato correttamente."
277
278
- #: lib/yit-plugin-panel.php:437
279
msgid "Database imported correctly."
280
msgstr "Database importato correttamente."
281
282
- #: lib/yit-plugin-panel.php:438
283
msgid "An error has occurred during import. Please try again."
284
msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
285
286
- #: lib/yit-plugin-panel.php:439
287
msgid "The added file is not valid."
288
msgstr "Il file aggiunto non è valido."
289
290
- #: lib/yit-plugin-panel.php:440
291
msgid "Sorry, import is disabled."
292
msgstr "Ci dispiace, l'importazione è disabilitata."
293
294
- #: lib/yit-plugin-panel.php:441
295
msgid "Sorting successful."
296
msgstr "Ordinamento effettuato con successo."
297
298
- #: lib/yit-plugin-subpanel.php:145
299
msgid ""
300
"If you continue with this action, you will reset all the options in this page."
301
msgstr ""
@@ -367,19 +368,19 @@ msgstr ""
367
msgid "Update now."
368
msgstr "Aggiorna adesso."
369
370
- #: lib/yit-upgrade.php:230
371
msgid "Yithemes Repository"
372
msgstr "Repository YIThemes"
373
374
- #: lib/yit-upgrade.php:264
375
msgid "Invalid URL Provided."
376
msgstr "L'URL inserito non è valido."
377
378
- #: lib/yit-upgrade.php:277
379
msgid "Could not create Temporary file."
380
msgstr "Non è stato possibile creare il file temporaneo."
381
382
- #: lib/yit-upgrade.php:419
383
#, php-format
384
msgid ""
385
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
@@ -388,7 +389,7 @@ msgstr ""
388
"È disponibile una nuova versione di %1$s. <a href=\"%2$s\" class=\"thickbox yit-"
389
"changelog-button\" title=\"%3$s\">Visualizza i dettagli della versione %4$s</a>."
390
391
- #: lib/yit-upgrade.php:421
392
#, php-format
393
msgid ""
394
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
@@ -401,21 +402,16 @@ msgstr ""
401
"<em>Per poter usufruire degli aggiornamenti automatici è necessario attivare il "
402
"plugin su un solo sito.</em>"
403
404
- #: lib/yit-upgrade.php:423
405
#, php-format
406
msgid ""
407
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
408
"changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>Automatic "
409
- "update is unavailable for this plugin, please <a href=\"%5$s\" title=\"Licence "
410
"activation\">activate</a> your copy of %6s.</em>"
411
msgstr ""
412
- "È disponibile una nuova versioni di %1$s. <a href=\"%2$s\" class=\"thickbox yit-"
413
- "changelog-button\" title=\"%3$s\">Visualizza i dettagli della versione %4$s</a>. "
414
- "<em>Gli aggiornamenti automatici non sono disponibili per questo plugi, per "
415
- "favore, <a href=\"%5$s\" title=\"Licence activation\">attiva</a> la tua copia di "
416
- "%6s.</em>"
417
418
- #: lib/yit-upgrade.php:425
419
#, php-format
420
msgid ""
421
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
@@ -426,83 +422,111 @@ msgstr ""
426
"changelog-button\" title=\"%3$s\">Visualizza i dettagli della versione %4$s</a> "
427
"oppure <a href=\"%5$s\">aggiorna adesso</a>."
428
429
- #: lib/yit-upgrade.php:498
430
msgid "You can't update the plugins for this site."
431
msgstr "Non è possibile aggiornare i plugin per questo sito."
432
433
- #: lib/yit-upgrade.php:502
434
msgid "You do not have sufficient permissions to update the plugins for this site."
435
msgstr ""
436
"Non sei in possesso delle autorizzazioni necessarie per aggiornare i plugin in "
437
"questo sito."
438
439
- #: lib/yit-upgrade.php:509
440
msgid "Update Plugin"
441
msgstr "Aggiorna plugin"
442
443
- #: licence/lib/yit-licence.php:161
444
#, php-format
445
msgctxt "%s = field name"
446
msgid "%s field cannot be empty"
447
msgstr "Il campo %s non può essere vuoto"
448
449
- #: licence/lib/yit-licence.php:162
450
#, php-format
451
msgid "%s and %s fields cannot be empty"
452
msgstr "I campi %s e %s non possono essere vuoti"
453
454
- #: licence/lib/yit-licence.php:163
455
msgid "Unable to contact the remote server, please try again later. Thanks!"
456
msgstr "Impossibile contattare il server remoto, prova più tardi. Grazie!"
457
458
- #: licence/lib/yit-licence.php:548
459
msgid "Invalid Request"
460
msgstr "Richiesta non valida"
461
462
- #: licence/lib/yit-licence.php:549
463
- msgid "Invalid licence key"
464
- msgstr "Chiave di licenza non valida"
465
466
- #: licence/lib/yit-licence.php:550
467
msgid "Software has been deactivated"
468
msgstr "Il software è stato disattivato"
469
470
- #: licence/lib/yit-licence.php:551
471
msgid "Maximum number of activations exceeded"
472
msgstr "Hai raggiunto il numero massimo di attivazioni"
473
474
- #: licence/lib/yit-licence.php:552
475
msgid "Invalid instance ID"
476
msgstr "Istanza ID non valida"
477
478
- #: licence/lib/yit-licence.php:553
479
msgid "Invalid security key"
480
msgstr "Chiave di sicurezza non valida"
481
482
- #: licence/lib/yit-licence.php:554
483
- msgid "Licence key has expired"
484
- msgstr "Questa chiave di licenza è scaduta"
485
486
- #: licence/lib/yit-licence.php:555
487
- msgid "Licence key has been banned"
488
- msgstr "Questa chiave di licenza è stata bloccata"
489
490
- #: licence/lib/yit-plugin-licence.php:64 licence/lib/yit-plugin-licence.php:65
491
- #: licence/lib/yit-theme-licence.php:64 licence/lib/yit-theme-licence.php:65
492
- #: licence/lib/yit-theme-licence.php:107 licence/lib/yit-theme-licence.php:108
493
- msgid "Licence Activation"
494
- msgstr "Attivazione licenza"
495
496
- #: licence/lib/yit-theme-licence.php:115 licence/lib/yit-theme-licence.php:116
497
#, php-format
498
msgid "%s"
499
msgstr "%s"
500
501
- #: licence/templates/panel/activation/activation-panel.php:19
502
- msgid "Yithemes Licence Activation"
503
- msgstr "Attivazione licenza YIThemes"
504
-
505
- #: licence/templates/panel/activation/activation-panel.php:23
506
msgid ""
507
"I cannot find the license key for activating the theme I have bought some time "
508
"ago. Where can I find it?"
@@ -510,30 +534,25 @@ msgstr ""
510
"Non riesco a trovare la chiave di licenza per l'attivazione del tema che ho "
511
"acquistato diverso tempo fa. Dove posso trovarla?"
512
513
- #: licence/templates/panel/activation/activation-panel.php:26
514
msgid ""
515
"If you have purchased one of our products before 27 January 2015, you can benefit "
516
"from support and updates (the services offered with the license)\n"
517
- " until 27 January 2016 and you do not have to purchase it again to get "
518
- "a new license key, because, before this date, your license used to be activated "
519
- "automatically by our system.\n"
520
- " After 27 January 2016, instead, if you want to benefit from support "
521
- "and updates you have to buy a new license and activate it through the license key "
522
- "you will be\n"
523
- " provided with and that you can find in your YIThemes account, in "
524
- "section \"My licenses\"."
525
- msgstr ""
526
- "Se hai acquistato un nostro prodotto prima del 27 gennaio 2015 potrai accedere al "
527
- "supporto e scaricare gli aggiornamenti fino al 27 gennaio 2016 e non avrai bisogno "
528
- "di una chiave di licenza,\n"
529
- "in quanto la tua licenza prima di questa data veniva attivata in modo automatico "
530
- "dal nostro sistema.\n"
531
- "Dopo il 27 gennaio 2016, invece, per poter usufruire del servizio di supporto e "
532
- "degli aggiornamenti dovrai riacquistare il prodotto e\n"
533
- "attivarlo con la chiave di licenza che ti sarà fornita e che puoi trovare sul tuo "
534
- "account YIThemes, alla voce \"Le mie licenze\"."
535
-
536
- #: licence/templates/panel/activation/activation-panel.php:37
537
msgid ""
538
"Have you updated your licenses? Have you asked for an extension? Update "
539
"information concerning your products."
@@ -541,71 +560,75 @@ msgstr ""
541
"Hai aggiornato la tua licenza? Hai richiesto un'estensione? Aggiorna le "
542
"informazioni dei tuoi prodotti."
543
544
- #: licence/templates/panel/activation/activation-panel.php:39
545
- msgid "Update licence information"
546
- msgstr "Aggiorna le informazioni di licenza"
547
548
- #: licence/templates/panel/activation/activation-panel.php:49
549
- msgid "Products to be activated"
550
- msgstr "Prodotti da attivare"
551
552
- #: licence/templates/panel/activation/activation-panel.php:68
553
msgid "Activate"
554
msgstr "Attiva"
555
556
- #: licence/templates/panel/activation/activation-panel.php:87
557
msgid "Activated"
558
msgstr "Attivato"
559
560
- #: licence/templates/panel/activation/activation-panel.php:91
561
- #: licence/templates/panel/activation/activation-panel.php:123
562
- #: licence/templates/panel/activation/activation-panel.php:147
563
msgid "Product Name"
564
msgstr "Nome prodotto"
565
566
- #: licence/templates/panel/activation/activation-panel.php:92
567
- #: licence/templates/panel/activation/activation-panel.php:124
568
- #: licence/templates/panel/activation/activation-panel.php:148
569
- #: templates/metaboxes/types/contactform.php:148
570
- #: templates/metaboxes/types/contactform.php:340
571
- msgid "Email"
572
- msgstr "Email"
573
-
574
#: licence/templates/panel/activation/activation-panel.php:93
575
- #: licence/templates/panel/activation/activation-panel.php:125
576
- #: licence/templates/panel/activation/activation-panel.php:149
577
- msgid "Licence Key"
578
- msgstr "Chiave di licenza"
579
-
580
- #: licence/templates/panel/activation/activation-panel.php:94
581
- #: licence/templates/panel/activation/activation-panel.php:150
582
msgid "Expires"
583
msgstr "Scadenza"
584
585
- #: licence/templates/panel/activation/activation-panel.php:95
586
msgid "Remaining"
587
msgstr "Tempo rimanente"
588
589
- #: licence/templates/panel/activation/activation-panel.php:96
590
- #: licence/templates/panel/activation/activation-panel.php:109
591
- #: licence/templates/panel/activation/activation-panel.php:151
592
- #: licence/templates/panel/activation/activation-panel.php:161
593
- msgid "Renew"
594
- msgstr "Rinnova"
595
596
- #: licence/templates/panel/activation/activation-panel.php:107
597
#, php-format
598
msgid "%1s out of %2s"
599
msgstr "%1s di %2s"
600
601
- #: licence/templates/panel/activation/activation-panel.php:119
602
msgid "Banned"
603
msgstr "Bloccato"
604
605
- #: licence/templates/panel/activation/activation-panel.php:143
606
msgid "Expired"
607
msgstr "Non più valido"
608
609
#: templates/metaboxes/types/ajax-products.php:23
610
msgid "Search for a product"
611
msgstr "Cerca un prodotto"
@@ -802,7 +825,7 @@ msgstr "Icona"
802
#: templates/metaboxes/types/icon-list.php:69
803
#: templates/metaboxes/types/select-icon.php:33
804
#: templates/metaboxes/types/upload.php:21 templates/panel/types/upload.php:31
805
- #: templates/panel/woocommerce/woocommerce-upload.php:35
806
msgid "Upload"
807
msgstr "Carica"
808
@@ -970,10 +993,77 @@ msgstr "Corsivo"
970
msgid "Italic bold"
971
msgstr "Grassetto corsivo"
972
973
- #: templates/panel/woocommerce/woocommerce-form.php:10
974
msgid "Reset Defaults"
975
msgstr "Ripristina impostazioni iniziali"
976
977
#~ msgid "%field_1% and %field_2% fields cannot be empty"
978
#~ msgstr "I campi %field_1% e %field_2% non possono essere vuoti"
979
4
msgstr ""
5
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
7
+ "POT-Creation-Date: 2015-11-16 12:23+0100\n"
8
+ "PO-Revision-Date: 2015-11-16 12:24+0100\n"
9
"Last-Translator: \n"
10
+ "Language-Team: YIThemes <plugins@yithemes.com>\n"
11
+ "Language: it_IT\n"
12
"MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
"Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 1.8.1\n"
16
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
"esc_html_x:1,2c\n"
136
msgstr "Tipologia"
137
138
#: lib/yit-cpt-unlimited.php:1052
139
+ #, php-format
140
+ msgid "Layout for this %s"
141
+ msgstr ""
142
143
#: lib/yit-cpt-unlimited.php:1058
144
msgid "Rewrite"
221
msgstr "Aggiungi %s dalla immagini"
222
223
#: lib/yit-cpt-unlimited.php:1633
224
+ msgid "Upload multiple files"
225
+ msgstr ""
226
227
+ #: lib/yit-plugin-panel-wc.php:336
228
msgid "The changes you have made will be lost if you leave this page."
229
msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
230
232
msgid "Plugin Settings"
233
msgstr "Impostazioni plugin"
234
235
+ #: lib/yit-plugin-panel.php:96 lib/yit-plugin-subpanel.php:101
236
msgid "YIT Plugins"
237
msgstr "YIT Plugins"
238
239
+ #: lib/yit-plugin-panel.php:288 lib/yit-plugin-subpanel.php:143
240
#: templates/panel/woocommerce/woocommerce-form.php:5
241
msgid "Save Changes"
242
msgstr "Salva modifiche"
243
244
+ #: lib/yit-plugin-panel.php:291 templates/panel/woocommerce/woocommerce-form.php:8
245
msgid "If you continue with this action, you will reset all options in this page."
246
msgstr ""
247
"Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
248
"reimpostate."
249
250
+ #: lib/yit-plugin-panel.php:293 lib/yit-plugin-subpanel.php:148
251
+ msgid "Reset to default"
252
+ msgstr ""
253
254
+ #: lib/yit-plugin-panel.php:293 lib/yit-plugin-subpanel.php:148
255
+ #: templates/panel/woocommerce/woocommerce-form.php:11
256
msgid "Are you sure?"
257
msgstr "Sei sicuro?"
258
259
+ #: lib/yit-plugin-panel.php:427
260
msgid "The element you have entered already exists. Please, enter another name."
261
msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
262
263
+ #: lib/yit-plugin-panel.php:428
264
msgid "Settings saved"
265
msgstr "Impostazioni salvate"
266
267
+ #: lib/yit-plugin-panel.php:429
268
msgid "Settings reset"
269
msgstr "Impostazioni azzerate"
270
271
+ #: lib/yit-plugin-panel.php:430
272
msgid "Element deleted correctly."
273
msgstr "Elemento rimosso correttamente."
274
275
+ #: lib/yit-plugin-panel.php:431 lib/yit-plugin-panel.php:432
276
msgid "Element updated correctly."
277
msgstr "Elemento aggiornato correttamente."
278
279
+ #: lib/yit-plugin-panel.php:433
280
msgid "Database imported correctly."
281
msgstr "Database importato correttamente."
282
283
+ #: lib/yit-plugin-panel.php:434
284
msgid "An error has occurred during import. Please try again."
285
msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
286
287
+ #: lib/yit-plugin-panel.php:435
288
msgid "The added file is not valid."
289
msgstr "Il file aggiunto non è valido."
290
291
+ #: lib/yit-plugin-panel.php:436
292
msgid "Sorry, import is disabled."
293
msgstr "Ci dispiace, l'importazione è disabilitata."
294
295
+ #: lib/yit-plugin-panel.php:437
296
msgid "Sorting successful."
297
msgstr "Ordinamento effettuato con successo."
298
299
+ #: lib/yit-plugin-subpanel.php:146
300
msgid ""
301
"If you continue with this action, you will reset all the options in this page."
302
msgstr ""
368
msgid "Update now."
369
msgstr "Aggiorna adesso."
370
371
+ #: lib/yit-upgrade.php:250
372
msgid "Yithemes Repository"
373
msgstr "Repository YIThemes"
374
375
+ #: lib/yit-upgrade.php:284
376
msgid "Invalid URL Provided."
377
msgstr "L'URL inserito non è valido."
378
379
+ #: lib/yit-upgrade.php:297
380
msgid "Could not create Temporary file."
381
msgstr "Non è stato possibile creare il file temporaneo."
382
383
+ #: lib/yit-upgrade.php:439
384
#, php-format
385
msgid ""
386
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
389
"È disponibile una nuova versione di %1$s. <a href=\"%2$s\" class=\"thickbox yit-"
390
"changelog-button\" title=\"%3$s\">Visualizza i dettagli della versione %4$s</a>."
391
392
+ #: lib/yit-upgrade.php:441
393
#, php-format
394
msgid ""
395
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
402
"<em>Per poter usufruire degli aggiornamenti automatici è necessario attivare il "
403
"plugin su un solo sito.</em>"
404
405
+ #: lib/yit-upgrade.php:443
406
#, php-format
407
msgid ""
408
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
409
"changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>Automatic "
410
+ "update is unavailable for this plugin, please <a href=\"%5$s\" title=\"License "
411
"activation\">activate</a> your copy of %6s.</em>"
412
msgstr ""
413
414
+ #: lib/yit-upgrade.php:445
415
#, php-format
416
msgid ""
417
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
422
"changelog-button\" title=\"%3$s\">Visualizza i dettagli della versione %4$s</a> "
423
"oppure <a href=\"%5$s\">aggiorna adesso</a>."
424
425
+ #: lib/yit-upgrade.php:518
426
msgid "You can't update the plugins for this site."
427
msgstr "Non è possibile aggiornare i plugin per questo sito."
428
429
+ #: lib/yit-upgrade.php:522
430
msgid "You do not have sufficient permissions to update the plugins for this site."
431
msgstr ""
432
"Non sei in possesso delle autorizzazioni necessarie per aggiornare i plugin in "
433
"questo sito."
434
435
+ #: lib/yit-upgrade.php:529
436
msgid "Update Plugin"
437
msgstr "Aggiorna plugin"
438
439
+ #: licence/lib/yit-licence.php:170
440
#, php-format
441
msgctxt "%s = field name"
442
msgid "%s field cannot be empty"
443
msgstr "Il campo %s non può essere vuoto"
444
445
+ #: licence/lib/yit-licence.php:171
446
#, php-format
447
msgid "%s and %s fields cannot be empty"
448
msgstr "I campi %s e %s non possono essere vuoti"
449
450
+ #: licence/lib/yit-licence.php:172
451
msgid "Unable to contact the remote server, please try again later. Thanks!"
452
msgstr "Impossibile contattare il server remoto, prova più tardi. Grazie!"
453
454
+ #: licence/lib/yit-licence.php:173
455
+ #: licence/templates/panel/activation/activation-panel.php:89
456
+ #: licence/templates/panel/activation/activation-panel.php:164
457
+ #: licence/templates/panel/activation/activation-panel.php:195
458
+ #: templates/metaboxes/types/contactform.php:148
459
+ #: templates/metaboxes/types/contactform.php:340
460
+ msgid "Email"
461
+ msgstr "Email"
462
+
463
+ #: licence/lib/yit-licence.php:174
464
+ #: licence/templates/panel/activation/activation-panel.php:90
465
+ #: licence/templates/panel/activation/activation-panel.php:165
466
+ #: licence/templates/panel/activation/activation-panel.php:196
467
+ msgid "License Key"
468
+ msgstr ""
469
+
470
+ #: licence/lib/yit-licence.php:175
471
+ msgid "Are you sure you want to deactivate the license for current site?"
472
+ msgstr ""
473
+
474
+ #: licence/lib/yit-licence.php:638
475
msgid "Invalid Request"
476
msgstr "Richiesta non valida"
477
478
+ #: licence/lib/yit-licence.php:639
479
+ msgid "Invalid license key"
480
+ msgstr ""
481
482
+ #: licence/lib/yit-licence.php:640
483
msgid "Software has been deactivated"
484
msgstr "Il software è stato disattivato"
485
486
+ #: licence/lib/yit-licence.php:641
487
msgid "Maximum number of activations exceeded"
488
msgstr "Hai raggiunto il numero massimo di attivazioni"
489
490
+ #: licence/lib/yit-licence.php:642
491
msgid "Invalid instance ID"
492
msgstr "Istanza ID non valida"
493
494
+ #: licence/lib/yit-licence.php:643
495
msgid "Invalid security key"
496
msgstr "Chiave di sicurezza non valida"
497
498
+ #: licence/lib/yit-licence.php:644
499
+ msgid "License key has expired"
500
+ msgstr ""
501
+
502
+ #: licence/lib/yit-licence.php:645
503
+ msgid "License key has been banned"
504
+ msgstr ""
505
+
506
+ #: licence/lib/yit-licence.php:646
507
+ msgid "Great"
508
+ msgstr ""
509
+
510
+ #: licence/lib/yit-licence.php:646
511
+ msgid "License successfully activated"
512
+ msgstr ""
513
514
+ #: licence/lib/yit-licence.php:647
515
+ msgid "License key deactivated for website"
516
+ msgstr ""
517
518
+ #: licence/lib/yit-plugin-licence.php:68 licence/lib/yit-plugin-licence.php:69
519
+ #: licence/lib/yit-theme-licence.php:70 licence/lib/yit-theme-licence.php:71
520
+ #: licence/lib/yit-theme-licence.php:110 licence/lib/yit-theme-licence.php:111
521
+ msgid "License Activation"
522
+ msgstr ""
523
524
+ #: licence/lib/yit-theme-licence.php:118 licence/lib/yit-theme-licence.php:119
525
#, php-format
526
msgid "%s"
527
msgstr "%s"
528
529
+ #: licence/lib/yit-theme-licence.php:160
530
msgid ""
531
"I cannot find the license key for activating the theme I have bought some time "
532
"ago. Where can I find it?"
534
"Non riesco a trovare la chiave di licenza per l'attivazione del tema che ho "
535
"acquistato diverso tempo fa. Dove posso trovarla?"
536
537
+ #: licence/lib/yit-theme-licence.php:163
538
msgid ""
539
"If you have purchased one of our products before 27 January 2015, you can benefit "
540
"from support and updates (the services offered with the license)\n"
541
+ " until 27 January 2016 and you do not have to purchase it again "
542
+ "to get a new license key, because, before this date, your license used to be "
543
+ "activated automatically by our system.\n"
544
+ " After 27 January 2016, instead, if you want to benefit from "
545
+ "support and updates you have to buy a new license and activate it through the "
546
+ "license key you will be\n"
547
+ " provided with and that you can find in your YIThemes account, "
548
+ "in section \"My licenses\"."
549
+ msgstr ""
550
+
551
+ #: licence/templates/panel/activation/activation-panel.php:22
552
+ msgid "Yithemes License Activation"
553
+ msgstr ""
554
+
555
+ #: licence/templates/panel/activation/activation-panel.php:28
556
msgid ""
557
"Have you updated your licenses? Have you asked for an extension? Update "
558
"information concerning your products."
560
"Hai aggiornato la tua licenza? Hai richiesto un'estensione? Aggiorna le "
561
"informazioni dei tuoi prodotti."
562
563
+ #: licence/templates/panel/activation/activation-panel.php:30
564
+ msgid "Update license information"
565
+ msgstr ""
566
567
+ #: licence/templates/panel/activation/activation-panel.php:43
568
+ msgid "Product to activate"
569
+ msgid_plural "Products to activate"
570
+ msgstr[0] ""
571
+ msgstr[1] ""
572
573
+ #: licence/templates/panel/activation/activation-panel.php:62
574
msgid "Activate"
575
msgstr "Attiva"
576
577
+ #: licence/templates/panel/activation/activation-panel.php:81
578
msgid "Activated"
579
msgstr "Attivato"
580
581
+ #: licence/templates/panel/activation/activation-panel.php:87
582
+ #: licence/templates/panel/activation/activation-panel.php:162
583
+ #: licence/templates/panel/activation/activation-panel.php:192
584
msgid "Product Name"
585
msgstr "Nome prodotto"
586
587
#: licence/templates/panel/activation/activation-panel.php:93
588
+ #: licence/templates/panel/activation/activation-panel.php:199
589
msgid "Expires"
590
msgstr "Scadenza"
591
592
+ #: licence/templates/panel/activation/activation-panel.php:96
593
msgid "Remaining"
594
msgstr "Tempo rimanente"
595
596
+ #: licence/templates/panel/activation/activation-panel.php:97
597
+ #: licence/templates/panel/activation/activation-panel.php:223
598
+ msgid "Membership"
599
+ msgstr ""
600
601
+ #: licence/templates/panel/activation/activation-panel.php:100
602
+ msgid "License Actions"
603
+ msgstr ""
604
+
605
+ #: licence/templates/panel/activation/activation-panel.php:125
606
#, php-format
607
msgid "%1s out of %2s"
608
msgstr "%1s di %2s"
609
610
+ #: licence/templates/panel/activation/activation-panel.php:140
611
+ msgid "Deactivate"
612
+ msgstr ""
613
+
614
+ #: licence/templates/panel/activation/activation-panel.php:145
615
+ #: licence/templates/panel/activation/activation-panel.php:202
616
+ #: licence/templates/panel/activation/activation-panel.php:223
617
+ msgid "Renew"
618
+ msgstr "Rinnova"
619
+
620
+ #: licence/templates/panel/activation/activation-panel.php:158
621
msgid "Banned"
622
msgstr "Bloccato"
623
624
+ #: licence/templates/panel/activation/activation-panel.php:188
625
msgid "Expired"
626
msgstr "Non più valido"
627
628
+ #: licence/templates/panel/activation/activation-panel.php:223
629
+ msgid "License"
630
+ msgstr ""
631
+
632
#: templates/metaboxes/types/ajax-products.php:23
633
msgid "Search for a product"
634
msgstr "Cerca un prodotto"
825
#: templates/metaboxes/types/icon-list.php:69
826
#: templates/metaboxes/types/select-icon.php:33
827
#: templates/metaboxes/types/upload.php:21 templates/panel/types/upload.php:31
828
+ #: templates/panel/woocommerce/woocommerce-upload.php:40
829
msgid "Upload"
830
msgstr "Carica"
831
993
msgid "Italic bold"
994
msgstr "Grassetto corsivo"
995
996
+ #: templates/panel/woocommerce/woocommerce-form.php:11
997
msgid "Reset Defaults"
998
msgstr "Ripristina impostazioni iniziali"
999
1000
+ #~ msgid "Layout for this "
1001
+ #~ msgstr "Layout per questo"
1002
+
1003
+ #~ msgid "Add with multiupload"
1004
+ #~ msgstr "Aggiungi con caricamento multiplo"
1005
+
1006
+ #~ msgid "Reset to Default"
1007
+ #~ msgstr "Ripristina impostazioni iniziali"
1008
+
1009
+ #~ msgid ""
1010
+ #~ "There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
1011
+ #~ "changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>Automatic "
1012
+ #~ "update is unavailable for this plugin, please <a href=\"%5$s\" title=\"Licence "
1013
+ #~ "activation\">activate</a> your copy of %6s.</em>"
1014
+ #~ msgstr ""
1015
+ #~ "È disponibile una nuova versioni di %1$s. <a href=\"%2$s\" class=\"thickbox yit-"
1016
+ #~ "changelog-button\" title=\"%3$s\">Visualizza i dettagli della versione %4$s</"
1017
+ #~ "a>. <em>Gli aggiornamenti automatici non sono disponibili per questo plugi, per "
1018
+ #~ "favore, <a href=\"%5$s\" title=\"Licence activation\">attiva</a> la tua copia "
1019
+ #~ "di %6s.</em>"
1020
+
1021
+ #~ msgid "Invalid licence key"
1022
+ #~ msgstr "Chiave di licenza non valida"
1023
+
1024
+ #~ msgid "Licence key has expired"
1025
+ #~ msgstr "Questa chiave di licenza è scaduta"
1026
+
1027
+ #~ msgid "Licence key has been banned"
1028
+ #~ msgstr "Questa chiave di licenza è stata bloccata"
1029
+
1030
+ #~ msgid "Licence Activation"
1031
+ #~ msgstr "Attivazione licenza"
1032
+
1033
+ #~ msgid "Yithemes Licence Activation"
1034
+ #~ msgstr "Attivazione licenza YIThemes"
1035
+
1036
+ #~ msgid ""
1037
+ #~ "If you have purchased one of our products before 27 January 2015, you can "
1038
+ #~ "benefit from support and updates (the services offered with the license)\n"
1039
+ #~ " until 27 January 2016 and you do not have to purchase it again to "
1040
+ #~ "get a new license key, because, before this date, your license used to be "
1041
+ #~ "activated automatically by our system.\n"
1042
+ #~ " After 27 January 2016, instead, if you want to benefit from support "
1043
+ #~ "and updates you have to buy a new license and activate it through the license "
1044
+ #~ "key you will be\n"
1045
+ #~ " provided with and that you can find in your YIThemes account, in "
1046
+ #~ "section \"My licenses\"."
1047
+ #~ msgstr ""
1048
+ #~ "Se hai acquistato un nostro prodotto prima del 27 gennaio 2015 potrai accedere "
1049
+ #~ "al supporto e scaricare gli aggiornamenti fino al 27 gennaio 2016 e non avrai "
1050
+ #~ "bisogno di una chiave di licenza,\n"
1051
+ #~ "in quanto la tua licenza prima di questa data veniva attivata in modo "
1052
+ #~ "automatico dal nostro sistema.\n"
1053
+ #~ "Dopo il 27 gennaio 2016, invece, per poter usufruire del servizio di supporto e "
1054
+ #~ "degli aggiornamenti dovrai riacquistare il prodotto e\n"
1055
+ #~ "attivarlo con la chiave di licenza che ti sarà fornita e che puoi trovare sul "
1056
+ #~ "tuo account YIThemes, alla voce \"Le mie licenze\"."
1057
+
1058
+ #~ msgid "Update licence information"
1059
+ #~ msgstr "Aggiorna le informazioni di licenza"
1060
+
1061
+ #~ msgid "Products to be activated"
1062
+ #~ msgstr "Prodotti da attivare"
1063
+
1064
+ #~ msgid "Licence Key"
1065
+ #~ msgstr "Chiave di licenza"
1066
+
1067
#~ msgid "%field_1% and %field_2% fields cannot be empty"
1068
#~ msgstr "I campi %field_1% e %field_2% non possono essere vuoti"
1069
plugin-fw/languages/yith-plugin-fw.pot CHANGED
@@ -1,10 +1,11 @@
1
# Copyright (C) 2015 YIThemes
2
# This file is distributed under the same license as the YITH Plugin Starter package.
3
msgid ""
4
msgstr ""
5
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
6
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
7
- "POT-Creation-Date: 2015-05-05 10:38+0100\n"
8
"PO-Revision-Date: 2015-05-05 10:38+0100\n"
9
"Last-Translator: \n"
10
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
@@ -12,7 +13,7 @@ msgstr ""
12
"MIME-Version: 1.0\n"
13
"Content-Type: text/plain; charset=utf-8\n"
14
"Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.7.6\n"
16
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
"esc_html_x:1,2c\n"
@@ -136,7 +137,8 @@ msgid "Type"
136
msgstr ""
137
138
#: lib/yit-cpt-unlimited.php:1052
139
- msgid "Layout for this "
140
msgstr ""
141
142
#: lib/yit-cpt-unlimited.php:1058
@@ -215,10 +217,10 @@ msgid "Add %s from images"
215
msgstr ""
216
217
#: lib/yit-cpt-unlimited.php:1633
218
- msgid "Add with multiupload"
219
msgstr ""
220
221
- #: lib/yit-plugin-panel-wc.php:295
222
msgid "The changes you have made will be lost if you leave this page."
223
msgstr ""
224
@@ -226,69 +228,69 @@ msgstr ""
226
msgid "Plugin Settings"
227
msgstr ""
228
229
- #: lib/yit-plugin-panel.php:95 lib/yit-plugin-subpanel.php:101
230
msgid "YIT Plugins"
231
msgstr ""
232
233
- #: lib/yit-plugin-panel.php:292 lib/yit-plugin-subpanel.php:142
234
#: templates/panel/woocommerce/woocommerce-form.php:5
235
msgid "Save Changes"
236
msgstr ""
237
238
- #: lib/yit-plugin-panel.php:295 templates/panel/woocommerce/woocommerce-form.php:8
239
msgid "If you continue with this action, you will reset all options in this page."
240
msgstr ""
241
242
- #: lib/yit-plugin-panel.php:297 lib/yit-plugin-subpanel.php:147
243
- msgid "Reset to Default"
244
msgstr ""
245
246
- #: lib/yit-plugin-panel.php:297 lib/yit-plugin-subpanel.php:147
247
- #: templates/panel/woocommerce/woocommerce-form.php:10
248
msgid "Are you sure?"
249
msgstr ""
250
251
- #: lib/yit-plugin-panel.php:431
252
msgid "The element you have entered already exists. Please, enter another name."
253
msgstr ""
254
255
- #: lib/yit-plugin-panel.php:432
256
msgid "Settings saved"
257
msgstr ""
258
259
- #: lib/yit-plugin-panel.php:433
260
msgid "Settings reset"
261
msgstr ""
262
263
- #: lib/yit-plugin-panel.php:434
264
msgid "Element deleted correctly."
265
msgstr ""
266
267
- #: lib/yit-plugin-panel.php:435 lib/yit-plugin-panel.php:436
268
msgid "Element updated correctly."
269
msgstr ""
270
271
- #: lib/yit-plugin-panel.php:437
272
msgid "Database imported correctly."
273
msgstr ""
274
275
- #: lib/yit-plugin-panel.php:438
276
msgid "An error has occurred during import. Please try again."
277
msgstr ""
278
279
- #: lib/yit-plugin-panel.php:439
280
msgid "The added file is not valid."
281
msgstr ""
282
283
- #: lib/yit-plugin-panel.php:440
284
msgid "Sorry, import is disabled."
285
msgstr ""
286
287
- #: lib/yit-plugin-panel.php:441
288
msgid "Sorting successful."
289
msgstr ""
290
291
- #: lib/yit-plugin-subpanel.php:145
292
msgid ""
293
"If you continue with this action, you will reset all the options in this page."
294
msgstr ""
@@ -347,26 +349,26 @@ msgstr ""
347
msgid "Update now."
348
msgstr ""
349
350
- #: lib/yit-upgrade.php:230
351
msgid "Yithemes Repository"
352
msgstr ""
353
354
- #: lib/yit-upgrade.php:264
355
msgid "Invalid URL Provided."
356
msgstr ""
357
358
- #: lib/yit-upgrade.php:277
359
msgid "Could not create Temporary file."
360
msgstr ""
361
362
- #: lib/yit-upgrade.php:419
363
#, php-format
364
msgid ""
365
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
366
"changelog-button\" title=\"%3$s\">View version %4$s details</a>."
367
msgstr ""
368
369
- #: lib/yit-upgrade.php:421
370
#, php-format
371
msgid ""
372
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
@@ -375,16 +377,16 @@ msgid ""
375
"updates.</em>"
376
msgstr ""
377
378
- #: lib/yit-upgrade.php:423
379
#, php-format
380
msgid ""
381
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
382
"changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>Automatic "
383
- "update is unavailable for this plugin, please <a href=\"%5$s\" title=\"Licence "
384
"activation\">activate</a> your copy of %6s.</em>"
385
msgstr ""
386
387
- #: lib/yit-upgrade.php:425
388
#, php-format
389
msgid ""
390
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
@@ -392,169 +394,207 @@ msgid ""
392
"\">update now</a>."
393
msgstr ""
394
395
- #: lib/yit-upgrade.php:498
396
msgid "You can't update the plugins for this site."
397
msgstr ""
398
399
- #: lib/yit-upgrade.php:502
400
msgid "You do not have sufficient permissions to update the plugins for this site."
401
msgstr ""
402
403
- #: lib/yit-upgrade.php:509
404
msgid "Update Plugin"
405
msgstr ""
406
407
- #: licence/lib/yit-licence.php:161
408
#, php-format
409
- msgid "%field% field cannot be empty"
410
msgstr ""
411
412
- #: licence/lib/yit-licence.php:162
413
- msgid "%field_1% and %field_2% fields cannot be empty"
414
msgstr ""
415
416
- #: licence/lib/yit-licence.php:163
417
msgid "Unable to contact the remote server, please try again later. Thanks!"
418
msgstr ""
419
420
- #: licence/lib/yit-licence.php:548
421
msgid "Invalid Request"
422
msgstr ""
423
424
- #: licence/lib/yit-licence.php:549
425
- msgid "Invalid licence key"
426
msgstr ""
427
428
- #: licence/lib/yit-licence.php:550
429
msgid "Software has been deactivated"
430
msgstr ""
431
432
- #: licence/lib/yit-licence.php:551
433
msgid "Maximum number of activations exceeded"
434
msgstr ""
435
436
- #: licence/lib/yit-licence.php:552
437
msgid "Invalid instance ID"
438
msgstr ""
439
440
- #: licence/lib/yit-licence.php:553
441
msgid "Invalid security key"
442
msgstr ""
443
444
- #: licence/lib/yit-licence.php:554
445
- msgid "Licence key has expired"
446
msgstr ""
447
448
- #: licence/lib/yit-licence.php:555
449
- msgid "Licence key has been banned"
450
msgstr ""
451
452
- #: licence/lib/yit-plugin-licence.php:64 licence/lib/yit-plugin-licence.php:65
453
- #: licence/lib/yit-theme-licence.php:64 licence/lib/yit-theme-licence.php:65
454
- #: licence/lib/yit-theme-licence.php:107 licence/lib/yit-theme-licence.php:108
455
- msgid "Licence Activation"
456
msgstr ""
457
458
- #: licence/lib/yit-theme-licence.php:115 licence/lib/yit-theme-licence.php:116
459
- #, php-format
460
- msgid "%s"
461
msgstr ""
462
463
- #: licence/templates/panel/activation/activation-panel.php:19
464
- msgid "Yithemes Licence Activation"
465
msgstr ""
466
467
- #: licence/templates/panel/activation/activation-panel.php:23
468
msgid ""
469
"I cannot find the license key for activating the theme I have bought some time "
470
"ago. Where can I find it?"
471
msgstr ""
472
473
- #: licence/templates/panel/activation/activation-panel.php:26
474
msgid ""
475
"If you have purchased one of our products before 27 January 2015, you can benefit "
476
"from support and updates (the services offered with the license)\n"
477
- " until 27 January 2016 and you do not have to purchase it again to get "
478
- "a new license key, because, before this date, your license used to be activated "
479
- "automatically by our system.\n"
480
- " After 27 January 2016, instead, if you want to benefit from support "
481
- "and updates you have to buy a new license and activate it through the license key "
482
- "you will be\n"
483
- " provided with and that you can find in your YIThemes account, in "
484
- "section \"My licenses\"."
485
msgstr ""
486
487
- #: licence/templates/panel/activation/activation-panel.php:37
488
msgid ""
489
"Have you updated your licenses? Have you asked for an extension? Update "
490
"information concerning your products."
491
msgstr ""
492
493
- #: licence/templates/panel/activation/activation-panel.php:39
494
- msgid "Update licence information"
495
msgstr ""
496
497
- #: licence/templates/panel/activation/activation-panel.php:49
498
- msgid "Products to be activated"
499
- msgstr ""
500
501
- #: licence/templates/panel/activation/activation-panel.php:68
502
msgid "Activate"
503
msgstr ""
504
505
- #: licence/templates/panel/activation/activation-panel.php:87
506
msgid "Activated"
507
msgstr ""
508
509
- #: licence/templates/panel/activation/activation-panel.php:91
510
- #: licence/templates/panel/activation/activation-panel.php:123
511
- #: licence/templates/panel/activation/activation-panel.php:147
512
msgid "Product Name"
513
msgstr ""
514
515
- #: licence/templates/panel/activation/activation-panel.php:92
516
- #: licence/templates/panel/activation/activation-panel.php:124
517
- #: licence/templates/panel/activation/activation-panel.php:148
518
- #: templates/metaboxes/types/contactform.php:148
519
- #: templates/metaboxes/types/contactform.php:340
520
- msgid "Email"
521
- msgstr ""
522
-
523
#: licence/templates/panel/activation/activation-panel.php:93
524
- #: licence/templates/panel/activation/activation-panel.php:125
525
- #: licence/templates/panel/activation/activation-panel.php:149
526
- msgid "Licence Key"
527
- msgstr ""
528
-
529
- #: licence/templates/panel/activation/activation-panel.php:94
530
- #: licence/templates/panel/activation/activation-panel.php:150
531
msgid "Expires"
532
msgstr ""
533
534
- #: licence/templates/panel/activation/activation-panel.php:95
535
msgid "Remaining"
536
msgstr ""
537
538
- #: licence/templates/panel/activation/activation-panel.php:96
539
- #: licence/templates/panel/activation/activation-panel.php:109
540
- #: licence/templates/panel/activation/activation-panel.php:151
541
- #: licence/templates/panel/activation/activation-panel.php:161
542
- msgid "Renew"
543
msgstr ""
544
545
- #: licence/templates/panel/activation/activation-panel.php:107
546
#, php-format
547
msgid "%1s out of %2s"
548
msgstr ""
549
550
- #: licence/templates/panel/activation/activation-panel.php:119
551
msgid "Banned"
552
msgstr ""
553
554
- #: licence/templates/panel/activation/activation-panel.php:143
555
msgid "Expired"
556
msgstr ""
557
558
#: templates/metaboxes/types/ajax-products.php:23
559
msgid "Search for a product"
560
msgstr ""
@@ -630,7 +670,7 @@ msgstr ""
630
631
#: templates/metaboxes/types/contactform.php:77
632
#: templates/metaboxes/types/contactform.php:269
633
- msgid "Title Field"
634
msgstr ""
635
636
#: templates/metaboxes/types/contactform.php:81
@@ -652,7 +692,7 @@ msgstr ""
652
653
#: templates/metaboxes/types/contactform.php:95
654
#: templates/metaboxes/types/contactform.php:287
655
- msgid "Type field"
656
msgstr ""
657
658
#: templates/metaboxes/types/contactform.php:103
@@ -747,7 +787,7 @@ msgstr ""
747
#: templates/metaboxes/types/icon-list.php:69
748
#: templates/metaboxes/types/select-icon.php:33
749
#: templates/metaboxes/types/upload.php:21 templates/panel/types/upload.php:31
750
- #: templates/panel/woocommerce/woocommerce-upload.php:35
751
msgid "Upload"
752
msgstr ""
753
@@ -915,6 +955,6 @@ msgstr ""
915
msgid "Italic bold"
916
msgstr ""
917
918
- #: templates/panel/woocommerce/woocommerce-form.php:10
919
msgid "Reset Defaults"
920
msgstr ""
1
# Copyright (C) 2015 YIThemes
2
# This file is distributed under the same license as the YITH Plugin Starter package.
3
+ #, fuzzy
4
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: 2015-11-16 12:23+0100\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.1\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"
137
msgstr ""
138
139
#: lib/yit-cpt-unlimited.php:1052
140
+ #, php-format
141
+ msgid "Layout for this %s"
142
msgstr ""
143
144
#: lib/yit-cpt-unlimited.php:1058
217
msgstr ""
218
219
#: lib/yit-cpt-unlimited.php:1633
220
+ msgid "Upload multiple files"
221
msgstr ""
222
223
+ #: lib/yit-plugin-panel-wc.php:336
224
msgid "The changes you have made will be lost if you leave this page."
225
msgstr ""
226
228
msgid "Plugin Settings"
229
msgstr ""
230
231
+ #: lib/yit-plugin-panel.php:96 lib/yit-plugin-subpanel.php:101
232
msgid "YIT Plugins"
233
msgstr ""
234
235
+ #: lib/yit-plugin-panel.php:288 lib/yit-plugin-subpanel.php:143
236
#: templates/panel/woocommerce/woocommerce-form.php:5
237
msgid "Save Changes"
238
msgstr ""
239
240
+ #: lib/yit-plugin-panel.php:291 templates/panel/woocommerce/woocommerce-form.php:8
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:293 lib/yit-plugin-subpanel.php:148
245
+ msgid "Reset to default"
246
msgstr ""
247
248
+ #: lib/yit-plugin-panel.php:293 lib/yit-plugin-subpanel.php:148
249
+ #: templates/panel/woocommerce/woocommerce-form.php:11
250
msgid "Are you sure?"
251
msgstr ""
252
253
+ #: lib/yit-plugin-panel.php:427
254
msgid "The element you have entered already exists. Please, enter another name."
255
msgstr ""
256
257
+ #: lib/yit-plugin-panel.php:428
258
msgid "Settings saved"
259
msgstr ""
260
261
+ #: lib/yit-plugin-panel.php:429
262
msgid "Settings reset"
263
msgstr ""
264
265
+ #: lib/yit-plugin-panel.php:430
266
msgid "Element deleted correctly."
267
msgstr ""
268
269
+ #: lib/yit-plugin-panel.php:431 lib/yit-plugin-panel.php:432
270
msgid "Element updated correctly."
271
msgstr ""
272
273
+ #: lib/yit-plugin-panel.php:433
274
msgid "Database imported correctly."
275
msgstr ""
276
277
+ #: lib/yit-plugin-panel.php:434
278
msgid "An error has occurred during import. Please try again."
279
msgstr ""
280
281
+ #: lib/yit-plugin-panel.php:435
282
msgid "The added file is not valid."
283
msgstr ""
284
285
+ #: lib/yit-plugin-panel.php:436
286
msgid "Sorry, import is disabled."
287
msgstr ""
288
289
+ #: lib/yit-plugin-panel.php:437
290
msgid "Sorting successful."
291
msgstr ""
292
293
+ #: lib/yit-plugin-subpanel.php:146
294
msgid ""
295
"If you continue with this action, you will reset all the options in this page."
296
msgstr ""
349
msgid "Update now."
350
msgstr ""
351
352
+ #: lib/yit-upgrade.php:250
353
msgid "Yithemes Repository"
354
msgstr ""
355
356
+ #: lib/yit-upgrade.php:284
357
msgid "Invalid URL Provided."
358
msgstr ""
359
360
+ #: lib/yit-upgrade.php:297
361
msgid "Could not create Temporary file."
362
msgstr ""
363
364
+ #: lib/yit-upgrade.php:439
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\" title=\"%3$s\">View version %4$s details</a>."
369
msgstr ""
370
371
+ #: lib/yit-upgrade.php:441
372
#, php-format
373
msgid ""
374
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
377
"updates.</em>"
378
msgstr ""
379
380
+ #: lib/yit-upgrade.php:443
381
#, php-format
382
msgid ""
383
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
384
"changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>Automatic "
385
+ "update is unavailable for this plugin, please <a href=\"%5$s\" title=\"License "
386
"activation\">activate</a> your copy of %6s.</em>"
387
msgstr ""
388
389
+ #: lib/yit-upgrade.php:445
390
#, php-format
391
msgid ""
392
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
394
"\">update now</a>."
395
msgstr ""
396
397
+ #: lib/yit-upgrade.php:518
398
msgid "You can't update the plugins for this site."
399
msgstr ""
400
401
+ #: lib/yit-upgrade.php:522
402
msgid "You do not have sufficient permissions to update the plugins for this site."
403
msgstr ""
404
405
+ #: lib/yit-upgrade.php:529
406
msgid "Update Plugin"
407
msgstr ""
408
409
+ #: licence/lib/yit-licence.php:170
410
#, php-format
411
+ msgctxt "%s = field name"
412
+ msgid "%s field cannot be empty"
413
msgstr ""
414
415
+ #: licence/lib/yit-licence.php:171
416
+ #, php-format
417
+ msgid "%s and %s fields cannot be empty"
418
msgstr ""
419
420
+ #: licence/lib/yit-licence.php:172
421
msgid "Unable to contact the remote server, please try again later. Thanks!"
422
msgstr ""
423
424
+ #: licence/lib/yit-licence.php:173
425
+ #: licence/templates/panel/activation/activation-panel.php:89
426
+ #: licence/templates/panel/activation/activation-panel.php:164
427
+ #: licence/templates/panel/activation/activation-panel.php:195
428
+ #: templates/metaboxes/types/contactform.php:148
429
+ #: templates/metaboxes/types/contactform.php:340
430
+ msgid "Email"
431
+ msgstr ""
432
+
433
+ #: licence/lib/yit-licence.php:174
434
+ #: licence/templates/panel/activation/activation-panel.php:90
435
+ #: licence/templates/panel/activation/activation-panel.php:165
436
+ #: licence/templates/panel/activation/activation-panel.php:196
437
+ msgid "License Key"
438
+ msgstr ""
439
+
440
+ #: licence/lib/yit-licence.php:175
441
+ msgid "Are you sure you want to deactivate the license for current site?"
442
+ msgstr ""
443
+
444
+ #: licence/lib/yit-licence.php:638
445
msgid "Invalid Request"
446
msgstr ""
447
448
+ #: licence/lib/yit-licence.php:639
449
+ msgid "Invalid license key"
450
msgstr ""
451
452
+ #: licence/lib/yit-licence.php:640
453
msgid "Software has been deactivated"
454
msgstr ""
455
456
+ #: licence/lib/yit-licence.php:641
457
msgid "Maximum number of activations exceeded"
458
msgstr ""
459
460
+ #: licence/lib/yit-licence.php:642
461
msgid "Invalid instance ID"
462
msgstr ""
463
464
+ #: licence/lib/yit-licence.php:643
465
msgid "Invalid security key"
466
msgstr ""
467
468
+ #: licence/lib/yit-licence.php:644
469
+ msgid "License key has expired"
470
msgstr ""
471
472
+ #: licence/lib/yit-licence.php:645
473
+ msgid "License key has been banned"
474
msgstr ""
475
476
+ #: licence/lib/yit-licence.php:646
477
+ msgid "Great"
478
msgstr ""
479
480
+ #: licence/lib/yit-licence.php:646
481
+ msgid "License successfully activated"
482
msgstr ""
483
484
+ #: licence/lib/yit-licence.php:647
485
+ msgid "License key deactivated for website"
486
msgstr ""
487
488
+ #: licence/lib/yit-plugin-licence.php:68 licence/lib/yit-plugin-licence.php:69
489
+ #: licence/lib/yit-theme-licence.php:70 licence/lib/yit-theme-licence.php:71
490
+ #: licence/lib/yit-theme-licence.php:110 licence/lib/yit-theme-licence.php:111
491
+ msgid "License Activation"
492
+ msgstr ""
493
+
494
+ #: licence/lib/yit-theme-licence.php:118 licence/lib/yit-theme-licence.php:119
495
+ #, php-format
496
+ msgid "%s"
497
+ msgstr ""
498
+
499
+ #: licence/lib/yit-theme-licence.php:160
500
msgid ""
501
"I cannot find the license key for activating the theme I have bought some time "
502
"ago. Where can I find it?"
503
msgstr ""
504
505
+ #: licence/lib/yit-theme-licence.php:163
506
msgid ""
507
"If you have purchased one of our products before 27 January 2015, you can benefit "
508
"from support and updates (the services offered with the license)\n"
509
+ " until 27 January 2016 and you do not have to purchase it again "
510
+ "to get a new license key, because, before this date, your license used to be "
511
+ "activated automatically by our system.\n"
512
+ " After 27 January 2016, instead, if you want to benefit from "
513
+ "support and updates you have to buy a new license and activate it through the "
514
+ "license key you will be\n"
515
+ " provided with and that you can find in your YIThemes account, "
516
+ "in section \"My licenses\"."
517
msgstr ""
518
519
+ #: licence/templates/panel/activation/activation-panel.php:22
520
+ msgid "Yithemes License Activation"
521
+ msgstr ""
522
+
523
+ #: licence/templates/panel/activation/activation-panel.php:28
524
msgid ""
525
"Have you updated your licenses? Have you asked for an extension? Update "
526
"information concerning your products."
527
msgstr ""
528
529
+ #: licence/templates/panel/activation/activation-panel.php:30
530
+ msgid "Update license information"
531
msgstr ""
532
533
+ #: licence/templates/panel/activation/activation-panel.php:43
534
+ msgid "Product to activate"
535
+ msgid_plural "Products to activate"
536
+ msgstr[0] ""
537
+ msgstr[1] ""
538
539
+ #: licence/templates/panel/activation/activation-panel.php:62
540
msgid "Activate"
541
msgstr ""
542
543
+ #: licence/templates/panel/activation/activation-panel.php:81
544
msgid "Activated"
545
msgstr ""
546
547
+ #: licence/templates/panel/activation/activation-panel.php:87
548
+ #: licence/templates/panel/activation/activation-panel.php:162
549
+ #: licence/templates/panel/activation/activation-panel.php:192
550
msgid "Product Name"
551
msgstr ""
552
553
#: licence/templates/panel/activation/activation-panel.php:93
554
+ #: licence/templates/panel/activation/activation-panel.php:199
555
msgid "Expires"
556
msgstr ""
557
558
+ #: licence/templates/panel/activation/activation-panel.php:96
559
msgid "Remaining"
560
msgstr ""
561
562
+ #: licence/templates/panel/activation/activation-panel.php:97
563
+ #: licence/templates/panel/activation/activation-panel.php:223
564
+ msgid "Membership"
565
+ msgstr ""
566
+
567
+ #: licence/templates/panel/activation/activation-panel.php:100
568
+ msgid "License Actions"
569
msgstr ""
570
571
+ #: licence/templates/panel/activation/activation-panel.php:125
572
#, php-format
573
msgid "%1s out of %2s"
574
msgstr ""
575
576
+ #: licence/templates/panel/activation/activation-panel.php:140
577
+ msgid "Deactivate"
578
+ msgstr ""
579
+
580
+ #: licence/templates/panel/activation/activation-panel.php:145
581
+ #: licence/templates/panel/activation/activation-panel.php:202
582
+ #: licence/templates/panel/activation/activation-panel.php:223
583
+ msgid "Renew"
584
+ msgstr ""
585
+
586
+ #: licence/templates/panel/activation/activation-panel.php:158
587
msgid "Banned"
588
msgstr ""
589
590
+ #: licence/templates/panel/activation/activation-panel.php:188
591
msgid "Expired"
592
msgstr ""
593
594
+ #: licence/templates/panel/activation/activation-panel.php:223
595
+ msgid "License"
596
+ msgstr ""
597
+
598
#: templates/metaboxes/types/ajax-products.php:23
599
msgid "Search for a product"
600
msgstr ""
670
671
#: templates/metaboxes/types/contactform.php:77
672
#: templates/metaboxes/types/contactform.php:269
673
+ msgid "Field Title"
674
msgstr ""
675
676
#: templates/metaboxes/types/contactform.php:81
692
693
#: templates/metaboxes/types/contactform.php:95
694
#: templates/metaboxes/types/contactform.php:287
695
+ msgid "Field Type"
696
msgstr ""
697
698
#: templates/metaboxes/types/contactform.php:103
787
#: templates/metaboxes/types/icon-list.php:69
788
#: templates/metaboxes/types/select-icon.php:33
789
#: templates/metaboxes/types/upload.php:21 templates/panel/types/upload.php:31
790
+ #: templates/panel/woocommerce/woocommerce-upload.php:40
791
msgid "Upload"
792
msgstr ""
793
955
msgid "Italic bold"
956
msgstr ""
957
958
+ #: templates/panel/woocommerce/woocommerce-form.php:11
959
msgid "Reset Defaults"
960
msgstr ""
plugin-fw/lib/yit-plugin-panel-wc.php CHANGED
@@ -319,22 +319,27 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
319
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
320
*/
321
public function admin_enqueue_scripts() {
322
- global $woocommerce;
323
324
wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
325
326
wp_enqueue_media();
327
wp_enqueue_style( 'woocommerce_admin_styles', $woocommerce->plugin_url() . '/assets/css/admin.css', array(), $woocommerce->version );
328
- wp_enqueue_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $woocommerce->version );
329
wp_enqueue_style ( 'wp-jquery-ui-dialog' );
330
331
wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
332
wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
333
wp_enqueue_script( 'woocommerce_settings', $woocommerce->plugin_url() . '/assets/js/admin/settings.min.js', array( 'jquery', 'jquery-ui-datepicker','jquery-ui-dialog', 'jquery-ui-sortable', 'iris', 'chosen' ), $woocommerce->version, true );
334
- wp_enqueue_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.min.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
335
wp_localize_script( 'woocommerce_settings', 'woocommerce_settings_params', array(
336
'i18n_nav_warning' => __( 'The changes you have made will be lost if you leave this page.', 'yith-plugin-fw' )
337
) );
338
}
339
340
/**
319
* @author Antonio La Rocca <antonio.larocca@yithemes.com>
320
*/
321
public function admin_enqueue_scripts() {
322
+ global $woocommerce, $pagenow;
323
324
wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
325
326
wp_enqueue_media();
327
wp_enqueue_style( 'woocommerce_admin_styles', $woocommerce->plugin_url() . '/assets/css/admin.css', array(), $woocommerce->version );
328
+ wp_register_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $woocommerce->version );
329
wp_enqueue_style ( 'wp-jquery-ui-dialog' );
330
331
wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
332
wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
333
wp_enqueue_script( 'woocommerce_settings', $woocommerce->plugin_url() . '/assets/js/admin/settings.min.js', array( 'jquery', 'jquery-ui-datepicker','jquery-ui-dialog', 'jquery-ui-sortable', 'iris', 'chosen' ), $woocommerce->version, true );
334
+ wp_register_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.min.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
335
wp_localize_script( 'woocommerce_settings', 'woocommerce_settings_params', array(
336
'i18n_nav_warning' => __( 'The changes you have made will be lost if you leave this page.', 'yith-plugin-fw' )
337
) );
338
+
339
+ if( 'admin.php' == $pagenow && strpos( get_current_screen()->id, 'yit-plugins_page' ) !== false ){
340
+ wp_enqueue_style( 'yit-plugin-style' );
341
+ wp_enqueue_script( 'yit-plugin-panel' );
342
+ }
343
}
344
345
/**
plugin-fw/lib/yit-plugin-panel.php CHANGED
@@ -92,8 +92,12 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
92
* @author Andrea Grillo <andrea.grillo@yithemes.com>
93
*/
94
public function add_menu_page() {
95
- $position = apply_filters( 'yit_plugins_menu_item_position', '62.32' );
96
- add_menu_page( 'yit_plugin_panel', __( 'YIT Plugins', 'yith-plugin-fw' ), 'manage_options', 'yit_plugin_panel', NULL, YIT_CORE_PLUGIN_URL . '/assets/images/yithemes-icon.png', $position );
97
}
98
99
/**
@@ -121,27 +125,32 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
121
*/
122
public function admin_enqueue_scripts() {
123
124
- global $wp_scripts, $pagenow;
125
126
//scripts
127
- wp_enqueue_media();
128
- wp_enqueue_script( 'jquery-ui' );
129
- wp_enqueue_script( 'jquery-ui-core' );
130
- wp_enqueue_script( 'jquery-ui-slider' );
131
- wp_enqueue_script( 'jquery-ui-dialog' );
132
- wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
133
- wp_enqueue_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
134
- wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), $this->version, true );
135
- wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), $this->version, true );
136
137
//styles
138
- $jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2';
139
wp_register_style( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/css/codemirror/codemirror.css' );
140
wp_enqueue_style( 'jquery-ui-overcast', YIT_CORE_PLUGIN_URL . '/assets/css/overcast/jquery-ui-1.8.9.custom.css', false, '1.8.9', 'all' );
141
- wp_enqueue_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $this->version );
142
wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
143
wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
144
wp_enqueue_style( 'yit-jquery-ui-style', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', array(), $jquery_version );
145
}
146
147
/**
92
* @author Andrea Grillo <andrea.grillo@yithemes.com>
93
*/
94
public function add_menu_page() {
95
+ global $admin_page_hooks;
96
+
97
+ if( ! isset( $admin_page_hooks['yit_plugin_panel'] ) ){
98
+ $position = apply_filters( 'yit_plugins_menu_item_position', '62.32' );
99
+ add_menu_page( 'yit_plugin_panel', __( 'YIT Plugins', 'yith-plugin-fw' ), 'manage_options', 'yit_plugin_panel', NULL, YIT_CORE_PLUGIN_URL . '/assets/images/yithemes-icon.png', $position );
100
+ }
101
}
102
103
/**
125
*/
126
public function admin_enqueue_scripts() {
127
128
+ global $wp_scripts, $pagenow;
129
130
//scripts
131
+ wp_enqueue_media();
132
+ wp_enqueue_script( 'jquery-ui' );
133
+ wp_enqueue_script( 'jquery-ui-core' );
134
+ wp_enqueue_script( 'jquery-ui-slider' );
135
+ wp_enqueue_script( 'jquery-ui-dialog' );
136
+ wp_enqueue_script( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/js/chosen/chosen.jquery.js', array( 'jquery' ), '1.1.0', true );
137
+ wp_register_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
138
+ wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), $this->version, true );
139
+ wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), $this->version, true );
140
141
//styles
142
+ $jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2';
143
wp_register_style( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/css/codemirror/codemirror.css' );
144
wp_enqueue_style( 'jquery-ui-overcast', YIT_CORE_PLUGIN_URL . '/assets/css/overcast/jquery-ui-1.8.9.custom.css', false, '1.8.9', 'all' );
145
+ wp_register_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', $this->version );
146
wp_enqueue_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
147
wp_enqueue_style( 'jquery-chosen', YIT_CORE_PLUGIN_URL . '/assets/css/chosen/chosen.css' );
148
wp_enqueue_style( 'yit-jquery-ui-style', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', array(), $jquery_version );
149
+
150
+ if( 'admin.php' == $pagenow && strpos('yit-plugins_page',get_current_screen()->id ) !== false ){
151
+ wp_enqueue_style( 'yit-plugin-style' );
152
+ wp_enqueue_script( 'yit-plugin-panel' );
153
+ }
154
}
155
156
/**
plugin-fw/lib/yit-plugin-subpanel.php CHANGED
@@ -88,22 +88,25 @@ if ( ! class_exists( 'YIT_Plugin_SubPanel' ) ) {
88
* @since 1.0
89
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
90
*/
91
- public function add_setting_page() {
92
93
- $logo = YIT_CORE_PLUGIN_URL . '/assets/images/yithemes-icon.png';
94
95
- $admin_logo = function_exists( 'yit_get_option' ) ? yit_get_option( 'admin-logo-menu' ) : '';
96
97
- if ( isset( $admin_logo ) && ! empty( $admin_logo ) && $admin_logo != '' && $admin_logo) {
98
- $logo = $admin_logo;
99
- }
100
$position = apply_filters( 'yit_plugins_menu_item_position', '62.32' );
101
add_menu_page( 'yit_plugin_panel', __( 'YIT Plugins', 'yith-plugin-fw' ), 'nosuchcapability', 'yit_plugin_panel', NULL, $logo, $position );
102
103
- add_submenu_page( 'yit_plugin_panel', $this->settings['label'], $this->settings['label'], 'manage_options', $this->settings['page'], array( $this, 'yit_panel' ) );
104
- remove_submenu_page( 'yit_plugin_panel', 'yit_plugin_panel' );
105
106
- }
107
108
/**
109
* Show a tabbed panel to setting page
88
* @since 1.0
89
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
90
*/
91
+ public function add_setting_page() {
92
+ global $admin_page_hooks;
93
+ $logo = YIT_CORE_PLUGIN_URL . '/assets/images/yithemes-icon.png';
94
95
+ $admin_logo = function_exists( 'yit_get_option' ) ? yit_get_option( 'admin-logo-menu' ) : '';
96
97
+ if ( isset( $admin_logo ) && !empty( $admin_logo ) && $admin_logo != '' && $admin_logo ) {
98
+ $logo = $admin_logo;
99
+ }
100
101
+ if( ! isset( $admin_page_hooks['yit_plugin_panel'] ) ) {
102
$position = apply_filters( 'yit_plugins_menu_item_position', '62.32' );
103
add_menu_page( 'yit_plugin_panel', __( 'YIT Plugins', 'yith-plugin-fw' ), 'nosuchcapability', 'yit_plugin_panel', NULL, $logo, $position );
104
+ }
105
106
+ add_submenu_page( 'yit_plugin_panel', $this->settings['label'], $this->settings['label'], 'manage_options', $this->settings['page'], array( $this, 'yit_panel' ) );
107
+ remove_submenu_page( 'yit_plugin_panel', 'yit_plugin_panel' );
108
109
+ }
110
111
/**
112
* Show a tabbed panel to setting page
plugin-fw/lib/yit-upgrade.php CHANGED
@@ -60,8 +60,10 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
60
add_action( 'admin_enqueue_scripts', array( $this, 'network_admin_enqueue_scripts' ) );
61
}
62
63
- if( defined( 'YIT_LICENCE_DEBUG' ) && YIT_LICENCE_DEBUG ){
64
- $this->_package_url = 'http://dev.yithemes.com';
65
}
66
}
67
@@ -129,7 +131,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
129
);
130
131
foreach( $this->_plugins as $init => $info ){
132
- YIT_Plugin_Licence()->check( $init );
133
134
$update_url[ $init ] = wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin-multisite&plugin=') . $init, 'upgrade-plugin-multisite_' . $init );
135
$changelog_id = str_replace( array( '/', '.php', '.' ), array( '-', '', '-' ), $init );
@@ -157,24 +159,6 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
157
yit_enqueue_style( 'yit-upgrader', YIT_CORE_PLUGIN_URL . '/assets/css/yit-upgrader.css' );
158
}
159
160
- /**
161
- * Call the protected method _upgrader_pre_download to retrive the zip package file
162
- *
163
- * @param bool $reply Whether to bail without returning the package. Default false.
164
- * @param string $package The package file name.
165
- * @param \WP_Upgrader $upgrader WP_Upgrader instance.
166
- *
167
- * @return string | The download file
168
- *
169
- * @since 1.0
170
- * @see wp-admin/includes/class-wp-upgrader.php
171
- * @access public
172
- * @author Andrea Grillo <andrea.grillo@yithemes.com>
173
- */
174
- public function upgrader_pre_download( $reply, $package, $upgrader ){
175
- return $this->_upgrader_pre_download( $reply, $package, $upgrader );
176
- }
177
-
178
/**
179
* Retrive the zip package file
180
*
@@ -186,10 +170,10 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
186
*
187
* @since 1.0
188
* @see wp-admin/includes/class-wp-upgrader.php
189
- * @access protected
190
* @author Andrea Grillo <andrea.grillo@yithemes.com>
191
*/
192
- protected function _upgrader_pre_download( $reply, $package, $upgrader ) {
193
$plugin = false;
194
$is_bulk = $upgrader->skin instanceof Bulk_Plugin_Upgrader_Skin;
195
@@ -247,7 +231,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
247
return new WP_Error( 'no_package', $upgrader->strings['no_package'] );
248
}
249
250
- $upgrader->skin->feedback( 'downloading_package', __( 'Yithemes Repository', 'yith-plugin-fw' ) );
251
252
$download_file = $this->_download_url( $package, $args );
253
@@ -440,7 +424,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
440
}elseif( is_plugin_active_for_network( $init ) ){
441
printf( __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox yit-changelog-button" title="%3$s">View version %4$s details</a>. <em>You have to activate the plugin on a single site of the network to benefit from automatic updates.</em>', 'yith-plugin-fw' ), $this->_plugins[ $init ]['info']['Name'], esc_url( $details_url ), esc_attr( $this->_plugins[ $init ]['info']['Name'] ), $r->new_version );
442
}elseif ( empty( $r->package ) ) {
443
- printf( __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox yit-changelog-button" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this plugin, please <a href="%5$s" title="Licence activation">activate</a> your copy of %6s.</em>', 'yith-plugin-fw' ), $this->_plugins[ $init ]['info']['Name'], esc_url( $details_url ), esc_attr( $this->_plugins[ $init ]['info']['Name'] ), $r->new_version, YIT_Plugin_Licence()->get_licence_activation_page_url(), $this->_plugins[ $init ]['info']['Name'] );
444
} else {
445
printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox yit-changelog-button" title="%3$s">View version %4$s details</a> or <a href="%5$s">update now</a>.', 'yith-plugin-fw'), $this->_plugins[ $init ]['info']['Name'], esc_url($details_url), esc_attr( $this->_plugins[ $init ]['info']['Name'] ), $r->new_version, wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin&plugin=') . $init, 'upgrade-plugin_' . $init ) );
446
}
60
add_action( 'admin_enqueue_scripts', array( $this, 'network_admin_enqueue_scripts' ) );
61
}
62
63
+ $is_debug_enabled = defined( 'YIT_LICENCE_DEBUG' ) && YIT_LICENCE_DEBUG;
64
+ if ( $is_debug_enabled ) {
65
+ $this->_package_url = defined( 'YIT_LICENCE_DEBUG_LOCALHOST' ) ? YIT_LICENCE_DEBUG_LOCALHOST : 'http://dev.yithemes.com';
66
+ add_filter( 'block_local_requests', '__return_false' );
67
}
68
}
69
131
);
132
133
foreach( $this->_plugins as $init => $info ){
134
+ YIT_Plugin_Licence()->check( $init, false );
135
136
$update_url[ $init ] = wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin-multisite&plugin=') . $init, 'upgrade-plugin-multisite_' . $init );
137
$changelog_id = str_replace( array( '/', '.php', '.' ), array( '-', '', '-' ), $init );
159
yit_enqueue_style( 'yit-upgrader', YIT_CORE_PLUGIN_URL . '/assets/css/yit-upgrader.css' );
160
}
161
162
/**
163
* Retrive the zip package file
164
*
170
*
171
* @since 1.0
172
* @see wp-admin/includes/class-wp-upgrader.php
173
+ * @access public
174
* @author Andrea Grillo <andrea.grillo@yithemes.com>
175
*/
176
+ public function upgrader_pre_download( $reply, $package, $upgrader ) {
177
$plugin = false;
178
$is_bulk = $upgrader->skin instanceof Bulk_Plugin_Upgrader_Skin;
179
231
return new WP_Error( 'no_package', $upgrader->strings['no_package'] );
232
}
233
234
+ $upgrader->skin->feedback( 'downloading_package', __( 'YIThemes Repository', 'yith-plugin-fw' ) );
235
236
$download_file = $this->_download_url( $package, $args );
237
424
}elseif( is_plugin_active_for_network( $init ) ){
425
printf( __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox yit-changelog-button" title="%3$s">View version %4$s details</a>. <em>You have to activate the plugin on a single site of the network to benefit from automatic updates.</em>', 'yith-plugin-fw' ), $this->_plugins[ $init ]['info']['Name'], esc_url( $details_url ), esc_attr( $this->_plugins[ $init ]['info']['Name'] ), $r->new_version );
426
}elseif ( empty( $r->package ) ) {
427
+ printf( __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox yit-changelog-button" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this plugin, please <a href="%5$s" title="License activation">activate</a> your copy of %6s.</em>', 'yith-plugin-fw' ), $this->_plugins[ $init ]['info']['Name'], esc_url( $details_url ), esc_attr( $this->_plugins[ $init ]['info']['Name'] ), $r->new_version, YIT_Plugin_Licence()->get_licence_activation_page_url(), $this->_plugins[ $init ]['info']['Name'] );
428
} else {
429
printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox yit-changelog-button" title="%3$s">View version %4$s details</a> or <a href="%5$s">update now</a>.', 'yith-plugin-fw'), $this->_plugins[ $init ]['info']['Name'], esc_url($details_url), esc_attr( $this->_plugins[ $init ]['info']['Name'] ), $r->new_version, wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin&plugin=') . $init, 'upgrade-plugin_' . $init ) );
430
}
plugin-fw/licence/assets/css/yit-licence.css CHANGED
@@ -23,6 +23,7 @@
23
24
.yit-container.product-licence-activation .to-active-wrapper {
25
margin-bottom: 60px;
26
}
27
28
.yit-container.product-licence-activation .to-active-wrapper form.to-active-form {
@@ -121,17 +122,13 @@
121
vertical-align: top;
122
}
123
124
- .yit-container.product-licence-activation .spinner.show{
125
- display: inline-block;
126
- vertical-align: middle;
127
float: none;
128
}
129
130
- .yit-container.product-licence-activation h3.to-active > .spinner.show {
131
- display: inline-block;
132
- float: none;
133
- top: -3px;
134
- position: relative;
135
}
136
137
.yit-container.product-licence-activation .licence-check-section{
@@ -176,18 +173,24 @@
176
padding: 12px 19px;
177
}
178
179
.yit-container.product-licence-activation .button-licence.licence-renew {
180
text-decoration: none;
181
padding: 7px 12px;
182
font-size: 9px;
183
}
184
185
.yit-container.product-licence-activation .button-licence.licence-renew:focus {
186
box-shadow: none;
187
}
188
189
.yit-container.product-licence-activation table:not(.to-active-table) {
190
- width: 100%;
191
border: 1px solid #dcdcdc;
192
border-spacing: 0;
193
border-radius: 5px;
@@ -197,12 +200,18 @@
197
198
.yit-container.product-licence-activation table:not(.to-active-table) th {
199
border-bottom: 1px solid #dcdcdc;
200
}
201
202
.yit-container.product-licence-activation table:not(.to-active-table) td,
203
.yit-container.product-licence-activation table:not(.to-active-table) th {
204
border-right: 1px solid #dcdcdc;
205
}
206
.yit-container.product-licence-activation table td:last-child,
207
.yit-container.product-licence-activation table th:last-child {
208
border-right: 0;
@@ -216,8 +225,12 @@
216
background-color: #ffffff;
217
}
218
219
.yit-container.product-licence-activation table thead tr th {
220
- font-size: 13px;
221
color: #313131;
222
text-transform: uppercase;
223
font-weight: bold;
@@ -228,6 +241,14 @@
228
line-height: 60px;
229
}
230
231
.yit-container.product-licence-activation table tbody tr td{
232
text-align: center;
233
line-height: 20px;
@@ -260,15 +281,17 @@
260
width: 33%;
261
}
262
263
-
264
- .yit-container.product-licence-activation .to-active-table td.product-name {
265
color: #808a97;
266
font-size: 12px;
267
text-transform: uppercase;
268
font-weight: bold;
269
line-height: 20px;
270
width: 20%;
271
- padding-left: 20px;
272
}
273
274
.yit-container.product-licence-activation .to-active-table td.activate-button {
@@ -302,15 +325,12 @@
302
box-shadow: 0 0 1px rgba(30,140,190,.8);
303
}
304
305
- .yit-container.product-licence-activation input[type=text]{
306
text-transform: uppercase;
307
text-align: center;
308
}
309
310
- .yit-container.product-licence-activation input[type=email] {
311
- text-align: left;
312
- }
313
-
314
.yit-container.product-licence-activation input[type=submit]:focus{
315
outline: 0;
316
}
@@ -328,19 +348,88 @@
328
color: #808a97;
329
}
330
331
/* === Responsive === */
332
333
- @media (max-width: 767px) {}
334
335
- @media (max-width: 480px) {}
336
337
- @media (min-width: 768px) and (max-width: 992px) {}
338
339
- @media (min-width: 980px) and (max-width: 1199px) {}
340
341
@media (min-width: 1200px) {
342
.yit-container.product-licence-activation{
343
- width: 900px;
344
}
345
}
346
23
24
.yit-container.product-licence-activation .to-active-wrapper {
25
margin-bottom: 60px;
26
+ max-width: 900px;
27
}
28
29
.yit-container.product-licence-activation .to-active-wrapper form.to-active-form {
122
vertical-align: top;
123
}
124
125
+ .yit-container.product-licence-activation .spinner{
126
+ vertical-align: -5px;
127
float: none;
128
}
129
130
+ .yit-container.product-licence-activation .spinner.show{
131
+ visibility: visible;
132
}
133
134
.yit-container.product-licence-activation .licence-check-section{
173
padding: 12px 19px;
174
}
175
176
+ .yit-container.product-licence-activation .button-licence.licence-deactive,
177
.yit-container.product-licence-activation .button-licence.licence-renew {
178
text-decoration: none;
179
padding: 7px 12px;
180
font-size: 9px;
181
}
182
183
+ .yit-container.product-licence-activation table:not(.expired-table) .button-licence.licence-renew {
184
+ margin-left: 10px;
185
+ }
186
+
187
+ .yit-container.product-licence-activation .button-licence.licence-deactive:focus,
188
.yit-container.product-licence-activation .button-licence.licence-renew:focus {
189
box-shadow: none;
190
}
191
192
.yit-container.product-licence-activation table:not(.to-active-table) {
193
+ width: auto;
194
border: 1px solid #dcdcdc;
195
border-spacing: 0;
196
border-radius: 5px;
200
201
.yit-container.product-licence-activation table:not(.to-active-table) th {
202
border-bottom: 1px solid #dcdcdc;
203
+ padding: 0 10px;
204
+ }
205
+
206
+ .yit-container.product-licence-activation table tbody tr td.product-licence-key {
207
+ text-transform: lowercase;
208
}
209
210
.yit-container.product-licence-activation table:not(.to-active-table) td,
211
.yit-container.product-licence-activation table:not(.to-active-table) th {
212
border-right: 1px solid #dcdcdc;
213
}
214
+
215
.yit-container.product-licence-activation table td:last-child,
216
.yit-container.product-licence-activation table th:last-child {
217
border-right: 0;
225
background-color: #ffffff;
226
}
227
228
+ .yit-container.product-licence-activation table tbody tr:nth-child(2n) {
229
+ background-color: #f4f4f4;
230
+ }
231
+
232
.yit-container.product-licence-activation table thead tr th {
233
+ font-size: 11px;
234
color: #313131;
235
text-transform: uppercase;
236
font-weight: bold;
241
line-height: 60px;
242
}
243
244
+ .yit-container.product-licence-activation table tbody tr td.product-licence-membership .dashicons-no-alt {
245
+ color: #b20015;
246
+ }
247
+
248
+ .yit-container.product-licence-activation table tbody tr td.product-licence-membership .dashicons-yes {
249
+ color: #1ca800;
250
+ }
251
+
252
.yit-container.product-licence-activation table tbody tr td{
253
text-align: center;
254
line-height: 20px;
281
width: 33%;
282
}
283
284
+ .yit-container.product-licence-activation td.product-name {
285
color: #808a97;
286
font-size: 12px;
287
text-transform: uppercase;
288
font-weight: bold;
289
line-height: 20px;
290
+ padding: 10px 20px;
291
+ }
292
+
293
+ .yit-container.product-licence-activation .to-active-table td.product-name {
294
width: 20%;
295
}
296
297
.yit-container.product-licence-activation .to-active-table td.activate-button {
325
box-shadow: 0 0 1px rgba(30,140,190,.8);
326
}
327
328
+ .yit-container.product-licence-activation input[type=text],
329
+ .yit-container.product-licence-activation input[type=email]{
330
text-transform: uppercase;
331
text-align: center;
332
}
333
334
.yit-container.product-licence-activation input[type=submit]:focus{
335
outline: 0;
336
}
348
color: #808a97;
349
}
350
351
+ #yith-licence-notice {
352
+ margin-left: 0;
353
+ visibility: hidden;
354
+ min-height: 38px;
355
+ }
356
+
357
+ #yith-licence-notice.visible {
358
+ visibility: visible;
359
+ }
360
+
361
/* === Responsive === */
362
363
+ @media (max-width: 767px) {
364
+ .yit-container.product-licence-activation .activation-faq {
365
+ margin-right: 5px;
366
+ }
367
+ }
368
+
369
+ @media (max-width: 480px) {
370
+ .yit-container.product-licence-activation .activation-faq {
371
+ margin-right: 5px;
372
+ }
373
+ }
374
+
375
+ @media (min-width: 768px) and (max-width: 992px) {
376
+ .yit-container.product-licence-activation .button-licence.licence-deactive,
377
+ .yit-container.product-licence-activation .button-licence.licence-renew {
378
+ margin-bottom: 10px;
379
+ display: block;
380
+ margin-left: 0;
381
+ padding: 5px 7px;
382
+ }
383
+
384
+ .yit-container.product-licence-activation .button-licence.licence-deactive {
385
+ margin-bottom: 10px;
386
+ }
387
+
388
+ .yit-container.product-licence-activation table:not(.to-active-table) th {
389
+ line-height: 20px;
390
+ }
391
+
392
+ .yit-container.product-licence-activation table tbody tr td {
393
+ padding: 5px;
394
+ }
395
+
396
+ .yit-container.product-licence-activation .activation-faq {
397
+ margin-right: 20px;
398
+ }
399
+ }
400
+
401
+ @media (min-width: 980px) and (max-width: 1199px) {
402
+ .yit-container.product-licence-activation .button-licence.licence-deactive,
403
+ .yit-container.product-licence-activation .button-licence.licence-renew {
404
+ display: block;
405
+ margin-left: 0;
406
+ padding: 5px 7px;
407
+ }
408
+
409
+ .yit-container.product-licence-activation .button-licence.licence-renew {
410
+ margin-top: 10px;
411
+ }
412
413
+ .yit-container.product-licence-activation table:not(.to-active-table) th {
414
+ line-height: 20px;
415
+ }
416
417
+ .yit-container.product-licence-activation table tbody tr td {
418
+ padding: 5px;
419
+ }
420
421
+ .yit-container.product-licence-activation .activation-faq {
422
+ width: 75%;
423
+ }
424
+ }
425
426
@media (min-width: 1200px) {
427
.yit-container.product-licence-activation{
428
+ width: auto;
429
+ }
430
+
431
+ .yit-container.product-licence-activation .activation-faq {
432
+ width: 50%;
433
}
434
}
435
plugin-fw/licence/assets/js/yit-licence.js CHANGED
@@ -16,20 +16,21 @@
16
button.on('click', function (e, button) {
17
e.preventDefault();
18
19
- var t = $(this),
20
- form_id = t.data('formid'),
21
- form = $('#' + form_id),
22
- data = form.serialize(),
23
- message = $(form).find('.message'),
24
- message_wrapper = $(form).find('.message-wrapper'),
25
- email = form.find('.user-email'),
26
- licence_key = form.find('.licence-key'),
27
- email_val = form.find('.user-email').val(),
28
- licence_key_val = form.find('.licence-key').val(),
29
- error = false,
30
- error_fields = new Array(),
31
- product_row = form.find('.product-row'),
32
- spinner = $('h3.to-active').find('.spinner');
33
34
/* Init Input Fields */
35
message.empty();
@@ -38,17 +39,17 @@
38
licence_key.removeClass('require');
39
product_row.removeClass('error');
40
spinner.addClass('show');
41
- t.prop("disabled", true).addClass('clicked');
42
43
if ('' == email_val) {
44
error = true;
45
- error_fields[ error_fields.length ] = 'Email';
46
email.addClass('require');
47
}
48
49
if ('' == licence_key_val) {
50
error = true;
51
- error_fields[ error_fields.length ] = 'Licence Key';
52
licence_key.addClass('require');
53
}
54
@@ -60,7 +61,7 @@
60
success: function (response) {
61
62
spinner.removeClass('show');
63
- t.prop("disabled", false).removeClass('clicked');
64
65
if (true == response.activated) {
66
$('.product-licence-activation').empty().replaceWith(response.template);
@@ -93,10 +94,10 @@
93
}
94
95
spinner.removeClass('show');
96
- t.prop("disabled", false).removeClass('clicked');
97
}
98
});
99
- }
100
101
var licence_update = function (button) {
102
button.on('click', function (e) {
@@ -119,21 +120,77 @@
119
}
120
});
121
});
122
- }