XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 10, 2009, 5:51:40 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

    r272 r274  
    7171                        } 
    7272 
    73                         if ($excerpt){ 
    74                                 $excerpt_length_word = $excerpt_size; 
    75                                 $excerpt_length_character = $excerpt_size; 
    76                                 $more_link_text = ''; 
    77                                 $post_content = get_xpress_excerpt_contents($excerpt_length_word,$excerpt_length_character,$more_link_text); 
    78                         } else { 
    79                                 $post_content = get_the_content(__('more'),0,'',false);  
    80                                 $post_content = apply_filters('the_content', $post_content); 
    81                                 $post_content = str_replace(']]>', ']]>', $post_content); 
    82                         } 
     73                        $param = array( 
     74                                'configration_select' => 0,  
     75                                'do_excerpt' => $excerpt, 
     76                                'excerpt_length_word' => $excerpt_size,  
     77                                'excerpt_length_character' => $excerpt_size,  
     78                                'echo' => 0 
     79                        ); 
    8380 
     81                        $post_content = xpress_the_content($param); 
     82                         
    8483                        ob_start(); 
    8584                                the_modified_date($date_format); 
Note: See TracChangeset for help on using the changeset viewer.