Changeset 96 for trunk/include/xpress_render.php
- Timestamp:
- Mar 6, 2009, 5:16:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/xpress_render.php
r61 r96 10 10 $pattern = "<style[^>]*?>(.*)<\/style>"; 11 11 preg_match("/".$pattern."/s", $head_str, $style_matches); 12 $style = $style_matches[0]; 12 if (empty($style_matches[0])) 13 $style = ''; 14 else 15 $style = $style_matches[0]; 13 16 14 17 $pattern = "<link(.*)>"; … … 95 98 //rendering for the module header and the body 96 99 function xpress_render($contents){ 97 global $xoops Tpl;98 include XOOPS_ROOT_PATH."/header.php";99 $page_title = $GLOBALS["xoopsModule"]->getVar("name")." ".wp_title('»', false); 100 global $xoops_config , $xoopsTpl; 101 include $xoops_config->xoops_root_path ."/header.php"; 102 $page_title = $GLOBALS["xoopsModule"]->getVar("name")." ".wp_title('»', false); 100 103 $xoopsTpl->assign('xoops_module_header', get_xpress_module_header($contents)); 101 104 $xoopsTpl->assign('xoops_pagetitle', $page_title); 102 105 $xoopsTpl->assign('xpress_body_contents', get_body($contents)); 103 106 echo get_body($contents); 107 require_once( ABSPATH .'/include/xpress_breadcrumbs.php' ); 108 include $xoops_config->xoops_root_path . '/footer.php'; 104 109 } 105 110
Note: See TracChangeset
for help on using the changeset viewer.