| 89 | | |
| 90 | | <label for="close_comments_for_old_posts"> |
| 91 | | <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' ) ); ?> /> |
| 92 | | <?php |
| 93 | | printf( |
| 94 | | /* translators: %s: Number of days. */ |
| 95 | | __( 'Automatically close comments on posts older than %s days' ), |
| 96 | | '</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" />' |
| 97 | | ); |
| 98 | | ?> |
| 99 | | </label> |
| | 93 | <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' ) ); ?> /> <label for="close_comments_for_old_posts"><?php _e( 'Automatically close comments for old posts' ); ?></label> |
| 129 | | |
| 130 | | /* translators: %s: Number of levels. */ |
| 131 | | printf( __( 'Enable threaded (nested) comments %s levels deep' ), $thread_comments_depth ); |
| 132 | | |
| 133 | | ?> |
| 134 | | </label> |
| 135 | | <br /> |
| 136 | | <label for="page_comments"> |
| 137 | | <input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked( '1', get_option( 'page_comments' ) ); ?> /> |
| 138 | | <?php |
| 139 | | $default_comments_page = '</label> <label for="default_comments_page"><select name="default_comments_page" id="default_comments_page"><option value="newest"'; |
| 140 | | if ( 'newest' === get_option( 'default_comments_page' ) ) { |
| 141 | | $default_comments_page .= ' selected="selected"'; |
| 142 | | } |
| 143 | | $default_comments_page .= '>' . __( 'last' ) . '</option><option value="oldest"'; |
| 144 | | if ( 'oldest' === get_option( 'default_comments_page' ) ) { |
| 145 | | $default_comments_page .= ' selected="selected"'; |
| 146 | | } |
| 147 | | $default_comments_page .= '>' . __( 'first' ) . '</option></select>'; |
| 148 | | printf( |
| 149 | | /* translators: 1: Form field control for number of top level comments per page, 2: Form field control for the 'first' or 'last' page. */ |
| 150 | | __( 'Break comments into pages with %1$s top level comments per page and the %2$s page displayed by default' ), |
| 151 | | '</label> <label for="comments_per_page"><input name="comments_per_page" type="number" step="1" min="0" id="comments_per_page" value="' . esc_attr( get_option( 'comments_per_page' ) ) . '" class="small-text" />', |
| 152 | | $default_comments_page |
| 153 | | ); |
| 155 | | </label> |
| 156 | | <br /> |
| 157 | | <label for="comment_order"> |
| 158 | | <?php |
| 159 | | |
| 160 | | $comment_order = '<select name="comment_order" id="comment_order"><option value="asc"'; |
| 161 | | if ( 'asc' === get_option( 'comment_order' ) ) { |
| 162 | | $comment_order .= ' selected="selected"'; |
| 163 | | } |
| 164 | | $comment_order .= '>' . __( 'older' ) . '</option><option value="desc"'; |
| 165 | | if ( 'desc' === get_option( 'comment_order' ) ) { |
| 166 | | $comment_order .= ' selected="selected"'; |
| 167 | | } |
| 168 | | $comment_order .= '>' . __( 'newer' ) . '</option></select>'; |
| 169 | | |
| 170 | | /* translators: %s: Form field control for 'older' or 'newer' comments. */ |
| 171 | | printf( __( 'Comments should be displayed with the %s comments at the top of each page' ), $comment_order ); |
| | 128 | <ul> |
| | 129 | <li> |
| | 130 | <label for="thread_comments_depth"><?php _e( 'Number of levels for threaded (nested) comments' ); ?></label> |
| | 131 | <?php echo $thread_comments_depth; ?> |
| | 132 | </li> |
| | 133 | </ul> |
| | 134 | </fieldset></td> |
| | 135 | </tr> |
| 173 | | ?> |
| 174 | | </label> |
| | 137 | <tr> |
| | 138 | <th scope="row"><?php _e( 'Comment Pagination' ); ?></th> |
| | 139 | <td><fieldset><legend class="screen-reader-text"><span> |
| | 140 | <?php |
| | 141 | /* translators: Hidden accessibility text. */ |
| | 142 | _e( 'Comment Pagination' ); |
| | 143 | ?> |
| | 144 | </span></legend> |
| | 145 | <input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked( '1', get_option( 'page_comments' ) ); ?> /> |
| | 146 | <label for="page_comments"><?php _e( 'Break comments into pages' ); ?></label> |
| | 147 | <ul> |
| | 148 | <li> |
| | 149 | <label for="comments_per_page"><?php _e( 'Top level comments per page' ); ?></label> |
| | 150 | <input name="comments_per_page" type="number" step="1" min="0" id="comments_per_page" value="<?php echo esc_attr( get_option( 'comments_per_page' ) ); ?>" class="small-text" /> |
| | 151 | </li> |
| | 152 | <li> |
| | 153 | <label for="default_comments_page"><?php _e( 'Comments page to display by default' ); ?></label> |
| | 154 | <select name="default_comments_page" id="default_comments_page"> |
| | 155 | <option value="newest" <?php selected( 'newest', get_option( 'default_comments_page' ) ); ?>><?php _e( 'last page' ); ?></option> |
| | 156 | <option value="oldest" <?php selected( 'oldest', get_option( 'default_comments_page' ) ); ?>><?php _e( 'first page' ); ?></option> |
| | 157 | </select> |
| | 158 | </li> |
| | 159 | <li> |
| | 160 | <label for="comment_order"><?php _e( 'Comments to display at the top of each page' ); ?></label> |
| | 161 | <select name="comment_order" id="comment_order"> |
| | 162 | <option value="asc" <?php selected( 'asc', get_option( 'comment_order' ) ); ?>><?php _e( 'older' ); ?></option> |
| | 163 | <option value="desc" <?php selected( 'desc', get_option( 'comment_order' ) ); ?>><?php _e( 'newer' ); ?></option> |
| | 164 | </select> |
| | 165 | </li> |
| | 166 | </ul> |