WP-Paginate - Version 2.0.2

Version Description

  • Added new preset
  • Updated setting page screen shots
Download this release

Release Info

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

Code changes from version 2.0.1 to 2.0.2

css/wp-paginate.css CHANGED
@@ -40,42 +40,6 @@ ol.wp-paginate li {
40
  .wp-paginate.font-verdana {font-family: Verdana, sans-serif;}
41
 
42
 
43
- /* Theme: Free-Standing Numbers */
44
- .wp-paginate.wpp-numbers a, .wp-paginate.wpp-numbers .current {
45
- background: transparent;
46
- border: none;
47
- }
48
- .wp-paginate.wpp-numbers .current {
49
- color: #ccc;
50
- }
51
-
52
- /* Theme: Peach Buttons */
53
- .wp-paginate.wpp-peach a, .wp-paginate.wpp-peach .current {
54
- background: #ffcaaf;
55
- border:none;
56
- border-radius: 4px;
57
- color: #908c90;
58
- }
59
- .wp-paginate.wpp-peach .current {
60
- opacity: .6;
61
- }
62
-
63
-
64
- /* Theme: Outlined Buttons */
65
- .wp-paginate.wpp-outlined a, .wp-paginate.wpp-outlined .current {
66
- background: #fff;
67
- border: 2px solid #ababab;
68
- border-radius: 6px;
69
- color: #ababab;
70
- padding: 6px 12px;
71
- }
72
- .wp-paginate.wpp-outlined a:hover {
73
- color: #000;
74
- }
75
- .wp-paginate.wpp-outlined .current {
76
- opacity: .6;
77
- }
78
-
79
  /* Theme: Modern Grey Buttons */
80
  .wp-paginate.wpp-modern-grey a, .wp-paginate.wpp-modern-grey .current {
81
  background: #f8f8f8;
40
  .wp-paginate.font-verdana {font-family: Verdana, sans-serif;}
41
 
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  /* Theme: Modern Grey Buttons */
44
  .wp-paginate.wpp-modern-grey a, .wp-paginate.wpp-modern-grey .current {
45
  background: #f8f8f8;
images/MLPP-card-red.png CHANGED
Binary file
images/blue-cta-buttons.jpg CHANGED
Binary file
images/default.jpg CHANGED
Binary file
images/modern-grey-buttons.jpg CHANGED
Binary file
images/numbers.jpg DELETED
Binary file
images/outlined-buttons.jpg DELETED
Binary file
images/peach.jpg DELETED
Binary file
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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,6 +159,10 @@ 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.1 =
163
  * fixed undefined index notices
164
 
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.2
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.2 =
163
+ * Added new preset
164
+ * Updated setting page screen shots
165
+
166
  = 2.0.1 =
167
  * fixed undefined index notices
168
 
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
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.1
7
  Author: Max Foundry
8
  Author URI: http://maxfoundry.com
9
  Text Domain: 'wp-paginate'
@@ -40,7 +40,8 @@ if(!defined('WPP_WP_PAGINATE_PRO_LINK'))
40
  define("WPP_WP_PAGINATE_PRO_LINK", "https://maxgalleria.com/downloads/wp-paginate-pro/");
41
 
42
  define("WPP_REVIEW_NOTICE", "wpp_review_notice");
43
- define("WP_PAGINATE_NONCE", "wpp_js_nonce");
 
44
 
45
  /**
46
  * Set the wp-content and plugin urls/paths
@@ -59,7 +60,7 @@ if (!class_exists('WPPaginate')) {
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
@@ -146,6 +147,7 @@ if (!class_exists('WPPaginate')) {
146
  $this->presets = array(
147
  array('default', __('Grey Buttons', 'wp-paginate'), 'default.jpg'),
148
  array('wpp-blue-cta', __('Blue Buttons', 'wp-paginate'), 'blue-cta-buttons.jpg'),
 
149
  );
150
 
151
  if ($this->options['css'])
@@ -332,7 +334,7 @@ if (!class_exists('WPPaginate')) {
332
  ? esc_url(get_pagenum_link($page + 1))
333
  : get_comments_pagenum_link($page + 1);
334
 
335
- $output = $before;
336
  if ($pages > 1) {
337
 
338
  if($preset === 'default')
@@ -387,7 +389,7 @@ if (!class_exists('WPPaginate')) {
387
  }
388
  $output .= "</ol>";
389
  }
390
- $output .= $after;
391
 
392
  if ($pages > 1 || $empty) {
393
  echo $output;
@@ -556,6 +558,7 @@ if (!class_exists('WPPaginate')) {
556
 
557
  <form method="post" id="wp_paginate_options">
558
  <?php wp_nonce_field('wp-paginate-update-options'); ?>
 
559
  <h3><?php _e('General', 'wp-paginate'); ?></h3>
560
  <table class="form-table">
561
  <tr valign="top">
@@ -716,7 +719,9 @@ if (!class_exists('WPPaginate')) {
716
  </tr>
717
  <tr valign="top">
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'])) {
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.2
7
  Author: Max Foundry
8
  Author URI: http://maxfoundry.com
9
  Text Domain: 'wp-paginate'
40
  define("WPP_WP_PAGINATE_PRO_LINK", "https://maxgalleria.com/downloads/wp-paginate-pro/");
41
 
42
  define("WPP_REVIEW_NOTICE", "wpp_review_notice");
43
+ if(!defined("WP_PAGINATE_NONCE"))
44
+ define("WP_PAGINATE_NONCE", "wpp_js_nonce");
45
 
46
  /**
47
  * Set the wp-content and plugin urls/paths
60
  /**
61
  * @var string The plugin version
62
  */
63
+ public $version = '2.0.2';
64
 
65
  /**
66
  * @var string The options string name for this plugin
147
  $this->presets = array(
148
  array('default', __('Grey Buttons', 'wp-paginate'), 'default.jpg'),
149
  array('wpp-blue-cta', __('Blue Buttons', 'wp-paginate'), 'blue-cta-buttons.jpg'),
150
+ array('wpp-modern-grey', __('Modern Grey Buttons', 'wp-paginate'), 'modern-grey-buttons.jpg'),
151
  );
152
 
153
  if ($this->options['css'])
334
  ? esc_url(get_pagenum_link($page + 1))
335
  : get_comments_pagenum_link($page + 1);
336
 
337
+ $output = stripslashes(wp_kses_decode_entities($before));
338
  if ($pages > 1) {
339
 
340
  if($preset === 'default')
389
  }
390
  $output .= "</ol>";
391
  }
392
+ $output .= stripslashes(wp_kses_decode_entities($after));
393
 
394
  if ($pages > 1 || $empty) {
395
  echo $output;
558
 
559
  <form method="post" id="wp_paginate_options">
560
  <?php wp_nonce_field('wp-paginate-update-options'); ?>
561
+
562
  <h3><?php _e('General', 'wp-paginate'); ?></h3>
563
  <table class="form-table">
564
  <tr valign="top">
719
  </tr>
720
  <tr valign="top">
721
  <th scope="row"><?php _e('Button Style:', 'wp-paginate'); ?></th>
722
+ <input type='hidden' value='<?php echo $this->options['preset']; ?>' name='preset' id='preset'>
723
  <td>
724
+ <p>Choose a preset style from the list below.</p>
725
  <table class="button-styles">
726
  <?php
727
  if(isset($this->options['preset'])) {