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