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 537)
+++ trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_recent_posts_list_block_theme.php	(revision 537)
@@ -0,0 +1,38 @@
+<?php
+// Block Version: 1.0
+function global_recent_posts_list_block($options)
+{
+	if (is_admin()) return;
+	$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
+	$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[1] );
+	$disp_count = empty( $options[2] ) ? '10' : $options[2] ;
+	$disp_red = empty( $options[3] ) ? '1' : $options[3] ;
+	$disp_green = empty( $options[4] ) ? '7' : $options[4] ;
+	$date_format = empty( $options[5] ) ? '' : $options[5] ;
+	$time_format = empty( $options[6] ) ? '' : $options[6] ;
+	$mydirpath = get_xpress_dir_path();
+	
+	if (xpress_is_multiblog() && function_exists('get_blog_list')){
+		if (empty($date_format)) $date_format = get_settings('date_format');
+		if (empty($time_format)) $time_format = get_settings('time_format');
+		if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&";
+		
+		global $wpdb,$wp_query;
+		$block = array();
+		
+		$data_array = xpress_grobal_recent_posts($disp_count);
+		$item_no = 0;
+		foreach($data_array as $data){
+			$row_data = get_object_vars($data);
+				
+			$block['contents']['item'.$item_no] = $row_data;
+			$item_no++;
+		}
+		$block['data_count'] = $item_no;  //xml unserialise error
+	} else {
+		$block['err_message'] = __('This blog is not set to the multi blog.', 'xpress');
+	}
+		
+	return $block ;
+}
+?>
