Changeset 120 for trunk/blocks/authors_block.php
- Timestamp:
- Mar 18, 2009, 10:59:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/authors_block.php
r110 r120 19 19 { 20 20 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 21 $ optioncount = empty( $options[1] ) ? false : true;22 $ exclude_admin= empty( $options[2] ) ? false : true ;23 $ show_fullname= empty( $options[3] ) ? false : true ;24 $ hide_empty= empty( $options[4] ) ? false : true ;25 $ this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_block_authors.html' : trim( $options[5] );21 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_authors.html' : trim( $options[1] ); 22 $optioncount = empty( $options[2] ) ? false : true ; 23 $exclude_admin = empty( $options[3] ) ? false : true ; 24 $show_fullname = empty( $options[4] ) ? false : true ; 25 $hide_empty = empty( $options[5] ) ? false : true ; 26 26 27 27 require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); 28 28 29 29 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />"; 30 $form .= yes_no_radio_option('options[ 1]', _MB_XPRESS_SHOW_NUM_OF_POST , $optioncount);31 $form .= "<br />" . yes_no_radio_option('options[ 2]', _MB_XPRESS_EXCLUEDEADMIN , $exclude_admin);32 $form .= "<br />" . yes_no_radio_option('options[ 3]', _MB_XPRESS_SHOW_FULLNAME , $show_fullname);33 $form .= "<br />" . yes_no_radio_option('options[ 4]', _MB_XPRESS_HIDE_EMPTY , $hide_empty);30 $form .= yes_no_radio_option('options[2]', _MB_XPRESS_SHOW_NUM_OF_POST , $optioncount); 31 $form .= "<br />" . yes_no_radio_option('options[3]', _MB_XPRESS_EXCLUEDEADMIN , $exclude_admin); 32 $form .= "<br />" . yes_no_radio_option('options[4]', _MB_XPRESS_SHOW_FULLNAME , $show_fullname); 33 $form .= "<br />" . yes_no_radio_option('options[5]', _MB_XPRESS_HIDE_EMPTY , $hide_empty); 34 34 // $form .="<br /><input type='text' size='60' name='options[4]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; 35 35
Note: See TracChangeset
for help on using the changeset viewer.