WP-Paginate - Version 2.0.1

Version Description

  • fixed undefined index notices
Download this release

Release Info

Developer AlanP57
Plugin Icon 128x128 WP-Paginate
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.1

Files changed (4) hide show
  1. I18n/wp-paginate.mo +0 -0
  2. I18n/wp-paginate.pot +117 -82
  3. readme.txt +5 -2
  4. wp-paginate.php +119 -35
I18n/wp-paginate.mo CHANGED
Binary file
I18n/wp-paginate.pot CHANGED
@@ -7,8 +7,8 @@ msgid ""
7
msgstr ""
8
"Project-Id-Version: WP-Paginate 1.33\n"
9
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-paginate\n"
10
- "POT-Creation-Date: 2017-01-14 20:08+0100\n"
11
- "PO-Revision-Date: 2017-01-14 20:08+0100\n"
12
"Last-Translator: Maxgalleria <support@maxfoundry.com>\n"
13
"Language-Team: <support@maxfoundry.com>\n"
14
"Language: en_US\n"
@@ -22,227 +22,227 @@ msgstr ""
22
"X-Poedit-KeywordsList: __;_e\n"
23
"X-Poedit-SearchPath-0: ..\n"
24
25
- #: ../wp-paginate.php:128
26
msgid "Function only"
27
msgstr ""
28
29
- #: ../wp-paginate.php:129
30
msgid "Below the Content"
31
msgstr ""
32
33
- #: ../wp-paginate.php:130
34
msgid "Above the Content"
35
msgstr ""
36
37
- #: ../wp-paginate.php:131
38
msgid "Above and Below the Content"
39
msgstr ""
40
41
- #: ../wp-paginate.php:135
42
msgid "inherit"
43
msgstr ""
44
45
- #: ../wp-paginate.php:136
46
msgid "initial"
47
msgstr ""
48
49
- #: ../wp-paginate.php:137
50
msgid "Arial"
51
msgstr ""
52
53
- #: ../wp-paginate.php:138
54
msgid "Georgia"
55
msgstr ""
56
57
- #: ../wp-paginate.php:139
58
msgid "Tahoma"
59
msgstr ""
60
61
- #: ../wp-paginate.php:140
62
msgid "Times New Roman"
63
msgstr ""
64
65
- #: ../wp-paginate.php:141
66
msgid "Trebuchet MS"
67
msgstr ""
68
69
- #: ../wp-paginate.php:142
70
msgid "Verdana"
71
msgstr ""
72
73
- #: ../wp-paginate.php:146
74
msgid "Grey Buttons"
75
msgstr ""
76
77
- #: ../wp-paginate.php:147
78
msgid "Blue Buttons"
79
msgstr ""
80
81
- #: ../wp-paginate.php:471 ../wp-paginate.php:527
82
msgid "Settings"
83
msgstr ""
84
85
- #: ../wp-paginate.php:514
86
msgid "Success! Your changes were successfully saved!"
87
msgstr ""
88
89
- #: ../wp-paginate.php:517
90
msgid "Whoops! There was a problem with the data you posted. Please try again."
91
msgstr ""
92
93
- #: ../wp-paginate.php:528
94
msgid "Custom CSS"
95
msgstr ""
96
97
- #: ../wp-paginate.php:529
98
msgid "Upgrade to Pro"
99
msgstr ""
100
101
- #: ../wp-paginate.php:536
102
msgid "General"
103
msgstr ""
104
105
- #: ../wp-paginate.php:539
106
msgid "Pagination Label:"
107
msgstr ""
108
109
- #: ../wp-paginate.php:541
110
msgid "The optional text/HTML to display before the list of pages."
111
msgstr ""
112
113
- #: ../wp-paginate.php:544
114
msgid "Previous Page:"
115
msgstr ""
116
117
- #: ../wp-paginate.php:546
118
msgid "The text/HTML to display for the previous page link."
119
msgstr ""
120
121
- #: ../wp-paginate.php:549
122
msgid "Next Page:"
123
msgstr ""
124
125
- #: ../wp-paginate.php:551
126
msgid "The text/HTML to display for the next page link."
127
msgstr ""
128
129
- #: ../wp-paginate.php:555
130
msgid "Location &amp; Position"
131
msgstr ""
132
133
- #: ../wp-paginate.php:558
134
msgid "Everywhere:"
135
msgstr ""
136
137
- #: ../wp-paginate.php:560
138
msgid "Display pagination everywhere. (Comments pagination not included.)"
139
msgstr ""
140
141
- #: ../wp-paginate.php:563
142
msgid "Home Page:"
143
msgstr ""
144
145
- #: ../wp-paginate.php:565
146
msgid "Display pagination on the home page."
147
msgstr ""
148
149
- #: ../wp-paginate.php:568
150
msgid "Blog Page:"
151
msgstr ""
152
153
- #: ../wp-paginate.php:570
154
msgid "Display pagination on the blog page."
155
msgstr ""
156
157
- #: ../wp-paginate.php:573
158
msgid "Search Page:"
159
msgstr ""
160
161
- #: ../wp-paginate.php:575
162
msgid "Display pagination on the search page."
163
msgstr ""
164
165
- #: ../wp-paginate.php:578
166
msgid "Category Pages:"
167
msgstr ""
168
169
- #: ../wp-paginate.php:580
170
msgid "Display pagination on category pages."
171
msgstr ""
172
173
- #: ../wp-paginate.php:583
174
msgid "Archive Pages:"
175
msgstr ""
176
177
- #: ../wp-paginate.php:585
178
msgid "Display pagination on archive pages."
179
msgstr ""
180
181
- #: ../wp-paginate.php:610
182
msgid "Position:"
183
msgstr ""
184
185
- #: ../wp-paginate.php:618
186
msgid "Where to display the pagination on the page."
187
msgstr ""
188
189
- #: ../wp-paginate.php:621
190
msgid "Hide Standard Pagination:"
191
msgstr ""
192
193
- #: ../wp-paginate.php:623
194
msgid "Hide the standard theme default pagaination."
195
msgstr ""
196
197
- #: ../wp-paginate.php:627
198
msgid "Apperance"
199
msgstr ""
200
201
- #: ../wp-paginate.php:630
202
msgid "Pagination Font:"
203
msgstr ""
204
205
- #: ../wp-paginate.php:638
206
msgid "Select the font to use with the pagination."
207
msgstr ""
208
209
- #: ../wp-paginate.php:641
210
msgid "Button Style:"
211
msgstr ""
212
213
- #: ../wp-paginate.php:662
214
msgid "Advanced Settings"
215
msgstr ""
216
217
- #: ../wp-paginate.php:665
218
msgid "Before Markup:"
219
msgstr ""
220
221
- #: ../wp-paginate.php:667
222
msgid "The HTML markup to display before the pagination code."
223
msgstr ""
224
225
- #: ../wp-paginate.php:670
226
msgid "After Markup:"
227
msgstr ""
228
229
- #: ../wp-paginate.php:672
230
msgid "The HTML markup to display after the pagination code."
231
msgstr ""
232
233
- #: ../wp-paginate.php:675
234
msgid "Markup Display:"
235
msgstr ""
236
237
- #: ../wp-paginate.php:677
238
msgid "Show Before Markup and After Markup, even if the page list is empty?"
239
msgstr ""
240
241
- #: ../wp-paginate.php:680
242
msgid "WP-Paginate CSS File:"
243
msgstr ""
244
245
- #: ../wp-paginate.php:682
246
#, php-format
247
msgid ""
248
"Include the default stylesheet wp-paginate.css? WP-Paginate will first look "
@@ -250,111 +250,146 @@ msgid ""
250
"code>)."
251
msgstr ""
252
253
- #: ../wp-paginate.php:685
254
msgid "Page Range:"
255
msgstr ""
256
257
- #: ../wp-paginate.php:692
258
msgid ""
259
"The number of page links to show before and after the current page. "
260
"Recommended value: 3"
261
msgstr ""
262
263
- #: ../wp-paginate.php:695
264
msgid "Page Anchors:"
265
msgstr ""
266
267
- #: ../wp-paginate.php:702
268
msgid ""
269
"The number of links to always show at beginning and end of pagination. "
270
"Recommended value: 1"
271
msgstr ""
272
273
- #: ../wp-paginate.php:705
274
msgid "Page Gap:"
275
msgstr ""
276
277
- #: ../wp-paginate.php:712
278
msgid ""
279
"The minimum number of pages in a gap before an ellipsis (...) is added. "
280
"Recommended value: 3"
281
msgstr ""
282
283
- #: ../wp-paginate.php:757
284
msgid "Need Support?"
285
msgstr ""
286
287
- #: ../wp-paginate.php:758
288
#, php-format
289
msgid ""
290
"For questions, issues or feature requests, please post them in the %s and "
291
"make sure to tag the post with wp-paginate."
292
msgstr ""
293
294
- #: ../wp-paginate.php:804
295
msgid "You do not have sufficient permissions to edit plugins for this site."
296
msgstr ""
297
298
- #: ../wp-paginate.php:833
299
#, php-format
300
msgid "File %s edited successfully."
301
msgstr ""
302
303
- #: ../wp-paginate.php:835
304
msgid "Not enough permissions to create or update the file"
305
msgstr ""
306
307
- #: ../wp-paginate.php:846
308
msgid "Learn more"
309
msgstr ""
310
311
- #: ../wp-paginate.php:862
312
msgid "These styles will be added to the header on all pages of your site."
313
msgstr ""
314
315
- #: ../wp-paginate.php:866
316
msgid "Editing"
317
msgstr ""
318
319
- #: ../wp-paginate.php:868
320
msgid "Browsing"
321
msgstr ""
322
323
- #: ../wp-paginate.php:871
324
msgid "Activate"
325
msgstr ""
326
327
- #: ../wp-paginate.php:876
328
msgid "Save Changes"
329
msgstr ""
330
331
- #: ../wp-paginate.php:880
332
#, php-format
333
msgid ""
334
"You need to make this files writable before you can save your changes. See "
335
"%s the Codex %s for more information."
336
msgstr ""
337
338
- #: ../wp-paginate.php:989
339
msgid "Love WP-Paginate?"
340
msgstr ""
341
342
- #: ../wp-paginate.php:990
343
msgid "Your rating is a big help! We really appreciate it!"
344
msgstr ""
345
346
- #: ../wp-paginate.php:993
347
msgid "I've already left a review"
348
msgstr ""
349
350
- #: ../wp-paginate.php:994
351
msgid "Maybe Later"
352
msgstr ""
353
354
- #: ../wp-paginate.php:995
355
msgid "Sure! I'd love to!"
356
msgstr ""
357
358
- #: ../wp-paginate.php:1007 ../wp-paginate.php:1021
359
msgid "missing nonce!"
360
msgstr ""
7
msgstr ""
8
"Project-Id-Version: WP-Paginate 1.33\n"
9
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-paginate\n"
10
+ "POT-Creation-Date: 2017-01-31 14:37+0100\n"
11
+ "PO-Revision-Date: 2017-01-31 14:37+0100\n"
12
"Last-Translator: Maxgalleria <support@maxfoundry.com>\n"
13
"Language-Team: <support@maxfoundry.com>\n"
14
"Language: en_US\n"
22
"X-Poedit-KeywordsList: __;_e\n"
23
"X-Poedit-SearchPath-0: ..\n"
24
25
+ #: ../wp-paginate.php:129
26
msgid "Function only"
27
msgstr ""
28
29
+ #: ../wp-paginate.php:130
30
msgid "Below the Content"
31
msgstr ""
32
33
+ #: ../wp-paginate.php:131
34
msgid "Above the Content"
35
msgstr ""
36
37
+ #: ../wp-paginate.php:132
38
msgid "Above and Below the Content"
39
msgstr ""
40
41
+ #: ../wp-paginate.php:136
42
msgid "inherit"
43
msgstr ""
44
45
+ #: ../wp-paginate.php:137
46
msgid "initial"
47
msgstr ""
48
49
+ #: ../wp-paginate.php:138
50
msgid "Arial"
51
msgstr ""
52
53
+ #: ../wp-paginate.php:139
54
msgid "Georgia"
55
msgstr ""
56
57
+ #: ../wp-paginate.php:140
58
msgid "Tahoma"
59
msgstr ""
60
61
+ #: ../wp-paginate.php:141
62
msgid "Times New Roman"
63
msgstr ""
64
65
+ #: ../wp-paginate.php:142
66
msgid "Trebuchet MS"
67
msgstr ""
68
69
+ #: ../wp-paginate.php:143
70
msgid "Verdana"
71
msgstr ""
72
73
+ #: ../wp-paginate.php:147
74
msgid "Grey Buttons"
75
msgstr ""
76
77
+ #: ../wp-paginate.php:148
78
msgid "Blue Buttons"
79
msgstr ""
80
81
+ #: ../wp-paginate.php:494 ../wp-paginate.php:550
82
msgid "Settings"
83
msgstr ""
84
85
+ #: ../wp-paginate.php:537
86
msgid "Success! Your changes were successfully saved!"
87
msgstr ""
88
89
+ #: ../wp-paginate.php:540
90
msgid "Whoops! There was a problem with the data you posted. Please try again."
91
msgstr ""
92
93
+ #: ../wp-paginate.php:551
94
msgid "Custom CSS"
95
msgstr ""
96
97
+ #: ../wp-paginate.php:552
98
msgid "Upgrade to Pro"
99
msgstr ""
100
101
+ #: ../wp-paginate.php:559
102
msgid "General"
103
msgstr ""
104
105
+ #: ../wp-paginate.php:562
106
msgid "Pagination Label:"
107
msgstr ""
108
109
+ #: ../wp-paginate.php:564
110
msgid "The optional text/HTML to display before the list of pages."
111
msgstr ""
112
113
+ #: ../wp-paginate.php:567
114
msgid "Previous Page:"
115
msgstr ""
116
117
+ #: ../wp-paginate.php:569
118
msgid "The text/HTML to display for the previous page link."
119
msgstr ""
120
121
+ #: ../wp-paginate.php:572
122
msgid "Next Page:"
123
msgstr ""
124
125
+ #: ../wp-paginate.php:574
126
msgid "The text/HTML to display for the next page link."
127
msgstr ""
128
129
+ #: ../wp-paginate.php:578
130
msgid "Location &amp; Position"
131
msgstr ""
132
133
+ #: ../wp-paginate.php:581
134
msgid "Everywhere:"
135
msgstr ""
136
137
+ #: ../wp-paginate.php:589
138
msgid "Display pagination everywhere. (Comments pagination not included.)"
139
msgstr ""
140
141
+ #: ../wp-paginate.php:592
142
msgid "Home Page:"
143
msgstr ""
144
145
+ #: ../wp-paginate.php:600
146
msgid "Display pagination on the home page."
147
msgstr ""
148
149
+ #: ../wp-paginate.php:603
150
msgid "Blog Page:"
151
msgstr ""
152
153
+ #: ../wp-paginate.php:611
154
msgid "Display pagination on the blog page."
155
msgstr ""
156
157
+ #: ../wp-paginate.php:614
158
msgid "Search Page:"
159
msgstr ""
160
161
+ #: ../wp-paginate.php:622
162
msgid "Display pagination on the search page."
163
msgstr ""
164
165
+ #: ../wp-paginate.php:625
166
msgid "Category Pages:"
167
msgstr ""
168
169
+ #: ../wp-paginate.php:633
170
msgid "Display pagination on category pages."
171
msgstr ""
172
173
+ #: ../wp-paginate.php:636
174
msgid "Archive Pages:"
175
msgstr ""
176
177
+ #: ../wp-paginate.php:644
178
msgid "Display pagination on archive pages."
179
msgstr ""
180
181
+ #: ../wp-paginate.php:669
182
msgid "Position:"
183
msgstr ""
184
185
+ #: ../wp-paginate.php:683
186
msgid "Where to display the pagination on the page."
187
msgstr ""
188
189
+ #: ../wp-paginate.php:686
190
msgid "Hide Standard Pagination:"
191
msgstr ""
192
193
+ #: ../wp-paginate.php:694
194
msgid "Hide the standard theme default pagaination."
195
msgstr ""
196
197
+ #: ../wp-paginate.php:698
198
msgid "Apperance"
199
msgstr ""
200
201
+ #: ../wp-paginate.php:701
202
msgid "Pagination Font:"
203
msgstr ""
204
205
+ #: ../wp-paginate.php:715
206
msgid "Select the font to use with the pagination."
207
msgstr ""
208
209
+ #: ../wp-paginate.php:718
210
msgid "Button Style:"
211
msgstr ""
212
213
+ #: ../wp-paginate.php:746
214
msgid "Advanced Settings"
215
msgstr ""
216
217
+ #: ../wp-paginate.php:749
218
msgid "Before Markup:"
219
msgstr ""
220
221
+ #: ../wp-paginate.php:751
222
msgid "The HTML markup to display before the pagination code."
223
msgstr ""
224
225
+ #: ../wp-paginate.php:754
226
msgid "After Markup:"
227
msgstr ""
228
229
+ #: ../wp-paginate.php:756
230
msgid "The HTML markup to display after the pagination code."
231
msgstr ""
232
233
+ #: ../wp-paginate.php:759
234
msgid "Markup Display:"
235
msgstr ""
236
237
+ #: ../wp-paginate.php:761
238
msgid "Show Before Markup and After Markup, even if the page list is empty?"
239
msgstr ""
240
241
+ #: ../wp-paginate.php:764
242
msgid "WP-Paginate CSS File:"
243
msgstr ""
244
245
+ #: ../wp-paginate.php:766
246
#, php-format
247
msgid ""
248
"Include the default stylesheet wp-paginate.css? WP-Paginate will first look "
250
"code>)."
251
msgstr ""
252
253
+ #: ../wp-paginate.php:769
254
msgid "Page Range:"
255
msgstr ""
256
257
+ #: ../wp-paginate.php:776
258
msgid ""
259
"The number of page links to show before and after the current page. "
260
"Recommended value: 3"
261
msgstr ""
262
263
+ #: ../wp-paginate.php:779
264
msgid "Page Anchors:"
265
msgstr ""
266
267
+ #: ../wp-paginate.php:786
268
msgid ""
269
"The number of links to always show at beginning and end of pagination. "
270
"Recommended value: 1"
271
msgstr ""
272
273
+ #: ../wp-paginate.php:789
274
msgid "Page Gap:"
275
msgstr ""
276
277
+ #: ../wp-paginate.php:796
278
msgid ""
279
"The minimum number of pages in a gap before an ellipsis (...) is added. "
280
"Recommended value: 3"
281
msgstr ""
282
283
+ #: ../wp-paginate.php:841
284
msgid "Need Support?"
285
msgstr ""
286
287
+ #: ../wp-paginate.php:842
288
#, php-format
289
msgid ""
290
"For questions, issues or feature requests, please post them in the %s and "
291
"make sure to tag the post with wp-paginate."
292
msgstr ""
293
294
+ #: ../wp-paginate.php:888
295
msgid "You do not have sufficient permissions to edit plugins for this site."
296
msgstr ""
297
298
+ #: ../wp-paginate.php:917
299
#, php-format
300
msgid "File %s edited successfully."
301
msgstr ""
302
303
+ #: ../wp-paginate.php:919
304
msgid "Not enough permissions to create or update the file"
305
msgstr ""
306
307
+ #: ../wp-paginate.php:930
308
msgid "Learn more"
309
msgstr ""
310
311
+ #: ../wp-paginate.php:946
312
msgid "These styles will be added to the header on all pages of your site."
313
msgstr ""
314
315
+ #: ../wp-paginate.php:950
316
msgid "Editing"
317
msgstr ""
318
319
+ #: ../wp-paginate.php:952
320
msgid "Browsing"
321
msgstr ""
322
323
+ #: ../wp-paginate.php:955
324
msgid "Activate"
325
msgstr ""
326
327
+ #: ../wp-paginate.php:960
328
msgid "Save Changes"
329
msgstr ""
330
331
+ #: ../wp-paginate.php:964
332
#, php-format
333
msgid ""
334
"You need to make this files writable before you can save your changes. See "
335
"%s the Codex %s for more information."
336
msgstr ""
337
338
+ #: ../wp-paginate.php:1073
339
msgid "Love WP-Paginate?"
340
msgstr ""
341
342
+ #: ../wp-paginate.php:1074
343
msgid "Your rating is a big help! We really appreciate it!"
344
msgstr ""
345
346
+ #: ../wp-paginate.php:1077
347
msgid "I've already left a review"
348
msgstr ""
349
350
+ #: ../wp-paginate.php:1078
351
msgid "Maybe Later"
352
msgstr ""
353
354
+ #: ../wp-paginate.php:1079
355
msgid "Sure! I'd love to!"
356
msgstr ""
357
358
+ #: ../wp-paginate.php:1091 ../wp-paginate.php:1105
359
msgid "missing nonce!"
360
msgstr ""
361
+
362
+ #: ../wp-paginate.php:1123
363
+ msgid "maxfoundry logo"
364
+ msgstr ""
365
+
366
+ #: ../wp-paginate.php:1128
367
+ msgid "WP PAGINATE PRO"
368
+ msgstr ""
369
+
370
+ #: ../wp-paginate.php:1131 ../wp-paginate.php:1153
371
+ msgid "buy now button"
372
+ msgstr ""
373
+
374
+ #: ../wp-paginate.php:1134
375
+ msgid "wp-pagination pro logo"
376
+ msgstr ""
377
+
378
+ #: ../wp-paginate.php:1137
379
+ msgid ""
380
+ "WP-Paginate Pro come with 11 Beautiful<br>Preset Layouts and Multi Site "
381
+ "support!"
382
+ msgstr ""
383
+
384
+ #: ../wp-paginate.php:1141
385
+ msgid "WP Pagination Pro buttons styles"
386
+ msgstr ""
387
+
388
+ #: ../wp-paginate.php:1145
389
+ msgid ""
390
+ "Use These Customizer Settings to Get the<br>Exact Look and Feel You Want"
391
+ msgstr ""
392
+
393
+ #: ../wp-paginate.php:1149
394
+ msgid "WP Pagination Por button Style customizer"
395
+ msgstr ""
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
Contributors: maxfoundry, emartin24, AlanP57
3
Tags: paginate, pagination, navigation, page, wp-paginate, comments, rtl, seo, usability
4
Requires at least: 2.6.0 (2.7.0 for comments pagination)
5
- Tested up to: 4.7.1
6
- Stable tag: 2.0.0
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
@@ -159,6 +159,9 @@ Example (also applies to `wp_paginate_comments()`):
159
When calling `wp_paginate_comments()`, WP-Paginate adds an extra class to the `ol` element, `wp-paginate-comments`.
160
161
== Changelog ==
162
= 2.0.0 =
163
* Added new button styles
164
* Added the ability to select the font
2
Contributors: maxfoundry, emartin24, AlanP57
3
Tags: paginate, pagination, navigation, page, wp-paginate, comments, rtl, seo, usability
4
Requires at least: 2.6.0 (2.7.0 for comments pagination)
5
+ Tested up to: 4.7.2
6
+ Stable tag: 2.0.1
7
License: GPLv2 or later
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
159
When calling `wp_paginate_comments()`, WP-Paginate adds an extra class to the `ol` element, `wp-paginate-comments`.
160
161
== Changelog ==
162
+ = 2.0.1 =
163
+ * fixed undefined index notices
164
+
165
= 2.0.0 =
166
* Added new button styles
167
* Added the ability to select the font
wp-paginate.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: WP-Paginate
4
Plugin URI: https://wordpress.org/plugins/wp-paginate/
5
Description: A simple and flexible pagination plugin for WordPress posts and comments.
6
- Version: 2.0.0
7
Author: Max Foundry
8
Author URI: http://maxfoundry.com
9
Text Domain: 'wp-paginate'
@@ -59,7 +59,7 @@ if (!class_exists('WPPaginate')) {
59
/**
60
* @var string The plugin version
61
*/
62
- public $version = '2.0.0';
63
64
/**
65
* @var string The options string name for this plugin
@@ -178,18 +178,22 @@ if (!class_exists('WPPaginate')) {
178
}
179
180
public function init_pagination() {
181
-
182
- if ($this->options['position'] === 'above' || $this->options['position'] === 'both')
183
- add_filter( 'loop_start', array(&$this, 'add_pagination_to_page_top'));
184
-
185
- if ($this->options['position'] === 'below' || $this->options['position'] === 'both')
186
- add_filter( 'loop_end', array(&$this, 'add_pagination_to_page_bottom'));
187
188
- if ($this->options['everywhere'] && ($this->options['position'] === 'below' || $this->options['position'] === 'both'))
189
- add_filter( 'wp_link_pages', 'add_pagination_to_page_bottom', 10, 2 );
190
191
- if ($this->options['everywhere'] && ($this->options['position'] === 'above' || $this->options['position'] === 'both'))
192
- add_filter( 'wp_link_pages', 'add_pagination_to_page_top', 10, 2 );
193
194
}
195
@@ -281,10 +285,29 @@ if (!class_exists('WPPaginate')) {
281
282
$r = wp_parse_args($args, $this->options);
283
extract($r, EXTR_SKIP);
284
- $preset = $this->options['preset'];
285
- $font = $this->options['font'];
286
- $before = stripslashes(html_entity_decode($this->options['before']));
287
- $after = stripslashes(html_entity_decode($this->options['after']));
288
289
if (!isset($page) && !isset($pages)) {
290
global $wp_query;
@@ -537,17 +560,17 @@ if (!class_exists('WPPaginate')) {
537
<table class="form-table">
538
<tr valign="top">
539
<th scope="row"><?php _e('Pagination Label:', 'wp-paginate'); ?></th>
540
- <td><input name="title" type="text" id="title" size="40" value="<?php echo stripslashes(htmlspecialchars($this->options['title'])); ?>"/>
541
<span class="description"><?php _e('The optional text/HTML to display before the list of pages.', 'wp-paginate'); ?></span></td>
542
</tr>
543
<tr valign="top">
544
<th scope="row"><?php _e('Previous Page:', 'wp-paginate'); ?></th>
545
- <td><input name="previouspage" type="text" id="previouspage" size="40" value="<?php echo stripslashes(htmlspecialchars($this->options['previouspage'])); ?>"/>
546
<span class="description"><?php _e('The text/HTML to display for the previous page link.', 'wp-paginate'); ?></span></td>
547
</tr>
548
<tr valign="top">
549
<th scope="row"><?php _e('Next Page:', 'wp-paginate'); ?></th>
550
- <td><input name="nextpage" type="text" id="nextpage" size="40" value="<?php echo stripslashes(htmlspecialchars($this->options['nextpage'])); ?>"/>
551
<span class="description"><?php _e('The text/HTML to display for the next page link.', 'wp-paginate'); ?></span></td>
552
</tr>
553
</table>
@@ -557,32 +580,68 @@ if (!class_exists('WPPaginate')) {
557
<tr valign="top">
558
<th scope="row"><?php _e('Everywhere:', 'wp-paginate'); ?></th>
559
<td><label for="everywhere">
560
- <input class="everywhere-cb" type="checkbox" id="everywhere" name="everywhere" <?php echo ($this->options['everywhere'] === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination everywhere. (Comments pagination not included.)', 'wp-paginate'); ?></label></td>
561
</tr>
562
<tr valign="top">
563
<th scope="row"><?php _e('Home Page:', 'wp-paginate'); ?></th>
564
<td><label for="home-page">
565
- <input class="not-everywhere-cb" type="checkbox" id="home-page" name="home-page" <?php echo ($this->options['home-page'] === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination on the home page.', 'wp-paginate'); ?></label></td>
566
</tr>
567
<tr valign="top">
568
<th scope="row"><?php _e('Blog Page:', 'wp-paginate'); ?></th>
569
<td><label for="blog-page">
570
- <input class="not-everywhere-cb" type="checkbox" id="blog-page" name="blog-page" <?php echo ($this->options['blog-page'] === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination on the blog page.', 'wp-paginate'); ?></label></td>
571
</tr>
572
<tr valign="top">
573
<th scope="row"><?php _e('Search Page:', 'wp-paginate'); ?></th>
574
- <td><label for="search-page">
575
- <input class="not-everywhere-cb" type="checkbox" id="search-page" name="search-page" <?php echo ($this->options['search-page'] === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination on the search page.', 'wp-paginate'); ?></label></td>
576
</tr>
577
<tr valign="top">
578
<th scope="row"><?php _e('Category Pages:', 'wp-paginate'); ?></th>
579
<td><label for="category-page">
580
- <input class="not-everywhere-cb" type="checkbox" id="search-page" name="category-page" <?php echo ($this->options['category-page'] === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination on category pages.', 'wp-paginate'); ?></label></td>
581
</tr>
582
<tr valign="top">
583
<th scope="row"><?php _e('Archive Pages:', 'wp-paginate'); ?></th>
584
<td><label for="archive-page">
585
- <input class="not-everywhere-cb" type="checkbox" id="archive-page" name="archive-page" <?php echo ($this->options['archive-page'] === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination on archive pages.', 'wp-paginate'); ?></label></td>
586
</tr>
587
588
<script>
@@ -608,10 +667,16 @@ if (!class_exists('WPPaginate')) {
608
609
<tr valign="top">
610
<th scope="row"><?php _e('Position:', 'wp-paginate'); ?></th>
611
- <td>
612
<select name="position" id="range">
613
<?php foreach ($this->positions as $key => $name) { ?>
614
- <?php $selected = ($this->options['position'] == $key) ? 'selected="selected"' : ''; ?>
615
<option value="<?php echo $key ?>" <?php echo $selected ?>><?php echo $name ?></option>
616
<?php } ?>
617
</select>
@@ -620,7 +685,13 @@ if (!class_exists('WPPaginate')) {
620
<tr valign="top">
621
<th scope="row"><?php _e('Hide Standard Pagination:', 'wp-paginate'); ?></th>
622
<td><label for="hide-standard-pagination">
623
- <input type="checkbox" id="hide-standard-pagination" name="hide-standard-pagination" <?php echo ($this->options['hide-standard-pagination'] === true) ? "checked='checked'" : ""; ?>/> <?php _e('Hide the standard theme default pagaination.', 'wp-paginate'); ?></label></td>
624
</tr>
625
</table>
626
<p>&nbsp;</p>
@@ -629,9 +700,15 @@ if (!class_exists('WPPaginate')) {
629
<tr valign="top">
630
<th scope="row"><?php _e('Pagination Font:', 'wp-paginate'); ?></th>
631
<td>
632
<select name="font" id="font">
633
<?php foreach ($this->fonts as $key => $name) { ?>
634
- <?php $selected = ($this->options['font'] == $key) ? 'selected="selected"' : ''; ?>
635
<option value="<?php echo $key ?>" <?php echo $selected ?>><?php echo $name ?></option>
636
<?php } ?>
637
</select>
@@ -641,13 +718,20 @@ if (!class_exists('WPPaginate')) {
641
<th scope="row"><?php _e('Button Style:', 'wp-paginate'); ?></th>
642
<td>
643
<table class="button-styles">
644
<?php foreach($this->presets as $preset ) { ?>
645
<tr>
646
<td>
647
<?php echo $preset[1]; ?>
648
</td>
649
- <td>
650
- <input type="radio" name="preset" id="preset" value="<?php echo $preset[0]; ?>" <?php echo ($this->options['preset'] === $preset[0]) ? 'checked' : ''; ?>> </td>
651
</td>
652
<td>
653
<img alt="<?php echo $preset[1]; ?> image" src="<?php echo $this->pluginurl . "images/" . $preset[2]; ?>" width="326" height="70">
@@ -663,12 +747,12 @@ if (!class_exists('WPPaginate')) {
663
<table class="form-table">
664
<tr valign="top">
665
<th scope="row"><?php _e('Before Markup:', 'wp-paginate'); ?></th>
666
- <td><input name="before" type="text" id="before" size="40" value="<?php echo stripslashes(wp_kses_decode_entities($this->options['before'])); ?>"/>
667
<span class="description"><?php _e('The HTML markup to display before the pagination code.', 'wp-paginate'); ?></span></td>
668
</tr>
669
<tr valign="top">
670
<th scope="row"><?php _e('After Markup:', 'wp-paginate'); ?></th>
671
- <td><input name="after" type="text" id="after" size="40" value="<?php echo stripslashes(wp_kses_decode_entities($this->options['after'])); ?>"/>
672
<span class="description"><?php _e('The HTML markup to display after the pagination code.', 'wp-paginate'); ?></span></td>
673
</tr>
674
<tr valign="top">
@@ -928,7 +1012,7 @@ if (!class_exists('WPPaginate')) {
928
<style type="text/css">
929
<?php
930
$classes = '';
931
- if($this->options['hide-standard-pagination']) {
932
//$hide_comments
933
$classes .=
934
'.archive #nav-above,
3
Plugin Name: WP-Paginate
4
Plugin URI: https://wordpress.org/plugins/wp-paginate/
5
Description: A simple and flexible pagination plugin for WordPress posts and comments.
6
+ Version: 2.0.1
7
Author: Max Foundry
8
Author URI: http://maxfoundry.com
9
Text Domain: 'wp-paginate'
59
/**
60
* @var string The plugin version
61
*/
62
+ public $version = '2.0.1';
63
64
/**
65
* @var string The options string name for this plugin
178
}
179
180
public function init_pagination() {
181
+
182
+ if(isset($this->options['everywhere']) && isset($this->options['position'])) {
183
184
+ if ($this->options['position'] === 'above' || $this->options['position'] === 'both')
185
+ add_filter( 'loop_start', array($this, 'add_pagination_to_page_top'));
186
+
187
+ if ($this->options['position'] === 'below' || $this->options['position'] === 'both')
188
+ add_filter( 'loop_end', array($this, 'add_pagination_to_page_bottom'));
189
+
190
+ if ($this->options['everywhere'] && ($this->options['position'] === 'below' || $this->options['position'] === 'both'))
191
+ add_filter( 'wp_link_pages', array($this, 'add_pagination_to_page_bottom'), 10, 2 );
192
+
193
+ if ($this->options['everywhere'] && ($this->options['position'] === 'above' || $this->options['position'] === 'both'))
194
+ add_filter( 'wp_link_pages', array($this, 'add_pagination_to_page_top'), 10, 2 );
195
196
+ }
197
198
}
199
285
286
$r = wp_parse_args($args, $this->options);
287
extract($r, EXTR_SKIP);
288
+
289
+ if(isset($this->options['preset']))
290
+ $preset = $this->options['preset'];
291
+ else
292
+ $preset = 'default';
293
+
294
+ if(isset($this->options['font']))
295
+ $font = $this->options['font'];
296
+ else
297
+ $font = 'font-inherit';
298
+
299
+ if(isset($this->options['before']))
300
+ $before_option = $this->options['before'];
301
+ else
302
+ $before_option = '<div class="navigation">';
303
+
304
+ if(isset($this->options['after']))
305
+ $after_option = $this->options['after'];
306
+ else
307
+ $after_option = '</div>';
308
+
309
+ $before = stripslashes(html_entity_decode($before_option));
310
+ $after = stripslashes(html_entity_decode($after_option));
311
312
if (!isset($page) && !isset($pages)) {
313
global $wp_query;
560
<table class="form-table">
561
<tr valign="top">
562
<th scope="row"><?php _e('Pagination Label:', 'wp-paginate'); ?></th>
563
+ <td><input name="title" type="text" id="title" size="40" value="<?php echo esc_attr(stripslashes(htmlspecialchars($this->options['title']))); ?>"/>
564
<span class="description"><?php _e('The optional text/HTML to display before the list of pages.', 'wp-paginate'); ?></span></td>
565
</tr>
566
<tr valign="top">
567
<th scope="row"><?php _e('Previous Page:', 'wp-paginate'); ?></th>
568
+ <td><input name="previouspage" type="text" id="previouspage" size="40" value="<?php echo esc_attr(stripslashes(htmlspecialchars($this->options['previouspage']))); ?>"/>
569
<span class="description"><?php _e('The text/HTML to display for the previous page link.', 'wp-paginate'); ?></span></td>
570
</tr>
571
<tr valign="top">
572
<th scope="row"><?php _e('Next Page:', 'wp-paginate'); ?></th>
573
+ <td><input name="nextpage" type="text" id="nextpage" size="40" value="<?php echo esc_attr(stripslashes(htmlspecialchars($this->options['nextpage']))); ?>"/>
574
<span class="description"><?php _e('The text/HTML to display for the next page link.', 'wp-paginate'); ?></span></td>
575
</tr>
576
</table>
580
<tr valign="top">
581
<th scope="row"><?php _e('Everywhere:', 'wp-paginate'); ?></th>
582
<td><label for="everywhere">
583
+ <?php
584
+ if(isset($this->options['everywhere']))
585
+ $everywhere = $this->options['everywhere'];
586
+ else
587
+ $everywhere = false;
588
+ ?>
589
+ <input class="everywhere-cb" type="checkbox" id="everywhere" name="everywhere" <?php echo ($everywhere === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination everywhere. (Comments pagination not included.)', 'wp-paginate'); ?></label></td>
590
</tr>
591
<tr valign="top">
592
<th scope="row"><?php _e('Home Page:', 'wp-paginate'); ?></th>
593
<td><label for="home-page">
594
+ <?php
595
+ if(isset($this->options['home-page']))
596
+ $home_page = $this->options['home-page'];
597
+ else
598
+ $home_page = false;
599
+ ?>
600
+ <input class="not-everywhere-cb" type="checkbox" id="home-page" name="home-page" <?php echo ($home_page === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination on the home page.', 'wp-paginate'); ?></label></td>
601
</tr>
602
<tr valign="top">
603
<th scope="row"><?php _e('Blog Page:', 'wp-paginate'); ?></th>
604
<td><label for="blog-page">
605
+ <?php
606
+ if(isset($this->options['blog-page']))
607
+ $blog_page = $this->options['blog-page'];
608
+ else
609
+ $blog_page = false;
610
+ ?>
611
+ <input class="not-everywhere-cb" type="checkbox" id="blog-page" name="blog-page" <?php echo ($blog_page === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination on the blog page.', 'wp-paginate'); ?></label></td>
612
</tr>
613
<tr valign="top">
614
<th scope="row"><?php _e('Search Page:', 'wp-paginate'); ?></th>
615
+ <td><label for="search-page">
616
+ <?php
617
+ if(isset($this->options['search-page']))
618
+ $search_page = $this->options['search-page'];
619
+ else
620
+ $search_page = false;
621
+ ?>
622
+ <input class="not-everywhere-cb" type="checkbox" id="search-page" name="search-page" <?php echo ($search_page === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination on the search page.', 'wp-paginate'); ?></label></td>
623
</tr>
624
<tr valign="top">
625
<th scope="row"><?php _e('Category Pages:', 'wp-paginate'); ?></th>
626
<td><label for="category-page">
627
+ <?php
628
+ if(isset($this->options['category-page']))
629
+ $category_page = $this->options['category-page'];
630
+ else
631
+ $category_page = false;
632
+ ?>
633
+ <input class="not-everywhere-cb" type="checkbox" id="search-page" name="category-page" <?php echo ($category_page === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination on category pages.', 'wp-paginate'); ?></label></td>
634
</tr>
635
<tr valign="top">
636
<th scope="row"><?php _e('Archive Pages:', 'wp-paginate'); ?></th>
637
<td><label for="archive-page">
638
+ <?php
639
+ if(isset($this->options['archive-page']))
640
+ $archive_page = $this->options['archive-page'];
641
+ else
642
+ $archive_page = false;
643
+ ?>
644
+ <input class="not-everywhere-cb" type="checkbox" id="archive-page" name="archive-page" <?php echo ($archive_page === true) ? "checked='checked'" : ""; ?>/> <?php _e('Display pagination on archive pages.', 'wp-paginate'); ?></label></td>
645
</tr>
646
647
<script>
667
668
<tr valign="top">
669
<th scope="row"><?php _e('Position:', 'wp-paginate'); ?></th>
670
+ <td>
671
+ <?php
672
+ if(isset($this->options['position']))
673
+ $position = $this->options['position'];
674
+ else
675
+ $position = 'none';
676
+ ?>
677
<select name="position" id="range">
678
<?php foreach ($this->positions as $key => $name) { ?>
679
+ <?php $selected = ($position == $key) ? 'selected="selected"' : ''; ?>
680
<option value="<?php echo $key ?>" <?php echo $selected ?>><?php echo $name ?></option>
681
<?php } ?>
682
</select>
685
<tr valign="top">
686
<th scope="row"><?php _e('Hide Standard Pagination:', 'wp-paginate'); ?></th>
687
<td><label for="hide-standard-pagination">
688
+ <?php
689
+ if(isset($this->options['hide-standard-pagination']))
690
+ $hide_standard_pagination = $this->options['hide-standard-pagination'];
691
+ else
692
+ $hide_standard_pagination = 'none';
693
+ ?>
694
+ <input type="checkbox" id="hide-standard-pagination" name="hide-standard-pagination" <?php echo ($hide_standard_pagination === true) ? "checked='checked'" : ""; ?>/> <?php _e('Hide the standard theme default pagaination.', 'wp-paginate'); ?></label></td>
695
</tr>
696
</table>
697
<p>&nbsp;</p>
700
<tr valign="top">
701
<th scope="row"><?php _e('Pagination Font:', 'wp-paginate'); ?></th>
702
<td>
703
+ <?php
704
+ if(isset($this->options['font']))
705
+ $font = $this->options['font'];
706
+ else
707
+ $font = 'font-inherit';
708
+ ?>
709
<select name="font" id="font">
710
<?php foreach ($this->fonts as $key => $name) { ?>
711
+ <?php $selected = ($font == $key) ? 'selected="selected"' : ''; ?>
712
<option value="<?php echo $key ?>" <?php echo $selected ?>><?php echo $name ?></option>
713
<?php } ?>
714
</select>
718
<th scope="row"><?php _e('Button Style:', 'wp-paginate'); ?></th>
719
<td>
720
<table class="button-styles">
721
+ <?php
722
+ if(isset($this->options['preset'])) {
723
+ $preset_option = $this->options['preset'];
724
+ } else {
725
+ $preset_option = 'default';
726
+ }
727
+ ?>
728
<?php foreach($this->presets as $preset ) { ?>
729
<tr>
730
<td>
731
<?php echo $preset[1]; ?>
732
</td>
733
+ <td>
734
+ <input type="radio" name="preset" id="preset" value="<?php echo $preset[0]; ?>" <?php echo ($preset_option === $preset[0]) ? 'checked' : ''; ?>>
735
</td>
736
<td>
737
<img alt="<?php echo $preset[1]; ?> image" src="<?php echo $this->pluginurl . "images/" . $preset[2]; ?>" width="326" height="70">
747
<table class="form-table">
748
<tr valign="top">
749
<th scope="row"><?php _e('Before Markup:', 'wp-paginate'); ?></th>
750
+ <td><input name="before" type="text" id="before" size="40" value="<?php echo esc_attr(stripslashes(wp_kses_decode_entities($this->options['before']))); ?>"/>
751
<span class="description"><?php _e('The HTML markup to display before the pagination code.', 'wp-paginate'); ?></span></td>
752
</tr>
753
<tr valign="top">
754
<th scope="row"><?php _e('After Markup:', 'wp-paginate'); ?></th>
755
+ <td><input name="after" type="text" id="after" size="40" value="<?php echo esc_attr(stripslashes(wp_kses_decode_entities($this->options['after']))); ?>"/>
756
<span class="description"><?php _e('The HTML markup to display after the pagination code.', 'wp-paginate'); ?></span></td>
757
</tr>
758
<tr valign="top">
1012
<style type="text/css">
1013
<?php
1014
$classes = '';
1015
+ if(isset($this->options['hide-standard-pagination']) && $this->options['hide-standard-pagination']) {
1016
//$hide_comments
1017
$classes .=
1018
'.archive #nav-above,