WP-PageNavi - Version 2.86

Version Description

  • NEW: Bump to 4.0
  • NEW: Added rel=next and rel=previous
Download this release

Release Info

Developer GamerZ
Plugin Icon WP-PageNavi
Version 2.86
Comparing to
See all releases

Code changes from version 2.85 to 2.86

core.php CHANGED
@@ -87,6 +87,7 @@ function wp_pagenavi( $args = array() ) {
87
  if ( $paged > 1 && !empty( $options['prev_text'] ) ) {
88
  $out .= $instance->get_single( $paged - 1, $options['prev_text'], array(
89
  'class' => 'previouspostslink',
 
90
  ) );
91
  }
92
 
@@ -154,6 +155,7 @@ function wp_pagenavi( $args = array() ) {
154
  if ( $paged < $total_pages && !empty( $options['next_text'] ) ) {
155
  $out .= $instance->get_single( $paged + 1, $options['next_text'], array(
156
  'class' => 'nextpostslink',
 
157
  ) );
158
  }
159
 
@@ -288,7 +290,7 @@ class PageNavi_Core {
288
  static function init( $options ) {
289
  self::$options = $options;
290
 
291
- add_action( 'wp_print_styles', array( __CLASS__, 'stylesheets' ) );
292
  }
293
 
294
  static function stylesheets() {
87
  if ( $paged > 1 && !empty( $options['prev_text'] ) ) {
88
  $out .= $instance->get_single( $paged - 1, $options['prev_text'], array(
89
  'class' => 'previouspostslink',
90
+ 'rel' => 'prev'
91
  ) );
92
  }
93
 
155
  if ( $paged < $total_pages && !empty( $options['next_text'] ) ) {
156
  $out .= $instance->get_single( $paged + 1, $options['next_text'], array(
157
  'class' => 'nextpostslink',
158
+ 'rel' => 'next'
159
  ) );
160
  }
161
 
290
  static function init( $options ) {
291
  self::$options = $options;
292
 
293
+ add_action( 'wp_enqueue_scripts', array( __CLASS__, 'stylesheets' ) );
294
  }
295
 
296
  static function stylesheets() {
lang/wp-pagenavi-fr_FR.mo CHANGED
Binary file
lang/wp-pagenavi-fr_FR.po CHANGED
@@ -8,8 +8,8 @@ msgstr ""
8
  "Project-Id-Version: WP-PageNavi 2.70\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
10
  "POT-Creation-Date: 2010-04-11 15:18+0000\n"
11
- "PO-Revision-Date: 2010-04-16 15:27+0100\n"
12
- "Last-Translator: Lionel Chollet <lionel.chollet@gmail.com>\n"
13
  "Language-Team: Lionel Chollet <lionel.chollet@gmail.com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=utf-8\n"
@@ -98,15 +98,26 @@ msgid "Normal"
98
  msgstr "Normal"
99
 
100
  #: admin.php:110
101
- msgid "Drop Down List"
102
- msgstr "Menu déroulant"
103
 
104
  #: admin.php:115
105
  msgid "Always Show Page Navigation"
106
  msgstr "Toujours afficher la navigation WP-PageNavi"
107
 
 
 
 
 
 
 
 
 
 
 
 
108
  #: admin.php:118
109
- msgid "Show navigation even if there's only one page"
110
  msgstr "La navigation WP-PageNavi sera affichée même s’il n’y a qu’une seule page."
111
 
112
  #: admin.php:122
@@ -122,7 +133,7 @@ msgid "Larger page numbers are in addition to the normal page numbers. They are
122
  msgstr "Les étapes intermédiaires de pagination sont utiles sur les sites comprenant un très grand nombre d’articles."
123
 
124
  #: admin.php:135
125
- msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50"
126
  msgstr "Par exemple, WP-PageNavi affichera les liens vers les pages&nbsp;: 1, 2, 3, 4, 5, 10, 20, 30, 40, 50…"
127
 
128
  #: admin.php:136
8
  "Project-Id-Version: WP-PageNavi 2.70\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
10
  "POT-Creation-Date: 2010-04-11 15:18+0000\n"
11
+ "PO-Revision-Date: 2014-07-14 08:56+0100\n"
12
+ "Last-Translator: manooweb <ehesry@yahoo.com>\n"
13
  "Language-Team: Lionel Chollet <lionel.chollet@gmail.com>\n"
14
  "MIME-Version: 1.0\n"
15
  "Content-Type: text/plain; charset=utf-8\n"
98
  msgstr "Normal"
99
 
100
  #: admin.php:110
101
+ msgid "Drop-down List"
102
+ msgstr "Liste déroulante"
103
 
104
  #: admin.php:115
105
  msgid "Always Show Page Navigation"
106
  msgstr "Toujours afficher la navigation WP-PageNavi"
107
 
108
+ #: pagenavi-options.php:106
109
+ #: pagenavi-options.php:121
110
+ msgid "Yes"
111
+ msgstr "Oui"
112
+
113
+ #: pagenavi-options.php:
114
+ #: 106
115
+ #: 121
116
+ msgid "No"
117
+ msgstr "Non"
118
+
119
  #: admin.php:118
120
+ msgid "Show navigation even if there's only one page."
121
  msgstr "La navigation WP-PageNavi sera affichée même s’il n’y a qu’une seule page."
122
 
123
  #: admin.php:122
133
  msgstr "Les étapes intermédiaires de pagination sont utiles sur les sites comprenant un très grand nombre d’articles."
134
 
135
  #: admin.php:135
136
+ msgid "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
137
  msgstr "Par exemple, WP-PageNavi affichera les liens vers les pages&nbsp;: 1, 2, 3, 4, 5, 10, 20, 30, 40, 50…"
138
 
139
  #: admin.php:136
lang/wp-pagenavi-pl_PL.po CHANGED
@@ -48,7 +48,7 @@ msgstr "Numer strony."
48
 
49
  #: admin.php:46
50
  msgid "Text For Page"
51
- msgstr "Takst dla strony"
52
 
53
  #: admin.php:54
54
  msgid "Text For First Page"
@@ -128,7 +128,7 @@ msgstr "Wpisz 0, aby to wyłączyć."
128
 
129
  #: admin.php:141
130
  msgid "Show Larger Page Numbers In Multiples Of"
131
- msgstr "Pokarz odstępy jako wielokrotności"
132
 
133
  #: admin.php:146
134
  msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
48
 
49
  #: admin.php:46
50
  msgid "Text For Page"
51
+ msgstr "Tekst dla strony"
52
 
53
  #: admin.php:54
54
  msgid "Text For First Page"
128
 
129
  #: admin.php:141
130
  msgid "Show Larger Page Numbers In Multiples Of"
131
+ msgstr "Pokaż odstępy jako wielokrotności"
132
 
133
  #: admin.php:146
134
  msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
lang/wp-pagenavi-pt_PT.mo ADDED
Binary file
lang/wp-pagenavi-pt_PT.po ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin WP-PageNavi 2.72 by Lester 'GaMerZ' Chan & scribu.
2
+ # Copyright (C) 2010 Lester 'GaMerZ' Chan & scribu
3
+ # This file is distributed under the same license as the WP-PageNavi package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: WP-PageNavi 2.85\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
10
+ "POT-Creation-Date: 2014-03-03 17:39+0800\n"
11
+ "PO-Revision-Date: 2014-05-28 09:17-0000\n"
12
+ "Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
13
+ "Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n"
14
+ "Language: pt_PT\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
+ "X-Generator: Poedit 1.6.4\n"
20
+ "X-Poedit-SourceCharset: UTF-8\n"
21
+
22
+ #: admin.php:9
23
+ msgid "PageNavi Settings"
24
+ msgstr "Configurações do PageNavi"
25
+
26
+ #: admin.php:10
27
+ msgid "PageNavi"
28
+ msgstr "PageNavi"
29
+
30
+ #: admin.php:29
31
+ msgid "Text For Number Of Pages"
32
+ msgstr "Texto para Número de Páginas"
33
+
34
+ #: admin.php:34
35
+ msgid "The current page number."
36
+ msgstr "Número da página atual."
37
+
38
+ #: admin.php:35 admin.php:59 admin.php:67
39
+ msgid "The total number of pages."
40
+ msgstr "Número total de páginas."
41
+
42
+ #: admin.php:39
43
+ msgid "Text For Current Page"
44
+ msgstr "Texto para Página Atual"
45
+
46
+ #: admin.php:43 admin.php:51
47
+ msgid "The page number."
48
+ msgstr "Número da página."
49
+
50
+ #: admin.php:47
51
+ msgid "Text For Page"
52
+ msgstr "Texto para Página"
53
+
54
+ #: admin.php:55
55
+ msgid "Text For First Page"
56
+ msgstr "Texto para Primeira Página"
57
+
58
+ #: admin.php:63
59
+ msgid "Text For Last Page"
60
+ msgstr "Texto para Última Página"
61
+
62
+ #: admin.php:71
63
+ msgid "Text For Previous Page"
64
+ msgstr "Texto para Página Anterior"
65
+
66
+ #: admin.php:77
67
+ msgid "Text For Next Page"
68
+ msgstr "Texto para Página Seguinte"
69
+
70
+ #: admin.php:83
71
+ msgid "Text For Previous ..."
72
+ msgstr "Texto para Anterior ..."
73
+
74
+ #: admin.php:89
75
+ msgid "Text For Next ..."
76
+ msgstr "Texto para Seguinte ..."
77
+
78
+ #: admin.php:96
79
+ msgid "Page Navigation Text"
80
+ msgstr "Texto da Paginação"
81
+
82
+ #: admin.php:97
83
+ msgid "Leaving a field blank will hide that part of the navigation."
84
+ msgstr "Deixar um campo em branco vai esconder essa parte da navegação."
85
+
86
+ #: admin.php:103
87
+ msgid "Use pagenavi-css.css"
88
+ msgstr "Utilizar pagenavi-css.css"
89
+
90
+ #: admin.php:106 admin.php:121
91
+ msgid "Yes"
92
+ msgstr "Sim"
93
+
94
+ #: admin.php:106 admin.php:121
95
+ msgid "No"
96
+ msgstr "Não"
97
+
98
+ #: admin.php:110
99
+ msgid "Page Navigation Style"
100
+ msgstr "Estilos da Paginação"
101
+
102
+ #: admin.php:113
103
+ msgid "Normal"
104
+ msgstr "Normal"
105
+
106
+ #: admin.php:113
107
+ msgid "Drop-down List"
108
+ msgstr "Selector"
109
+
110
+ #: admin.php:118
111
+ msgid "Always Show Page Navigation"
112
+ msgstr "Mostrar sempre a Paginação"
113
+
114
+ #: admin.php:122
115
+ msgid "Show navigation even if there's only one page."
116
+ msgstr "Mostrar a navegação mesmo que exista apenas uma página."
117
+
118
+ #: admin.php:126
119
+ msgid "Number Of Pages To Show"
120
+ msgstr "Quantidade de Páginas a mostrar"
121
+
122
+ #: admin.php:133
123
+ msgid "Number Of Larger Page Numbers To Show"
124
+ msgstr "Quantidade de Páginas Distantes a mostrar"
125
+
126
+ #: admin.php:138
127
+ msgid ""
128
+ "Larger page numbers are in addition to the normal page numbers. They are "
129
+ "useful when there are many pages of posts."
130
+ msgstr ""
131
+ "Serão acrescentados números de Páginas Distantes à numeração normal. São "
132
+ "úteis quando existem muitas páginas de artigos."
133
+
134
+ #: admin.php:139
135
+ msgid ""
136
+ "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, "
137
+ "50."
138
+ msgstr ""
139
+ "Por exemplo, o WP-PageNavi vai mostrar: Páginas 1, 2, 3, 4, 5, 10, 20, 30, "
140
+ "40, 50."
141
+
142
+ #: admin.php:140
143
+ msgid "Enter 0 to disable."
144
+ msgstr "Insira 0 para desactivar."
145
+
146
+ #: admin.php:144
147
+ msgid "Show Larger Page Numbers In Multiples Of"
148
+ msgstr "Mostrar Páginas Distantes em múltiplos de"
149
+
150
+ #: admin.php:149
151
+ msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
152
+ msgstr ""
153
+ "Por exemplo, se utilizar múltiplos de 5, será mostrado: 5, 10, 15, 20, 25"
154
+
155
+ #: admin.php:154
156
+ msgid "Page Navigation Options"
157
+ msgstr "Opções da Paginação"
158
+
159
+ #: scb/AdminPage.php:228
160
+ msgid "Settings <strong>saved</strong>."
161
+ msgstr "Configurações <strong>guardadas</strong>."
162
+
163
+ #: scb/AdminPage.php:467
164
+ msgid "Settings"
165
+ msgstr "Configurações"
166
+
167
+ #: wp-pagenavi.php:20
168
+ msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
169
+ msgstr "Página %CURRENT_PAGE% de %TOTAL_PAGES%"
170
+
171
+ #: wp-pagenavi.php:23
172
+ msgid "&laquo; First"
173
+ msgstr "&laquo; Primeira"
174
+
175
+ #: wp-pagenavi.php:24
176
+ msgid "Last &raquo;"
177
+ msgstr "Última &raquo;"
178
+
179
+ #: wp-pagenavi.php:25
180
+ msgid "&laquo;"
181
+ msgstr "&laquo;"
182
+
183
+ #: wp-pagenavi.php:26
184
+ msgid "&raquo;"
185
+ msgstr "&raquo;"
186
+
187
+ #: wp-pagenavi.php:27 wp-pagenavi.php:28
188
+ msgid "..."
189
+ msgstr "..."
190
+
191
+ #~ msgid "Save Changes"
192
+ #~ msgstr "Salvar Mudanças"
193
+
194
+ #~ msgid "WP-PageNavi"
195
+ #~ msgstr "WP-PageNavi"
196
+
197
+ #~ msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
198
+ #~ msgstr "http://wordpress.org/extend/plugins/wp-pagenavi/"
199
+
200
+ #~ msgid "Adds a more advanced paging navigation to your WordPress blog"
201
+ #~ msgstr "Adicione uma paginação mais avançada ao seu blog Wordpress"
202
+
203
+ #~ msgid "Lester 'GaMerZ' Chan & scribu"
204
+ #~ msgstr "Lester 'GaMerZ' Chan & scribu"
readme.txt CHANGED
@@ -3,24 +3,29 @@ Contributors: GamerZ, scribu
3
  Donate link: http://lesterchan.net/site/donation/
4
  Tags: navigation, pagination, paging, pages
5
  Requires at least: 3.2
6
- Tested up to: 3.9
7
- Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Adds a more advanced paging navigation interface.
12
 
13
  == Description ==
14
-
15
  Want to replace the old *&larr; Older posts | Newer posts &rarr;* links with some page links?
16
 
17
  This plugin provides the `wp_pagenavi()` template tag which generates fancy pagination links. See the [installation instructions](http://wordpress.org/extend/plugins/wp-pagenavi/installation/) for using it in your theme.
18
 
19
  Help to translate at <https://translate.foe-services.de/projects/wp-pagenavi>.
20
 
 
 
 
21
  = Development =
22
  * [https://github.com/lesterchan/wp-pagenavi](https://github.com/lesterchan/wp-pagenavi "https://github.com/lesterchan/wp-pagenavi")
23
 
 
 
 
24
  == Installation ==
25
 
26
  You can either install it automatically from the WordPress admin, or do it manually:
@@ -90,6 +95,9 @@ You can do that like so:
90
  `<?php wp_pagenavi( array( 'options' => PageNavi_Core::$options->get_defaults() ) ); ?>`
91
 
92
  == Changelog ==
 
 
 
93
 
94
  = 2.85 =
95
  * FIXED: "Use pagenavi-css.css" & "Always Show Page Navigation" in the options are not being saved
3
  Donate link: http://lesterchan.net/site/donation/
4
  Tags: navigation, pagination, paging, pages
5
  Requires at least: 3.2
6
+ Tested up to: 4.0
7
+ Stable tag: 2.86
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Adds a more advanced paging navigation interface.
12
 
13
  == Description ==
 
14
  Want to replace the old *&larr; Older posts | Newer posts &rarr;* links with some page links?
15
 
16
  This plugin provides the `wp_pagenavi()` template tag which generates fancy pagination links. See the [installation instructions](http://wordpress.org/extend/plugins/wp-pagenavi/installation/) for using it in your theme.
17
 
18
  Help to translate at <https://translate.foe-services.de/projects/wp-pagenavi>.
19
 
20
+ = Build Status =
21
+ [![Build Status](https://travis-ci.org/lesterchan/wp-pagenavi.svg?branch=master)](https://travis-ci.org/lesterchan/wp-pagenavi)
22
+
23
  = Development =
24
  * [https://github.com/lesterchan/wp-pagenavi](https://github.com/lesterchan/wp-pagenavi "https://github.com/lesterchan/wp-pagenavi")
25
 
26
+ = Credits =
27
+ * Plugin icon by [SimpleIcon](http://www.simpleicon.com) from [Flaticon](http://www.flaticon.com)
28
+
29
  == Installation ==
30
 
31
  You can either install it automatically from the WordPress admin, or do it manually:
95
  `<?php wp_pagenavi( array( 'options' => PageNavi_Core::$options->get_defaults() ) ); ?>`
96
 
97
  == Changelog ==
98
+ = 2.86 =
99
+ * NEW: Bump to 4.0
100
+ * NEW: Added rel=next and rel=previous
101
 
102
  = 2.85 =
103
  * FIXED: "Use pagenavi-css.css" & "Always Show Page Navigation" in the options are not being saved
wp-pagenavi.php CHANGED
@@ -1,15 +1,16 @@
1
  <?php
2
  /*
3
  Plugin Name: WP-PageNavi
4
- Version: 2.85
5
  Description: Adds a more advanced paging navigation to your WordPress blog
6
- Author: Lester 'GaMerZ' Chan & scribu
7
- Plugin URI: http://wordpress.org/extend/plugins/wp-pagenavi/
 
8
  Text Domain: wp-pagenavi
9
  Domain Path: /lang
10
  */
11
 
12
- include dirname( __FILE__ ) . '/scb/load.php';
13
 
14
  function _pagenavi_init() {
15
  load_plugin_textdomain( 'wp-pagenavi', '', dirname( plugin_basename( __FILE__ ) ) . '/lang' );
1
  <?php
2
  /*
3
  Plugin Name: WP-PageNavi
4
+ Plugin URI: http://lesterchan.net/portfolio/programming/php/
5
  Description: Adds a more advanced paging navigation to your WordPress blog
6
+ Version: 2.86
7
+ Author: Lester 'GaMerZ' Chan
8
+ Author URI: http://lesterchan.net
9
  Text Domain: wp-pagenavi
10
  Domain Path: /lang
11
  */
12
 
13
+ require_once dirname( __FILE__ ) . '/scb/load.php';
14
 
15
  function _pagenavi_init() {
16
  load_plugin_textdomain( 'wp-pagenavi', '', dirname( plugin_basename( __FILE__ ) ) . '/lang' );