This commit is contained in:
Roman Pyrih
2025-09-23 15:47:30 +02:00
parent ce4d458162
commit 85d294c680
16 changed files with 4578 additions and 2203 deletions

View File

@@ -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 &ldquo;%1$s&rdquo;', 'brpfinanse' ),
esc_html__( 'One thought on &ldquo;%1$s&rdquo;', '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 &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $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 &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $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;