69 </label> |
69 </label> |
70 <br /> |
70 <br /> |
71 |
71 |
72 <label for="close_comments_for_old_posts"> |
72 <label for="close_comments_for_old_posts"> |
73 <input name="close_comments_for_old_posts" type="checkbox" id="close_comments_for_old_posts" value="1" <?php checked('1', get_option('close_comments_for_old_posts')); ?> /> |
73 <input name="close_comments_for_old_posts" type="checkbox" id="close_comments_for_old_posts" value="1" <?php checked('1', get_option('close_comments_for_old_posts')); ?> /> |
74 <?php printf( __('Automatically close comments on articles older than %s days'), '</label><input name="close_comments_days_old" type="number" min="0" step="1" id="close_comments_days_old" value="' . esc_attr(get_option('close_comments_days_old')) . '" class="small-text" />'); ?> |
74 <?php printf( __('Automatically close comments on articles older than %s days'), '</label><label for="close_comments_days_old"><input name="close_comments_days_old" type="number" min="0" step="1" id="close_comments_days_old" value="' . esc_attr(get_option('close_comments_days_old')) . '" class="small-text" />'); ?> |
|
75 </label> |
75 <br /> |
76 <br /> |
76 <label for="thread_comments"> |
77 <label for="thread_comments"> |
77 <input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> /> |
78 <input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> /> |
78 <?php |
79 <?php |
79 |
80 |
80 $maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); |
81 $maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); |
81 |
82 |
82 $thread_comments_depth = '</label><select name="thread_comments_depth" id="thread_comments_depth">'; |
83 $thread_comments_depth = '</label><label for="thread_comments_depth"><select name="thread_comments_depth" id="thread_comments_depth">'; |
83 for ( $i = 2; $i <= $maxdeep; $i++ ) { |
84 for ( $i = 2; $i <= $maxdeep; $i++ ) { |
84 $thread_comments_depth .= "<option value='" . esc_attr($i) . "'"; |
85 $thread_comments_depth .= "<option value='" . esc_attr($i) . "'"; |
85 if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'"; |
86 if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'"; |
86 $thread_comments_depth .= ">$i</option>"; |
87 $thread_comments_depth .= ">$i</option>"; |
87 } |
88 } |
88 $thread_comments_depth .= '</select>'; |
89 $thread_comments_depth .= '</select>'; |
89 |
90 |
90 printf( __('Enable threaded (nested) comments %s levels deep'), $thread_comments_depth ); |
91 printf( __('Enable threaded (nested) comments %s levels deep'), $thread_comments_depth ); |
91 |
92 |
92 ?><br /> |
93 ?></label> |
|
94 <br /> |
93 <label for="page_comments"> |
95 <label for="page_comments"> |
94 <input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked('1', get_option('page_comments')); ?> /> |
96 <input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked('1', get_option('page_comments')); ?> /> |
95 <?php |
97 <?php |
96 |
98 |
97 $default_comments_page = '</label><label for="default_comments_page"><select name="default_comments_page" id="default_comments_page"><option value="newest"'; |
99 $default_comments_page = '</label><label for="default_comments_page"><select name="default_comments_page" id="default_comments_page"><option value="newest"'; |
170 |
172 |
171 <table class="form-table"> |
173 <table class="form-table"> |
172 <tr valign="top"> |
174 <tr valign="top"> |
173 <th scope="row"><?php _e('Avatar Display'); ?></th> |
175 <th scope="row"><?php _e('Avatar Display'); ?></th> |
174 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display'); ?></span></legend> |
176 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display'); ?></span></legend> |
175 <?php |
177 <label for="show_avatars"> |
176 $yesorno = array( 0 => __( 'Don’t show Avatars' ), 1 => __( 'Show Avatars' ) ); |
178 <input type="checkbox" id="show_avatars" name="show_avatars" value="1" <?php checked( get_option('show_avatars'), 1 ); ?> /> |
177 foreach ( $yesorno as $key => $value) { |
179 <?php _e( 'Show Avatars' ); ?> |
178 $selected = (get_option('show_avatars') == $key) ? 'checked="checked"' : ''; |
180 </label> |
179 echo "\n\t<label><input type='radio' name='show_avatars' value='" . esc_attr($key) . "' $selected/> $value</label><br />"; |
|
180 } |
|
181 ?> |
|
182 </fieldset></td> |
181 </fieldset></td> |
183 </tr> |
182 </tr> |
184 <tr valign="top"> |
183 <tr valign="top"> |
185 <th scope="row"><?php _e('Maximum Rating'); ?></th> |
184 <th scope="row"><?php _e('Maximum Rating'); ?></th> |
186 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Maximum Rating'); ?></span></legend> |
185 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Maximum Rating'); ?></span></legend> |