XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 18, 2009, 10:59:02 PM (15 years ago)
Author:
toemon
Message:

ブロックオプションの$selected = array_slice()部分が最後になるようにするため、ブロックオプションの$this_templateの位置を最後尾から2番目に変更
Ver 0.09 bump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/blocks/archives_block.php

    r110 r120  
    1919        { 
    2020                $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 
    21                 $type = empty( $options[1] ) ? false : true ; 
    22                 $limit = empty( $options[2] ) ? '10' : $options[2] ; 
    23                 $show_post_count = empty( $options[3] ) ? false : true ;                 
    24                 $drop_down = empty( $options[4] ) ? false : true ; 
    25                 $this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_block_category.html' : trim( $options[3] ); 
     21                $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_category.html' : trim( $options[1] ); 
     22                $type = empty( $options[2] ) ? false : true ; 
     23                $limit = empty( $options[3] ) ? '10' : $options[3] ; 
     24                $show_post_count = empty( $options[4] ) ? false : true ;                 
     25                $drop_down = empty( $options[5] ) ? false : true ; 
    2626                 
    2727                require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 
     
    3232 
    3333                $form .= "<br />" . yes_no_radio_option('options[1]', _MB_XPRESS_ARC_TYPE , $type,$a_month,$a_week); 
    34                 $form .= "<br />" . _MB_XPRESS_COUNT . "  <input type='text' name='options[2]' value='" . $limit . "' />"; 
    35                 $form .= "<br />" . yes_no_radio_option('options[3]', _MB_XPRESS_SHOW_NUM_OF_POST , $show_post_count); 
    36                 $form .= "<br />" . yes_no_radio_option('options[4]', _MB_XPRESS_SHOW_DROP_DOWN , $drop_down); 
     34                $form .= "<br />" . _MB_XPRESS_COUNT . "  <input type='text' name='options[3]' value='" . $limit . "' />"; 
     35                $form .= "<br />" . yes_no_radio_option('options[4]', _MB_XPRESS_SHOW_NUM_OF_POST , $show_post_count); 
     36                $form .= "<br />" . yes_no_radio_option('options[5]', _MB_XPRESS_SHOW_DROP_DOWN , $drop_down); 
    3737//          $form .="<br /><input type='text' size='60' name='options[5]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; 
    3838             
Note: See TracChangeset for help on using the changeset viewer.