Changeset 672
- Timestamp:
- Nov 30, 2010, 1:22:19 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/xpress_render.php
r576 r672 81 81 82 82 $link= locate_template($templates, false); 83 if ('' == $link) 84 $link = get_theme_root() . '/default/sidebar.php'; 85 86 ob_start(); 87 require($link); 88 $sidebar = ob_get_contents(); 89 ob_end_clean(); 90 return $sidebar; 83 if ('' == $link){ 84 // $link = get_theme_root() . '/default/sidebar.php'; 85 return ''; 86 } else { 87 ob_start(); 88 require($link); 89 $sidebar = ob_get_contents(); 90 ob_end_clean(); 91 return $sidebar; 92 } 91 93 } 92 94 … … 248 250 default : 249 251 } 250 251 $xpress_data['body_contents'] = get_body($contents); 252 if (empty($contents)){ 253 $template_name = get_option('template'); 254 $xpress_data['body_contents'] = "<p>Themes \"$template_name\" is broken or doesn't exist. </p><p>Please choose the right theme from the admin page of wordpress.</p>"; 255 } else { 256 $xpress_data['body_contents'] = get_body($contents); 257 } 252 258 // used $GLOBALS. becose xpress_left_arrow_post_link() and xpress_right_arrow_post_link() is other loop in this position 253 259 $xpress_data['left_post_link'] = @$GLOBALS['left_arrow_post_link'];
Note: See TracChangeset
for help on using the changeset viewer.