Index: trunk/xpressme_integration_kit/templates/source/global_recent_posts_list_block.html
===================================================================
--- trunk/xpressme_integration_kit/templates/source/global_recent_posts_list_block.html	(revision 544)
+++ trunk/xpressme_integration_kit/templates/source/global_recent_posts_list_block.html	(revision 545)
@@ -23,6 +23,6 @@
 		<{$content.post_category}>				// Displays a link to the category or categories a post belongs to.
 		<{$content.post_tags}>					// Displays a link to the tag or tags a post belongs to.
-//		<{$content.post_views}>					// Displays the number of posts viewer.
-//		<{$content.new_mark}>					// The mark is displayed. The mark is different according to lapsed days from the release date. 
+		<{$content.post_views}>					// Displays the number of posts viewer.
+		<{$content.new_mark}>					// The mark is displayed. The mark is different according to lapsed days from the release date. 
 		<{/foreach}>							// End of Loop
 ************************* End of usage ************************ *}>
@@ -35,5 +35,5 @@
 		<{foreach from=$block.contents item=content}>
 			<li>
-			<{$content.title_link}><br />
+			<{$content.new_mark}> <{$content.title_link}><br />
 			<{$content.post_date_time}><br />
 			<{$content.blog_link}><br />
Index: trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
===================================================================
--- trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php	(revision 544)
+++ trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php	(revision 545)
@@ -479,12 +479,15 @@
 			$post_id = $GLOBALS['post']->ID;
 	}
+	if ( empty($blogid) ) {
+		$blogid = $blog_id;
+	}
 
 	$post_id = intval($post_id);
 	if($post_id==0) return null;
 	if(!isset($post_cache_views[$post_id])){
-		if (is_null($blog_id)){
+		if (is_null($blogid)){
 			$blog_where = '';
 		} else {
-			$blog_where = ' AND blog_id = '. $blog_id;
+			$blog_where = ' AND blog_id = '. $blogid;
 		}
 		$sql = "SELECT post_views FROM " . get_wp_prefix() . "views" . " WHERE post_id=$post_id " .  $blog_where;
@@ -937,5 +940,8 @@
 						$data->post_modified_date_time = $data->post_modified_date . ' ' . $data->post_modified_time;
 						
-						$data->post_unix_time = xpress_get_post_unix_time($data->post_id, $data->brog_id);
+						ob_start();
+							the_time('U');
+							$data->post_unix_time = ob_get_contents();
+						ob_end_clean();
 						
 						ob_start();
@@ -955,4 +961,7 @@
 							$data->comments_link = ob_get_contents();
 						ob_end_clean();
+						
+						$data->post_views = xpress_post_views_count('post_id=' . $data->post_id . '&blogid=' . $data->brog_id . '&format=' . __('Views :%d', 'xpress'). '&echo=0');
+
 						$data_array[] = $data;
 	        		}  // end whilwe
@@ -978,21 +987,4 @@
 }
 
-function xpress_get_post_unix_time($post_id=0,$b_id=1)
-{
-	global $wpdb;
-	$post_id= (int)$post_id;
-	$b_id = (int)$b_id;
-	
-	$db_prefix = get_wp_prefix();
-	
-	if (empty($b_id)) $b_id =1;
-	$blog_prefix = '';
-	if ($b_id >1) $blog_prefix = $b_id . '_';
-	$post_tb = $db_prefix . $blog_prefix .'posts';
-
-	$sql = "SELECT UNIX_TIMESTAMP(post_date) AS post_timestamp FROM $post_tb WHERE ID = $post_id";
-	$post_timestamp = $wpdb->get_var($sql);
-	return $post_timestamp;
-}
 function xpress_get_blog_option($option_name,$b_id = 1)
 {
Index: trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_recent_posts_list_block_theme.php
===================================================================
--- trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_recent_posts_list_block_theme.php	(revision 544)
+++ trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_recent_posts_list_block_theme.php	(revision 545)
@@ -22,5 +22,17 @@
 		$data_array = xpress_grobal_recent_posts($disp_count);
 		$item_no = 0;
+		$red_sec = $disp_red *60*60*24;
+		$green_sec = $disp_green *60*60*24;
 		foreach($data_array as $data){
+			$elapse = time() - $data->post_unix_time;
+			$new_mark = '';
+			if ($elapse < $red_sec ) {
+				$new_mark = '<em style="color: red; font-size: small;">New! </em>';
+
+			} else if ($elapse < $green_sec) {
+				$new_mark = '<em style="color: green; font-size: small;">New! </em>';
+			}
+			$data->new_mark = $new_mark;
+
 			$row_data = get_object_vars($data);
 				
