PATH:
home
/
carfac
/
public_html
/
scooterthetort
/
wp-content
/
themes
/
leadx
<?php /** * The template for displaying Comments. * * The area of the page that contains both current comments * and the comment form. * */ /* * 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; } ?> <div id="comments" class="comments-area pdt5"> <?php // You can start editing here -- including this comment! ?> <?php if ( have_comments() ) : ?> <h5 class="comments-title"> <?php printf( 'Comments (%1$s)', get_comments_number(), 'leadx' ); ?> </h5> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <nav id="comment-nav-above" class="comment-navigation" role="navigation"> <h1 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'leadx' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( esc_html__( '← Older Comments', 'leadx' ) ); ?></div> <div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments →', 'leadx' ) ); ?></div> </nav><!-- #comment-nav-above --> <?php endif; // check for comment navigation ?> <ol class="comment-list"> <?php //custom comments output is defined in template-tags.php wp_list_comments( array( 'style' => 'ol', 'short_ping' => true, 'type' => 'all', 'callback' => 'leadx_custom_comments' ) ); ?> </ol><!-- .comment-list --> <hr class="divider" /> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <nav id="comment-nav-below" class="comment-navigation" role="navigation"> <h1 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'leadx' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( esc_html__( '← Older Comments', 'leadx' ) ); ?></div> <div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments →', 'leadx' ) ); ?></div> </nav><!-- #comment-nav-below --> <?php endif; // check for comment navigation ?> <?php endif; // have_comments() ?> <?php // If comments are closed and there are comments, let's leave a little note, shall we? if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'leadx' ); ?></p> <?php endif; ?> <?php $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $required_text = sprintf( ' ' . wp_kses(__('Required fields are marked %s', 'leadx'), array( 'span' => array( 'class' => array() ) ) ), '<span class="required">*</span>' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $fields = array( 'author' => '<div class="row"><div class="col-xs-12 col-sm-6"><div class="comment-form-author form-group">' . '<input id="author" name="author" placeholder="' . esc_html__( 'Name', 'leadx' ) . ( $req ? ' *' : '' ) . '" class="form-control" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></div></div>', 'email' => '<div class="col-xs-12 col-sm-6"><div class="comment-form-email form-group">' . '<input id="email" name="email" placeholder="' . esc_html__( 'Email', 'leadx' ) . ( $req ? ' *' : '' ) . '" class="form-control" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></div></div></div>', 'url' => '<div class="row"><div class="col-xs-12"><div class="comment-form-url form-group">' . '<input id="url" name="url" placeholder="' . esc_html__( 'Website', 'leadx' ) . ( $req ? ' *' : '' ) . '" class="form-control" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></div></div></div>', ); $comments_args = array( 'fields' => $fields, 'comment_notes_after' => '', 'must_log_in' => '<div class="row"><div class="col-xs-12"><p class="must-log-in">' . sprintf( wp_kses(__( 'You must be <a href="%s">logged in</a> to post a comment.', 'leadx' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( wp_login_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) ) . '</p></div></div>', 'logged_in_as' => '<div class="row"><div class="col-xs-12"><p class="logged-in-as">' . sprintf( wp_kses(__( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'leadx' ),array( 'a' => array( 'href' => array() ) ) ) , esc_url( admin_url( 'profile.php' ) ), $user_identity, esc_url( wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) ) . '</p></div></div>', 'comment_field' => '<div class="row"><div class="col-xs-12"><div class="comment-form-comment form-group">' . '<textarea id="comment" placeholder="' . esc_html__( 'Comment', 'leadx' ) . ( $req ? ' *' : '' ) . '" name="comment" class="form-control" cols="45" rows="8" aria-required="true">' . '</textarea></div></div></div>', 'comment_notes_before' => '<div class="row"><div class="col-xs-12"><p class="comment-notes">' . esc_html__( 'Your email address will not be published.', 'leadx' ) . ( $req ? $required_text : '' ) . '</p></div></div>', ); ?> <?php ob_start(); comment_form($comments_args); $form = ob_get_clean(); $button_style = 'class="btn btn-primary ' . get_theme_mod('leadx_button_style', 'style-2') . '"'; echo str_replace('id="submit" class="submit"',$button_style, $form); ?> </div><!-- #comments -->
[-] archive.php
[edit]
[-] page-visual-composer.php
[edit]
[-] error_log
[edit]
[+]
includes
[+]
demo-content
[+]
fonts
[-] index.php
[edit]
[-] screenshot.png
[edit]
[+]
css
[-] sidebar-shop.php
[edit]
[-] 404.php
[edit]
[+]
vc_templates
[-] style.css
[edit]
[-] comments.php
[edit]
[-] content-page.php
[edit]
[+]
woocommerce
[+]
img
[-] functions.php
[edit]
[-] taxonomy-team_category.php
[edit]
[+]
framework
[-] sidebar.php
[edit]
[-] header.php
[edit]
[-] comment-form.php
[edit]
[-] wpml-config.xml
[edit]
[-] woocommerce.php
[edit]
[+]
js
[-] single.php
[edit]
[-] page.php
[edit]
[-] search.php
[edit]
[-] sidebar-page.php
[edit]
[-] readme.txt
[edit]
[-] searchform.php
[edit]
[+]
templates
[+]
..
[-] content-search.php
[edit]
[+]
languages
[-] footer.php
[edit]