fix(theme-check): perbaiki kapitalisasi WordPress, dimensi screenshot 1200x900, dan kompresi aset gambar
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
if ( post_password_required() ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<div id="comments" class="comments-area card-style" style="padding: 30px; margin-top: 30px;">
|
||||
<?php if ( have_comments() ) : ?>
|
||||
<h3 class="comments-title" style="margin-bottom: 20px;">
|
||||
<?php
|
||||
$comment_count = get_comments_number();
|
||||
echo esc_html( sprintf( _n( '%d Tanggapan', '%d Tanggapan', $comment_count, 'edukarsa' ), $comment_count ) );
|
||||
?>
|
||||
</h3>
|
||||
|
||||
<ol class="comment-list">
|
||||
<?php
|
||||
wp_list_comments( array(
|
||||
'avatar_size' => 48,
|
||||
'style' => 'ol',
|
||||
'short_ping' => true,
|
||||
) );
|
||||
?>
|
||||
</ol>
|
||||
|
||||
<?php the_comments_pagination( array(
|
||||
'prev_text' => '« ' . esc_html__( 'Komentar Lama', 'edukarsa' ),
|
||||
'next_text' => esc_html__( 'Komentar Baru', 'edukarsa' ) . ' »',
|
||||
) ); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
|
||||
?>
|
||||
<p class="no-comments"><?php esc_html_e( 'Kolom komentar dinonaktifkan.', 'edukarsa' ); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php comment_form(); ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user