| 266 | | if ( $num_comm && $num_comm->approved ) { |
| 267 | | $text = sprintf( _n( '%s Comment', '%s Comments', $num_comm->approved ), number_format_i18n( $num_comm->approved ) ); |
| 268 | | ?> |
| 269 | | <li class="comment-count"><a href="edit-comments.php"><?php echo $text; ?></a></li> |
| 270 | | <?php |
| 271 | | $moderated_comments_count_i18n = number_format_i18n( $num_comm->moderated ); |
| 272 | | /* translators: Number of comments in moderation */ |
| 273 | | $text = sprintf( _nx( '%s in moderation', '%s in moderation', $num_comm->moderated, 'comments' ), $moderated_comments_count_i18n ); |
| 274 | | /* translators: Number of comments in moderation */ |
| 275 | | $aria_label = sprintf( _nx( '%s comment in moderation', '%s comments in moderation', $num_comm->moderated, 'comments' ), $moderated_comments_count_i18n ); |
| 276 | | ?> |
| 277 | | <li class="comment-mod-count<?php |
| 278 | | if ( ! $num_comm->moderated ) { |
| 279 | | echo ' hidden'; |
| 280 | | } |
| 281 | | ?>"><a href="edit-comments.php?comment_status=moderated" aria-label="<?php esc_attr_e( $aria_label ); ?>"><?php echo $text; ?></a></li> |
| 282 | | <?php |
| 283 | | } |
| | 267 | $text = sprintf( _n( '%s Comment', '%s Comments', $num_comm->approved ), number_format_i18n( $num_comm->approved ) ); |
| | 268 | ?> |
| | 269 | <li class="comment-count"><a href="edit-comments.php"><?php echo $text; ?></a></li> |
| | 270 | <?php |
| | 271 | $moderated_comments_count_i18n = number_format_i18n( $num_comm->moderated ); |
| | 272 | /* translators: Number of comments in moderation */ |
| | 273 | $text = sprintf( _nx( '%s in moderation', '%s in moderation', $num_comm->moderated, 'comments' ), $moderated_comments_count_i18n ); |
| | 274 | /* translators: Number of comments in moderation */ |
| | 275 | $aria_label = sprintf( _nx( '%s comment in moderation', '%s comments in moderation', $num_comm->moderated, 'comments' ), $moderated_comments_count_i18n ); |
| | 276 | ?> |
| | 277 | <li class="comment-mod-count<?php |
| | 278 | if ( ! $num_comm->moderated ) { |
| | 279 | echo ' hidden'; |
| | 280 | } |
| | 281 | ?>"><a href="edit-comments.php?comment_status=moderated" aria-label="<?php esc_attr_e( $aria_label ); ?>"><?php echo $text; ?></a></li> |
| | 282 | <?php |
| | 283 | |