diff --git a/404.php b/404.php index e80e587..b888b41 100644 --- a/404.php +++ b/404.php @@ -2,7 +2,7 @@ /** * The template for displaying 404 pages (not found) * - * @link https://codex.wordpress.org/Creating_an_Error_404_Pag + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#404-not-found * * @package Sophia After Dark * @since 1.0.0 @@ -12,53 +12,54 @@ get_header(); $sophia_after_dark_pnf_latest_posts = get_theme_mod( 'sophia_after_dark_enable_pnf_latest_posts', true ); ?> -
' .
- esc_html__('All comments are manually reviewed and moderated.', 'sophia-after-dark') .
- '
' .
+ esc_html__('All comments are manually reviewed and moderated.', 'sophia-after-dark') .
+ '
+ +
- + + +' . esc_html(get_the_title()) . '' + /* translators: %s: Post title */ + esc_html__( 'One Comment on “%s”', 'sophia-after-dark' ), + '' . esc_html( get_the_title() ) . '' ); } else { printf( - /* translators: 1: comment count number, 2: title. */ - esc_html( _nx( '%1$s Comments on “%2$s”', '%1$s Comments on “%2$s”', $sophia_after_dark_comment_count, 'comments title', 'sophia-after-dark' ) ), + /* translators: 1: Comment count, 2: Post title */ + esc_html( _nx( '%1$s Comment on “%2$s”', '%1$s Comments on “%2$s”', $sophia_after_dark_comment_count, 'comments title', 'sophia-after-dark' ) ), number_format_i18n( $sophia_after_dark_comment_count ), - '' . esc_html(get_the_title()) . '' + '' . esc_html( get_the_title() ) . '' ); } ?> @@ -92,24 +100,19 @@ add_action('comment_form', 'sophia_after_dark_modify_text_comment_form');
'ol', - 'short_ping' => true, + 'style' => 'ol', + 'short_ping' => true, + 'reply_text' => __( 'Reply', 'sophia-after-dark' ), ) ); ?>
- - if ( ! comments_open() ) : - ?> +