XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 9, 2009, 5:37:04 PM (15 years ago)
Author:
toemon
Message:

#130 カスタムテンプレートタグでwp_parse_argsを利用
get_xpress_excerpt_contents()
xpress_the_content()
を除き修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php

    r262 r272  
    2020        if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&"; 
    2121         
    22         $selected_author_id = xpress_selected_author_id(false);  
     22        $selected_author_id = xpress_selected_author_id('echo=0');       
    2323        if (!empty($selected_author_id)){ 
    2424                $author_where ="author=$selected_author_id&"; 
     
    4545                        ob_end_clean(); 
    4646                         
    47                         $title = xpress_the_title(false); 
     47                        $title = xpress_the_title('echo=0'); 
    4848                         
    4949                        ob_start(); 
     
    132132                                                echo ' - '; 
    133133                                                the_author_posts_link(); 
    134                                                 echo ' (' . xpress_post_views_count($post->ID,__('Views :%d', 'xpress'),false) . ')';  
     134                                                echo ' (' . xpress_post_views_count('post_id=' . $post->ID . '&format=' . __('Views :%d', 'xpress'). '&echo=0') . ')';  
     135                                                 
    135136                                                echo ' | '; 
    136137                                                // echo the_tags(__('Tags:', 'xpress') . ' ', ', ', ' | '); 
     
    151152                        $post_modified_date_time = $post_modified_date . ' ' . $post_modified_time ; 
    152153                        $trackback_url = trackback_url(false); 
    153                         $post_viwes = xpress_post_views_count($post_id,'views: %d' ,false); 
     154                        $post_viwes = xpress_post_views_count('post_id=' . $post_id . '&format=' . __('Views :%d', 'xpress'). '&echo=0'); 
     155 
    154156//                      if (empty($tags)) $tags = __('Not Tag'); 
    155157 
Note: See TracChangeset for help on using the changeset viewer.