YITH WooCommerce Ajax Search - Version 1.3.1

Version Description

  • Updated: Renamed Autocomplete function with YithAutocomplete
Download this release

Release Info

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

Code changes from version 1.3.0 to 1.3.1

Files changed (49) hide show
  1. README.txt +9 -1
  2. assets/js/devbridge-jquery-autocomplete.js +20 -20
  3. assets/js/devbridge-jquery-autocomplete.min.js +3 -3
  4. assets/js/frontend.js +1 -1
  5. assets/js/frontend.min.js +1 -1
  6. class.yith-wcas.php +1 -0
  7. init.php +2 -2
  8. plugin-fw/assets/css/metaboxes.css +12 -1
  9. plugin-fw/assets/js/metabox.js +18 -14
  10. plugin-fw/assets/js/metabox.min.js +4 -4
  11. plugin-fw/assets/js/yit-plugin-panel.js +49 -22
  12. plugin-fw/assets/js/yit-plugin-panel.min.js +10 -9
  13. plugin-fw/assets/js/yit-wp-pointer.js +1 -1
  14. plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
  15. plugin-fw/languages/yith-plugin-fw-it_IT.po +988 -0
  16. plugin-fw/languages/yith-plugin-fw.pot +920 -0
  17. plugin-fw/lib/yit-cpt-unlimited.php +61 -61
  18. plugin-fw/lib/yit-metabox.php +8 -6
  19. plugin-fw/lib/yit-plugin-common.php +1 -0
  20. plugin-fw/lib/yit-plugin-panel-wc.php +1 -1
  21. plugin-fw/lib/yit-plugin-panel.php +18 -17
  22. plugin-fw/lib/yit-plugin-subpanel.php +5 -4
  23. plugin-fw/lib/yit-pointers.php +8 -8
  24. plugin-fw/lib/yit-upgrade.php +12 -12
  25. plugin-fw/lib/yit-video.php +14 -8
  26. plugin-fw/licence/lib/yit-licence.php +11 -11
  27. plugin-fw/licence/lib/yit-plugin-licence.php +6 -2
  28. plugin-fw/licence/lib/yit-theme-licence.php +6 -6
  29. plugin-fw/licence/templates/panel/activation/activation-panel.php +27 -27
  30. plugin-fw/templates/metaboxes/types/ajax-products.php +1 -1
  31. plugin-fw/templates/metaboxes/types/categories.php +2 -2
  32. plugin-fw/templates/metaboxes/types/contactform.php +72 -72
  33. plugin-fw/templates/metaboxes/types/customtabs.php +11 -11
  34. plugin-fw/templates/metaboxes/types/icon-list.php +4 -4
  35. plugin-fw/templates/metaboxes/types/image-gallery.php +2 -2
  36. plugin-fw/templates/metaboxes/types/images.php +4 -4
  37. plugin-fw/templates/metaboxes/types/preview.php +19 -0
  38. plugin-fw/templates/metaboxes/types/responsivesliders.php +1 -1
  39. plugin-fw/templates/metaboxes/types/select-icon.php +2 -2
  40. plugin-fw/templates/metaboxes/types/sidebar-layout.php +4 -4
  41. plugin-fw/templates/metaboxes/types/sidebars.php +8 -8
  42. plugin-fw/templates/metaboxes/types/typography.php +13 -13
  43. plugin-fw/templates/metaboxes/types/upload.php +1 -1
  44. plugin-fw/templates/panel/infobox.php +2 -2
  45. plugin-fw/templates/panel/types/upload.php +1 -1
  46. plugin-fw/templates/panel/videobox.php +7 -7
  47. plugin-fw/templates/panel/woocommerce/woocommerce-form.php +3 -3
  48. plugin-fw/templates/panel/woocommerce/woocommerce-upload.php +1 -1
  49. plugin-fw/yit-plugin.php +6 -0
README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: ajax, 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.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -62,6 +62,10 @@ If you have created your own language pack, or have an update for an existing on
62
 
63
  == Changelog ==
64
 
 
 
 
 
65
  = 1.3.0 =
66
 
67
  * Added: Wordpress 4.2 compatibility
@@ -129,6 +133,10 @@ If you have created your own language pack, or have an update for an existing on
129
 
130
 
131
  == Upgrade notice ==
 
 
 
 
132
  = 1.3.0 =
133
 
134
  * Added: Wordpress 4.2 compatibility
4
  Tags: ajax, 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.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
62
 
63
  == Changelog ==
64
 
65
+ = 1.3.1 =
66
+
67
+ * Updated: Renamed Autocomplete function with YithAutocomplete
68
+
69
  = 1.3.0 =
70
 
71
  * Added: Wordpress 4.2 compatibility
133
 
134
 
135
  == Upgrade notice ==
136
+ = 1.3.1 =
137
+
138
+ * Updated: Renamed Autocomplete function with YithAutocomplete
139
+
140
  = 1.3.0 =
141
 
142
  * Added: Wordpress 4.2 compatibility
assets/js/devbridge-jquery-autocomplete.js CHANGED
@@ -20,9 +20,9 @@
20
  // Browser globals
21
  factory(jQuery);
22
  }
 
23
  }(function ($) {
24
  'use strict';
25
-
26
  var
27
  utils = (function () {
28
  return {
@@ -49,7 +49,7 @@
49
  DOWN: 40
50
  };
51
 
52
- function Autocomplete(el, options) {
53
  var noop = function () { },
54
  that = this,
55
  defaults = {
@@ -63,7 +63,7 @@
63
  maxHeight: 300,
64
  deferRequestBy: 0,
65
  params: {},
66
- formatResult: Autocomplete.formatResult,
67
  delimiter: null,
68
  zIndex: 9999,
69
  type: 'GET',
@@ -115,17 +115,17 @@
115
  that.setOptions(options);
116
  }
117
 
118
- Autocomplete.utils = utils;
119
 
120
- $.Autocomplete = Autocomplete;
121
 
122
- Autocomplete.formatResult = function (suggestion, currentValue) {
123
  var pattern = '(' + utils.escapeRegExChars(currentValue) + ')';
124
-
125
  return suggestion.value.replace(new RegExp(pattern, 'gi'), '<strong>$1<\/strong>');
126
  };
127
 
128
- Autocomplete.prototype = {
 
129
  killerFn: null,
130
 
131
  initialize: function () {
@@ -145,7 +145,7 @@
145
  }
146
  };
147
 
148
- that.suggestionsContainer = Autocomplete.utils.createNode(options.containerClass);
149
 
150
  container = $(that.suggestionsContainer);
151
 
@@ -507,14 +507,14 @@
507
  type: options.type,
508
  dataType: options.dataType
509
  }).done(function (data) {
510
- var result;
511
- that.currentRequest = null;
512
- result = options.transformResult(data);
513
- that.processResponse(result, q, cacheKey);
514
- options.onSearchComplete.call(that.element, q, result.suggestions);
515
- }).fail(function (jqXHR, textStatus, errorThrown) {
516
- options.onSearchError.call(that.element, q, jqXHR, textStatus, errorThrown);
517
- });
518
  }
519
  },
520
 
@@ -826,9 +826,9 @@
826
  $(that.suggestionsContainer).remove();
827
  }
828
  };
829
-
830
  // Create chainable jQuery plugin:
831
- $.fn.autocomplete = function (options, args) {
832
  var dataKey = 'autocomplete';
833
  // If function invoked without argument return
834
  // instance of the first matched element:
@@ -849,7 +849,7 @@
849
  if (instance && instance.dispose) {
850
  instance.dispose();
851
  }
852
- instance = new Autocomplete(this, options);
853
  inputElement.data(dataKey, instance);
854
  }
855
  });
20
  // Browser globals
21
  factory(jQuery);
22
  }
23
+
24
  }(function ($) {
25
  'use strict';
 
26
  var
27
  utils = (function () {
28
  return {
49
  DOWN: 40
50
  };
51
 
52
+ function YithAutocomplete(el, options) {
53
  var noop = function () { },
54
  that = this,
55
  defaults = {
63
  maxHeight: 300,
64
  deferRequestBy: 0,
65
  params: {},
66
+ formatResult: YithAutocomplete.formatResult,
67
  delimiter: null,
68
  zIndex: 9999,
69
  type: 'GET',
115
  that.setOptions(options);
116
  }
117
 
118
+ YithAutocomplete.utils = utils;
119
 
120
+ $.YithAutocomplete = YithAutocomplete;
121
 
122
+ YithAutocomplete.formatResult = function (suggestion, currentValue) {
123
  var pattern = '(' + utils.escapeRegExChars(currentValue) + ')';
 
124
  return suggestion.value.replace(new RegExp(pattern, 'gi'), '<strong>$1<\/strong>');
125
  };
126
 
127
+ YithAutocomplete.prototype = {
128
+
129
  killerFn: null,
130
 
131
  initialize: function () {
145
  }
146
  };
147
 
148
+ that.suggestionsContainer = YithAutocomplete.utils.createNode(options.containerClass);
149
 
150
  container = $(that.suggestionsContainer);
151
 
507
  type: options.type,
508
  dataType: options.dataType
509
  }).done(function (data) {
510
+ var result;
511
+ that.currentRequest = null;
512
+ result = options.transformResult(data);
513
+ that.processResponse(result, q, cacheKey);
514
+ options.onSearchComplete.call(that.element, q, result.suggestions);
515
+ }).fail(function (jqXHR, textStatus, errorThrown) {
516
+ options.onSearchError.call(that.element, q, jqXHR, textStatus, errorThrown);
517
+ });
518
  }
519
  },
520
 
826
  $(that.suggestionsContainer).remove();
827
  }
828
  };
829
+
830
  // Create chainable jQuery plugin:
831
+ $.fn.yithautocomplete = function (options, args) {
832
  var dataKey = 'autocomplete';
833
  // If function invoked without argument return
834
  // instance of the first matched element:
849
  if (instance && instance.dispose) {
850
  instance.dispose();
851
  }
852
+ instance = new YithAutocomplete(this, options);
853
  inputElement.data(dataKey, instance);
854
  }
855
  });
assets/js/devbridge-jquery-autocomplete.min.js CHANGED
@@ -1,7 +1,7 @@
1
  (function(d){"function"===typeof define&&define.amd?define(["jquery"],d):d(jQuery)})(function(d){function g(a,b){var c=function(){},c={autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:g.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:c,onSearchComplete:c,onSearchError:c,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,
2
  preventBadQueries:!0,lookupFilter:function(a,b,c){return-1!==a.value.toLowerCase().indexOf(c)},paramName:"query",transformResult:function(a){return"string"===typeof a?d.parseJSON(a):a},showNoSuggestionNotice:!1,noSuggestionNotice:"No results"};this.element=a;this.el=d(a);this.suggestions=[];this.badQueries=[];this.selectedIndex=-1;this.currentValue=this.element.value;this.intervalId=0;this.cachedResponse={};this.onChange=this.onChangeInterval=null;this.isLocal=!1;this.suggestionsContainer=null;this.options=
3
- d.extend({},c,b);this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"};this.hint=null;this.hintValue="";this.selection=null;this.initialize();this.setOptions(b)}var h=function(){return{escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(a){var b=document.createElement("div");b.className=a;b.style.position="absolute";b.style.display="none";return b}}}();g.utils=h;d.Autocomplete=g;g.formatResult=function(a,b){var c=
4
- "("+h.escapeRegExChars(b)+")";return a.value.replace(new RegExp(c,"gi"),"<strong>$1</strong>")};g.prototype={killerFn:null,initialize:function(){var a=this,b="."+a.classes.suggestion,c=a.classes.selected,e=a.options,f;a.element.setAttribute("autocomplete","off");a.killerFn=function(b){0===d(b.target).closest("."+a.options.containerClass).length&&(a.killSuggestions(),a.disableKillerFn())};a.suggestionsContainer=g.utils.createNode(e.containerClass);f=d(a.suggestionsContainer);f.appendTo(e.appendTo);
5
  "auto"!==e.width&&f.width(e.width);f.on("mouseover.autocomplete",b,function(){a.activate(d(this).data("index"))});f.on("mouseout.autocomplete",function(){a.selectedIndex=-1;f.children("."+c).removeClass(c)});f.on("click.autocomplete",b,function(){a.select(d(this).data("index"))});a.fixPosition();a.fixPositionCapture=function(){a.visible&&a.fixPosition()};d(window).on("resize.autocomplete",a.fixPositionCapture);a.el.on("keydown.autocomplete",function(b){a.onKeyPress(b)});a.el.on("keyup.autocomplete",
6
  function(b){a.onKeyUp(b)});a.el.on("blur.autocomplete",function(){a.onBlur()});a.el.on("focus.autocomplete",function(){a.onFocus()});a.el.on("change.autocomplete",function(b){a.onKeyUp(b)})},onFocus:function(){this.fixPosition();if(this.options.minChars<=this.el.val().length)this.onValueChange()},onBlur:function(){this.enableKillerFn()},setOptions:function(a){var b=this.options;d.extend(b,a);if(this.isLocal=d.isArray(b.lookup))b.lookup=this.verifySuggestionsFormat(b.lookup);d(this.suggestionsContainer).css({"max-height":b.maxHeight+
7
  "px",width:b.width+"px","z-index":b.zIndex})},clearCache:function(){this.cachedResponse={};this.badQueries=[]},clear:function(){this.clearCache();this.currentValue="";this.suggestions=[]},disable:function(){this.disabled=!0;this.currentRequest&&this.currentRequest.abort()},enable:function(){this.disabled=!1},fixPosition:function(){var a;"body"===this.options.appendTo&&(a=this.el.offset(),a={top:a.top+this.el.outerHeight()+"px",left:a.left+"px"},"auto"===this.options.width&&(a.width=this.el.outerWidth()-
@@ -18,5 +18,5 @@ h.call(this.element,g);g.show();this.visible=!0;this.findBestHint()}},noSuggesti
18
  d.noCache||(this.cachedResponse[c]=a,d.preventBadQueries&&0===a.suggestions.length&&this.badQueries.push(b));b===this.getQuery(this.currentValue)&&(this.suggestions=a.suggestions,this.suggest())},activate:function(a){var b=this.classes.selected,c=d(this.suggestionsContainer),e=c.children();c.children("."+b).removeClass(b);this.selectedIndex=a;return-1!==this.selectedIndex&&e.length>this.selectedIndex?(a=e.get(this.selectedIndex),d(a).addClass(b),a):null},selectHint:function(){var a=d.inArray(this.hint,
19
  this.suggestions);this.select(a)},select:function(a){this.hide();this.onSelect(a)},moveUp:function(){-1!==this.selectedIndex&&(0===this.selectedIndex?(d(this.suggestionsContainer).children().first().removeClass(this.classes.selected),this.selectedIndex=-1,this.el.val(this.currentValue),this.findBestHint()):this.adjustScroll(this.selectedIndex-1))},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(a){var b=this.activate(a),
20
  c,e;b&&(b=b.offsetTop,c=d(this.suggestionsContainer).scrollTop(),e=c+this.options.maxHeight-25,b<c?d(this.suggestionsContainer).scrollTop(b):b>e&&d(this.suggestionsContainer).scrollTop(b-this.options.maxHeight+25),this.el.val(this.getValue(this.suggestions[a].value)),this.signalHint(null))},onSelect:function(a){var b=this.options.onSelect;a=this.suggestions[a];this.currentValue=this.getValue(a.value);this.currentValue!==this.el.val()&&this.el.val(this.currentValue);this.signalHint(null);this.suggestions=
21
- [];this.selection=a;d.isFunction(b)&&b.call(this.element,a)},getValue:function(a){var b=this.options.delimiter,c;if(!b)return a;c=this.currentValue;b=c.split(b);return 1===b.length?a:c.substr(0,c.length-b[b.length-1].length)+a},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete");this.disableKillerFn();d(window).off("resize.autocomplete",this.fixPositionCapture);d(this.suggestionsContainer).remove()}};d.fn.autocomplete=function(a,b){return 0===arguments.length?this.first().data("autocomplete"):
22
  this.each(function(){var c=d(this),e=c.data("autocomplete");if("string"===typeof a){if(e&&"function"===typeof e[a])e[a](b)}else e&&e.dispose&&e.dispose(),e=new g(this,a),c.data("autocomplete",e)})}});
1
  (function(d){"function"===typeof define&&define.amd?define(["jquery"],d):d(jQuery)})(function(d){function g(a,b){var c=function(){},c={autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:g.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:c,onSearchComplete:c,onSearchError:c,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,
2
  preventBadQueries:!0,lookupFilter:function(a,b,c){return-1!==a.value.toLowerCase().indexOf(c)},paramName:"query",transformResult:function(a){return"string"===typeof a?d.parseJSON(a):a},showNoSuggestionNotice:!1,noSuggestionNotice:"No results"};this.element=a;this.el=d(a);this.suggestions=[];this.badQueries=[];this.selectedIndex=-1;this.currentValue=this.element.value;this.intervalId=0;this.cachedResponse={};this.onChange=this.onChangeInterval=null;this.isLocal=!1;this.suggestionsContainer=null;this.options=
3
+ d.extend({},c,b);this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"};this.hint=null;this.hintValue="";this.selection=null;this.initialize();this.setOptions(b)}var h=function(){return{escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(a){var b=document.createElement("div");b.className=a;b.style.position="absolute";b.style.display="none";return b}}}();g.utils=h;d.YithAutocomplete=g;g.formatResult=function(a,
4
+ b){var c="("+h.escapeRegExChars(b)+")";return a.value.replace(new RegExp(c,"gi"),"<strong>$1</strong>")};g.prototype={killerFn:null,initialize:function(){var a=this,b="."+a.classes.suggestion,c=a.classes.selected,e=a.options,f;a.element.setAttribute("autocomplete","off");a.killerFn=function(b){0===d(b.target).closest("."+a.options.containerClass).length&&(a.killSuggestions(),a.disableKillerFn())};a.suggestionsContainer=g.utils.createNode(e.containerClass);f=d(a.suggestionsContainer);f.appendTo(e.appendTo);
5
  "auto"!==e.width&&f.width(e.width);f.on("mouseover.autocomplete",b,function(){a.activate(d(this).data("index"))});f.on("mouseout.autocomplete",function(){a.selectedIndex=-1;f.children("."+c).removeClass(c)});f.on("click.autocomplete",b,function(){a.select(d(this).data("index"))});a.fixPosition();a.fixPositionCapture=function(){a.visible&&a.fixPosition()};d(window).on("resize.autocomplete",a.fixPositionCapture);a.el.on("keydown.autocomplete",function(b){a.onKeyPress(b)});a.el.on("keyup.autocomplete",
6
  function(b){a.onKeyUp(b)});a.el.on("blur.autocomplete",function(){a.onBlur()});a.el.on("focus.autocomplete",function(){a.onFocus()});a.el.on("change.autocomplete",function(b){a.onKeyUp(b)})},onFocus:function(){this.fixPosition();if(this.options.minChars<=this.el.val().length)this.onValueChange()},onBlur:function(){this.enableKillerFn()},setOptions:function(a){var b=this.options;d.extend(b,a);if(this.isLocal=d.isArray(b.lookup))b.lookup=this.verifySuggestionsFormat(b.lookup);d(this.suggestionsContainer).css({"max-height":b.maxHeight+
7
  "px",width:b.width+"px","z-index":b.zIndex})},clearCache:function(){this.cachedResponse={};this.badQueries=[]},clear:function(){this.clearCache();this.currentValue="";this.suggestions=[]},disable:function(){this.disabled=!0;this.currentRequest&&this.currentRequest.abort()},enable:function(){this.disabled=!1},fixPosition:function(){var a;"body"===this.options.appendTo&&(a=this.el.offset(),a={top:a.top+this.el.outerHeight()+"px",left:a.left+"px"},"auto"===this.options.width&&(a.width=this.el.outerWidth()-
18
  d.noCache||(this.cachedResponse[c]=a,d.preventBadQueries&&0===a.suggestions.length&&this.badQueries.push(b));b===this.getQuery(this.currentValue)&&(this.suggestions=a.suggestions,this.suggest())},activate:function(a){var b=this.classes.selected,c=d(this.suggestionsContainer),e=c.children();c.children("."+b).removeClass(b);this.selectedIndex=a;return-1!==this.selectedIndex&&e.length>this.selectedIndex?(a=e.get(this.selectedIndex),d(a).addClass(b),a):null},selectHint:function(){var a=d.inArray(this.hint,
19
  this.suggestions);this.select(a)},select:function(a){this.hide();this.onSelect(a)},moveUp:function(){-1!==this.selectedIndex&&(0===this.selectedIndex?(d(this.suggestionsContainer).children().first().removeClass(this.classes.selected),this.selectedIndex=-1,this.el.val(this.currentValue),this.findBestHint()):this.adjustScroll(this.selectedIndex-1))},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(a){var b=this.activate(a),
20
  c,e;b&&(b=b.offsetTop,c=d(this.suggestionsContainer).scrollTop(),e=c+this.options.maxHeight-25,b<c?d(this.suggestionsContainer).scrollTop(b):b>e&&d(this.suggestionsContainer).scrollTop(b-this.options.maxHeight+25),this.el.val(this.getValue(this.suggestions[a].value)),this.signalHint(null))},onSelect:function(a){var b=this.options.onSelect;a=this.suggestions[a];this.currentValue=this.getValue(a.value);this.currentValue!==this.el.val()&&this.el.val(this.currentValue);this.signalHint(null);this.suggestions=
21
+ [];this.selection=a;d.isFunction(b)&&b.call(this.element,a)},getValue:function(a){var b=this.options.delimiter,c;if(!b)return a;c=this.currentValue;b=c.split(b);return 1===b.length?a:c.substr(0,c.length-b[b.length-1].length)+a},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete");this.disableKillerFn();d(window).off("resize.autocomplete",this.fixPositionCapture);d(this.suggestionsContainer).remove()}};d.fn.yithautocomplete=function(a,b){return 0===arguments.length?this.first().data("autocomplete"):
22
  this.each(function(){var c=d(this),e=c.data("autocomplete");if("string"===typeof a){if(e&&"function"===typeof e[a])e[a](b)}else e&&e.dispose&&e.dispose(),e=new g(this,a),c.data("autocomplete",e)})}});
assets/js/frontend.js CHANGED
@@ -28,7 +28,7 @@ jQuery(document).ready(function ($) {
28
  var $t = $(this),
29
  append_to = ( typeof $t.data('append-to') == 'undefined') ? $t.closest('.yith-ajaxsearchform-container') : $t.data('append-to');
30
 
31
- el.autocomplete({
32
  minChars : min_chars,
33
  appendTo : append_to,
34
  serviceUrl : woocommerce_params.ajax_url + '?action=yith_ajax_search_products',
28
  var $t = $(this),
29
  append_to = ( typeof $t.data('append-to') == 'undefined') ? $t.closest('.yith-ajaxsearchform-container') : $t.data('append-to');
30
 
31
+ el.yithautocomplete({
32
  minChars : min_chars,
33
  appendTo : append_to,
34
  serviceUrl : woocommerce_params.ajax_url + '?action=yith_ajax_search_products',
assets/js/frontend.min.js CHANGED
@@ -1,2 +1,2 @@
1
  jQuery(document).ready(function(b){var a=b(".yith-s"),c="undefined"!=typeof woocommerce_params&&"undefined"!=typeof woocommerce_params.ajax_loader_url?woocommerce_params.ajax_loader_url:yith_wcas_params.loading,e=""==a.data("loader-icon")?c:a.data("loader-icon"),c=b("#yith-searchsubmit"),f=a.data("min-chars");c.on("click",function(){return""==b(this).closest("form").find(".yith-s").val()?!1:!0});0==a.length&&(a=b("#yith-s"));a.each(function(){var d=b(this),c="undefined"==typeof d.data("append-to")?
2
- d.closest(".yith-ajaxsearchform-container"):d.data("append-to");a.autocomplete({minChars:f,appendTo:c,serviceUrl:woocommerce_params.ajax_url+"?action=yith_ajax_search_products",onSearchStart:function(){b(this).css("background","url("+e+") no-repeat right center")},onSelect:function(a){-1!=a.id&&(window.location.href=a.url)},onSearchComplete:function(){d.css("background","transparent")}})})});
1
  jQuery(document).ready(function(b){var a=b(".yith-s"),c="undefined"!=typeof woocommerce_params&&"undefined"!=typeof woocommerce_params.ajax_loader_url?woocommerce_params.ajax_loader_url:yith_wcas_params.loading,e=""==a.data("loader-icon")?c:a.data("loader-icon"),c=b("#yith-searchsubmit"),f=a.data("min-chars");c.on("click",function(){return""==b(this).closest("form").find(".yith-s").val()?!1:!0});0==a.length&&(a=b("#yith-s"));a.each(function(){var d=b(this),c="undefined"==typeof d.data("append-to")?
2
+ d.closest(".yith-ajaxsearchform-container"):d.data("append-to");a.yithautocomplete({minChars:f,appendTo:c,serviceUrl:woocommerce_params.ajax_url+"?action=yith_ajax_search_products",onSearchStart:function(){b(this).css("background","url("+e+") no-repeat right center")},onSelect:function(a){-1!=a.id&&(window.location.href=a.url)},onSearchComplete:function(){d.css("background","transparent")}})})});
class.yith-wcas.php CHANGED
@@ -51,6 +51,7 @@ if ( !class_exists( 'YITH_WCAS' ) ) {
51
  add_action( 'wp_ajax_nopriv_yith_ajax_search_products', array( $this, 'ajax_search_products' ) );
52
 
53
 
 
54
  //register shortcode
55
  add_shortcode( 'yith_woocommerce_ajax_search', array( $this, 'add_woo_ajax_search_shortcode' ) );
56
 
51
  add_action( 'wp_ajax_nopriv_yith_ajax_search_products', array( $this, 'ajax_search_products' ) );
52
 
53
 
54
+
55
  //register shortcode
56
  add_shortcode( 'yith_woocommerce_ajax_search', array( $this, 'add_woo_ajax_search_shortcode' ) );
57
 
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.0
7
  * Author: Yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yit
@@ -59,7 +59,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
59
  if ( defined( 'YITH_WCAS_VERSION' ) ){
60
  return;
61
  }else{
62
- define( 'YITH_WCAS_VERSION', '1.3.0' );
63
  }
64
 
65
  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.1
7
  * Author: Yithemes
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yit
59
  if ( defined( 'YITH_WCAS_VERSION' ) ){
60
  return;
61
  }else{
62
+ define( 'YITH_WCAS_VERSION', '1.3.1' );
63
  }
64
 
65
  if ( ! defined( 'YITH_WCAS_FREE_INIT' ) ) {
plugin-fw/assets/css/metaboxes.css CHANGED
@@ -595,4 +595,15 @@
595
  .ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:0}
596
  .ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:0}
597
  .ui-widget-overlay{background:#aaa 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}
598
- .ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px}
 
 
 
 
 
 
 
 
 
 
 
595
  .ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:0}
596
  .ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:0}
597
  .ui-widget-overlay{background:#aaa 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}
598
+ .ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px}
599
+
600
+
601
+ .the-metabox.preview{
602
+ float: none;
603
+ }
604
+ .metaboxes-tab .the-metabox.no-label.preview{
605
+ margin-left: 184px;
606
+ }
607
+ .metaboxes-tab .the-metabox.no-label.preview img{
608
+ box-shadow: 0 1px 8px rgba(0,0,0,0.2);
609
+ }
plugin-fw/assets/js/metabox.js CHANGED
@@ -28,7 +28,7 @@
28
 
29
  var t = $(this).attr('href');
30
  $(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
31
- $('.tabs-panel').slideUp('fast');
32
  $(t).delay(350).slideDown('fast');
33
 
34
  return false;
@@ -42,22 +42,26 @@
42
  $(document).on('click', '.metaboxes-tab .upload_button', function(e) {
43
  var send_attachment_bkp = wp.media.editor.send.attachment;
44
  var button = $(this);
45
- var id = button.attr('id').replace('-button', '');
46
- _custom_media = true;
47
- wp.media.editor.send.attachment = function(props, attachment){
48
- if ( _custom_media ) {
49
- if( $("#"+id).is('input[type=text]') ) {
50
- $("#"+id).val(attachment.url);
 
 
 
 
 
51
  } else {
52
- $("#"+id + '_custom').val(attachment.url);
53
- }
54
- } else {
55
- return _orig_send_attachment.apply( this, [props, attachment] );
56
- };
 
57
  }
58
 
59
- wp.media.editor.open(button);
60
- return false;
61
  });
62
 
63
  $('.metaboxes-tab .add_media').on('click', function(){
28
 
29
  var t = $(this).attr('href');
30
  $(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
31
+ $(this).closest('.metaboxes-tab').find('.tabs-panel').slideUp('fast');
32
  $(t).delay(350).slideDown('fast');
33
 
34
  return false;
42
  $(document).on('click', '.metaboxes-tab .upload_button', function(e) {
43
  var send_attachment_bkp = wp.media.editor.send.attachment;
44
  var button = $(this);
45
+ if( typeof button.attr('id') != 'undefined' ) {
46
+
47
+ var id = button.attr('id').replace('-button', '');
48
+ _custom_media = true;
49
+ wp.media.editor.send.attachment = function(props, attachment){
50
+ if ( _custom_media ) {
51
+ if( $("#"+id).is('input[type=text]') ) {
52
+ $("#"+id).val(attachment.url);
53
+ } else {
54
+ $("#"+id + '_custom').val(attachment.url);
55
+ }
56
  } else {
57
+ return _orig_send_attachment.apply( this, [props, attachment] );
58
+ };
59
+ }
60
+
61
+ wp.media.editor.open(button);
62
+ return false;
63
  }
64
 
 
 
65
  });
66
 
67
  $('.metaboxes-tab .add_media').on('click', function(){
plugin-fw/assets/js/metabox.min.js CHANGED
@@ -1,11 +1,11 @@
1
  (function(a){function k(b,c,d){var e=!0;if("string"==typeof c){":radio"==c.substr(0,6)&&(c+=":checked");var g=a(c).val();"checkbox"==a(c).attr("type")&&(g=a(c).is(":checked")?"yes":"no");d=d.split(",");for(c=0;c<d.length;c++)if(g!=d[c])e=!1;else{e=!0;break}}e?a(b+"-container").parent().show():a(b+"-container").parent().hide()}a(".metaboxes-tab").each(function(){a(".tabs-panel",this).hide();var b=wpCookies.get("active_metabox_tab"),b=null==b?a("ul.metaboxes-tabs li:first-child a",this).attr("href"):
2
- "#"+b;a(b).show();a(".metaboxes-tabs a",this).click(function(b){if(a(this).parent().hasClass("tabs"))b.preventDefault();else return b=a(this).attr("href"),a(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),a(".tabs-panel").slideUp("fast"),a(b).delay(350).slideDown("fast"),!1})});var h=!0,l=wp.media.editor.send.attachment;a(document).on("click",".metaboxes-tab .upload_button",function(b){b=a(this);var c=b.attr("id").replace("-button","");h=!0;wp.media.editor.send.attachment=function(b,
3
- e){if(h)a("#"+c).is("input[type=text]")?a("#"+c).val(e.url):a("#"+c+"_custom").val(e.url);else return l.apply(this,[b,e])};wp.media.editor.open(b);return!1});a(".metaboxes-tab .add_media").on("click",function(){h=!1});a(".metaboxes-tab .panel-colorpicker").wpColorPicker({onInit:function(){console.log("test")},change:function(a,c){},clear:function(){var b=a(this);b.val(b.data("default-color"));b.change()}});a(".metaboxes-tab .panel-colorpicker").each(function(){var b=a(this).data("variations-label");
4
- a(this).parent().parent().find("a.wp-color-result").attr("title",b)});a(".metaboxes-tab .panel-datepicker").each(function(){a(this).datepicker()});var f=function(){var b="";a(this).attr("multiple")?(a(this).children("option:selected").each(function(c,d){0!=c&&(b+=", ");b+=a(d).text()}),""==b&&a(this).children().children("option:selected").each(function(c,d){0!=c&&(b+=", ");b+=a(d).text()})):(b=a(this).children("option:selected").text(),""==b&&(b=a(this).children().children("option:selected").text()));
5
  0>=a(this).parent().find("span").length&&a(this).before("<span></span>");a(this).parent().children("span").replaceWith("<span>"+b+"</span>")};a(".metaboxes-tab .select_wrapper select").not(".chosen").each(f).change(f);a(".metaboxes-tab .select_wrapper").click(function(b){b.stopPropagation();a(this).find("select[multiple]").not(".chosen").toggle()});a(".metaboxes-tab .select_wrapper select[multiple]").not(".chosen").click(function(a){a.stopPropagation()});a(window).click(function(){a(".metaboxes-tab .select_wrapper select[multiple]").not(".chosen").hide()});
6
  a(".metaboxes-tab .onoff_container span").on("click",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(".metaboxes-tab .chosen .select_wrapper select").chosen();a(".metaboxes-tab .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"),g=a(this).data("labels");
7
  a(this).slider({value:b,min:c,max:d,range:"min",step:e,slide:function(b,c){a(this).find("input").val(c.value);a(this).siblings(".feedback").find("strong").text(c.value+g)}})});f=a("#_active_page_options-container").parent().html();a("#_active_page_options-container").parent().remove();a(f).insertAfter("#yit-post-setting .handlediv");a(f).insertAfter("#yit-page-setting .handlediv");a("#_active_page_options-container").on("click",function(){a("#_active_page_options").is(":checked")?a("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:1,
8
  "pointer-events":"auto"}):a("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:.5,"pointer-events":"none"})}).click();a(".metaboxes-tab [data-field]").each(function(){var b=a(this),c="#"+b.data("field"),d="#"+b.data("dep"),e=b.data("value");k(c,d,e.toString());a(d).on("change",function(){k(c,d,e.toString())}).change()});a(document).on("click",".image-gallery-button",function(b){var c=a(this);b=c.closest(".image-gallery");var d=b.find(".image_gallery_ids"),
9
  e=d.val(),g=b.find("ul.slides-wrapper"),f=wp.media.frames.image_gallery=wp.media({title:c.data("choose"),button:{text:c.data("update")},states:[new wp.media.controller.Library({title:c.data("choose"),filterable:"all",multiple:!0})]});f.on("select",function(){f.state().get("selection").map(function(a){a=a.toJSON();a.id&&(e=e?e+","+a.id:a.id,g.append('<li class="image" data-attachment_id="'+a.id+'"><img src="'+a.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+c.data("delete")+
10
  '">x</a></li></ul></li>'))});d.val(e)});f.open()});a(".image-gallery ul.slides-wrapper").each(function(){var b=a(this);b.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style")},update:function(c,d){var e="";b.find("li.image").css("cursor","default").each(function(){var b=a(this).attr("data-attachment_id");e=e+b+","});
11
- b.closest(".image-gallery").find(".image_gallery_ids").val(e)}})});a(".image-gallery ul.slides-wrapper").on("click","a.delete",function(){var b=a(this).closest(".image-gallery"),c=a(this).closest(".image-gallery ul.slides-wrapper"),b=b.find(".image_gallery_ids"),d="";a(this).closest("li.image").remove();c.find("li.image").css("cursor","default").each(function(){var b=a(this).attr("data-attachment_id");d=d+b+","});b.val(d);return!1})})(jQuery);
1
  (function(a){function k(b,c,d){var e=!0;if("string"==typeof c){":radio"==c.substr(0,6)&&(c+=":checked");var g=a(c).val();"checkbox"==a(c).attr("type")&&(g=a(c).is(":checked")?"yes":"no");d=d.split(",");for(c=0;c<d.length;c++)if(g!=d[c])e=!1;else{e=!0;break}}e?a(b+"-container").parent().show():a(b+"-container").parent().hide()}a(".metaboxes-tab").each(function(){a(".tabs-panel",this).hide();var b=wpCookies.get("active_metabox_tab"),b=null==b?a("ul.metaboxes-tabs li:first-child a",this).attr("href"):
2
+ "#"+b;a(b).show();a(".metaboxes-tabs a",this).click(function(b){if(a(this).parent().hasClass("tabs"))b.preventDefault();else return b=a(this).attr("href"),a(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),a(this).closest(".metaboxes-tab").find(".tabs-panel").slideUp("fast"),a(b).delay(350).slideDown("fast"),!1})});var h=!0,l=wp.media.editor.send.attachment;a(document).on("click",".metaboxes-tab .upload_button",function(b){b=a(this);var c=b.attr("id").replace("-button","");h=!0;
3
+ wp.media.editor.send.attachment=function(b,e){if(h)a("#"+c).is("input[type=text]")?a("#"+c).val(e.url):a("#"+c+"_custom").val(e.url);else return l.apply(this,[b,e])};wp.media.editor.open(b);return!1});a(".metaboxes-tab .add_media").on("click",function(){h=!1});a(".metaboxes-tab .panel-colorpicker").wpColorPicker({onInit:function(){console.log("test")},change:function(a,c){},clear:function(){var b=a(this);b.val(b.data("default-color"));b.change()}});a(".metaboxes-tab .panel-colorpicker").each(function(){var b=
4
+ a(this).data("variations-label");a(this).parent().parent().find("a.wp-color-result").attr("title",b)});a(".metaboxes-tab .panel-datepicker").each(function(){a(this).datepicker()});var f=function(){var b="";a(this).attr("multiple")?(a(this).children("option:selected").each(function(c,d){0!=c&&(b+=", ");b+=a(d).text()}),""==b&&a(this).children().children("option:selected").each(function(c,d){0!=c&&(b+=", ");b+=a(d).text()})):(b=a(this).children("option:selected").text(),""==b&&(b=a(this).children().children("option:selected").text()));
5
  0>=a(this).parent().find("span").length&&a(this).before("<span></span>");a(this).parent().children("span").replaceWith("<span>"+b+"</span>")};a(".metaboxes-tab .select_wrapper select").not(".chosen").each(f).change(f);a(".metaboxes-tab .select_wrapper").click(function(b){b.stopPropagation();a(this).find("select[multiple]").not(".chosen").toggle()});a(".metaboxes-tab .select_wrapper select[multiple]").not(".chosen").click(function(a){a.stopPropagation()});a(window).click(function(){a(".metaboxes-tab .select_wrapper select[multiple]").not(".chosen").hide()});
6
  a(".metaboxes-tab .onoff_container span").on("click",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(".metaboxes-tab .chosen .select_wrapper select").chosen();a(".metaboxes-tab .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"),g=a(this).data("labels");
7
  a(this).slider({value:b,min:c,max:d,range:"min",step:e,slide:function(b,c){a(this).find("input").val(c.value);a(this).siblings(".feedback").find("strong").text(c.value+g)}})});f=a("#_active_page_options-container").parent().html();a("#_active_page_options-container").parent().remove();a(f).insertAfter("#yit-post-setting .handlediv");a(f).insertAfter("#yit-page-setting .handlediv");a("#_active_page_options-container").on("click",function(){a("#_active_page_options").is(":checked")?a("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:1,
8
  "pointer-events":"auto"}):a("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:.5,"pointer-events":"none"})}).click();a(".metaboxes-tab [data-field]").each(function(){var b=a(this),c="#"+b.data("field"),d="#"+b.data("dep"),e=b.data("value");k(c,d,e.toString());a(d).on("change",function(){k(c,d,e.toString())}).change()});a(document).on("click",".image-gallery-button",function(b){var c=a(this);b=c.closest(".image-gallery");var d=b.find(".image_gallery_ids"),
9
  e=d.val(),g=b.find("ul.slides-wrapper"),f=wp.media.frames.image_gallery=wp.media({title:c.data("choose"),button:{text:c.data("update")},states:[new wp.media.controller.Library({title:c.data("choose"),filterable:"all",multiple:!0})]});f.on("select",function(){f.state().get("selection").map(function(a){a=a.toJSON();a.id&&(e=e?e+","+a.id:a.id,g.append('<li class="image" data-attachment_id="'+a.id+'"><img src="'+a.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+c.data("delete")+
10
  '">x</a></li></ul></li>'))});d.val(e)});f.open()});a(".image-gallery ul.slides-wrapper").each(function(){var b=a(this);b.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style")},update:function(c,d){var e="";b.find("li.image").css("cursor","default").each(function(){var b=a(this).attr("data-attachment_id");e=e+b+","});
11
+ b.closest(".image-gallery").find(".image_gallery_ids").val(e)}})});a(".image-gallery ul.slides-wrapper").on("click","a.delete",function(){var b=a(this).closest(".image-gallery"),c=a(this).closest(".image-gallery ul.slides-wrapper"),b=b.find(".image_gallery_ids"),d="";a(this).closest("li.image").remove();c.find("li.image").css("cursor","default").each(function(){var b=a(this).attr("data-attachment_id");d=d+b+","});b.val(d);return!1})})(jQuery);
plugin-fw/assets/js/yit-plugin-panel.js CHANGED
@@ -113,37 +113,64 @@
113
  var url = $(this).val();
114
  var re = new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)");
115
 
116
- var preview = $(this).parent().siblings('.upload_img_preview');
117
  if (re.test(url)) {
118
  preview.html('<img src="' + url + '" style="max-width:600px; max-height:300px;" />');
119
  } else {
120
  preview.html('');
121
  }
122
- }).change();
123
 
124
- $(document).on('click', '.plugin-option .upload_button', function (e) {
125
- var send_attachment_bkp = wp.media.editor.send.attachment;
126
- var button = $(this);
127
- var id = button.attr('id').replace('-button', '');
128
- _custom_media = true;
129
- wp.media.editor.send.attachment = function (props, attachment) {
130
- if (_custom_media) {
131
- if ($("#" + id).is('input[type=text]')) {
132
- $("#" + id).val(attachment.url);
133
- } else {
134
- $("#" + id + '_custom').val(attachment.url);
135
- }
136
-
137
- } else {
138
- return _orig_send_attachment.apply(this, [props, attachment]);
139
- }
140
- ;
141
  }
142
 
143
- wp.media.editor.open(button);
144
- return false;
145
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
 
 
 
 
 
 
 
 
147
  }
148
 
149
  $('.plugin-option .add_media').on('click', function () {
113
  var url = $(this).val();
114
  var re = new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&amp;:/~+#-_.]*.(gif|jpg|jpeg|png|ico)");
115
 
116
+ var preview = $(this).parents().siblings('.upload_img_preview');
117
  if (re.test(url)) {
118
  preview.html('<img src="' + url + '" style="max-width:600px; max-height:300px;" />');
119
  } else {
120
  preview.html('');
121
  }
122
+ }).trigger( 'change' );
123
 
124
+ $( document ).on( 'click', '.plugin-option .upload_button', function(e) {
125
+ e.preventDefault();
126
+
127
+ var t = $(this),
128
+ custom_uploader,
129
+ id = t.attr('id').replace(/-button$/, '');
130
+
131
+ //If the uploader object has already been created, reopen the dialog
132
+ if (custom_uploader) {
133
+ custom_uploader.open();
134
+ return;
 
 
 
 
 
 
135
  }
136
 
137
+ var custom_uploader_states = [
138
+ // Main states.
139
+ new wp.media.controller.Library({
140
+ library: wp.media.query(),
141
+ multiple: false,
142
+ title: 'Choose Image',
143
+ priority: 20,
144
+ filterable: 'uploaded'
145
+ })
146
+ ];
147
+
148
+ // Create the media frame.
149
+ custom_uploader = wp.media.frames.downloadable_file = wp.media({
150
+ // Set the title of the modal.
151
+ title: 'Choose Image',
152
+ library: {
153
+ type: ''
154
+ },
155
+ button: {
156
+ text: 'Choose Image'
157
+ },
158
+ multiple: false,
159
+ states: custom_uploader_states
160
+ });
161
+
162
+
163
+ //When a file is selected, grab the URL and set it as the text field's value
164
+ custom_uploader.on( 'select' , function() {
165
+ var attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
166
 
167
+ $("#" + id).val( attachment.url );
168
+ $('.plugin-option .upload_img_url').trigger('change');
169
+ });
170
+
171
+ //Open the uploader dialog
172
+ custom_uploader.open();
173
+ });
174
  }
175
 
176
  $('.plugin-option .add_media').on('click', function () {
plugin-fw/assets/js/yit-plugin-panel.min.js CHANGED
@@ -1,9 +1,10 @@
1
- (function(a){var k=function(){var b="";a(this).attr("multiple")?(a(this).children("option:selected").each(function(c,e){0!=c&&(b+=", ");b+=a(e).text()}),""==b&&a(this).children().children("option:selected").each(function(c,e){0!=c&&(b+=", ");b+=a(e).text()})):(b=a(this).children("option:selected").text(),""==b&&(b=a(this).children().children("option:selected").text()));0>=a(this).parent().find("span").length&&a(this).before("<span></span>");a(this).parent().children("span").replaceWith("<span>"+b+
2
- "</span>")};a(".plugin-option .select_wrapper select").not(".chosen").each(k).change(k);a(".plugin-option .select_wrapper").click(function(b){b.stopPropagation();a(this).find("select[multiple]").not(".chosen").toggle()});a(".plugin-option .select_wrapper select[multiple]").not(".chosen").click(function(a){a.stopPropagation()});a(window).click(function(){a(".plugin-option .select_wrapper select[multiple]").not(".chosen").hide()});a(".plugin-option .chosen .select_wrapper select").chosen();a(".plugin-option .on_off_container span").on("click",
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"),e=a(this).data("max"),d=a(this).data("step"),l=a(this).data("labels");a(this).slider({value:b,min:c,max:e,range:"min",step:d,slide:function(b,c){a(this).find("input").val(c.value);
4
- a(this).siblings(".feedback").find("strong").text(c.value+l)}})});if("undefined"!==typeof wp&&"undefined"!==typeof wp.media){var f=!0,m=wp.media.editor.send.attachment;a(".plugin-option .upload_img_url").change(function(){var b=a(this).val(),c=a(this).parent().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("")}).change();a(document).on("click",".plugin-option .upload_button",
5
- function(b){b=a(this);var c=b.attr("id").replace("-button","");f=!0;wp.media.editor.send.attachment=function(b,d){if(f)a("#"+c).is("input[type=text]")?a("#"+c).val(d.url):a("#"+c+"_custom").val(d.url);else return m.apply(this,[b,d])};wp.media.editor.open(b);return!1})}a(".plugin-option .add_media").on("click",function(){f=!1});a("[data-field]").each(function(){var b=a(this),c="#"+b.data("field"),e="#"+b.data("dep"),d=b.data("value");a(e).on("change",function(){var b=e,g=d.toString(),f=!0;if("string"==
6
- typeof b){":radio"==b.substr(0,6)&&(b+=":checked");for(var g=g.split(","),h=0;h<g.length;h++)if(a(b).val()!=g[h])f=!1;else{f=!0;break}}f?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(e,d){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")]=
7
- b});c.val(JSON.stringify(f).replace(/[\\"']/g,"\\$&").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,e){a(this).css("maxWidth","853px")},open:function(b,e){a(".ui-widget-overlay").bind("click",function(){a(this).siblings(".ui-dialog").find(".ui-dialog-content").dialog("close")})}});
8
- a(".ui-dialog :button").blur()})});a(document).ready(function(){a(".codemirror").each(function(b,c){var e=CodeMirror.fromTextArea(c,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});a(c).data("codemirrorInstance",e)})});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(),e=a(this).data("basename"),d;d="(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";
9
- d+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n";d+="ga('create', '"+c+"', '"+e+"');\n";d+="ga('send', 'pageview');\n";b.replaceRange(d,b.getCursor("start"),b.getCursor("end"))})})})(jQuery);
 
1
+ (function(a){var l=function(){var b="";a(this).attr("multiple")?(a(this).children("option:selected").each(function(c,d){0!=c&&(b+=", ");b+=a(d).text()}),""==b&&a(this).children().children("option:selected").each(function(c,d){0!=c&&(b+=", ");b+=a(d).text()})):(b=a(this).children("option:selected").text(),""==b&&(b=a(this).children().children("option:selected").text()));0>=a(this).parent().find("span").length&&a(this).before("<span></span>");a(this).parent().children("span").replaceWith("<span>"+b+
2
+ "</span>")};a(".plugin-option .select_wrapper select").not(".chosen").each(l).change(l);a(".plugin-option .select_wrapper").click(function(b){b.stopPropagation();a(this).find("select[multiple]").not(".chosen").toggle()});a(".plugin-option .select_wrapper select[multiple]").not(".chosen").click(function(a){a.stopPropagation()});a(window).click(function(){a(".plugin-option .select_wrapper select[multiple]").not(".chosen").hide()});a(".plugin-option .chosen .select_wrapper select").chosen();a(".plugin-option .on_off_container span").on("click",
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$/,"");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(".plugin-option .upload_img_url").trigger("change")}));c.open()}));a(".plugin-option .add_media").on("click",
6
+ 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=a(this).find("ul"),c=a(this).find(":hidden");
7
+ 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,"\\$&").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",
8
+ 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);
plugin-fw/assets/js/yit-wp-pointer.js CHANGED
@@ -23,7 +23,7 @@ jQuery(document).ready( function($) {
23
  pointerClass: 'yit-wp-pointer',
24
  content : options.content,
25
  position: options.position,
26
- open : function () { console.log( 'here' );
27
  selected_plugin_row.toggleClass( 'yit-pointer-selected-row' );
28
  top_level_menu.addClass( 'yit-pointer' );
29
  },
23
  pointerClass: 'yit-wp-pointer',
24
  content : options.content,
25
  position: options.position,
26
+ open : function () {
27
  selected_plugin_row.toggleClass( 'yit-pointer-selected-row' );
28
  top_level_menu.addClass( 'yit-pointer' );
29
  },
plugin-fw/languages/yith-plugin-fw-it_IT.mo ADDED
Binary file
plugin-fw/languages/yith-plugin-fw-it_IT.po ADDED
@@ -0,0 +1,988 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-11 17:13+0100\n"
8
+ "PO-Revision-Date: 2015-05-11 17:15+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.7.3\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"
19
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
+ "X-Poedit-SourceCharset: UTF-8\n"
21
+ "X-Poedit-Basepath: ../\n"
22
+ "X-Textdomain-Support: yes\n"
23
+ "X-Poedit-SearchPath-0: .\n"
24
+
25
+ #: lib/yit-cpt-unlimited.php:460 lib/yit-cpt-unlimited.php:574
26
+ #: lib/yit-cpt-unlimited.php:719 lib/yit-cpt-unlimited.php:1632
27
+ #, php-format
28
+ msgid "Add %s"
29
+ msgstr "Aggiungi %s"
30
+
31
+ #: lib/yit-cpt-unlimited.php:461 lib/yit-cpt-unlimited.php:575
32
+ #, php-format
33
+ msgid "Add New %s"
34
+ msgstr "Aggiungi nuovo %s"
35
+
36
+ #: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
37
+ #: lib/yit-cpt-unlimited.php:1267 lib/yit-cpt-unlimited.php:1304
38
+ #, php-format
39
+ msgid "Edit %s"
40
+ msgstr "Modifica %s"
41
+
42
+ #: lib/yit-cpt-unlimited.php:463 lib/yit-cpt-unlimited.php:577
43
+ #, php-format
44
+ msgid "New %s"
45
+ msgstr "Nuovo %s"
46
+
47
+ #: lib/yit-cpt-unlimited.php:464 lib/yit-cpt-unlimited.php:578
48
+ #, php-format
49
+ msgid "All %s"
50
+ msgstr "Tutti %s"
51
+
52
+ #: lib/yit-cpt-unlimited.php:465 lib/yit-cpt-unlimited.php:579
53
+ #: lib/yit-cpt-unlimited.php:1251 lib/yit-cpt-unlimited.php:1305
54
+ #, php-format
55
+ msgid "View %s"
56
+ msgstr "Visualizza %s"
57
+
58
+ #: lib/yit-cpt-unlimited.php:466 lib/yit-cpt-unlimited.php:580
59
+ #, php-format
60
+ msgid "Search %s"
61
+ msgstr "Cerca %s"
62
+
63
+ #: lib/yit-cpt-unlimited.php:467 lib/yit-cpt-unlimited.php:581
64
+ #, php-format
65
+ msgid "No %s found"
66
+ msgstr "Nessun %s trovato"
67
+
68
+ #: lib/yit-cpt-unlimited.php:468 lib/yit-cpt-unlimited.php:582
69
+ #, php-format
70
+ msgid "No %s found in Trash"
71
+ msgstr "Nessun %s trovato nel cestino"
72
+
73
+ #: lib/yit-cpt-unlimited.php:625
74
+ #, php-format
75
+ msgctxt "taxonomy general name"
76
+ msgid "%s Categories"
77
+ msgstr "%s Categorie"
78
+
79
+ #: lib/yit-cpt-unlimited.php:626
80
+ msgctxt "taxonomy singular name"
81
+ msgid "Category"
82
+ msgstr "Categoria"
83
+
84
+ #: lib/yit-cpt-unlimited.php:627
85
+ msgid "Search Categories"
86
+ msgstr "Cerca categorie"
87
+
88
+ #: lib/yit-cpt-unlimited.php:628
89
+ msgid "All Categories"
90
+ msgstr "Tutte le categorie"
91
+
92
+ #: lib/yit-cpt-unlimited.php:629
93
+ msgid "Parent Category"
94
+ msgstr "Categoria genitore"
95
+
96
+ #: lib/yit-cpt-unlimited.php:630
97
+ msgid "Parent Category:"
98
+ msgstr "Categoria genitore:"
99
+
100
+ #: lib/yit-cpt-unlimited.php:631
101
+ msgid "Edit Category"
102
+ msgstr "Modifica categoria"
103
+
104
+ #: lib/yit-cpt-unlimited.php:632
105
+ msgid "Update Category"
106
+ msgstr "Aggiorna categoria"
107
+
108
+ #: lib/yit-cpt-unlimited.php:633
109
+ msgid "Add New Category"
110
+ msgstr "Aggiungi nuova categoria"
111
+
112
+ #: lib/yit-cpt-unlimited.php:634
113
+ msgid "New Category Name"
114
+ msgstr "Nuovo nome categoria"
115
+
116
+ #: lib/yit-cpt-unlimited.php:635
117
+ msgid "Category"
118
+ msgstr "Categoria"
119
+
120
+ #: lib/yit-cpt-unlimited.php:724
121
+ msgid "Categories"
122
+ msgstr "Categorie"
123
+
124
+ #: lib/yit-cpt-unlimited.php:1042
125
+ #, php-format
126
+ msgid "%s Settings"
127
+ msgstr "Impostazioni %s"
128
+
129
+ #: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
130
+ #: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:64
131
+ msgid "Settings"
132
+ msgstr "Impostazioni"
133
+
134
+ #: lib/yit-cpt-unlimited.php:1051
135
+ 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"
144
+ msgstr "Riscrivi"
145
+
146
+ #: lib/yit-cpt-unlimited.php:1059
147
+ msgid ""
148
+ "Univocal identification name in the URL for each product (slug from post if empty)"
149
+ msgstr ""
150
+ "Nome identificativo univoco nell'URL per singolo prodotto (usa slug dal post se "
151
+ "vuoto)"
152
+
153
+ #: lib/yit-cpt-unlimited.php:1064
154
+ msgid "Label in Singular"
155
+ msgstr "Etichetta singolare"
156
+
157
+ #: lib/yit-cpt-unlimited.php:1065
158
+ msgid "Set a label in singular (title of portfolio if empty)"
159
+ msgstr "Imposta un'etichetta singolare (titolo del portfolio se vuoto)"
160
+
161
+ #: lib/yit-cpt-unlimited.php:1070
162
+ msgid "Label in Plural"
163
+ msgstr "Etichetta plurale"
164
+
165
+ #: lib/yit-cpt-unlimited.php:1071
166
+ msgid "Set a label in plural (title of portfolio if empty)"
167
+ msgstr "Imposta un'etichetta plurale (titolo del portfolio se vuoto)"
168
+
169
+ #: lib/yit-cpt-unlimited.php:1076
170
+ msgid "Taxonomy"
171
+ msgstr "Tassonomia"
172
+
173
+ #: lib/yit-cpt-unlimited.php:1077
174
+ msgid ""
175
+ "If you want to use categories in the portfolio, set a name for taxonomy. Name "
176
+ "should be a slug (must not contain capital letters nor spaces) and must not be "
177
+ "more than 32 characters long (database structure restriction)."
178
+ msgstr ""
179
+ "Se vuoi aggiungere delle categorie nel portfolio, imposta un nome per la "
180
+ "tassonomia. Il nome dovrà essere in forma di slug (non deve contenere caratteri "
181
+ "maiuscoli né spazi) e non più lungo di 32 caratteri (restrizione di database)."
182
+
183
+ #: lib/yit-cpt-unlimited.php:1082
184
+ msgid "Taxonomy Rewrite"
185
+ msgstr "Riscrivi tassonomia"
186
+
187
+ #: lib/yit-cpt-unlimited.php:1083
188
+ msgid "Set univocal name for each category page URL."
189
+ msgstr "Imposta un nome univoco per l'URL della pagina di ciascuna categoria."
190
+
191
+ #: lib/yit-cpt-unlimited.php:1088
192
+ msgid "Single layout"
193
+ msgstr "Layout singolo"
194
+
195
+ #: lib/yit-cpt-unlimited.php:1089
196
+ msgid "Layout for single page of this portfolio"
197
+ msgstr "Layout per pagina singola per questo portfolio"
198
+
199
+ #: lib/yit-cpt-unlimited.php:1130
200
+ msgid "layout settings"
201
+ msgstr "impostazioni di layout"
202
+
203
+ #: lib/yit-cpt-unlimited.php:1222 lib/yit-cpt-unlimited.php:1235
204
+ msgid "Quick links"
205
+ msgstr "Link rapidi"
206
+
207
+ #: lib/yit-cpt-unlimited.php:1475
208
+ #, php-format
209
+ msgid "Show frontend of the %s"
210
+ msgstr "Mostra front end di %s"
211
+
212
+ #: lib/yit-cpt-unlimited.php:1482 templates/metaboxes/types/customtabs.php:46
213
+ #: templates/metaboxes/types/customtabs.php:90
214
+ msgid "Name"
215
+ msgstr "Nome"
216
+
217
+ #: lib/yit-cpt-unlimited.php:1631
218
+ #, php-format
219
+ 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
+
230
+ #: lib/yit-plugin-panel.php:63
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 "Plugin YIT"
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 ""
302
+ "Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
303
+ "reimpostate."
304
+
305
+ #: lib/yit-pointers.php:70
306
+ msgid "Plugins Activated"
307
+ msgstr "Plugin attivati"
308
+
309
+ #: lib/yit-pointers.php:71
310
+ msgid ""
311
+ "From now on, you can find all plugin options in YIT Plugin menu.\n"
312
+ " For each plugin installed, customization "
313
+ "settings will be available as a new entry in YIT Plugin menu."
314
+ msgstr ""
315
+ "Da ora in poi, puoi trovare tutte le opzioni dei tuoi plugin nel menu Plugin YIT.\n"
316
+ "Troverai le impostazioni di personalizzazione sotto una nuova voce nel menu Plugin "
317
+ "YIT."
318
+
319
+ #: lib/yit-pointers.php:73 lib/yit-pointers.php:89
320
+ msgid "Discover all our plugins available on:"
321
+ msgstr "Scopri tutti i plugin disponibili su:"
322
+
323
+ #: lib/yit-pointers.php:74 lib/yit-pointers.php:90
324
+ msgid "and"
325
+ msgstr "e"
326
+
327
+ #: lib/yit-pointers.php:84
328
+ msgid "Plugins Upgraded"
329
+ msgstr "Plugin aggiornati"
330
+
331
+ # Any time you install one of our plugins, a new entry will be added to this menu.\n
332
+ #: lib/yit-pointers.php:85
333
+ msgid ""
334
+ "From now on, you can find all options of your plugins in YIT Plugin menu.\n"
335
+ " Any time one of our plugins is updated, a new "
336
+ "entry will be added to this menu.\n"
337
+ " For example, after the update, plugin options "
338
+ "(such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)\n"
339
+ " will be moved from previous location to YIT "
340
+ "Plugin tab."
341
+ msgstr ""
342
+ "Da ora in poi, troverai tutte le opzioni dei tuoi plugin nel menu Plugin YIT.\n"
343
+ "Ogni volta che aggiornerai i nostri plugin, troverai una nuova voce in questo "
344
+ "menu.\n"
345
+ "Per esempio, dopo l'aggiornamento, le opzioni del plugin (come per esempio quelle "
346
+ "di YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search etc.)\n"
347
+ "saranno trasferite nella scheda Plugin YIT."
348
+
349
+ #: lib/yit-upgrade.php:123
350
+ msgid "There is a new version of %plugin_name% available."
351
+ msgstr "Una nuova versione di %plugin_name% è disponibile."
352
+
353
+ #: lib/yit-upgrade.php:124
354
+ msgid "View version %latest% details."
355
+ msgstr "Visualizza i dettagli della versione %latest%."
356
+
357
+ #: lib/yit-upgrade.php:125
358
+ msgid "Automatic update is unavailable for this plugin,"
359
+ msgstr "L'aggiornamento automatico non è disponibile per questo plugin,"
360
+
361
+ #: lib/yit-upgrade.php:126
362
+ msgid "please <a href=\"%activate_link%\">activate</a> your copy of %plugin_name%."
363
+ msgstr ""
364
+ "per favore, <a href=\"%activate_link%\">attiva</a> la tua copia di %plugin_name%."
365
+
366
+ #: lib/yit-upgrade.php:127
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-"
386
+ "changelog-button\" title=\"%3$s\">View version %4$s details</a>."
387
+ 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-"
395
+ "changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>You have to "
396
+ "activate the plugin on a single site of the network to benefit from automatic "
397
+ "updates.</em>"
398
+ msgstr ""
399
+ "È disponibile una nuova versioni di %1$s. <a href=\"%2$s\" class=\"thickbox yit-"
400
+ "changelog-button\" title=\"%3$s\">Visualizza i dettagli della versione %4$s</a>. "
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-"
422
+ "changelog-button\" title=\"%3$s\">View version %4$s details</a> or <a href=\"%5$s"
423
+ "\">update now</a>."
424
+ msgstr ""
425
+ "È disponibile una nuova versioni di %1$s. <a href=\"%2$s\" class=\"thickbox yit-"
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?"
509
+ 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."
540
+ 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"
612
+
613
+ #: templates/metaboxes/types/categories.php:36
614
+ msgid "No categories."
615
+ msgstr "Nessuna categoria"
616
+
617
+ #: templates/metaboxes/types/categories.php:42
618
+ msgid "+ Add New Category"
619
+ msgstr "+ Aggiungi nuova categoria"
620
+
621
+ #: templates/metaboxes/types/categories.php:46
622
+ msgid "Add"
623
+ msgstr "Aggiungi"
624
+
625
+ #: templates/metaboxes/types/contactform.php:7
626
+ msgid "Text Input"
627
+ msgstr "Text input"
628
+
629
+ #: templates/metaboxes/types/contactform.php:8
630
+ msgid "Checkbox"
631
+ msgstr "Checkbox"
632
+
633
+ #: templates/metaboxes/types/contactform.php:9
634
+ msgid "Select"
635
+ msgstr "Select"
636
+
637
+ #: templates/metaboxes/types/contactform.php:10
638
+ msgid "Textarea"
639
+ msgstr "Textarea"
640
+
641
+ #: templates/metaboxes/types/contactform.php:11
642
+ msgid "Radio Input"
643
+ msgstr "Radio input"
644
+
645
+ #: templates/metaboxes/types/contactform.php:12
646
+ msgid "Password Field"
647
+ msgstr "Campo password"
648
+
649
+ #: templates/metaboxes/types/contactform.php:13
650
+ msgid "File Upload"
651
+ msgstr "Carica file"
652
+
653
+ #: templates/metaboxes/types/contactform.php:47
654
+ msgid "Theme Icon"
655
+ msgstr "Icona tema"
656
+
657
+ #: templates/metaboxes/types/contactform.php:48
658
+ msgid "Custom Icon"
659
+ msgstr "Icona personalizzata"
660
+
661
+ #: templates/metaboxes/types/contactform.php:49
662
+ #: templates/metaboxes/types/responsivesliders.php:24
663
+ msgid "None"
664
+ msgstr "Nessuno"
665
+
666
+ #: templates/metaboxes/types/contactform.php:60
667
+ msgid "Add field"
668
+ msgstr "Aggiungi campo"
669
+
670
+ #: templates/metaboxes/types/contactform.php:69
671
+ #: templates/metaboxes/types/contactform.php:261
672
+ #: templates/metaboxes/types/customtabs.php:37
673
+ #: templates/metaboxes/types/customtabs.php:82
674
+ msgid "Remove"
675
+ msgstr "Rimuovi"
676
+
677
+ #: templates/metaboxes/types/contactform.php:70
678
+ #: templates/metaboxes/types/contactform.php:262
679
+ msgid "Click to toggle"
680
+ msgstr "Fai clic per aprire/chiudere"
681
+
682
+ #: templates/metaboxes/types/contactform.php:77
683
+ #: templates/metaboxes/types/contactform.php:269
684
+ msgid "Field Title"
685
+ msgstr "Titolo campo"
686
+
687
+ #: templates/metaboxes/types/contactform.php:81
688
+ #: templates/metaboxes/types/contactform.php:273
689
+ msgid "Insert the title for the field."
690
+ msgstr "Inserisci il titolo per il campo"
691
+
692
+ #: templates/metaboxes/types/contactform.php:86
693
+ #: templates/metaboxes/types/contactform.php:278
694
+ msgid "Data Name"
695
+ msgstr "Nome dati"
696
+
697
+ #: templates/metaboxes/types/contactform.php:90
698
+ #: templates/metaboxes/types/contactform.php:282
699
+ msgid ""
700
+ "REQUIRED: Field identification name to be entered into email body. <strong>Note:</"
701
+ "strong>Use only lowercase characters and underscores."
702
+ msgstr ""
703
+ "RICHIESTO: Nome identificativo del campo da inserire nel corpo dell'email. "
704
+ "<strong>Nota:</strong>Puoi utilizzare solamente caratteri minuscoli e underscore."
705
+
706
+ #: templates/metaboxes/types/contactform.php:95
707
+ #: templates/metaboxes/types/contactform.php:287
708
+ msgid "Field Type"
709
+ msgstr "Tipologia campo"
710
+
711
+ #: templates/metaboxes/types/contactform.php:103
712
+ #: templates/metaboxes/types/contactform.php:295
713
+ msgid "Select the type for this field."
714
+ msgstr "Seleziona il tipo di campo."
715
+
716
+ #: templates/metaboxes/types/contactform.php:108
717
+ #: templates/metaboxes/types/contactform.php:300
718
+ msgid "Checked"
719
+ msgstr "Selezionato"
720
+
721
+ #: templates/metaboxes/types/contactform.php:112
722
+ #: templates/metaboxes/types/contactform.php:304
723
+ msgid "Select this option if you want this field appears as already checked."
724
+ msgstr "Seleziona questa opzione se vuoi che il campo appaia già selezionato."
725
+
726
+ #: templates/metaboxes/types/contactform.php:117
727
+ #: templates/metaboxes/types/contactform.php:309
728
+ msgid "Add options "
729
+ msgstr "Aggiungi opzioni"
730
+
731
+ #: templates/metaboxes/types/contactform.php:118
732
+ #: templates/metaboxes/types/contactform.php:310
733
+ msgid "Add option"
734
+ msgstr "Aggiungi opzione"
735
+
736
+ #: templates/metaboxes/types/contactform.php:121
737
+ #: templates/metaboxes/types/contactform.php:313
738
+ #: templates/metaboxes/types/contactform.php:436
739
+ msgid "Selected"
740
+ msgstr "Selezionato"
741
+
742
+ #: templates/metaboxes/types/contactform.php:124
743
+ #: templates/metaboxes/types/contactform.php:316
744
+ #: templates/metaboxes/types/contactform.php:436
745
+ msgid "Delete option"
746
+ msgstr "Cancella opzione"
747
+
748
+ #: templates/metaboxes/types/contactform.php:130
749
+ #: templates/metaboxes/types/contactform.php:322
750
+ msgid "Error Message"
751
+ msgstr "Messaggio di errore"
752
+
753
+ #: templates/metaboxes/types/contactform.php:134
754
+ #: templates/metaboxes/types/contactform.php:326
755
+ msgid "Insert the error message for validation."
756
+ msgstr "Inserisci il messaggio di errore per la validazione"
757
+
758
+ #: templates/metaboxes/types/contactform.php:139
759
+ #: templates/metaboxes/types/contactform.php:331
760
+ msgid "Required"
761
+ msgstr "Obbligatorio"
762
+
763
+ #: templates/metaboxes/types/contactform.php:143
764
+ #: templates/metaboxes/types/contactform.php:335
765
+ msgid "Select this option if it must be required."
766
+ msgstr "Seleziona questa opzione se deve essere obbligatoria."
767
+
768
+ #: templates/metaboxes/types/contactform.php:152
769
+ #: templates/metaboxes/types/contactform.php:344
770
+ msgid "Select this option if the email must be valid."
771
+ msgstr "Seleziona questa opzione se l'email inserita deve essere esistente."
772
+
773
+ #: templates/metaboxes/types/contactform.php:157
774
+ #: templates/metaboxes/types/contactform.php:349
775
+ msgid "Reply To"
776
+ msgstr "Rispondi a"
777
+
778
+ #: templates/metaboxes/types/contactform.php:161
779
+ #: templates/metaboxes/types/contactform.php:353
780
+ msgid "Select this if it is the email you can reply to."
781
+ msgstr "Seleziona questo se è l'email a cui poter rispondere. "
782
+
783
+ #: templates/metaboxes/types/contactform.php:166
784
+ #: templates/metaboxes/types/contactform.php:358
785
+ msgid "Class"
786
+ msgstr "Classe"
787
+
788
+ #: templates/metaboxes/types/contactform.php:170
789
+ #: templates/metaboxes/types/contactform.php:362
790
+ msgid "Insert additional class(es) (separated by commas) for more personalization."
791
+ msgstr ""
792
+ "Inserisci una o più classi (separate da virgole) per una ulteriore "
793
+ "personalizzazione."
794
+
795
+ #: templates/metaboxes/types/contactform.php:175
796
+ #: templates/metaboxes/types/contactform.php:367
797
+ msgid "Icon"
798
+ msgstr "Icona"
799
+
800
+ #: templates/metaboxes/types/contactform.php:203
801
+ #: templates/metaboxes/types/contactform.php:391
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
+
809
+ #: templates/metaboxes/types/contactform.php:209
810
+ #: templates/metaboxes/types/contactform.php:397
811
+ #: templates/metaboxes/types/icon-list.php:75
812
+ #: templates/metaboxes/types/select-icon.php:39
813
+ msgid "Image preview"
814
+ msgstr "Anteprima immagine"
815
+
816
+ #: templates/metaboxes/types/contactform.php:217
817
+ #: templates/metaboxes/types/contactform.php:405
818
+ msgid "Insert an icon for more personalization."
819
+ msgstr "Inserisci un'icona per ulteriore personalizzazione."
820
+
821
+ #: templates/metaboxes/types/contactform.php:222
822
+ #: templates/metaboxes/types/contactform.php:409
823
+ msgid "Width"
824
+ msgstr "Larghezza"
825
+
826
+ #: templates/metaboxes/types/contactform.php:247
827
+ #: templates/metaboxes/types/contactform.php:421
828
+ msgid "Set field length."
829
+ msgstr "Seleziona lunghezza campo."
830
+
831
+ #: templates/metaboxes/types/customtabs.php:28
832
+ msgid "Close all"
833
+ msgstr "Chiudi tutti"
834
+
835
+ #: templates/metaboxes/types/customtabs.php:28
836
+ msgid "Expand all"
837
+ msgstr "Espandi tutti"
838
+
839
+ #: templates/metaboxes/types/customtabs.php:52
840
+ #: templates/metaboxes/types/customtabs.php:95
841
+ msgid "Value"
842
+ msgstr "Valore"
843
+
844
+ #: templates/metaboxes/types/customtabs.php:53
845
+ #: templates/metaboxes/types/customtabs.php:96
846
+ msgid "Content of the tab. (HTML is supported)"
847
+ msgstr "Contenuto della scheda (codice HTML supportato)."
848
+
849
+ #: templates/metaboxes/types/customtabs.php:65
850
+ msgid "Add custom product tab"
851
+ msgstr "Aggiungi scheda prodotto personalizzata"
852
+
853
+ #: templates/metaboxes/types/customtabs.php:107
854
+ msgid "Do you want to remove the custom tab?"
855
+ msgstr "Vuoi rimuovere la scheda personalizzata?"
856
+
857
+ #: templates/metaboxes/types/icon-list.php:89
858
+ #, php-format
859
+ msgid "(Default: %s <img src=\"%s\"/>)"
860
+ msgstr "(Default: %s <img src=\"%s\"/>)"
861
+
862
+ #: templates/metaboxes/types/icon-list.php:91
863
+ #, php-format
864
+ msgid "(Default: <i %s></i> )"
865
+ msgstr "(Default: <i %s></i> )"
866
+
867
+ #: templates/metaboxes/types/image-gallery.php:40
868
+ #: templates/metaboxes/types/image-gallery.php:45
869
+ #: templates/metaboxes/types/images.php:38 templates/metaboxes/types/images.php:64
870
+ msgid "Delete image"
871
+ msgstr "Rimuovi immagine"
872
+
873
+ #: templates/metaboxes/types/image-gallery.php:45
874
+ msgid "Add Images to Gallery"
875
+ msgstr "Aggiungi immagini alla galleria"
876
+
877
+ #: templates/metaboxes/types/image-gallery.php:45
878
+ msgid "Add to gallery"
879
+ msgstr "Aggiungi alla galleria"
880
+
881
+ #: templates/metaboxes/types/image-gallery.php:45
882
+ msgid "Add images"
883
+ msgstr "Aggiungi immagini"
884
+
885
+ #: templates/metaboxes/types/image-gallery.php:45
886
+ msgid "Delete"
887
+ msgstr "Rimuovi"
888
+
889
+ #: templates/metaboxes/types/images.php:42
890
+ msgid "Upload new images"
891
+ msgstr "Carica nuove immagini"
892
+
893
+ #: templates/metaboxes/types/images.php:75
894
+ msgid "Are you sure you want to remove this image?"
895
+ msgstr "Confermi di voler rimuovere questa immagine?"
896
+
897
+ #: templates/metaboxes/types/sidebar-layout.php:25
898
+ #: templates/metaboxes/types/sidebars.php:36
899
+ msgid "Left sidebar"
900
+ msgstr "Barra laterale sinistra"
901
+
902
+ #: templates/metaboxes/types/sidebar-layout.php:28
903
+ #: templates/metaboxes/types/sidebars.php:42
904
+ #: templates/metaboxes/types/sidebars.php:45
905
+ msgid "No sidebar"
906
+ msgstr "Nessuna barra laterale"
907
+
908
+ #: templates/metaboxes/types/sidebar-layout.php:31
909
+ #: templates/metaboxes/types/sidebars.php:39
910
+ msgid "Right sidebar"
911
+ msgstr "Barra laterale destra"
912
+
913
+ #: templates/metaboxes/types/sidebar-layout.php:34
914
+ #: templates/metaboxes/types/sidebars.php:53
915
+ #: templates/metaboxes/types/sidebars.php:64
916
+ msgid "Choose a sidebar"
917
+ msgstr "Scegli una barra laterale"
918
+
919
+ #: templates/metaboxes/types/sidebars.php:51
920
+ msgid "Left Sidebar"
921
+ msgstr "Barra laterale sinistra"
922
+
923
+ #: templates/metaboxes/types/sidebars.php:62
924
+ msgid "Right Sidebar"
925
+ msgstr "Barra laterale destra"
926
+
927
+ #: templates/metaboxes/types/typography.php:42
928
+ msgid "px"
929
+ msgstr "px"
930
+
931
+ #: templates/metaboxes/types/typography.php:43
932
+ msgid "em"
933
+ msgstr "em"
934
+
935
+ #: templates/metaboxes/types/typography.php:44
936
+ msgid "pt"
937
+ msgstr "pt"
938
+
939
+ #: templates/metaboxes/types/typography.php:45
940
+ msgid "rem"
941
+ msgstr "rem"
942
+
943
+ #: templates/metaboxes/types/typography.php:59
944
+ #: templates/metaboxes/types/typography.php:153
945
+ #: templates/metaboxes/types/typography.php:217
946
+ msgid "Web fonts"
947
+ msgstr "Web fonts"
948
+
949
+ #: templates/metaboxes/types/typography.php:71
950
+ msgid "Google fonts"
951
+ msgstr "Google fonts"
952
+
953
+ #: templates/metaboxes/types/typography.php:96
954
+ msgid "Regular"
955
+ msgstr "Normale"
956
+
957
+ #: templates/metaboxes/types/typography.php:97
958
+ msgid "Bold"
959
+ msgstr "Grassetto"
960
+
961
+ #: templates/metaboxes/types/typography.php:98
962
+ msgid "Extra bold"
963
+ msgstr "Extra bold"
964
+
965
+ #: templates/metaboxes/types/typography.php:99
966
+ msgid "Italic"
967
+ msgstr "Corsivo"
968
+
969
+ #: templates/metaboxes/types/typography.php:100
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
+
980
+ #~ msgctxt "%field% = field name"
981
+ #~ msgid "%field% field cannot be empty"
982
+ #~ msgstr "Il campo %field% non può essere vuoto"
983
+
984
+ #~ msgid "%field% testo cannot be empty"
985
+ #~ msgstr "Il campo %field% non può essere vuoto"
986
+
987
+ #~ msgid "%field% field cannot be empty"
988
+ #~ msgstr "Il campo %field% non può essere vuoto"
plugin-fw/languages/yith-plugin-fw.pot ADDED
@@ -0,0 +1,920 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"
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.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"
19
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
+ "X-Poedit-SourceCharset: UTF-8\n"
21
+ "X-Poedit-Basepath: ../\n"
22
+ "X-Textdomain-Support: yes\n"
23
+ "X-Poedit-SearchPath-0: .\n"
24
+
25
+ #: lib/yit-cpt-unlimited.php:460 lib/yit-cpt-unlimited.php:574
26
+ #: lib/yit-cpt-unlimited.php:719 lib/yit-cpt-unlimited.php:1632
27
+ #, php-format
28
+ msgid "Add %s"
29
+ msgstr ""
30
+
31
+ #: lib/yit-cpt-unlimited.php:461 lib/yit-cpt-unlimited.php:575
32
+ #, php-format
33
+ msgid "Add New %s"
34
+ msgstr ""
35
+
36
+ #: lib/yit-cpt-unlimited.php:462 lib/yit-cpt-unlimited.php:576
37
+ #: lib/yit-cpt-unlimited.php:1267 lib/yit-cpt-unlimited.php:1304
38
+ #, php-format
39
+ msgid "Edit %s"
40
+ msgstr ""
41
+
42
+ #: lib/yit-cpt-unlimited.php:463 lib/yit-cpt-unlimited.php:577
43
+ #, php-format
44
+ msgid "New %s"
45
+ msgstr ""
46
+
47
+ #: lib/yit-cpt-unlimited.php:464 lib/yit-cpt-unlimited.php:578
48
+ #, php-format
49
+ msgid "All %s"
50
+ msgstr ""
51
+
52
+ #: lib/yit-cpt-unlimited.php:465 lib/yit-cpt-unlimited.php:579
53
+ #: lib/yit-cpt-unlimited.php:1251 lib/yit-cpt-unlimited.php:1305
54
+ #, php-format
55
+ msgid "View %s"
56
+ msgstr ""
57
+
58
+ #: lib/yit-cpt-unlimited.php:466 lib/yit-cpt-unlimited.php:580
59
+ #, php-format
60
+ msgid "Search %s"
61
+ msgstr ""
62
+
63
+ #: lib/yit-cpt-unlimited.php:467 lib/yit-cpt-unlimited.php:581
64
+ #, php-format
65
+ msgid "No %s found"
66
+ msgstr ""
67
+
68
+ #: lib/yit-cpt-unlimited.php:468 lib/yit-cpt-unlimited.php:582
69
+ #, php-format
70
+ msgid "No %s found in Trash"
71
+ msgstr ""
72
+
73
+ #: lib/yit-cpt-unlimited.php:625
74
+ #, php-format
75
+ msgctxt "taxonomy general name"
76
+ msgid "%s Categories"
77
+ msgstr ""
78
+
79
+ #: lib/yit-cpt-unlimited.php:626
80
+ msgctxt "taxonomy singular name"
81
+ msgid "Category"
82
+ msgstr ""
83
+
84
+ #: lib/yit-cpt-unlimited.php:627
85
+ msgid "Search Categories"
86
+ msgstr ""
87
+
88
+ #: lib/yit-cpt-unlimited.php:628
89
+ msgid "All Categories"
90
+ msgstr ""
91
+
92
+ #: lib/yit-cpt-unlimited.php:629
93
+ msgid "Parent Category"
94
+ msgstr ""
95
+
96
+ #: lib/yit-cpt-unlimited.php:630
97
+ msgid "Parent Category:"
98
+ msgstr ""
99
+
100
+ #: lib/yit-cpt-unlimited.php:631
101
+ msgid "Edit Category"
102
+ msgstr ""
103
+
104
+ #: lib/yit-cpt-unlimited.php:632
105
+ msgid "Update Category"
106
+ msgstr ""
107
+
108
+ #: lib/yit-cpt-unlimited.php:633
109
+ msgid "Add New Category"
110
+ msgstr ""
111
+
112
+ #: lib/yit-cpt-unlimited.php:634
113
+ msgid "New Category Name"
114
+ msgstr ""
115
+
116
+ #: lib/yit-cpt-unlimited.php:635
117
+ msgid "Category"
118
+ msgstr ""
119
+
120
+ #: lib/yit-cpt-unlimited.php:724
121
+ msgid "Categories"
122
+ msgstr ""
123
+
124
+ #: lib/yit-cpt-unlimited.php:1042
125
+ #, php-format
126
+ msgid "%s Settings"
127
+ msgstr ""
128
+
129
+ #: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
130
+ #: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:64
131
+ msgid "Settings"
132
+ msgstr ""
133
+
134
+ #: lib/yit-cpt-unlimited.php:1051
135
+ 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
143
+ msgid "Rewrite"
144
+ msgstr ""
145
+
146
+ #: lib/yit-cpt-unlimited.php:1059
147
+ msgid ""
148
+ "Univocal identification name in the URL for each product (slug from post if empty)"
149
+ msgstr ""
150
+
151
+ #: lib/yit-cpt-unlimited.php:1064
152
+ msgid "Label in Singular"
153
+ msgstr ""
154
+
155
+ #: lib/yit-cpt-unlimited.php:1065
156
+ msgid "Set a label in singular (title of portfolio if empty)"
157
+ msgstr ""
158
+
159
+ #: lib/yit-cpt-unlimited.php:1070
160
+ msgid "Label in Plural"
161
+ msgstr ""
162
+
163
+ #: lib/yit-cpt-unlimited.php:1071
164
+ msgid "Set a label in plural (title of portfolio if empty)"
165
+ msgstr ""
166
+
167
+ #: lib/yit-cpt-unlimited.php:1076
168
+ msgid "Taxonomy"
169
+ msgstr ""
170
+
171
+ #: lib/yit-cpt-unlimited.php:1077
172
+ msgid ""
173
+ "If you want to use categories in the portfolio, set a name for taxonomy. Name "
174
+ "should be a slug (must not contain capital letters nor spaces) and must not be "
175
+ "more than 32 characters long (database structure restriction)."
176
+ msgstr ""
177
+
178
+ #: lib/yit-cpt-unlimited.php:1082
179
+ msgid "Taxonomy Rewrite"
180
+ msgstr ""
181
+
182
+ #: lib/yit-cpt-unlimited.php:1083
183
+ msgid "Set univocal name for each category page URL."
184
+ msgstr ""
185
+
186
+ #: lib/yit-cpt-unlimited.php:1088
187
+ msgid "Single layout"
188
+ msgstr ""
189
+
190
+ #: lib/yit-cpt-unlimited.php:1089
191
+ msgid "Layout for single page of this portfolio"
192
+ msgstr ""
193
+
194
+ #: lib/yit-cpt-unlimited.php:1130
195
+ msgid "layout settings"
196
+ msgstr ""
197
+
198
+ #: lib/yit-cpt-unlimited.php:1222 lib/yit-cpt-unlimited.php:1235
199
+ msgid "Quick links"
200
+ msgstr ""
201
+
202
+ #: lib/yit-cpt-unlimited.php:1475
203
+ #, php-format
204
+ msgid "Show frontend of the %s"
205
+ msgstr ""
206
+
207
+ #: lib/yit-cpt-unlimited.php:1482 templates/metaboxes/types/customtabs.php:46
208
+ #: templates/metaboxes/types/customtabs.php:90
209
+ msgid "Name"
210
+ msgstr ""
211
+
212
+ #: lib/yit-cpt-unlimited.php:1631
213
+ #, php-format
214
+ 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
+
225
+ #: lib/yit-plugin-panel.php:63
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 ""
295
+
296
+ #: lib/yit-pointers.php:70
297
+ msgid "Plugins Activated"
298
+ msgstr ""
299
+
300
+ #: lib/yit-pointers.php:71
301
+ msgid ""
302
+ "From now on, you can find all plugin options in YIT Plugin menu.\n"
303
+ " For each plugin installed, customization "
304
+ "settings will be available as a new entry in YIT Plugin menu."
305
+ msgstr ""
306
+
307
+ #: lib/yit-pointers.php:73 lib/yit-pointers.php:89
308
+ msgid "Discover all our plugins available on:"
309
+ msgstr ""
310
+
311
+ #: lib/yit-pointers.php:74 lib/yit-pointers.php:90
312
+ msgid "and"
313
+ msgstr ""
314
+
315
+ #: lib/yit-pointers.php:84
316
+ msgid "Plugins Upgraded"
317
+ msgstr ""
318
+
319
+ #: lib/yit-pointers.php:85
320
+ msgid ""
321
+ "From now on, you can find all options of your plugins in YIT Plugin menu.\n"
322
+ " Any time one of our plugins is updated, a new "
323
+ "entry will be added to this menu.\n"
324
+ " For example, after the update, plugin options "
325
+ "(such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)\n"
326
+ " will be moved from previous location to YIT "
327
+ "Plugin tab."
328
+ msgstr ""
329
+
330
+ #: lib/yit-upgrade.php:123
331
+ msgid "There is a new version of %plugin_name% available."
332
+ msgstr ""
333
+
334
+ #: lib/yit-upgrade.php:124
335
+ msgid "View version %latest% details."
336
+ msgstr ""
337
+
338
+ #: lib/yit-upgrade.php:125
339
+ msgid "Automatic update is unavailable for this plugin,"
340
+ msgstr ""
341
+
342
+ #: lib/yit-upgrade.php:126
343
+ msgid "please <a href=\"%activate_link%\">activate</a> your copy of %plugin_name%."
344
+ msgstr ""
345
+
346
+ #: lib/yit-upgrade.php:127
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-"
373
+ "changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>You have to "
374
+ "activate the plugin on a single site of the network to benefit from automatic "
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-"
391
+ "changelog-button\" title=\"%3$s\">View version %4$s details</a> or <a href=\"%5$s"
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 ""
561
+
562
+ #: templates/metaboxes/types/categories.php:36
563
+ msgid "No categories."
564
+ msgstr ""
565
+
566
+ #: templates/metaboxes/types/categories.php:42
567
+ msgid "+ Add New Category"
568
+ msgstr ""
569
+
570
+ #: templates/metaboxes/types/categories.php:46
571
+ msgid "Add"
572
+ msgstr ""
573
+
574
+ #: templates/metaboxes/types/contactform.php:7
575
+ msgid "Text Input"
576
+ msgstr ""
577
+
578
+ #: templates/metaboxes/types/contactform.php:8
579
+ msgid "Checkbox"
580
+ msgstr ""
581
+
582
+ #: templates/metaboxes/types/contactform.php:9
583
+ msgid "Select"
584
+ msgstr ""
585
+
586
+ #: templates/metaboxes/types/contactform.php:10
587
+ msgid "Textarea"
588
+ msgstr ""
589
+
590
+ #: templates/metaboxes/types/contactform.php:11
591
+ msgid "Radio Input"
592
+ msgstr ""
593
+
594
+ #: templates/metaboxes/types/contactform.php:12
595
+ msgid "Password Field"
596
+ msgstr ""
597
+
598
+ #: templates/metaboxes/types/contactform.php:13
599
+ msgid "File Upload"
600
+ msgstr ""
601
+
602
+ #: templates/metaboxes/types/contactform.php:47
603
+ msgid "Theme Icon"
604
+ msgstr ""
605
+
606
+ #: templates/metaboxes/types/contactform.php:48
607
+ msgid "Custom Icon"
608
+ msgstr ""
609
+
610
+ #: templates/metaboxes/types/contactform.php:49
611
+ #: templates/metaboxes/types/responsivesliders.php:24
612
+ msgid "None"
613
+ msgstr ""
614
+
615
+ #: templates/metaboxes/types/contactform.php:60
616
+ msgid "Add field"
617
+ msgstr ""
618
+
619
+ #: templates/metaboxes/types/contactform.php:69
620
+ #: templates/metaboxes/types/contactform.php:261
621
+ #: templates/metaboxes/types/customtabs.php:37
622
+ #: templates/metaboxes/types/customtabs.php:82
623
+ msgid "Remove"
624
+ msgstr ""
625
+
626
+ #: templates/metaboxes/types/contactform.php:70
627
+ #: templates/metaboxes/types/contactform.php:262
628
+ msgid "Click to toggle"
629
+ 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
637
+ #: templates/metaboxes/types/contactform.php:273
638
+ msgid "Insert the title for the field."
639
+ msgstr ""
640
+
641
+ #: templates/metaboxes/types/contactform.php:86
642
+ #: templates/metaboxes/types/contactform.php:278
643
+ msgid "Data Name"
644
+ msgstr ""
645
+
646
+ #: templates/metaboxes/types/contactform.php:90
647
+ #: templates/metaboxes/types/contactform.php:282
648
+ msgid ""
649
+ "REQUIRED: Field identification name to be entered into email body. <strong>Note:</"
650
+ "strong>Use only lowercase characters and underscores."
651
+ 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
659
+ #: templates/metaboxes/types/contactform.php:295
660
+ msgid "Select the type for this field."
661
+ msgstr ""
662
+
663
+ #: templates/metaboxes/types/contactform.php:108
664
+ #: templates/metaboxes/types/contactform.php:300
665
+ msgid "Checked"
666
+ msgstr ""
667
+
668
+ #: templates/metaboxes/types/contactform.php:112
669
+ #: templates/metaboxes/types/contactform.php:304
670
+ msgid "Select this option if you want this field appears as already checked."
671
+ msgstr ""
672
+
673
+ #: templates/metaboxes/types/contactform.php:117
674
+ #: templates/metaboxes/types/contactform.php:309
675
+ msgid "Add options "
676
+ msgstr ""
677
+
678
+ #: templates/metaboxes/types/contactform.php:118
679
+ #: templates/metaboxes/types/contactform.php:310
680
+ msgid "Add option"
681
+ msgstr ""
682
+
683
+ #: templates/metaboxes/types/contactform.php:121
684
+ #: templates/metaboxes/types/contactform.php:313
685
+ #: templates/metaboxes/types/contactform.php:436
686
+ msgid "Selected"
687
+ msgstr ""
688
+
689
+ #: templates/metaboxes/types/contactform.php:124
690
+ #: templates/metaboxes/types/contactform.php:316
691
+ #: templates/metaboxes/types/contactform.php:436
692
+ msgid "Delete option"
693
+ msgstr ""
694
+
695
+ #: templates/metaboxes/types/contactform.php:130
696
+ #: templates/metaboxes/types/contactform.php:322
697
+ msgid "Error Message"
698
+ msgstr ""
699
+
700
+ #: templates/metaboxes/types/contactform.php:134
701
+ #: templates/metaboxes/types/contactform.php:326
702
+ msgid "Insert the error message for validation."
703
+ msgstr ""
704
+
705
+ #: templates/metaboxes/types/contactform.php:139
706
+ #: templates/metaboxes/types/contactform.php:331
707
+ msgid "Required"
708
+ msgstr ""
709
+
710
+ #: templates/metaboxes/types/contactform.php:143
711
+ #: templates/metaboxes/types/contactform.php:335
712
+ msgid "Select this option if it must be required."
713
+ msgstr ""
714
+
715
+ #: templates/metaboxes/types/contactform.php:152
716
+ #: templates/metaboxes/types/contactform.php:344
717
+ msgid "Select this option if the email must be valid."
718
+ msgstr ""
719
+
720
+ #: templates/metaboxes/types/contactform.php:157
721
+ #: templates/metaboxes/types/contactform.php:349
722
+ msgid "Reply To"
723
+ msgstr ""
724
+
725
+ #: templates/metaboxes/types/contactform.php:161
726
+ #: templates/metaboxes/types/contactform.php:353
727
+ msgid "Select this if it is the email you can reply to."
728
+ msgstr ""
729
+
730
+ #: templates/metaboxes/types/contactform.php:166
731
+ #: templates/metaboxes/types/contactform.php:358
732
+ msgid "Class"
733
+ msgstr ""
734
+
735
+ #: templates/metaboxes/types/contactform.php:170
736
+ #: templates/metaboxes/types/contactform.php:362
737
+ msgid "Insert additional class(es) (separated by commas) for more personalization."
738
+ msgstr ""
739
+
740
+ #: templates/metaboxes/types/contactform.php:175
741
+ #: templates/metaboxes/types/contactform.php:367
742
+ msgid "Icon"
743
+ msgstr ""
744
+
745
+ #: templates/metaboxes/types/contactform.php:203
746
+ #: templates/metaboxes/types/contactform.php:391
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
+
754
+ #: templates/metaboxes/types/contactform.php:209
755
+ #: templates/metaboxes/types/contactform.php:397
756
+ #: templates/metaboxes/types/icon-list.php:75
757
+ #: templates/metaboxes/types/select-icon.php:39
758
+ msgid "Image preview"
759
+ msgstr ""
760
+
761
+ #: templates/metaboxes/types/contactform.php:217
762
+ #: templates/metaboxes/types/contactform.php:405
763
+ msgid "Insert an icon for more personalization."
764
+ msgstr ""
765
+
766
+ #: templates/metaboxes/types/contactform.php:222
767
+ #: templates/metaboxes/types/contactform.php:409
768
+ msgid "Width"
769
+ msgstr ""
770
+
771
+ #: templates/metaboxes/types/contactform.php:247
772
+ #: templates/metaboxes/types/contactform.php:421
773
+ msgid "Set field length."
774
+ msgstr ""
775
+
776
+ #: templates/metaboxes/types/customtabs.php:28
777
+ msgid "Close all"
778
+ msgstr ""
779
+
780
+ #: templates/metaboxes/types/customtabs.php:28
781
+ msgid "Expand all"
782
+ msgstr ""
783
+
784
+ #: templates/metaboxes/types/customtabs.php:52
785
+ #: templates/metaboxes/types/customtabs.php:95
786
+ msgid "Value"
787
+ msgstr ""
788
+
789
+ #: templates/metaboxes/types/customtabs.php:53
790
+ #: templates/metaboxes/types/customtabs.php:96
791
+ msgid "Content of the tab. (HTML is supported)"
792
+ msgstr ""
793
+
794
+ #: templates/metaboxes/types/customtabs.php:65
795
+ msgid "Add custom product tab"
796
+ msgstr ""
797
+
798
+ #: templates/metaboxes/types/customtabs.php:107
799
+ msgid "Do you want to remove the custom tab?"
800
+ msgstr ""
801
+
802
+ #: templates/metaboxes/types/icon-list.php:89
803
+ #, php-format
804
+ msgid "(Default: %s <img src=\"%s\"/>)"
805
+ msgstr ""
806
+
807
+ #: templates/metaboxes/types/icon-list.php:91
808
+ #, php-format
809
+ msgid "(Default: <i %s></i> )"
810
+ msgstr ""
811
+
812
+ #: templates/metaboxes/types/image-gallery.php:40
813
+ #: templates/metaboxes/types/image-gallery.php:45
814
+ #: templates/metaboxes/types/images.php:38 templates/metaboxes/types/images.php:64
815
+ msgid "Delete image"
816
+ msgstr ""
817
+
818
+ #: templates/metaboxes/types/image-gallery.php:45
819
+ msgid "Add Images to Gallery"
820
+ msgstr ""
821
+
822
+ #: templates/metaboxes/types/image-gallery.php:45
823
+ msgid "Add to gallery"
824
+ msgstr ""
825
+
826
+ #: templates/metaboxes/types/image-gallery.php:45
827
+ msgid "Add images"
828
+ msgstr ""
829
+
830
+ #: templates/metaboxes/types/image-gallery.php:45
831
+ msgid "Delete"
832
+ msgstr ""
833
+
834
+ #: templates/metaboxes/types/images.php:42
835
+ msgid "Upload new images"
836
+ msgstr ""
837
+
838
+ #: templates/metaboxes/types/images.php:75
839
+ msgid "Are you sure you want to remove this image?"
840
+ msgstr ""
841
+
842
+ #: templates/metaboxes/types/sidebar-layout.php:25
843
+ #: templates/metaboxes/types/sidebars.php:36
844
+ msgid "Left sidebar"
845
+ msgstr ""
846
+
847
+ #: templates/metaboxes/types/sidebar-layout.php:28
848
+ #: templates/metaboxes/types/sidebars.php:42
849
+ #: templates/metaboxes/types/sidebars.php:45
850
+ msgid "No sidebar"
851
+ msgstr ""
852
+
853
+ #: templates/metaboxes/types/sidebar-layout.php:31
854
+ #: templates/metaboxes/types/sidebars.php:39
855
+ msgid "Right sidebar"
856
+ msgstr ""
857
+
858
+ #: templates/metaboxes/types/sidebar-layout.php:34
859
+ #: templates/metaboxes/types/sidebars.php:53
860
+ #: templates/metaboxes/types/sidebars.php:64
861
+ msgid "Choose a sidebar"
862
+ msgstr ""
863
+
864
+ #: templates/metaboxes/types/sidebars.php:51
865
+ msgid "Left Sidebar"
866
+ msgstr ""
867
+
868
+ #: templates/metaboxes/types/sidebars.php:62
869
+ msgid "Right Sidebar"
870
+ msgstr ""
871
+
872
+ #: templates/metaboxes/types/typography.php:42
873
+ msgid "px"
874
+ msgstr ""
875
+
876
+ #: templates/metaboxes/types/typography.php:43
877
+ msgid "em"
878
+ msgstr ""
879
+
880
+ #: templates/metaboxes/types/typography.php:44
881
+ msgid "pt"
882
+ msgstr ""
883
+
884
+ #: templates/metaboxes/types/typography.php:45
885
+ msgid "rem"
886
+ msgstr ""
887
+
888
+ #: templates/metaboxes/types/typography.php:59
889
+ #: templates/metaboxes/types/typography.php:153
890
+ #: templates/metaboxes/types/typography.php:217
891
+ msgid "Web fonts"
892
+ msgstr ""
893
+
894
+ #: templates/metaboxes/types/typography.php:71
895
+ msgid "Google fonts"
896
+ msgstr ""
897
+
898
+ #: templates/metaboxes/types/typography.php:96
899
+ msgid "Regular"
900
+ msgstr ""
901
+
902
+ #: templates/metaboxes/types/typography.php:97
903
+ msgid "Bold"
904
+ msgstr ""
905
+
906
+ #: templates/metaboxes/types/typography.php:98
907
+ msgid "Extra bold"
908
+ msgstr ""
909
+
910
+ #: templates/metaboxes/types/typography.php:99
911
+ msgid "Italic"
912
+ msgstr ""
913
+
914
+ #: templates/metaboxes/types/typography.php:100
915
+ msgid "Italic bold"
916
+ msgstr ""
917
+
918
+ #: templates/panel/woocommerce/woocommerce-form.php:10
919
+ msgid "Reset Defaults"
920
+ msgstr ""
plugin-fw/lib/yit-cpt-unlimited.php CHANGED
@@ -457,15 +457,15 @@ class YIT_CPT_Unlimited {
457
  $labels = array(
458
  'name' => ucfirst( $this->_labels['main_name'] ),
459
  'singular_name' => ucfirst( $this->_labels['singular'] ),
460
- 'add_new' => sprintf( __( 'Add %s', 'yit' ), ucfirst( $this->_labels['singular'] ) ),
461
- 'add_new_item' => sprintf( __( 'Add New %s', 'yit' ), ucfirst( $this->_labels['singular'] ) ),
462
- 'edit_item' => sprintf( __( 'Edit %s', 'yit' ), ucfirst( $this->_labels['singular'] ) ),
463
- 'new_item' => sprintf( __( 'New %s', 'yit' ), ucfirst( $this->_labels['singular'] ) ),
464
- 'all_items' => sprintf( __( 'All %s', 'yit' ), ucfirst( $this->_labels['plural'] ) ),
465
- 'view_item' => sprintf( __( 'View %s', 'yit' ), ucfirst( $this->_labels['singular'] ) ),
466
- 'search_items' => sprintf( __( 'Search %s', 'yit' ), ucfirst( $this->_labels['plural'] ) ),
467
- 'not_found' => sprintf( __( 'No %s found', 'yit' ), ucfirst( $this->_labels['plural'] ) ),
468
- 'not_found_in_trash' => sprintf( __( 'No %s found in Trash', 'yit' ), ucfirst( $this->_labels['plural'] ) ),
469
  'parent_item_colon' => '',
470
  'menu_name' => ucfirst( $this->_labels['menu'] )
471
  );
@@ -571,15 +571,15 @@ class YIT_CPT_Unlimited {
571
  $labels = array(
572
  'name' => $title,
573
  'singular_name' => $label_singular,
574
- 'add_new' => sprintf( __( 'Add %s', 'yit' ), $label_singular ),
575
- 'add_new_item' => sprintf( __( 'Add New %s', 'yit' ), $label_singular ),
576
- 'edit_item' => sprintf( __( 'Edit %s', 'yit' ), $label_singular ),
577
- 'new_item' => sprintf( __( 'New %s', 'yit' ), $label_singular ),
578
- 'all_items' => sprintf( __( 'All %s', 'yit' ), $label_plural ),
579
- 'view_item' => sprintf( __( 'View %s', 'yit' ), $label_singular ),
580
- 'search_items' => sprintf( __( 'Search %s', 'yit' ), $label_plural ),
581
- 'not_found' => sprintf( __( 'No %s found', 'yit' ), $label_plural ),
582
- 'not_found_in_trash' => sprintf( __( 'No %s found in Trash', 'yit' ), $label_plural ),
583
  'parent_item_colon' => '',
584
  'menu_name' => $title
585
  );
@@ -622,17 +622,17 @@ class YIT_CPT_Unlimited {
622
  if ( $this->_args['has_taxonomy'] && ! empty( $taxonomy ) ) {
623
 
624
  $labels = array(
625
- 'name' => sprintf( _x( '%s Categories', 'taxonomy general name', 'yit' ), $label_singular ),
626
- 'singular_name' => _x( 'Category', 'taxonomy singular name', 'yit' ),
627
- 'search_items' => __( 'Search Categories', 'yit' ),
628
- 'all_items' => __( 'All Categories', 'yit' ),
629
- 'parent_item' => __( 'Parent Category', 'yit' ),
630
- 'parent_item_colon' => __( 'Parent Category:', 'yit' ),
631
- 'edit_item' => __( 'Edit Category', 'yit' ),
632
- 'update_item' => __( 'Update Category', 'yit' ),
633
- 'add_new_item' => __( 'Add New Category', 'yit' ),
634
- 'new_item_name' => __( 'New Category Name', 'yit' ),
635
- 'menu_name' => __( 'Category', 'yit' ),
636
  );
637
 
638
  $args = array(
@@ -716,12 +716,12 @@ class YIT_CPT_Unlimited {
716
  }
717
 
718
  $submenu[ $item ][15] = array( ucfirst( $label_plural ), 'edit_posts', 'edit.php?post_type=' . $post_type );
719
- $submenu[ $item ][20] = array( sprintf( __('Add %s', 'yit'), ucfirst( $label_singular ) ), 'edit_posts', 'post-new.php?post_type=' . $post_type );
720
 
721
  global $wp_taxonomies;
722
  $taxonomy = get_post_meta( $portfolio->ID, '_taxonomy', true );
723
  if ( isset( $wp_taxonomies[ $taxonomy ] ) ) {
724
- $submenu[ $item ][25] = array( __('Categories', 'yit'), 'edit_posts', 'edit-tags.php?taxonomy=' . $taxonomy . '&post_type=' . $post_type );
725
  }
726
  }
727
 
@@ -1039,54 +1039,54 @@ class YIT_CPT_Unlimited {
1039
  $single_layouts = apply_filters( 'yit_cptu_' . $this->_name . '_single_layout_values', array() );
1040
 
1041
  $metabox_args = array(
1042
- 'label' => sprintf( __( '%s Settings', 'yit' ), $this->_labels['singular'] ),
1043
  'pages' => $this->_name, //or array( 'post-type1', 'post-type2')
1044
  'context' => 'normal', //('normal', 'advanced', or 'side')
1045
  'priority' => 'default',
1046
  'tabs' => array(
1047
  'settings' => array(
1048
- 'label' => __( 'Settings', 'yit' ),
1049
  'fields' => apply_filters( 'yit_cptu_fields', array(
1050
  'type' => array(
1051
- 'label' => __( 'Type', 'yit' ),
1052
- 'desc' => __( 'Layout for this '.strtolower( $this->_labels['singular'] ) , 'yit' ),
1053
  'type' => 'select',
1054
  'options' => isset( $layouts ) ? $layouts : array(),
1055
  'std' => '' ),
1056
 
1057
  'rewrite' => array(
1058
- 'label' => __( 'Rewrite', 'yit' ),
1059
- 'desc' => __( 'Univocal identification name in the URL for each product (slug from post if empty)', 'yit' ),
1060
  'type' => 'text',
1061
  'std' => '' ),
1062
 
1063
  'label_singular' => array(
1064
- 'label' => __( 'Label in Singular', 'yit' ),
1065
- 'desc' => __( 'Set a label in singular (title of portfolio if empty)', 'yit' ),
1066
  'type' => 'text',
1067
  'std' => '' ),
1068
 
1069
  'label_plural' => array(
1070
- 'label' => __( 'Label in Plural', 'yit' ),
1071
- 'desc' => __( 'Set a label in plural (title of portfolio if empty)', 'yit' ),
1072
  'type' => 'text',
1073
  'std' => '' ),
1074
 
1075
  'taxonomy' => array(
1076
- 'label' => __( 'Taxonomy', 'yit' ),
1077
- 'desc' => __( 'If you want to use categories in the portfolio, set a name for taxonomy. Name should be a slug (must not contain capital letters nor spaces) and must not be more than 32 characters long (database structure restriction).', 'yit' ),
1078
  'type' => 'text',
1079
  'std' => '' ),
1080
 
1081
  'taxonomy_rewrite' => array(
1082
- 'label' => __( 'Taxonomy Rewrite', 'yit' ),
1083
- 'desc' => __( 'Set univocal name for each category page URL.', 'yit' ),
1084
  'type' => 'text',
1085
  'std' => '' ),
1086
 
1087
  'single_layout' => array(
1088
- 'label' => __( 'Single layout', 'yit' ),
1089
- 'desc' => __( 'Layout for single page of this portfolio', 'yit' ),
1090
  'type' => 'select',
1091
  'options' => $single_layouts,
1092
  'std' => '' ),
@@ -1127,7 +1127,7 @@ class YIT_CPT_Unlimited {
1127
 
1128
  // Section title
1129
  $metabox_args['tabs']['settings']['fields'][ $layout . '_title' ] = array(
1130
- 'desc' => $args['name'] . ' ' . __( 'layout settings', 'yit' ),
1131
  'type' => 'title',
1132
  'deps' => array(
1133
  'ids' => '_type',
@@ -1193,13 +1193,13 @@ class YIT_CPT_Unlimited {
1193
  }
1194
 
1195
  $metabox_args = array(
1196
- 'label' => __( 'Settings', 'yit' ),
1197
  'pages' => $post_type, //or array( 'post-type1', 'post-type2')
1198
  'context' => 'normal', //('normal', 'advanced', or 'side')
1199
  'priority' => 'default',
1200
  'tabs' => array(
1201
  'settings' => array(
1202
- 'label' => __( 'Settings', 'yit' ),
1203
  'fields' => $this->layouts[ $layout ]['item_fields']
1204
  )
1205
  )
@@ -1219,7 +1219,7 @@ class YIT_CPT_Unlimited {
1219
  */
1220
  public function add_quick_links_metaboxes() {
1221
  // CPTU
1222
- add_meta_box( $this->_name . '_quick_links', __( 'Quick links', 'yit' ), array( $this, 'quick_links_cptu_inner' ), $this->_name, 'side', 'high' );
1223
 
1224
  // CPTs
1225
  $args = array(
@@ -1232,7 +1232,7 @@ class YIT_CPT_Unlimited {
1232
  foreach ( $post_types as $post ) {
1233
  $post_type = get_post_meta( $post->ID, '_post_type', true );
1234
  extract( $this->_cpt_args( $post ) );
1235
- add_meta_box( $post->post_type . '_quick_links', __( 'Quick links', 'yit' ), array( $this, 'quick_links_cpt_inner' ), $post_type, 'side', 'high' );
1236
  }
1237
  }
1238
 
@@ -1248,7 +1248,7 @@ class YIT_CPT_Unlimited {
1248
  public function quick_links_cptu_inner( $post ) {
1249
  extract( $this->_cpt_args( $post ) );
1250
  ?>
1251
- <a href="<?php echo admin_url( 'edit.php?post_type=' . get_post_meta( $post->ID, '_post_type', true ) ) ?>"><?php printf( __( 'View %s', 'yit' ), $label_plural ) ?></a>
1252
  <?php
1253
  }
1254
 
@@ -1264,7 +1264,7 @@ class YIT_CPT_Unlimited {
1264
  public function quick_links_cpt_inner( $post ) {
1265
  $post = get_post( $this->_get_id_by_name( $post->post_type ) );
1266
  ?>
1267
- <a href="<?php echo admin_url( "post.php?post={$post->ID}&action=edit" ) ?>"><?php printf( __( 'Edit %s', 'yit' ), $post->post_title ) ?></a>
1268
  <?php
1269
  }
1270
 
@@ -1301,8 +1301,8 @@ class YIT_CPT_Unlimited {
1301
 
1302
  switch ( $column ) {
1303
  case 'actions' :
1304
- echo '<a href="' . admin_url( "post.php?post={$post_id}&action=edit" ) . '" class="button-secondary">' . sprintf( __( 'Edit %s', 'yit' ), ucfirst( $this->_labels['singular'] ) ) . '</a> ';
1305
- echo '<a href="' . admin_url( 'edit.php?post_type=' . get_post_meta( $post_id, '_post_type', true ) ) . '" class="button-secondary">' . sprintf( __( 'View %s', 'yit' ), $label_plural ) . '</a> ';
1306
  break;
1307
  }
1308
  }
@@ -1472,14 +1472,14 @@ class YIT_CPT_Unlimited {
1472
  $args = array(
1473
  $this->_args['shortcode_name'] => array(
1474
  'title' => $this->_labels['singular'],
1475
- 'description' => sprintf( __( 'Show frontend of the %s', 'yit' ), $this->_labels['main_name'] ),
1476
  'tab' => 'cpt',
1477
  'create' => false,
1478
  'has_content' => false,
1479
  'in_visual_composer' => true,
1480
  'attributes' => array(
1481
  'name' => array(
1482
- 'title' => __( 'Name', 'yit' ),
1483
  'type' => 'select',
1484
  'options' => $post_types,
1485
  'std' => ''
@@ -1628,9 +1628,9 @@ class YIT_CPT_Unlimited {
1628
  var button = $('<a />', {
1629
  href: '#',
1630
  class: 'multi-uploader add-new-h2',
1631
- 'data-uploader_title': '<?php printf( __( 'Add %s from images', 'yit' ), $label_plural ) ?>',
1632
- 'data-uploader_button_text': '<?php printf( __( 'Add %s', 'yit' ), $label_plural ) ?>'
1633
- }).text('<?php _e( 'Add with multiupload', 'yit' ) ?>');
1634
 
1635
  var spinner = $('<span />', {
1636
  class: 'spinner',
457
  $labels = array(
458
  'name' => ucfirst( $this->_labels['main_name'] ),
459
  'singular_name' => ucfirst( $this->_labels['singular'] ),
460
+ 'add_new' => sprintf( __( 'Add %s', 'yith-plugin-fw' ), ucfirst( $this->_labels['singular'] ) ),
461
+ 'add_new_item' => sprintf( __( 'Add New %s', 'yith-plugin-fw' ), ucfirst( $this->_labels['singular'] ) ),
462
+ 'edit_item' => sprintf( __( 'Edit %s', 'yith-plugin-fw' ), ucfirst( $this->_labels['singular'] ) ),
463
+ 'new_item' => sprintf( __( 'New %s', 'yith-plugin-fw' ), ucfirst( $this->_labels['singular'] ) ),
464
+ 'all_items' => sprintf( __( 'All %s', 'yith-plugin-fw' ), ucfirst( $this->_labels['plural'] ) ),
465
+ 'view_item' => sprintf( __( 'View %s', 'yith-plugin-fw' ), ucfirst( $this->_labels['singular'] ) ),
466
+ 'search_items' => sprintf( __( 'Search %s', 'yith-plugin-fw' ), ucfirst( $this->_labels['plural'] ) ),
467
+ 'not_found' => sprintf( __( 'No %s found', 'yith-plugin-fw' ), ucfirst( $this->_labels['plural'] ) ),
468
+ 'not_found_in_trash' => sprintf( __( 'No %s found in Trash', 'yith-plugin-fw' ), ucfirst( $this->_labels['plural'] ) ),
469
  'parent_item_colon' => '',
470
  'menu_name' => ucfirst( $this->_labels['menu'] )
471
  );
571
  $labels = array(
572
  'name' => $title,
573
  'singular_name' => $label_singular,
574
+ 'add_new' => sprintf( __( 'Add %s', 'yith-plugin-fw' ), $label_singular ),
575
+ 'add_new_item' => sprintf( __( 'Add New %s', 'yith-plugin-fw' ), $label_singular ),
576
+ 'edit_item' => sprintf( __( 'Edit %s', 'yith-plugin-fw' ), $label_singular ),
577
+ 'new_item' => sprintf( __( 'New %s', 'yith-plugin-fw' ), $label_singular ),
578
+ 'all_items' => sprintf( __( 'All %s', 'yith-plugin-fw' ), $label_plural ),
579
+ 'view_item' => sprintf( __( 'View %s', 'yith-plugin-fw' ), $label_singular ),
580
+ 'search_items' => sprintf( __( 'Search %s', 'yith-plugin-fw' ), $label_plural ),
581
+ 'not_found' => sprintf( __( 'No %s found', 'yith-plugin-fw' ), $label_plural ),
582
+ 'not_found_in_trash' => sprintf( __( 'No %s found in Trash', 'yith-plugin-fw' ), $label_plural ),
583
  'parent_item_colon' => '',
584
  'menu_name' => $title
585
  );
622
  if ( $this->_args['has_taxonomy'] && ! empty( $taxonomy ) ) {
623
 
624
  $labels = array(
625
+ 'name' => sprintf( _x( '%s Categories', 'taxonomy general name', 'yith-plugin-fw' ), $label_singular ),
626
+ 'singular_name' => _x( 'Category', 'taxonomy singular name', 'yith-plugin-fw' ),
627
+ 'search_items' => __( 'Search Categories', 'yith-plugin-fw' ),
628
+ 'all_items' => __( 'All Categories', 'yith-plugin-fw' ),
629
+ 'parent_item' => __( 'Parent Category', 'yith-plugin-fw' ),
630
+ 'parent_item_colon' => __( 'Parent Category:', 'yith-plugin-fw' ),
631
+ 'edit_item' => __( 'Edit Category', 'yith-plugin-fw' ),
632
+ 'update_item' => __( 'Update Category', 'yith-plugin-fw' ),
633
+ 'add_new_item' => __( 'Add New Category', 'yith-plugin-fw' ),
634
+ 'new_item_name' => __( 'New Category Name', 'yith-plugin-fw' ),
635
+ 'menu_name' => __( 'Category', 'yith-plugin-fw' ),
636
  );
637
 
638
  $args = array(
716
  }
717
 
718
  $submenu[ $item ][15] = array( ucfirst( $label_plural ), 'edit_posts', 'edit.php?post_type=' . $post_type );
719
+ $submenu[ $item ][20] = array( sprintf( __('Add %s', 'yith-plugin-fw'), ucfirst( $label_singular ) ), 'edit_posts', 'post-new.php?post_type=' . $post_type );
720
 
721
  global $wp_taxonomies;
722
  $taxonomy = get_post_meta( $portfolio->ID, '_taxonomy', true );
723
  if ( isset( $wp_taxonomies[ $taxonomy ] ) ) {
724
+ $submenu[ $item ][25] = array( __('Categories', 'yith-plugin-fw'), 'edit_posts', 'edit-tags.php?taxonomy=' . $taxonomy . '&post_type=' . $post_type );
725
  }
726
  }
727
 
1039
  $single_layouts = apply_filters( 'yit_cptu_' . $this->_name . '_single_layout_values', array() );
1040
 
1041
  $metabox_args = array(
1042
+ 'label' => sprintf( __( '%s Settings', 'yith-plugin-fw' ), $this->_labels['singular'] ),
1043
  'pages' => $this->_name, //or array( 'post-type1', 'post-type2')
1044
  'context' => 'normal', //('normal', 'advanced', or 'side')
1045
  'priority' => 'default',
1046
  'tabs' => array(
1047
  'settings' => array(
1048
+ 'label' => __( 'Settings', 'yith-plugin-fw' ),
1049
  'fields' => apply_filters( 'yit_cptu_fields', array(
1050
  'type' => array(
1051
+ 'label' => __( 'Type', 'yith-plugin-fw' ),
1052
+ 'desc' => __( 'Layout for this '.strtolower( $this->_labels['singular'] ) , 'yith-plugin-fw' ),
1053
  'type' => 'select',
1054
  'options' => isset( $layouts ) ? $layouts : array(),
1055
  'std' => '' ),
1056
 
1057
  'rewrite' => array(
1058
+ 'label' => __( 'Rewrite', 'yith-plugin-fw' ),
1059
+ 'desc' => __( 'Univocal identification name in the URL for each product (slug from post if empty)', 'yith-plugin-fw' ),
1060
  'type' => 'text',
1061
  'std' => '' ),
1062
 
1063
  'label_singular' => array(
1064
+ 'label' => __( 'Label in Singular', 'yith-plugin-fw' ),
1065
+ 'desc' => __( 'Set a label in singular (title of portfolio if empty)', 'yith-plugin-fw' ),
1066
  'type' => 'text',
1067
  'std' => '' ),
1068
 
1069
  'label_plural' => array(
1070
+ 'label' => __( 'Label in Plural', 'yith-plugin-fw' ),
1071
+ 'desc' => __( 'Set a label in plural (title of portfolio if empty)', 'yith-plugin-fw' ),
1072
  'type' => 'text',
1073
  'std' => '' ),
1074
 
1075
  'taxonomy' => array(
1076
+ 'label' => __( 'Taxonomy', 'yith-plugin-fw' ),
1077
+ 'desc' => __( 'If you want to use categories in the portfolio, set a name for taxonomy. Name should be a slug (must not contain capital letters nor spaces) and must not be more than 32 characters long (database structure restriction).', 'yith-plugin-fw' ),
1078
  'type' => 'text',
1079
  'std' => '' ),
1080
 
1081
  'taxonomy_rewrite' => array(
1082
+ 'label' => __( 'Taxonomy Rewrite', 'yith-plugin-fw' ),
1083
+ 'desc' => __( 'Set univocal name for each category page URL.', 'yith-plugin-fw' ),
1084
  'type' => 'text',
1085
  'std' => '' ),
1086
 
1087
  'single_layout' => array(
1088
+ 'label' => __( 'Single layout', 'yith-plugin-fw' ),
1089
+ 'desc' => __( 'Layout for single page of this portfolio', 'yith-plugin-fw' ),
1090
  'type' => 'select',
1091
  'options' => $single_layouts,
1092
  'std' => '' ),
1127
 
1128
  // Section title
1129
  $metabox_args['tabs']['settings']['fields'][ $layout . '_title' ] = array(
1130
+ 'desc' => $args['name'] . ' ' . __( 'layout settings', 'yith-plugin-fw' ),
1131
  'type' => 'title',
1132
  'deps' => array(
1133
  'ids' => '_type',
1193
  }
1194
 
1195
  $metabox_args = array(
1196
+ 'label' => __( 'Settings', 'yith-plugin-fw' ),
1197
  'pages' => $post_type, //or array( 'post-type1', 'post-type2')
1198
  'context' => 'normal', //('normal', 'advanced', or 'side')
1199
  'priority' => 'default',
1200
  'tabs' => array(
1201
  'settings' => array(
1202
+ 'label' => __( 'Settings', 'yith-plugin-fw' ),
1203
  'fields' => $this->layouts[ $layout ]['item_fields']
1204
  )
1205
  )
1219
  */
1220
  public function add_quick_links_metaboxes() {
1221
  // CPTU
1222
+ add_meta_box( $this->_name . '_quick_links', __( 'Quick links', 'yith-plugin-fw' ), array( $this, 'quick_links_cptu_inner' ), $this->_name, 'side', 'high' );
1223
 
1224
  // CPTs
1225
  $args = array(
1232
  foreach ( $post_types as $post ) {
1233
  $post_type = get_post_meta( $post->ID, '_post_type', true );
1234
  extract( $this->_cpt_args( $post ) );
1235
+ add_meta_box( $post->post_type . '_quick_links', __( 'Quick links', 'yith-plugin-fw' ), array( $this, 'quick_links_cpt_inner' ), $post_type, 'side', 'high' );
1236
  }
1237
  }
1238
 
1248
  public function quick_links_cptu_inner( $post ) {
1249
  extract( $this->_cpt_args( $post ) );
1250
  ?>
1251
+ <a href="<?php echo admin_url( 'edit.php?post_type=' . get_post_meta( $post->ID, '_post_type', true ) ) ?>"><?php printf( __( 'View %s', 'yith-plugin-fw' ), $label_plural ) ?></a>
1252
  <?php
1253
  }
1254
 
1264
  public function quick_links_cpt_inner( $post ) {
1265
  $post = get_post( $this->_get_id_by_name( $post->post_type ) );
1266
  ?>
1267
+ <a href="<?php echo admin_url( "post.php?post={$post->ID}&action=edit" ) ?>"><?php printf( __( 'Edit %s', 'yith-plugin-fw' ), $post->post_title ) ?></a>
1268
  <?php
1269
  }
1270
 
1301
 
1302
  switch ( $column ) {
1303
  case 'actions' :
1304
+ echo '<a href="' . admin_url( "post.php?post={$post_id}&action=edit" ) . '" class="button-secondary">' . sprintf( __( 'Edit %s', 'yith-plugin-fw' ), ucfirst( $this->_labels['singular'] ) ) . '</a> ';
1305
+ echo '<a href="' . admin_url( 'edit.php?post_type=' . get_post_meta( $post_id, '_post_type', true ) ) . '" class="button-secondary">' . sprintf( __( 'View %s', 'yith-plugin-fw' ), $label_plural ) . '</a> ';
1306
  break;
1307
  }
1308
  }
1472
  $args = array(
1473
  $this->_args['shortcode_name'] => array(
1474
  'title' => $this->_labels['singular'],
1475
+ 'description' => sprintf( __( 'Show frontend of the %s', 'yith-plugin-fw' ), $this->_labels['main_name'] ),
1476
  'tab' => 'cpt',
1477
  'create' => false,
1478
  'has_content' => false,
1479
  'in_visual_composer' => true,
1480
  'attributes' => array(
1481
  'name' => array(
1482
+ 'title' => __( 'Name', 'yith-plugin-fw' ),
1483
  'type' => 'select',
1484
  'options' => $post_types,
1485
  'std' => ''
1628
  var button = $('<a />', {
1629
  href: '#',
1630
  class: 'multi-uploader add-new-h2',
1631
+ 'data-uploader_title': '<?php printf( __( 'Add %s from images', 'yith-plugin-fw' ), $label_plural ) ?>',
1632
+ 'data-uploader_button_text': '<?php printf( __( 'Add %s', 'yith-plugin-fw' ), $label_plural ) ?>'
1633
+ }).text('<?php _e( 'Add with multiupload', 'yith-plugin-fw' ) ?>');
1634
 
1635
  var spinner = $('<span />', {
1636
  class: 'spinner',
plugin-fw/lib/yit-metabox.php CHANGED
@@ -20,17 +20,17 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
20
  * the metabox can be created using this code
21
  * <code>
22
  * $args1 = array(
23
- * 'label' => __( 'Metabox Label', 'yit' ),
24
  * 'pages' => 'page', //or array( 'post-type1', 'post-type2')
25
  * 'context' => 'normal', //('normal', 'advanced', or 'side')
26
  * 'priority' => 'default',
27
  * 'tabs' => array(
28
  * 'settings' => array( //tab
29
- * 'label' => __( 'Settings', 'yit' ),
30
  * 'fields' => array(
31
  * 'meta_checkbox' => array(
32
- * 'label' => __( 'Show title', 'yit' ),
33
- * 'desc' => __( 'Show title of the page or not.', 'yit' ),
34
  * 'type' => 'checkbox',
35
  * 'private' => false,
36
  * 'std' => '1'),
@@ -405,8 +405,10 @@ if ( ! class_exists( 'YIT_Metabox' ) ) {
405
  * @since 1.0
406
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
407
  */
408
- public function register_metabox() {
409
- add_meta_box( $this->id, $this->options['label'], array( $this, 'show' ), $this->options['pages'], $this->options['context'], $this->options['priority'] );
 
 
410
  }
411
 
412
  /**
20
  * the metabox can be created using this code
21
  * <code>
22
  * $args1 = array(
23
+ * 'label' => __( 'Metabox Label', 'yith-plugin-fw' ),
24
  * 'pages' => 'page', //or array( 'post-type1', 'post-type2')
25
  * 'context' => 'normal', //('normal', 'advanced', or 'side')
26
  * 'priority' => 'default',
27
  * 'tabs' => array(
28
  * 'settings' => array( //tab
29
+ * 'label' => __( 'Settings', 'yith-plugin-fw' ),
30
  * 'fields' => array(
31
  * 'meta_checkbox' => array(
32
+ * 'label' => __( 'Show title', 'yith-plugin-fw' ),
33
+ * 'desc' => __( 'Choose whether to show title of the page or not.', 'yith-plugin-fw' ),
34
  * 'type' => 'checkbox',
35
  * 'private' => false,
36
  * 'std' => '1'),
405
  * @since 1.0
406
  * @author Emanuela Castorina <emanuela.castorina@yithemes.it>
407
  */
408
+ public function register_metabox( $post_type ) {
409
+ if( in_array( $post_type, (array) $this->options['pages'] ) ){
410
+ add_meta_box( $this->id, $this->options['label'], array( $this, 'show' ), $post_type, $this->options['context'], $this->options['priority'] );
411
+ }
412
  }
413
 
414
  /**
plugin-fw/lib/yit-plugin-common.php CHANGED
@@ -27,6 +27,7 @@ class YIT_Plugin_Common {
27
 
28
 
29
  'awesome_icons' => array(
 
30
  'f042' => 'adjust',
31
  'f170' => 'adn',
32
  'f037' => 'align-center',
27
 
28
 
29
  'awesome_icons' => array(
30
+ '' => '00 no-icon',
31
  'f042' => 'adjust',
32
  'f170' => 'adn',
33
  'f037' => 'align-center',
plugin-fw/lib/yit-plugin-panel-wc.php CHANGED
@@ -292,7 +292,7 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
292
  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 );
293
  wp_enqueue_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.min.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
294
  wp_localize_script( 'woocommerce_settings', 'woocommerce_settings_params', array(
295
- 'i18n_nav_warning' => __( 'The changes you have made will be lost if you leave this page.', 'yit' )
296
  ) );
297
  }
298
 
292
  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 );
293
  wp_enqueue_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel.min.js', array( 'jquery', 'jquery-chosen' ), $this->version, true );
294
  wp_localize_script( 'woocommerce_settings', 'woocommerce_settings_params', array(
295
+ 'i18n_nav_warning' => __( 'The changes you have made will be lost if you leave this page.', 'yith-plugin-fw' )
296
  ) );
297
  }
298
 
plugin-fw/lib/yit-plugin-panel.php CHANGED
@@ -60,8 +60,8 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
60
 
61
  $default_args = array(
62
  'parent_slug' => 'edit.php?',
63
- 'page_title' => __( 'Plugin Settings', 'yit' ),
64
- 'menu_title' => __( 'Settings', 'yit' ),
65
  'capability' => 'manage_options',
66
  'icon_url' => '',
67
  'position' => null
@@ -92,7 +92,8 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
92
  * @author Andrea Grillo <andrea.grillo@yithemes.com>
93
  */
94
  public function add_menu_page() {
95
- add_menu_page( 'yit_plugin_panel', __( 'YIT Plugins', 'yit' ), 'manage_options', 'yit_plugin_panel', NULL, YIT_CORE_PLUGIN_URL . '/assets/images/yithemes-icon.png', 62 );
 
96
  }
97
 
98
  /**
@@ -289,12 +290,12 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
289
  <p>&nbsp;</p>
290
  <?php settings_fields( 'yit_' . $this->settings['parent'] . '_options' ); ?>
291
  <input type="hidden" name="<?php echo $this->get_name_field( 'current_tab' ) ?>" value="<?php echo esc_attr( $current_tab ) ?>" />
292
- <input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'yit' ) ?>" style="float:left;margin-right:10px;" />
293
  </form>
294
  <form method="post">
295
- <?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yit' ) ?>
296
  <input type="hidden" name="yit-action" value="reset" />
297
- <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset to Default', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yit' ) ?>');" />
298
  </form>
299
  <p>&nbsp;</p>
300
  <?php endif ?>
@@ -428,17 +429,17 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
428
  public function message() {
429
 
430
  $message = array(
431
- 'element_exists' => $this->get_message( '<strong>' . __( 'The element you have entered already exists. Please, enter another name.', 'yit' ) . '</strong>', 'error', false ),
432
- 'saved' => $this->get_message( '<strong>' . __( 'Settings saved', 'yit' ) . '.</strong>', 'updated', false ),
433
- 'reset' => $this->get_message( '<strong>' . __( 'Settings reset', 'yit' ) . '.</strong>', 'updated', false ),
434
- 'delete' => $this->get_message( '<strong>' . __( 'Element deleted correctly.', 'yit' ) . '</strong>', 'updated', false ),
435
- 'updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yit' ) . '</strong>', 'updated', false ),
436
- 'settings-updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yit' ) . '</strong>', 'updated', false ),
437
- 'imported' => $this->get_message( '<strong>' . __( 'Database imported correctly.', 'yit' ) . '</strong>', 'updated', false ),
438
- 'no-imported' => $this->get_message( '<strong>' . __( 'An error has occurred during import. Please try again.', 'yit' ) . '</strong>', 'error', false ),
439
- 'file-not-valid' => $this->get_message( '<strong>' . __( 'The added file is not valid.', 'yit' ) . '</strong>', 'error', false ),
440
- 'cant-import' => $this->get_message( '<strong>' . __( 'Sorry, import is disabled.', 'yit' ) . '</strong>', 'error', false ),
441
- 'ord' => $this->get_message( '<strong>' . __( 'Sorting successful.', 'yit' ) . '</strong>', 'updated', false )
442
  );
443
 
444
  foreach ( $message as $key => $value ) {
60
 
61
  $default_args = array(
62
  'parent_slug' => 'edit.php?',
63
+ 'page_title' => __( 'Plugin Settings', 'yith-plugin-fw' ),
64
+ 'menu_title' => __( 'Settings', 'yith-plugin-fw' ),
65
  'capability' => 'manage_options',
66
  'icon_url' => '',
67
  'position' => null
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
  /**
290
  <p>&nbsp;</p>
291
  <?php settings_fields( 'yit_' . $this->settings['parent'] . '_options' ); ?>
292
  <input type="hidden" name="<?php echo $this->get_name_field( 'current_tab' ) ?>" value="<?php echo esc_attr( $current_tab ) ?>" />
293
+ <input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'yith-plugin-fw' ) ?>" style="float:left;margin-right:10px;" />
294
  </form>
295
  <form method="post">
296
+ <?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ) ?>
297
  <input type="hidden" name="yit-action" value="reset" />
298
+ <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset to Default', 'yith-plugin-fw' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');" />
299
  </form>
300
  <p>&nbsp;</p>
301
  <?php endif ?>
429
  public function message() {
430
 
431
  $message = array(
432
+ 'element_exists' => $this->get_message( '<strong>' . __( 'The element you have entered already exists. Please, enter another name.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
433
+ 'saved' => $this->get_message( '<strong>' . __( 'Settings saved', 'yith-plugin-fw' ) . '.</strong>', 'updated', false ),
434
+ 'reset' => $this->get_message( '<strong>' . __( 'Settings reset', 'yith-plugin-fw' ) . '.</strong>', 'updated', false ),
435
+ 'delete' => $this->get_message( '<strong>' . __( 'Element deleted correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
436
+ 'updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
437
+ 'settings-updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
438
+ 'imported' => $this->get_message( '<strong>' . __( 'Database imported correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
439
+ 'no-imported' => $this->get_message( '<strong>' . __( 'An error has occurred during import. Please try again.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
440
+ 'file-not-valid' => $this->get_message( '<strong>' . __( 'The added file is not valid.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
441
+ 'cant-import' => $this->get_message( '<strong>' . __( 'Sorry, import is disabled.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
442
+ 'ord' => $this->get_message( '<strong>' . __( 'Sorting successful.', 'yith-plugin-fw' ) . '</strong>', 'updated', false )
443
  );
444
 
445
  foreach ( $message as $key => $value ) {
plugin-fw/lib/yit-plugin-subpanel.php CHANGED
@@ -97,8 +97,9 @@ if ( ! class_exists( 'YIT_Plugin_SubPanel' ) ) {
97
  if ( isset( $admin_logo ) && ! empty( $admin_logo ) && $admin_logo != '' && $admin_logo) {
98
  $logo = $admin_logo;
99
  }
 
 
100
 
101
- add_menu_page( 'yit_plugin_panel', __( 'YIT Plugins', 'yit' ), 'nosuchcapability', 'yit_plugin_panel', NULL, $logo, 62 );
102
  add_submenu_page( 'yit_plugin_panel', $this->settings['label'], $this->settings['label'], 'manage_options', $this->settings['page'], array( $this, 'yit_panel' ) );
103
  remove_submenu_page( 'yit_plugin_panel', 'yit_plugin_panel' );
104
 
@@ -139,12 +140,12 @@ if ( ! class_exists( 'YIT_Plugin_SubPanel' ) ) {
139
  <p>&nbsp;</p>
140
  <?php settings_fields( 'yit_' . $this->settings['page'] . '_options' ); ?>
141
  <input type="hidden" name="<?php echo $this->get_name_field( 'current_tab' ) ?>" value="<?php echo esc_attr( $current_tab ) ?>" />
142
- <input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'yit' ) ?>" style="float:left;margin-right:10px;" />
143
  </form>
144
  <form method="post">
145
- <?php $warning = __( 'If you continue with this action, you will reset all the options in this page.', 'yit' ) ?>
146
  <input type="hidden" name="yit-action" value="reset" />
147
- <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset to Default', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yit' ) ?>');" />
148
  </form>
149
  <p>&nbsp;</p>
150
  <?php endif ?>
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
 
140
  <p>&nbsp;</p>
141
  <?php settings_fields( 'yit_' . $this->settings['page'] . '_options' ); ?>
142
  <input type="hidden" name="<?php echo $this->get_name_field( 'current_tab' ) ?>" value="<?php echo esc_attr( $current_tab ) ?>" />
143
+ <input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'yith-plugin-fw' ) ?>" style="float:left;margin-right:10px;" />
144
  </form>
145
  <form method="post">
146
+ <?php $warning = __( 'If you continue with this action, you will reset all the options in this page.', 'yith-plugin-fw' ) ?>
147
  <input type="hidden" name="yit-action" value="reset" />
148
+ <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset to Default', 'yith-plugin-fw' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');" />
149
  </form>
150
  <p>&nbsp;</p>
151
  <?php endif ?>
plugin-fw/lib/yit-pointers.php CHANGED
@@ -67,11 +67,11 @@ if ( ! class_exists( 'YIT_Pointers' ) ) {
67
  'options' => array(
68
  'content' => sprintf( '<h3> %s </h3> <p> %s </p> <p> %s <a href="http://yithemes.com/product-category/plugins/" target="_blank">Yithemes.com</a> %s
69
  <a href="https://profiles.wordpress.org/yithemes/" target="_blank">Wordpress.org</a></p>',
70
- __( 'Plugins Activated', 'yit' ),
71
  __( 'From now on, you can find all plugin options in YIT Plugin menu.
72
- For each plugin installed, customization settings will be available as a new entry in YIT Plugin menu.', 'yit' ),
73
- __( 'Discover all our plugins available on:', 'yit' ),
74
- __( 'and', 'yit' )
75
  ),
76
  ),
77
  );
@@ -81,13 +81,13 @@ if ( ! class_exists( 'YIT_Pointers' ) ) {
81
  'options' => array(
82
  'content' => sprintf( '<h3> %s </h3> <p> %s </p> <p> %s <a href="http://yithemes.com/product-category/plugins/" target="_blank">Yithemes.com</a> %s
83
  <a href="https://profiles.wordpress.org/yithemes/" target="_blank">Wordpress.org</a></p>',
84
- __( 'Plugins Upgraded', 'yit' ),
85
  __( 'From now on, you can find all options of your plugins in YIT Plugin menu.
86
  Any time one of our plugins is updated, a new entry will be added to this menu.
87
  For example, after the update, plugin options (such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)
88
- will be moved from previous location to YIT Plugin tab.', 'yit' ),
89
- __( 'Discover all our plugins available on:', 'yit' ),
90
- __( 'and', 'yit' )
91
  ),
92
  ),
93
  );
67
  'options' => array(
68
  'content' => sprintf( '<h3> %s </h3> <p> %s </p> <p> %s <a href="http://yithemes.com/product-category/plugins/" target="_blank">Yithemes.com</a> %s
69
  <a href="https://profiles.wordpress.org/yithemes/" target="_blank">Wordpress.org</a></p>',
70
+ __( 'Plugins Activated', 'yith-plugin-fw' ),
71
  __( 'From now on, you can find all plugin options in YIT Plugin menu.
72
+ For each plugin installed, customization settings will be available as a new entry in YIT Plugin menu.', 'yith-plugin-fw' ),
73
+ __( 'Discover all our plugins available on:', 'yith-plugin-fw' ),
74
+ __( 'and', 'yith-plugin-fw' )
75
  ),
76
  ),
77
  );
81
  'options' => array(
82
  'content' => sprintf( '<h3> %s </h3> <p> %s </p> <p> %s <a href="http://yithemes.com/product-category/plugins/" target="_blank">Yithemes.com</a> %s
83
  <a href="https://profiles.wordpress.org/yithemes/" target="_blank">Wordpress.org</a></p>',
84
+ __( 'Plugins Upgraded', 'yith-plugin-fw' ),
85
  __( 'From now on, you can find all options of your plugins in YIT Plugin menu.
86
  Any time one of our plugins is updated, a new entry will be added to this menu.
87
  For example, after the update, plugin options (such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)
88
+ will be moved from previous location to YIT Plugin tab.', 'yith-plugin-fw' ),
89
+ __( 'Discover all our plugins available on:', 'yith-plugin-fw' ),
90
+ __( 'and', 'yith-plugin-fw' )
91
  ),
92
  ),
93
  );
plugin-fw/lib/yit-upgrade.php CHANGED
@@ -120,11 +120,11 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
120
  $update_url = array();
121
  $changelogs = array();
122
  $strings = array(
123
- 'new_version' => __( 'There is a new version of %plugin_name% available.', 'yit' ),
124
- 'latest' => __( 'View version %latest% details.', 'yit' ),
125
- 'unavailable' => __( 'Automatic update is unavailable for this plugin,', 'yit' ),
126
- 'activate' => __( 'please <a href="%activate_link%">activate</a> your copy of %plugin_name%.', 'yit' ),
127
- 'update_now' => __( 'Update now.', 'yit' )
128
 
129
  );
130
 
@@ -227,7 +227,7 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
227
  return new WP_Error( 'no_package', $upgrader->strings['no_package'] );
228
  }
229
 
230
- $upgrader->skin->feedback( 'downloading_package', __( 'Yithemes Repository', 'yit' ) );
231
 
232
  $download_file = $this->_download_url( $package, $args );
233
 
@@ -416,13 +416,13 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
416
  echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">';
417
 
418
  if( ! current_user_can( 'update_plugins' ) ){
419
- 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>.', 'yit'), $this->_plugins[ $init ]['info']['Name'], esc_url( $details_url ), esc_attr( $this->_plugins[ $init ]['info']['Name'] ), $r->new_version );
420
  }elseif( is_plugin_active_for_network( $init ) ){
421
- 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>', 'yit' ), $this->_plugins[ $init ]['info']['Name'], esc_url( $details_url ), esc_attr( $this->_plugins[ $init ]['info']['Name'] ), $r->new_version );
422
  }elseif ( empty( $r->package ) ) {
423
- 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>', 'yit' ), $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'] );
424
  } else {
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> or <a href="%5$s">update now</a>.', 'yit'), $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 ) );
426
  }
427
 
428
  /**
@@ -495,11 +495,11 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
495
  $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
496
 
497
  if( 'upgrade-plugin-multisite' != $action ){
498
- wp_die( __( 'You can\'t update the plugins for this site.', 'yit' ) );
499
  }
500
 
501
  if ( ! current_user_can( 'update_plugins' ) ) {
502
- wp_die( __( 'You do not have sufficient permissions to update the plugins for this site.', 'yit' ) );
503
  }
504
 
505
  $this->check_update( get_site_transient( 'update_plugins') , true );
120
  $update_url = array();
121
  $changelogs = array();
122
  $strings = array(
123
+ 'new_version' => __( 'There is a new version of %plugin_name% available.', 'yith-plugin-fw' ),
124
+ 'latest' => __( 'View version %latest% details.', 'yith-plugin-fw' ),
125
+ 'unavailable' => __( 'Automatic update is unavailable for this plugin,', 'yith-plugin-fw' ),
126
+ 'activate' => __( 'please <a href="%activate_link%">activate</a> your copy of %plugin_name%.', 'yith-plugin-fw' ),
127
+ 'update_now' => __( 'Update now.', 'yith-plugin-fw' )
128
 
129
  );
130
 
227
  return new WP_Error( 'no_package', $upgrader->strings['no_package'] );
228
  }
229
 
230
+ $upgrader->skin->feedback( 'downloading_package', __( 'Yithemes Repository', 'yith-plugin-fw' ) );
231
 
232
  $download_file = $this->_download_url( $package, $args );
233
 
416
  echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">';
417
 
418
  if( ! current_user_can( 'update_plugins' ) ){
419
+ 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>.', 'yith-plugin-fw'), $this->_plugins[ $init ]['info']['Name'], esc_url( $details_url ), esc_attr( $this->_plugins[ $init ]['info']['Name'] ), $r->new_version );
420
  }elseif( is_plugin_active_for_network( $init ) ){
421
+ 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 );
422
  }elseif ( empty( $r->package ) ) {
423
+ 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'] );
424
  } else {
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> 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 ) );
426
  }
427
 
428
  /**
495
  $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
496
 
497
  if( 'upgrade-plugin-multisite' != $action ){
498
+ wp_die( __( 'You can\'t update the plugins for this site.', 'yith-plugin-fw' ) );
499
  }
500
 
501
  if ( ! current_user_can( 'update_plugins' ) ) {
502
+ wp_die( __( 'You do not have sufficient permissions to update the plugins for this site.', 'yith-plugin-fw' ) );
503
  }
504
 
505
  $this->check_update( get_site_transient( 'update_plugins') , true );
plugin-fw/lib/yit-video.php CHANGED
@@ -59,7 +59,8 @@ if ( ! class_exists( 'YIT_Video' ) ) {
59
 
60
  if( ! $echo ) ob_start();
61
 
62
- $id = preg_replace( '/[&|&amp;]feature=([\w\-]*)/', '', $id ); ?>
 
63
 
64
  <div class="post_video youtube">
65
  <iframe wmode="transparent" width="<?php echo $width; ?>" height="<?php echo $height; ?>" src="https://www.youtube.com/embed/<?php echo $id; ?>?wmode=transparent" frameborder="0" allowfullscreen></iframe>
@@ -98,7 +99,8 @@ if ( ! class_exists( 'YIT_Video' ) ) {
98
 
99
  if( ! $echo ) ob_start();
100
 
101
- $id = preg_replace( '/[&|&amp;]feature=([\w\-]*)/', '', $id ) ?>
 
102
 
103
  <div class="post_video vimeo">
104
  <iframe wmode="transparent" src="http://player.vimeo.com/video/<?php echo $id; ?>?title=0&amp;byline=0&amp;portrait=0" width="<?php echo $width; ?>" height="<?php echo $height; ?>" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
@@ -124,16 +126,20 @@ if ( ! class_exists( 'YIT_Video' ) ) {
124
  if ( ! isset( $parsed['host'] ) ) {
125
  return false;
126
  }
127
- switch ( $parsed['host'] ) {
128
 
 
 
 
129
  case 'www.youtube.com' :
130
  case 'youtu.be' :
 
131
  $id = self::youtube_id_by_url( $url );
132
  return "youtube:$id";
133
 
 
134
  case 'vimeo.com' :
135
- preg_match( '/http:\/\/(\w+.)?vimeo\.com\/(.*)/', $url, $matches );
136
- $id = $matches[2];
137
  return "vimeo:$id";
138
 
139
  default :
@@ -154,7 +160,7 @@ if ( ! class_exists( 'YIT_Video' ) ) {
154
  * @author Antonino Scarfi' <antonino.scarfi@yithemes.com>
155
  */
156
  protected static function youtube_id_by_url( $url ) {
157
- if ( preg_match( '/http:\/\/youtu.be/', $url, $matches) ) {
158
  $url = parse_url($url, PHP_URL_PATH);
159
  $url = str_replace( '/', '', $url);
160
  return $url;
@@ -164,12 +170,12 @@ if ( ! class_exists( 'YIT_Video' ) ) {
164
  $url = str_replace( 'v=', '', $arr['query'] );
165
  return $url;
166
 
167
- } elseif ( preg_match( '/http:\/\/www.youtube.com\/v/', $url, $matches) ) {
168
  $arr = parse_url($url);
169
  $url = str_replace( '/v/', '', $arr['path'] );
170
  return $url;
171
 
172
- } elseif ( preg_match( '/http:\/\/www.youtube.com\/embed/', $url, $matches) ) {
173
  $arr = parse_url($url);
174
  $url = str_replace( '/embed/', '', $arr['path'] );
175
  return $url;
59
 
60
  if( ! $echo ) ob_start();
61
 
62
+ $id = preg_replace( '/[&|&amp;]feature=([\w\-]*)/', '', $id );
63
+ $id = preg_replace( '/(youtube|vimeo):/', '', $id ); ?>
64
 
65
  <div class="post_video youtube">
66
  <iframe wmode="transparent" width="<?php echo $width; ?>" height="<?php echo $height; ?>" src="https://www.youtube.com/embed/<?php echo $id; ?>?wmode=transparent" frameborder="0" allowfullscreen></iframe>
99
 
100
  if( ! $echo ) ob_start();
101
 
102
+ $id = preg_replace( '/[&|&amp;]feature=([\w\-]*)/', '', $id );
103
+ $id = preg_replace( '/(youtube|vimeo):/', '', $id ); ?>
104
 
105
  <div class="post_video vimeo">
106
  <iframe wmode="transparent" src="http://player.vimeo.com/video/<?php echo $id; ?>?title=0&amp;byline=0&amp;portrait=0" width="<?php echo $width; ?>" height="<?php echo $height; ?>" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
126
  if ( ! isset( $parsed['host'] ) ) {
127
  return false;
128
  }
 
129
 
130
+
131
+ switch ( $parsed['host'] ) {
132
+ case 'youtube.com' :
133
  case 'www.youtube.com' :
134
  case 'youtu.be' :
135
+ case 'www.youtu.be' :
136
  $id = self::youtube_id_by_url( $url );
137
  return "youtube:$id";
138
 
139
+ case 'www.vimeo.com' :
140
  case 'vimeo.com' :
141
+ preg_match( '/http(s)?:\/\/(\w+.)?vimeo\.com\/(.*)?(\/[0-9]+)/', $url, $matches );
142
+ $id = trim( $matches[4], '/' );
143
  return "vimeo:$id";
144
 
145
  default :
160
  * @author Antonino Scarfi' <antonino.scarfi@yithemes.com>
161
  */
162
  protected static function youtube_id_by_url( $url ) {
163
+ if ( preg_match( '/http(s)?:\/\/youtu.be/', $url, $matches) ) {
164
  $url = parse_url($url, PHP_URL_PATH);
165
  $url = str_replace( '/', '', $url);
166
  return $url;
170
  $url = str_replace( 'v=', '', $arr['query'] );
171
  return $url;
172
 
173
+ } elseif ( preg_match( '/http(s)?:\/\/(\w+.)?youtube.com\/v/', $url, $matches) ) {
174
  $arr = parse_url($url);
175
  $url = str_replace( '/v/', '', $arr['path'] );
176
  return $url;
177
 
178
+ } elseif ( preg_match( '/http(s)?:\/\/(\w+.)?youtube.com\/embed/', $url, $matches) ) {
179
  $arr = parse_url($url);
180
  $url = str_replace( '/embed/', '', $arr['path'] );
181
  return $url;
plugin-fw/licence/lib/yit-licence.php CHANGED
@@ -158,9 +158,9 @@ if ( ! class_exists( 'YIT_Licence' ) ) {
158
  */
159
  public function localize_script() {
160
  wp_localize_script( 'yit-licence', 'licence_message', array(
161
- 'error' => __( '%field% field cannot be empty', 'yit' ),
162
- 'errors' => __( '%field_1% and %field_2% fields cannot be empty', 'yit' ),
163
- 'server' => __( 'Unable to contact the remote server, please try again later. Thanks!', 'yit' )
164
  )
165
  );
166
  }
@@ -545,14 +545,14 @@ if ( ! class_exists( 'YIT_Licence' ) ) {
545
  public function get_error_code_message( $code ) {
546
 
547
  $error_strings = array(
548
- '100' => __( 'Invalid Request', 'yit' ),
549
- '101' => __( 'Invalid licence key', 'yit' ),
550
- '102' => __( 'Software has been deactivated', 'yit' ),
551
- '103' => __( 'Maximum number of activations exceeded', 'yit' ),
552
- '104' => __( 'Invalid instance ID', 'yit' ),
553
- '105' => __( 'Invalid security key', 'yit' ),
554
- '106' => __( 'Licence key has expired', 'yit' ),
555
- '107' => __( 'Licence key has been banned', 'yit' )
556
  );
557
 
558
  return isset( $error_strings[$code] ) ? $error_strings[$code] : false;
158
  */
159
  public function localize_script() {
160
  wp_localize_script( 'yit-licence', 'licence_message', array(
161
+ 'error' => sprintf( _x( '%s field cannot be empty', '%s = field name', 'yith-plugin-fw' ), '%field%' ), // sprintf must be used to avoid errors with '%field%' string in translation in .po file
162
+ 'errors' => sprintf( __( '%s and %s fields cannot be empty', 'yith-plugin-fw' ), '%field_1%', '%field_2' ),
163
+ 'server' => __( 'Unable to contact the remote server, please try again later. Thanks!', 'yith-plugin-fw' )
164
  )
165
  );
166
  }
545
  public function get_error_code_message( $code ) {
546
 
547
  $error_strings = array(
548
+ '100' => __( 'Invalid Request', 'yith-plugin-fw' ),
549
+ '101' => __( 'Invalid licence key', 'yith-plugin-fw' ),
550
+ '102' => __( 'Software has been deactivated', 'yith-plugin-fw' ),
551
+ '103' => __( 'Maximum number of activations exceeded', 'yith-plugin-fw' ),
552
+ '104' => __( 'Invalid instance ID', 'yith-plugin-fw' ),
553
+ '105' => __( 'Invalid security key', 'yith-plugin-fw' ),
554
+ '106' => __( 'Licence key has expired', 'yith-plugin-fw' ),
555
+ '107' => __( 'Licence key has been banned', 'yith-plugin-fw' )
556
  );
557
 
558
  return isset( $error_strings[$code] ) ? $error_strings[$code] : false;
plugin-fw/licence/lib/yit-plugin-licence.php CHANGED
@@ -59,10 +59,14 @@ if ( ! class_exists( 'YIT_Plugin_Licence' ) ) {
59
  public function __construct() {
60
  parent::__construct();
61
 
 
 
 
 
62
  $this->_settings = array(
63
  'parent_page' => 'yit_plugin_panel',
64
- 'page_title' => __( 'Licence Activation', 'yit' ),
65
- 'menu_title' => __( 'Licence Activation', 'yit' ),
66
  'capability' => 'manage_options',
67
  'page' => 'yith_plugins_activation',
68
  );
59
  public function __construct() {
60
  parent::__construct();
61
 
62
+ if ( ! is_admin() ) {
63
+ return;
64
+ }
65
+
66
  $this->_settings = array(
67
  'parent_page' => 'yit_plugin_panel',
68
+ 'page_title' => __( 'Licence Activation', 'yith-plugin-fw' ),
69
+ 'menu_title' => __( 'Licence Activation', 'yith-plugin-fw' ),
70
  'capability' => 'manage_options',
71
  'page' => 'yith_plugins_activation',
72
  );
plugin-fw/licence/lib/yit-theme-licence.php CHANGED
@@ -61,8 +61,8 @@ if ( ! class_exists( 'YIT_Theme_Licence' ) ) {
61
 
62
  $this->_settings = array(
63
  'parent_page' => 'yit_product_panel',
64
- 'page_title' => __( 'Licence Activation', 'yit' ),
65
- 'menu_title' => __( 'Licence Activation', 'yit' ),
66
  'capability' => 'manage_options',
67
  'page' => 'yith_plugins_activation',
68
  );
@@ -104,16 +104,16 @@ if ( ! class_exists( 'YIT_Theme_Licence' ) ) {
104
 
105
  $admin_tree = array(
106
  'parent_slug' => apply_filters( 'yit_licence_parent_slug', 'yit_panel'),
107
- 'page_title' => __( 'Licence Activation', 'yit' ),
108
- 'menu_title' => __( 'Licence Activation', 'yit' ),
109
  'capability' => 'manage_options',
110
  'menu_slug' => 'yit_panel_licence',
111
  'function' => 'show_activation_panel'
112
  );
113
 
114
  add_submenu_page( $admin_tree['parent_slug'],
115
- sprintf( __( '%s', 'yit' ), $admin_tree['page_title'] ),
116
- sprintf( __( '%s', 'yit' ), $admin_tree['menu_title'] ),
117
  $admin_tree['capability'],
118
  $admin_tree['menu_slug'],
119
  array( $this, $admin_tree['function'] )
61
 
62
  $this->_settings = array(
63
  'parent_page' => 'yit_product_panel',
64
+ 'page_title' => __( 'Licence Activation', 'yith-plugin-fw' ),
65
+ 'menu_title' => __( 'Licence Activation', 'yith-plugin-fw' ),
66
  'capability' => 'manage_options',
67
  'page' => 'yith_plugins_activation',
68
  );
104
 
105
  $admin_tree = array(
106
  'parent_slug' => apply_filters( 'yit_licence_parent_slug', 'yit_panel'),
107
+ 'page_title' => __( 'Licence Activation', 'yith-plugin-fw' ),
108
+ 'menu_title' => __( 'Licence Activation', 'yith-plugin-fw' ),
109
  'capability' => 'manage_options',
110
  'menu_slug' => 'yit_panel_licence',
111
  'function' => 'show_activation_panel'
112
  );
113
 
114
  add_submenu_page( $admin_tree['parent_slug'],
115
+ sprintf( __( '%s', 'yith-plugin-fw' ), $admin_tree['page_title'] ),
116
+ sprintf( __( '%s', 'yith-plugin-fw' ), $admin_tree['menu_title'] ),
117
  $admin_tree['capability'],
118
  $admin_tree['menu_slug'],
119
  array( $this, $admin_tree['function'] )
plugin-fw/licence/templates/panel/activation/activation-panel.php CHANGED
@@ -16,17 +16,17 @@ $banned_products = isset( $no_active_products[ '107' ] ) ? $no_active_produc
16
  ?>
17
 
18
  <div class="yit-container product-licence-activation">
19
- <h2><?php _e( 'Yithemes Licence Activation', 'yit' ) ?></h2>
20
 
21
  <?php if( is_a( $this, 'YIT_Theme_Licence' ) ) : ?>
22
  <div class="activation-faq">
23
- <h3><?php _e( 'I cannot find the license key for activating the theme I have bought some time ago. Where can I find it?', 'yit' ) ?></h3>
24
  <p>
25
  <?php
26
  _e( 'If you have purchased one of our products before 27 January 2015, you can benefit from support and updates (the services offered with the license)
27
  until 27 January 2016 and you do not have to purchase it again to get a new license key, because, before this date, your license used to be activated automatically by our system.
28
  After 27 January 2016, instead, if you want to benefit from support and updates you have to buy a new license and activate it through the license key you will be
29
- provided with and that you can find in your YIThemes account, in section "My licenses".', 'yit' )
30
  ?>
31
  </p>
32
  </div>
@@ -34,9 +34,9 @@ $banned_products = isset( $no_active_products[ '107' ] ) ? $no_active_produc
34
 
35
  <div class="licence-check-section">
36
  <form method="post" id="licence-check-update" action="<?php echo admin_url( 'admin-ajax.php' ) ?>">
37
- <span class="licence-label" style="display: block;"><?php _e( 'Have you updated your licenses? Have you asked for an extension? Update information concerning your products.', 'yit' ); ?></span>
38
  <input type="hidden" name="action" value="update_licence_information-<?php echo $this->_product_type ?>" />
39
- <input type="submit" name="submit" value="<?php _e( 'Update licence information', 'yit' ) ?>" class="button-licence licence-check" />
40
  <div class="spinner"></div>
41
  </form>
42
  </div>
@@ -46,7 +46,7 @@ $banned_products = isset( $no_active_products[ '107' ] ) ? $no_active_produc
46
 
47
  <?php if( ! empty( $to_active_products ) ) : ?>
48
  <h3 class="to-active">
49
- <?php _e( 'Products to be activated', 'yit' ) ?>
50
  <span class="spinner"></span>
51
  </h3>
52
  <div class="to-active-wrapper">
@@ -65,7 +65,7 @@ $banned_products = isset( $no_active_products[ '107' ] ) ? $no_active_produc
65
  <input type="text" name="licence_key" placeholder="Licence Key" value="" class="licence-key" />
66
  </td>
67
  <td class="activate-button">
68
- <input type="submit" name="submit" value="<?php _e( 'Activate', 'yit' )?>" class="button-licence licence-activation" data-formid="<?php echo $info['product_id'] ?>"/>
69
  </td>
70
  </tr>
71
  <input type="hidden" name="action" value="activate-<?php echo $this->_product_type ?>" />
@@ -84,16 +84,16 @@ $banned_products = isset( $no_active_products[ '107' ] ) ? $no_active_produc
84
  <!-- Activated Products -->
85
 
86
  <?php if( ! empty( $activated_products ) ) : ?>
87
- <h3><?php _e( 'Activated', 'yit' ) ?></h3>
88
  <table class="expired-table">
89
  <thead>
90
  <tr>
91
- <th><?php _e( 'Product Name', 'yit' ) ?></th>
92
- <th><?php _e( 'Email', 'yit' ) ?></th>
93
- <th><?php _e( 'Licence Key', 'yit' ) ?></th>
94
- <th><?php _e( 'Expires', 'yit' ) ?></th>
95
- <th><?php _e( 'Remaining', 'yit' ) ?></th>
96
- <th><?php _e( 'Renew', 'yit' ) ?></th>
97
  </tr>
98
  </thead>
99
  <tbody>
@@ -104,9 +104,9 @@ $banned_products = isset( $no_active_products[ '107' ] ) ? $no_active_produc
104
  <td class="product-licence-key"><?php echo $info['licence']['licence_key'] ?></td>
105
  <td class="product-licence-expires"><?php echo date("F j, Y", $info['licence']['licence_expires'] ); ?></td>
106
  <td class="product-licence-remaining">
107
- <?php printf( __( '%1s out of %2s', 'yit' ), $info['licence']['activation_remaining'], $info['licence']['activation_limit'] ); ?>
108
  </td>
109
- <td><a class="button-licence licence-renew" href="<?php echo $this->get_renewing_uri( $info['licence']['licence_key'] ) ?>" target="_blank"><?php _e( 'Renew', 'yit' ) ?></a></td>
110
  </tr>
111
  <?php endforeach; ?>
112
  </tbody>
@@ -116,13 +116,13 @@ $banned_products = isset( $no_active_products[ '107' ] ) ? $no_active_produc
116
  <!-- Banned Products -->
117
 
118
  <?php if( ! empty( $banned_products ) ) : ?>
119
- <h3><?php _e( 'Banned', 'yit' ) ?></h3>
120
  <table class="expired-table">
121
  <thead>
122
  <tr>
123
- <th><?php _e( 'Product Name', 'yit' ) ?></th>
124
- <th><?php _e( 'Email', 'yit' ) ?></th>
125
- <th><?php _e( 'Licence Key', 'yit' ) ?></th>
126
  </tr>
127
  </thead>
128
  <tbody>
@@ -140,15 +140,15 @@ $banned_products = isset( $no_active_products[ '107' ] ) ? $no_active_produc
140
  <!-- Expired Products -->
141
 
142
  <?php if( ! empty( $expired_products ) ) : ?>
143
- <h3><?php _e( 'Expired', 'yit' ) ?></h3>
144
  <table class="expired-table">
145
  <thead>
146
  <tr>
147
- <th><?php _e( 'Product Name', 'yit' ) ?></th>
148
- <th><?php _e( 'Email', 'yit' ) ?></th>
149
- <th><?php _e( 'Licence Key', 'yit' ) ?></th>
150
- <th><?php _e( 'Expires', 'yit' ) ?></th>
151
- <th><?php _e( 'Renew', 'yit' ) ?></th>
152
  </tr>
153
  </thead>
154
  <tbody>
@@ -158,7 +158,7 @@ $banned_products = isset( $no_active_products[ '107' ] ) ? $no_active_produc
158
  <td class="product-licence-email"><?php echo $info['licence']['email'] ?></td>
159
  <td class="product-licence-key"><?php echo $info['licence']['licence_key'] ?></td>
160
  <td class="product-licence-expires"><?php echo date("F j, Y", $info['licence']['licence_expires'] ); ?></td>
161
- <td><a class="button-licence licence-renew" href="<?php echo $this->get_renewing_uri( $info['licence']['licence_key'] ) ?>" target="_blank"><?php _e( 'Renew', 'yit' ) ?></a></td>
162
  </tr>
163
  <?php endforeach; ?>
164
  </tbody>
16
  ?>
17
 
18
  <div class="yit-container product-licence-activation">
19
+ <h2><?php _e( 'Yithemes Licence Activation', 'yith-plugin-fw' ) ?></h2>
20
 
21
  <?php if( is_a( $this, 'YIT_Theme_Licence' ) ) : ?>
22
  <div class="activation-faq">
23
+ <h3><?php _e( 'I cannot find the license key for activating the theme I have bought some time ago. Where can I find it?', 'yith-plugin-fw' ) ?></h3>
24
  <p>
25
  <?php
26
  _e( 'If you have purchased one of our products before 27 January 2015, you can benefit from support and updates (the services offered with the license)
27
  until 27 January 2016 and you do not have to purchase it again to get a new license key, because, before this date, your license used to be activated automatically by our system.
28
  After 27 January 2016, instead, if you want to benefit from support and updates you have to buy a new license and activate it through the license key you will be
29
+ provided with and that you can find in your YIThemes account, in section "My licenses".', 'yith-plugin-fw' )
30
  ?>
31
  </p>
32
  </div>
34
 
35
  <div class="licence-check-section">
36
  <form method="post" id="licence-check-update" action="<?php echo admin_url( 'admin-ajax.php' ) ?>">
37
+ <span class="licence-label" style="display: block;"><?php _e( 'Have you updated your licenses? Have you asked for an extension? Update information concerning your products.', 'yith-plugin-fw' ); ?></span>
38
  <input type="hidden" name="action" value="update_licence_information-<?php echo $this->_product_type ?>" />
39
+ <input type="submit" name="submit" value="<?php _e( 'Update licence information', 'yith-plugin-fw' ) ?>" class="button-licence licence-check" />
40
  <div class="spinner"></div>
41
  </form>
42
  </div>
46
 
47
  <?php if( ! empty( $to_active_products ) ) : ?>
48
  <h3 class="to-active">
49
+ <?php _e( 'Products to be activated', 'yith-plugin-fw' ) ?>
50
  <span class="spinner"></span>
51
  </h3>
52
  <div class="to-active-wrapper">
65
  <input type="text" name="licence_key" placeholder="Licence Key" value="" class="licence-key" />
66
  </td>
67
  <td class="activate-button">
68
+ <input type="submit" name="submit" value="<?php _e( 'Activate', 'yith-plugin-fw' )?>" class="button-licence licence-activation" data-formid="<?php echo $info['product_id'] ?>"/>
69
  </td>
70
  </tr>
71
  <input type="hidden" name="action" value="activate-<?php echo $this->_product_type ?>" />
84
  <!-- Activated Products -->
85
 
86
  <?php if( ! empty( $activated_products ) ) : ?>
87
+ <h3><?php _e( 'Activated', 'yith-plugin-fw' ) ?></h3>
88
  <table class="expired-table">
89
  <thead>
90
  <tr>
91
+ <th><?php _e( 'Product Name', 'yith-plugin-fw' ) ?></th>
92
+ <th><?php _e( 'Email', 'yith-plugin-fw' ) ?></th>
93
+ <th><?php _e( 'Licence Key', 'yith-plugin-fw' ) ?></th>
94
+ <th><?php _e( 'Expires', 'yith-plugin-fw' ) ?></th>
95
+ <th><?php _e( 'Remaining', 'yith-plugin-fw' ) ?></th>
96
+ <th><?php _e( 'Renew', 'yith-plugin-fw' ) ?></th>
97
  </tr>
98
  </thead>
99
  <tbody>
104
  <td class="product-licence-key"><?php echo $info['licence']['licence_key'] ?></td>
105
  <td class="product-licence-expires"><?php echo date("F j, Y", $info['licence']['licence_expires'] ); ?></td>
106
  <td class="product-licence-remaining">
107
+ <?php printf( __( '%1s out of %2s', 'yith-plugin-fw' ), $info['licence']['activation_remaining'], $info['licence']['activation_limit'] ); ?>
108
  </td>
109
+ <td><a class="button-licence licence-renew" href="<?php echo $this->get_renewing_uri( $info['licence']['licence_key'] ) ?>" target="_blank"><?php _e( 'Renew', 'yith-plugin-fw' ) ?></a></td>
110
  </tr>
111
  <?php endforeach; ?>
112
  </tbody>
116
  <!-- Banned Products -->
117
 
118
  <?php if( ! empty( $banned_products ) ) : ?>
119
+ <h3><?php _e( 'Banned', 'yith-plugin-fw' ) ?></h3>
120
  <table class="expired-table">
121
  <thead>
122
  <tr>
123
+ <th><?php _e( 'Product Name', 'yith-plugin-fw' ) ?></th>
124
+ <th><?php _e( 'Email', 'yith-plugin-fw' ) ?></th>
125
+ <th><?php _e( 'Licence Key', 'yith-plugin-fw' ) ?></th>
126
  </tr>
127
  </thead>
128
  <tbody>
140
  <!-- Expired Products -->
141
 
142
  <?php if( ! empty( $expired_products ) ) : ?>
143
+ <h3><?php _e( 'Expired', 'yith-plugin-fw' ) ?></h3>
144
  <table class="expired-table">
145
  <thead>
146
  <tr>
147
+ <th><?php _e( 'Product Name', 'yith-plugin-fw' ) ?></th>
148
+ <th><?php _e( 'Email', 'yith-plugin-fw' ) ?></th>
149
+ <th><?php _e( 'Licence Key', 'yith-plugin-fw' ) ?></th>
150
+ <th><?php _e( 'Expires', 'yith-plugin-fw' ) ?></th>
151
+ <th><?php _e( 'Renew', 'yith-plugin-fw' ) ?></th>
152
  </tr>
153
  </thead>
154
  <tbody>
158
  <td class="product-licence-email"><?php echo $info['licence']['email'] ?></td>
159
  <td class="product-licence-key"><?php echo $info['licence']['licence_key'] ?></td>
160
  <td class="product-licence-expires"><?php echo date("F j, Y", $info['licence']['licence_expires'] ); ?></td>
161
+ <td><a class="button-licence licence-renew" href="<?php echo $this->get_renewing_uri( $info['licence']['licence_key'] ) ?>" target="_blank"><?php _e( 'Renew', 'yith-plugin-fw' ) ?></a></td>
162
  </tr>
163
  <?php endforeach; ?>
164
  </tbody>
plugin-fw/templates/metaboxes/types/ajax-products.php CHANGED
@@ -20,7 +20,7 @@ $multiple = ( $is_multiple ) ? ' multiple' : '';
20
 
21
  <label for="<?php echo $id ?>"><?php echo $label ?></label>
22
 
23
- <select id="<?php echo $id ?>" name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" class="ajax_chosen_select_products" multiple="multiple" data-placeholder="<?php _e('Search for a product','yit') ?>">
24
  <?php
25
  if ( $value ) {
26
  foreach ( $value as $product_id ) {
20
 
21
  <label for="<?php echo $id ?>"><?php echo $label ?></label>
22
 
23
+ <select id="<?php echo $id ?>" name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" class="ajax_chosen_select_products" multiple="multiple" data-placeholder="<?php _e('Search for a product','yith-plugin-fw') ?>">
24
  <?php
25
  if ( $value ) {
26
  foreach ( $value as $product_id ) {
plugin-fw/templates/metaboxes/types/categories.php CHANGED
@@ -33,13 +33,13 @@ $categories = yit_get_model('cpt_unlimited')->get_setting( 'categories', $post->
33
  </li>
34
  <?php endforeach; ?>
35
  <?php else : ?>
36
- <li class="remove-after-add"><i><?php _e( 'No categories.', 'yit' ); ?></i></li>
37
  <?php endif; ?>
38
  </ul>
39
  </div>
40
  <div class="wp-hidden-children">
41
  <h4>
42
- <a tabindex="3" class="hide-if-no-js" href="#category-add" id="<?php echo $id ?>-category-add"><?php _e( '+ Add New Category', 'yit' ); ?></a>
43
  </h4>
44
  <p class="category-add-field" id="<?php echo $id ?>-category-field">
45
  <input type="text" class="newcategory" name="newcategory" style="width:100%;" id="<?php echo $id ?>-new-category" />
33
  </li>
34
  <?php endforeach; ?>
35
  <?php else : ?>
36
+ <li class="remove-after-add"><i><?php _e( 'No categories.', 'yith-plugin-fw' ); ?></i></li>
37
  <?php endif; ?>
38
  </ul>
39
  </div>
40
  <div class="wp-hidden-children">
41
  <h4>
42
+ <a tabindex="3" class="hide-if-no-js" href="#category-add" id="<?php echo $id ?>-category-add"><?php _e( '+ Add New Category', 'yith-plugin-fw' ); ?></a>
43
  </h4>
44
  <p class="category-add-field" id="<?php echo $id ?>-category-field">
45
  <input type="text" class="newcategory" name="newcategory" style="width:100%;" id="<?php echo $id ?>-new-category" />
plugin-fw/templates/metaboxes/types/contactform.php CHANGED
@@ -4,13 +4,13 @@
4
  extract( $args );
5
 
6
  $types = array(
7
- 'text' => __( 'Text Input', 'yit' ),
8
- 'checkbox' => __( 'Checkbox', 'yit' ),
9
- 'select' => __( 'Select', 'yit' ),
10
- 'textarea' => __( 'Textarea', 'yit' ),
11
- 'radio' => __( 'Radio Input', 'yit' ),
12
- 'password' => __( 'Password Field', 'yit' ),
13
- 'file' => __( 'File Upload', 'yit' ),
14
  );
15
 
16
  $defaults = array(
@@ -44,9 +44,9 @@ $index = 1;
44
  /* Select Font Awesome */
45
 
46
  $options["select"]=array(
47
- 'icon' => __( 'Theme Icon', 'yit' ),
48
- 'custom' => __( 'Custom Icon', 'yit' ),
49
- 'none' => __( 'None', 'yit' )
50
  );
51
 
52
  $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
@@ -57,7 +57,7 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
57
  <?php if( isset( $label ) ):?><label for="<?php echo $id ?>"><?php echo $label ?></label><?php endif;?>
58
 
59
  <p class="field-row">
60
- <a href="" class="button-secondary add-items"><?php _e( 'Add field', 'yit' ) ?></a>
61
  <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="add-items-ajax-loading" alt="" />
62
  </p>
63
 
@@ -66,33 +66,33 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
66
  <?php while ( $index <= count( $value ) ): ?>
67
  <div class="contactform_item closed">
68
  <h3>
69
- <button type="button" class="remove_item button" rel=""><?php _e( 'Remove', 'yit' ) ?></button>
70
- <div class="handlediv" title="<?php _e( 'Click to toggle', 'yit' ) ?>"></div>
71
  <strong><?php echo $value[$index]['title'] ?> <?php yit_string( '(', $types[$value[$index]['type']], ')' ) ?></strong>
72
  <input type="hidden" class="contactform_menu_order" name="<?php echo $name ?>[<?php echo $index ?>][order]" value="<?php echo esc_attr( $index ) ?>" />
73
  </h3>
74
  <div class="inside">
75
 
76
  <div class="the-metabox text clearfix">
77
- <label for="<?php echo $id ?>_title_<?php echo $index ?>"><?php _e( 'Title Field', 'yit' ) ?></label>
78
 
79
  <p>
80
  <input type="text" value="<?php echo esc_attr( $value[$index]['title'] ) ?>" id="<?php echo $id ?>_title_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][title]" />
81
- <span class="desc inline"><?php _e( 'Insert the title for the field.', 'yit' ) ?></span>
82
  </p>
83
  </div>
84
 
85
  <div class="the-metabox text clearfix">
86
- <label for="<?php echo $id ?>_data_name_<?php echo $index ?>"><?php _e( 'Data Name', 'yit' ) ?></label>
87
 
88
  <p>
89
  <input type="text" value="<?php echo esc_attr( $value[$index]['data_name'] ) ?>" id="<?php echo $id ?>_data_name_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][data_name]" />
90
- <span class="desc inline"><?php _e( 'REQUIRED: Field identification name to be entered into email body. <strong>Note:</strong>Use only lowercase characters and underscores.', 'yit' ) ?></span>
91
  </p>
92
  </div>
93
 
94
  <div class="the-metabox select clearfix text-field-type">
95
- <label for="<?php echo $id ?>_type_<?php echo $index ?>"><?php _e( 'Type field', 'yit' ) ?></label>
96
 
97
  <p>
98
  <select id="<?php echo $id ?>_type_<?php echo $index ?>" name="<?php echo $name . '[' . $index . ']' ?>[type]">
@@ -100,79 +100,79 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
100
  <option value="<?php echo esc_attr( $type ) ?>"<?php selected( $type, $value[$index]['type'] ) ?>><?php echo $name_type ?></option>
101
  <?php endforeach; ?>
102
  </select>
103
- <span class="desc inline"><?php _e( 'Select the type for this field.', 'yit' ) ?></span>
104
  </p>
105
  </div>
106
 
107
  <div class="the-metabox checkbox clearfix deps_checkbox deps">
108
- <label for="<?php echo $id ?>_already_checked_<?php echo $index ?>"><?php _e( 'Checked', 'yit' ) ?></label>
109
 
110
  <p>
111
  <input type="checkbox" id="<?php echo $id ?>_already_checked_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][already_checked]" value="1"<?php checked( $value[$index]['already_checked'] ) ?> />
112
- <span class="desc inline"><?php _e( 'Select this option if you want this field appears as already checked.', 'yit' ) ?></span>
113
  </p>
114
  </div>
115
 
116
  <div id="<?php echo $id ?>_addoptions" class="the-metabox addoptions clearfix deps_radio deps_select deps">
117
- <label for=""><?php _e( 'Add options ', 'yit' ) ?></label>
118
- <a href="#" class="add-field-option button-secondary" data-index="<?php echo $index ?>"><?php _e( 'Add option', 'yit' ) ?></a><br /><br />
119
  <?php foreach ( $value[$index]['options'] as $key => $option ) : ?>
120
  <p class="option">
121
- <label><input type="radio" name="<?php echo $name ?>[<?php echo $index ?>][option_selected]" value="<?php echo esc_attr( $key ) ?>"<?php checked( $value[$index]['option_selected'], $key ) ?> /> <?php _e( 'Selected', 'yit' ) ?>
122
  </label>
123
  <input type="text" name="<?php echo $name ?>[<?php echo $index ?>][options][]" value="<?php echo $option ?>" style="width:200px" />
124
- <a href="#" class="del-field-option button-secondary"><?php _e( 'Delete option', 'yit' ) ?></a>
125
  </p>
126
  <?php endforeach; ?>
127
  </div>
128
 
129
  <div class="the-metabox text clearfix">
130
- <label for="<?php echo $id ?>_error_<?php echo $index ?>"><?php _e( 'Error Message', 'yit' ) ?></label>
131
 
132
  <p>
133
  <input type="text" value="<?php echo esc_attr( $value[$index]['error'] ) ?>" id="<?php echo $id ?>_error_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][error]" />
134
- <span class="desc inline"><?php _e( 'Insert the error message for validation.', 'yit' ) ?></span>
135
  </p>
136
  </div>
137
 
138
  <div class="the-metabox checkbox clearfix">
139
- <label for="<?php echo $id ?>_required_<?php echo $index ?>"><?php _e( 'Required', 'yit' ) ?></label>
140
 
141
  <p>
142
  <input type="checkbox" id="<?php echo $id ?>_required_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][required]" value="1"<?php checked( $value[$index]['required'] ) ?> />
143
- <span class="desc inline"><?php _e( 'Select this option if it must be required.', 'yit' ) ?></span>
144
  </p>
145
  </div>
146
 
147
  <div class="the-metabox checkbox clearfix">
148
- <label for="<?php echo $id ?>_is_email_<?php echo $index ?>"><?php _e( 'Email', 'yit' ) ?></label>
149
 
150
  <p>
151
  <input type="checkbox" id="<?php echo $id ?>_is_email_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][is_email]" value="1"<?php checked( $value[$index]['is_email'] ) ?> />
152
- <span class="desc inline"><?php _e( 'Select this option if the email must be valid.', 'yit' ) ?></span>
153
  </p>
154
  </div>
155
 
156
  <div class="the-metabox checkbox clearfix">
157
- <label for="<?php echo $id ?>_reply_to_<?php echo $index ?>"><?php _e( 'Reply To', 'yit' ) ?></label>
158
 
159
  <p>
160
  <input type="checkbox" id="<?php echo $id ?>_reply_to_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][reply_to]" value="1"<?php checked( $value[$index]['reply_to'] ) ?> />
161
- <span class="desc inline"><?php _e( 'Select this if it is the email you can reply to.', 'yit' ) ?></span>
162
  </p>
163
  </div>
164
 
165
  <div class="the-metabox text clearfix">
166
- <label for="<?php echo $id ?>_class_<?php echo $index ?>"><?php _e( 'Class', 'yit' ) ?></label>
167
 
168
  <p>
169
  <input type="text" value="<?php echo esc_attr( $value[$index]['class'] ) ?>" id="<?php echo $id ?>_class_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][class]" />
170
- <span class="desc inline"><?php _e( 'Insert additional class(es) (separated by commas) for more personalization.', 'yit' ) ?></span>
171
  </p>
172
  </div>
173
 
174
  <div class="the-metabox text clearfix">
175
- <label for="<?php echo $id ?>_icon_<?php echo $index ?>"><?php _e( 'Icon', 'yit' ) ?></label>
176
 
177
  <p>
178
 
@@ -200,13 +200,13 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
200
 
201
  <div class="input_wrapper custom_icon">
202
  <input type="text" name="<?php echo $name ?>[<?php echo $index ?>][custom]" id="<?php echo $id ?>_icon_<?php echo $index ?>[custom-icon]" value="<?php echo esc_attr( $value[$index]['custom'] ); ?>" class="upload_img_url upload_custom_icon" />
203
- <input type="button" name="<?php echo $name ?>[<?php echo $index ?>][custom]-button" value="<?php _e( 'Upload', 'yit' ) ?>" id="<?php echo $id ?>_icon_<?php echo $index ?>[custom-icon]-button" class="upload_button button" />
204
 
205
  <div class="upload_img_preview" style="margin-top:10px;">
206
  <?php
207
  $file = $current_options['custom'];
208
  if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
209
- echo __('Image preview', 'yit') . ': ' . "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"$file\" />";
210
  }
211
  ?>
212
  </div>
@@ -214,12 +214,12 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
214
  </div>
215
  </div>
216
 
217
- <span class="desc inline"><?php _e( 'Insert an icon for more personalization.', 'yit' ) ?></span>
218
  </p>
219
  </div>
220
 
221
  <div class="the-metabox text clearfix">
222
- <label for="<?php echo $id ?>_width_<?php echo $index ?>"><?php _e( 'Width', 'yit' ) ?></label>
223
 
224
  <p>
225
  <select id="<?php echo $id ?>_width_<?php echo $index ?>" name="<?php echo $name . '[' . $index . ']' ?>[width]">
@@ -244,7 +244,7 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
244
  }
245
  ?>
246
  </select>
247
- <span class="desc inline"><?php _e( 'Set field length.', 'yit' ) ?></span>
248
  </p>
249
  </div>
250
  </div>
@@ -258,33 +258,33 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
258
 
259
  <div class="contactform_item closed" id="stamp_form" style="display:none;">
260
  <h3>
261
- <button type="button" class="remove_item button" rel=""><?php _e( 'Remove', 'yit' ) ?></button>
262
- <div class="handlediv" title="<?php _e( 'Click to toggle', 'yit' ) ?>"></div>
263
  <strong></strong>
264
  <input disabled type="hidden" class="contactform_menu_order" name="<?php echo $name ?>[][order]" value=""/>
265
  </h3>
266
  <div class="inside">
267
 
268
  <div class="the-metabox text clearfix">
269
- <label for="<?php echo $id ?>_title"><?php _e( 'Title Field', 'yit' ) ?></label>
270
 
271
  <p>
272
  <input disabled type="text" value="" id="<?php echo $id ?>_title" name="<?php echo $name ?>[][title]" />
273
- <span class="desc inline"><?php _e( 'Insert the title for the field.', 'yit' ) ?></span>
274
  </p>
275
  </div>
276
 
277
  <div class="the-metabox text clearfix">
278
- <label for="<?php echo $id ?>_data_name"><?php _e( 'Data Name', 'yit' ) ?></label>
279
 
280
  <p>
281
  <input disabled type="text" value="" id="<?php echo $id ?>_data_name" name="<?php echo $name ?>[][data_name]" />
282
- <span class="desc inline"><?php _e( 'REQUIRED: Field identification name to be entered into email body. <strong>Note:</strong>Use only lowercase characters and underscores.', 'yit' ) ?></span>
283
  </p>
284
  </div>
285
 
286
  <div class="the-metabox select clearfix text-field-type">
287
- <label for="<?php echo $id ?>_type"><?php _e( 'Type field', 'yit' ) ?></label>
288
 
289
  <p>
290
  <select disabled id="<?php echo $id ?>_type" name="<?php echo $name ?>[][type]">
@@ -292,79 +292,79 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
292
  <option value="<?php echo esc_attr( $type ) ?>"><?php echo $name_type ?></option>
293
  <?php endforeach; ?>
294
  </select>
295
- <span class="desc inline"><?php _e( 'Select the type for this field.', 'yit' ) ?></span>
296
  </p>
297
  </div>
298
 
299
  <div class="the-metabox checkbox clearfix deps_checkbox deps">
300
- <label for="<?php echo $id ?>_already_checked"><?php _e( 'Checked', 'yit' ) ?></label>
301
 
302
  <p>
303
  <input disabled type="checkbox" id="<?php echo $id ?>_already_checked" name="<?php echo $name ?>[][already_checked]" value="1" />
304
- <span class="desc inline"><?php _e( 'Select this option if you want this field appears as already checked.', 'yit' ) ?></span>
305
  </p>
306
  </div>
307
 
308
  <div id="<?php echo $id ?>_addoptions" class="the-metabox addoptions clearfix deps_radio deps_select deps">
309
- <label for=""><?php _e( 'Add options ', 'yit' ) ?></label>
310
- <a href="#" class="add-field-option button-secondary"><?php _e( 'Add option', 'yit' ) ?></a><br /><br />
311
 
312
  <p class="option">
313
- <label><input disabled type="radio" name="<?php echo $name ?>[][option_selected]" value="" /> <?php _e( 'Selected', 'yit' ) ?>
314
  </label>
315
  <input disabled type="text" name="<?php echo $name ?>[][options][]" value="" style="width:200px" />
316
- <a href="#" class="del-field-option button-secondary"><?php _e( 'Delete option', 'yit' ) ?></a>
317
  </p>
318
 
319
  </div>
320
 
321
  <div class="the-metabox text clearfix">
322
- <label for="<?php echo $id ?>_error"><?php _e( 'Error Message', 'yit' ) ?></label>
323
 
324
  <p>
325
  <input disabled type="text" value="" id="<?php echo $id ?>_error" name="<?php echo $name ?>[][error]" />
326
- <span class="desc inline"><?php _e( 'Insert the error message for validation.', 'yit' ) ?></span>
327
  </p>
328
  </div>
329
 
330
  <div class="the-metabox checkbox clearfix">
331
- <label for="<?php echo $id ?>_required"><?php _e( 'Required', 'yit' ) ?></label>
332
 
333
  <p>
334
  <input disabled type="checkbox" id="<?php echo $id ?>_required" name="<?php echo $name ?>[][required]" value="1" />
335
- <span class="desc inline"><?php _e( 'Select this option if it must be required.', 'yit' ) ?></span>
336
  </p>
337
  </div>
338
 
339
  <div class="the-metabox checkbox clearfix">
340
- <label for="<?php echo $id ?>_is_email"><?php _e( 'Email', 'yit' ) ?></label>
341
 
342
  <p>
343
  <input disabled type="checkbox" id="<?php echo $id ?>_is_email" name="<?php echo $name ?>[][is_email]" value="1" />
344
- <span class="desc inline"><?php _e( 'Select this option if the email must be valid.', 'yit' ) ?></span>
345
  </p>
346
  </div>
347
 
348
  <div class="the-metabox checkbox clearfix">
349
- <label for="<?php echo $id ?>_reply_to"><?php _e( 'Reply To', 'yit' ) ?></label>
350
 
351
  <p>
352
  <input disabled type="checkbox" id="<?php echo $id ?>_reply_to" name="<?php echo $name ?>[][reply_to]" value="1" />
353
- <span class="desc inline"><?php _e( 'Select this if it is the email you can reply to.', 'yit' ) ?></span>
354
  </p>
355
  </div>
356
 
357
  <div class="the-metabox text clearfix">
358
- <label for="<?php echo $id ?>_class"><?php _e( 'Class', 'yit' ) ?></label>
359
 
360
  <p>
361
  <input disabled type="text" value="" id="<?php echo $id ?>_class" name="<?php echo $name ?>[][class]" />
362
- <span class="desc inline"><?php _e( 'Insert additional class(es) (separated by commas) for more personalization.', 'yit' ) ?></span>
363
  </p>
364
  </div>
365
 
366
  <div class="the-metabox text clearfix">
367
- <label for="<?php echo $id ?>_icon"><?php _e( 'Icon', 'yit' ) ?></label>
368
 
369
  <div class="option">
370
 
@@ -388,13 +388,13 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
388
 
389
  <div class="input_wrapper custom_icon">
390
  <input disabled type="text" name="<?php echo $name ?>[][custom]" id="<?php echo $id ?>_icon[custom-icon]" value="" class="upload_img_url upload_custom_icon" />
391
- <input disabled type="button" name="<?php echo $name ?>[][custom]-button" value="<?php _e( 'Upload', 'yit' ) ?>" id="<?php echo $id ?>_icon[custom-icon]-button" class="upload_button button" />
392
 
393
  <div class="upload_img_preview" style="margin-top:10px;">
394
  <?php
395
  $file = '';
396
  if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
397
- echo __('Image preview', 'yit') . ': ' . "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"$file\" />";
398
  }
399
  ?>
400
  </div>
@@ -402,11 +402,11 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
402
  </div>
403
  </div>
404
 
405
- <span class="desc inline"><?php _e( 'Insert an icon for more personalization.', 'yit' ) ?></span>
406
  </div>
407
 
408
  <div class="the-metabox text clearfix">
409
- <label for="<?php echo $id ?>_width"><?php _e( 'Width', 'yit' ) ?></label>
410
 
411
  <p>
412
  <select disabled id="<?php echo $id ?>_width" name="<?php echo $name?>[][width]">
@@ -418,7 +418,7 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
418
  }
419
  ?>
420
  </select>
421
- <span class="desc inline"><?php _e( 'Set field length.', 'yit' ) ?></span>
422
  </p>
423
  </div>
424
  </div>
@@ -433,7 +433,7 @@ $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
433
 
434
  $(document).on('click', '#<?php echo $id ?>_addoptions .add-field-option', function(){
435
  var select_index = $(this).data('index');
436
- var option = "<p class='option'><label><input type='radio' name='<?php echo $name ?>[option_selected]' value='' /> <?php _e( 'Selected', 'yit' ) ?></label><input type='text' name='<?php echo $name ?>[" + select_index + "][options][]' style='width:200px' /> <a href='#' class='del-field-option button-secondary'><?php _e( 'Delete option', 'yit' ) ?></a></p>";
437
 
438
  $(option).appendTo( $(this).parents('#<?php echo $id ?>_addoptions') );
439
  return false;
4
  extract( $args );
5
 
6
  $types = array(
7
+ 'text' => __( 'Text Input', 'yith-plugin-fw' ),
8
+ 'checkbox' => __( 'Checkbox', 'yith-plugin-fw' ),
9
+ 'select' => __( 'Select', 'yith-plugin-fw' ),
10
+ 'textarea' => __( 'Textarea', 'yith-plugin-fw' ),
11
+ 'radio' => __( 'Radio Input', 'yith-plugin-fw' ),
12
+ 'password' => __( 'Password Field', 'yith-plugin-fw' ),
13
+ 'file' => __( 'File Upload', 'yith-plugin-fw' ),
14
  );
15
 
16
  $defaults = array(
44
  /* Select Font Awesome */
45
 
46
  $options["select"]=array(
47
+ 'icon' => __( 'Theme Icon', 'yith-plugin-fw' ),
48
+ 'custom' => __( 'Custom Icon', 'yith-plugin-fw' ),
49
+ 'none' => __( 'None', 'yith-plugin-fw' )
50
  );
51
 
52
  $options["icon"] = YIT_Plugin_Common::get_awesome_icons();
57
  <?php if( isset( $label ) ):?><label for="<?php echo $id ?>"><?php echo $label ?></label><?php endif;?>
58
 
59
  <p class="field-row">
60
+ <a href="" class="button-secondary add-items"><?php _e( 'Add field', 'yith-plugin-fw' ) ?></a>
61
  <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="add-items-ajax-loading" alt="" />
62
  </p>
63
 
66
  <?php while ( $index <= count( $value ) ): ?>
67
  <div class="contactform_item closed">
68
  <h3>
69
+ <button type="button" class="remove_item button" rel=""><?php _e( 'Remove', 'yith-plugin-fw' ) ?></button>
70
+ <div class="handlediv" title="<?php _e( 'Click to toggle', 'yith-plugin-fw' ) ?>"></div>
71
  <strong><?php echo $value[$index]['title'] ?> <?php yit_string( '(', $types[$value[$index]['type']], ')' ) ?></strong>
72
  <input type="hidden" class="contactform_menu_order" name="<?php echo $name ?>[<?php echo $index ?>][order]" value="<?php echo esc_attr( $index ) ?>" />
73
  </h3>
74
  <div class="inside">
75
 
76
  <div class="the-metabox text clearfix">
77
+ <label for="<?php echo $id ?>_title_<?php echo $index ?>"><?php _e( 'Field Title', 'yith-plugin-fw' ) ?></label>
78
 
79
  <p>
80
  <input type="text" value="<?php echo esc_attr( $value[$index]['title'] ) ?>" id="<?php echo $id ?>_title_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][title]" />
81
+ <span class="desc inline"><?php _e( 'Insert the title for the field.', 'yith-plugin-fw' ) ?></span>
82
  </p>
83
  </div>
84
 
85
  <div class="the-metabox text clearfix">
86
+ <label for="<?php echo $id ?>_data_name_<?php echo $index ?>"><?php _e( 'Data Name', 'yith-plugin-fw' ) ?></label>
87
 
88
  <p>
89
  <input type="text" value="<?php echo esc_attr( $value[$index]['data_name'] ) ?>" id="<?php echo $id ?>_data_name_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][data_name]" />
90
+ <span class="desc inline"><?php _e( 'REQUIRED: Field identification name to be entered into email body. <strong>Note:</strong>Use only lowercase characters and underscores.', 'yith-plugin-fw' ) ?></span>
91
  </p>
92
  </div>
93
 
94
  <div class="the-metabox select clearfix text-field-type">
95
+ <label for="<?php echo $id ?>_type_<?php echo $index ?>"><?php _e( 'Field Type', 'yith-plugin-fw' ) ?></label>
96
 
97
  <p>
98
  <select id="<?php echo $id ?>_type_<?php echo $index ?>" name="<?php echo $name . '[' . $index . ']' ?>[type]">
100
  <option value="<?php echo esc_attr( $type ) ?>"<?php selected( $type, $value[$index]['type'] ) ?>><?php echo $name_type ?></option>
101
  <?php endforeach; ?>
102
  </select>
103
+ <span class="desc inline"><?php _e( 'Select the type for this field.', 'yith-plugin-fw' ) ?></span>
104
  </p>
105
  </div>
106
 
107
  <div class="the-metabox checkbox clearfix deps_checkbox deps">
108
+ <label for="<?php echo $id ?>_already_checked_<?php echo $index ?>"><?php _e( 'Checked', 'yith-plugin-fw' ) ?></label>
109
 
110
  <p>
111
  <input type="checkbox" id="<?php echo $id ?>_already_checked_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][already_checked]" value="1"<?php checked( $value[$index]['already_checked'] ) ?> />
112
+ <span class="desc inline"><?php _e( 'Select this option if you want this field appears as already checked.', 'yith-plugin-fw' ) ?></span>
113
  </p>
114
  </div>
115
 
116
  <div id="<?php echo $id ?>_addoptions" class="the-metabox addoptions clearfix deps_radio deps_select deps">
117
+ <label for=""><?php _e( 'Add options ', 'yith-plugin-fw' ) ?></label>
118
+ <a href="#" class="add-field-option button-secondary" data-index="<?php echo $index ?>"><?php _e( 'Add option', 'yith-plugin-fw' ) ?></a><br /><br />
119
  <?php foreach ( $value[$index]['options'] as $key => $option ) : ?>
120
  <p class="option">
121
+ <label><input type="radio" name="<?php echo $name ?>[<?php echo $index ?>][option_selected]" value="<?php echo esc_attr( $key ) ?>"<?php checked( $value[$index]['option_selected'], $key ) ?> /> <?php _e( 'Selected', 'yith-plugin-fw' ) ?>
122
  </label>
123
  <input type="text" name="<?php echo $name ?>[<?php echo $index ?>][options][]" value="<?php echo $option ?>" style="width:200px" />
124
+ <a href="#" class="del-field-option button-secondary"><?php _e( 'Delete option', 'yith-plugin-fw' ) ?></a>
125
  </p>
126
  <?php endforeach; ?>
127
  </div>
128
 
129
  <div class="the-metabox text clearfix">
130
+ <label for="<?php echo $id ?>_error_<?php echo $index ?>"><?php _e( 'Error Message', 'yith-plugin-fw' ) ?></label>
131
 
132
  <p>
133
  <input type="text" value="<?php echo esc_attr( $value[$index]['error'] ) ?>" id="<?php echo $id ?>_error_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][error]" />
134
+ <span class="desc inline"><?php _e( 'Insert the error message for validation.', 'yith-plugin-fw' ) ?></span>
135
  </p>
136
  </div>
137
 
138
  <div class="the-metabox checkbox clearfix">
139
+ <label for="<?php echo $id ?>_required_<?php echo $index ?>"><?php _e( 'Required', 'yith-plugin-fw' ) ?></label>
140
 
141
  <p>
142
  <input type="checkbox" id="<?php echo $id ?>_required_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][required]" value="1"<?php checked( $value[$index]['required'] ) ?> />
143
+ <span class="desc inline"><?php _e( 'Select this option if it must be required.', 'yith-plugin-fw' ) ?></span>
144
  </p>
145
  </div>
146
 
147
  <div class="the-metabox checkbox clearfix">
148
+ <label for="<?php echo $id ?>_is_email_<?php echo $index ?>"><?php _e( 'Email', 'yith-plugin-fw' ) ?></label>
149
 
150
  <p>
151
  <input type="checkbox" id="<?php echo $id ?>_is_email_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][is_email]" value="1"<?php checked( $value[$index]['is_email'] ) ?> />
152
+ <span class="desc inline"><?php _e( 'Select this option if the email must be valid.', 'yith-plugin-fw' ) ?></span>
153
  </p>
154
  </div>
155
 
156
  <div class="the-metabox checkbox clearfix">
157
+ <label for="<?php echo $id ?>_reply_to_<?php echo $index ?>"><?php _e( 'Reply To', 'yith-plugin-fw' ) ?></label>
158
 
159
  <p>
160
  <input type="checkbox" id="<?php echo $id ?>_reply_to_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][reply_to]" value="1"<?php checked( $value[$index]['reply_to'] ) ?> />
161
+ <span class="desc inline"><?php _e( 'Select this if it is the email you can reply to.', 'yith-plugin-fw' ) ?></span>
162
  </p>
163
  </div>
164
 
165
  <div class="the-metabox text clearfix">
166
+ <label for="<?php echo $id ?>_class_<?php echo $index ?>"><?php _e( 'Class', 'yith-plugin-fw' ) ?></label>
167
 
168
  <p>
169
  <input type="text" value="<?php echo esc_attr( $value[$index]['class'] ) ?>" id="<?php echo $id ?>_class_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][class]" />
170
+ <span class="desc inline"><?php _e( 'Insert additional class(es) (separated by commas) for more personalization.', 'yith-plugin-fw' ) ?></span>
171
  </p>
172
  </div>
173
 
174
  <div class="the-metabox text clearfix">
175
+ <label for="<?php echo $id ?>_icon_<?php echo $index ?>"><?php _e( 'Icon', 'yith-plugin-fw' ) ?></label>
176
 
177
  <p>
178
 
200
 
201
  <div class="input_wrapper custom_icon">
202
  <input type="text" name="<?php echo $name ?>[<?php echo $index ?>][custom]" id="<?php echo $id ?>_icon_<?php echo $index ?>[custom-icon]" value="<?php echo esc_attr( $value[$index]['custom'] ); ?>" class="upload_img_url upload_custom_icon" />
203
+ <input type="button" name="<?php echo $name ?>[<?php echo $index ?>][custom]-button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" id="<?php echo $id ?>_icon_<?php echo $index ?>[custom-icon]-button" class="upload_button button" />
204
 
205
  <div class="upload_img_preview" style="margin-top:10px;">
206
  <?php
207
  $file = $current_options['custom'];
208
  if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
209
+ echo __('Image preview', 'yith-plugin-fw') . ': ' . "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"$file\" />";
210
  }
211
  ?>
212
  </div>
214
  </div>
215
  </div>
216
 
217
+ <span class="desc inline"><?php _e( 'Insert an icon for more personalization.', 'yith-plugin-fw' ) ?></span>
218
  </p>
219
  </div>
220
 
221
  <div class="the-metabox text clearfix">
222
+ <label for="<?php echo $id ?>_width_<?php echo $index ?>"><?php _e( 'Width', 'yith-plugin-fw' ) ?></label>
223
 
224
  <p>
225
  <select id="<?php echo $id ?>_width_<?php echo $index ?>" name="<?php echo $name . '[' . $index . ']' ?>[width]">
244
  }
245
  ?>
246
  </select>
247
+ <span class="desc inline"><?php _e( 'Set field length.', 'yith-plugin-fw' ) ?></span>
248
  </p>
249
  </div>
250
  </div>
258
 
259
  <div class="contactform_item closed" id="stamp_form" style="display:none;">
260
  <h3>
261
+ <button type="button" class="remove_item button" rel=""><?php _e( 'Remove', 'yith-plugin-fw' ) ?></button>
262
+ <div class="handlediv" title="<?php _e( 'Click to toggle', 'yith-plugin-fw' ) ?>"></div>
263
  <strong></strong>
264
  <input disabled type="hidden" class="contactform_menu_order" name="<?php echo $name ?>[][order]" value=""/>
265
  </h3>
266
  <div class="inside">
267
 
268
  <div class="the-metabox text clearfix">
269
+ <label for="<?php echo $id ?>_title"><?php _e( 'Field Title', 'yith-plugin-fw' ) ?></label>
270
 
271
  <p>
272
  <input disabled type="text" value="" id="<?php echo $id ?>_title" name="<?php echo $name ?>[][title]" />
273
+ <span class="desc inline"><?php _e( 'Insert the title for the field.', 'yith-plugin-fw' ) ?></span>
274
  </p>
275
  </div>
276
 
277
  <div class="the-metabox text clearfix">
278
+ <label for="<?php echo $id ?>_data_name"><?php _e( 'Data Name', 'yith-plugin-fw' ) ?></label>
279
 
280
  <p>
281
  <input disabled type="text" value="" id="<?php echo $id ?>_data_name" name="<?php echo $name ?>[][data_name]" />
282
+ <span class="desc inline"><?php _e( 'REQUIRED: Field identification name to be entered into email body. <strong>Note:</strong>Use only lowercase characters and underscores.', 'yith-plugin-fw' ) ?></span>
283
  </p>
284
  </div>
285
 
286
  <div class="the-metabox select clearfix text-field-type">
287
+ <label for="<?php echo $id ?>_type"><?php _e( 'Field Type', 'yith-plugin-fw' ) ?></label>
288
 
289
  <p>
290
  <select disabled id="<?php echo $id ?>_type" name="<?php echo $name ?>[][type]">
292
  <option value="<?php echo esc_attr( $type ) ?>"><?php echo $name_type ?></option>
293
  <?php endforeach; ?>
294
  </select>
295
+ <span class="desc inline"><?php _e( 'Select the type for this field.', 'yith-plugin-fw' ) ?></span>
296
  </p>
297
  </div>
298
 
299
  <div class="the-metabox checkbox clearfix deps_checkbox deps">
300
+ <label for="<?php echo $id ?>_already_checked"><?php _e( 'Checked', 'yith-plugin-fw' ) ?></label>
301
 
302
  <p>
303
  <input disabled type="checkbox" id="<?php echo $id ?>_already_checked" name="<?php echo $name ?>[][already_checked]" value="1" />
304
+ <span class="desc inline"><?php _e( 'Select this option if you want this field appears as already checked.', 'yith-plugin-fw' ) ?></span>
305
  </p>
306
  </div>
307
 
308
  <div id="<?php echo $id ?>_addoptions" class="the-metabox addoptions clearfix deps_radio deps_select deps">
309
+ <label for=""><?php _e( 'Add options ', 'yith-plugin-fw' ) ?></label>
310
+ <a href="#" class="add-field-option button-secondary"><?php _e( 'Add option', 'yith-plugin-fw' ) ?></a><br /><br />
311
 
312
  <p class="option">
313
+ <label><input disabled type="radio" name="<?php echo $name ?>[][option_selected]" value="" /> <?php _e( 'Selected', 'yith-plugin-fw' ) ?>
314
  </label>
315
  <input disabled type="text" name="<?php echo $name ?>[][options][]" value="" style="width:200px" />
316
+ <a href="#" class="del-field-option button-secondary"><?php _e( 'Delete option', 'yith-plugin-fw' ) ?></a>
317
  </p>
318
 
319
  </div>
320
 
321
  <div class="the-metabox text clearfix">
322
+ <label for="<?php echo $id ?>_error"><?php _e( 'Error Message', 'yith-plugin-fw' ) ?></label>
323
 
324
  <p>
325
  <input disabled type="text" value="" id="<?php echo $id ?>_error" name="<?php echo $name ?>[][error]" />
326
+ <span class="desc inline"><?php _e( 'Insert the error message for validation.', 'yith-plugin-fw' ) ?></span>
327
  </p>
328
  </div>
329
 
330
  <div class="the-metabox checkbox clearfix">
331
+ <label for="<?php echo $id ?>_required"><?php _e( 'Required', 'yith-plugin-fw' ) ?></label>
332
 
333
  <p>
334
  <input disabled type="checkbox" id="<?php echo $id ?>_required" name="<?php echo $name ?>[][required]" value="1" />
335
+ <span class="desc inline"><?php _e( 'Select this option if it must be required.', 'yith-plugin-fw' ) ?></span>
336
  </p>
337
  </div>
338
 
339
  <div class="the-metabox checkbox clearfix">
340
+ <label for="<?php echo $id ?>_is_email"><?php _e( 'Email', 'yith-plugin-fw' ) ?></label>
341
 
342
  <p>
343
  <input disabled type="checkbox" id="<?php echo $id ?>_is_email" name="<?php echo $name ?>[][is_email]" value="1" />
344
+ <span class="desc inline"><?php _e( 'Select this option if the email must be valid.', 'yith-plugin-fw' ) ?></span>
345
  </p>
346
  </div>
347
 
348
  <div class="the-metabox checkbox clearfix">
349
+ <label for="<?php echo $id ?>_reply_to"><?php _e( 'Reply To', 'yith-plugin-fw' ) ?></label>
350
 
351
  <p>
352
  <input disabled type="checkbox" id="<?php echo $id ?>_reply_to" name="<?php echo $name ?>[][reply_to]" value="1" />
353
+ <span class="desc inline"><?php _e( 'Select this if it is the email you can reply to.', 'yith-plugin-fw' ) ?></span>
354
  </p>
355
  </div>
356
 
357
  <div class="the-metabox text clearfix">
358
+ <label for="<?php echo $id ?>_class"><?php _e( 'Class', 'yith-plugin-fw' ) ?></label>
359
 
360
  <p>
361
  <input disabled type="text" value="" id="<?php echo $id ?>_class" name="<?php echo $name ?>[][class]" />
362
+ <span class="desc inline"><?php _e( 'Insert additional class(es) (separated by commas) for more personalization.', 'yith-plugin-fw' ) ?></span>
363
  </p>
364
  </div>
365
 
366
  <div class="the-metabox text clearfix">
367
+ <label for="<?php echo $id ?>_icon"><?php _e( 'Icon', 'yith-plugin-fw' ) ?></label>
368
 
369
  <div class="option">
370
 
388
 
389
  <div class="input_wrapper custom_icon">
390
  <input disabled type="text" name="<?php echo $name ?>[][custom]" id="<?php echo $id ?>_icon[custom-icon]" value="" class="upload_img_url upload_custom_icon" />
391
+ <input disabled type="button" name="<?php echo $name ?>[][custom]-button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" id="<?php echo $id ?>_icon[custom-icon]-button" class="upload_button button" />
392
 
393
  <div class="upload_img_preview" style="margin-top:10px;">
394
  <?php
395
  $file = '';
396
  if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
397
+ echo __('Image preview', 'yith-plugin-fw') . ': ' . "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"$file\" />";
398
  }
399
  ?>
400
  </div>
402
  </div>
403
  </div>
404
 
405
+ <span class="desc inline"><?php _e( 'Insert an icon for more personalization.', 'yith-plugin-fw' ) ?></span>
406
  </div>
407
 
408
  <div class="the-metabox text clearfix">
409
+ <label for="<?php echo $id ?>_width"><?php _e( 'Width', 'yith-plugin-fw' ) ?></label>
410
 
411
  <p>
412
  <select disabled id="<?php echo $id ?>_width" name="<?php echo $name?>[][width]">
418
  }
419
  ?>
420
  </select>
421
+ <span class="desc inline"><?php _e( 'Set field length.', 'yith-plugin-fw' ) ?></span>
422
  </p>
423
  </div>
424
  </div>
433
 
434
  $(document).on('click', '#<?php echo $id ?>_addoptions .add-field-option', function(){
435
  var select_index = $(this).data('index');
436
+ var option = "<p class='option'><label><input type='radio' name='<?php echo $name ?>[option_selected]' value='' /> <?php _e( 'Selected', 'yith-plugin-fw' ) ?></label><input type='text' name='<?php echo $name ?>[" + select_index + "][options][]' style='width:200px' /> <a href='#' class='del-field-option button-secondary'><?php _e( 'Delete option', 'yith-plugin-fw' ) ?></a></p>";
437
 
438
  $(option).appendTo( $(this).parents('#<?php echo $id ?>_addoptions') );
439
  return false;
plugin-fw/templates/metaboxes/types/customtabs.php CHANGED
@@ -25,7 +25,7 @@ extract($args);
25
  <div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
26
  <div id="yit_custom_tabs" class="panel wc-metaboxes-wrapper" style="display: block;">
27
  <p class="toolbar">
28
- <a href="#" class="close_all"><?php _e('Close all', 'yit') ?></a><a href="#" class="expand_all"><?php _e('Expand all', 'yit') ?></a>
29
  </p>
30
 
31
  <div class="yit_custom_tabs wc-metaboxes ui-sortable" style="">
@@ -34,7 +34,7 @@ extract($args);
34
  <?php foreach( $value as $i=>$tab ): ?>
35
  <div class="yit_custom_tab wc-metabox closed" rel="0">
36
  <h3>
37
- <button type="button" class="remove_row button"><?php _e('Remove', 'yit') ?></button>
38
  <div class="handlediv" title="Click to toggle"></div>
39
  <strong class="attribute_name"><?php echo $tab['name'] ?></strong>
40
  </h3>
@@ -43,14 +43,14 @@ extract($args);
43
  <tbody>
44
  <tr>
45
  <td class="attribute_name">
46
- <label><?php _e('Name', 'yit') ?>:</label>
47
  <input type="text" class="attribute_name" name="<?php echo $name ?>[<?php echo $i ?>][name]" value="<?php echo esc_attr( $tab['name'] ) ?>">
48
  <input type="hidden" name="<?php echo $name ?>[<?php echo $i ?>][position]" class="attribute_position" value="<?php echo $i ?>">
49
  </td>
50
 
51
  <td rowspan="3">
52
- <label><?php _e('Value', 'yit') ?>:</label>
53
- <textarea name="<?php echo $name ?>[<?php echo $i ?>][value]" cols="5" rows="5" placeholder="<?php _e('Content of the tab. (HTML is supported)','yit') ?>"><?php echo $tab['value'] ?></textarea>
54
  </td>
55
  </tr>
56
  </tbody>
@@ -62,7 +62,7 @@ extract($args);
62
  </div>
63
 
64
  <p class="toolbar">
65
- <button type="button" class="button button-primary add_custom_tab"><?php _e( 'Add custom product tab', 'yit' ) ?></button>
66
  </p>
67
 
68
  <div class="clear"></div>
@@ -79,7 +79,7 @@ jQuery(document).ready(function($){
79
  // Add custom attribute row
80
  $('.yit_custom_tabs').append('<div class="yit_custom_tab wc-metabox">\
81
  <h3>\
82
- <button type="button" class="remove_row button"><?php _e('Remove', 'yit') ?></button>\
83
  <div class="handlediv" title="Click to toggle"></div>\
84
  <strong class="attribute_name"></strong>\
85
  </h3>\
@@ -87,13 +87,13 @@ jQuery(document).ready(function($){
87
  <tbody>\
88
  <tr>\
89
  <td class="attribute_name">\
90
- <label><?php _e('Name', 'yit') ?>:</label>\
91
  <input type="text" class="attribute_name" name="<?php echo $name ?>[' + size + '][name]" />\
92
  <input type="hidden" name="<?php echo $name ?>[' + size + '][position]" class="attribute_position" value="' + size + '" />\
93
  </td>\
94
  <td rowspan="3">\
95
- <label><?php _e('Value', 'yit') ?>:</label>\
96
- <textarea name="<?php echo $name ?>[' + size + '][value]" cols="5" rows="5" placeholder="<?php echo addslashes( __('Content of the tab. (HTML is supported)','yit') ) ?>"></textarea>\
97
  </td>\
98
  </tr>\
99
  </tbody>\
@@ -104,7 +104,7 @@ jQuery(document).ready(function($){
104
 
105
 
106
  $('.yit_custom_tabs').on('click', 'button.remove_row', function() {
107
- var answer = confirm("<?php _e('Do you want to remove the custom tab?', 'yit') ?>");
108
  if (answer){
109
  var $parent = $(this).parent().parent();
110
 
25
  <div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
26
  <div id="yit_custom_tabs" class="panel wc-metaboxes-wrapper" style="display: block;">
27
  <p class="toolbar">
28
+ <a href="#" class="close_all"><?php _e('Close all', 'yith-plugin-fw') ?></a><a href="#" class="expand_all"><?php _e('Expand all', 'yith-plugin-fw') ?></a>
29
  </p>
30
 
31
  <div class="yit_custom_tabs wc-metaboxes ui-sortable" style="">
34
  <?php foreach( $value as $i=>$tab ): ?>
35
  <div class="yit_custom_tab wc-metabox closed" rel="0">
36
  <h3>
37
+ <button type="button" class="remove_row button"><?php _e('Remove', 'yith-plugin-fw') ?></button>
38
  <div class="handlediv" title="Click to toggle"></div>
39
  <strong class="attribute_name"><?php echo $tab['name'] ?></strong>
40
  </h3>
43
  <tbody>
44
  <tr>
45
  <td class="attribute_name">
46
+ <label><?php _e('Name', 'yith-plugin-fw') ?>:</label>
47
  <input type="text" class="attribute_name" name="<?php echo $name ?>[<?php echo $i ?>][name]" value="<?php echo esc_attr( $tab['name'] ) ?>">
48
  <input type="hidden" name="<?php echo $name ?>[<?php echo $i ?>][position]" class="attribute_position" value="<?php echo $i ?>">
49
  </td>
50
 
51
  <td rowspan="3">
52
+ <label><?php _e('Value', 'yith-plugin-fw') ?>:</label>
53
+ <textarea name="<?php echo $name ?>[<?php echo $i ?>][value]" cols="5" rows="5" placeholder="<?php _e('Content of the tab. (HTML is supported)','yith-plugin-fw') ?>"><?php echo $tab['value'] ?></textarea>
54
  </td>
55
  </tr>
56
  </tbody>
62
  </div>
63
 
64
  <p class="toolbar">
65
+ <button type="button" class="button button-primary add_custom_tab"><?php _e( 'Add custom product tab', 'yith-plugin-fw' ) ?></button>
66
  </p>
67
 
68
  <div class="clear"></div>
79
  // Add custom attribute row
80
  $('.yit_custom_tabs').append('<div class="yit_custom_tab wc-metabox">\
81
  <h3>\
82
+ <button type="button" class="remove_row button"><?php _e('Remove', 'yith-plugin-fw') ?></button>\
83
  <div class="handlediv" title="Click to toggle"></div>\
84
  <strong class="attribute_name"></strong>\
85
  </h3>\
87
  <tbody>\
88
  <tr>\
89
  <td class="attribute_name">\
90
+ <label><?php _e('Name', 'yith-plugin-fw') ?>:</label>\
91
  <input type="text" class="attribute_name" name="<?php echo $name ?>[' + size + '][name]" />\
92
  <input type="hidden" name="<?php echo $name ?>[' + size + '][position]" class="attribute_position" value="' + size + '" />\
93
  </td>\
94
  <td rowspan="3">\
95
+ <label><?php _e('Value', 'yith-plugin-fw') ?>:</label>\
96
+ <textarea name="<?php echo $name ?>[' + size + '][value]" cols="5" rows="5" placeholder="<?php echo addslashes( __('Content of the tab. (HTML is supported)','yith-plugin-fw') ) ?>"></textarea>\
97
  </td>\
98
  </tr>\
99
  </tbody>\
104
 
105
 
106
  $('.yit_custom_tabs').on('click', 'button.remove_row', function() {
107
+ var answer = confirm("<?php _e('Do you want to remove the custom tab?', 'yith-plugin-fw') ?>");
108
  if (answer){
109
  var $parent = $(this).parent().parent();
110
 
plugin-fw/templates/metaboxes/types/icon-list.php CHANGED
@@ -66,13 +66,13 @@ $options['icon'] = YIT_Plugin_Common::get_icon_list();
66
 
67
  <div class="input_wrapper custom_icon_wrapper upload" style="clear:both;">
68
  <input type="text" name="<?php echo $name ?>[custom]" id="<?php echo $id ?>[custom]" value="<?php echo $current_options['custom'] ?>" class="upload_img_url upload_custom_icon" />
69
- <input type="button" value="<?php _e( 'Upload', 'yit' ) ?>" id="<?php echo $id; ?>-custom-button" class="upload_button button" />
70
 
71
  <div class="upload_img_preview" style="margin-top:10px;">
72
  <?php
73
  $file = $current_options['custom'];
74
  if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
75
- echo __('Image preview', 'yit') . ': ' . "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"$file\" />";
76
  }
77
  ?>
78
  </div>
@@ -86,9 +86,9 @@ $options['icon'] = YIT_Plugin_Common::get_icon_list();
86
  <div class="description">
87
  <?php echo $desc ?>
88
  <?php if( $std['select'] == 'custom' ) : ?>
89
- <?php printf( __( '(Default: %s <img src="%s"/>)', 'yit' ), $options['select']['custom'], $std['custom'] ) ?>
90
  <?php else: ?>
91
- <?php printf( __( '(Default: <i %s></i> )', 'yit' ), $current_icon ) ?>
92
  <?php endif; ?>
93
  </div>
94
 
66
 
67
  <div class="input_wrapper custom_icon_wrapper upload" style="clear:both;">
68
  <input type="text" name="<?php echo $name ?>[custom]" id="<?php echo $id ?>[custom]" value="<?php echo $current_options['custom'] ?>" class="upload_img_url upload_custom_icon" />
69
+ <input type="button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" id="<?php echo $id; ?>-custom-button" class="upload_button button" />
70
 
71
  <div class="upload_img_preview" style="margin-top:10px;">
72
  <?php
73
  $file = $current_options['custom'];
74
  if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
75
+ echo __('Image preview', 'yith-plugin-fw') . ': ' . "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"$file\" />";
76
  }
77
  ?>
78
  </div>
86
  <div class="description">
87
  <?php echo $desc ?>
88
  <?php if( $std['select'] == 'custom' ) : ?>
89
+ <?php printf( __( '(Default: %s <img src="%s"/>)', 'yith-plugin-fw' ), $options['select']['custom'], $std['custom'] ) ?>
90
  <?php else: ?>
91
+ <?php printf( __( '(Default: <i %s></i> )', 'yith-plugin-fw' ), $current_icon ) ?>
92
  <?php endif; ?>
93
  </div>
94
 
plugin-fw/templates/metaboxes/types/image-gallery.php CHANGED
@@ -37,12 +37,12 @@ if ( !empty( $value ) ) {
37
  endif; ?>
38
  </a>
39
  <ul class="actions">
40
- <li><a href="#" class="delete" title="<?php _e( 'Delete image', 'yit' ); ?>">x</a></li>
41
  </ul>
42
  </li>
43
  <?php endforeach; endif; ?>
44
  </ul>
45
- <input type="button" data-choose="<?php _e( 'Add Images to Gallery', 'yit' ); ?>" data-update="<?php _e( 'Add to gallery', 'yit' ); ?>" value="<?php _e( 'Add images', 'yit' ) ?>" data-delete="<?php _e( 'Delete image', 'yit' ); ?>" data-text="<?php _e( 'Delete', 'yit' ); ?>" id="<?php echo $id ?>-button" class="image-gallery-button button" />
46
  <input type="hidden" class="image_gallery_ids" id="image_gallery_ids" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ); ?>" />
47
  </p>
48
  </div>
37
  endif; ?>
38
  </a>
39
  <ul class="actions">
40
+ <li><a href="#" class="delete" title="<?php _e( 'Delete image', 'yith-plugin-fw' ); ?>">x</a></li>
41
  </ul>
42
  </li>
43
  <?php endforeach; endif; ?>
44
  </ul>
45
+ <input type="button" data-choose="<?php _e( 'Add Images to Gallery', 'yith-plugin-fw' ); ?>" data-update="<?php _e( 'Add to gallery', 'yith-plugin-fw' ); ?>" value="<?php _e( 'Add images', 'yith-plugin-fw' ) ?>" data-delete="<?php _e( 'Delete image', 'yith-plugin-fw' ); ?>" data-text="<?php _e( 'Delete', 'yith-plugin-fw' ); ?>" id="<?php echo $id ?>-button" class="image-gallery-button button" />
46
  <input type="hidden" class="image_gallery_ids" id="image_gallery_ids" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ); ?>" />
47
  </p>
48
  </div>
plugin-fw/templates/metaboxes/types/images.php CHANGED
@@ -35,11 +35,11 @@ if ( empty( $value ) || ! is_array( $value ) )
35
  endif; ?>
36
  <input type="hidden" name="<?php echo $name ?>[]" value="<?php echo esc_attr( $image_id ) ?>" />
37
  </a>
38
- <a href="#" title="<?php _e( 'Delete image', 'yit' ) ?>" class="delete">X</a>
39
  </li>
40
  <?php endforeach; endif; ?>
41
  </ul>
42
- <a href="#" class="button-secondary upload-extra-images" id="<?php echo $id ?>-upload-extra-images"><?php _e( 'Upload new images', 'yit' ) ?></a>
43
  </div>
44
  <script type="text/javascript">
45
  jQuery(document).ready(function($){
@@ -61,7 +61,7 @@ if ( empty( $value ) || ! is_array( $value ) )
61
  var baseurl = imgurl.replace( '.' + thumburl[0], '' );
62
  thumburl = baseurl + '-140x100.' + thumburl[0];
63
 
64
- $('#<?php echo $id ?>-extra-images.slides-wrapper').append('<li><a href="#"><img src="'+thumburl+'" width="140" height="100" /> <input type="hidden" name="<?php echo $name ?>[]" value="'+image_id+'" /></a><a href="#" title="<?php echo addslashes( __( 'Delete image', 'yit' ) ) ?>" class="delete">X</a></li>');
65
  });
66
 
67
  tb_remove();
@@ -72,7 +72,7 @@ if ( empty( $value ) || ! is_array( $value ) )
72
  });
73
 
74
  $('#<?php echo $id ?>-extra-images a.delete').on( 'click', function(){
75
- if ( confirm( "<?php _e( 'Are you sure you want to remove this image?', 'yit' ) ?>" ) ) {
76
  $(this).parent().remove();
77
  }
78
 
35
  endif; ?>
36
  <input type="hidden" name="<?php echo $name ?>[]" value="<?php echo esc_attr( $image_id ) ?>" />
37
  </a>
38
+ <a href="#" title="<?php _e( 'Delete image', 'yith-plugin-fw' ) ?>" class="delete">X</a>
39
  </li>
40
  <?php endforeach; endif; ?>
41
  </ul>
42
+ <a href="#" class="button-secondary upload-extra-images" id="<?php echo $id ?>-upload-extra-images"><?php _e( 'Upload new images', 'yith-plugin-fw' ) ?></a>
43
  </div>
44
  <script type="text/javascript">
45
  jQuery(document).ready(function($){
61
  var baseurl = imgurl.replace( '.' + thumburl[0], '' );
62
  thumburl = baseurl + '-140x100.' + thumburl[0];
63
 
64
+ $('#<?php echo $id ?>-extra-images.slides-wrapper').append('<li><a href="#"><img src="'+thumburl+'" width="140" height="100" /> <input type="hidden" name="<?php echo $name ?>[]" value="'+image_id+'" /></a><a href="#" title="<?php echo addslashes( __( 'Delete image', 'yith-plugin-fw' ) ) ?>" class="delete">X</a></li>');
65
  });
66
 
67
  tb_remove();
72
  });
73
 
74
  $('#<?php echo $id ?>-extra-images a.delete').on( 'click', function(){
75
+ if ( confirm( "<?php _e( 'Are you sure you want to remove this image?', 'yith-plugin-fw' ) ?>" ) ) {
76
  $(this).parent().remove();
77
  }
78
 
plugin-fw/templates/metaboxes/types/preview.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file belongs to the YIT Plugin Framework.
4
+ *
5
+ * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
6
+ * that is bundled with this package in the file LICENSE.txt.
7
+ * It is also available through the world-wide-web at this URL:
8
+ * http://www.gnu.org/licenses/gpl-3.0.txt
9
+ */
10
+ if ( ! defined( 'ABSPATH' ) ) {
11
+ exit;
12
+ } // Exit if accessed directly
13
+
14
+ extract( $args );
15
+
16
+ ?>
17
+ <div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?> data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
18
+ <img src="<?php echo $value ?>" class="yit-preview">
19
+ </div>
plugin-fw/templates/metaboxes/types/responsivesliders.php CHANGED
@@ -21,7 +21,7 @@ $options = yit_get_responsive_sliders();
21
  <div class="select_wrapper">
22
  <select id="<?php echo $id ?>" name="<?php echo $name ?>" <?php if ( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?>>
23
  <option></option>
24
- <option value="none"><?php _e( 'None', 'yit' ) ?></option>
25
  <?php foreach ( $options as $key => $item ) : ?>
26
  <option value="<?php echo esc_attr( $key ) ?>"<?php selected( $key, $value ) ?>><?php echo $item ?></option>
27
  <?php endforeach; ?>
21
  <div class="select_wrapper">
22
  <select id="<?php echo $id ?>" name="<?php echo $name ?>" <?php if ( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?>>
23
  <option></option>
24
+ <option value="none"><?php _e( 'None', 'yith-plugin-fw' ) ?></option>
25
  <?php foreach ( $options as $key => $item ) : ?>
26
  <option value="<?php echo esc_attr( $key ) ?>"<?php selected( $key, $value ) ?>><?php echo $item ?></option>
27
  <?php endforeach; ?>
plugin-fw/templates/metaboxes/types/select-icon.php CHANGED
@@ -30,13 +30,13 @@ $current_options = wp_parse_args( $args['value'], $args['std'] );
30
 
31
  <div class="input_wrapper custom_icon">
32
  <input type="text" name="<?php echo $name ?>[custom]" id="<?php echo $id ?>[custom]" value="<?php echo $current_options['custom'] ?>" class="upload_img_url upload_custom_icon" />
33
- <input type="button" value="<?php _e( 'Upload', 'yit' ) ?>" id="<?php echo $id; ?>-custom-button" class="upload_button button" />
34
 
35
  <div class="upload_img_preview" style="margin-top:10px;">
36
  <?php
37
  $file = $current_options['custom'];
38
  if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
39
- echo __( 'Image preview', 'yit' ) . ': ' . "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"$file\" />";
40
  }
41
  ?>
42
  </div>
30
 
31
  <div class="input_wrapper custom_icon">
32
  <input type="text" name="<?php echo $name ?>[custom]" id="<?php echo $id ?>[custom]" value="<?php echo $current_options['custom'] ?>" class="upload_img_url upload_custom_icon" />
33
+ <input type="button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" id="<?php echo $id; ?>-custom-button" class="upload_button button" />
34
 
35
  <div class="upload_img_preview" style="margin-top:10px;">
36
  <?php
37
  $file = $current_options['custom'];
38
  if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
39
+ echo __( 'Image preview', 'yith-plugin-fw' ) . ': ' . "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"$file\" />";
40
  }
41
  ?>
42
  </div>
plugin-fw/templates/metaboxes/types/sidebar-layout.php CHANGED
@@ -22,16 +22,16 @@ $sidebar = ! isset( $value['sidebar'] ) ? '' : $value['sidebar'];
22
 
23
  <p class="yit-sidebar-layout">
24
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-left' ?>" value="sidebar-left" <?php checked( $layout, 'sidebar-left' ) ?> />
25
- <img src="<?php echo YIT_CORE_ASSETS_URL ?>/images/sideleft.png" title="<?php _e( 'Left sidebar', 'yit' ) ?>" alt="<?php _e( 'Left sidebar', 'yit' ) ?>" />
26
 
27
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-no' ?>" value="sidebar-no" <?php checked( $layout, 'sidebar-no' ) ?> />
28
- <img src="<?php echo YIT_CORE_ASSETS_URL ?>/images/noside.png" title="<?php _e( 'No sidebar', 'yit' ) ?>" alt="<?php _e( 'No sidebar', 'yit' ) ?>" />
29
 
30
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-right' ?>" value="sidebar-right" <?php checked( $layout, 'sidebar-right' ) ?> />
31
- <img src="<?php echo YIT_CORE_ASSETS_URL ?>/images/sideright.png" title="<?php _e( 'Right sidebar', 'yit' ) ?>" alt="<?php _e( 'Right sidebar', 'yit' ) ?>" />
32
 
33
  <select name="<?php echo $name ?>[sidebar]" id="<?php echo $id ?>-sidebar">
34
- <option value="-1"><?php _e( 'Choose a sidebar', 'yit' ) ?></option>
35
  <?php foreach ( yit_registered_sidebars() as $val => $option ) { ?>
36
  <option value="<?php echo esc_attr( $val ) ?>" <?php selected( $sidebar, $val ) ?>><?php echo $option; ?></option>
37
  <?php } ?>
22
 
23
  <p class="yit-sidebar-layout">
24
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-left' ?>" value="sidebar-left" <?php checked( $layout, 'sidebar-left' ) ?> />
25
+ <img src="<?php echo YIT_CORE_ASSETS_URL ?>/images/sideleft.png" title="<?php _e( 'Left sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'Left sidebar', 'yith-plugin-fw' ) ?>" />
26
 
27
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-no' ?>" value="sidebar-no" <?php checked( $layout, 'sidebar-no' ) ?> />
28
+ <img src="<?php echo YIT_CORE_ASSETS_URL ?>/images/noside.png" title="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" />
29
 
30
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-right' ?>" value="sidebar-right" <?php checked( $layout, 'sidebar-right' ) ?> />
31
+ <img src="<?php echo YIT_CORE_ASSETS_URL ?>/images/sideright.png" title="<?php _e( 'Right sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'Right sidebar', 'yith-plugin-fw' ) ?>" />
32
 
33
  <select name="<?php echo $name ?>[sidebar]" id="<?php echo $id ?>-sidebar">
34
+ <option value="-1"><?php _e( 'Choose a sidebar', 'yith-plugin-fw' ) ?></option>
35
  <?php foreach ( yit_registered_sidebars() as $val => $option ) { ?>
36
  <option value="<?php echo esc_attr( $val ) ?>" <?php selected( $sidebar, $val ) ?>><?php echo $option; ?></option>
37
  <?php } ?>
plugin-fw/templates/metaboxes/types/sidebars.php CHANGED
@@ -33,24 +33,24 @@ $sidebar_right = ! isset( $value['sidebar-right'] ) ? '-1' : $value['sidebar-ri
33
  <label for="_slider_name"><?php echo $label ?></label>
34
 
35
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-left' ?>" value="sidebar-left" <?php checked( $layout, 'sidebar-left' ) ?> />
36
- <img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/sidebar-left.png" title="<?php _e( 'Left sidebar', 'yit' ) ?>" alt="<?php _e( 'Left sidebar', 'yit' ) ?>" class="<?php echo $id . '-left' ?>" />
37
 
38
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-right' ?>" value="sidebar-right" <?php checked( $layout, 'sidebar-right' ) ?> />
39
- <img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/sidebar-right.png" title="<?php _e( 'Right sidebar', 'yit' ) ?>" alt="<?php _e( 'Right sidebar', 'yit' ) ?>" class="<?php echo $id . '-right' ?>" />
40
 
41
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-double' ?>" value="sidebar-double" <?php checked( $layout, 'sidebar-double' ) ?> />
42
- <img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/double-sidebar.png" title="<?php _e( 'No sidebar', 'yit' ) ?>" alt="<?php _e( 'No sidebar', 'yit' ) ?>" class="<?php echo $id . '-double' ?>" />
43
 
44
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-no' ?>" value="sidebar-no" <?php checked( $layout, 'sidebar-no' ) ?> />
45
- <img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/no-sidebar.png" title="<?php _e( 'No sidebar', 'yit' ) ?>" alt="<?php _e( 'No sidebar', 'yit' ) ?>" class="<?php echo $id . '-no' ?>" />
46
  </div>
47
  <div class="clearfix"></div>
48
  <div class="option" id="choose-sidebars">
49
  <div class="side">
50
  <div class="select-mask" <?php if ( $layout != 'sidebar-double' && $layout != 'sidebar-left' ) { echo 'style="display:none"'; } ?> id="<?php echo $id ?>-sidebar-left-container">
51
- <label for ="<?php echo $id ?>-sidebar-left"><?php _e('Left Sidebar','yit') ?></label>
52
  <select name="<?php echo $name ?>[sidebar-left]" id="<?php echo $id ?>-sidebar-left">
53
- <option value="-1"><?php _e( 'Choose a sidebar', 'yit' ) ?></option>
54
  <?php foreach ( yit_registered_sidebars() as $val => $option ) { ?>
55
  <option value="<?php echo esc_attr( $val ) ?>" <?php selected( $sidebar_left, $val ) ?>><?php echo $option; ?></option>
56
  <?php } ?>
@@ -59,9 +59,9 @@ $sidebar_right = ! isset( $value['sidebar-right'] ) ? '-1' : $value['sidebar-ri
59
  </div>
60
  <div class="side" style="clear: both">
61
  <div class="select-mask" <?php if ( $layout != 'sidebar-double' && $layout != 'sidebar-right' ) { echo 'style="display:none"'; } ?> id="<?php echo $id ?>-sidebar-right-container">
62
- <label for ="<?php echo $id ?>-sidebar-right"><?php _e('Right Sidebar','yit') ?></label>
63
  <select name="<?php echo $name ?>[sidebar-right]" id="<?php echo $id ?>-sidebar-right">
64
- <option value="-1"><?php _e( 'Choose a sidebar', 'yit' ) ?></option>
65
  <?php foreach ( yit_registered_sidebars() as $val => $option ) { ?>
66
  <option value="<?php echo esc_attr( $val ) ?>" <?php selected( $sidebar_right, $val ) ?>><?php echo $option; ?></option>
67
  <?php } ?>
33
  <label for="_slider_name"><?php echo $label ?></label>
34
 
35
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-left' ?>" value="sidebar-left" <?php checked( $layout, 'sidebar-left' ) ?> />
36
+ <img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/sidebar-left.png" title="<?php _e( 'Left sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'Left sidebar', 'yith-plugin-fw' ) ?>" class="<?php echo $id . '-left' ?>" />
37
 
38
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-right' ?>" value="sidebar-right" <?php checked( $layout, 'sidebar-right' ) ?> />
39
+ <img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/sidebar-right.png" title="<?php _e( 'Right sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'Right sidebar', 'yith-plugin-fw' ) ?>" class="<?php echo $id . '-right' ?>" />
40
 
41
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-double' ?>" value="sidebar-double" <?php checked( $layout, 'sidebar-double' ) ?> />
42
+ <img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/double-sidebar.png" title="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" class="<?php echo $id . '-double' ?>" />
43
 
44
  <input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-no' ?>" value="sidebar-no" <?php checked( $layout, 'sidebar-no' ) ?> />
45
+ <img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/no-sidebar.png" title="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" class="<?php echo $id . '-no' ?>" />
46
  </div>
47
  <div class="clearfix"></div>
48
  <div class="option" id="choose-sidebars">
49
  <div class="side">
50
  <div class="select-mask" <?php if ( $layout != 'sidebar-double' && $layout != 'sidebar-left' ) { echo 'style="display:none"'; } ?> id="<?php echo $id ?>-sidebar-left-container">
51
+ <label for ="<?php echo $id ?>-sidebar-left"><?php _e('Left Sidebar','yith-plugin-fw') ?></label>
52
  <select name="<?php echo $name ?>[sidebar-left]" id="<?php echo $id ?>-sidebar-left">
53
+ <option value="-1"><?php _e( 'Choose a sidebar', 'yith-plugin-fw' ) ?></option>
54
  <?php foreach ( yit_registered_sidebars() as $val => $option ) { ?>
55
  <option value="<?php echo esc_attr( $val ) ?>" <?php selected( $sidebar_left, $val ) ?>><?php echo $option; ?></option>
56
  <?php } ?>
59
  </div>
60
  <div class="side" style="clear: both">
61
  <div class="select-mask" <?php if ( $layout != 'sidebar-double' && $layout != 'sidebar-right' ) { echo 'style="display:none"'; } ?> id="<?php echo $id ?>-sidebar-right-container">
62
+ <label for ="<?php echo $id ?>-sidebar-right"><?php _e('Right Sidebar','yith-plugin-fw') ?></label>
63
  <select name="<?php echo $name ?>[sidebar-right]" id="<?php echo $id ?>-sidebar-right">
64
+ <option value="-1"><?php _e( 'Choose a sidebar', 'yith-plugin-fw' ) ?></option>
65
  <?php foreach ( yit_registered_sidebars() as $val => $option ) { ?>
66
  <option value="<?php echo esc_attr( $val ) ?>" <?php selected( $sidebar_right, $val ) ?>><?php echo $option; ?></option>
67
  <?php } ?>
plugin-fw/templates/metaboxes/types/typography.php CHANGED
@@ -39,10 +39,10 @@ $value = wp_parse_args( $value, $defaults );
39
  <!-- Unit -->
40
  <div class="select_wrapper font-unit">
41
  <select name="<?php echo $name ?>[unit]" id="<?php echo $id ?>-unit">
42
- <option value="px" <?php selected( $value['unit'], 'px' ) ?>><?php _e( 'px', 'yit' ) ?></option>
43
- <option value="em" <?php selected( $value['unit'], 'em' ) ?>><?php _e( 'em', 'yit' ) ?></option>
44
- <option value="pt" <?php selected( $value['unit'], 'pt' ) ?>><?php _e( 'pt', 'yit' ) ?></option>
45
- <option value="rem" <?php selected( $value['unit'], 'rem' ) ?>><?php _e( 'rem', 'yit' ) ?></option>
46
  </select>
47
  </div>
48
  <?php endif; ?>
@@ -56,7 +56,7 @@ $value = wp_parse_args( $value, $defaults );
56
  $google_fonts = yit_get_google_fonts();
57
 
58
  if ( ! empty( $web_fonts ) ) {
59
- echo '<optgroup label="' . __( 'Web fonts', 'yit' ) . '">';
60
 
61
  foreach ( $web_fonts as $font_name => $rule ) {
62
  ?>
@@ -68,7 +68,7 @@ $value = wp_parse_args( $value, $defaults );
68
  }
69
 
70
  if ( ! empty( $google_fonts ) ) {
71
- echo '<optgroup label="' . __( 'Google fonts', 'yit' ) . '">';
72
 
73
  foreach ( $google_fonts->items as $font ) {
74
  // $font_human = trim( stripslashes( end( array_slice( explode( ',', $font ), 0, 1 ) ) ), "'" );
@@ -93,11 +93,11 @@ $value = wp_parse_args( $value, $defaults );
93
  <!-- Style -->
94
  <div class="select_wrapper font-style">
95
  <select name="<?php echo $name ?>[style]" id="<?php echo $id ?>-style">
96
- <option value="regular" <?php selected( $value['style'], 'regular' ) ?>><?php _e( 'Regular', 'yit' ) ?></option>
97
- <option value="bold" <?php selected( $value['style'], 'bold' ) ?>><?php _e( 'Bold', 'yit' ) ?></option>
98
- <option value="extra-bold" <?php selected( $std['style'], 'extra-bold' ) ?>><?php _e( 'Extra bold', 'yit' ) ?></option>
99
- <option value="italic" <?php selected( $value['style'], 'italic' ) ?>><?php _e( 'Italic', 'yit' ) ?></option>
100
- <option value="bold-italic" <?php selected( $value['style'], 'bold-italic' ) ?>><?php _e( 'Italic bold', 'yit' ) ?></option>
101
  </select>
102
  </div>
103
  <?php endif; ?>
@@ -150,7 +150,7 @@ $value = wp_parse_args( $value, $defaults );
150
  var group = $('#<?php echo $id ?>-family').find('option:selected').parent().attr('label');
151
 
152
  if ($('#<?php echo $id ?>-family').length > 0) {
153
- if (group == '<?php _e( 'Web fonts', 'yit' ) ?>') {
154
  //Web font
155
  preview.css('font-family', $('#<?php echo $id ?>-family').val());
156
  } else {
@@ -214,7 +214,7 @@ $value = wp_parse_args( $value, $defaults );
214
  $('#<?php echo $id ?>-family').change(function () {
215
  var group = $(this).find('option:selected').parent().attr('label');
216
 
217
- if (group == '<?php _e( 'Web fonts', 'yit' ) ?>') {
218
  //Web font
219
  preview.css('font-family', $(this).val());
220
  } else {
39
  <!-- Unit -->
40
  <div class="select_wrapper font-unit">
41
  <select name="<?php echo $name ?>[unit]" id="<?php echo $id ?>-unit">
42
+ <option value="px" <?php selected( $value['unit'], 'px' ) ?>><?php _e( 'px', 'yith-plugin-fw' ) ?></option>
43
+ <option value="em" <?php selected( $value['unit'], 'em' ) ?>><?php _e( 'em', 'yith-plugin-fw' ) ?></option>
44
+ <option value="pt" <?php selected( $value['unit'], 'pt' ) ?>><?php _e( 'pt', 'yith-plugin-fw' ) ?></option>
45
+ <option value="rem" <?php selected( $value['unit'], 'rem' ) ?>><?php _e( 'rem', 'yith-plugin-fw' ) ?></option>
46
  </select>
47
  </div>
48
  <?php endif; ?>
56
  $google_fonts = yit_get_google_fonts();
57
 
58
  if ( ! empty( $web_fonts ) ) {
59
+ echo '<optgroup label="' . __( 'Web fonts', 'yith-plugin-fw' ) . '">';
60
 
61
  foreach ( $web_fonts as $font_name => $rule ) {
62
  ?>
68
  }
69
 
70
  if ( ! empty( $google_fonts ) ) {
71
+ echo '<optgroup label="' . __( 'Google fonts', 'yith-plugin-fw' ) . '">';
72
 
73
  foreach ( $google_fonts->items as $font ) {
74
  // $font_human = trim( stripslashes( end( array_slice( explode( ',', $font ), 0, 1 ) ) ), "'" );
93
  <!-- Style -->
94
  <div class="select_wrapper font-style">
95
  <select name="<?php echo $name ?>[style]" id="<?php echo $id ?>-style">
96
+ <option value="regular" <?php selected( $value['style'], 'regular' ) ?>><?php _e( 'Regular', 'yith-plugin-fw' ) ?></option>
97
+ <option value="bold" <?php selected( $value['style'], 'bold' ) ?>><?php _e( 'Bold', 'yith-plugin-fw' ) ?></option>
98
+ <option value="extra-bold" <?php selected( $std['style'], 'extra-bold' ) ?>><?php _e( 'Extra bold', 'yith-plugin-fw' ) ?></option>
99
+ <option value="italic" <?php selected( $value['style'], 'italic' ) ?>><?php _e( 'Italic', 'yith-plugin-fw' ) ?></option>
100
+ <option value="bold-italic" <?php selected( $value['style'], 'bold-italic' ) ?>><?php _e( 'Italic bold', 'yith-plugin-fw' ) ?></option>
101
  </select>
102
  </div>
103
  <?php endif; ?>
150
  var group = $('#<?php echo $id ?>-family').find('option:selected').parent().attr('label');
151
 
152
  if ($('#<?php echo $id ?>-family').length > 0) {
153
+ if (group == '<?php _e( 'Web fonts', 'yith-plugin-fw' ) ?>') {
154
  //Web font
155
  preview.css('font-family', $('#<?php echo $id ?>-family').val());
156
  } else {
214
  $('#<?php echo $id ?>-family').change(function () {
215
  var group = $(this).find('option:selected').parent().attr('label');
216
 
217
+ if (group == '<?php _e( 'Web fonts', 'yith-plugin-fw' ) ?>') {
218
  //Web font
219
  preview.css('font-family', $(this).val());
220
  } else {
plugin-fw/templates/metaboxes/types/upload.php CHANGED
@@ -18,7 +18,7 @@ extract( $args );
18
  <label for="<?php echo $id ?>"><?php echo $label ?></label>
19
  <p>
20
  <input type="text" id="<?php echo $id ?>" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ) ?>" <?php if( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?> class="upload_img_url"/>
21
- <input type="button" class="button-secondary upload_button" id="<?php echo $id ?>-button" value="<?php _e( 'Upload', 'yit' ) ?>" />
22
  <span class="desc inline"><?php echo $desc ?></span>
23
  </p>
24
  </div>
18
  <label for="<?php echo $id ?>"><?php echo $label ?></label>
19
  <p>
20
  <input type="text" id="<?php echo $id ?>" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ) ?>" <?php if( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?> class="upload_img_url"/>
21
+ <input type="button" class="button-secondary upload_button" id="<?php echo $id ?>-button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" />
22
  <span class="desc inline"><?php echo $desc ?></span>
23
  </p>
24
  </div>
plugin-fw/templates/panel/infobox.php CHANGED
@@ -14,10 +14,10 @@ if ( ! defined( 'ABSPATH' ) ) {
14
 
15
  /**
16
  * 'section_general_settings_boxinfo' => array(
17
- * 'name' => __( 'General information', 'yit' ),
18
  * 'type' => 'boxinfo',
19
  * 'default' => array(
20
- * 'plugin_name' => __( 'Plugin Name', 'yit' ),
21
  * 'buy_url' => 'http://www.yithemes.com',
22
  * 'demo_url' => 'http://plugins.yithemes.com/demo-url/'
23
  * ),
14
 
15
  /**
16
  * 'section_general_settings_boxinfo' => array(
17
+ * 'name' => __( 'General information', 'yith-plugin-fw' ),
18
  * 'type' => 'boxinfo',
19
  * 'default' => array(
20
+ * 'plugin_name' => __( 'Plugin Name', 'yith-plugin-fw' ),
21
  * 'buy_url' => 'http://www.yithemes.com',
22
  * 'demo_url' => 'http://plugins.yithemes.com/demo-url/'
23
  * ),
plugin-fw/templates/panel/types/upload.php CHANGED
@@ -28,7 +28,7 @@ $name = $this->get_name_field( $option['id'] );
28
  <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text rm_upload" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
29
  <div class="option">
30
  <input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo $db_value == '1' ? '' : esc_attr( $db_value ) ?>" class="upload_img_url" />
31
- <input type="button" value="<?php _e( 'Upload', 'yit' ) ?>" id="<?php echo $id ?>-button" class="upload_button button" />
32
  </div>
33
  <div class="clear"></div>
34
  <span class="description"><?php echo $option['desc'] ?></span>
28
  <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text rm_upload" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
29
  <div class="option">
30
  <input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo $db_value == '1' ? '' : esc_attr( $db_value ) ?>" class="upload_img_url" />
31
+ <input type="button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" id="<?php echo $id ?>-button" class="upload_button button" />
32
  </div>
33
  <div class="clear"></div>
34
  <span class="description"><?php echo $option['desc'] ?></span>
plugin-fw/templates/panel/videobox.php CHANGED
@@ -16,19 +16,19 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  * Example to call this template
17
  *
18
  * 'section_general_settings_videobox' => array(
19
- * 'name' => __( 'Title of box', 'yit' ),
20
  * 'type' => 'videobox',
21
  * 'default' => array(
22
- * 'plugin_name' => __( 'Plugin Name', 'yit' ),
23
- * 'title_first_column' => __( 'Title first column', 'yit' ),
24
- * 'description_first_column' => __('Lorem ipsum ... ', 'yit'),
25
  * 'video' => array(
26
  * 'video_id' => 'vimeo_code',
27
  * 'video_image_url' => '#',
28
- * 'video_description' => __( 'Lorem ipsum dolor sit amet....', 'yit' ),
29
  * ),
30
- * 'title_second_column' => __( 'Title first column', 'yit' ),
31
- * 'description_second_column' => __('Lorem ipsum dolor sit amet.... ', 'yit'),
32
  * 'button' => array(
33
  * 'href' => 'http://www.yithemes.com',
34
  * 'title' => 'Get Support and Pro Features'
16
  * Example to call this template
17
  *
18
  * 'section_general_settings_videobox' => array(
19
+ * 'name' => __( 'Title of box', 'yith-plugin-fw' ),
20
  * 'type' => 'videobox',
21
  * 'default' => array(
22
+ * 'plugin_name' => __( 'Plugin Name', 'yith-plugin-fw' ),
23
+ * 'title_first_column' => __( 'Title first column', 'yith-plugin-fw' ),
24
+ * 'description_first_column' => __('Lorem ipsum ... ', 'yith-plugin-fw'),
25
  * 'video' => array(
26
  * 'video_id' => 'vimeo_code',
27
  * 'video_image_url' => '#',
28
+ * 'video_description' => __( 'Lorem ipsum dolor sit amet....', 'yith-plugin-fw' ),
29
  * ),
30
+ * 'title_second_column' => __( 'Title first column', 'yith-plugin-fw' ),
31
+ * 'description_second_column' => __('Lorem ipsum dolor sit amet.... ', 'yith-plugin-fw'),
32
  * 'button' => array(
33
  * 'href' => 'http://www.yithemes.com',
34
  * 'title' => 'Get Support and Pro Features'
plugin-fw/templates/panel/woocommerce/woocommerce-form.php CHANGED
@@ -2,11 +2,11 @@
2
  <form id="plugin-fw-wc" method="post">
3
  <?php $this->add_fields() ?>
4
  <?php wp_nonce_field( 'yit_panel_wc_options_'.$this->settings['page'], 'yit_panel_wc_options_nonce' ); ?>
5
- <input style="float: left; margin-right: 10px;" class="button-primary" type="submit" value="<?php _e( 'Save Changes', 'yit' )?>"/>
6
  </form>
7
  <form id="plugin-fw-wc-reset" method="post">
8
- <?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yit' ) ?>
9
  <input type="hidden" name="yit-action" value="wc-options-reset" />
10
- <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset Defaults', 'yit' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yit' ) ?>');" />
11
  </form>
12
  </div>
2
  <form id="plugin-fw-wc" method="post">
3
  <?php $this->add_fields() ?>
4
  <?php wp_nonce_field( 'yit_panel_wc_options_'.$this->settings['page'], 'yit_panel_wc_options_nonce' ); ?>
5
+ <input style="float: left; margin-right: 10px;" class="button-primary" type="submit" value="<?php _e( 'Save Changes', 'yith-plugin-fw' )?>"/>
6
  </form>
7
  <form id="plugin-fw-wc-reset" method="post">
8
+ <?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ) ?>
9
  <input type="hidden" name="yit-action" value="wc-options-reset" />
10
+ <input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset Defaults', 'yith-plugin-fw' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');" />
11
  </form>
12
  </div>
plugin-fw/templates/panel/woocommerce/woocommerce-upload.php CHANGED
@@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
32
  <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text rm_upload" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
33
  <div class="option">
34
  <input type="text" name="<?php echo $id ?>" id="<?php echo $id ?>" value="<?php echo $value == '1' ? '' : esc_attr( $value ) ?>" class="upload_img_url" />
35
- <input type="button" value="<?php _e( 'Upload', 'yit' ) ?>" id="<?php echo $id ?>-button" class="upload_button button" />
36
  </div>
37
  <div class="clear"></div>
38
  <span class="description"><?php echo $desc ?></span>
32
  <div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text rm_upload" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
33
  <div class="option">
34
  <input type="text" name="<?php echo $id ?>" id="<?php echo $id ?>" value="<?php echo $value == '1' ? '' : esc_attr( $value ) ?>" class="upload_img_url" />
35
+ <input type="button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" id="<?php echo $id ?>-button" class="upload_button button" />
36
  </div>
37
  <div class="clear"></div>
38
  <span class="description"><?php echo $desc ?></span>
plugin-fw/yit-plugin.php CHANGED
@@ -44,3 +44,9 @@ include_once( 'licence/lib/yit-theme-licence.php');
44
  include_once( 'lib/yit-video.php');
45
  include_once( 'lib/yit-upgrade.php');
46
  include_once( 'lib/yit-pointers.php');
 
 
 
 
 
 
44
  include_once( 'lib/yit-video.php');
45
  include_once( 'lib/yit-upgrade.php');
46
  include_once( 'lib/yit-pointers.php');
47
+
48
+ // load from theme folder...
49
+ load_textdomain( 'yith-plugin-fw', get_template_directory() . '/core/plugin-fw/yith-plugin-fw-' . apply_filters( 'plugin_locale', get_locale(), 'yith-plugin-fw' ) . '.mo' )
50
+
51
+ // ...or from plugin folder
52
+ || load_textdomain( 'yith-plugin-fw', dirname(__FILE__) . '/languages/yith-plugin-fw-' . apply_filters( 'plugin_locale', get_locale(), 'yith-plugin-fw' ) . '.mo' );