WP Tab Widget - Version 1.2.9

Version Description

[June 29, 2018] = * Updated admin notices

Download this release

Release Info

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

Code changes from version 1.2.8 to 1.2.9

css/wp-tab-widget.css CHANGED
@@ -1,245 +1,245 @@
1
- /*
2
- Plugin Name: WP Tab Widget
3
- Plugin URI: http://mythemeshop.com/plugins/wp-tab-widget/
4
- Description: WP Tab Widget is the AJAXified plugin which loads content by demand, and thus it makes the plugin incredibly lightweight.
5
- Author: MyThemeShop
6
- Author URI: http://mythemeshop.com/
7
- */
8
-
9
- .wpt_widget_content {
10
- position: relative;
11
- border: 1px solid #E4E4E4;
12
- }
13
- .wpt_widget_content img {
14
- max-width: 100%;
15
- height: auto;
16
- }
17
- .wpt_widget_content a {
18
- color: #444;
19
- }
20
- .wpt_widget_content ul.wpt-tabs li {
21
- list-style: none;
22
- display: block;
23
- width: 50%;
24
- float: left;
25
- text-align: center;
26
- margin: 0;
27
- padding: 0 !important;
28
- }
29
- .wpt_widget_content ul.has-1-tabs li {
30
- width: 100%;
31
- float: none;
32
- margin: 0 auto;
33
- }
34
- .wpt_widget_content ul.has-2-tabs li {
35
-
36
- }
37
- .wpt_widget_content ul.has-3-tabs li {
38
- width: 33.33%;
39
- }
40
- .wpt_widget_content ul.has-4-tabs li {
41
- width: 50%;
42
- }
43
- .wpt_widget_content .has-4-tabs .tab_title.selected a {
44
- border-bottom: 1px solid #E4E4E4;
45
- }
46
- .wpt_widget_content .has-4-tabs .tab_title:nth-child(3) a {
47
- border-left: 0;
48
- }
49
- .wpt_widget_content .tab_title a {
50
- display: block;
51
- background: #f0f0f0;
52
- border-left: 1px solid #E4E4E4;
53
- border-bottom: 1px solid #E4E4E4;
54
- padding: 2px 0 4px;
55
- line-height: 2.4;
56
- text-decoration: none;
57
- position: relative;
58
- font-weight: bold;
59
- }
60
- .wpt_widget_content .tab_title:first-child a {
61
- margin-left: 0;
62
- border-left: 0;
63
- }
64
- .wpt_widget_content .tab_title.selected a {
65
- background: #fff;
66
- border-bottom: 1px solid #fff;
67
- }
68
- .wpt_widget_content .inside {
69
- background: #fff;
70
- padding-top: 10px;
71
- }
72
- .wpt_widget_content .tab-content li {
73
- list-style-type: none;
74
- float: left;
75
- width: 100%;
76
- -moz-box-sizing: border-box;
77
- box-sizing: border-box;
78
- margin: 0 0 11px 0;
79
- padding: 0px 15px 15px 15px;
80
- border-bottom: 1px solid #E4E4E4;
81
- text-align: left;
82
- color: #444;
83
- background: none;
84
- position: relative;
85
- }
86
- .wpt_widget_content .tab-content li:last-child {
87
- border: none;
88
- margin-bottom: 0;
89
- }
90
- .wpt_widget_content .tab-content li:first-child {
91
- padding-top: 5px;
92
- }
93
-
94
- .wpt_thumb_small {
95
- float: left;
96
- margin-right: 12px;
97
- padding-top: 4px;
98
- width: 65px;
99
- height: 65px;
100
- overflow: hidden;
101
- }
102
- .wpt_thumb_large {
103
- float: none;
104
- max-width: 100%;
105
- display: inline-block;
106
- margin-bottom: 4px;
107
- position: relative;
108
- }
109
- .wpt_widget_content .entry-title {
110
- font-weight: bold;
111
- margin: 0;
112
- padding: 0;
113
- }
114
- .wpt_widget_content .wpt-postmeta, .wpt_comment_content, .wpt_excerpt {
115
- color: #999;
116
- font-size: 13px;
117
- }
118
- .wpt_widget_content .wp-post-image {
119
- margin: 0 !important;
120
- }
121
-
122
- /* Comments */
123
- .wpt_avatar {
124
- margin-right: 10px;
125
- float: left;
126
- margin-top: 4px;
127
- }
128
- .wpt_comment_content p, .wpt_excerpt p {
129
- margin-bottom: 0;
130
- }
131
- .wpt_comment_meta {
132
- font-weight: bold;
133
- }
134
-
135
- /* Tags tab */
136
- .wpt_widget_content #tags-tab-content {
137
- padding-bottom: 10px;
138
- }
139
- .wpt_widget_content #tags-tab-content ul {
140
- margin: 0;
141
- overflow: hidden;
142
- padding: 0 10px;
143
- text-align: center;
144
- font-size: 0;
145
- line-height: 0;
146
- }
147
- .wpt_widget_content #tags-tab-content ul li {
148
- width: auto;
149
- color: #fff;
150
- margin-bottom: 0;
151
- list-style: none;
152
- display: inline-block;
153
- padding: 0;
154
- margin: 3px 3px 0 0;
155
- float: none;
156
- font-size: 13px;
157
- }
158
- .wpt_widget_content #tags-tab-content ul li a {
159
- padding: 12px 10px;
160
- background: #f0f0f0;
161
- white-space: nowrap;
162
- display: block;
163
- }
164
-
165
- /* Pagination */
166
- .wpt_widget_content .wpt-pagination {
167
- margin: 0;
168
- width: 100%;
169
- padding-top: 0;
170
- padding-bottom: 15px;
171
- float: left;
172
- }
173
- .wpt_widget_content .wpt-pagination a {
174
- margin: 0 15px;
175
- }
176
- .wpt-pagination a.next {
177
- float: right;
178
- }
179
-
180
- /* Loading... */
181
- .wpt-loading {
182
- min-height: 120px;
183
- }
184
- .wpt-loading:before {
185
- content: "";
186
- display: block;
187
- position: absolute;
188
- top: 0;
189
- right: 0;
190
- bottom: 0;
191
- left: 0;
192
- background-color: rgba(255,255,255,0.8);
193
- z-index: 11;
194
- }
195
- .clear {
196
- clear: both;
197
- }
198
-
199
- .wpt-loading:after {
200
- content: "";
201
- margin: 0 auto 3em auto;
202
- font-size: 10px;
203
- position: absolute;
204
- top: 45%;
205
- left: 45%;
206
- z-index: 12;
207
- text-indent: -9999em;
208
- border-top: 0.4em solid rgba(0, 0, 0, 0.2);
209
- border-right: 0.4em solid rgba(0, 0, 0, 0.2);
210
- border-bottom: 0.4em solid rgba(0, 0, 0, 0.2);
211
- border-left: 0.4em solid #000;
212
- -webkit-animation: load8 0.5s infinite linear;
213
- animation: load8 0.5s infinite linear;
214
- border-radius: 50%;
215
- width: 2em;
216
- height: 2em;
217
- }
218
-
219
- @-webkit-keyframes load8 {
220
- 0% {
221
- -webkit-transform: rotate(0deg);
222
- transform: rotate(0deg);
223
- }
224
- 100% {
225
- -webkit-transform: rotate(360deg);
226
- transform: rotate(360deg);
227
- }
228
- }
229
- @keyframes load8 {
230
- 0% {
231
- -webkit-transform: rotate(0deg);
232
- transform: rotate(0deg);
233
- }
234
- 100% {
235
- -webkit-transform: rotate(360deg);
236
- transform: rotate(360deg);
237
- }
238
- }
239
-
240
- .wpt_show_love {
241
- font-size: 12px;
242
- font-style: italic;
243
- padding: 5px;
244
- margin: 0 10px;
245
  }
1
+ /*
2
+ Plugin Name: WP Tab Widget
3
+ Plugin URI: http://mythemeshop.com/plugins/wp-tab-widget/
4
+ Description: WP Tab Widget is the AJAXified plugin which loads content by demand, and thus it makes the plugin incredibly lightweight.
5
+ Author: MyThemeShop
6
+ Author URI: http://mythemeshop.com/
7
+ */
8
+
9
+ .wpt_widget_content {
10
+ position: relative;
11
+ border: 1px solid #E4E4E4;
12
+ }
13
+ .wpt_widget_content img {
14
+ max-width: 100%;
15
+ height: auto;
16
+ }
17
+ .wpt_widget_content a {
18
+ color: #444;
19
+ }
20
+ .wpt_widget_content ul.wpt-tabs li {
21
+ list-style: none;
22
+ display: block;
23
+ width: 50%;
24
+ float: left;
25
+ text-align: center;
26
+ margin: 0;
27
+ padding: 0 !important;
28
+ }
29
+ .wpt_widget_content ul.has-1-tabs li {
30
+ width: 100%;
31
+ float: none;
32
+ margin: 0 auto;
33
+ }
34
+ .wpt_widget_content ul.has-2-tabs li {
35
+
36
+ }
37
+ .wpt_widget_content ul.has-3-tabs li {
38
+ width: 33.33%;
39
+ }
40
+ .wpt_widget_content ul.has-4-tabs li {
41
+ width: 50%;
42
+ }
43
+ .wpt_widget_content .has-4-tabs .tab_title.selected a {
44
+ border-bottom: 1px solid #E4E4E4;
45
+ }
46
+ .wpt_widget_content .has-4-tabs .tab_title:nth-child(3) a {
47
+ border-left: 0;
48
+ }
49
+ .wpt_widget_content .tab_title a {
50
+ display: block;
51
+ background: #f0f0f0;
52
+ border-left: 1px solid #E4E4E4;
53
+ border-bottom: 1px solid #E4E4E4;
54
+ padding: 2px 0 4px;
55
+ line-height: 2.4;
56
+ text-decoration: none;
57
+ position: relative;
58
+ font-weight: bold;
59
+ }
60
+ .wpt_widget_content .tab_title:first-child a {
61
+ margin-left: 0;
62
+ border-left: 0;
63
+ }
64
+ .wpt_widget_content .tab_title.selected a {
65
+ background: #fff;
66
+ border-bottom: 1px solid #fff;
67
+ }
68
+ .wpt_widget_content .inside {
69
+ background: #fff;
70
+ padding-top: 10px;
71
+ }
72
+ .wpt_widget_content .tab-content li {
73
+ list-style-type: none;
74
+ float: left;
75
+ width: 100%;
76
+ -moz-box-sizing: border-box;
77
+ box-sizing: border-box;
78
+ margin: 0 0 11px 0;
79
+ padding: 0px 15px 15px 15px;
80
+ border-bottom: 1px solid #E4E4E4;
81
+ text-align: left;
82
+ color: #444;
83
+ background: none;
84
+ position: relative;
85
+ }
86
+ .wpt_widget_content .tab-content li:last-child {
87
+ border: none;
88
+ margin-bottom: 0;
89
+ }
90
+ .wpt_widget_content .tab-content li:first-child {
91
+ padding-top: 5px;
92
+ }
93
+
94
+ .wpt_thumb_small {
95
+ float: left;
96
+ margin-right: 12px;
97
+ padding-top: 4px;
98
+ width: 65px;
99
+ height: 65px;
100
+ overflow: hidden;
101
+ }
102
+ .wpt_thumb_large {
103
+ float: none;
104
+ max-width: 100%;
105
+ display: inline-block;
106
+ margin-bottom: 4px;
107
+ position: relative;
108
+ }
109
+ .wpt_widget_content .entry-title {
110
+ font-weight: bold;
111
+ margin: 0;
112
+ padding: 0;
113
+ }
114
+ .wpt_widget_content .wpt-postmeta, .wpt_comment_content, .wpt_excerpt {
115
+ color: #999;
116
+ font-size: 13px;
117
+ }
118
+ .wpt_widget_content .wp-post-image {
119
+ margin: 0 !important;
120
+ }
121
+
122
+ /* Comments */
123
+ .wpt_avatar {
124
+ margin-right: 10px;
125
+ float: left;
126
+ margin-top: 4px;
127
+ }
128
+ .wpt_comment_content p, .wpt_excerpt p {
129
+ margin-bottom: 0;
130
+ }
131
+ .wpt_comment_meta {
132
+ font-weight: bold;
133
+ }
134
+
135
+ /* Tags tab */
136
+ .wpt_widget_content #tags-tab-content {
137
+ padding-bottom: 10px;
138
+ }
139
+ .wpt_widget_content #tags-tab-content ul {
140
+ margin: 0;
141
+ overflow: hidden;
142
+ padding: 0 10px;
143
+ text-align: center;
144
+ font-size: 0;
145
+ line-height: 0;
146
+ }
147
+ .wpt_widget_content #tags-tab-content ul li {
148
+ width: auto;
149
+ color: #fff;
150
+ margin-bottom: 0;
151
+ list-style: none;
152
+ display: inline-block;
153
+ padding: 0;
154
+ margin: 3px 3px 0 0;
155
+ float: none;
156
+ font-size: 13px;
157
+ }
158
+ .wpt_widget_content #tags-tab-content ul li a {
159
+ padding: 12px 10px;
160
+ background: #f0f0f0;
161
+ white-space: nowrap;
162
+ display: block;
163
+ }
164
+
165
+ /* Pagination */
166
+ .wpt_widget_content .wpt-pagination {
167
+ margin: 0;
168
+ width: 100%;
169
+ padding-top: 0;
170
+ padding-bottom: 15px;
171
+ float: left;
172
+ }
173
+ .wpt_widget_content .wpt-pagination a {
174
+ margin: 0 15px;
175
+ }
176
+ .wpt-pagination a.next {
177
+ float: right;
178
+ }
179
+
180
+ /* Loading... */
181
+ .wpt-loading {
182
+ min-height: 120px;
183
+ }
184
+ .wpt-loading:before {
185
+ content: "";
186
+ display: block;
187
+ position: absolute;
188
+ top: 0;
189
+ right: 0;
190
+ bottom: 0;
191
+ left: 0;
192
+ background-color: rgba(255,255,255,0.8);
193
+ z-index: 11;
194
+ }
195
+ .clear {
196
+ clear: both;
197
+ }
198
+
199
+ .wpt-loading:after {
200
+ content: "";
201
+ margin: 0 auto 3em auto;
202
+ font-size: 10px;
203
+ position: absolute;
204
+ top: 45%;
205
+ left: 45%;
206
+ z-index: 12;
207
+ text-indent: -9999em;
208
+ border-top: 0.4em solid rgba(0, 0, 0, 0.2);
209
+ border-right: 0.4em solid rgba(0, 0, 0, 0.2);
210
+ border-bottom: 0.4em solid rgba(0, 0, 0, 0.2);
211
+ border-left: 0.4em solid #000;
212
+ -webkit-animation: load8 0.5s infinite linear;
213
+ animation: load8 0.5s infinite linear;
214
+ border-radius: 50%;
215
+ width: 2em;
216
+ height: 2em;
217
+ }
218
+
219
+ @-webkit-keyframes load8 {
220
+ 0% {
221
+ -webkit-transform: rotate(0deg);
222
+ transform: rotate(0deg);
223
+ }
224
+ 100% {
225
+ -webkit-transform: rotate(360deg);
226
+ transform: rotate(360deg);
227
+ }
228
+ }
229
+ @keyframes load8 {
230
+ 0% {
231
+ -webkit-transform: rotate(0deg);
232
+ transform: rotate(0deg);
233
+ }
234
+ 100% {
235
+ -webkit-transform: rotate(360deg);
236
+ transform: rotate(360deg);
237
+ }
238
+ }
239
+
240
+ .wpt_show_love {
241
+ font-size: 12px;
242
+ font-style: italic;
243
+ padding: 5px;
244
+ margin: 0 10px;
245
  }
img/largethumb.png CHANGED
File without changes
img/smallthumb.png CHANGED
File without changes
img/wp-tab-widget-pro.jpg CHANGED
File without changes
js/wp-tab-widget.js CHANGED
@@ -1,69 +1,69 @@
1
- /*
2
- Plugin Name: WP Tab Widget
3
- Author: MyThemeShop
4
- Author URI: mythemeshop.com
5
- */
6
-
7
- function wpt_loadTabContent(tab_name, page_num, container, args_obj) {
8
-
9
- var container = jQuery(container);
10
- var tab_content = container.find('#'+tab_name+'-tab-content');
11
-
12
- // only load content if it wasn't already loaded
13
- var isLoaded = tab_content.data('loaded');
14
-
15
- if (!isLoaded || page_num != 1) {
16
- if (!container.hasClass('wpt-loading')) {
17
- container.addClass('wpt-loading');
18
-
19
- tab_content.load(wpt.ajax_url, {
20
- action: 'wpt_widget_content',
21
- tab: tab_name,
22
- page: page_num,
23
- args: args_obj
24
- }, function() {
25
- container.removeClass('wpt-loading');
26
- tab_content.data('loaded', 1).hide().fadeIn().siblings().hide();
27
- }
28
- );
29
- }
30
- } else {
31
- tab_content.fadeIn().siblings().hide();
32
- }
33
- }
34
-
35
- jQuery(document).ready(function() {
36
- jQuery('.wpt_widget_content').each(function() {
37
- var $this = jQuery(this);
38
- var widget_id = this.id;
39
- var args = $this.data('args');
40
-
41
- // load tab content on click
42
- $this.find('.wpt-tabs a').click(function(e) {
43
- e.preventDefault();
44
- jQuery(this).parent().addClass('selected').siblings().removeClass('selected');
45
- var tab_name = this.id.slice(0, -4); // -tab
46
- wpt_loadTabContent(tab_name, 1, $this, args);
47
- });
48
-
49
- // pagination
50
- $this.on('click', '.wpt-pagination a', function(e) {
51
- e.preventDefault();
52
- var $this_a = jQuery(this);
53
- var tab_name = $this_a.closest('.tab-content').attr('id').slice(0, -12); // -tab-content
54
- var page_num = parseInt($this_a.closest('.tab-content').children('.page_num').val());
55
-
56
- if ($this_a.hasClass('next')) {
57
- wpt_loadTabContent(tab_name, page_num + 1, $this, args);
58
- } else {
59
- $this.find('#'+tab_name+'-tab-content').data('loaded', 0);
60
- wpt_loadTabContent(tab_name, page_num - 1, $this, args);
61
- }
62
-
63
- });
64
-
65
- // load first tab now
66
- $this.find('.wpt-tabs a').first().click();
67
- });
68
-
69
  });
1
+ /*
2
+ Plugin Name: WP Tab Widget
3
+ Author: MyThemeShop
4
+ Author URI: mythemeshop.com
5
+ */
6
+
7
+ function wpt_loadTabContent(tab_name, page_num, container, args_obj) {
8
+
9
+ var container = jQuery(container);
10
+ var tab_content = container.find('#'+tab_name+'-tab-content');
11
+
12
+ // only load content if it wasn't already loaded
13
+ var isLoaded = tab_content.data('loaded');
14
+
15
+ if (!isLoaded || page_num != 1) {
16
+ if (!container.hasClass('wpt-loading')) {
17
+ container.addClass('wpt-loading');
18
+
19
+ tab_content.load(wpt.ajax_url, {
20
+ action: 'wpt_widget_content',
21
+ tab: tab_name,
22
+ page: page_num,
23
+ args: args_obj
24
+ }, function() {
25
+ container.removeClass('wpt-loading');
26
+ tab_content.data('loaded', 1).hide().fadeIn().siblings().hide();
27
+ }
28
+ );
29
+ }
30
+ } else {
31
+ tab_content.fadeIn().siblings().hide();
32
+ }
33
+ }
34
+
35
+ jQuery(document).ready(function() {
36
+ jQuery('.wpt_widget_content').each(function() {
37
+ var $this = jQuery(this);
38
+ var widget_id = this.id;
39
+ var args = $this.data('args');
40
+
41
+ // load tab content on click
42
+ $this.find('.wpt-tabs a').click(function(e) {
43
+ e.preventDefault();
44
+ jQuery(this).parent().addClass('selected').siblings().removeClass('selected');
45
+ var tab_name = this.id.slice(0, -4); // -tab
46
+ wpt_loadTabContent(tab_name, 1, $this, args);
47
+ });
48
+
49
+ // pagination
50
+ $this.on('click', '.wpt-pagination a', function(e) {
51
+ e.preventDefault();
52
+ var $this_a = jQuery(this);
53
+ var tab_name = $this_a.closest('.tab-content').attr('id').slice(0, -12); // -tab-content
54
+ var page_num = parseInt($this_a.closest('.tab-content').children('.page_num').val());
55
+
56
+ if ($this_a.hasClass('next')) {
57
+ wpt_loadTabContent(tab_name, page_num + 1, $this, args);
58
+ } else {
59
+ $this.find('#'+tab_name+'-tab-content').data('loaded', 0);
60
+ wpt_loadTabContent(tab_name, page_num - 1, $this, args);
61
+ }
62
+
63
+ });
64
+
65
+ // load first tab now
66
+ $this.find('.wpt-tabs a').first().click();
67
+ });
68
+
69
  });
js/wpt-admin.js CHANGED
File without changes
languages/default.mo CHANGED
File without changes
languages/default.po CHANGED
@@ -1,165 +1,165 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: WP Tab Widget by MyThemeShop\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2016-03-27 16:20+0100\n"
6
- "PO-Revision-Date: 2016-03-27 16:20+0100\n"
7
- "Last-Translator: MyThemeShop <support-team@mythemeshop.com>\n"
8
- "Language-Team: MyThemeShop <support-team@mythemeshop.com>\n"
9
- "Language: en_US\n"
10
- "MIME-Version: 1.0\n"
11
- "Content-Type: text/plain; charset=UTF-8\n"
12
- "Content-Transfer-Encoding: 8bit\n"
13
- "X-Poedit-KeywordsList: __;_e\n"
14
- "X-Poedit-Basepath: .\n"
15
- "X-Generator: Poedit 1.8.1\n"
16
- "X-Poedit-SearchPath-0: ..\n"
17
-
18
- #: ../wp-tab-widget.php:25
19
- msgid "Display popular posts, recent posts, comments, and tags in tabbed format."
20
- msgstr ""
21
-
22
- #: ../wp-tab-widget.php:27
23
- msgid "WP Tab Widget by MyThemeShop"
24
- msgstr ""
25
-
26
- #: ../wp-tab-widget.php:75
27
- msgid "Select Tabs"
28
- msgstr ""
29
-
30
- #: ../wp-tab-widget.php:80
31
- msgid "Popular Tab"
32
- msgstr ""
33
-
34
- #: ../wp-tab-widget.php:84
35
- msgid "Recent Tab"
36
- msgstr ""
37
-
38
- #: ../wp-tab-widget.php:88
39
- msgid "Comments Tab"
40
- msgstr ""
41
-
42
- #: ../wp-tab-widget.php:92
43
- msgid "Tags Tab"
44
- msgstr ""
45
-
46
- #: ../wp-tab-widget.php:97
47
- msgid "Tab Order"
48
- msgstr ""
49
-
50
- #: ../wp-tab-widget.php:103 ../wp-tab-widget.php:253
51
- msgid "Popular"
52
- msgstr ""
53
-
54
- #: ../wp-tab-widget.php:107 ../wp-tab-widget.php:254
55
- msgid "Recent"
56
- msgstr ""
57
-
58
- #: ../wp-tab-widget.php:111 ../wp-tab-widget.php:255 ../wp-tab-widget.php:395
59
- #: ../wp-tab-widget.php:448
60
- msgid "Comments"
61
- msgstr ""
62
-
63
- #: ../wp-tab-widget.php:115 ../wp-tab-widget.php:256
64
- msgid "Tags"
65
- msgstr ""
66
-
67
- #: ../wp-tab-widget.php:120
68
- msgid "Advanced Options"
69
- msgstr ""
70
-
71
- #: ../wp-tab-widget.php:126
72
- msgid "Allow pagination"
73
- msgstr ""
74
-
75
- #: ../wp-tab-widget.php:133
76
- msgid "Number of posts to show:"
77
- msgstr ""
78
-
79
- #: ../wp-tab-widget.php:140
80
- msgid "Title length (words):"
81
- msgstr ""
82
-
83
- #: ../wp-tab-widget.php:149
84
- msgid "Show post thumbnails"
85
- msgstr ""
86
-
87
- #: ../wp-tab-widget.php:154
88
- msgid "Thumbnail size:"
89
- msgstr ""
90
-
91
- #: ../wp-tab-widget.php:156
92
- msgid "Small"
93
- msgstr ""
94
-
95
- #: ../wp-tab-widget.php:157
96
- msgid "Large"
97
- msgstr ""
98
-
99
- #: ../wp-tab-widget.php:164
100
- msgid "Show post date"
101
- msgstr ""
102
-
103
- #: ../wp-tab-widget.php:171
104
- msgid "Show number of comments"
105
- msgstr ""
106
-
107
- #: ../wp-tab-widget.php:178
108
- msgid "Show post excerpt"
109
- msgstr ""
110
-
111
- #: ../wp-tab-widget.php:184
112
- msgid "Excerpt length (words):"
113
- msgstr ""
114
-
115
- #: ../wp-tab-widget.php:197
116
- msgid "Number of comments on Comments Tab:"
117
- msgstr ""
118
-
119
- #: ../wp-tab-widget.php:206
120
- msgid "Show avatars on Comments Tab"
121
- msgstr ""
122
-
123
- #: ../wp-tab-widget.php:214
124
- msgid "Show Some Love (Powered by Tab Widget Pro)"
125
- msgstr ""
126
-
127
- #: ../wp-tab-widget.php:296
128
- msgid "Powered by WP Tab Widget"
129
- msgstr ""
130
-
131
- #: ../wp-tab-widget.php:331
132
- msgid "Unable to load tab content"
133
- msgstr ""
134
-
135
- #: ../wp-tab-widget.php:395 ../wp-tab-widget.php:448
136
- msgid "No Comment"
137
- msgstr ""
138
-
139
- #: ../wp-tab-widget.php:395 ../wp-tab-widget.php:448
140
- msgid "One Comment"
141
- msgstr ""
142
-
143
- #: ../wp-tab-widget.php:512
144
- msgid "No comments yet."
145
- msgstr ""
146
-
147
- #: ../wp-tab-widget.php:535
148
- msgid "No tags created."
149
- msgstr ""
150
-
151
- #: ../wp-tab-widget.php:548
152
- msgid "&laquo; Previous"
153
- msgstr ""
154
-
155
- #: ../wp-tab-widget.php:551
156
- msgid "Next &raquo;"
157
- msgstr ""
158
-
159
- #: ../wp-tab-widget.php:690
160
- msgid "Like WP Tab Widget? You will <strong>LOVE WP Tab Widget Pro</strong>!"
161
- msgstr ""
162
-
163
- #: ../wp-tab-widget.php:690
164
- msgid "Click here for all the exciting features."
165
- msgstr ""
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP Tab Widget by MyThemeShop\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2016-03-27 16:20+0100\n"
6
+ "PO-Revision-Date: 2016-03-27 16:20+0100\n"
7
+ "Last-Translator: MyThemeShop <support-team@mythemeshop.com>\n"
8
+ "Language-Team: MyThemeShop <support-team@mythemeshop.com>\n"
9
+ "Language: en_US\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Generator: Poedit 1.8.1\n"
16
+ "X-Poedit-SearchPath-0: ..\n"
17
+
18
+ #: ../wp-tab-widget.php:25
19
+ msgid "Display popular posts, recent posts, comments, and tags in tabbed format."
20
+ msgstr ""
21
+
22
+ #: ../wp-tab-widget.php:27
23
+ msgid "WP Tab Widget by MyThemeShop"
24
+ msgstr ""
25
+
26
+ #: ../wp-tab-widget.php:75
27
+ msgid "Select Tabs"
28
+ msgstr ""
29
+
30
+ #: ../wp-tab-widget.php:80
31
+ msgid "Popular Tab"
32
+ msgstr ""
33
+
34
+ #: ../wp-tab-widget.php:84
35
+ msgid "Recent Tab"
36
+ msgstr ""
37
+
38
+ #: ../wp-tab-widget.php:88
39
+ msgid "Comments Tab"
40
+ msgstr ""
41
+
42
+ #: ../wp-tab-widget.php:92
43
+ msgid "Tags Tab"
44
+ msgstr ""
45
+
46
+ #: ../wp-tab-widget.php:97
47
+ msgid "Tab Order"
48
+ msgstr ""
49
+
50
+ #: ../wp-tab-widget.php:103 ../wp-tab-widget.php:253
51
+ msgid "Popular"
52
+ msgstr ""
53
+
54
+ #: ../wp-tab-widget.php:107 ../wp-tab-widget.php:254
55
+ msgid "Recent"
56
+ msgstr ""
57
+
58
+ #: ../wp-tab-widget.php:111 ../wp-tab-widget.php:255 ../wp-tab-widget.php:395
59
+ #: ../wp-tab-widget.php:448
60
+ msgid "Comments"
61
+ msgstr ""
62
+
63
+ #: ../wp-tab-widget.php:115 ../wp-tab-widget.php:256
64
+ msgid "Tags"
65
+ msgstr ""
66
+
67
+ #: ../wp-tab-widget.php:120
68
+ msgid "Advanced Options"
69
+ msgstr ""
70
+
71
+ #: ../wp-tab-widget.php:126
72
+ msgid "Allow pagination"
73
+ msgstr ""
74
+
75
+ #: ../wp-tab-widget.php:133
76
+ msgid "Number of posts to show:"
77
+ msgstr ""
78
+
79
+ #: ../wp-tab-widget.php:140
80
+ msgid "Title length (words):"
81
+ msgstr ""
82
+
83
+ #: ../wp-tab-widget.php:149
84
+ msgid "Show post thumbnails"
85
+ msgstr ""
86
+
87
+ #: ../wp-tab-widget.php:154
88
+ msgid "Thumbnail size:"
89
+ msgstr ""
90
+
91
+ #: ../wp-tab-widget.php:156
92
+ msgid "Small"
93
+ msgstr ""
94
+
95
+ #: ../wp-tab-widget.php:157
96
+ msgid "Large"
97
+ msgstr ""
98
+
99
+ #: ../wp-tab-widget.php:164
100
+ msgid "Show post date"
101
+ msgstr ""
102
+
103
+ #: ../wp-tab-widget.php:171
104
+ msgid "Show number of comments"
105
+ msgstr ""
106
+
107
+ #: ../wp-tab-widget.php:178
108
+ msgid "Show post excerpt"
109
+ msgstr ""
110
+
111
+ #: ../wp-tab-widget.php:184
112
+ msgid "Excerpt length (words):"
113
+ msgstr ""
114
+
115
+ #: ../wp-tab-widget.php:197
116
+ msgid "Number of comments on Comments Tab:"
117
+ msgstr ""
118
+
119
+ #: ../wp-tab-widget.php:206
120
+ msgid "Show avatars on Comments Tab"
121
+ msgstr ""
122
+
123
+ #: ../wp-tab-widget.php:214
124
+ msgid "Show Some Love (Powered by Tab Widget Pro)"
125
+ msgstr ""
126
+
127
+ #: ../wp-tab-widget.php:296
128
+ msgid "Powered by WP Tab Widget"
129
+ msgstr ""
130
+
131
+ #: ../wp-tab-widget.php:331
132
+ msgid "Unable to load tab content"
133
+ msgstr ""
134
+
135
+ #: ../wp-tab-widget.php:395 ../wp-tab-widget.php:448
136
+ msgid "No Comment"
137
+ msgstr ""
138
+
139
+ #: ../wp-tab-widget.php:395 ../wp-tab-widget.php:448
140
+ msgid "One Comment"
141
+ msgstr ""
142
+
143
+ #: ../wp-tab-widget.php:512
144
+ msgid "No comments yet."
145
+ msgstr ""
146
+
147
+ #: ../wp-tab-widget.php:535
148
+ msgid "No tags created."
149
+ msgstr ""
150
+
151
+ #: ../wp-tab-widget.php:548
152
+ msgid "&laquo; Previous"
153
+ msgstr ""
154
+
155
+ #: ../wp-tab-widget.php:551
156
+ msgid "Next &raquo;"
157
+ msgstr ""
158
+
159
+ #: ../wp-tab-widget.php:690
160
+ msgid "Like WP Tab Widget? You will <strong>LOVE WP Tab Widget Pro</strong>!"
161
+ msgstr ""
162
+
163
+ #: ../wp-tab-widget.php:690
164
+ msgid "Click here for all the exciting features."
165
+ msgstr ""
readme.txt CHANGED
@@ -1,145 +1,148 @@
1
- === WP Tab Widget ===
2
- 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: 4.0
6
- Tested up to: 4.9.5
7
- Stable tag: 1.2.8
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
-
11
- WP Tab Widget is the AJAXified plugin which loads content by demand, and thus it makes the plugin incredibly lightweight.
12
-
13
- == Description ==
14
-
15
- We know you always loved those tab widgets which have that lazy loading effect in them. We at <a href="http://mythemeshop.com/">MyThemeShop</a> understand your need, and have developed a unique, cleanly coded, premium tab plugin. We are now distributing it for FREE to give back to the WordPress community. We have been given so much by the WordPress, it's the time to pay back.
16
-
17
- **WP Tab plugin** is the only plugin you need to get the perfect tabs on your blog. We have made it AJAXified, so the content loads only when demanded, and thus it makes the plugin incredibly lightweight. It loads before you could even blink your eye. If you're a website owner, you always want your visitors to stay longer on your website. With WP Tab plugin, you could do it in a simple way. Install the plugin, configure the widget and let your visitors find the best content on your website in the sidebar without struggling to actually search for it.
18
-
19
- = Live demos: =
20
- See WP Tab Widget in action on our demo pages:
21
- <a href="http://demo.mythemeshop.com/truepixel/">http://demo.mythemeshop.com/truepixel/</a>
22
-
23
- = Why WP Tab from <a href="http://mythemeshop.com/">MyThemeShop</a>: =
24
- * It's the only free plugin which offers so many features
25
- * It loads the content by demand
26
- * Choose between, Popular, Recent, Comments, Tags tab
27
- * In-built Pagination System
28
- * Fully Responsive
29
- * Control the order of the tabs
30
- * Change the number of tabs to show
31
- * Control the number of posts to show
32
- * Super light weight
33
- * In-built cache system, once a tab is loaded, it stays in the memory
34
- * Cool effects
35
- * Easy to modify the CSS to better fit your theme style
36
- * Choose between 3 unique styles of small, big or no thumbnails
37
- * Show/Hide post date
38
- * Show/Hide number of comments
39
- * Show/Hide post excerpt
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
-
60
- MyThemeShop is a premium WordPress theme provider and we develop premium plugins in our free time and distribute them for free to give back to the community. Though we take a lot of care while developing anything, we might have missed something useful/important. Please help us make it better by submitting the bug/suggestions/feedback on GitHub.
61
-
62
- GitHub link: <a href="https://github.com/MyThemeShopTeam/WP-Tab-Widget">https://github.com/MyThemeShopTeam/WP-Tab-Widget</a>
63
-
64
- = Feedback =
65
- If you like this plugin, then please leave us a good rating and review.<br> Consider following us on <a rel="author" href="https://plus.google.com/+Mythemeshop/">Google+</a>, <a href="https://twitter.com/MyThemeShopTeam">Twitter</a>, and <a href="https://www.facebook.com/MyThemeShop">Facebook</a>
66
-
67
- == Installation ==
68
-
69
- This section describes how to install the plugin and get it working.
70
-
71
- 1. Upload the `wp-tab-widget` folder to the to the `/wp-content/plugins/` directory
72
- 2. Activate the plugin through the 'Plugins' menu in WordPress
73
- 3. You can see **WP Tab Widget by MyThemeShop** widget in widgets section.
74
- 4. Add it in sidebar and footer and configure as you want.
75
- 5. Enjoy!
76
-
77
- == Frequently Asked Questions ==
78
-
79
- = Plugin is not working =
80
-
81
- Please disable all plugins and check if shortcode plugin is working properly. Then you can enable all plugins one by one to find out which plugin is conflicting with plugin.
82
-
83
- = Plugins is consuming too much resources =
84
-
85
- The pageview is incremented on the database everytime a user visits a page but this can start getting quite expensive on high-traffic websites. We've added the filter `wpt_sampling_rate` which you can use to lower the sampling rate from the default <strong>100%</strong>. Note that setting this value too low will result to innacurate pageviews.
86
-
87
- `
88
- <?php
89
-
90
- function wpt_my_sampling_rate( $rate ) {
91
- // Reduce the percentage of pageviews recorded to 80%.
92
- return 80;
93
- }
94
- add_filter( 'wpt_sampling_rate', 'wpt_my_sampling_rate' );
95
- `
96
-
97
- == Screenshots ==
98
-
99
- 1. WP Tab Widget Settings
100
- 2. WP Tab Widget
101
-
102
- == Changelog ==
103
-
104
- = 1.2.8 (Apr 20, 2018) =
105
- * Fixed compatibility with PHP 7.1
106
- * Checked compatibility with WordPress v4.9.5
107
- * Improved Code
108
-
109
- = 1.2.7 (Feb 03, 2017) =
110
- * Added new wpt_sampling_rate filter. See the FAQ section on how this works.
111
-
112
- = 1.2.6 (Jan 28, 2017) =
113
- * Updated view counter function
114
-
115
- = 1.2.5 (Apr 06, 2016) =
116
- * Added missing Pro version image
117
-
118
- = 1.2.4 (Mar 27, 2016) =
119
- * Replaced “comm” CSS class with “comments-number” on comment count in Recent tab
120
- * Added “Show Some Love” option
121
-
122
- = 1.2.3 (Mar 22, 2016) =
123
- * Fixed issue where tab content couldn’t be loaded on servers with non UTF8 character encoding
124
- * List only comments from default comment type in Comments tab
125
- * Prevent conflict with Pro version
126
- * Added Notification & Banner for Pro Version
127
-
128
- = 1.2.2 (Aug 21, 2015) =
129
- * Changed text domain to make plugin compatible with WordPress Language Packs
130
-
131
- = 1.2.1 (Aug 19, 2015) =
132
- * Switched to PHP 5 style constructor method for the widget class
133
-
134
- = 1.2 (Oct 15, 2014) =
135
- * Added Title Length option
136
- * Fixed post view count compatibility with themes
137
-
138
- = 1.1 (Oct 1, 2014) =
139
- * Popular posts will be decided by number of views
140
- * Added loading effect
141
- * Fixed small bugs
142
- * Performance improvement
143
-
144
- = 1.0 (Mar 24, 2014) =
145
- * Plugin released
 
 
 
1
+ === WP Tab Widget ===
2
+ 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: 4.0
6
+ Tested up to: 4.9.5
7
+ Stable tag: 1.2.9
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ WP Tab Widget is the AJAXified plugin which loads content by demand, and thus it makes the plugin incredibly lightweight.
12
+
13
+ == Description ==
14
+
15
+ We know you always loved those tab widgets which have that lazy loading effect in them. We at <a href="http://mythemeshop.com/">MyThemeShop</a> understand your need, and have developed a unique, cleanly coded, premium tab plugin. We are now distributing it for FREE to give back to the WordPress community. We have been given so much by the WordPress, it's the time to pay back.
16
+
17
+ **WP Tab plugin** is the only plugin you need to get the perfect tabs on your blog. We have made it AJAXified, so the content loads only when demanded, and thus it makes the plugin incredibly lightweight. It loads before you could even blink your eye. If you're a website owner, you always want your visitors to stay longer on your website. With WP Tab plugin, you could do it in a simple way. Install the plugin, configure the widget and let your visitors find the best content on your website in the sidebar without struggling to actually search for it.
18
+
19
+ = Live demos: =
20
+ See WP Tab Widget in action on our demo pages:
21
+ <a href="http://demo.mythemeshop.com/truepixel/">http://demo.mythemeshop.com/truepixel/</a>
22
+
23
+ = Why WP Tab from <a href="http://mythemeshop.com/">MyThemeShop</a>: =
24
+ * It's the only free plugin which offers so many features
25
+ * It loads the content by demand
26
+ * Choose between, Popular, Recent, Comments, Tags tab
27
+ * In-built Pagination System
28
+ * Fully Responsive
29
+ * Control the order of the tabs
30
+ * Change the number of tabs to show
31
+ * Control the number of posts to show
32
+ * Super light weight
33
+ * In-built cache system, once a tab is loaded, it stays in the memory
34
+ * Cool effects
35
+ * Easy to modify the CSS to better fit your theme style
36
+ * Choose between 3 unique styles of small, big or no thumbnails
37
+ * Show/Hide post date
38
+ * Show/Hide number of comments
39
+ * Show/Hide post excerpt
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
+
60
+ MyThemeShop is a premium WordPress theme provider and we develop premium plugins in our free time and distribute them for free to give back to the community. Though we take a lot of care while developing anything, we might have missed something useful/important. Please help us make it better by submitting the bug/suggestions/feedback on GitHub.
61
+
62
+ GitHub link: <a href="https://github.com/MyThemeShopTeam/WP-Tab-Widget">https://github.com/MyThemeShopTeam/WP-Tab-Widget</a>
63
+
64
+ = Feedback =
65
+ If you like this plugin, then please leave us a good rating and review.<br> Consider following us on <a rel="author" href="https://plus.google.com/+Mythemeshop/">Google+</a>, <a href="https://twitter.com/MyThemeShopTeam">Twitter</a>, and <a href="https://www.facebook.com/MyThemeShop">Facebook</a>
66
+
67
+ == Installation ==
68
+
69
+ This section describes how to install the plugin and get it working.
70
+
71
+ 1. Upload the `wp-tab-widget` folder to the to the `/wp-content/plugins/` directory
72
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
73
+ 3. You can see **WP Tab Widget by MyThemeShop** widget in widgets section.
74
+ 4. Add it in sidebar and footer and configure as you want.
75
+ 5. Enjoy!
76
+
77
+ == Frequently Asked Questions ==
78
+
79
+ = Plugin is not working =
80
+
81
+ Please disable all plugins and check if shortcode plugin is working properly. Then you can enable all plugins one by one to find out which plugin is conflicting with plugin.
82
+
83
+ = Plugins is consuming too much resources =
84
+
85
+ The pageview is incremented on the database everytime a user visits a page but this can start getting quite expensive on high-traffic websites. We've added the filter `wpt_sampling_rate` which you can use to lower the sampling rate from the default <strong>100%</strong>. Note that setting this value too low will result to innacurate pageviews.
86
+
87
+ `
88
+ <?php
89
+
90
+ function wpt_my_sampling_rate( $rate ) {
91
+ // Reduce the percentage of pageviews recorded to 80%.
92
+ return 80;
93
+ }
94
+ add_filter( 'wpt_sampling_rate', 'wpt_my_sampling_rate' );
95
+ `
96
+
97
+ == Screenshots ==
98
+
99
+ 1. WP Tab Widget Settings
100
+ 2. WP Tab Widget
101
+
102
+ == Changelog ==
103
+
104
+ = 1.2.9 [June 29, 2018] =
105
+ * Updated admin notices
106
+
107
+ = 1.2.8 (Apr 20, 2018) =
108
+ * Fixed compatibility with PHP 7
109
+ * Checked compatibility with WordPress v4.9.5
110
+ * Improved Code
111
+
112
+ = 1.2.7 (Feb 03, 2017) =
113
+ * Added new wpt_sampling_rate filter. See the FAQ section on how this works.
114
+
115
+ = 1.2.6 (Jan 28, 2017) =
116
+ * Updated view counter function
117
+
118
+ = 1.2.5 (Apr 06, 2016) =
119
+ * Added missing Pro version image
120
+
121
+ = 1.2.4 (Mar 27, 2016) =
122
+ * Replaced “comm” CSS class with “comments-number” on comment count in Recent tab
123
+ * Added “Show Some Love” option
124
+
125
+ = 1.2.3 (Mar 22, 2016) =
126
+ * Fixed issue where tab content couldn’t be loaded on servers with non UTF8 character encoding
127
+ * List only comments from default comment type in Comments tab
128
+ * Prevent conflict with Pro version
129
+ * Added Notification & Banner for Pro Version
130
+
131
+ = 1.2.2 (Aug 21, 2015) =
132
+ * Changed text domain to make plugin compatible with WordPress Language Packs
133
+
134
+ = 1.2.1 (Aug 19, 2015) =
135
+ * Switched to PHP 5 style constructor method for the widget class
136
+
137
+ = 1.2 (Oct 15, 2014) =
138
+ * Added Title Length option
139
+ * Fixed post view count compatibility with themes
140
+
141
+ = 1.1 (Oct 1, 2014) =
142
+ * Popular posts will be decided by number of views
143
+ * Added loading effect
144
+ * Fixed small bugs
145
+ * Performance improvement
146
+
147
+ = 1.0 (Mar 24, 2014) =
148
+ * Plugin released
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.8
8
  Author URI: http://mythemeshop.com/
9
  */
10
  if ( !class_exists('wpt_widget') ) {
@@ -665,6 +665,7 @@ function wpt_reset_post_count($post_id = 0) {
665
  // add post meta on plugin activation
666
  function wpt_plugin_activation() {
667
  wpt_add_views_meta_for_posts();
 
668
  }
669
  register_activation_hook( __FILE__, 'wpt_plugin_activation' );
670
 
@@ -687,15 +688,31 @@ function wp_tab_widget_admin_notice() {
687
  printf(__('Like WP Tab Widget? You will <strong>LOVE WP Tab Widget Pro</strong>!','wp-tab-widget').'<a href="https://mythemeshop.com/plugins/wp-tab-widget-pro/?utm_source=WP+Tab+Widget+Free&utm_medium=Notification+Link&utm_content=WP+Tab+Widget+Pro+LP&utm_campaign=WordPressOrg&wpmts" target="_blank">&nbsp;'.__('Click here for all the exciting features.','wp-tab-widget').'</a><a href="%1$s" class="dashicons dashicons-dismiss dashicons-dismiss-icon" style="position: absolute; top: 8px; right: 8px; color: #222; opacity: 0.4; text-decoration: none !important;"></a>', '?wp_tab_widget_notice_ignore=0');
688
  echo "</p></div>";
689
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
690
  }
691
 
692
  add_action('admin_init', 'wp_tab_widget_notice_ignore');
693
  function wp_tab_widget_notice_ignore() {
694
- global $current_user;
695
- $user_id = $current_user->ID;
696
- /* If user clicks to ignore the notice, add that to their user meta */
697
- if ( isset($_GET['wp_tab_widget_notice_ignore']) && '0' == $_GET['wp_tab_widget_notice_ignore'] ) {
698
- add_user_meta($user_id, 'wp_tab_widget_ignore_notice', 'true', true);
699
- }
700
- }
701
- ?>
 
 
 
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.9
8
  Author URI: http://mythemeshop.com/
9
  */
10
  if ( !class_exists('wpt_widget') ) {
665
  // add post meta on plugin activation
666
  function wpt_plugin_activation() {
667
  wpt_add_views_meta_for_posts();
668
+ update_option('wp_tab_widget_activated', time());
669
  }
670
  register_activation_hook( __FILE__, 'wpt_plugin_activation' );
671
 
688
  printf(__('Like WP Tab Widget? You will <strong>LOVE WP Tab Widget Pro</strong>!','wp-tab-widget').'<a href="https://mythemeshop.com/plugins/wp-tab-widget-pro/?utm_source=WP+Tab+Widget+Free&utm_medium=Notification+Link&utm_content=WP+Tab+Widget+Pro+LP&utm_campaign=WordPressOrg&wpmts" target="_blank">&nbsp;'.__('Click here for all the exciting features.','wp-tab-widget').'</a><a href="%1$s" class="dashicons dashicons-dismiss dashicons-dismiss-icon" style="position: absolute; top: 8px; right: 8px; color: #222; opacity: 0.4; text-decoration: none !important;"></a>', '?wp_tab_widget_notice_ignore=0');
689
  echo "</p></div>";
690
  }
691
+
692
+ /* Other notice appears right after activating */
693
+ /* And it gets hidden after showing 3 times */
694
+ if ( ! get_user_meta($user_id, 'wp_tab_widget_ignore_notice_2') && get_option('wp_tab_widget_notice_views', 0) < 3 && get_option( 'wp_tab_widget_activated', 0 ) ) {
695
+ $views = get_option('wp_tab_widget_notice_views', 0);
696
+ update_option( 'wp_tab_widget_notice_views', ($views + 1) );
697
+ echo '<div class="updated notice-info wp-tab-widget-notice" id="wptabwodget-notice2" style="position:relative;">';
698
+ echo '<p>';
699
+ _e('Thank you for trying WP Tab Widget. We hope you will like it.', 'wp-tab-widget');
700
+ echo '</p>';
701
+ echo '<a class="notice-dismiss" href="?wp_tab_widget_notice_ignore=0"></a>';
702
+ echo "</div>";
703
+ }
704
  }
705
 
706
  add_action('admin_init', 'wp_tab_widget_notice_ignore');
707
  function wp_tab_widget_notice_ignore() {
708
+ global $current_user;
709
+ $user_id = $current_user->ID;
710
+ /* If user clicks to ignore the notice, add that to their user meta */
711
+ if ( isset($_GET['wp_tab_widget_notice_ignore']) ) {
712
+ if ( '0' == $_GET['wp_tab_widget_notice_ignore'] ) {
713
+ add_user_meta($user_id, 'wp_tab_widget_ignore_notice', '1', true);
714
+ } elseif ( '1' == $_GET['wp_tab_widget_notice_ignore'] ) {
715
+ add_user_meta($user_id, 'wp_tab_widget_ignore_notice_2', '1', true);
716
+ }
717
+ }
718
+ }