D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
aramrprl
/
greytechnologies.info
/
wp-content
/
themes
/
techbiz-final
/
techbiz
/
Filename :
comments.php
back
Copy
<?php /** * @Packge : Techbiz * @Version : 1.0 * @Author : Vecurosoft * @Author URI : https://www.vecurosoft.com/ * */ // Block direct access if( ! defined( 'ABSPATH' ) ){ exit(); } if ( post_password_required() ) { return; } if( have_comments() ) : ?> <!-- Comments --> <div class="vs-comments-wrap"> <h3 class="blog-inner-title"> <?php printf( _nx( 'Comment (1)', 'Comments (%1$s)', get_comments_number(), 'comments title', 'techbiz' ), number_format_i18n( get_comments_number() ) ); ?> </h3> <ul class="comment-list"> <?php the_comments_navigation(); wp_list_comments( array( 'style' => 'ul', 'short_ping' => true, 'avatar_size' => 100, 'callback' => 'techbiz_comment_callback' ) ); the_comments_navigation(); ?> </ul> </div> <!-- End of Comments --> <?php endif; ?> <?php $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $aria_req = ( $req ? "required" : '' ); $consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"'; $fields = array( 'author' => '<div class="row"><div class="col-md-6 form-group"><input class="form-control" type="text" name="author" placeholder="'. esc_attr__( 'Enter Your Name *', 'techbiz' ) .'" value="'. esc_attr( $commenter['comment_author'] ).'" '.esc_attr( $aria_req ).'><i class="far fa-user"></i></div>', 'email' => '<div class="col-md-6 form-group"><input class="form-control" type="email" name="email" value="' . esc_attr( $commenter['comment_author_email'] ) .'" placeholder="'. esc_attr__( 'Enter E-mail Address *', 'techbiz' ) .'" '.esc_attr( $aria_req ).'><i class="far fa-envelope"></i></div></div>', 'url' => '', 'cookies' => '<div class="row"><div class="col-12"><div class="custom-checkbox notice"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . esc_attr( $consent ) . ' />' . '<label for="wp-comment-cookies-consent">' . esc_html__( ' Save my name, email, and website in this browser for the next time I comment.','techbiz' ) . '<span class="checkmark"></span> </label> </div></div></div>' ); $args = array( 'comment_field' =>'<div class="row"><div class="col-md-12 form-group"><textarea class="form-control" name="comment" placeholder="'. esc_attr__( 'Write Your Comment *', 'techbiz' ) .'" '.esc_attr( $aria_req ).'></textarea><i class="far fa-pencil-alt"></i></div></div>', 'class_form' => 'comment-form form-inner', 'title_reply' => esc_html__( 'Leave A Comment', 'techbiz' ), 'title_reply_before' => '<div class="form-title"><h3 class="h3">', 'title_reply_after' => '</h3></div>', 'comment_notes_before' => '<p class="comment-notes"><span>'.esc_html__('Your email address will not be published. Required fields are marked *','techbiz').'</span></p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>','techbiz' ), admin_url( 'profile.php' ), esc_attr( $user_identity ), wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '</p>', 'class_submit' => 'vs-btn style1', 'submit_field' => '<div class="row"><div class="col-12 form-group pt-xl-20 mb-0">%1$s %2$s</div></div>', 'submit_button' => '<button type="submit" name="%1$s" id="%2$s" class="%3$s">'.esc_html__('Post Comment','techbiz').'<i class="fas fa-chevron-right"></i></button>', 'fields' => $fields, ); if( comments_open() ) { echo '<!-- Comment Form -->'; echo '<div id="comments" class="vs-comment-form">'; comment_form( $args ); echo '</div>'; echo '<!-- End of Comment Form -->'; }