XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 7, 2009, 5:42:07 PM (15 years ago)
Author:
toemon
Message:

bump Ver0.26 #97 xpress_default テーマでマルチユーザモードでユーザー選択しているとき、タイトル部分にアバター表示するようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/plugins/xpressme/include/custom_functions.php

    r157 r163  
    389389         
    390390        $output = __('Main', 'xpressme'); 
     391        $output = ''; 
    391392        if (is_category()) 
    392393                $output = sprintf(__('Archive for the ‘%s’ Category', 'xpressme'), single_cat_title('', false)); 
     
    406407                $output = sprintf(__('Search Results of word ‘%s’', 'xpressme'), get_search_query()); 
    407408         
    408         if (!empty($selected_author)) 
    409         $output = sprintf(__('Article of %s', 'xpressme'), $selected_author) . ' - ' . $output; 
    410                  
     409        if (!empty($selected_author)){ 
     410                $selected_id = xpress_selected_author_id(false); 
     411//              $output = get_avatar($selected_id,$size = '32') . sprintf(__('Article of %s', 'xpressme'), $selected_author) . ' - ' . $output; 
     412                if (empty($output)) 
     413                        $output = sprintf(__('Article of %s', 'xpressme'), $selected_author) ; 
     414                else 
     415                        $output = sprintf(__('Article of %s', 'xpressme'), $selected_author) . ' - ' . $output; 
     416        }        
    411417        if ($display)  
    412418                echo $output; 
Note: See TracChangeset for help on using the changeset viewer.