- Timestamp:
- Mar 14, 2010, 1:45:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/enhanced_block_theme.php
r448 r541 1 1 <?php 2 // Block Version: 1. 02 // Block Version: 1.1 3 3 function enhanced_block($options) 4 4 { … … 9 9 $include_path = dirname(__FILE__) . '/my_' . $include_file . '_block.php'; 10 10 11 $file_found = true; 11 12 if (empty($include_file)) { 13 $file_found = false; 12 14 $output = __('The include file name to display it is not set.','xpress'); 13 } else if (! file_exists($include_path)) { 14 $output = sprintf(__('File %s not exist.','xpress'),$include_path); 15 } else { 15 } 16 if (! file_exists($include_path)) { 17 $include_path_temp = $include_path; 18 $include_path = dirname(dirname(dirname(__FILE__))).'/xpress_default/blocks/my_' . $include_file . '_block.php'; 19 if (! file_exists($include_path)) { 20 $file_found = false; 21 $output = sprintf(__('File %s not exist.','xpress'),$include_path_temp); 22 } 23 } 24 if($file_found) { 16 25 ob_start(); 17 26 require $include_path;
Note: See TracChangeset
for help on using the changeset viewer.