YITH WooCommerce Catalog Mode - Version 1.0.5

Version Description

  • Fixed: Product variations bug
  • Fixed: Custom button bug
Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Catalog Mode
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

Files changed (39) hide show
  1. class.yith-woocommerce-catalog-mode.php +38 -10
  2. init.php +2 -2
  3. plugin-fw/assets/css/metaboxes.css +12 -1
  4. plugin-fw/assets/js/metabox.js +1 -1
  5. plugin-fw/assets/js/metabox.min.js +4 -4
  6. plugin-fw/languages/yith-plugin-fw.pot +920 -0
  7. plugin-fw/lib/yit-cpt-unlimited.php +61 -61
  8. plugin-fw/lib/yit-metabox.php +4 -4
  9. plugin-fw/lib/yit-plugin-panel-wc.php +1 -1
  10. plugin-fw/lib/yit-plugin-panel.php +20 -20
  11. plugin-fw/lib/yit-plugin-subpanel.php +4 -4
  12. plugin-fw/lib/yit-pointers.php +8 -8
  13. plugin-fw/lib/yit-upgrade.php +12 -12
  14. plugin-fw/licence/lib/yit-licence.php +11 -11
  15. plugin-fw/licence/lib/yit-plugin-licence.php +2 -2
  16. plugin-fw/licence/lib/yit-theme-licence.php +6 -6
  17. plugin-fw/licence/templates/panel/activation/activation-panel.php +27 -27
  18. plugin-fw/templates/metaboxes/types/ajax-products.php +1 -1
  19. plugin-fw/templates/metaboxes/types/categories.php +2 -2
  20. plugin-fw/templates/metaboxes/types/contactform.php +72 -72
  21. plugin-fw/templates/metaboxes/types/customtabs.php +11 -11
  22. plugin-fw/templates/metaboxes/types/icon-list.php +4 -4
  23. plugin-fw/templates/metaboxes/types/image-gallery.php +2 -2
  24. plugin-fw/templates/metaboxes/types/images.php +4 -4
  25. plugin-fw/templates/metaboxes/types/preview.php +19 -0
  26. plugin-fw/templates/metaboxes/types/responsivesliders.php +1 -1
  27. plugin-fw/templates/metaboxes/types/select-icon.php +2 -2
  28. plugin-fw/templates/metaboxes/types/sidebar-layout.php +4 -4
  29. plugin-fw/templates/metaboxes/types/sidebars.php +8 -8
  30. plugin-fw/templates/metaboxes/types/typography.php +13 -13
  31. plugin-fw/templates/metaboxes/types/upload.php +1 -1
  32. plugin-fw/templates/panel/infobox.php +2 -2
  33. plugin-fw/templates/panel/types/upload.php +1 -1
  34. plugin-fw/templates/panel/videobox.php +7 -7
  35. plugin-fw/templates/panel/woocommerce/woocommerce-form.php +3 -3
  36. plugin-fw/templates/panel/woocommerce/woocommerce-upload.php +1 -1
  37. plugin-fw/yit-plugin.php +6 -0
  38. plugin-options/settings-options.php +10 -0
  39. readme.txt +6 -1
class.yith-woocommerce-catalog-mode.php CHANGED
@@ -71,8 +71,6 @@ class YITH_WC_Catalog_Mode {
71
 
72
  if ( $this->check_user_admin_enable() ){
73
 
74
-
75
-
76
  if ( ! is_admin() ) {
77
  if( get_option( 'ywctm_hide_cart_header' ) == 'yes' ){
78
 
@@ -89,7 +87,6 @@ class YITH_WC_Catalog_Mode {
89
 
90
  add_filter( 'woocommerce_add_to_cart_validation', array( $this, 'avoid_add_to_cart' ), 10, 2 );
91
 
92
-
93
  }
94
 
95
  }
@@ -133,11 +130,30 @@ class YITH_WC_Catalog_Mode {
133
  */
134
  public function hide_add_to_cart_single() {
135
 
 
 
136
  $priority = has_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart' );
137
 
138
- if( $this->check_add_to_cart_single( $priority ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
 
140
- remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', $priority );
 
 
141
 
142
  }
143
 
@@ -201,9 +217,10 @@ class YITH_WC_Catalog_Mode {
201
  * @since 1.0.2
202
  * @author Alberto Ruggiero
203
  * @param $priority
 
204
  * @return bool
205
  */
206
- public function check_add_to_cart_single( $priority = true ) {
207
 
208
  $hide = false;
209
 
@@ -217,6 +234,8 @@ class YITH_WC_Catalog_Mode {
217
 
218
  global $post;
219
 
 
 
220
  if ( get_option( 'ywctm_hide_add_to_cart_single' ) == 'yes' ) {
221
 
222
  $ywctm_hide_price_users = ( get_option( 'ywctm_hide_price_users' ) != 'unregistered' ) ? true : false;
@@ -224,7 +243,7 @@ class YITH_WC_Catalog_Mode {
224
 
225
  if ( ! ( ! $ywctm_hide_price_users && $user_logged ) ) {
226
 
227
- $exclude_catalog = get_post_meta( $post->ID, '_ywctm_exclude_catalog_mode', true );
228
  $enable_exclusion = get_option( 'ywctm_exclude_hide_add_to_cart' );
229
 
230
  if ( $priority ) {
@@ -256,7 +275,7 @@ class YITH_WC_Catalog_Mode {
256
 
257
  }
258
 
259
- if ( $this->check_price_hidden( $post->ID ) ) {
260
 
261
  $hide = true;
262
 
@@ -393,17 +412,25 @@ class YITH_WC_Catalog_Mode {
393
 
394
  }
395
 
 
 
 
 
 
 
 
 
396
  }
397
 
398
  if ( $remove ){
399
 
400
  remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
401
- add_filter( 'woocommerce_loop_add_to_cart_link', '__return_empty_string', 10, 2);
402
 
403
  } else {
404
 
405
  add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
406
- remove_filter( 'woocommerce_loop_add_to_cart_link', '__return_empty_string', 10);
407
 
408
  }
409
 
@@ -420,6 +447,7 @@ class YITH_WC_Catalog_Mode {
420
  if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
421
  wp_enqueue_style( 'ywctm-style', YWCTM_ASSETS_URL . '/css/yith-catalog-mode.css' );
422
  }
 
423
  }
424
 
425
  /**
71
 
72
  if ( $this->check_user_admin_enable() ){
73
 
 
 
74
  if ( ! is_admin() ) {
75
  if( get_option( 'ywctm_hide_cart_header' ) == 'yes' ){
76
 
87
 
88
  add_filter( 'woocommerce_add_to_cart_validation', array( $this, 'avoid_add_to_cart' ), 10, 2 );
89
 
 
90
  }
91
 
92
  }
130
  */
131
  public function hide_add_to_cart_single() {
132
 
133
+ global $product;
134
+
135
  $priority = has_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart' );
136
 
137
+ if ( $this->check_add_to_cart_single( $priority ) ) {
138
+
139
+ $hide_variations = get_option( 'ywctm_hide_variations' );
140
+
141
+ if ( isset( $product ) && $product->product_type == 'variable' && ( $hide_variations == 'no' || $hide_variations == '' ) ) {
142
+
143
+ $inline_js = "
144
+ $( '.single_variation_wrap .variations_button' ).hide();
145
+ $( document).on( 'woocommerce_variation_has_changed', function() {
146
+ $( '.single_variation_wrap .variations_button' ).hide();
147
+ });
148
+ ";
149
+
150
+ wc_enqueue_js( $inline_js );
151
+
152
+ } else {
153
 
154
+ remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', $priority );
155
+
156
+ }
157
 
158
  }
159
 
217
  * @since 1.0.2
218
  * @author Alberto Ruggiero
219
  * @param $priority
220
+ * @param $product_id
221
  * @return bool
222
  */
223
+ public function check_add_to_cart_single( $priority = true , $product_id = false ) {
224
 
225
  $hide = false;
226
 
234
 
235
  global $post;
236
 
237
+ $post_id = ( $product_id ) ? $product_id : $post->ID;
238
+
239
  if ( get_option( 'ywctm_hide_add_to_cart_single' ) == 'yes' ) {
240
 
241
  $ywctm_hide_price_users = ( get_option( 'ywctm_hide_price_users' ) != 'unregistered' ) ? true : false;
243
 
244
  if ( ! ( ! $ywctm_hide_price_users && $user_logged ) ) {
245
 
246
+ $exclude_catalog = get_post_meta( $post_id, '_ywctm_exclude_catalog_mode', true );
247
  $enable_exclusion = get_option( 'ywctm_exclude_hide_add_to_cart' );
248
 
249
  if ( $priority ) {
275
 
276
  }
277
 
278
+ if ( $this->check_price_hidden( $post_id ) ) {
279
 
280
  $hide = true;
281
 
412
 
413
  }
414
 
415
+ $product = wc_get_product( $post );
416
+
417
+ if ( $product->product_type == 'variable' ) {
418
+
419
+ $remove = false;
420
+
421
+ }
422
+
423
  }
424
 
425
  if ( $remove ){
426
 
427
  remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
428
+ add_filter( 'woocommerce_loop_add_to_cart_link', '__return_empty_string', 10 );
429
 
430
  } else {
431
 
432
  add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
433
+ remove_filter( 'woocommerce_loop_add_to_cart_link', '__return_empty_string', 10 );
434
 
435
  }
436
 
447
  if ( get_option( 'ywctm_hide_cart_header' ) == 'yes' ) {
448
  wp_enqueue_style( 'ywctm-style', YWCTM_ASSETS_URL . '/css/yith-catalog-mode.css' );
449
  }
450
+
451
  }
452
 
453
  /**
init.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode/
5
  Description: YITH Woocommerce Catalog Mode allows you to disable shop functions.
6
  Author: Yithemes
7
  Text Domain: ywctm
8
- Version: 1.0.4
9
  Author URI: http://yithemes.com/
10
  */
11
 
@@ -34,7 +34,7 @@ function ywctm_install_free_admin_notice() {
34
  }
35
 
36
  if ( ! defined( 'YWCTM_VERSION' ) ) {
37
- define( 'YWCTM_VERSION', '1.0.4' );
38
  }
39
 
40
  if ( ! defined( 'YWCTM_FREE_INIT' ) ) {
5
  Description: YITH Woocommerce Catalog Mode allows you to disable shop functions.
6
  Author: Yithemes
7
  Text Domain: ywctm
8
+ Version: 1.0.5
9
  Author URI: http://yithemes.com/
10
  */
11
 
34
  }
35
 
36
  if ( ! defined( 'YWCTM_VERSION' ) ) {
37
+ define( 'YWCTM_VERSION', '1.0.5' );
38
  }
39
 
40
  if ( ! defined( 'YWCTM_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;
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;
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/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' => __( 'Choose whether to show title of the page or not.', 'yit' ),
34
  * 'type' => 'checkbox',
35
  * 'private' => false,
36
  * 'std' => '1'),
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'),
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,7 @@ 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
  /**
@@ -285,16 +285,16 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
285
  <h2><?php echo $this->get_tab_title() ?></h2>
286
  <?php if ( $this->is_show_form() ) : ?>
287
  <form method="post" action="options.php">
288
- <?php do_settings_sections( 'yit' ); ?>
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 ?>
@@ -344,10 +344,10 @@ if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
344
  return;
345
  }
346
  foreach ( $yit_options[$current_tab] as $section => $data ) {
347
- add_settings_section( "yit_settings_{$current_tab}_{$section}", $this->get_section_title( $section ), $this->get_section_description( $section ), 'yit' );
348
  foreach ( $data as $option ) {
349
  if ( isset( $option['id'] ) && isset( $option['type'] ) && isset( $option['name'] ) ) {
350
- add_settings_field( "yit_setting_" . $option['id'], $option['name'], array( $this, 'render_field' ), 'yit', "yit_settings_{$current_tab}_{$section}", array( 'option' => $option, 'label_for' => $this->get_id_field( $option['id'] ) ) );
351
  }
352
  }
353
  }
@@ -428,17 +428,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
+ 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', 62 );
96
  }
97
 
98
  /**
285
  <h2><?php echo $this->get_tab_title() ?></h2>
286
  <?php if ( $this->is_show_form() ) : ?>
287
  <form method="post" action="options.php">
288
+ <?php do_settings_sections( 'yith-plugin-fw' ); ?>
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', 'yith-plugin-fw' ) ?>" 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.', 'yith-plugin-fw' ) ?>
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', 'yith-plugin-fw' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');" />
298
  </form>
299
  <p>&nbsp;</p>
300
  <?php endif ?>
344
  return;
345
  }
346
  foreach ( $yit_options[$current_tab] as $section => $data ) {
347
+ add_settings_section( "yit_settings_{$current_tab}_{$section}", $this->get_section_title( $section ), $this->get_section_description( $section ), 'yith-plugin-fw' );
348
  foreach ( $data as $option ) {
349
  if ( isset( $option['id'] ) && isset( $option['type'] ) && isset( $option['name'] ) ) {
350
+ add_settings_field( "yit_setting_" . $option['id'], $option['name'], array( $this, 'render_field' ), 'yith-plugin-fw', "yit_settings_{$current_tab}_{$section}", array( 'option' => $option, 'label_for' => $this->get_id_field( $option['id'] ) ) );
351
  }
352
  }
353
  }
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.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
432
+ 'saved' => $this->get_message( '<strong>' . __( 'Settings saved', 'yith-plugin-fw' ) . '.</strong>', 'updated', false ),
433
+ 'reset' => $this->get_message( '<strong>' . __( 'Settings reset', 'yith-plugin-fw' ) . '.</strong>', 'updated', false ),
434
+ 'delete' => $this->get_message( '<strong>' . __( 'Element deleted correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
435
+ 'updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
436
+ 'settings-updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
437
+ 'imported' => $this->get_message( '<strong>' . __( 'Database imported correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
438
+ 'no-imported' => $this->get_message( '<strong>' . __( 'An error has occurred during import. Please try again.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
439
+ 'file-not-valid' => $this->get_message( '<strong>' . __( 'The added file is not valid.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
440
+ 'cant-import' => $this->get_message( '<strong>' . __( 'Sorry, import is disabled.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
441
+ 'ord' => $this->get_message( '<strong>' . __( 'Sorting successful.', 'yith-plugin-fw' ) . '</strong>', 'updated', false )
442
  );
443
 
444
  foreach ( $message as $key => $value ) {
plugin-fw/lib/yit-plugin-subpanel.php CHANGED
@@ -98,7 +98,7 @@ if ( ! class_exists( 'YIT_Plugin_SubPanel' ) ) {
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 +139,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 ?>
98
  $logo = $admin_logo;
99
  }
100
 
101
+ add_menu_page( 'yit_plugin_panel', __( 'YIT Plugins', 'yith-plugin-fw' ), '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
  <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', 'yith-plugin-fw' ) ?>" 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.', 'yith-plugin-fw' ) ?>
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', 'yith-plugin-fw' ) ?>" onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');" />
148
  </form>
149
  <p>&nbsp;</p>
150
  <?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/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' => __( '%field% field cannot be empty', 'yith-plugin-fw' ),
162
+ 'errors' => __( '%field_1% and %field_2% fields cannot be empty', 'yith-plugin-fw' ),
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
@@ -61,8 +61,8 @@ if ( ! class_exists( 'YIT_Plugin_Licence' ) ) {
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
  );
61
 
62
  $this->_settings = array(
63
  'parent_page' => 'yit_plugin_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
  );
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( 'Title Field', '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( 'Type field', '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( 'Title Field', '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( 'Type field', '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' );
plugin-options/settings-options.php CHANGED
@@ -50,6 +50,15 @@ $reverse_exclusion = ! defined( 'YWCTM_PREMIUM' ) ? '' : array (
50
  'desc' => __( 'Reverse Exclusion List (Restrict Catalog Mode to selected items only)', 'ywctm' ),
51
  'id' => 'ywctm_exclude_hide_add_to_cart_reverse',
52
  'default' => 'no',
 
 
 
 
 
 
 
 
 
53
  'checkboxgroup' => 'end'
54
  );
55
 
@@ -104,6 +113,7 @@ return array(
104
  ),
105
  'catalog_mode_settings_exclude_products' => $exclusion,
106
  'catalog_mode_settings_exclude_products_reverse' => $reverse_exclusion,
 
107
  'catalog_mode_settings_disable_cart_in_header' => array(
108
  'name' => __( '"Cart" and "Checkout" pages', 'ywctm' ),
109
  'type' => 'checkbox',
50
  'desc' => __( 'Reverse Exclusion List (Restrict Catalog Mode to selected items only)', 'ywctm' ),
51
  'id' => 'ywctm_exclude_hide_add_to_cart_reverse',
52
  'default' => 'no',
53
+ 'checkboxgroup' => ''
54
+ );
55
+
56
+ $product_variations = ! defined( 'YWCTM_PREMIUM' ) ? '' : array(
57
+ 'name' => __( 'Variable products', 'ywctm' ),
58
+ 'type' => 'checkbox',
59
+ 'desc' => __( 'Hide product variations', 'ywctm' ),
60
+ 'id' => 'ywctm_hide_variations',
61
+ 'default' => 'no',
62
  'checkboxgroup' => 'end'
63
  );
64
 
113
  ),
114
  'catalog_mode_settings_exclude_products' => $exclusion,
115
  'catalog_mode_settings_exclude_products_reverse' => $reverse_exclusion,
116
+ 'catalog_mode_settings_variable_products' => $product_variations,
117
  'catalog_mode_settings_disable_cart_in_header' => array(
118
  'name' => __( '"Cart" and "Checkout" pages', 'ywctm' ),
119
  'type' => 'checkbox',
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: woocommerce, products, themes, yit, yith, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
5
  Requires at least: 4.0
6
  Tested up to: 4.2.1
7
- Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -48,6 +48,11 @@ YITH WooCommerce Catalog Mode will add a new tab called "Catalog Mode" inside th
48
 
49
  == Changelog ==
50
 
 
 
 
 
 
51
  = 1.0.4 =
52
 
53
  * Fixed: Minor bugs
4
  Tags: woocommerce, products, themes, yit, yith, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
5
  Requires at least: 4.0
6
  Tested up to: 4.2.1
7
+ Stable tag: 1.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
48
 
49
  == Changelog ==
50
 
51
+ = 1.0.5 =
52
+
53
+ * Fixed: Product variations bug
54
+ * Fixed: Custom button bug
55
+
56
  = 1.0.4 =
57
 
58
  * Fixed: Minor bugs