Skip to content
Browse files

Add title to category title [1](http://wordpress.stackexchange.com/qu…

  • Loading branch information...
1 parent 4264c8b commit 238f792e2c1b707eaa53dce583e1fe70aa3a299a @picandocodigo committed Apr 19, 2012
Showing with 27 additions and 14 deletions.
  1. +22 −9 include/CatListDisplayer.php
  2. +5 −5 readme.txt
View
31 include/CatListDisplayer.php
@@ -1,6 +1,7 @@
<?php
/**
- * This is an auxiliary class to help display the info on your CatList.php instance.
+ * This is an auxiliary class to help display the info
+ * on your CatList.php instance.
* @author fernando@picandocodigo.net
*/
require_once 'CatList.php';
@@ -98,16 +99,25 @@ private function lcp_build_post($single, $tag){
$class = " class = current ";
endif;
$lcp_display_output = '<'. $tag . $class . '>';
- $lcp_display_output .= $this->get_post_title($single, $this->params['title_tag'], $this->params['title_class']);
+ $lcp_display_output .=
+ $this->get_post_title($single, $this->params['title_tag'],
+ $this->params['title_class']);
+ $lcp_display_output .=
+ $this->get_comments($single, $this->params['comments_tag'],
+ $this->params['comments_class']) . ' ';
- $lcp_display_output .= $this->get_comments($single, $this->params['comments_tag'], $this->params['comments_class']) . ' ';
+ $lcp_display_output .=
+ $this->get_date($single, $this->params['date_tag'],
+ $this->params['date_class']) . ' ';
- $lcp_display_output .= $this->get_date($single, $this->params['date_tag'], $this->params['date_class']) . ' ';
-
- $lcp_display_output .= $this->get_author($single, $this->params['author_tag'], $this->params['author_class']) . ' ';
+ $lcp_display_output .=
+ $this->get_author($single, $this->params['author_tag'],
+ $this->params['author_class']) . ' ';
if (isset($this->params['customfield_display'])){
- $lcp_display_output .= $this->get_custom_fields($this->params['customfield_display'], $single->ID);
+ $lcp_display_output .=
+ $this->get_custom_fields($this->params['customfield_display'],
+ $single->ID);
}
$lcp_display_output .= $this->get_thumbnail($single);
@@ -156,7 +166,8 @@ private function get_excerpt($single, $tag = null, $css_class = null){
}
private function get_thumbnail($single, $tag = null){
- if ( isset($this->params['thumbnail_class']) && $this->params['thumbnail_class'] != '' ){
+ if ( isset($this->params['thumbnail_class']) &&
+ $this->params['thumbnail_class'] != '' ){
$lcp_thumb_class = $this->params['thumbnail_class'];
$info = $this->catlist->get_thumbnail($single, $lcp_thumb_class);
} else {
@@ -166,7 +177,9 @@ private function get_thumbnail($single, $tag = null){
}
private function get_post_title($single, $tag = null, $css_class = null){
- $info = '<a href="' . get_permalink($single->ID).'" >' . $single->post_title . '</a>';
+ $info = '<a href="' . get_permalink($single->ID) .
+ '" title="'. $single->post_title . '">' .
+ $single->post_title . '</a>';
return $this->assign_style($info, $tag, $css_class);
}
View
10 readme.txt
@@ -25,15 +25,13 @@ Please, read the information on [Other Notes](http://wordpress.org/extend/plugin
`[catlist argument1=value1 argument2=value2]`
-
-
**Support the plugin**
-If you've found the plugin useful, consider making a [donation via PayPal](http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/ "Donate via PayPal") or visit my [Amazon Wishlist](http://www.amazon.com/gp/registry/wishlist/2HU1JYOF7DX5Q/ref=wl_web "Amazon Wishlist").
+If you've found the plugin useful, consider making a [donation via PayPal](http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/ "Donate via PayPal") or visit my Amazon Wishlist for [books](http://www.amazon.com/gp/registry/wishlist/2HU1JYOF7DX5Q/ref=wl_web "Amazon Wishlist") or [comic books](http://www.amazon.com/registry/wishlist/1LVYAOJAZQOI0/ref=cm_wl_rlist_go_o) :).
**Development**
-I've moved the development to [GitHub](https://github.com/picandocodigo/List-Category-Posts), Subversion and the WordPress.org structure have become old. Fork it, code, make a pull request, suggest improvements, etc. over there. Maybe someday all of the WordPress plugins will be hosted on Github :)
+I've moved the development to [GitHub](https://github.com/picandocodigo/List-Category-Posts). Fork it, code, make a pull request, suggest improvements, etc. over there. I dream of the day all of the WordPress plugins will be hosted on Github :)
==Installation==
@@ -192,8 +190,10 @@ Template system has changed. Custom templates should be stored in WordPress them
= 0.24 =
- * Attempting to condition whitespaces to WordPress Coding Standard (emacs php-mode sucks for this...)
* Fixes "excerpt doesn't strip shortcodes" - https://github.com/picandocodigo/List-Category-Posts/issues/5
+ * Exclude currently displayed post - [1](http://wordpress.stackexchange.com/questions/44895/exclude-current-page-from-list-of-pages/), [2](https://github.com/picandocodigo/List-Category-Posts/pull/8)
+ * Add title to category title [1](http://wordpress.stackexchange.com/questions/44467/list-category-plugin-changing-the-links), will be improved.
+ * Attempting to condition whitespaces to WordPress Coding Standard (emacs php-mode sucks for this...)
* No more git-svn crap, now I'm developing this over at (GitHub)[https://github.com/picandocodigo/List-Category-Posts] and copying it into the WordPress SVN Repo.
= 0.23.2 =

0 comments on commit 238f792

Please sign in to comment.
Something went wrong with that request. Please try again.