XPressME Integration Kit

Trac

Changeset 121 for trunk/wp-content


Ignore:
Timestamp:
Mar 19, 2009, 6:14:15 PM (16 years ago)
Author:
toemon
Message:

ブロックオプションのうち$this_templateをポストしていなかったため、オプション変更時にデータずれが発生するバグを修正

Location:
trunk/wp-content/themes/xpress_default/blocks
Files:
3 edited

Legend:

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

    r118 r121  
    55        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    66        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_page_block.html' : trim( $options[1] ); 
    7         $sort_column = empty( $options[2] ) ? 0 : $options[1] ; 
     7        $sort_column = empty( $options[2] ) ? 0 : $options[2] ; 
    88        $sort_order_asc = empty( $options[3] ) ? 0 : 1 ; 
    99        $show_date = empty( $options[4] ) ? 0 : 1 ; 
  • trunk/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php

    r120 r121  
    9393                        $new_mark = ''; 
    9494                        if ($elapse < $red_sec ) { 
    95                                 $new_mark = '<em style="color: red; font-size: small;">New!</em>'; 
     95                                $new_mark = '<em style="color: red; font-size: small;">New! </em>'; 
    9696 
    9797                        } else if ($elapse < $green_sec) { 
    98                                 $new_mark = '<em style="color: green; font-size: small;">New!</em>'; 
     98                                $new_mark = '<em style="color: green; font-size: small;">New! </em>'; 
    9999                        } 
    100100                         
  • trunk/wp-content/themes/xpress_default/blocks/search_block_theme.php

    r119 r121  
    55        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    66        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_search.html' : trim( $options[1] ); 
    7         $input_length = empty( $options[2] ) ? '18' : $options[1] ; 
     7        $input_length = empty( $options[2] ) ? '18' : $options[2] ; 
    88        $mydirpath = get_xpress_dir_path(); 
    99 
Note: See TracChangeset for help on using the changeset viewer.