Version Description
- Bugfix release
Download this release
Release Info
Developer | fernandobt |
Plugin | List category posts |
Version | 0.23.2 |
Comparing to | |
See all releases |
Code changes from version 0.23.1 to 0.23.2
- include/CatListDisplayer.php +3 -3
- list_cat_posts.php +2 -2
- readme.txt +8 -5
include/CatListDisplayer.php
CHANGED
@@ -119,17 +119,17 @@ class CatListDisplayer {
|
|
119 |
/**
|
120 |
* Auxiliary functions for templates
|
121 |
*/
|
122 |
-
private function get_author($single, $tag, $css_class){
|
123 |
$info = $this->catlist->get_author_to_show($single);
|
124 |
return $this->assign_style($info, $tag, $css_class);
|
125 |
}
|
126 |
|
127 |
-
private function get_comments($single, $tag, $css_class){
|
128 |
$info = $this->catlist->get_comments_count($single);
|
129 |
return $this->assign_style($info, $tag, $css_class);
|
130 |
}
|
131 |
|
132 |
-
private function get_content($single, $tag, $css_class){
|
133 |
$info = $this->catlist->get_content($single);
|
134 |
return $this->assign_style($info, $tag, $css_class);
|
135 |
}
|
119 |
/**
|
120 |
* Auxiliary functions for templates
|
121 |
*/
|
122 |
+
private function get_author($single, $tag = null, $css_class = null){
|
123 |
$info = $this->catlist->get_author_to_show($single);
|
124 |
return $this->assign_style($info, $tag, $css_class);
|
125 |
}
|
126 |
|
127 |
+
private function get_comments($single, $tag = null, $css_class = null){
|
128 |
$info = $this->catlist->get_comments_count($single);
|
129 |
return $this->assign_style($info, $tag, $css_class);
|
130 |
}
|
131 |
|
132 |
+
private function get_content($single, $tag = null, $css_class = null){
|
133 |
$info = $this->catlist->get_content($single);
|
134 |
return $this->assign_style($info, $tag, $css_class);
|
135 |
}
|
list_cat_posts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: List category posts
|
4 |
Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
|
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.23.
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://picandocodigo.net/
|
9 |
*/
|
@@ -59,7 +59,7 @@ class ListCategoryPosts{
|
|
59 |
'tags' => '',
|
60 |
'content' => 'no',
|
61 |
'content_tag' => '',
|
62 |
-
'
|
63 |
'catlink' => 'no',
|
64 |
'catlink_tag' =>'',
|
65 |
'catlink_class' => '',
|
3 |
Plugin Name: List category posts
|
4 |
Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
|
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.23.2
|
7 |
Author: Fernando Briano
|
8 |
Author URI: http://picandocodigo.net/
|
9 |
*/
|
59 |
'tags' => '',
|
60 |
'content' => 'no',
|
61 |
'content_tag' => '',
|
62 |
+
'content_class' => '',
|
63 |
'catlink' => 'no',
|
64 |
'catlink_tag' =>'',
|
65 |
'catlink_class' => '',
|
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: 2.8
|
6 |
Tested up to: 3.3.1
|
7 |
-
Stable tag: 0.23.
|
8 |
|
9 |
== Description ==
|
10 |
List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode.
|
@@ -129,9 +129,8 @@ You can use the *categorypage* parameter to make it detect the category id of th
|
|
129 |
You can customize what HTML tags different elements will be sorrounded with and a CSS class for this element. The customizable elements are: author, catlink (category link), comments, date, excerpt, morelink ("Read More" link), thumbnail and title (post title).
|
130 |
|
131 |
The parameters are:
|
132 |
-
`autor_tag, author_class, catlink_tag, catlink_class, comments_tag, comments_class,
|
133 |
-
|
134 |
-
morelink_class, thumbnail_class, title_tag, title_class`
|
135 |
|
136 |
So for example, let's say you want to wrap the displayed comments count with the p tag and a "lcp_comments" class, you would do:
|
137 |
`[catlist id=7 comments=yes comments_tag=p comments_class=lcp_comments]`
|
@@ -189,9 +188,13 @@ Template system has changed. Custom templates should be stored in WordPress them
|
|
189 |
|
190 |
== Changelog ==
|
191 |
|
|
|
|
|
|
|
|
|
192 |
= 0.23.1 =
|
193 |
|
194 |
-
*
|
195 |
|
196 |
= 0.23 =
|
197 |
|
4 |
Tags: list, categories, posts, cms
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 3.3.1
|
7 |
+
Stable tag: 0.23.2
|
8 |
|
9 |
== Description ==
|
10 |
List Category Posts allows you to list posts from a category into a post/page using the [catlist] shortcode.
|
129 |
You can customize what HTML tags different elements will be sorrounded with and a CSS class for this element. The customizable elements are: author, catlink (category link), comments, date, excerpt, morelink ("Read More" link), thumbnail and title (post title).
|
130 |
|
131 |
The parameters are:
|
132 |
+
`autor_tag, author_class, catlink_tag, catlink_class, comments_tag, comments_class, date_tag, date_class,
|
133 |
+
excerpt_tag, excerpt_class, morelink_class, thumbnail_class, title_tag, title_class`
|
|
|
134 |
|
135 |
So for example, let's say you want to wrap the displayed comments count with the p tag and a "lcp_comments" class, you would do:
|
136 |
`[catlist id=7 comments=yes comments_tag=p comments_class=lcp_comments]`
|
188 |
|
189 |
== Changelog ==
|
190 |
|
191 |
+
= 0.23.2 =
|
192 |
+
|
193 |
+
* Bugfix release
|
194 |
+
|
195 |
= 0.23.1 =
|
196 |
|
197 |
+
* Bugfix release
|
198 |
|
199 |
= 0.23 =
|
200 |
|