WP Tab Widget - Version 1.2.2

Version Description

  • Changed text domain to make plugin compatible with WordPress Language Packs
Download this release

Release Info

Developer MyThemeShop
Plugin Icon 128x128 WP Tab Widget
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

Files changed (4) hide show
  1. languages/default.mo +0 -0
  2. languages/default.po +36 -32
  3. readme.txt +19 -4
  4. wp-tab-widget.php +38 -38
languages/default.mo CHANGED
Binary file
languages/default.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Tab Widget by MyThemeShop\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2014-03-24 01:53+0530\n"
6
- "PO-Revision-Date: 2014-03-24 01:53+0530\n"
7
  "Last-Translator: MyThemeShop <support-team@mythemeshop.com>\n"
8
  "Language-Team: MyThemeShop <support-team@mythemeshop.com>\n"
9
  "Language: en_US\n"
@@ -24,119 +24,123 @@ msgstr ""
24
  msgid "WP Tab Widget by MyThemeShop"
25
  msgstr ""
26
 
27
- #: ../wp-tab-widget.php:58
28
  msgid "Select Tabs"
29
  msgstr ""
30
 
31
- #: ../wp-tab-widget.php:63
32
  msgid "Popular Tab"
33
  msgstr ""
34
 
35
- #: ../wp-tab-widget.php:67
36
  msgid "Recent Tab"
37
  msgstr ""
38
 
39
- #: ../wp-tab-widget.php:71
40
  msgid "Comments Tab"
41
  msgstr ""
42
 
43
- #: ../wp-tab-widget.php:75
44
  msgid "Tags Tab"
45
  msgstr ""
46
 
47
- #: ../wp-tab-widget.php:80
48
  msgid "Tab Order"
49
  msgstr ""
50
 
51
- #: ../wp-tab-widget.php:86 ../wp-tab-widget.php:220
52
  msgid "Popular"
53
  msgstr ""
54
 
55
- #: ../wp-tab-widget.php:90 ../wp-tab-widget.php:221
56
  msgid "Recent"
57
  msgstr ""
58
 
59
- #: ../wp-tab-widget.php:94 ../wp-tab-widget.php:222 ../wp-tab-widget.php:345
60
- #: ../wp-tab-widget.php:398
61
  msgid "Comments"
62
  msgstr ""
63
 
64
- #: ../wp-tab-widget.php:98 ../wp-tab-widget.php:223
65
  msgid "Tags"
66
  msgstr ""
67
 
68
- #: ../wp-tab-widget.php:103
69
  msgid "Advanced Options"
70
  msgstr ""
71
 
72
- #: ../wp-tab-widget.php:109
73
  msgid "Allow pagination"
74
  msgstr ""
75
 
76
- #: ../wp-tab-widget.php:116
77
  msgid "Number of posts to show:"
78
  msgstr ""
79
 
80
- #: ../wp-tab-widget.php:125
 
 
 
 
81
  msgid "Show post thumbnails"
82
  msgstr ""
83
 
84
- #: ../wp-tab-widget.php:130
85
  msgid "Thumbnail size:"
86
  msgstr ""
87
 
88
- #: ../wp-tab-widget.php:132
89
  msgid "Small"
90
  msgstr ""
91
 
92
- #: ../wp-tab-widget.php:133
93
  msgid "Large"
94
  msgstr ""
95
 
96
- #: ../wp-tab-widget.php:140
97
  msgid "Show post date"
98
  msgstr ""
99
 
100
- #: ../wp-tab-widget.php:147
101
  msgid "Show number of comments"
102
  msgstr ""
103
 
104
- #: ../wp-tab-widget.php:154
105
  msgid "Show post excerpt"
106
  msgstr ""
107
 
108
- #: ../wp-tab-widget.php:160
109
  msgid "Excerpt length (words):"
110
  msgstr ""
111
 
112
- #: ../wp-tab-widget.php:173
113
  msgid "Number of comments on Comments Tab:"
114
  msgstr ""
115
 
116
- #: ../wp-tab-widget.php:182
117
  msgid "Show avatars on Comments Tab"
118
  msgstr ""
119
 
120
- #: ../wp-tab-widget.php:345 ../wp-tab-widget.php:398
121
  msgid "No Comment"
122
  msgstr ""
123
 
124
- #: ../wp-tab-widget.php:345 ../wp-tab-widget.php:398
125
  msgid "One Comment"
126
  msgstr ""
127
 
128
- #: ../wp-tab-widget.php:457
129
  msgid "No comments yet."
130
  msgstr ""
131
 
132
- #: ../wp-tab-widget.php:480
133
  msgid "No tags created."
134
  msgstr ""
135
 
136
- #: ../wp-tab-widget.php:493
137
  msgid "&laquo; Previous"
138
  msgstr ""
139
 
140
- #: ../wp-tab-widget.php:496
141
  msgid "Next &raquo;"
142
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: WP Tab Widget by MyThemeShop\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2015-09-22 01:58+0530\n"
6
+ "PO-Revision-Date: 2015-09-22 01:58+0530\n"
7
  "Last-Translator: MyThemeShop <support-team@mythemeshop.com>\n"
8
  "Language-Team: MyThemeShop <support-team@mythemeshop.com>\n"
9
  "Language: en_US\n"
24
  msgid "WP Tab Widget by MyThemeShop"
25
  msgstr ""
26
 
27
+ #: ../wp-tab-widget.php:74
28
  msgid "Select Tabs"
29
  msgstr ""
30
 
31
+ #: ../wp-tab-widget.php:79
32
  msgid "Popular Tab"
33
  msgstr ""
34
 
35
+ #: ../wp-tab-widget.php:83
36
  msgid "Recent Tab"
37
  msgstr ""
38
 
39
+ #: ../wp-tab-widget.php:87
40
  msgid "Comments Tab"
41
  msgstr ""
42
 
43
+ #: ../wp-tab-widget.php:91
44
  msgid "Tags Tab"
45
  msgstr ""
46
 
47
+ #: ../wp-tab-widget.php:96
48
  msgid "Tab Order"
49
  msgstr ""
50
 
51
+ #: ../wp-tab-widget.php:102 ../wp-tab-widget.php:244
52
  msgid "Popular"
53
  msgstr ""
54
 
55
+ #: ../wp-tab-widget.php:106 ../wp-tab-widget.php:245
56
  msgid "Recent"
57
  msgstr ""
58
 
59
+ #: ../wp-tab-widget.php:110 ../wp-tab-widget.php:246 ../wp-tab-widget.php:371
60
+ #: ../wp-tab-widget.php:424
61
  msgid "Comments"
62
  msgstr ""
63
 
64
+ #: ../wp-tab-widget.php:114 ../wp-tab-widget.php:247
65
  msgid "Tags"
66
  msgstr ""
67
 
68
+ #: ../wp-tab-widget.php:119
69
  msgid "Advanced Options"
70
  msgstr ""
71
 
72
+ #: ../wp-tab-widget.php:125
73
  msgid "Allow pagination"
74
  msgstr ""
75
 
76
+ #: ../wp-tab-widget.php:132
77
  msgid "Number of posts to show:"
78
  msgstr ""
79
 
80
+ #: ../wp-tab-widget.php:139
81
+ msgid "Title length (words):"
82
+ msgstr ""
83
+
84
+ #: ../wp-tab-widget.php:148
85
  msgid "Show post thumbnails"
86
  msgstr ""
87
 
88
+ #: ../wp-tab-widget.php:153
89
  msgid "Thumbnail size:"
90
  msgstr ""
91
 
92
+ #: ../wp-tab-widget.php:155
93
  msgid "Small"
94
  msgstr ""
95
 
96
+ #: ../wp-tab-widget.php:156
97
  msgid "Large"
98
  msgstr ""
99
 
100
+ #: ../wp-tab-widget.php:163
101
  msgid "Show post date"
102
  msgstr ""
103
 
104
+ #: ../wp-tab-widget.php:170
105
  msgid "Show number of comments"
106
  msgstr ""
107
 
108
+ #: ../wp-tab-widget.php:177
109
  msgid "Show post excerpt"
110
  msgstr ""
111
 
112
+ #: ../wp-tab-widget.php:183
113
  msgid "Excerpt length (words):"
114
  msgstr ""
115
 
116
+ #: ../wp-tab-widget.php:196
117
  msgid "Number of comments on Comments Tab:"
118
  msgstr ""
119
 
120
+ #: ../wp-tab-widget.php:205
121
  msgid "Show avatars on Comments Tab"
122
  msgstr ""
123
 
124
+ #: ../wp-tab-widget.php:371 ../wp-tab-widget.php:424
125
  msgid "No Comment"
126
  msgstr ""
127
 
128
+ #: ../wp-tab-widget.php:371 ../wp-tab-widget.php:424
129
  msgid "One Comment"
130
  msgstr ""
131
 
132
+ #: ../wp-tab-widget.php:481
133
  msgid "No comments yet."
134
  msgstr ""
135
 
136
+ #: ../wp-tab-widget.php:504
137
  msgid "No tags created."
138
  msgstr ""
139
 
140
+ #: ../wp-tab-widget.php:517
141
  msgid "&laquo; Previous"
142
  msgstr ""
143
 
144
+ #: ../wp-tab-widget.php:520
145
  msgid "Next &raquo;"
146
  msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mythemeshop
3
  Creator's website link: http://mythemeshop.com/
4
  Tags: tabs, tab widget, recent posts tab, tabs widget, ajax tabs, ajax widget.
5
  Requires at least: 3.0.1
6
- Tested up to: 4.3
7
- Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -40,8 +40,20 @@ See WP Tab Widget in action on our demo pages:
40
  * Position it anywhere where a widget is configured in your theme.
41
 
42
  = Support =
43
- We will do our best to provide support through the WordPress forums. However, all plugin support is provided in our forum. If you have not registered yet, you can do so here: <a href="https://mythemeshop.com/go/signup/index/c/free">https://mythemeshop.com/go/signup/index/c/free</a>. After searching the knowledge base and forum if you are still stuck, feel free to open a new thread, and a member of our support team will be happy to help. Cheers!<br>
44
- Support link: <a href="http://community.mythemeshop.com/forum/free/plugin-support">http://community.mythemeshop.com/forum/free/plugin-support</a>
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  = Help to make it better =
47
 
@@ -75,6 +87,9 @@ Please disable all plugins and check if shortcode plugin is working properly. Th
75
 
76
  == Changelog ==
77
 
 
 
 
78
  = 1.2.1 =
79
  * Switched to PHP 5 style constructor method for the widget class
80
 
3
  Creator's website link: http://mythemeshop.com/
4
  Tags: tabs, tab widget, recent posts tab, tabs widget, ajax tabs, ajax widget.
5
  Requires at least: 3.0.1
6
+ Tested up to: 4.4
7
+ Stable tag: 1.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
40
  * Position it anywhere where a widget is configured in your theme.
41
 
42
  = Support =
43
+
44
+ All support for this plugin is provided through our forums. If you have not registered yet, you can do so here for **FREE** <br>
45
+ <a href=“https://mythemeshop.com/#signup”>https://mythemeshop.com/#signup</a>
46
+
47
+ If after checking our Free WordPress video tutorials here:<br>
48
+ <a href=“https://mythemeshop.com/wordpress-101/”>https://mythemeshop.com/wordpress-101/</a><br>
49
+ &<br>
50
+ <a href=“https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/“>https://community.mythemeshop.com/tutorials/category/2-free-video-tutorials/</a><br>
51
+ <br>
52
+ you are still stuck, please feel free to open a new thread, and a member of our support team will be happy to help.<br>
53
+
54
+ Support link:<br>
55
+ <a href=“https://community.mythemeshop.com/forum/11-free-plugin-support/”>https://community.mythemeshop.com/forum/11-free-plugin-support/</a><br>
56
+ <br>
57
 
58
  = Help to make it better =
59
 
87
 
88
  == Changelog ==
89
 
90
+ = 1.2.2 =
91
+ * Changed text domain to make plugin compatible with WordPress Language Packs
92
+
93
  = 1.2.1 =
94
  * Switched to PHP 5 style constructor method for the widget class
95
 
wp-tab-widget.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Tab Widget
4
  Plugin URI: http://mythemeshop.com/plugins/wp-tab-widget/
5
  Description: WP Tab Widget is the AJAXified plugin which loads content by demand, and thus it makes the plugin incredibly lightweight.
6
  Author: MyThemeShop
7
- Version: 1.2.1
8
  Author URI: http://mythemeshop.com/
9
  */
10
 
@@ -22,13 +22,13 @@ class wpt_widget extends WP_Widget {
22
  add_action('wp_enqueue_scripts', array(&$this, 'wpt_register_scripts'));
23
  add_action('admin_enqueue_scripts', array(&$this, 'wpt_admin_scripts'));
24
 
25
- $widget_ops = array('classname' => 'widget_wpt', 'description' => __('Display popular posts, recent posts, comments, and tags in tabbed format.', 'mts_wpt'));
26
  $control_ops = array('width' => 300, 'height' => 350);
27
- parent::__construct('wpt_widget', __('WP Tab Widget by MyThemeShop', 'mts_wpt'), $widget_ops, $control_ops);
28
  }
29
 
30
  function wpt_init() {
31
- load_plugin_textdomain('mts_wpt', false, dirname(plugin_basename(__FILE__)) . '/languages/' );
32
 
33
  add_image_size( 'wp_review_small', 65, 65, true ); // small thumb
34
  add_image_size( 'wp_review_large', 320, 240, true ); // large thumb
@@ -71,72 +71,72 @@ class wpt_widget extends WP_Widget {
71
  ?>
72
  <div class="wpt_options_form">
73
 
74
- <h4><?php _e('Select Tabs', 'mts_wpt'); ?></h4>
75
 
76
  <div class="wpt_select_tabs">
77
  <label class="alignleft" style="display: block; width: 50%; margin-bottom: 5px" for="<?php echo $this->get_field_id("tabs"); ?>_popular">
78
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("tabs"); ?>_popular" name="<?php echo $this->get_field_name("tabs"); ?>[popular]" value="1" <?php if (isset($tabs['popular'])) { checked( 1, $tabs['popular'], true ); } ?> />
79
- <?php _e( 'Popular Tab', 'mts_wpt'); ?>
80
  </label>
81
  <label class="alignleft" style="display: block; width: 50%; margin-bottom: 5px;" for="<?php echo $this->get_field_id("tabs"); ?>_recent">
82
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("tabs"); ?>_recent" name="<?php echo $this->get_field_name("tabs"); ?>[recent]" value="1" <?php if (isset($tabs['recent'])) { checked( 1, $tabs['recent'], true ); } ?> />
83
- <?php _e( 'Recent Tab', 'mts_wpt'); ?>
84
  </label>
85
  <label class="alignleft" style="display: block; width: 50%;" for="<?php echo $this->get_field_id("tabs"); ?>_comments">
86
  <input type="checkbox" class="checkbox wpt_enable_comments" id="<?php echo $this->get_field_id("tabs"); ?>_comments" name="<?php echo $this->get_field_name("tabs"); ?>[comments]" value="1" <?php if (isset($tabs['comments'])) { checked( 1, $tabs['comments'], true ); } ?> />
87
- <?php _e( 'Comments Tab', 'mts_wpt'); ?>
88
  </label>
89
  <label class="alignleft" style="display: block; width: 50%;" for="<?php echo $this->get_field_id("tabs"); ?>_tags">
90
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("tabs"); ?>_tags" name="<?php echo $this->get_field_name("tabs"); ?>[tags]" value="1" <?php if (isset($tabs['tags'])) { checked( 1, $tabs['tags'], true ); } ?> />
91
- <?php _e( 'Tags Tab', 'mts_wpt'); ?>
92
  </label>
93
  </div>
94
  <div class="clear"></div>
95
 
96
- <h4 class="wpt_tab_order_header"><a href="#"><?php _e('Tab Order', 'mts_wpt'); ?></a></h4>
97
 
98
  <div class="wpt_tab_order" style="display: none;">
99
 
100
  <label class="alignleft" for="<?php echo $this->get_field_id('tab_order'); ?>_popular" style="width: 50%;">
101
  <input id="<?php echo $this->get_field_id('tab_order'); ?>_popular" name="<?php echo $this->get_field_name('tab_order'); ?>[popular]" type="number" min="1" step="1" value="<?php echo $tab_order['popular']; ?>" style="width: 48px;" />
102
- <?php _e('Popular', 'mts_wpt'); ?>
103
  </label>
104
  <label class="alignleft" for="<?php echo $this->get_field_id('tab_order'); ?>_recent" style="width: 50%;">
105
  <input id="<?php echo $this->get_field_id('tab_order'); ?>_recent" name="<?php echo $this->get_field_name('tab_order'); ?>[recent]" type="number" min="1" step="1" value="<?php echo $tab_order['recent']; ?>" style="width: 48px;" />
106
- <?php _e('Recent', 'mts_wpt'); ?>
107
  </label>
108
  <label class="alignleft" for="<?php echo $this->get_field_id('tab_order'); ?>_comments" style="width: 50%;">
109
  <input id="<?php echo $this->get_field_id('tab_order'); ?>_comments" name="<?php echo $this->get_field_name('tab_order'); ?>[comments]" type="number" min="1" step="1" value="<?php echo $tab_order['comments']; ?>" style="width: 48px;" />
110
- <?php _e('Comments', 'mts_wpt'); ?>
111
  </label>
112
  <label class="alignleft" for="<?php echo $this->get_field_id('tab_order'); ?>_tags" style="width: 50%;">
113
  <input id="<?php echo $this->get_field_id('tab_order'); ?>_tags" name="<?php echo $this->get_field_name('tab_order'); ?>[tags]" type="number" min="1" step="1" value="<?php echo $tab_order['tags']; ?>" style="width: 48px;" />
114
- <?php _e('Tags', 'mts_wpt'); ?>
115
  </label>
116
  </div>
117
  <div class="clear"></div>
118
 
119
- <h4 class="wpt_advanced_options_header"><a href="#"><?php _e('Advanced Options', 'mts_wpt'); ?></a></h4>
120
 
121
  <div class="wpt_advanced_options" style="display: none;">
122
  <p>
123
  <label for="<?php echo $this->get_field_id("allow_pagination"); ?>">
124
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("allow_pagination"); ?>" name="<?php echo $this->get_field_name("allow_pagination"); ?>" value="1" <?php if (isset($allow_pagination)) { checked( 1, $allow_pagination, true ); } ?> />
125
- <?php _e( 'Allow pagination', 'mts_wpt'); ?>
126
  </label>
127
  </p>
128
 
129
  <div class="wpt_post_options">
130
 
131
  <p>
132
- <label for="<?php echo $this->get_field_id('post_num'); ?>"><?php _e('Number of posts to show:', 'mts_wpt'); ?>
133
  <br />
134
  <input id="<?php echo $this->get_field_id('post_num'); ?>" name="<?php echo $this->get_field_name('post_num'); ?>" type="number" min="1" step="1" value="<?php echo $post_num; ?>" />
135
  </label>
136
  </p>
137
 
138
  <p>
139
- <label for="<?php echo $this->get_field_id('title_length'); ?>"><?php _e('Title length (words):', 'mts_wpt'); ?>
140
  <br />
141
  <input id="<?php echo $this->get_field_id('title_length'); ?>" name="<?php echo $this->get_field_name('title_length'); ?>" type="number" min="1" step="1" value="<?php echo $title_length; ?>" />
142
  </label>
@@ -145,42 +145,42 @@ class wpt_widget extends WP_Widget {
145
  <p>
146
  <label for="<?php echo $this->get_field_id("show_thumb"); ?>">
147
  <input type="checkbox" class="checkbox wpt_show_thumbnails" id="<?php echo $this->get_field_id("show_thumb"); ?>" name="<?php echo $this->get_field_name("show_thumb"); ?>" value="1" <?php if (isset($show_thumb)) { checked( 1, $show_thumb, true ); } ?> />
148
- <?php _e( 'Show post thumbnails', 'mts_wpt'); ?>
149
  </label>
150
  </p>
151
 
152
  <p class="wpt_thumbnail_size"<?php echo (empty($show_thumb) ? ' style="display: none;"' : ''); ?>>
153
- <label for="<?php echo $this->get_field_id('thumb_size'); ?>"><?php _e('Thumbnail size:', 'mts_wpt'); ?></label>
154
  <select id="<?php echo $this->get_field_id('thumb_size'); ?>" name="<?php echo $this->get_field_name('thumb_size'); ?>" style="margin-left: 12px;">
155
- <option value="small" <?php selected($thumb_size, 'small', true); ?>><?php _e('Small', 'mts_wpt'); ?></option>
156
- <option value="large" <?php selected($thumb_size, 'large', true); ?>><?php _e('Large', 'mts_wpt'); ?></option>
157
  </select>
158
  </p>
159
 
160
  <p>
161
  <label for="<?php echo $this->get_field_id("show_date"); ?>">
162
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("show_date"); ?>" name="<?php echo $this->get_field_name("show_date"); ?>" value="1" <?php if (isset($show_date)) { checked( 1, $show_date, true ); } ?> />
163
- <?php _e( 'Show post date', 'mts_wpt'); ?>
164
  </label>
165
  </p>
166
 
167
  <p>
168
  <label for="<?php echo $this->get_field_id("show_comment_num"); ?>">
169
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("show_comment_num"); ?>" name="<?php echo $this->get_field_name("show_comment_num"); ?>" value="1" <?php if (isset($show_comment_num)) { checked( 1, $show_comment_num, true ); } ?> />
170
- <?php _e( 'Show number of comments', 'mts_wpt'); ?>
171
  </label>
172
  </p>
173
 
174
  <p>
175
  <label for="<?php echo $this->get_field_id("show_excerpt"); ?>">
176
  <input type="checkbox" class="checkbox wpt_show_excerpt" id="<?php echo $this->get_field_id("show_excerpt"); ?>" name="<?php echo $this->get_field_name("show_excerpt"); ?>" value="1" <?php if (isset($show_excerpt)) { checked( 1, $show_excerpt, true ); } ?> />
177
- <?php _e( 'Show post excerpt', 'mts_wpt'); ?>
178
  </label>
179
  </p>
180
 
181
  <p class="wpt_excerpt_length"<?php echo (empty($show_excerpt) ? ' style="display: none;"' : ''); ?>>
182
  <label for="<?php echo $this->get_field_id('excerpt_length'); ?>">
183
- <?php _e('Excerpt length (words):', 'mts_wpt'); ?>
184
  <br />
185
  <input type="number" min="1" step="1" id="<?php echo $this->get_field_id('excerpt_length'); ?>" name="<?php echo $this->get_field_name('excerpt_length'); ?>" value="<?php echo $excerpt_length; ?>" />
186
  </label>
@@ -193,7 +193,7 @@ class wpt_widget extends WP_Widget {
193
 
194
  <p>
195
  <label for="<?php echo $this->get_field_id('comment_num'); ?>">
196
- <?php _e('Number of comments on Comments Tab:', 'mts_wpt'); ?>
197
  <br />
198
  <input type="number" min="1" step="1" id="<?php echo $this->get_field_id('comment_num'); ?>" name="<?php echo $this->get_field_name('comment_num'); ?>" value="<?php echo $comment_num; ?>" />
199
  </label>
@@ -202,7 +202,7 @@ class wpt_widget extends WP_Widget {
202
  <p>
203
  <label for="<?php echo $this->get_field_id("show_avatar"); ?>">
204
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("show_avatar"); ?>" name="<?php echo $this->get_field_name("show_avatar"); ?>" value="1" <?php if (isset($show_avatar)) { checked( 1, $show_avatar, true ); } ?> />
205
- <?php _e( 'Show avatars on Comments Tab', 'mts_wpt'); ?>
206
  </label>
207
  </p>
208
  </div><!-- .wpt_comment_options -->
@@ -241,10 +241,10 @@ class wpt_widget extends WP_Widget {
241
  $tabs_count = 4;
242
  }
243
 
244
- $available_tabs = array('popular' => __('Popular', 'mts_wpt'),
245
- 'recent' => __('Recent', 'mts_wpt'),
246
- 'comments' => __('Comments', 'mts_wpt'),
247
- 'tags' => __('Tags', 'mts_wpt'));
248
 
249
  array_multisort($tab_order, $available_tabs);
250
 
@@ -368,7 +368,7 @@ class wpt_widget extends WP_Widget {
368
  &bull;
369
  <?php endif; ?>
370
  <?php if ( $show_comment_num == 1 ) : ?>
371
- <?php echo comments_number(__('No Comment','mts_wpt'), __('One Comment','mts_wpt'), '<span class="comments-number">%</span> '.__('Comments','mts_wpt'));?>
372
  <?php endif; ?>
373
  </div> <!--end .entry-meta-->
374
  <?php endif; ?>
@@ -421,7 +421,7 @@ class wpt_widget extends WP_Widget {
421
  &bull;
422
  <?php endif; ?>
423
  <?php if ( $show_comment_num == 1 ) : ?>
424
- <?php echo comments_number(__('No Comment','mts_wpt'), __('One Comment','mts_wpt'), '<span class="comm">%</span> '.__('Comments','mts_wpt'));?>
425
  <?php endif; ?>
426
  </div> <!--end .entry-meta-->
427
  <?php endif; ?>
@@ -478,7 +478,7 @@ class wpt_widget extends WP_Widget {
478
  </li>
479
  <?php endforeach; else : ?>
480
  <li>
481
- <div class="no-comments"><?php _e('No comments yet.', 'mts_wpt'); ?></div>
482
  </li>
483
  <?php $no_comments = true;
484
  endif; ?>
@@ -501,7 +501,7 @@ class wpt_widget extends WP_Widget {
501
  <?php
502
  endforeach;
503
  } else {
504
- _e('No tags created.', 'mts_wpt');
505
  }
506
  ?>
507
  </ul>
@@ -514,10 +514,10 @@ class wpt_widget extends WP_Widget {
514
  ?>
515
  <div class="wpt-pagination">
516
  <?php if ($page > 1) : ?>
517
- <a href="#" class="previous"><span><?php _e('&laquo; Previous', 'mts_wpt'); ?></span></a>
518
  <?php endif; ?>
519
  <?php if ($page != $last_page) : ?>
520
- <a href="#" class="next"><span><?php _e('Next &raquo;', 'mts_wpt'); ?></span></a>
521
  <?php endif; ?>
522
  </div>
523
  <div class="clear"></div>
4
  Plugin URI: http://mythemeshop.com/plugins/wp-tab-widget/
5
  Description: WP Tab Widget is the AJAXified plugin which loads content by demand, and thus it makes the plugin incredibly lightweight.
6
  Author: MyThemeShop
7
+ Version: 1.2.2
8
  Author URI: http://mythemeshop.com/
9
  */
10
 
22
  add_action('wp_enqueue_scripts', array(&$this, 'wpt_register_scripts'));
23
  add_action('admin_enqueue_scripts', array(&$this, 'wpt_admin_scripts'));
24
 
25
+ $widget_ops = array('classname' => 'widget_wpt', 'description' => __('Display popular posts, recent posts, comments, and tags in tabbed format.', 'wp-tab-widget'));
26
  $control_ops = array('width' => 300, 'height' => 350);
27
+ parent::__construct('wpt_widget', __('WP Tab Widget by MyThemeShop', 'wp-tab-widget'), $widget_ops, $control_ops);
28
  }
29
 
30
  function wpt_init() {
31
+ load_plugin_textdomain('wp-tab-widget', false, dirname(plugin_basename(__FILE__)) . '/languages/' );
32
 
33
  add_image_size( 'wp_review_small', 65, 65, true ); // small thumb
34
  add_image_size( 'wp_review_large', 320, 240, true ); // large thumb
71
  ?>
72
  <div class="wpt_options_form">
73
 
74
+ <h4><?php _e('Select Tabs', 'wp-tab-widget'); ?></h4>
75
 
76
  <div class="wpt_select_tabs">
77
  <label class="alignleft" style="display: block; width: 50%; margin-bottom: 5px" for="<?php echo $this->get_field_id("tabs"); ?>_popular">
78
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("tabs"); ?>_popular" name="<?php echo $this->get_field_name("tabs"); ?>[popular]" value="1" <?php if (isset($tabs['popular'])) { checked( 1, $tabs['popular'], true ); } ?> />
79
+ <?php _e( 'Popular Tab', 'wp-tab-widget'); ?>
80
  </label>
81
  <label class="alignleft" style="display: block; width: 50%; margin-bottom: 5px;" for="<?php echo $this->get_field_id("tabs"); ?>_recent">
82
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("tabs"); ?>_recent" name="<?php echo $this->get_field_name("tabs"); ?>[recent]" value="1" <?php if (isset($tabs['recent'])) { checked( 1, $tabs['recent'], true ); } ?> />
83
+ <?php _e( 'Recent Tab', 'wp-tab-widget'); ?>
84
  </label>
85
  <label class="alignleft" style="display: block; width: 50%;" for="<?php echo $this->get_field_id("tabs"); ?>_comments">
86
  <input type="checkbox" class="checkbox wpt_enable_comments" id="<?php echo $this->get_field_id("tabs"); ?>_comments" name="<?php echo $this->get_field_name("tabs"); ?>[comments]" value="1" <?php if (isset($tabs['comments'])) { checked( 1, $tabs['comments'], true ); } ?> />
87
+ <?php _e( 'Comments Tab', 'wp-tab-widget'); ?>
88
  </label>
89
  <label class="alignleft" style="display: block; width: 50%;" for="<?php echo $this->get_field_id("tabs"); ?>_tags">
90
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("tabs"); ?>_tags" name="<?php echo $this->get_field_name("tabs"); ?>[tags]" value="1" <?php if (isset($tabs['tags'])) { checked( 1, $tabs['tags'], true ); } ?> />
91
+ <?php _e( 'Tags Tab', 'wp-tab-widget'); ?>
92
  </label>
93
  </div>
94
  <div class="clear"></div>
95
 
96
+ <h4 class="wpt_tab_order_header"><a href="#"><?php _e('Tab Order', 'wp-tab-widget'); ?></a></h4>
97
 
98
  <div class="wpt_tab_order" style="display: none;">
99
 
100
  <label class="alignleft" for="<?php echo $this->get_field_id('tab_order'); ?>_popular" style="width: 50%;">
101
  <input id="<?php echo $this->get_field_id('tab_order'); ?>_popular" name="<?php echo $this->get_field_name('tab_order'); ?>[popular]" type="number" min="1" step="1" value="<?php echo $tab_order['popular']; ?>" style="width: 48px;" />
102
+ <?php _e('Popular', 'wp-tab-widget'); ?>
103
  </label>
104
  <label class="alignleft" for="<?php echo $this->get_field_id('tab_order'); ?>_recent" style="width: 50%;">
105
  <input id="<?php echo $this->get_field_id('tab_order'); ?>_recent" name="<?php echo $this->get_field_name('tab_order'); ?>[recent]" type="number" min="1" step="1" value="<?php echo $tab_order['recent']; ?>" style="width: 48px;" />
106
+ <?php _e('Recent', 'wp-tab-widget'); ?>
107
  </label>
108
  <label class="alignleft" for="<?php echo $this->get_field_id('tab_order'); ?>_comments" style="width: 50%;">
109
  <input id="<?php echo $this->get_field_id('tab_order'); ?>_comments" name="<?php echo $this->get_field_name('tab_order'); ?>[comments]" type="number" min="1" step="1" value="<?php echo $tab_order['comments']; ?>" style="width: 48px;" />
110
+ <?php _e('Comments', 'wp-tab-widget'); ?>
111
  </label>
112
  <label class="alignleft" for="<?php echo $this->get_field_id('tab_order'); ?>_tags" style="width: 50%;">
113
  <input id="<?php echo $this->get_field_id('tab_order'); ?>_tags" name="<?php echo $this->get_field_name('tab_order'); ?>[tags]" type="number" min="1" step="1" value="<?php echo $tab_order['tags']; ?>" style="width: 48px;" />
114
+ <?php _e('Tags', 'wp-tab-widget'); ?>
115
  </label>
116
  </div>
117
  <div class="clear"></div>
118
 
119
+ <h4 class="wpt_advanced_options_header"><a href="#"><?php _e('Advanced Options', 'wp-tab-widget'); ?></a></h4>
120
 
121
  <div class="wpt_advanced_options" style="display: none;">
122
  <p>
123
  <label for="<?php echo $this->get_field_id("allow_pagination"); ?>">
124
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("allow_pagination"); ?>" name="<?php echo $this->get_field_name("allow_pagination"); ?>" value="1" <?php if (isset($allow_pagination)) { checked( 1, $allow_pagination, true ); } ?> />
125
+ <?php _e( 'Allow pagination', 'wp-tab-widget'); ?>
126
  </label>
127
  </p>
128
 
129
  <div class="wpt_post_options">
130
 
131
  <p>
132
+ <label for="<?php echo $this->get_field_id('post_num'); ?>"><?php _e('Number of posts to show:', 'wp-tab-widget'); ?>
133
  <br />
134
  <input id="<?php echo $this->get_field_id('post_num'); ?>" name="<?php echo $this->get_field_name('post_num'); ?>" type="number" min="1" step="1" value="<?php echo $post_num; ?>" />
135
  </label>
136
  </p>
137
 
138
  <p>
139
+ <label for="<?php echo $this->get_field_id('title_length'); ?>"><?php _e('Title length (words):', 'wp-tab-widget'); ?>
140
  <br />
141
  <input id="<?php echo $this->get_field_id('title_length'); ?>" name="<?php echo $this->get_field_name('title_length'); ?>" type="number" min="1" step="1" value="<?php echo $title_length; ?>" />
142
  </label>
145
  <p>
146
  <label for="<?php echo $this->get_field_id("show_thumb"); ?>">
147
  <input type="checkbox" class="checkbox wpt_show_thumbnails" id="<?php echo $this->get_field_id("show_thumb"); ?>" name="<?php echo $this->get_field_name("show_thumb"); ?>" value="1" <?php if (isset($show_thumb)) { checked( 1, $show_thumb, true ); } ?> />
148
+ <?php _e( 'Show post thumbnails', 'wp-tab-widget'); ?>
149
  </label>
150
  </p>
151
 
152
  <p class="wpt_thumbnail_size"<?php echo (empty($show_thumb) ? ' style="display: none;"' : ''); ?>>
153
+ <label for="<?php echo $this->get_field_id('thumb_size'); ?>"><?php _e('Thumbnail size:', 'wp-tab-widget'); ?></label>
154
  <select id="<?php echo $this->get_field_id('thumb_size'); ?>" name="<?php echo $this->get_field_name('thumb_size'); ?>" style="margin-left: 12px;">
155
+ <option value="small" <?php selected($thumb_size, 'small', true); ?>><?php _e('Small', 'wp-tab-widget'); ?></option>
156
+ <option value="large" <?php selected($thumb_size, 'large', true); ?>><?php _e('Large', 'wp-tab-widget'); ?></option>
157
  </select>
158
  </p>
159
 
160
  <p>
161
  <label for="<?php echo $this->get_field_id("show_date"); ?>">
162
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("show_date"); ?>" name="<?php echo $this->get_field_name("show_date"); ?>" value="1" <?php if (isset($show_date)) { checked( 1, $show_date, true ); } ?> />
163
+ <?php _e( 'Show post date', 'wp-tab-widget'); ?>
164
  </label>
165
  </p>
166
 
167
  <p>
168
  <label for="<?php echo $this->get_field_id("show_comment_num"); ?>">
169
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("show_comment_num"); ?>" name="<?php echo $this->get_field_name("show_comment_num"); ?>" value="1" <?php if (isset($show_comment_num)) { checked( 1, $show_comment_num, true ); } ?> />
170
+ <?php _e( 'Show number of comments', 'wp-tab-widget'); ?>
171
  </label>
172
  </p>
173
 
174
  <p>
175
  <label for="<?php echo $this->get_field_id("show_excerpt"); ?>">
176
  <input type="checkbox" class="checkbox wpt_show_excerpt" id="<?php echo $this->get_field_id("show_excerpt"); ?>" name="<?php echo $this->get_field_name("show_excerpt"); ?>" value="1" <?php if (isset($show_excerpt)) { checked( 1, $show_excerpt, true ); } ?> />
177
+ <?php _e( 'Show post excerpt', 'wp-tab-widget'); ?>
178
  </label>
179
  </p>
180
 
181
  <p class="wpt_excerpt_length"<?php echo (empty($show_excerpt) ? ' style="display: none;"' : ''); ?>>
182
  <label for="<?php echo $this->get_field_id('excerpt_length'); ?>">
183
+ <?php _e('Excerpt length (words):', 'wp-tab-widget'); ?>
184
  <br />
185
  <input type="number" min="1" step="1" id="<?php echo $this->get_field_id('excerpt_length'); ?>" name="<?php echo $this->get_field_name('excerpt_length'); ?>" value="<?php echo $excerpt_length; ?>" />
186
  </label>
193
 
194
  <p>
195
  <label for="<?php echo $this->get_field_id('comment_num'); ?>">
196
+ <?php _e('Number of comments on Comments Tab:', 'wp-tab-widget'); ?>
197
  <br />
198
  <input type="number" min="1" step="1" id="<?php echo $this->get_field_id('comment_num'); ?>" name="<?php echo $this->get_field_name('comment_num'); ?>" value="<?php echo $comment_num; ?>" />
199
  </label>
202
  <p>
203
  <label for="<?php echo $this->get_field_id("show_avatar"); ?>">
204
  <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("show_avatar"); ?>" name="<?php echo $this->get_field_name("show_avatar"); ?>" value="1" <?php if (isset($show_avatar)) { checked( 1, $show_avatar, true ); } ?> />
205
+ <?php _e( 'Show avatars on Comments Tab', 'wp-tab-widget'); ?>
206
  </label>
207
  </p>
208
  </div><!-- .wpt_comment_options -->
241
  $tabs_count = 4;
242
  }
243
 
244
+ $available_tabs = array('popular' => __('Popular', 'wp-tab-widget'),
245
+ 'recent' => __('Recent', 'wp-tab-widget'),
246
+ 'comments' => __('Comments', 'wp-tab-widget'),
247
+ 'tags' => __('Tags', 'wp-tab-widget'));
248
 
249
  array_multisort($tab_order, $available_tabs);
250
 
368
  &bull;
369
  <?php endif; ?>
370
  <?php if ( $show_comment_num == 1 ) : ?>
371
+ <?php echo comments_number(__('No Comment','wp-tab-widget'), __('One Comment','wp-tab-widget'), '<span class="comments-number">%</span> '.__('Comments','wp-tab-widget'));?>
372
  <?php endif; ?>
373
  </div> <!--end .entry-meta-->
374
  <?php endif; ?>
421
  &bull;
422
  <?php endif; ?>
423
  <?php if ( $show_comment_num == 1 ) : ?>
424
+ <?php echo comments_number(__('No Comment','wp-tab-widget'), __('One Comment','wp-tab-widget'), '<span class="comm">%</span> '.__('Comments','wp-tab-widget'));?>
425
  <?php endif; ?>
426
  </div> <!--end .entry-meta-->
427
  <?php endif; ?>
478
  </li>
479
  <?php endforeach; else : ?>
480
  <li>
481
+ <div class="no-comments"><?php _e('No comments yet.', 'wp-tab-widget'); ?></div>
482
  </li>
483
  <?php $no_comments = true;
484
  endif; ?>
501
  <?php
502
  endforeach;
503
  } else {
504
+ _e('No tags created.', 'wp-tab-widget');
505
  }
506
  ?>
507
  </ul>
514
  ?>
515
  <div class="wpt-pagination">
516
  <?php if ($page > 1) : ?>
517
+ <a href="#" class="previous"><span><?php _e('&laquo; Previous', 'wp-tab-widget'); ?></span></a>
518
  <?php endif; ?>
519
  <?php if ($page != $last_page) : ?>
520
+ <a href="#" class="next"><span><?php _e('Next &raquo;', 'wp-tab-widget'); ?></span></a>
521
  <?php endif; ?>
522
  </div>
523
  <div class="clear"></div>