Changeset 120 for trunk/blocks/recent_posts_list_block.php
- Timestamp:
- Mar 18, 2009, 10:59:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/recent_posts_list_block.php
r109 r120 17 17 { 18 18 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 19 $ disp_count = empty( $options[1] ) ? '10' : $options[1];20 $disp_ red = empty( $options[2] ) ? '1' : $options[2] ;21 $disp_ green = empty( $options[3] ) ? '7' : $options[3] ;22 $ tag_select =$options[4] ;23 $ selected = array_slice($options,5); // get allowed cats24 $ this_template = empty( $options[6] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[6] );19 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_recent_posts_list_block.html' : trim( $options[1] ); 20 $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 21 $disp_red = empty( $options[3] ) ? '1' : $options[3] ; 22 $disp_green = empty( $options[4] ) ? '7' : $options[4] ; 23 $tag_select = $options[5] ; 24 $selected = array_slice($options,6); // get allowed cats 25 25 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 26 26 … … 28 28 29 29 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 30 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[ 1]' value='" . $disp_count . "' /><br />\n";31 $form .= _MB_XPRESS_REDNEW_DAYS .": <input type='text' name='options[ 2]' value='" . $disp_red . "' /><br />\n";32 $form .= _MB_XPRESS_GREENNEW_DAYS .": <input type='text' name='options[ 3]' value='" . $disp_green . "' /><br />\n";30 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 31 $form .= _MB_XPRESS_REDNEW_DAYS .": <input type='text' name='options[3]' value='" . $disp_red . "' /><br />\n"; 32 $form .= _MB_XPRESS_GREENNEW_DAYS .": <input type='text' name='options[4]' value='" . $disp_green . "' /><br />\n"; 33 33 34 34 $form .= "<br />\n"; 35 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[ 4]' value='" . $tag_select . "' /><br />\n";35 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[5]' value='" . $tag_select . "' /><br />\n"; 36 36 $form .= _MB_XPRESS_CATS_SELECT ."<br />\n"; 37 37 $isAll = (count($selected)==0||empty($selected[0]))?true:false;
Note: See TracChangeset
for help on using the changeset viewer.