WP-PageNavi - Version 2.89

Version Description

  • NEW: wrapper_tag option to allow other HTML tag besides DIV and wrapper_class option to allow other class name besides wp-pagenavi. Props @Mahjouba91.
Download this release

Release Info

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

Code changes from version 2.88 to 2.89

core.php CHANGED
@@ -4,23 +4,25 @@
4
  * Template tag: Boxed Style Paging
5
  *
6
  * @param array $args:
7
- * 'before': (string)
8
- * 'after': (string)
9
- * 'options': (string|array) Used to overwrite options set in WP-Admin -> Settings -> PageNavi
10
- * 'query': (object) A WP_Query instance
11
  */
12
  function wp_pagenavi( $args = array() ) {
13
  if ( !is_array( $args ) ) {
14
  $argv = func_get_args();
15
 
16
  $args = array();
17
- foreach ( array( 'before', 'after', 'options' ) as $i => $key )
18
  $args[ $key ] = isset( $argv[ $i ]) ? $argv[ $i ] : "";
19
  }
20
 
21
  $args = wp_parse_args( $args, array(
22
  'before' => '',
23
  'after' => '',
 
 
24
  'options' => array(),
25
  'query' => $GLOBALS['wp_query'],
26
  'type' => 'posts',
@@ -62,19 +64,19 @@ function wp_pagenavi( $args = array() ) {
62
  if ( $start_page < 1 )
63
  $start_page = 1;
64
 
65
- // Support for filters to change class names
66
- $class_names = array(
67
- 'pages' => apply_filters( 'wp_pagenavi_class_pages', 'pages'),
68
- 'first' => apply_filters( 'wp_pagenavi_class_first', 'first' ),
69
- 'previouspostslink' => apply_filters( 'wp_pagenavi_class_previouspostslink', 'previouspostslink' ),
70
- 'extend' => apply_filters( 'wp_pagenavi_class_extend', 'extend' ),
71
- 'smaller' => apply_filters( 'wp_pagenavi_class_smaller', 'smaller' ),
72
- 'page' => apply_filters( 'wp_pagenavi_class_page', 'page' ),
73
- 'current' => apply_filters( 'wp_pagenavi_class_current', 'current'),
74
- 'larger' => apply_filters( 'wp_pagenavi_class_larger', 'larger' ),
75
- 'nextpostslink' => apply_filters( 'wp_pagenavi_class_nextpostslink', 'nextpostslink'),
76
- 'last' => apply_filters( 'wp_pagenavi_class_last', 'last'),
77
- );
78
 
79
  $out = '';
80
  switch ( intval( $options['style'] ) ) {
@@ -85,7 +87,7 @@ function wp_pagenavi( $args = array() ) {
85
  $pages_text = str_replace(
86
  array( "%CURRENT_PAGE%", "%TOTAL_PAGES%" ),
87
  array( number_format_i18n( $paged ), number_format_i18n( $total_pages ) ),
88
- __( $options['pages_text'], 'wp-pagenavi' ) );
89
  $out .= "<span class='{$class_names['pages']}'>$pages_text</span>";
90
  }
91
 
@@ -93,7 +95,7 @@ function wp_pagenavi( $args = array() ) {
93
  // First
94
  $first_text = str_replace( '%TOTAL_PAGES%', number_format_i18n( $total_pages ), __( $options['first_text'], 'wp-pagenavi' ) );
95
  $out .= $instance->get_single( 1, $first_text, array(
96
- 'class' => $class_names['first']
97
  ), '%TOTAL_PAGES%' );
98
  }
99
 
@@ -101,7 +103,7 @@ function wp_pagenavi( $args = array() ) {
101
  if ( $paged > 1 && !empty( $options['prev_text'] ) ) {
102
  $out .= $instance->get_single( $paged - 1, $options['prev_text'], array(
103
  'class' => $class_names['previouspostslink'],
104
- 'rel' => 'prev'
105
  ) );
106
  }
107
 
@@ -169,7 +171,7 @@ function wp_pagenavi( $args = array() ) {
169
  if ( $paged < $total_pages && !empty( $options['next_text'] ) ) {
170
  $out .= $instance->get_single( $paged + 1, $options['next_text'], array(
171
  'class' => $class_names['nextpostslink'],
172
- 'rel' => 'next'
173
  ) );
174
  }
175
 
@@ -204,7 +206,7 @@ function wp_pagenavi( $args = array() ) {
204
  $out .= "</form>\n";
205
  break;
206
  }
207
- $out = $before . "<div class='wp-pagenavi'>\n$out\n</div>" . $after;
208
 
209
  $out = apply_filters( 'wp_pagenavi', $out );
210
 
@@ -233,24 +235,24 @@ class PageNavi_Call {
233
  $query = $this->query;
234
 
235
  switch( $this->type ) {
236
- case 'multipart':
237
- // Multipart page
238
- $posts_per_page = 1;
239
- $paged = max( 1, absint( get_query_var( 'page' ) ) );
240
- $total_pages = max( 1, $numpages );
241
- break;
242
- case 'users':
243
- // WP_User_Query
244
- $posts_per_page = $query->query_vars['number'];
245
- $paged = max( 1, floor( $query->query_vars['offset'] / $posts_per_page ) + 1 );
246
- $total_pages = max( 1, ceil( $query->total_users / $posts_per_page ) );
247
- break;
248
- default:
249
- // WP_Query
250
- $posts_per_page = intval( $query->get( 'posts_per_page' ) );
251
- $paged = max( 1, absint( $query->get( 'paged' ) ) );
252
- $total_pages = max( 1, absint( $query->max_num_pages ) );
253
- break;
254
  }
255
 
256
  return array( $posts_per_page, $paged, $total_pages );
@@ -274,22 +276,22 @@ class PageNavi_Call {
274
 
275
  # http://core.trac.wordpress.org/ticket/16973
276
  if ( !function_exists( 'get_multipage_link' ) ) :
277
- function get_multipage_link( $page = 1 ) {
278
- global $post, $wp_rewrite;
279
-
280
- if ( 1 == $page ) {
281
- $url = get_permalink();
282
- } else {
283
- if ( '' == get_option('permalink_structure') || in_array( $post->post_status, array( 'draft', 'pending') ) )
284
- $url = add_query_arg( 'page', $page, get_permalink() );
285
- elseif ( 'page' == get_option( 'show_on_front' ) && get_option('page_on_front') == $post->ID )
286
- $url = trailingslashit( get_permalink() ) . user_trailingslashit( $wp_rewrite->pagination_base . "/$page", 'single_paged' );
287
- else
288
- $url = trailingslashit( get_permalink() ) . user_trailingslashit( $page, 'single_paged' );
289
- }
290
 
291
- return $url;
292
- }
293
  endif;
294
 
295
  // Template tag: Drop Down Menu (Deprecated)
4
  * Template tag: Boxed Style Paging
5
  *
6
  * @param array $args:
7
+ * 'before': (string)
8
+ * 'after': (string)
9
+ * 'options': (string|array) Used to overwrite options set in WP-Admin -> Settings -> PageNavi
10
+ * 'query': (object) A WP_Query instance
11
  */
12
  function wp_pagenavi( $args = array() ) {
13
  if ( !is_array( $args ) ) {
14
  $argv = func_get_args();
15
 
16
  $args = array();
17
+ foreach ( array( 'before', 'after', 'wrapper_tag', 'wrapper_class', 'options' ) as $i => $key )
18
  $args[ $key ] = isset( $argv[ $i ]) ? $argv[ $i ] : "";
19
  }
20
 
21
  $args = wp_parse_args( $args, array(
22
  'before' => '',
23
  'after' => '',
24
+ 'wrapper_tag' => 'div',
25
+ 'wrapper_class' => 'wp-pagenavi',
26
  'options' => array(),
27
  'query' => $GLOBALS['wp_query'],
28
  'type' => 'posts',
64
  if ( $start_page < 1 )
65
  $start_page = 1;
66
 
67
+ // Support for filters to change class names
68
+ $class_names = array(
69
+ 'pages' => apply_filters( 'wp_pagenavi_class_pages', 'pages'),
70
+ 'first' => apply_filters( 'wp_pagenavi_class_first', 'first' ),
71
+ 'previouspostslink' => apply_filters( 'wp_pagenavi_class_previouspostslink', 'previouspostslink' ),
72
+ 'extend' => apply_filters( 'wp_pagenavi_class_extend', 'extend' ),
73
+ 'smaller' => apply_filters( 'wp_pagenavi_class_smaller', 'smaller' ),
74
+ 'page' => apply_filters( 'wp_pagenavi_class_page', 'page' ),
75
+ 'current' => apply_filters( 'wp_pagenavi_class_current', 'current'),
76
+ 'larger' => apply_filters( 'wp_pagenavi_class_larger', 'larger' ),
77
+ 'nextpostslink' => apply_filters( 'wp_pagenavi_class_nextpostslink', 'nextpostslink'),
78
+ 'last' => apply_filters( 'wp_pagenavi_class_last', 'last'),
79
+ );
80
 
81
  $out = '';
82
  switch ( intval( $options['style'] ) ) {
87
  $pages_text = str_replace(
88
  array( "%CURRENT_PAGE%", "%TOTAL_PAGES%" ),
89
  array( number_format_i18n( $paged ), number_format_i18n( $total_pages ) ),
90
+ __( $options['pages_text'], 'wp-pagenavi' ) );
91
  $out .= "<span class='{$class_names['pages']}'>$pages_text</span>";
92
  }
93
 
95
  // First
96
  $first_text = str_replace( '%TOTAL_PAGES%', number_format_i18n( $total_pages ), __( $options['first_text'], 'wp-pagenavi' ) );
97
  $out .= $instance->get_single( 1, $first_text, array(
98
+ 'class' => $class_names['first']
99
  ), '%TOTAL_PAGES%' );
100
  }
101
 
103
  if ( $paged > 1 && !empty( $options['prev_text'] ) ) {
104
  $out .= $instance->get_single( $paged - 1, $options['prev_text'], array(
105
  'class' => $class_names['previouspostslink'],
106
+ 'rel' => 'prev'
107
  ) );
108
  }
109
 
171
  if ( $paged < $total_pages && !empty( $options['next_text'] ) ) {
172
  $out .= $instance->get_single( $paged + 1, $options['next_text'], array(
173
  'class' => $class_names['nextpostslink'],
174
+ 'rel' => 'next'
175
  ) );
176
  }
177
 
206
  $out .= "</form>\n";
207
  break;
208
  }
209
+ $out = $before . "<" . $wrapper_tag . " class='" . $wrapper_class . "'>\n$out\n</" . $wrapper_tag . ">" . $after;
210
 
211
  $out = apply_filters( 'wp_pagenavi', $out );
212
 
235
  $query = $this->query;
236
 
237
  switch( $this->type ) {
238
+ case 'multipart':
239
+ // Multipart page
240
+ $posts_per_page = 1;
241
+ $paged = max( 1, absint( get_query_var( 'page' ) ) );
242
+ $total_pages = max( 1, $numpages );
243
+ break;
244
+ case 'users':
245
+ // WP_User_Query
246
+ $posts_per_page = $query->query_vars['number'];
247
+ $paged = max( 1, floor( $query->query_vars['offset'] / $posts_per_page ) + 1 );
248
+ $total_pages = max( 1, ceil( $query->total_users / $posts_per_page ) );
249
+ break;
250
+ default:
251
+ // WP_Query
252
+ $posts_per_page = intval( $query->get( 'posts_per_page' ) );
253
+ $paged = max( 1, absint( $query->get( 'paged' ) ) );
254
+ $total_pages = max( 1, absint( $query->max_num_pages ) );
255
+ break;
256
  }
257
 
258
  return array( $posts_per_page, $paged, $total_pages );
276
 
277
  # http://core.trac.wordpress.org/ticket/16973
278
  if ( !function_exists( 'get_multipage_link' ) ) :
279
+ function get_multipage_link( $page = 1 ) {
280
+ global $post, $wp_rewrite;
281
+
282
+ if ( 1 == $page ) {
283
+ $url = get_permalink();
284
+ } else {
285
+ if ( '' == get_option('permalink_structure') || in_array( $post->post_status, array( 'draft', 'pending') ) )
286
+ $url = add_query_arg( 'page', $page, get_permalink() );
287
+ elseif ( 'page' == get_option( 'show_on_front' ) && get_option('page_on_front') == $post->ID )
288
+ $url = trailingslashit( get_permalink() ) . user_trailingslashit( $wp_rewrite->pagination_base . "/$page", 'single_paged' );
289
+ else
290
+ $url = trailingslashit( get_permalink() ) . user_trailingslashit( $page, 'single_paged' );
291
+ }
292
 
293
+ return $url;
294
+ }
295
  endif;
296
 
297
  // Template tag: Drop Down Menu (Deprecated)
lang/wp-pagenavi-da_DK.mo ADDED
Binary file
lang/{wp-pagenai.pot → wp-pagenavi-da_DK.po} RENAMED
@@ -1,183 +1,186 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP-PageNavi\n"
4
- "POT-Creation-Date: 2014-03-03 17:39+0800\n"
5
- "PO-Revision-Date: 2014-03-03 17:39+0800\n"
6
- "Last-Translator: Lester Chan <lesterchan@gmail.com>\n"
7
  "Language-Team: Lester Chan <lesterchan@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.6.4\n"
12
  "X-Poedit-Basepath: ..\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
15
- "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
16
- "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
- "Language: en\n"
 
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
  #: admin.php:9
22
  msgid "PageNavi Settings"
23
- msgstr ""
24
 
25
  #: admin.php:10
26
  msgid "PageNavi"
27
- msgstr ""
28
 
29
  #: admin.php:29
30
  msgid "Text For Number Of Pages"
31
- msgstr ""
32
 
33
  #: admin.php:34
34
  msgid "The current page number."
35
- msgstr ""
36
 
37
  #: admin.php:35 admin.php:59 admin.php:67
38
  msgid "The total number of pages."
39
- msgstr ""
40
 
41
  #: admin.php:39
42
  msgid "Text For Current Page"
43
- msgstr ""
44
 
45
  #: admin.php:43 admin.php:51
46
  msgid "The page number."
47
- msgstr ""
48
 
49
  #: admin.php:47
50
  msgid "Text For Page"
51
- msgstr ""
52
 
53
  #: admin.php:55
54
  msgid "Text For First Page"
55
- msgstr ""
56
 
57
  #: admin.php:63
58
  msgid "Text For Last Page"
59
- msgstr ""
60
 
61
  #: admin.php:71
62
  msgid "Text For Previous Page"
63
- msgstr ""
64
 
65
  #: admin.php:77
66
  msgid "Text For Next Page"
67
- msgstr ""
68
 
69
  #: admin.php:83
70
  msgid "Text For Previous ..."
71
- msgstr ""
72
 
73
  #: admin.php:89
74
  msgid "Text For Next ..."
75
- msgstr ""
76
 
77
  #: admin.php:96
78
  msgid "Page Navigation Text"
79
- msgstr ""
80
 
81
  #: admin.php:97
82
  msgid "Leaving a field blank will hide that part of the navigation."
83
- msgstr ""
84
 
85
  #: admin.php:103
86
  msgid "Use pagenavi-css.css"
87
- msgstr ""
88
 
89
  #: admin.php:106 admin.php:121
90
  msgid "Yes"
91
- msgstr ""
92
 
93
  #: admin.php:106 admin.php:121
94
  msgid "No"
95
- msgstr ""
96
 
97
  #: admin.php:110
98
  msgid "Page Navigation Style"
99
- msgstr ""
100
 
101
  #: admin.php:113
102
  msgid "Normal"
103
- msgstr ""
104
 
105
  #: admin.php:113
106
  msgid "Drop-down List"
107
- msgstr ""
108
 
109
  #: admin.php:118
110
  msgid "Always Show Page Navigation"
111
- msgstr ""
112
 
113
  #: admin.php:122
114
  msgid "Show navigation even if there's only one page."
115
- msgstr ""
116
 
117
  #: admin.php:126
118
  msgid "Number Of Pages To Show"
119
- msgstr ""
120
 
121
  #: admin.php:133
122
  msgid "Number Of Larger Page Numbers To Show"
123
- msgstr ""
124
 
125
  #: admin.php:138
126
  msgid ""
127
  "Larger page numbers are in addition to the normal page numbers. They are "
128
  "useful when there are many pages of posts."
129
  msgstr ""
 
 
130
 
131
  #: admin.php:139
132
  msgid ""
133
  "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, "
134
  "50."
135
  msgstr ""
 
136
 
137
  #: admin.php:140
138
  msgid "Enter 0 to disable."
139
- msgstr ""
140
 
141
  #: admin.php:144
142
  msgid "Show Larger Page Numbers In Multiples Of"
143
- msgstr ""
144
 
145
  #: admin.php:149
146
  msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
147
- msgstr ""
148
 
149
  #: admin.php:154
150
  msgid "Page Navigation Options"
151
- msgstr ""
152
 
153
  #: scb/AdminPage.php:228
154
  msgid "Settings <strong>saved</strong>."
155
- msgstr ""
156
 
157
  #: scb/AdminPage.php:467
158
  msgid "Settings"
159
- msgstr ""
160
 
161
  #: wp-pagenavi.php:20
162
  msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
163
- msgstr ""
164
 
165
  #: wp-pagenavi.php:23
166
  msgid "&laquo; First"
167
- msgstr ""
168
 
169
  #: wp-pagenavi.php:24
170
  msgid "Last &raquo;"
171
- msgstr ""
172
 
173
  #: wp-pagenavi.php:25
174
  msgid "&laquo;"
175
- msgstr ""
176
 
177
  #: wp-pagenavi.php:26
178
  msgid "&raquo;"
179
- msgstr ""
180
 
181
  #: wp-pagenavi.php:27 wp-pagenavi.php:28
182
  msgid "..."
183
- msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP-PageNavi\n"
4
+ "POT-Creation-Date: 2015-08-04 21:03+0200\n"
5
+ "PO-Revision-Date: 2015-08-04 21:09+0200\n"
 
6
  "Language-Team: Lester Chan <lesterchan@gmail.com>\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "X-Generator: Poedit 1.8.4\n"
11
  "X-Poedit-Basepath: ..\n"
12
  "X-Poedit-SourceCharset: UTF-8\n"
13
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
14
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
15
+ "_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "Last-Translator: \n"
18
+ "Language: da_DK\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
 
21
  #: admin.php:9
22
  msgid "PageNavi Settings"
23
+ msgstr "PageNavi Indstillinger"
24
 
25
  #: admin.php:10
26
  msgid "PageNavi"
27
+ msgstr "PageNavi"
28
 
29
  #: admin.php:29
30
  msgid "Text For Number Of Pages"
31
+ msgstr "Tekst for Antal af Sider"
32
 
33
  #: admin.php:34
34
  msgid "The current page number."
35
+ msgstr "Nummer på nuværende side."
36
 
37
  #: admin.php:35 admin.php:59 admin.php:67
38
  msgid "The total number of pages."
39
+ msgstr "Det totale antal af sider."
40
 
41
  #: admin.php:39
42
  msgid "Text For Current Page"
43
+ msgstr "Tekst for Nuværende Side"
44
 
45
  #: admin.php:43 admin.php:51
46
  msgid "The page number."
47
+ msgstr "Sidenummeret."
48
 
49
  #: admin.php:47
50
  msgid "Text For Page"
51
+ msgstr "Tekst for Side"
52
 
53
  #: admin.php:55
54
  msgid "Text For First Page"
55
+ msgstr "Tekst for Første Side"
56
 
57
  #: admin.php:63
58
  msgid "Text For Last Page"
59
+ msgstr "Tekst for Sidste Side"
60
 
61
  #: admin.php:71
62
  msgid "Text For Previous Page"
63
+ msgstr "Tekst for Forrige Side"
64
 
65
  #: admin.php:77
66
  msgid "Text For Next Page"
67
+ msgstr "Tekst for Næste Side"
68
 
69
  #: admin.php:83
70
  msgid "Text For Previous ..."
71
+ msgstr "Tekst for Forrige ..."
72
 
73
  #: admin.php:89
74
  msgid "Text For Next ..."
75
+ msgstr "Tekst for Næste ..."
76
 
77
  #: admin.php:96
78
  msgid "Page Navigation Text"
79
+ msgstr "Tekst for Side Navigation"
80
 
81
  #: admin.php:97
82
  msgid "Leaving a field blank will hide that part of the navigation."
83
+ msgstr "At efterlade et blankt felt, vil skjule den del af navigationen."
84
 
85
  #: admin.php:103
86
  msgid "Use pagenavi-css.css"
87
+ msgstr "Brug pagenavi-css.css"
88
 
89
  #: admin.php:106 admin.php:121
90
  msgid "Yes"
91
+ msgstr "Ja"
92
 
93
  #: admin.php:106 admin.php:121
94
  msgid "No"
95
+ msgstr "Nej"
96
 
97
  #: admin.php:110
98
  msgid "Page Navigation Style"
99
+ msgstr "Stil for Side Navigation"
100
 
101
  #: admin.php:113
102
  msgid "Normal"
103
+ msgstr "Normal"
104
 
105
  #: admin.php:113
106
  msgid "Drop-down List"
107
+ msgstr "Drop-down Liste"
108
 
109
  #: admin.php:118
110
  msgid "Always Show Page Navigation"
111
+ msgstr "Vis altid Side Navigation"
112
 
113
  #: admin.php:122
114
  msgid "Show navigation even if there's only one page."
115
+ msgstr "Vis Side Navigation selvom der kun er én side."
116
 
117
  #: admin.php:126
118
  msgid "Number Of Pages To Show"
119
+ msgstr "Antal af Sider til visning"
120
 
121
  #: admin.php:133
122
  msgid "Number Of Larger Page Numbers To Show"
123
+ msgstr "Antal af Større Sidenumre til visning"
124
 
125
  #: admin.php:138
126
  msgid ""
127
  "Larger page numbers are in addition to the normal page numbers. They are "
128
  "useful when there are many pages of posts."
129
  msgstr ""
130
+ "Større sidenumre er en tilføjelse til det normale antal sidenumre. De er "
131
+ "brugbare, hvis der er mange sider med indlæg."
132
 
133
  #: admin.php:139
134
  msgid ""
135
  "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, "
136
  "50."
137
  msgstr ""
138
+ "For eksempel, WP-PageNavi vil vise: Sider 1, 2, 3, 4, 5, 10, 20, 30, 40, 50."
139
 
140
  #: admin.php:140
141
  msgid "Enter 0 to disable."
142
+ msgstr "Skriv 0 for at deaktivere."
143
 
144
  #: admin.php:144
145
  msgid "Show Larger Page Numbers In Multiples Of"
146
+ msgstr "Vis Større Sidenumre i multipler af"
147
 
148
  #: admin.php:149
149
  msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
150
+ msgstr "For eksempel, hvis multiple er 5, vil der vises: 5, 10, 15, 20, 25"
151
 
152
  #: admin.php:154
153
  msgid "Page Navigation Options"
154
+ msgstr "Indstillinger for Side Navigation"
155
 
156
  #: scb/AdminPage.php:228
157
  msgid "Settings <strong>saved</strong>."
158
+ msgstr "Indstillingerne blev <strong>gemt</strong>."
159
 
160
  #: scb/AdminPage.php:467
161
  msgid "Settings"
162
+ msgstr "Indstillinger"
163
 
164
  #: wp-pagenavi.php:20
165
  msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
166
+ msgstr "Side %CURRENT_PAGE% af %TOTAL_PAGES%"
167
 
168
  #: wp-pagenavi.php:23
169
  msgid "&laquo; First"
170
+ msgstr "&laquo; Første"
171
 
172
  #: wp-pagenavi.php:24
173
  msgid "Last &raquo;"
174
+ msgstr "Sidste &raquo;"
175
 
176
  #: wp-pagenavi.php:25
177
  msgid "&laquo;"
178
+ msgstr "&laquo;"
179
 
180
  #: wp-pagenavi.php:26
181
  msgid "&raquo;"
182
+ msgstr "&raquo;"
183
 
184
  #: wp-pagenavi.php:27 wp-pagenavi.php:28
185
  msgid "..."
186
+ msgstr "..."
lang/wp-pagenavi.pot CHANGED
@@ -1,20 +1,16 @@
1
- # Translation of the WordPress plugin WP-PageNavi 2.73 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
- #, fuzzy
7
  msgid ""
8
  msgstr ""
9
- "Project-Id-Version: WP-PageNavi 2.73\n"
10
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-pagenavi\n"
11
- "POT-Creation-Date: 2010-08-17 17:28+0300\n"
12
- "PO-Revision-Date: 2010-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=utf-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
 
 
 
18
 
19
  #: admin.php:9
20
  msgid "PageNavi Settings"
@@ -24,155 +20,159 @@ msgstr ""
24
  msgid "PageNavi"
25
  msgstr ""
26
 
27
- #: admin.php:28
28
  msgid "Text For Number Of Pages"
29
  msgstr ""
30
 
31
- #: admin.php:33
32
  msgid "The current page number."
33
  msgstr ""
34
 
35
- #: admin.php:34 admin.php:58 admin.php:66
36
  msgid "The total number of pages."
37
  msgstr ""
38
 
39
- #: admin.php:38
40
  msgid "Text For Current Page"
41
  msgstr ""
42
 
43
- #: admin.php:42 admin.php:50
44
  msgid "The page number."
45
  msgstr ""
46
 
47
- #: admin.php:46
48
  msgid "Text For Page"
49
  msgstr ""
50
 
51
- #: admin.php:54
52
  msgid "Text For First Page"
53
  msgstr ""
54
 
55
- #: admin.php:62
56
  msgid "Text For Last Page"
57
  msgstr ""
58
 
59
- #: admin.php:70
60
  msgid "Text For Previous Page"
61
  msgstr ""
62
 
63
- #: admin.php:76
64
  msgid "Text For Next Page"
65
  msgstr ""
66
 
67
- #: admin.php:82
68
  msgid "Text For Previous ..."
69
  msgstr ""
70
 
71
- #: admin.php:88
72
  msgid "Text For Next ..."
73
  msgstr ""
74
 
75
- #: admin.php:95
76
  msgid "Page Navigation Text"
77
  msgstr ""
78
 
79
- #: admin.php:96
80
  msgid "Leaving a field blank will hide that part of the navigation."
81
  msgstr ""
82
 
83
- #: admin.php:102
84
  msgid "Use pagenavi-css.css"
85
  msgstr ""
86
 
87
- #: admin.php:108
 
 
 
 
 
 
 
 
88
  msgid "Page Navigation Style"
89
  msgstr ""
90
 
91
- #: admin.php:111
92
  msgid "Normal"
93
  msgstr ""
94
 
95
- #: admin.php:111
96
  msgid "Drop-down List"
97
  msgstr ""
98
 
99
- #: admin.php:116
100
  msgid "Always Show Page Navigation"
101
  msgstr ""
102
 
103
- #: admin.php:119
104
  msgid "Show navigation even if there's only one page."
105
  msgstr ""
106
 
107
- #: admin.php:123
108
  msgid "Number Of Pages To Show"
109
  msgstr ""
110
 
111
- #: admin.php:130
112
  msgid "Number Of Larger Page Numbers To Show"
113
  msgstr ""
114
 
115
- #: admin.php:135
116
  msgid ""
117
  "Larger page numbers are in addition to the normal page numbers. They are "
118
  "useful when there are many pages of posts."
119
  msgstr ""
120
 
121
- #: admin.php:136
122
  msgid ""
123
  "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, "
124
  "50."
125
  msgstr ""
126
 
127
- #: admin.php:137
128
  msgid "Enter 0 to disable."
129
  msgstr ""
130
 
131
- #: admin.php:141
132
  msgid "Show Larger Page Numbers In Multiples Of"
133
  msgstr ""
134
 
135
- #: admin.php:146
136
  msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
137
  msgstr ""
138
 
139
- #: admin.php:151
140
  msgid "Page Navigation Options"
141
  msgstr ""
142
 
143
- #: scb/AdminPage.php:167
144
  msgid "Settings <strong>saved</strong>."
145
  msgstr ""
146
 
147
- #: scb/AdminPage.php:179 scb/AdminPage.php:189
148
- msgid "Save Changes"
149
- msgstr ""
150
-
151
- #: scb/AdminPage.php:371
152
  msgid "Settings"
153
  msgstr ""
154
 
155
- #: wp-pagenavi.php:37
156
  msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
157
  msgstr ""
158
 
159
- #: wp-pagenavi.php:40
160
  msgid "&laquo; First"
161
  msgstr ""
162
 
163
- #: wp-pagenavi.php:41
164
  msgid "Last &raquo;"
165
  msgstr ""
166
 
167
- #: wp-pagenavi.php:42
168
  msgid "&laquo;"
169
  msgstr ""
170
 
171
- #: wp-pagenavi.php:43
172
  msgid "&raquo;"
173
  msgstr ""
174
 
175
- #: wp-pagenavi.php:44 wp-pagenavi.php:45
176
  msgid "..."
177
  msgstr ""
178
 
@@ -181,7 +181,7 @@ msgid "WP-PageNavi"
181
  msgstr ""
182
 
183
  #. Plugin URI of the plugin/theme
184
- msgid "http://wordpress.org/extend/plugins/wp-pagenavi/"
185
  msgstr ""
186
 
187
  #. Description of the plugin/theme
@@ -189,5 +189,9 @@ msgid "Adds a more advanced paging navigation to your WordPress blog"
189
  msgstr ""
190
 
191
  #. Author of the plugin/theme
192
- msgid "Lester 'GaMerZ' Chan & scribu"
 
 
 
 
193
  msgstr ""
1
+ # Copyright (C) 2015 WP-PageNavi
 
2
  # This file is distributed under the same license as the WP-PageNavi package.
 
 
 
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WP-PageNavi 2.88\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-pagenavi\n"
7
+ "POT-Creation-Date: 2015-10-27 04:05:47+00:00\n"
 
 
 
8
  "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
  #: admin.php:9
16
  msgid "PageNavi Settings"
20
  msgid "PageNavi"
21
  msgstr ""
22
 
23
+ #: admin.php:29
24
  msgid "Text For Number Of Pages"
25
  msgstr ""
26
 
27
+ #: admin.php:34
28
  msgid "The current page number."
29
  msgstr ""
30
 
31
+ #: admin.php:35 admin.php:59 admin.php:67
32
  msgid "The total number of pages."
33
  msgstr ""
34
 
35
+ #: admin.php:39
36
  msgid "Text For Current Page"
37
  msgstr ""
38
 
39
+ #: admin.php:43 admin.php:51
40
  msgid "The page number."
41
  msgstr ""
42
 
43
+ #: admin.php:47
44
  msgid "Text For Page"
45
  msgstr ""
46
 
47
+ #: admin.php:55
48
  msgid "Text For First Page"
49
  msgstr ""
50
 
51
+ #: admin.php:63
52
  msgid "Text For Last Page"
53
  msgstr ""
54
 
55
+ #: admin.php:71
56
  msgid "Text For Previous Page"
57
  msgstr ""
58
 
59
+ #: admin.php:77
60
  msgid "Text For Next Page"
61
  msgstr ""
62
 
63
+ #: admin.php:83
64
  msgid "Text For Previous ..."
65
  msgstr ""
66
 
67
+ #: admin.php:89
68
  msgid "Text For Next ..."
69
  msgstr ""
70
 
71
+ #: admin.php:96
72
  msgid "Page Navigation Text"
73
  msgstr ""
74
 
75
+ #: admin.php:97
76
  msgid "Leaving a field blank will hide that part of the navigation."
77
  msgstr ""
78
 
79
+ #: admin.php:103
80
  msgid "Use pagenavi-css.css"
81
  msgstr ""
82
 
83
+ #: admin.php:106 admin.php:121
84
+ msgid "Yes"
85
+ msgstr ""
86
+
87
+ #: admin.php:106 admin.php:121
88
+ msgid "No"
89
+ msgstr ""
90
+
91
+ #: admin.php:110
92
  msgid "Page Navigation Style"
93
  msgstr ""
94
 
95
+ #: admin.php:113
96
  msgid "Normal"
97
  msgstr ""
98
 
99
+ #: admin.php:113
100
  msgid "Drop-down List"
101
  msgstr ""
102
 
103
+ #: admin.php:118
104
  msgid "Always Show Page Navigation"
105
  msgstr ""
106
 
107
+ #: admin.php:122
108
  msgid "Show navigation even if there's only one page."
109
  msgstr ""
110
 
111
+ #: admin.php:126
112
  msgid "Number Of Pages To Show"
113
  msgstr ""
114
 
115
+ #: admin.php:133
116
  msgid "Number Of Larger Page Numbers To Show"
117
  msgstr ""
118
 
119
+ #: admin.php:138
120
  msgid ""
121
  "Larger page numbers are in addition to the normal page numbers. They are "
122
  "useful when there are many pages of posts."
123
  msgstr ""
124
 
125
+ #: admin.php:139
126
  msgid ""
127
  "For example, WP-PageNavi will display: Pages 1, 2, 3, 4, 5, 10, 20, 30, 40, "
128
  "50."
129
  msgstr ""
130
 
131
+ #: admin.php:140
132
  msgid "Enter 0 to disable."
133
  msgstr ""
134
 
135
+ #: admin.php:144
136
  msgid "Show Larger Page Numbers In Multiples Of"
137
  msgstr ""
138
 
139
+ #: admin.php:149
140
  msgid "For example, if mutiple is 5, it will show: 5, 10, 15, 20, 25"
141
  msgstr ""
142
 
143
+ #: admin.php:154
144
  msgid "Page Navigation Options"
145
  msgstr ""
146
 
147
+ #: scb/AdminPage.php:261
148
  msgid "Settings <strong>saved</strong>."
149
  msgstr ""
150
 
151
+ #: scb/AdminPage.php:519
 
 
 
 
152
  msgid "Settings"
153
  msgstr ""
154
 
155
+ #: wp-pagenavi.php:21
156
  msgid "Page %CURRENT_PAGE% of %TOTAL_PAGES%"
157
  msgstr ""
158
 
159
+ #: wp-pagenavi.php:24
160
  msgid "&laquo; First"
161
  msgstr ""
162
 
163
+ #: wp-pagenavi.php:25
164
  msgid "Last &raquo;"
165
  msgstr ""
166
 
167
+ #: wp-pagenavi.php:26
168
  msgid "&laquo;"
169
  msgstr ""
170
 
171
+ #: wp-pagenavi.php:27
172
  msgid "&raquo;"
173
  msgstr ""
174
 
175
+ #: wp-pagenavi.php:28 wp-pagenavi.php:29
176
  msgid "..."
177
  msgstr ""
178
 
181
  msgstr ""
182
 
183
  #. Plugin URI of the plugin/theme
184
+ msgid "http://lesterchan.net/portfolio/programming/php/"
185
  msgstr ""
186
 
187
  #. Description of the plugin/theme
189
  msgstr ""
190
 
191
  #. Author of the plugin/theme
192
+ msgid "Lester 'GaMerZ' Chan"
193
+ msgstr ""
194
+
195
+ #. Author URI of the plugin/theme
196
+ msgid "http://lesterchan.net"
197
  msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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: 4.3
7
- Stable tag: 2.88
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -85,7 +85,7 @@ There are [filters](http://codex.wordpress.org/Glossary#Filter) that can be used
85
 
86
  #### Filter Usage
87
 
88
- ```php
89
  // Simple Usage - 1 callback per filter
90
  add_filter('wp_pagenavi_class_previouspostslink', 'theme_pagination_previouspostslink_class');
91
  add_filter('wp_pagenavi_class_nextpostslink', 'theme_pagination_nextpostslink_class');
@@ -123,9 +123,7 @@ function theme_pagination_class($class_name) {
123
  }
124
  return $class_name;
125
  }
126
- ```
127
-
128
-
129
 
130
  == Screenshots ==
131
 
@@ -158,6 +156,9 @@ You can do that like so:
158
  `<?php wp_pagenavi( array( 'options' => PageNavi_Core::$options->get_defaults() ) ); ?>`
159
 
160
  == Changelog ==
 
 
 
161
  = 2.88 =
162
  * NEW: Added filters for altering class names. Props @bookwyrm
163
 
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.4
7
+ Stable tag: 2.89
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
85
 
86
  #### Filter Usage
87
 
88
+ `
89
  // Simple Usage - 1 callback per filter
90
  add_filter('wp_pagenavi_class_previouspostslink', 'theme_pagination_previouspostslink_class');
91
  add_filter('wp_pagenavi_class_nextpostslink', 'theme_pagination_nextpostslink_class');
123
  }
124
  return $class_name;
125
  }
126
+ `
 
 
127
 
128
  == Screenshots ==
129
 
156
  `<?php wp_pagenavi( array( 'options' => PageNavi_Core::$options->get_defaults() ) ); ?>`
157
 
158
  == Changelog ==
159
+ = 2.89 =
160
+ * NEW: wrapper_tag option to allow other HTML tag besides DIV and wrapper_class option to allow other class name besides wp-pagenavi. Props @Mahjouba91.
161
+
162
  = 2.88 =
163
  * NEW: Added filters for altering class names. Props @bookwyrm
164
 
wp-pagenavi.php CHANGED
@@ -3,7 +3,7 @@
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.88
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  Text Domain: wp-pagenavi
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.89
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  Text Domain: wp-pagenavi