D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
public_html
/
a3legalservices.site
/
wp-content
/
themes
/
aeen
/
Filename :
comments.php
back
Copy
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\aeen; use radiustheme\aeen\inc\Helper; if ( post_password_required() ) { return; } ?> <div id="comments" class="comments-area single-blog-box-layout1"> <?php if ( have_comments() ): ?> <div class="blog-comment"> <?php $rdtheme_comment_count = get_comments_number(); $rdtheme_comments_text = number_format_i18n( $rdtheme_comment_count ) ; if ( $rdtheme_comment_count > 1 ) { $rdtheme_comments_text .= esc_html__( ' Comments', 'aeen' ); } else{ $rdtheme_comments_text .= esc_html__( ' Comment', 'aeen' ); } ?> <h3 class="item-heading"><?php echo esc_html( $rdtheme_comments_text );?></h3> <?php $rdtheme_avatar = get_option( 'show_avatars' ); ?> <ul class="comment-list<?php echo empty( $rdtheme_avatar ) ? ' avatar-disabled' : '';?>"> <?php wp_list_comments( array( 'style' => 'ul', 'callback' => 'radiustheme\aeen\inc\Helper::comments_callback', 'reply_text' => esc_html__( 'Reply', 'aeen' ), 'avatar_size' => 70, 'format' => 'html5' ) ); ?> </ul> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :?> <nav class="pagination-area comment-pagination"> <ul> <li><?php previous_comments_link( esc_html__( 'Older Comments', 'aeen' ) ); ?></li> <li><?php next_comments_link( esc_html__( 'Newer Comments', 'aeen' ) ); ?></li> </ul> </nav> <?php endif;?> </div> <?php endif;?> <?php if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> <p class="comments-closed"><?php esc_html_e( 'Comments are closed.', 'aeen' ); ?></p> <?php endif; ?> <?php // Start displaying Comment Form $rdtheme_commenter = wp_get_current_commenter(); $rdtheme_req = get_option( 'require_name_email' ); $rdtheme_aria_req = ( $rdtheme_req ? " required" : '' ); $rdtheme_fields = array( 'author' => '<div class="row gutters-20"><div class="col-md-6 form-group"><input type="text" id="author" name="author" value="' . esc_attr( $rdtheme_commenter['comment_author'] ) . '" placeholder="'.esc_attr__( 'Your Name', 'aeen' ).( $rdtheme_req ? ' *' : '' ).'" class="form-control"' . $rdtheme_aria_req . '></div>', 'email' => '<div class="col-md-6 form-group"><input id="email" name="email" type="email" value="' . esc_attr( $rdtheme_commenter['comment_author_email'] ) . '" class="form-control" placeholder="'.esc_attr__( 'Your Email', 'aeen' ).( $rdtheme_req ? ' *' : '' ).'"' . $rdtheme_aria_req . '></div></div>', ); $rdtheme_args = array( 'submit_field' => '<div class="form-group form-submit">%1$s %2$s</div>', 'title_reply_before' => '<h3 class="item-heading">', 'title_reply' => esc_html__( 'Leave a Comment', 'aeen' ), 'title_reply_after' => '</h3>', 'submit_button' => '<div class="row gutters-20"><div class="col-12 form-group"><button type="submit" class="btn-fill">'.esc_attr__( 'Post Comment', 'aeen' ).'</button></div></div>', 'comment_field' => '<div class="row gutters-20"><div class="col-12 form-group"><textarea id="comment" name="comment" required placeholder="'.esc_attr__( 'Your Comment *', 'aeen' ).'" class="textarea form-control" rows="8" cols="20"></textarea></div></div>', 'fields' => apply_filters( 'comment_form_default_fields', $rdtheme_fields ), ); ?> <div class="reply-separator"></div> <?php comment_form( $rdtheme_args );?> </div>