Index: trunk/wp-content/themes/xpress_default/blocks/enhanced_block_theme.php
===================================================================
--- trunk/wp-content/themes/xpress_default/blocks/enhanced_block_theme.php	(revision 138)
+++ trunk/wp-content/themes/xpress_default/blocks/enhanced_block_theme.php	(revision 138)
@@ -0,0 +1,24 @@
+<?php
+function enhanced_block($options)
+{
+	$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
+	$this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_enhanced_block.html' : trim( $options[1] );
+	$include_file = empty( $options[2] ) ? '' : $options[2] ;
+	
+	$include_path = dirname(__FILE__) . '/my_' . $include_file . '_block.php';
+
+	if (empty($include_file)) {
+		$output = __('The include file name to display it is not set.','xpress');
+	} else if (! file_exists($include_path)) {
+		$output = sprintf(__('File %s not exist.','xpress'),$include_path);
+	} else {
+		ob_start();
+			require $include_path;
+			$output = ob_get_contents();
+		ob_end_clean();
+		if (empty($output)) $output = __('PHP code error','xpress') . '( ' . $php_code . ' )';
+	}
+	$block['enhanced'] = $output;
+	return $block ;	
+}
+?>
