Changeset 125 for trunk/blocks/archives_block.php
- Timestamp:
- Mar 20, 2009, 12:47:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/archives_block.php
r121 r125 20 20 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 21 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] ;22 $type = empty( $options[2] ) ? 'monthly' : $options[2] ; 23 $limit = !is_numeric( $options[3] ) ? 0 : $options[3] ; 24 24 $show_post_count = empty( $options[4] ) ? false : true ; 25 25 $drop_down = empty( $options[5] ) ? false : true ; … … 33 33 $a_week = _MB_XPRESS_ARC_WEEK ; 34 34 35 $form .= "<br />" . yes_no_radio_option('options[2]', _MB_XPRESS_ARC_TYPE , $type,$a_month,$a_week); 36 $form .= "<br />" . _MB_XPRESS_COUNT . " <input type='text' name='options[3]' value='" . $limit . "' />"; 35 $form .= _MB_XPRESS_ARC_TYPE .": "; 36 $form .= "<select name='options[2]'>"; 37 if ($type =='yearly') 38 $form .= "<option value='yearly' selected='selected'>". _MB_XPRESS_ARC_YEAR; 39 else 40 $form .= "<option value='yearly'>". _MB_XPRESS_ARC_YEAR; 41 42 if ($type =='monthly') 43 $form .= "<option value='monthly' selected='selected'>". _MB_XPRESS_ARC_MONTH; 44 else 45 $form .= "<option value='monthly'>". _MB_XPRESS_ARC_MONTH; 46 47 if ($type =='weekly') 48 $form .= "<option value='weekly' selected='selected'>". _MB_XPRESS_ARC_WEEK; 49 else 50 $form .= "<option value='weekly'>". _MB_XPRESS_ARC_WEEK; 51 52 if ($type =='daily') 53 $form .= "<option value='daily' selected='selected'>". _MB_XPRESS_ARC_DAY; 54 else 55 $form .= "<option value='daily'>". _MB_XPRESS_ARC_DAY; 56 57 if ($type =='postbypost') 58 $form .= "<option value='postbypost' selected='selected'>". _MB_XPRESS_ARC_POST; 59 else 60 $form .= "<option value='postbypost'>". _MB_XPRESS_ARC_POST; 61 62 $form .= "</select><br/>"; 63 64 $form .= "<br />" . _MB_XPRESS_COUNT_ZERO_ALL . " <input type='text' name='options[3]' value='" . $limit . "' />"; 37 65 $form .= "<br />" . yes_no_radio_option('options[4]', _MB_XPRESS_SHOW_NUM_OF_POST , $show_post_count); 38 66 $form .= "<br />" . yes_no_radio_option('options[5]', _MB_XPRESS_SHOW_DROP_DOWN , $drop_down);
Note: See TracChangeset
for help on using the changeset viewer.