Version Description
- Fixes pagination numbers
- Removes warning on wp-debug set to true
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.42.2 |
Comparing to | |
See all releases |
Code changes from version 0.42.1 to 0.42.2
- include/CatListDisplayer.php +7 -3
- list_cat_posts.php +2 -2
- readme.txt +5 -1
include/CatListDisplayer.php
CHANGED
@@ -78,7 +78,7 @@ class CatListDisplayer {
|
|
78 |
|
79 |
//Give id to wrapper tag
|
80 |
if (isset($this->params['instance'])){
|
81 |
-
$this->lcp_output .= ' id=lcp_instance_' . $this->params['instance'];
|
82 |
}
|
83 |
|
84 |
$this->lcp_output .= '>';
|
@@ -89,7 +89,9 @@ class CatListDisplayer {
|
|
89 |
//Posts loop
|
90 |
foreach ($this->catlist->get_categories_posts() as $single) :
|
91 |
if ( !post_password_required($single) ||
|
92 |
-
( post_password_required($single) &&
|
|
|
|
|
93 |
$this->lcp_output .= $this->lcp_build_post($single, $inner_tag);
|
94 |
endif;
|
95 |
endforeach;
|
@@ -121,7 +123,7 @@ class CatListDisplayer {
|
|
121 |
$this->catlist->get_posts_count() / $this->catlist->get_number_posts()
|
122 |
);
|
123 |
for($i = 1; $i <= $pages_count; $i++){
|
124 |
-
$lcp_paginator .= $this->lcp_page_link($i
|
125 |
}
|
126 |
|
127 |
$pag_output .= "<ul class='lcp_paginator'>";
|
@@ -159,7 +161,9 @@ class CatListDisplayer {
|
|
159 |
$amp . "lcp_page" . $this->catlist->get_instance() . "=". $page .
|
160 |
"#lcp_instance_" . $this->catlist->get_instance();
|
161 |
$link .= "<li><a href='$page_link' title='$page'>";
|
|
|
162 |
($char != null) ? ($link .= $char) : ($link .= $page);
|
|
|
163 |
$link .= "</a></li>";
|
164 |
}
|
165 |
return $link;
|
78 |
|
79 |
//Give id to wrapper tag
|
80 |
if (isset($this->params['instance'])){
|
81 |
+
$this->lcp_output .= ' id="lcp_instance_' . $this->params['instance'] . '"';
|
82 |
}
|
83 |
|
84 |
$this->lcp_output .= '>';
|
89 |
//Posts loop
|
90 |
foreach ($this->catlist->get_categories_posts() as $single) :
|
91 |
if ( !post_password_required($single) ||
|
92 |
+
( post_password_required($single) && (
|
93 |
+
isset($this->params['show_protected']) &&
|
94 |
+
$this->params['show_protected'] == 'yes' ) )):
|
95 |
$this->lcp_output .= $this->lcp_build_post($single, $inner_tag);
|
96 |
endif;
|
97 |
endforeach;
|
123 |
$this->catlist->get_posts_count() / $this->catlist->get_number_posts()
|
124 |
);
|
125 |
for($i = 1; $i <= $pages_count; $i++){
|
126 |
+
$lcp_paginator .= $this->lcp_page_link($i);
|
127 |
}
|
128 |
|
129 |
$pag_output .= "<ul class='lcp_paginator'>";
|
161 |
$amp . "lcp_page" . $this->catlist->get_instance() . "=". $page .
|
162 |
"#lcp_instance_" . $this->catlist->get_instance();
|
163 |
$link .= "<li><a href='$page_link' title='$page'>";
|
164 |
+
|
165 |
($char != null) ? ($link .= $char) : ($link .= $page);
|
166 |
+
|
167 |
$link .= "</a></li>";
|
168 |
}
|
169 |
return $link;
|
list_cat_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 from a category into 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, and the number of posts to display. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
|
6 |
-
Version: 0.42.
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://picandocodigo.net/
|
9 |
|
@@ -11,7 +11,7 @@
|
|
11 |
Domain Path: /languages/
|
12 |
*/
|
13 |
|
14 |
-
/* Copyright 2008-
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License as published by
|
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 from a category into 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, and the number of posts to display. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
|
6 |
+
Version: 0.42.2
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://picandocodigo.net/
|
9 |
|
11 |
Domain Path: /languages/
|
12 |
*/
|
13 |
|
14 |
+
/* Copyright 2008-2014 Fernando Briano (email : fernando@picandocodigo.net)
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License as published by
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate Link: http://picandocodigo.net/programacion/wordpress/list-category-posts
|
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.8
|
7 |
-
Stable tag: 0.42.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -385,6 +385,10 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
385 |
|
386 |
== Changelog ==
|
387 |
|
|
|
|
|
|
|
|
|
388 |
= 0.42.1 =
|
389 |
* Fixes some debug warnings (Ruby's nil doesn't apply in the PHP World)
|
390 |
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.8
|
7 |
+
Stable tag: 0.42.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
385 |
|
386 |
== Changelog ==
|
387 |
|
388 |
+
= 0.42.2 =
|
389 |
+
* Fixes pagination numbers
|
390 |
+
* Removes warning on wp-debug set to true
|
391 |
+
|
392 |
= 0.42.1 =
|
393 |
* Fixes some debug warnings (Ruby's nil doesn't apply in the PHP World)
|
394 |
|