Edit File: comments.php
<?php /** * The template for displaying comments * * This is the template that displays the area of the page that contains both the current comments * and the comment form. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package orun */ /* * If the current post is protected by a password and * the visitor has not yet entered the password we will * return early without loading the comments. */ if ( post_password_required() ) { return; } $options = get_option('orun_opt'); ?> <div id="comments" class="orun-comments-area"> <?php if ( have_comments() ) : ?> <div class="orun-block-title <?php echo $options['orun-opt-widget-title-design']; ?>"> <h3 class="comments-title"><span> <?php $orun_comment_count = get_comments_number(); if ( '1' === $orun_comment_count ) { printf( esc_html__( '1 Yorum', 'orun' ), '<span>' . wp_kses_post( get_the_title() ) . '</span>' ); } else { printf( /* translators: 1: comment count number */ esc_html__('%s Yorum', 'orun'), number_format_i18n( $orun_comment_count ) ); } ?> </span></h3><!-- .comments-title --> </div> <?php the_comments_navigation(); ?> <ol class="comment-list"> <?php wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'callback' => 'orun_comment_template', 'avatar_size' => '70', ) ); ?> </ol><!-- .comment-list --> <?php the_comments_navigation(); // 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( 'Yorumlar kapalı.', 'orun' ); ?></p> <?php endif; endif; // Check for have_comments(). ?> </div><!-- #comments --> <div class="post-comment orun-comment-form"> <?php $req = get_option( 'require_name_email' ) ? 'required' : ''; $commenter = wp_get_current_commenter(); $consent = ! empty ( $commenter[ 'comment_author_email' ] ) ? 'checked="checked" ' : ''; $cookies = '<div class="wp-comment-cookies">'; $cookies .= '<input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes">'; $cookies .= '<label for="wp-comment-cookies-consent" class="mb-3 d-inline ms-1"> '.esc_html__('Bir dahaki sefere yorum yaptığımda kullanılmak üzere adımı, e-posta adresimi ve web site adresimi bu tarayıcıya kaydet.', 'orun').'</label> '; $cookies .= '</div>'; $args = array( 'fields' => array( 'author' => '<input id="author" name="author" type="text" value="'.$commenter['comment_author'].'" size="30" maxlength="245" placeholder="'.esc_html__('*Adınız...', 'orun').'" '.$req.'/>', 'email' => '<input id="email" name="email" type="email" value=" '. $commenter['comment_author_email'] .' " size="30" maxlength="100" aria-describedby="email-notes" placeholder="'.esc_html__('*E-posta adresiniz...', 'orun').'" '.$req.'/>', 'url' => '<input id="url" name="url" type="url" value=" '. $commenter['comment_author_url'] .' " size="30" maxlength="200" placeholder="'.esc_html__('İnternet siteniz...', 'orun').'" />', 'cookies' => $cookies, ), 'comment_field' => '<textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required="required" placeholder="'.esc_html__('Yorumunuz...', 'orun').'"></textarea>', 'title_reply_before' => '<div class="orun-block-title '. $options['orun-opt-widget-title-design'] .'"><h3><span>', 'title_reply_after' => '</span></h3></div>', 'cancel_reply_before' => '<div style="display:none;">', 'cancel_reply_after' => '</div>', ); comment_form($args); ?> </div>