Version Description
- Fix a case where pagination would show up but the CSS wasn't being loaded.
- Fixes other issues with pagination Thanks Klemens Starybrat (zymeth25) for the fixes in this release :)
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.75.1 |
Comparing to | |
See all releases |
Code changes from version 0.75 to 0.75.1
- include/lcp-paginator.php +7 -3
- include/lcp-widget.php +2 -0
- list-category-posts.php +2 -2
- readme.txt +7 -1
include/lcp-paginator.php
CHANGED
@@ -24,10 +24,14 @@ class LcpPaginator {
|
|
24 |
# override general options).
|
25 |
# Receives params['pagination'] from CatList
|
26 |
private function show_pagination($pagination){
|
27 |
-
return !empty($pagination) &&
|
28 |
-
|
|
|
|
|
|
|
29 |
(get_option('lcp_pagination') === 'true' &&
|
30 |
-
($pagination !== 'false')
|
|
|
31 |
);
|
32 |
}
|
33 |
|
24 |
# override general options).
|
25 |
# Receives params['pagination'] from CatList
|
26 |
private function show_pagination($pagination){
|
27 |
+
return (!empty($pagination) && (
|
28 |
+
$pagination == 'yes' ||
|
29 |
+
$pagination == 'true')
|
30 |
+
)
|
31 |
+
||
|
32 |
(get_option('lcp_pagination') === 'true' &&
|
33 |
+
($pagination !== 'false') &&
|
34 |
+
($pagination !== 'no')
|
35 |
);
|
36 |
}
|
37 |
|
include/lcp-widget.php
CHANGED
@@ -73,6 +73,8 @@ class ListCategoryPostsWidget extends WP_Widget{
|
|
73 |
|
74 |
echo $before_widget;
|
75 |
|
|
|
|
|
76 |
if ($title == 'catlink') {
|
77 |
// If the user has setup 'catlink' as the title, replace it with
|
78 |
// the category link:
|
73 |
|
74 |
echo $before_widget;
|
75 |
|
76 |
+
if ($pagination === 'yes') lcp_pagination_css();
|
77 |
+
|
78 |
if ($title == 'catlink') {
|
79 |
// If the user has setup 'catlink' as the title, replace it with
|
80 |
// the category link:
|
list-category-posts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: List category posts
|
4 |
Plugin URI: https://github.com/picandocodigo/List-Category-Posts
|
5 |
Description: List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
|
6 |
-
Version: 0.75
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
9 |
|
@@ -126,7 +126,7 @@ class ListCategoryPosts{
|
|
126 |
'monthnum' => '',
|
127 |
'search' => '',
|
128 |
'link_target' => '',
|
129 |
-
'pagination' => '
|
130 |
'pagination_next' => '>>',
|
131 |
'pagination_prev' => '<<',
|
132 |
'no_posts_text' => "",
|
3 |
Plugin Name: List category posts
|
4 |
Plugin URI: https://github.com/picandocodigo/List-Category-Posts
|
5 |
Description: List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
|
6 |
+
Version: 0.75.1
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://fernandobriano.com
|
9 |
|
126 |
'monthnum' => '',
|
127 |
'search' => '',
|
128 |
'link_target' => '',
|
129 |
+
'pagination' => '',
|
130 |
'pagination_next' => '>>',
|
131 |
'pagination_prev' => '<<',
|
132 |
'no_posts_text' => "",
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: list, categories, posts, cms
|
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.9
|
7 |
Requires PHP: 5.2.4
|
8 |
-
Stable tag: 0.75
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -440,6 +440,12 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
440 |
|
441 |
== Changelog ==
|
442 |
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
= 0.75 =
|
444 |
|
445 |
* Improvements to `custom_fields` and `customfield_orderby`. Please check the readme for more information.
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.9
|
7 |
Requires PHP: 5.2.4
|
8 |
+
Stable tag: 0.75.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
440 |
|
441 |
== Changelog ==
|
442 |
|
443 |
+
= 0.75.1 =
|
444 |
+
|
445 |
+
* Fix a case where pagination would show up but the CSS wasn't being loaded.
|
446 |
+
* Fixes other issues with pagination
|
447 |
+
Thanks Klemens Starybrat (zymeth25) for the fixes in this release :)
|
448 |
+
|
449 |
= 0.75 =
|
450 |
|
451 |
* Improvements to `custom_fields` and `customfield_orderby`. Please check the readme for more information.
|