XPressME Integration Kit

Trac

Changeset 164


Ignore:
Timestamp:
Apr 7, 2009, 7:58:51 PM (15 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}>

Location:
trunk
Files:
4 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 ) ; 
  • trunk/templates/source/index.html

    r109 r164  
    1 <{$xpress_body_contents}> 
     1<{$xpress.body_contents}> 
    22<{include file='db:system_notification_select.html'}> 
  • trunk/wp-content/plugins/xpressme/include/custom_functions.php

    r163 r164  
    2828                 
    2929} 
    30          
     30 
     31function 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 
    3141function xpress_list_pings($trackback, $args, $depth) { 
    3242       $GLOBALS['comment'] = $trackback; 
     
    8393                $ret = ob_get_contents(); 
    8494                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 
    85100        } else { 
    86101                $link_title = $xpress_config->newer_post_link_text; 
     
    89104                        next_post_link('&laquo; %link'); 
    90105                else 
    91                         next_post_link('&laquo; %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 
    94114        } 
    95115         
     
    134154                $ret = ob_get_contents(); 
    135155                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 
    136161        } else { 
    137162                $link_title = $xpress_config->old_post_link_text; 
     
    143168                $ret = ob_get_contents(); 
    144169                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 
    145175        } 
    146176         
  • trunk/xoops_version.php

    r163 r164  
    3131$modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XPRESS_NAME') ; 
    3232$modversion['description'] = constant( '_MI_XPRESS_DESC'); 
    33 $modversion['version'] = "0.26"; 
     33$modversion['version'] = "0.27"; 
    3434$modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;"; 
    3535$modversion['author'] = "toemon (http://www.toemon.com)"; 
     
    4040 
    4141// status 
    42 $modversion['codename'] = "r163"; 
     42$modversion['codename'] = "r164"; 
    4343 
    4444// onInstall, onUpdate, onUninstall 
Note: See TracChangeset for help on using the changeset viewer.