XPressME Integration Kit

Trac


Ignore:
Timestamp:
Oct 7, 2011, 9:03:08 AM (13 years ago)
Author:
toemon
Message:

マルチサイト用、最近の投稿(全ブログ)ブロックのオプションに「対象ブログの除外」、「ブログ毎に抽出」を追加、ブロックオプションのデフォルトテンプレートの誤りを修正

Location:
branches/Ver2.5/xpressme_integration_kit/wp-content/themes/xpress_default/blocks
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver2.5/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_popular_posts_block_theme.php

    r555 r793  
    44{ 
    55        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    6         $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_popular.html' : trim( $options[1] ); 
     6        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_grobal_popular_posts_block.html' : trim( $options[1] ); 
    77        $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 
    88        $show_month_range = empty( $options[3] ) ? '0' : $options[3] ; 
  • branches/Ver2.5/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_recent_comments_block_theme.php

    r554 r793  
    44{ 
    55        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    6         $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_comments_block.html' : trim( $options[1] ); 
     6        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_global_recent_comments_block.html' : trim( $options[1] ); 
    77        $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 
    88        $disp_length = empty( $options[3] ) ? '30' : $options[3] ; 
  • branches/Ver2.5/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_recent_posts_list_block_theme.php

    r545 r793  
    44{ 
    55        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    6         $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[1] ); 
     6        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_global_recent_posts_list_block.html' : trim( $options[1] ); 
    77        $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 
    88        $disp_red = empty( $options[3] ) ? '1' : $options[3] ; 
     
    1010        $date_format = empty( $options[5] ) ? '' : $options[5] ; 
    1111        $time_format = empty( $options[6] ) ? '' : $options[6] ; 
     12        $shown_for_each_blog = empty( $options[7] ) ? false : true ;             
     13        $exclusion_blog = empty( $options[8] ) ? '0' : $options[8] ; 
     14         
    1215        $mydirpath = get_xpress_dir_path(); 
    1316         
     
    2023                $block = array(); 
    2124                 
    22                 $data_array = xpress_grobal_recent_posts($disp_count); 
     25                $data_array = xpress_grobal_recent_posts($disp_count,$exclusion_blog,$shown_for_each_blog); 
    2326                $item_no = 0; 
    2427                $red_sec = $disp_red *60*60*24; 
     
    4144                } 
    4245                $block['data_count'] = $item_no;  //xml unserialise error 
     46                $block['shown_for_each_blog'] = $shown_for_each_blog; 
    4347        } else { 
    4448                $block['err_message'] = __('This blog is not set to the multi blog.', 'xpress'); 
Note: See TracChangeset for help on using the changeset viewer.