D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
vblioqus
/
safa777.info
/
wp-content
/
themes
/
infopediya
/
Filename :
comments.php
back
Copy
<?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://codex.wordpress.org/Template_Hierarchy * @package Files_Custom_Theme */ /* * 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; endif; ?> <div id="comments" class="comments-area"> <?php // You can start editing here -- including this comment! if (have_comments()) : ?> <h2 class="comments-title"> <?php $comment_count = get_comments_number(); if (1 === $comment_count) : printf( /* translators: 1: title. */ esc_html_e('Comments “%1$s”', 'infopediya'), '<span>' . infopediya_get_file_name(get_the_ID()) . '</span>' ); else : printf( // WPCS: XSS OK. /* translators: 1: comment count number, 2: title. */ esc_html(_nx('%1$s Comments ', '%1$s Comments', $comment_count, 'comments title', 'infopediya')), number_format_i18n($comment_count), '<span>' . infopediya_get_file_name(get_the_ID()) . '</span>' ); endif; ?> </h2><!-- .comments-title --> <?php the_comments_navigation() ?> <ol class="comment-list"> <?php wp_list_comments(array( 'style' => 'ol', 'short_ping' => true, )); ?> </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('Comments are closed.', 'infopediya') ?></p> <?php endif; endif; // Check for have_comments(). $commenter = wp_get_current_commenter(); $req = get_option('require_name_email'); $aria_req = ($req ? " aria-required='true'" : ''); $fields = array( 'author' => '<p class="comment-form-author"> <input id="author" name="author" placeholder="Name" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . ' class="comment-form-field-input" /></p>', 'email' => '<p class="comment-form-email"><input id="email" placeholder="Email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . ' class="comment-form-field-input" /></p>', 'url' => '<p class="comment-form-url"><label for="url">' . __('Website', 'infopediya') . '</label>' . '<input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" /></p>', ); $comments_args = array( // change the title of send button 'label_submit' => 'Post Comment', // change the title of the reply section 'title_reply' => 'Leave a Reply', // remove "Text or HTML to be displayed after the set of comment fields" 'comment_notes_after' => '', // redefine your own textarea (the comment body) 'comment_field' => '<p class="comment-form-comment"><textarea id="comment" class="comment-form-field-input" name="comment" aria-required="true" placeholder="Type your comment" rows="10"></textarea></p>', 'fields' => apply_filters('comment_form_default_fields', $fields), ); comment_form($comments_args); ?> </div><!-- #comments -->