Changeset 164
- Timestamp:
- Apr 7, 2009, 7:58:51 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/xpress_render.php
r109 r164 104 104 $xoopsTpl->assign('xoops_module_header', get_xpress_module_header($contents)); 105 105 $xoopsTpl->assign('xoops_pagetitle', $page_title); 106 $xoopsTpl->assign('xpress_body_contents', get_body($contents)); 106 $xpress_data['body_contents'] = get_body($contents); 107 // used $GLOBALS. becose xpress_left_arrow_post_link() and xpress_right_arrow_post_link() is other loop in this position 108 $xpress_data['left_post_link'] = $GLOBALS['left_arrow_post_link']; 109 $xpress_data['right_post_link'] = $GLOBALS['right_arrow_post_link']; 110 $xpress_data['left_posts_link'] = str_replace('«','',xpress_left_arrow_posts_link(false)); 111 $xpress_data['right_posts_link'] = str_replace('»','',xpress_right_arrow_posts_link(false)); 112 $xpress_data['now_user_level'] = xpress_now_user_level(false); 113 114 $xoopsTpl->assign('xpress', $xpress_data); 107 115 $templates_file = 'db:'.$mydirname. '_index.html'; 108 116 echo $xoopsTpl->fetch( $templates_file ) ; -
trunk/templates/source/index.html
r109 r164 1 <{$xpress _body_contents}>1 <{$xpress.body_contents}> 2 2 <{include file='db:system_notification_select.html'}> -
trunk/wp-content/plugins/xpressme/include/custom_functions.php
r163 r164 28 28 29 29 } 30 30 31 function xpress_now_user_level($show=true ) { 32 global $current_user; 33 $output = @$current_user->user_level; 34 if (empty($show)) 35 return $output; 36 else 37 echo $output; 38 } 39 40 31 41 function xpress_list_pings($trackback, $args, $depth) { 32 42 $GLOBALS['comment'] = $trackback; … … 83 93 $ret = ob_get_contents(); 84 94 ob_end_clean(); 95 ob_start(); 96 previous_post_link('%link',$link_title); 97 $GLOBALS['left_arrow_post_link'] = ob_get_contents(); 98 ob_end_clean(); 99 85 100 } else { 86 101 $link_title = $xpress_config->newer_post_link_text; … … 89 104 next_post_link('« %link'); 90 105 else 91 next_post_link('« %link',$link_title); 92 $ret = ob_get_contents(); 93 ob_end_clean(); 106 $GLOBALS['left_arrow_post_link'] = 107 $ret = ob_get_contents(); 108 ob_end_clean(); 109 ob_start(); 110 next_post_link('%link',$link_title); 111 $GLOBALS['left_arrow_post_link'] = ob_get_contents(); 112 ob_end_clean(); 113 94 114 } 95 115 … … 134 154 $ret = ob_get_contents(); 135 155 ob_end_clean(); 156 ob_start(); 157 next_post_link('%link',$link_title); 158 $GLOBALS['right_arrow_post_link'] = ob_get_contents(); 159 ob_end_clean(); 160 136 161 } else { 137 162 $link_title = $xpress_config->old_post_link_text; … … 143 168 $ret = ob_get_contents(); 144 169 ob_end_clean(); 170 ob_start(); 171 previous_post_link('%link',$link_title); 172 $GLOBALS['right_arrow_post_link'] = ob_get_contents(); 173 ob_end_clean(); 174 145 175 } 146 176 -
trunk/xoops_version.php
r163 r164 31 31 $modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ; 32 32 $modversion['description'] = constant( '_MI_XPRESS_DESC'); 33 $modversion['version'] = "0.2 6";33 $modversion['version'] = "0.27"; 34 34 $modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;"; 35 35 $modversion['author'] = "toemon (http://www.toemon.com)"; … … 40 40 41 41 // status 42 $modversion['codename'] = "r16 3";42 $modversion['codename'] = "r164"; 43 43 44 44 // onInstall, onUpdate, onUninstall
Note: See TracChangeset
for help on using the changeset viewer.