Changeset 278 for branches/Ver2.0/xpressme_integration_kit/include
- Timestamp:
- Jun 15, 2009, 9:49:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.0/xpressme_integration_kit/include/xpress_render.php
r232 r278 5 5 { 6 6 global $xpress_config; 7 8 $pattern = "<body[^>]*?>(.*)<\/body>"; 9 $body_cut = preg_replace("/".$pattern."/s" , '' , $contents); 10 11 7 12 $pattern = "<head[^>]*?>(.*)<\/head>"; 8 preg_match("/".$pattern."/s", $ contents, $head_matches);13 preg_match("/".$pattern."/s", $body_cut, $head_matches); 9 14 $head_str = $head_matches[1]; 10 15 … … 208 213 $xpress_data['left_post_link'] = $GLOBALS['left_arrow_post_link']; 209 214 $xpress_data['right_post_link'] = $GLOBALS['right_arrow_post_link']; 210 $xpress_data['left_posts_link'] = str_replace('«','',xpress_left_arrow_posts_link( false));211 $xpress_data['right_posts_link'] = str_replace('»','',xpress_right_arrow_posts_link( false));212 $xpress_data['now_user_level'] = xpress_now_user_level( false);215 $xpress_data['left_posts_link'] = str_replace('«','',xpress_left_arrow_posts_link('echo=0')); 216 $xpress_data['right_posts_link'] = str_replace('»','',xpress_right_arrow_posts_link('echo=0')); 217 $xpress_data['now_user_level'] = xpress_now_user_level('echo=0'); 213 218 214 219 $xoopsTpl->assign('xpress', $xpress_data);
Note: See TracChangeset
for help on using the changeset viewer.