Index: trunk/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php
===================================================================
--- trunk/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php	(revision 138)
+++ trunk/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php	(revision 142)
@@ -6,8 +6,13 @@
 	$disp_count = empty( $options[2] ) ? '10' : $options[2] ;
 	$show_month_range = empty( $options[3] ) ? '0' : $options[3] ;
-	$tag_select = $options[4] ;
-	$selected = array_slice($options,5); // get allowed cats
+	$date_format = empty( $options[4] ) ? '' : $options[4] ;
+	$time_format = empty( $options[5] ) ? '' : $options[5] ;
+	$tag_select = $options[6] ;
+	$selected = array_slice($options, 7); // get allowed cats
+
 	$mydirpath = get_xpress_dir_path();
 	
+	if (empty($date_format)) $date_format = get_settings('date_format');
+	if (empty($time_format)) $time_format = get_settings('time_format');
 	if (array_search(0,$selected)===0) {
 		$cat_select = false;
@@ -112,20 +117,20 @@
 			
 			ob_start();
-				the_modified_date(get_settings('date_format'));
+				the_modified_date($date_format);
 				$post_modified_date = ob_get_contents();
 			ob_end_clean();
 			
 			ob_start();
-				the_modified_date(get_settings('time_format'));
+				the_modified_date($time_format);
 				$post_modified_time = ob_get_contents();
 			ob_end_clean();
 			
 			ob_start();
-				the_time(get_settings('date_format'));
+				the_time($date_format);
 				$post_date = ob_get_contents();
 			ob_end_clean();
 			
 			ob_start();
-				the_time(get_settings('time_format'));
+				the_time($time_format);
 				$post_time = ob_get_contents();
 			ob_end_clean();
Index: trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php
===================================================================
--- trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php	(revision 138)
+++ trunk/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php	(revision 142)
@@ -8,9 +8,12 @@
 	$disp_count = empty( $options[2] ) ? '10' : $options[2] ;
 	$disp_length = empty( $options[3] ) ? '30' : $options[3] ;
-	$selected = array_slice($options,4); // get allowed cats
-//	$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
+	$date_format = empty( $options[4] ) ? '' : $options[4] ;
+	$time_format = empty( $options[5] ) ? '' : $options[5] ;
+    $selected = array_slice($options,6); // get allowed cats
+
 	$mydirpath = get_xpress_dir_path();
-	$this_url = '/modules/'. $mydirname;
-	$call_url = $_SERVER['REQUEST_URI'];
+	
+	if (empty($date_format)) $date_format = get_settings('date_format');
+	if (empty($time_format)) $time_format = get_settings('time_format');
 	
 	$disp_all = in_array('0',$selected);
@@ -47,5 +50,4 @@
 
 		$comments = $wpdb->get_results($comment_sql);
-		$format = get_settings('date_format') . ' ' . get_settings('time_format');				
 		
 		if ( $comments ) {
@@ -74,6 +76,6 @@
 					'comment_ID' 		=> $comment->comment_ID ,
 					'comment_post_ID'	=> $comment->comment_post_ID ,
-					'comment_date' 		=> date(get_settings('date_format'),$comment->comment_unix_time) ,
-					'comment_date_time' => date(get_settings('date_format') . ' ' . get_settings('time_format'),$comment->comment_unix_time) ,
+					'comment_date' 		=> date($date_format,$comment->comment_unix_time) ,
+					'comment_date_time' => date($date_format . ' ' . $time_format,$comment->comment_unix_time) ,
 					'comment_content' 	=> $comment_content ,
 					'comment_excerpt' 	=> $comment_excerpt ,
Index: trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php
===================================================================
--- trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php	(revision 138)
+++ trunk/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php	(revision 142)
@@ -9,12 +9,13 @@
 	$except = empty( $options[3] ) ? false : true ;
 	$except_size =  ($options[4])?intval($options[4]):100;
-	$tag_select = $options[5] ;
-    $selected = array_slice($options,6); // get allowed cats
-//	$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
+	$date_format = empty( $options[5] ) ? '' : $options[5] ;
+	$time_format = empty( $options[6] ) ? '' : $options[6] ;
+	$tag_select = $options[7] ;
+    $selected = array_slice($options,8); // get allowed cats
+
 	$mydirpath = get_xpress_dir_path();
 	
-	$this_url = '/modules/'. $mydirname;
-	$call_url = $_SERVER['REQUEST_URI'];
-	
+	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'&";
 	
@@ -70,20 +71,20 @@
 
 			ob_start();
-				the_modified_date(get_settings('date_format'));
+				the_modified_date($date_format);
 				$post_modified_date = ob_get_contents();
 			ob_end_clean();
 			
 			ob_start();
-				the_modified_date(get_settings('time_format'));
+				the_modified_date($time_format);
 				$post_modified_time = ob_get_contents();
 			ob_end_clean();
 			
 			ob_start();
-				the_time(get_settings('date_format'));
+				the_time($date_format);
 				$post_date = ob_get_contents();
 			ob_end_clean();
 			
 			ob_start();
-				the_time(get_settings('time_format'));
+				the_time($time_format);
 				$post_time = ob_get_contents();
 			ob_end_clean();
Index: trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php
===================================================================
--- trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php	(revision 138)
+++ trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php	(revision 142)
@@ -7,9 +7,13 @@
 	$disp_red = empty( $options[3] ) ? '1' : $options[3] ;
 	$disp_green = empty( $options[4] ) ? '7' : $options[4] ;
-	$tag_select = $options[5] ;
-	$selected = array_slice($options,6); // get allowed cats
-//	$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
+	$date_format = empty( $options[5] ) ? '' : $options[5] ;
+	$time_format = empty( $options[6] ) ? '' : $options[6] ;
+	$tag_select = $options[7] ;
+	$selected = array_slice($options,8); // get allowed cats
+
 	$mydirpath = get_xpress_dir_path();
 
+	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'&";
 	
@@ -59,20 +63,20 @@
 			
 			ob_start();
-				the_modified_date(get_settings('date_format'));
+				the_modified_date($date_format);
 				$post_modified_date = ob_get_contents();
 			ob_end_clean();
 			
 			ob_start();
-				the_modified_date(get_settings('time_format'));
+				the_modified_date($time_format);
 				$post_modified_time = ob_get_contents();
 			ob_end_clean();
 			
 			ob_start();
-				the_time(get_settings('date_format'));
+				the_time($date_format);
 				$post_date = ob_get_contents();
 			ob_end_clean();
 			
 			ob_start();
-				the_time(get_settings('time_format'));
+				the_time($time_format);
 				$post_time = ob_get_contents();
 			ob_end_clean();
