Changeset 120 for trunk/blocks/popular_posts_block.php
- Timestamp:
- Mar 18, 2009, 10:59:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/popular_posts_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 $ show_month_range = empty( $options[2] ) ? '0' : $options[2] ;21 $ tag_select =$options[3] ;22 $ selected = array_slice($options, 4); // get allowed cats23 $ this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_block_popular.html' : trim( $options[5] );19 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_popular.html' : trim( $options[1] ); 20 $disp_count = empty( $options[2] ) ? '10' : $options[2] ; 21 $show_month_range = empty( $options[3] ) ? '0' : $options[3] ; 22 $tag_select = $options[4] ; 23 $selected = array_slice($options, 5); // get allowed cats 24 24 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 25 25 … … 27 27 28 28 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 29 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[ 1]' value='" . $disp_count . "' /><br />\n";30 $form .= _MB_MONTH_RANGE .": <input type='text' name='options[ 2]' value='" . $show_month_range . "' /><br />\n";29 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 30 $form .= _MB_MONTH_RANGE .": <input type='text' name='options[3]' value='" . $show_month_range . "' /><br />\n"; 31 31 $form .= "<br />\n"; 32 32 33 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[ 3]' value='" . $tag_select . "' /><br />\n";33 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[4]' value='" . $tag_select . "' /><br />\n"; 34 34 $form .= _MB_XPRESS_CATS_SELECT ."<br />\n"; 35 35 $isAll = (count($selected)==0||empty($selected[0]))?true:false;
Note: See TracChangeset
for help on using the changeset viewer.