Save
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package brpfinanse
|
||||
* @package BRPP_prawo_podatki
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -28,18 +28,18 @@ if ( post_password_required() ) {
|
||||
?>
|
||||
<h2 class="comments-title">
|
||||
<?php
|
||||
$brpfinanse_comment_count = get_comments_number();
|
||||
if ( '1' === $brpfinanse_comment_count ) {
|
||||
$brpp_prawo_podatki_comment_count = get_comments_number();
|
||||
if ( '1' === $brpp_prawo_podatki_comment_count ) {
|
||||
printf(
|
||||
/* translators: 1: title. */
|
||||
esc_html__( 'One thought on “%1$s”', 'brpfinanse' ),
|
||||
esc_html__( 'One thought on “%1$s”', 'brpp-prawo-podatki' ),
|
||||
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
/* translators: 1: comment count number, 2: title. */
|
||||
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $brpfinanse_comment_count, 'comments title', 'brpfinanse' ) ),
|
||||
number_format_i18n( $brpfinanse_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $brpp_prawo_podatki_comment_count, 'comments title', 'brpp-prawo-podatki' ) ),
|
||||
number_format_i18n( $brpp_prawo_podatki_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
'<span>' . wp_kses_post( get_the_title() ) . '</span>'
|
||||
);
|
||||
}
|
||||
@@ -65,7 +65,7 @@ if ( post_password_required() ) {
|
||||
// If comments are closed and there are comments, let's leave a little note, shall we?
|
||||
if ( ! comments_open() ) :
|
||||
?>
|
||||
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'brpfinanse' ); ?></p>
|
||||
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'brpp-prawo-podatki' ); ?></p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user