web/wp-content/plugins/posts-of-current-category/posts-of-current-category.php
branchwordpress
changeset 123 561aa6d282f6
parent 109 03b0d1493584
--- a/web/wp-content/plugins/posts-of-current-category/posts-of-current-category.php	Tue Jan 05 09:59:49 2010 +0000
+++ b/web/wp-content/plugins/posts-of-current-category/posts-of-current-category.php	Mon Feb 01 09:51:57 2010 +0000
@@ -6,6 +6,7 @@
 Version: 0.1
 Author: Anup Raj
 Author URI: http://anupraj.com.np/home/
+// modified by sam 21/01/2010
 */
 
 class posts_cur_cat extends WP_Widget {
@@ -147,12 +148,15 @@
 	$posts = get_posts($query); //get posts
 	$postlist = '';	
     foreach ($posts as $post) {
-		$post_title = htmlspecialchars(stripslashes($post->post_title));
-		$postlist .= '<li><a href="' . get_permalink($post->ID) . '" title="'. $post_title .'" >' . $post_title . '</a> </li>';
+		$post_title_s = htmlspecialchars(stripslashes(cache_cutter($post->post_title)));
+		$post_title_l = htmlspecialchars(stripslashes(text_cutter($post->post_title,200)));
+		// modif here (cache_cutter(); ) 				
+		$postlist .= '<li><a href="' . get_permalink($post->ID) . '" title="'.  $post_title_s .'" >' . $post_title_l . ' </a> </li>';
     }
 	
 	echo '<ul class="advanced-recent-posts">';		
 		echo $postlist;
 	echo '</ul>';
  }
+
 ?>
\ No newline at end of file