WP-Paginate - Version 1.0.1

Version Description

  • Added I18n folder and wp-paginate.pot file
  • Fixed some internationalization and spelling errors
  • Updated readme.txt and added more details
Download this release

Release Info

Developer emartin24
Plugin Icon 128x128 WP-Paginate
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0 to 1.0.1

Files changed (5) hide show
  1. I18n/readme.txt +16 -0
  2. I18n/wp-paginate.pot +172 -0
  3. readme.txt +60 -4
  4. screenshot-2.png +0 -0
  5. wp-paginate.php +13 -13
I18n/readme.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ If you are interested in translating WP-Paginate, use wp-paginate.pot as a template to create a po file for the new translation file.
2
+
3
+ The resulting translated file should be named with the following format:
4
+ - wp-paginate-
5
+ - ISO 639 language code (lowercase)
6
+ - an underscore
7
+ - ISO 3166-1 alpha-2 country code (uppercase)
8
+ - .mo
9
+
10
+ So for an Italian translation, the file name would be wp-paginate-it_IT.mo
11
+
12
+ Please *do not* translate URL's or placeholders, such as %s.
13
+
14
+ Please send the translated file to eric@ericmmartin.com.
15
+
16
+ Thanks!
I18n/wp-paginate.pot ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # POT file for WP-Paginate.
2
+ # Copyright (C) 2009 Eric Martin
3
+ # This file is distributed under the same license as the WP-Paginate package.
4
+ # Eric Martin <eric@ericmmartin.com>, 2009.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-paginate\n"
11
+ "POT-Creation-Date: 2009-09-09 02:54+0000\n"
12
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=CHARSET\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+
19
+ #: wp-paginate.php:237
20
+ msgid "Settings"
21
+ msgstr ""
22
+
23
+ #: wp-paginate.php:262
24
+ msgid "Success! Your changes were successfully saved!"
25
+ msgstr ""
26
+
27
+ #: wp-paginate.php:265
28
+ msgid "Whoops! There was a problem with the data you posted. Please try again."
29
+ msgstr ""
30
+
31
+ #: wp-paginate.php:277
32
+ msgid "Pagination Text:"
33
+ msgstr ""
34
+
35
+ #: wp-paginate.php:279
36
+ msgid "The text to display before the list of pages."
37
+ msgstr ""
38
+
39
+ #: wp-paginate.php:282
40
+ msgid "Previous Page Text:"
41
+ msgstr ""
42
+
43
+ #: wp-paginate.php:284
44
+ msgid "The text to display for the previous page link."
45
+ msgstr ""
46
+
47
+ #: wp-paginate.php:287
48
+ msgid "Next Page Text:"
49
+ msgstr ""
50
+
51
+ #: wp-paginate.php:289
52
+ msgid "The text to display for the next page link."
53
+ msgstr ""
54
+
55
+ #: wp-paginate.php:293
56
+ msgid "Advanced Settings"
57
+ msgstr ""
58
+
59
+ #: wp-paginate.php:296
60
+ msgid "Before Markup:"
61
+ msgstr ""
62
+
63
+ #: wp-paginate.php:298
64
+ msgid "The HTML markup to display before the pagination code."
65
+ msgstr ""
66
+
67
+ #: wp-paginate.php:301
68
+ msgid "After Markup:"
69
+ msgstr ""
70
+
71
+ #: wp-paginate.php:303
72
+ msgid "The HTML markup to display after the pagination code."
73
+ msgstr ""
74
+
75
+ #: wp-paginate.php:306
76
+ msgid "Markup Display:"
77
+ msgstr ""
78
+
79
+ #: wp-paginate.php:308
80
+ msgid "Always show Markup, even when the page list is empty?"
81
+ msgstr ""
82
+
83
+ #: wp-paginate.php:311
84
+ msgid "CSS File:"
85
+ msgstr ""
86
+
87
+ #: wp-paginate.php:313
88
+ msgid "Deselect this option to prevent loading wp-paginate.css."
89
+ msgstr ""
90
+
91
+ #: wp-paginate.php:316
92
+ msgid "Page Range:"
93
+ msgstr ""
94
+
95
+ #: wp-paginate.php:323
96
+ msgid ""
97
+ "The number of page links to show before and after the current page. "
98
+ "Recommended value: 3"
99
+ msgstr ""
100
+
101
+ #: wp-paginate.php:326
102
+ msgid "Page Anchors:"
103
+ msgstr ""
104
+
105
+ #: wp-paginate.php:333
106
+ msgid ""
107
+ "The number of links to always show at beginning and end of pagination. "
108
+ "Recommended value: 1"
109
+ msgstr ""
110
+
111
+ #: wp-paginate.php:336
112
+ msgid "Page Gap:"
113
+ msgstr ""
114
+
115
+ #: wp-paginate.php:343
116
+ msgid ""
117
+ "The minimum number of pages in a gap before ellipses (...) are added. "
118
+ "Recommended value: 3"
119
+ msgstr ""
120
+
121
+ #: wp-paginate.php:350
122
+ msgid "Need Support?"
123
+ msgstr ""
124
+
125
+ #: wp-paginate.php:351
126
+ msgid ""
127
+ "For questions, issues or feature requests, please post them in the %s and "
128
+ "make sure to tag the post with wp-paginate."
129
+ msgstr ""
130
+
131
+ #: wp-paginate.php:352
132
+ msgid "Like To Contribute?"
133
+ msgstr ""
134
+
135
+ #: wp-paginate.php:353
136
+ msgid ""
137
+ "If you would like to contribute, the following is a list of ways you can "
138
+ "help:"
139
+ msgstr ""
140
+
141
+ #: wp-paginate.php:355
142
+ msgid "Translate WP-Paginate into your language"
143
+ msgstr ""
144
+
145
+ #: wp-paginate.php:356
146
+ msgid "Blog about or link to WP-Paginate so others can find out about it"
147
+ msgstr ""
148
+
149
+ #: wp-paginate.php:357
150
+ msgid "Report issues, provide feedback, request features, etc."
151
+ msgstr ""
152
+
153
+ #: wp-paginate.php:358
154
+ msgid "Rate WP-Paginate on the WordPress Plugins Page"
155
+ msgstr ""
156
+
157
+ #: wp-paginate.php:359
158
+ msgid "Make a donation"
159
+ msgstr ""
160
+
161
+ #: wp-paginate.php:361
162
+ msgid "Other Links"
163
+ msgstr ""
164
+
165
+ #: wp-paginate.php:364
166
+ msgid "My Blog"
167
+ msgstr ""
168
+
169
+ #. Description of an extension
170
+ msgid "A simple and flexible pagination plugin for WordPress."
171
+ msgstr ""
172
+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.ericmmartin.com/donate/
4
  Tags: paginate, pagination, navigation, page, wp-paginate
5
  Requires at least: 2.2.0
6
  Tested up to: 2.8.4
7
- Stable tag: 1.0
8
 
9
  WP-Paginate is a simple and flexible pagination plugin which provides users with better navigation for your WordPress site.
10
 
@@ -12,22 +12,78 @@ WP-Paginate is a simple and flexible pagination plugin which provides users with
12
 
13
  WP-Paginate is a simple and flexible pagination plugin which provides users with better navigation for your WordPress site.
14
 
15
- In addition to increasing the usability for your visitors, it has also been widely speculated that pagination increases the SEO of your site by providing more links to your content.
16
 
17
  == Installation ==
18
 
 
 
19
  1. Unzip the downloaded WP-Paginate zip file
20
  2. Upload the `wp-paginate` folder and its contents into the `wp-content/plugins/` directory of your WordPress installation
21
  3. Activate WP-Paginate from Plugins page
22
- 4. Configure the WP-Paginate settings, if necessary, from the WP-Paginate option in the Settings menu
23
 
24
- To configure the WP-Paginate options, click the Settings link on the Plugins page or the WP-Paginate link under the Settings menu.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  == Screenshots ==
27
 
28
  1. An example of the WP-Paginate display using the default options and styling
 
29
 
30
  == Changelog ==
31
 
 
 
 
 
 
32
  = 1.0 =
33
  * Initial release
4
  Tags: paginate, pagination, navigation, page, wp-paginate
5
  Requires at least: 2.2.0
6
  Tested up to: 2.8.4
7
+ Stable tag: 1.0.1
8
 
9
  WP-Paginate is a simple and flexible pagination plugin which provides users with better navigation for your WordPress site.
10
 
12
 
13
  WP-Paginate is a simple and flexible pagination plugin which provides users with better navigation for your WordPress site.
14
 
15
+ In addition to increasing the usability for your visitors, it has also been widely reported that pagination increases the SEO of your site by providing more links to your content.
16
 
17
  == Installation ==
18
 
19
+ *Install and Activate*
20
+
21
  1. Unzip the downloaded WP-Paginate zip file
22
  2. Upload the `wp-paginate` folder and its contents into the `wp-content/plugins/` directory of your WordPress installation
23
  3. Activate WP-Paginate from Plugins page
 
24
 
25
+ *Implement*
26
+
27
+ 1) Open the theme files where you'd like pagination to be used. Usually this is the index.php, archive.php and search.php
28
+
29
+ 2) Replace your existing `previous_posts_link()` and `next_posts_link()` code block with the following:
30
+
31
+ <?php if(function_exists("wp_paginate")) {
32
+ wp_paginate();
33
+ } ?>
34
+
35
+
36
+ *Configure*
37
+
38
+ 1) Configure the WP-Paginate settings, if necessary, from the WP-Paginate option in the Settings menu
39
+
40
+ 2) The styles can be changed with the following methods:
41
+
42
+ * Add a `wp-paginate.css` file in your theme's directory and place your custom CSS there
43
+ * Add your custom CSS to your theme's `styles.css`
44
+ * Modify the `wp-paginate.css` file in the wp-paginate plugin directory
45
+
46
+ *Note:* The first two options will ensure that WP-Paginate updates will not overwrite your custom styles.
47
+
48
+ == Frequently Asked Questions ==
49
+
50
+ = How can I override the default pagination settings? =
51
+
52
+ The `wp_paginate()` function takes one optional argument, in query string format, which allows you to override the global settings. The available options are:
53
+
54
+ * title - The text to display before the pagination links
55
+ * nextpage - The text to use for the next page link
56
+ * previouspage - The text to use for the previous page link
57
+ * before - The HTML or text to add before the pagination links
58
+ * after - The HTML or text to add after the pagination links
59
+ * empty - Display the markup code even when the page list is empty
60
+ * range - The number of page links to show before and after the current page
61
+ * anchor - The number of links to always show at beginning and end of pagination
62
+ * gap - The minimum number of pages before a gap is replaced with ellipses (...)
63
+
64
+ You can even control the current page and number of pages with:
65
+
66
+ * page - The current page. This function will automatically determine the value
67
+ * pages - The total number of pages. This function will automatically determine the value
68
+
69
+ Example:
70
+
71
+ <?php if(function_exists("wp_paginate")) {
72
+ wp_paginate("range=4&anchor=2&nextpage=Next&previouspage=Previous");
73
+ } ?>
74
+
75
 
76
  == Screenshots ==
77
 
78
  1. An example of the WP-Paginate display using the default options and styling
79
+ 2. The WP-Paginate admin settings page
80
 
81
  == Changelog ==
82
 
83
+ = 1.0.1 =
84
+ * Added I18n folder and wp-paginate.pot file
85
+ * Fixed some internationalization and spelling errors
86
+ * Updated readme.txt and added more details
87
+
88
  = 1.0 =
89
  * Initial release
screenshot-2.png ADDED
Binary file
wp-paginate.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP-Paginate
4
  Plugin URI: http://www.ericmmartin.com/projects/wp-paginate/
5
  Description: A simple and flexible pagination plugin for WordPress.
6
  Author: Eric Martin
7
- Version: 1.0
8
  Author URI: http://www.ericmmartin.com
9
  */
10
 
@@ -40,7 +40,7 @@ if (!defined('WP_PLUGIN_DIR') )
40
 
41
  if (!class_exists('WPPaginate')) {
42
  class WPPaginate {
43
- var $version = '1.0';
44
 
45
  //This is where the class variables go, don't forget to use @var to tell what they're for
46
  /**
@@ -80,7 +80,7 @@ if (!class_exists('WPPaginate')) {
80
  $name = dirname(plugin_basename(__FILE__));
81
 
82
  //Language Setup
83
- load_plugin_textdomain($this->localizationDomain, false, "$name/lang/");
84
 
85
  //"Constants" setup
86
  $this->pluginurl = WP_PLUGIN_URL . "/$name/";
@@ -259,7 +259,7 @@ if (!class_exists('WPPaginate')) {
259
 
260
  $this->save_admin_options();
261
 
262
- echo '<div class="updated"><p>' . __('Success! Your changes were sucessfully saved!', $this->localizationDomain) . '</p></div>';
263
  }
264
  else {
265
  echo '<div class="error"><p>' . __('Whoops! There was a problem with the data you posted. Please try again.', $this->localizationDomain) . '</p></div>';
@@ -330,7 +330,7 @@ if (!class_exists('WPPaginate')) {
330
  <option value="<?php echo $i; ?>" <?php echo ($i == $this->options['anchor']) ? "selected='selected'" : ""; ?>><?php echo $i; ?></option>
331
  <?php endfor; ?>
332
  </select>
333
- <span class="description"><?php _e('The number of links to always show at begining and end of pagination. Recommneded value: 1', $this->localizationDomain); ?></span></td>
334
  </tr>
335
  <tr valign="top">
336
  <th scope="row"><?php _e('Page Gap:', $this->localizationDomain); ?></th>
@@ -348,21 +348,21 @@ if (!class_exists('WPPaginate')) {
348
  </p>
349
  </form>
350
  <h2><?php _e('Need Support?', $this->localizationDomain); ?></h2>
351
- <p><?php _e('For questions, issues or feature requests, please post them in the <a href="http://wordpress.org/support/forum/10">WordPress Forum</a> and make sure to tag the post with wp-paginate.', $this->localizationDomain); ?></p>
352
  <h2><?php _e('Like To Contribute?', $this->localizationDomain); ?></h2>
353
  <p><?php _e('If you would like to contribute, the following is a list of ways you can help:', $this->localizationDomain); ?></p>
354
  <ul>
355
- <li>&raquo; <?php _e('Translate WP-Paginate into your language.', $this->localizationDomain); ?></li>
356
- <li>&raquo; <?php _e('Blog about or link to WP-Paginate so others can find out about it.', $this->localizationDomain); ?></li>
357
  <li>&raquo; <?php _e('Report issues, provide feedback, request features, etc.', $this->localizationDomain); ?></li>
358
- <li>&raquo; <a href="http://wordpress.org/extend/plugins/wp-paginate/"><?php _e('Rate WP-Paginate on the WordPress Plugins Page', $this->localizationDomain); ?></a>.</li>
359
- <li>&raquo; <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KUL9VQ6U5VYCE&lc=US&item_name=Eric%20Martin%20%28ericmmartin%2ecom%29&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted"><?php _e('Make a donation', $this->localizationDomain); ?></a>.</li>
360
  </ul>
361
  <h2><?php _e('Other Links', $this->localizationDomain); ?></h2>
362
  <ul>
363
- <li>&raquo; <a href="http://twitter.com/ericmmartin">@ericmmartin <?php _e('on Twitter', $this->localizationDomain); ?></a></li>
364
- <li>&raquo; <a href="http://www.ericmmartin.com"><?php _e('My Blog', $this->localizationDomain); ?></a></li>
365
- <li>&raquo; <a href="http://www.ericmmartin.com/projects/smcf/"><?php _e('SimpleModal Contact Form (SMCF) - WordPress Plugin', $this->localizationDomain); ?></a></li>
366
  </ul>
367
  </div>
368
 
4
  Plugin URI: http://www.ericmmartin.com/projects/wp-paginate/
5
  Description: A simple and flexible pagination plugin for WordPress.
6
  Author: Eric Martin
7
+ Version: 1.0.1
8
  Author URI: http://www.ericmmartin.com
9
  */
10
 
40
 
41
  if (!class_exists('WPPaginate')) {
42
  class WPPaginate {
43
+ var $version = '1.0.1';
44
 
45
  //This is where the class variables go, don't forget to use @var to tell what they're for
46
  /**
80
  $name = dirname(plugin_basename(__FILE__));
81
 
82
  //Language Setup
83
+ load_plugin_textdomain($this->localizationDomain, false, "$name/I18n/");
84
 
85
  //"Constants" setup
86
  $this->pluginurl = WP_PLUGIN_URL . "/$name/";
259
 
260
  $this->save_admin_options();
261
 
262
+ echo '<div class="updated"><p>' . __('Success! Your changes were successfully saved!', $this->localizationDomain) . '</p></div>';
263
  }
264
  else {
265
  echo '<div class="error"><p>' . __('Whoops! There was a problem with the data you posted. Please try again.', $this->localizationDomain) . '</p></div>';
330
  <option value="<?php echo $i; ?>" <?php echo ($i == $this->options['anchor']) ? "selected='selected'" : ""; ?>><?php echo $i; ?></option>
331
  <?php endfor; ?>
332
  </select>
333
+ <span class="description"><?php _e('The number of links to always show at beginning and end of pagination. Recommended value: 1', $this->localizationDomain); ?></span></td>
334
  </tr>
335
  <tr valign="top">
336
  <th scope="row"><?php _e('Page Gap:', $this->localizationDomain); ?></th>
348
  </p>
349
  </form>
350
  <h2><?php _e('Need Support?', $this->localizationDomain); ?></h2>
351
+ <p><?php printf(__('For questions, issues or feature requests, please post them in the %s and make sure to tag the post with wp-paginate.', $this->localizationDomain), '<a href="http://wordpress.org/tags/wp-paginate?forum_id=10#postform">WordPress Forum</a>'); ?></p>
352
  <h2><?php _e('Like To Contribute?', $this->localizationDomain); ?></h2>
353
  <p><?php _e('If you would like to contribute, the following is a list of ways you can help:', $this->localizationDomain); ?></p>
354
  <ul>
355
+ <li>&raquo; <?php _e('Translate WP-Paginate into your language', $this->localizationDomain); ?></li>
356
+ <li>&raquo; <?php _e('Blog about or link to WP-Paginate so others can find out about it', $this->localizationDomain); ?></li>
357
  <li>&raquo; <?php _e('Report issues, provide feedback, request features, etc.', $this->localizationDomain); ?></li>
358
+ <li>&raquo; <a href="http://wordpress.org/extend/plugins/wp-paginate/"><?php _e('Rate WP-Paginate on the WordPress Plugins Page', $this->localizationDomain); ?></a></li>
359
+ <li>&raquo; <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KUL9VQ6U5VYCE&lc=US&item_name=Eric%20Martin%20%28ericmmartin%2ecom%29&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted"><?php _e('Make a donation', $this->localizationDomain); ?></a></li>
360
  </ul>
361
  <h2><?php _e('Other Links', $this->localizationDomain); ?></h2>
362
  <ul>
363
+ <li>&raquo; <a href="http://twitter.com/ericmmartin">@ericmmartin</a> on Twitter</li>
364
+ <li>&raquo; <a href="http://www.ericmmartin.com">EricMMartin.com</a></li>
365
+ <li>&raquo; <a href="http://www.ericmmartin.com/projects/smcf/">SimpleModal Contact Form (SMCF) - WordPress Plugin</a></li>
366
  </ul>
367
  </div>
368