WP Page Numbers - Version 0.3

Version Description

Download this release

Release Info

Developer Jenst
Plugin Icon wp plugin WP Page Numbers
Version 0.3
Comparing to
See all releases

Code changes from version 0.2 to 0.3

classic/Thumbs.db DELETED
Binary file
classic/wp-page-numbers.css CHANGED
@@ -22,6 +22,7 @@
22
  margin-top: 10px;
23
  width: 100%;
24
  background: white;
 
25
  }
26
  #wp_page_numbers ul {
27
  width: 100%;
@@ -44,7 +45,7 @@
44
  }
45
 
46
  #wp_page_numbers li a:hover {
47
- border-color: #ff8000;
48
  }
49
 
50
  #wp_page_numbers li.space {
@@ -58,12 +59,12 @@
58
  }
59
 
60
  #wp_page_numbers li.active_page a {
61
- border-color: #46daff;
62
  }
63
  #wp_page_numbers li.active_page a:hover {
64
  color: black; /* IE fix */
65
  text-decoration: underline;
66
- border-color: #ff8000;
67
  }
68
 
69
  #wp_page_numbers li.page_info {
22
  margin-top: 10px;
23
  width: 100%;
24
  background: white;
25
+ margin-bottom: 10px;
26
  }
27
  #wp_page_numbers ul {
28
  width: 100%;
45
  }
46
 
47
  #wp_page_numbers li a:hover {
48
+ border-color: #BA0000;
49
  }
50
 
51
  #wp_page_numbers li.space {
59
  }
60
 
61
  #wp_page_numbers li.active_page a {
62
+ border-color: #0075b8;
63
  }
64
  #wp_page_numbers li.active_page a:hover {
65
  color: black; /* IE fix */
66
  text-decoration: underline;
67
+ border-color: #BA0000;
68
  }
69
 
70
  #wp_page_numbers li.page_info {
default/Thumbs.db DELETED
Binary file
panther/Thumbs.db DELETED
Binary file
readme.txt CHANGED
@@ -14,6 +14,7 @@ With page numbers instead of next and previous links users can easily navigate m
14
  = Updates 0.3 =
15
  * Changed get_settings (deprecated) to get_bloginfo (bugfix)
16
  * Added missing echos, which should fix the URLs to the preview images in admin
 
17
 
18
  = Updates 0.2 =
19
  * 5 page numbers themes - See <a href="http://wordpress.org/extend/plugins/wp-page-numbers/screenshots/">screenshots</a> for a preview!
14
  = Updates 0.3 =
15
  * Changed get_settings (deprecated) to get_bloginfo (bugfix)
16
  * Added missing echos, which should fix the URLs to the preview images in admin
17
+ * Fixed 0 ... 1 problem by checking if the page is front page or archive
18
 
19
  = Updates 0.2 =
20
  * 5 page numbers themes - See <a href="http://wordpress.org/extend/plugins/wp-page-numbers/screenshots/">screenshots</a> for a preview!
screenshot-1.gif CHANGED
Binary file
stylish/Thumbs.db DELETED
Binary file
stylish/img/Thumbs.db DELETED
Binary file
tiny/Thumbs.db DELETED
Binary file
wp-page-numbers.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Page Numbers
4
  Plugin URI: http://www.jenst.se/2008/03/29/wp-page-numbers
5
  Description: Show pages numbers instead of "Next page" and "Previous Page".
6
- Version: 0.2
7
  Author: Jens T&ouml;rnell
8
  Author URI: http://www.jenst.se
9
  */
@@ -17,7 +17,7 @@ function wp_page_numbers_stylesheet()
17
 
18
  if($head_stylesheet == "on" || $head_stylesheet == "" && (is_archive() || is_search() || is_home() ||is_page()))
19
  {
20
- echo '<link rel="stylesheet" href="'.get_settings('siteurl') . '/wp-content/plugins/wp-page-numbers/';
21
  if($head_stylesheet_folder_name == "")
22
  {
23
  if($style_theme == "default")
@@ -157,6 +157,9 @@ function wp_page_numbers_nextpage($paged, $max_page, $nextpage)
157
  }
158
 
159
  function wp_page_numbers()
 
 
 
160
  {
161
  global $wp_query;
162
  global $max_page;
@@ -252,6 +255,8 @@ function wp_page_numbers()
252
 
253
  if($max_page != 1)
254
  echo $pagingString;
 
 
255
  }
256
 
257
  function wp_page_numbers_settings()
@@ -339,7 +344,7 @@ function wp_page_numbers_settings()
339
  echo 'checked="checked"';
340
  }
341
  ?>/>
342
- <img src="<?php get_settings('siteurl'); ?>/wp-content/plugins/wp-page-numbers/default/preview.gif" alt="" />
343
  </td>
344
  </tr>
345
  <tr>
@@ -351,7 +356,7 @@ function wp_page_numbers_settings()
351
  echo 'checked="checked"';
352
  }
353
  ?>/>
354
- <img src="<?php get_settings('siteurl'); ?>/wp-content/plugins/wp-page-numbers/classic/preview.gif" alt="" />
355
  </td>
356
  </tr>
357
  <tr>
@@ -363,7 +368,7 @@ function wp_page_numbers_settings()
363
  echo 'checked="checked"';
364
  }
365
  ?>/>
366
- <img src="<?php get_settings('siteurl'); ?>/wp-content/plugins/wp-page-numbers/tiny/preview.gif" alt="" />
367
  </td>
368
  </tr>
369
  <tr>
@@ -375,7 +380,7 @@ function wp_page_numbers_settings()
375
  echo 'checked="checked"';
376
  }
377
  ?>/>
378
- <img src="<?php get_settings('siteurl'); ?>/wp-content/plugins/wp-page-numbers/panther/preview.gif" alt="" />
379
  </td>
380
  </tr>
381
  <tr>
@@ -387,7 +392,7 @@ function wp_page_numbers_settings()
387
  echo 'checked="checked"';
388
  }
389
  ?>/>
390
- <img src="<?php get_settings('siteurl'); ?>/wp-content/plugins/wp-page-numbers/stylish/preview.gif" alt="" />
391
  </td>
392
  </tr>
393
  <tr>
3
  Plugin Name: WP Page Numbers
4
  Plugin URI: http://www.jenst.se/2008/03/29/wp-page-numbers
5
  Description: Show pages numbers instead of "Next page" and "Previous Page".
6
+ Version: 0.3
7
  Author: Jens T&ouml;rnell
8
  Author URI: http://www.jenst.se
9
  */
17
 
18
  if($head_stylesheet == "on" || $head_stylesheet == "" && (is_archive() || is_search() || is_home() ||is_page()))
19
  {
20
+ echo '<link rel="stylesheet" href="'. get_bloginfo('url') . '/wp-content/plugins/wp-page-numbers/';
21
  if($head_stylesheet_folder_name == "")
22
  {
23
  if($style_theme == "default")
157
  }
158
 
159
  function wp_page_numbers()
160
+ {
161
+
162
+ if(is_front_page() || is_archive())
163
  {
164
  global $wp_query;
165
  global $max_page;
255
 
256
  if($max_page != 1)
257
  echo $pagingString;
258
+
259
+ }
260
  }
261
 
262
  function wp_page_numbers_settings()
344
  echo 'checked="checked"';
345
  }
346
  ?>/>
347
+ <img src="<?php echo get_bloginfo('url'); ?>/wp-content/plugins/wp-page-numbers/default/preview.gif" alt="" />
348
  </td>
349
  </tr>
350
  <tr>
356
  echo 'checked="checked"';
357
  }
358
  ?>/>
359
+ <img src="<?php echo get_bloginfo('url'); ?>/wp-content/plugins/wp-page-numbers/classic/preview.gif" alt="" />
360
  </td>
361
  </tr>
362
  <tr>
368
  echo 'checked="checked"';
369
  }
370
  ?>/>
371
+ <img src="<?php echo get_bloginfo('url'); ?>/wp-content/plugins/wp-page-numbers/tiny/preview.gif" alt="" />
372
  </td>
373
  </tr>
374
  <tr>
380
  echo 'checked="checked"';
381
  }
382
  ?>/>
383
+ <img src="<?php echo get_bloginfo('url'); ?>/wp-content/plugins/wp-page-numbers/panther/preview.gif" alt="" />
384
  </td>
385
  </tr>
386
  <tr>
392
  echo 'checked="checked"';
393
  }
394
  ?>/>
395
+ <img src="<?php echo get_bloginfo('url'); ?>/wp-content/plugins/wp-page-numbers/stylish/preview.gif" alt="" />
396
  </td>
397
  </tr>
398
  <tr>