File: /home/zeusxp5/chuair.org/wp-content/themes/lifttruck/comments.php
<?php if ( post_password_required() ) { ?>
<section id="comments">
<div class="notice alert-box">
<p class="bottom"><?php echo esc_html__('This post is password protected. Enter the password to view comments.', 'lifttruck'); ?></p>
</div>
</section>
<?php
return;
} ?>
<?php // You can start editing here. Customize the respond form below ?>
<?php if ( have_comments() ) : ?>
<section id="comments">
<h4 class="comments_title"><?php echo esc_html__('Comments', 'lifttruck'); ?></h4>
<ol class="commentlist">
<?php wp_list_comments('callback=lifttruck_comments'); ?>
</ol>
<footer>
<nav id="comments-nav">
<div class="comments-previous"><?php previous_comments_link( esc_html__( '← Older comments', 'lifttruck' ) ); ?></div>
<div class="comments-next"><?php next_comments_link( esc_html__( 'Newer comments →', 'lifttruck' ) ); ?></div>
</nav>
</footer>
</section>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ( comments_open() ) : ?>
<?php else : // comments are closed ?>
<section id="comments">
<div class="notice alert-box">
<p class="bottom"><?php echo esc_html__('Comments are closed.', 'lifttruck') ?></p>
</div>
</section>
<?php endif; ?>
<?php endif; ?>
<?php if ( comments_open() ) : ?>
<?php if (lifttruck_get_option('comment_registration') && !is_user_logged_in()) { ?>
<p><?php printf(esc_html__('You must be <a href="%s">logged in</a> to post a comment.', 'lifttruck'), wp_login_url(get_permalink())); ?></p>
<?php } else {
$consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';
$fields = array(
'author' =>
'<p class="comment-form-author large-4 columns"><input type="text" placeholder="'.esc_attr__("Name","lifttruck").'" required class="five" name="author" id="author" value="' . esc_attr($comment_author) . '" size="22" tabindex="1" ></p>',
'email' =>
'<p class="comment-form-email large-4 columns"> <input type="text" placeholder="'.esc_attr__("E-mail","lifttruck").'" required class="five" name="email" id="email" value="' . esc_attr($comment_author_email) . '" size="22" tabindex="2" ></p>',
'url' =>
'<p class="comment-form-url large-4 columns"> <input type="text" placeholder="'.esc_attr__("Website","lifttruck").'" required class="five" name="url" id="url" value="' . esc_attr($comment_author_url) . '" size="22" tabindex="3"></p>',
'cookies' =>
'<p class="comment-form-cookies-consent large-12 columns"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' .
'<label for="wp-comment-cookies-consent">' . esc_html__( 'Save my name, email, and website in this browser for the next time I comment.' , 'lifttruck') . '</label></p>',
);
$args = array(
'class_form' => 'comment-form',
'class_submit' => 'submit',
'label_submit' => esc_html__('Post Comment', 'lifttruck'),
'title_reply' => esc_html__('Post a Comment', 'lifttruck'),
'title_reply_before' => '<h4 id="reply-title" class="comment-reply-title">',
'title_reply_after' => '</h4>',
'comment_notes_before' => '',
'fields' => apply_filters('comment_form_default_fields', $fields),
'comment_field' => '<p class="comment-form-comment large-12 columns"><textarea id="comment" placeholder="'.esc_attr__("Comment","lifttruck").'" name="comment" cols="45" rows="8" aria-required="true">' .
'</textarea></p>',
); ?>
<?php comment_form($args);
} ?>
<?php endif; // if you delete this the sky will fall on your head ?>