XPressME Integration Kit

Trac


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}>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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         
Note: See TracChangeset for help on using the changeset viewer.