Custom Product Tabs for WooCommerce - Version 1.4.3

Version Description

  • February 18th, 2016 =
  • Wrapped missing 'Custom Tab Title' in localization/translation functions. (Plugin is now 100% translatable)
  • Removed i18n class files, and old .po/.mo files (less bloat)
Download this release

Release Info

Developer eherman24
Plugin Icon 128x128 Custom Product Tabs for WooCommerce
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

i18n/languages/yikes-inc-woocommerce-repeatable-custom-product-tabs.mo DELETED
Binary file
i18n/languages/yikes-inc-woocommerce-repeatable-custom-product-tabs.pot DELETED
@@ -1,87 +0,0 @@
1
- # Copyright (C) 2014 YIKES Inc.
2
- # This file is distributed under the GNU General Public License v3.0.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Yikes Inc. WooCommerce Custom Repeatable Product Tabs "
6
- "Lite 1.0\n"
7
- "Report-Msgid-Bugs-To: https://www.yikesinc.comPOT-Creation-Date: 2014-09-05 "
8
- "04:31:12+00:00\n"
9
- "POT-Creation-Date: 2015-07-21 01:19-0500\n"
10
- "PO-Revision-Date: 2015-07-21 01:19-0500\n"
11
- "Last-Translator: Evan Herman <evan.m.herman@gmail.com>\n"
12
- "Language-Team: YIKES Inc. <tech@yikesinc.com>\n"
13
- "Language: en\n"
14
- "MIME-Version: 1.0\n"
15
- "Content-Type: text/plain; charset=UTF-8\n"
16
- "Content-Transfer-Encoding: 8bit\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
- "X-Generator: Poedit 1.6.10\n"
19
- "X-Poedit-Basepath: .\n"
20
- "X-Poedit-KeywordsList: __;_e\n"
21
- "X-Poedit-SearchPath-0: D:\\xampp\\htdocs\\wp-svg-2\\wp-content\\plugins"
22
- "\\yikes-inc-easy-custom-woocommerce-product-tabs\n"
23
-
24
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:52
25
- msgid ""
26
- "YIKES Custom Product Tabs for WooCommerce could not be activated because "
27
- "WooCommerce is not installed and active."
28
- msgstr ""
29
-
30
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:53
31
- msgid "Please install and activate "
32
- msgstr ""
33
-
34
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:53
35
- msgid " before activating the plugin."
36
- msgstr ""
37
-
38
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:201
39
- msgid "Custom Tabs"
40
- msgstr ""
41
-
42
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:233
43
- msgid "How To"
44
- msgstr ""
45
-
46
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:233
47
- msgid ""
48
- "To generate tabs, click 'Add Another Tab' at the bottom of this container."
49
- msgstr ""
50
-
51
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:233
52
- msgid "To delete tabs, click 'Remove Tab' to the right of the title field."
53
- msgstr ""
54
-
55
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:233
56
- msgid ""
57
- "Note : Re-save the product to initialize the WordPress content editor on "
58
- "newly created tab content."
59
- msgstr ""
60
-
61
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:234
62
- msgid "Help Me!"
63
- msgstr ""
64
-
65
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:241
66
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:273
67
- msgid "Remove Tab"
68
- msgstr ""
69
-
70
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:255
71
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:276
72
- msgid "Tab Title"
73
- msgstr ""
74
-
75
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:258
76
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:277
77
- msgid "Content"
78
- msgstr ""
79
-
80
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:259
81
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:277
82
- msgid "HTML and text to display."
83
- msgstr ""
84
-
85
- #: D:\xampp\htdocs\wp-svg-2\wp-content\plugins\yikes-inc-easy-custom-woocommerce-product-tabs/yikes-inc-easy-custom-woocommerce-product-tabs.php:289
86
- msgid "Add Another Tab"
87
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Requires at least: 3.8
6
  Tested up to: 4.4.2
7
  Requires WooCommerce at least: 2.0
8
  Tested WooCommerce up to: 2.5.2
9
- Stable tag: 1.4.2
10
  License: GPLv2 or later
11
 
12
  This plugin extends WooCommerce to allow site admins to add custom tabs to products.
@@ -55,6 +55,10 @@ Yes! Since v1.4 we've added the necessary hooks and filters to ensure the custom
55
 
56
  == Changelog ==
57
 
 
 
 
 
58
  = 1.4.2 - February 17th, 2016 =
59
  * Updated the internationalization strings ( `yikes-inc-woocommerce-custom-product-tabs` to `yikes-inc-easy-custom-woocommerce-product-tabs` )
60
 
@@ -80,5 +84,6 @@ Yes! Since v1.4 we've added the necessary hooks and filters to ensure the custom
80
  * Initial Release
81
 
82
  == Upgrade Notice ==
83
- = 1.4.2 - February 17th, 2016 =
84
- * Updated the internationalization strings ( `yikes-inc-woocommerce-custom-product-tabs` to `yikes-inc-easy-custom-woocommerce-product-tabs` )
 
6
  Tested up to: 4.4.2
7
  Requires WooCommerce at least: 2.0
8
  Tested WooCommerce up to: 2.5.2
9
+ Stable tag: 1.4.3
10
  License: GPLv2 or later
11
 
12
  This plugin extends WooCommerce to allow site admins to add custom tabs to products.
55
 
56
  == Changelog ==
57
 
58
+ = 1.4.3 - February 18th, 2016 =
59
+ * Wrapped missing 'Custom Tab Title' in localization/translation functions. (Plugin is now 100% translatable)
60
+ * Removed i18n class files, and old .po/.mo files (less bloat)
61
+
62
  = 1.4.2 - February 17th, 2016 =
63
  * Updated the internationalization strings ( `yikes-inc-woocommerce-custom-product-tabs` to `yikes-inc-easy-custom-woocommerce-product-tabs` )
64
 
84
  * Initial Release
85
 
86
  == Upgrade Notice ==
87
+ = 1.4.3 - February 18th, 2016 =
88
+ * Wrapped missing 'Custom Tab Title' in localization/translation functions. (Plugin is now 100% translatable)
89
+ * Removed i18n class files, and old .po/.mo files (less bloat)
yikes-inc-easy-custom-woocommerce-product-tabs.php CHANGED
@@ -5,10 +5,9 @@
5
  * Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
6
  * Author: YIKES Inc
7
  * Author URI: http://www.yikesinc.com
8
- * Version: 1.4.2
9
  * Tested up to: 4.3
10
  * Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
11
- * Domain Path: /i18n/languages/
12
  *
13
  * Copyright: (c) 2014-2015 YIKES Inc.
14
  *
@@ -63,7 +62,7 @@
63
  private $tab_data = false;
64
 
65
  /** plugin version number */
66
- const VERSION = "1.3";
67
 
68
  /** plugin text domain */
69
  const TEXT_DOMAIN = 'yikes-inc-easy-custom-woocommerce-product-tabs';
@@ -78,8 +77,6 @@
78
  public function __construct() {
79
  // Installation
80
  if ( is_admin() && ! defined( 'DOING_AJAX' ) ) $this->install();
81
-
82
- add_action( 'init', array( $this, 'load_translation' ) );
83
  add_action( 'woocommerce_init', array( $this, 'init' ) );
84
  global $typenow;
85
  add_action( 'init', array( $this, 'load_custom_export_filters' ) );
@@ -128,17 +125,6 @@
128
  return $new_order_data;
129
  }
130
 
131
- /**
132
- * Init WooCommerce PDF Product Vouchers when WordPress initializes
133
- *
134
- * @since 1.0.0
135
- */
136
- public function load_translation() {
137
- // localization
138
- load_plugin_textdomain( 'yikes-inc-easy-custom-woocommerce-product-tabs', false, dirname( plugin_basename( __FILE__ ) ) . '/i18n/languages' );
139
- }
140
-
141
-
142
  /**
143
  * Init WooCommerce Product Tabs Lite extension once we know WooCommerce is active
144
  */
@@ -274,7 +260,7 @@
274
 
275
  echo $this->review_us_container();
276
 
277
- echo '<div class="yikes-woo-tabs-hidden-how-to-info"><h3 style="padding-top:0;padding-bottom:0;">' . __( "How To" , 'yikes-inc-easy-custom-woocommerce-product-tabs' ) . ':</h3><p style="margin:0;padding-left:13px;">' . __( "To generate tabs, click 'Add Another Tab' at the bottom of this container." , 'yikes-inc-easy-custom-woocommerce-product-tabs' ) . ' ' . __( "To delete tabs, click 'Remove Tab' to the right of the title field." , 'yikes-inc-easy-custom-woocommerce-product-tabs' ) . '</p> <p style="padding:0 0 0 13px;margin-top:0;margin-bottom:0;"><em>' . __( "Note : Re-save the product to initialize the WordPress content editor on newly created tab content." , 'yikes-inc-easy-custom-woocommerce-product-tabs' ) . '</em></p></div>';
278
  echo '<div class="dashicons dashicons-editor-help yikes-tabs-how-to-toggle" title="' . __( "Help Me!" , 'yikes-inc-easy-custom-woocommerce-product-tabs' ) . '"></div>';
279
 
280
  // set up the initial display, by looping
@@ -296,7 +282,7 @@
296
  </div>
297
  </section>
298
  <?php }
299
- woocommerce_wp_text_input( array( 'id' => '_yikes_wc_custom_repeatable_product_tabs_tab_title_' . $i , 'label' => __( 'Tab Title', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), 'description' => '', 'value' => $tab['title'] , 'placeholder' => 'Custom Tab Title' , 'class' => 'yikes_woo_tabs_title_field') );
300
  $this->woocommerce_wp_wysiwyg_input( array(
301
  'id' => '_yikes_wc_custom_repeatable_product_tabs_tab_content_' . $i ,
302
  'label' => __( 'Content', 'yikes-inc-easy-custom-woocommerce-product-tabs' ),
@@ -317,7 +303,7 @@
317
  <a href="#" onclick="return false;" class="button-secondary remove_this_tab" style="float:right;margin-right:4.25em;"><span class="dashicons dashicons-no-alt" style="line-height:1.3;"></span><?php echo __( 'Remove Tab' , 'yikes-inc-easy-custom-woocommerce-product-tabs' ); ?></a>
318
  <?php
319
  // lets add an empty row, to use for duplicating purposes
320
- woocommerce_wp_text_input( array( 'id' => 'hidden_duplicator_row_title' , 'label' => __( 'Tab Title', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), 'description' => '', 'placeholder' => 'Custom Tab Title' , 'class' => 'yikes_woo_tabs_title_field' ) );
321
  $this->woocommerce_wp_textarea_input( array( 'id' => 'hidden_duplicator_row_content' , 'label' => __( 'Content', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), 'placeholder' => __( 'HTML and text to display.', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), 'style' => 'width:70%;height:10.5em;' , 'class' => 'yikes_woo_tabs_content_field' ) );
322
  ?>
323
  <section class="button-holder" alt="<?php echo $i; ?>">
5
  * Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
6
  * Author: YIKES Inc
7
  * Author URI: http://www.yikesinc.com
8
+ * Version: 1.4.3
9
  * Tested up to: 4.3
10
  * Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
 
11
  *
12
  * Copyright: (c) 2014-2015 YIKES Inc.
13
  *
62
  private $tab_data = false;
63
 
64
  /** plugin version number */
65
+ const VERSION = "1.4.3";
66
 
67
  /** plugin text domain */
68
  const TEXT_DOMAIN = 'yikes-inc-easy-custom-woocommerce-product-tabs';
77
  public function __construct() {
78
  // Installation
79
  if ( is_admin() && ! defined( 'DOING_AJAX' ) ) $this->install();
 
 
80
  add_action( 'woocommerce_init', array( $this, 'init' ) );
81
  global $typenow;
82
  add_action( 'init', array( $this, 'load_custom_export_filters' ) );
125
  return $new_order_data;
126
  }
127
 
 
 
 
 
 
 
 
 
 
 
 
128
  /**
129
  * Init WooCommerce Product Tabs Lite extension once we know WooCommerce is active
130
  */
260
 
261
  echo $this->review_us_container();
262
 
263
+ echo '<div class="yikes-woo-tabs-hidden-how-to-info"><h3 style="padding:0 13px;margin-top:0;">' . __( "How To" , 'yikes-inc-easy-custom-woocommerce-product-tabs' ) . ':</h3><p style="margin:0;padding-left:13px;">' . __( "To generate tabs, click 'Add Another Tab' at the bottom of this container." , 'yikes-inc-easy-custom-woocommerce-product-tabs' ) . ' ' . __( "To delete tabs, click 'Remove Tab' to the right of the title field." , 'yikes-inc-easy-custom-woocommerce-product-tabs' ) . '</p> <p style="padding:0 0 0 13px;margin-top:0;margin-bottom:0;"><em>' . __( "Note : Re-save the product to initialize the WordPress content editor on newly created tab content." , 'yikes-inc-easy-custom-woocommerce-product-tabs' ) . '</em></p></div>';
264
  echo '<div class="dashicons dashicons-editor-help yikes-tabs-how-to-toggle" title="' . __( "Help Me!" , 'yikes-inc-easy-custom-woocommerce-product-tabs' ) . '"></div>';
265
 
266
  // set up the initial display, by looping
282
  </div>
283
  </section>
284
  <?php }
285
+ woocommerce_wp_text_input( array( 'id' => '_yikes_wc_custom_repeatable_product_tabs_tab_title_' . $i , 'label' => __( 'Tab Title', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), 'description' => '', 'value' => $tab['title'] , 'placeholder' => __( 'Custom Tab Title' , 'yikes-inc-easy-custom-woocommerce-product-tabs' ), 'class' => 'yikes_woo_tabs_title_field') );
286
  $this->woocommerce_wp_wysiwyg_input( array(
287
  'id' => '_yikes_wc_custom_repeatable_product_tabs_tab_content_' . $i ,
288
  'label' => __( 'Content', 'yikes-inc-easy-custom-woocommerce-product-tabs' ),
303
  <a href="#" onclick="return false;" class="button-secondary remove_this_tab" style="float:right;margin-right:4.25em;"><span class="dashicons dashicons-no-alt" style="line-height:1.3;"></span><?php echo __( 'Remove Tab' , 'yikes-inc-easy-custom-woocommerce-product-tabs' ); ?></a>
304
  <?php
305
  // lets add an empty row, to use for duplicating purposes
306
+ woocommerce_wp_text_input( array( 'id' => 'hidden_duplicator_row_title' , 'label' => __( 'Tab Title', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), 'description' => '', 'placeholder' => __( 'Custom Tab Title' , 'yikes-inc-easy-custom-woocommerce-product-tabs' ), 'class' => 'yikes_woo_tabs_title_field' ) );
307
  $this->woocommerce_wp_textarea_input( array( 'id' => 'hidden_duplicator_row_content' , 'label' => __( 'Content', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), 'placeholder' => __( 'HTML and text to display.', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), 'style' => 'width:70%;height:10.5em;' , 'class' => 'yikes_woo_tabs_content_field' ) );
308
  ?>
309
  <section class="button-holder" alt="<?php echo $i; ?>">