Changeset 142 for trunk/blocks/recent_posts_list_block.php
- Timestamp:
- Mar 30, 2009, 2:01:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/recent_posts_list_block.php
r121 r142 21 21 $disp_red = empty( $options[3] ) ? '1' : $options[3] ; 22 22 $disp_green = empty( $options[4] ) ? '7' : $options[4] ; 23 $tag_select = $options[5] ; 24 $selected = array_slice($options,6); // get allowed cats 23 $date_format = empty( $options[5] ) ? '' : $options[5] ; 24 $time_format = empty( $options[6] ) ? '' : $options[6] ; 25 $tag_select = $options[7] ; 26 $selected = array_slice($options,8); // get allowed cats 27 25 28 $mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname; 26 29 … … 28 31 29 32 $form = "MyDirectory <input type='text' name='options[0]' value='" . $mydirname . "' /><br />\n"; 30 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br /> ";31 $form .= "<br /> ";33 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />\n"; 34 $form .= "<br />\n"; 32 35 $form .= _MB_XPRESS_COUNT .": <input type='text' name='options[2]' value='" . $disp_count . "' /><br />\n"; 33 36 $form .= _MB_XPRESS_REDNEW_DAYS .": <input type='text' name='options[3]' value='" . $disp_red . "' /><br />\n"; 34 37 $form .= _MB_XPRESS_GREENNEW_DAYS .": <input type='text' name='options[4]' value='" . $disp_green . "' /><br />\n"; 38 $form .= _MB_XPRESS_DATE_FORMAT .": <input type='text' name='options[5]' value='" . $date_format . "' /><br />\n"; 39 $form .= _MB_XPRESS_TIME_FORMAT .": <input type='text' name='options[6]' value='" . $time_format . "' /><br />\n"; 35 40 36 41 $form .= "<br />\n"; 37 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[ 5]' value='" . $tag_select . "' /><br />\n";42 $form .= _MB_XPRESS_TAGS_SELECT .": <input type='text' name='options[7]' value='" . $tag_select . "' /><br />\n"; 38 43 $form .= _MB_XPRESS_CATS_SELECT ."<br />\n"; 39 44 $isAll = (count($selected)==0||empty($selected[0]))?true:false;
Note: See TracChangeset
for help on using the changeset viewer.