XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 7, 2009, 7:58:51 PM (16 years ago)
Author:
toemon
Message:

Bump Ver0.27 XOOPSテーマから使えるsmartyテンプレートタグをアサイン
<{$xpress.left_post_link}>
<{$xpress.right_post_link_>
<{$xpress.left_posts_link}>
<{$xpress.right_posts_link_>
<{$xpress.now_user_level}>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/xpress_render.php

    r109 r164  
    104104        $xoopsTpl->assign('xoops_module_header', get_xpress_module_header($contents)); 
    105105        $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('&laquo;','',xpress_left_arrow_posts_link(false)); 
     111        $xpress_data['right_posts_link'] = str_replace('&raquo;','',xpress_right_arrow_posts_link(false)); 
     112        $xpress_data['now_user_level'] = xpress_now_user_level(false); 
     113 
     114        $xoopsTpl->assign('xpress', $xpress_data); 
    107115        $templates_file = 'db:'.$mydirname. '_index.html'; 
    108116        echo $xoopsTpl->fetch( $templates_file ) ; 
Note: See TracChangeset for help on using the changeset viewer.