Index: /trunk/xpressme_integration_kit/blocks/global_recent_posts_list_block.php
===================================================================
--- /trunk/xpressme_integration_kit/blocks/global_recent_posts_list_block.php	(revision 537)
+++ /trunk/xpressme_integration_kit/blocks/global_recent_posts_list_block.php	(revision 537)
@@ -0,0 +1,53 @@
+<?php
+if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;
+$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
+
+eval( '
+function b_'.$mydirname.'_global_posts_show($options){
+	return _b_global_posts_show($options) ;
+}
+function b_'.$mydirname.'_global_posts_edit($options){
+	return _b_global_posts_edit($options) ;
+}
+' ) ;
+
+if( ! defined( 'XPRESS_GLOBAL_POSTS_BLOCK_INCLUDED' ) ) {
+	define( 'XPRESS_GLOBAL_POSTS_BLOCK_INCLUDED' , 1 ) ;
+	function _b_global_posts_edit($options)
+	{
+		$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 = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
+		
+		require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php');
+
+		$form  = javascript_check();
+		$form .= "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n";
+		$form .= block_template_setting($mydirname,'options[1]',htmlspecialchars($this_template,ENT_QUOTES));
+		$form .= "<br />\n";	
+		$form .= _MB_XP2_COUNT .": <input type='text' size='3' name='options[2]' value='" . $disp_count . "' /><br />\n";
+		$form .= _MB_XP2_REDNEW_DAYS .": <input type='text' size='3' name='options[3]' value='" . $disp_red . "' /><br />\n";
+		$form .= _MB_XP2_GREENNEW_DAYS .": <input type='text' size='3' name='options[4]' value='" . $disp_green . "' /><br />\n";
+		$form .= _MB_XP2_DATE_FORMAT .": <input type='text' name='options[5]' value='" . $date_format . "' /><br />\n";
+		$form .= _MB_XP2_TIME_FORMAT .": <input type='text' name='options[6]' value='" . $time_format . "' /><br />\n";
+
+		return $form;
+	}
+
+	function _b_global_posts_show($options)
+	{
+		$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
+		$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
+		$block_function_name = basename( __FILE__ );
+		
+		require_once $mydirpath.'/include/xpress_block_render.php';
+		return xpress_block_render($mydirname,$block_function_name,$options);
+	}
+}
+?>
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 537)
+++ /trunk/xpressme_integration_kit/templates/source/global_recent_posts_list_block.html	(revision 537)
@@ -0,0 +1,45 @@
+<{* **************************  usage ****************************
+ 	The template tag of the following list can be used. 
+ 		<{$block.err_message}>					// When the block cannot be displayed, this outputs the reason. Please do not delete it. 
+ 		<{$block.data_count}>					// The number of contents is displayed.
+		<{$block.contents}>						// Data array of contents. 
+		// Examples of <{$block.contents}>
+		<{foreach from=$block.contents item=content}>	// Loop
+		<{$content.post_id}>					// Displays the numeric ID of the post.
+		<{$content.blog_id}>					// Displays the numeric ID of the blog.
+		<{$content.post_permalink}>				// Displays the post's permalink.
+		<{$content.title_link}>					// Displays the post's permalink, where the link text value is the posts title name.
+		<{$content.the_content}>				// Displays the contents of the post.
+		<{$content.the_full_content}>				// Displays the contents of the post.
+		<{$content.post_modified_date}>			// Displays the modified date of a post. Format at date set by general setting of Wordpress.
+		<{$content.post_modified_time}>			// Displays the modified date of a post. Format at date set by general setting of Wordpress.
+		<{$content.post_modified_date_time}>	// Displays the modified date-time of a post.
+		<{$content.post_unix_time}>				// Displays the published unix time stanp of a post.
+		<{$content.post_date}>					// Displays the published date of a post. Format at date set by general setting of Wordpress.
+		<{$content.post_time}>					// Displays the published time of a post. Format at time set by general setting of Wordpress.
+		<{$content.post_date_time}>				// Displays the published date-time of a post. Format at time set by general setting of Wordpress.
+		<{$content.comments_link}>				// Displays a link to the comments popup window if comments_popup_script() is used, otherwise it displays a normal link to comments. 
+		<{$content.post_author}>				// Displays the author's archive link, where the link text value is the user's Display name. 
+		<{$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. 
+		<{/foreach}>							// End of Loop
+************************* End of usage ************************ *}>
+<{* Start Template *}>
+
+<div class="xpress_block">
+	<{$block.err_message}>
+	<div class="xpress_global_recent_post_list_block">
+		<ul>
+		<{foreach from=$block.contents item=content}>
+			<li>
+			<{$content.title_link}><br />
+			<{$content.post_date_time}><br />
+			<{$content.blog_link}><br />
+			<{$content.post_author}><br />
+			</li>
+		<{/foreach}>
+		</ul>
+	</div>
+</div>
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 ;
+}
+?>
