<?php /* @package JRDESIGN */ if( post_password_required() ){ return; } ?> <div id="comments" class="comments-area"> <?php if( have_comments() ): //We have comments ?> <nav class="comment-navigation" role="navigation"> <div class="row"> <div class="col-xs-12 col-sm-6"> <div class="post-link-nav"> <span class="sunset-icon sunset-chevron-left" aria-hidden="true"></span> <?php previous_comments_link( esc_html__( 'Eldre kommentarer', 'JRDESIGN' ) ) ?> </div> </div> <div class="col-xs-12 col-sm-6 text-right"> <div class="post-link-nav"> <?php next_comments_link( esc_html__( 'Nyere kommentarer', 'JRDESIGN' ) ) ?> <span class="sunset-icon sunset-chevron-right" aria-hidden="true"></span> </div> </div> </div><!-- .row --> </nav> <ol class="comment-list"> <?php $args = array( 'walker' => null, 'max_depth' => '', 'style' => 'ol', 'callback' => null, 'end-callback' => null, 'type' => 'all', 'reply_text' => 'Svare', 'page' => '', 'per_page' => '', 'avatar_size' => 64, 'reverse_top_level' => null, 'reverse_children' => '', 'format' => 'html5', 'short_ping' => false, 'echo' => true ); wp_list_comments( $args ); ?> </ol> <nav class="comment-navigation" role="navigation"> <div class="row"> <div class="col-xs-12 col-sm-6"> <div class="post-link-nav"> <span class="sunset-icon sunset-chevron-left" aria-hidden="true"></span> <?php previous_comments_link( esc_html__( 'Eldre kommentarer', 'JRDESIGN' ) ) ?> </div> </div> <div class="col-xs-12 col-sm-6 text-right"> <div class="post-link-nav"> <?php next_comments_link( esc_html__( 'Nyere kommentarer', 'JRDESIGN' ) ) ?> <span class="sunset-icon sunset-chevron-right" aria-hidden="true"></span> </div> </div> </div><!-- .row --> </nav> <?php if( !comments_open() && get_comments_number() ): ?> <p class="no-comments"><?php esc_html_e( 'Kommentarer er stengt.', 'JRDESIGN' ); ?></p> <?php endif; ?> <?php endif; ?> <?php $fields = array( 'author' => '<div class="form-group"></span> <input id="author" name="author" type="text" class="form-control" placeholder="Navn*" value="' . esc_attr( $commenter['comment_author'] ) . '" required="required" /></div>', 'email' => '<div class="form-group"><input id="email" name="email" class="form-control" type="text" placeholder="E-post*" value="' . esc_attr( $commenter['comment_author_email'] ) . '" required="required" /></div>', ); $args = array( 'class_submit' => 'btn btn-block btn-lg btn-warning', 'label_submit' => __( 'Send inn kommentar' ), 'comment_field' => '<div class="form-group --w"><textarea id="comment" placeholder="Kommentar...*" class="form-control" name="comment" rows="4" required="required"></textarea><hr>', 'fields' => apply_filters( 'comment_form_default_fields', $fields ) ); comment_form( $args ); ?> </div><!-- .comments-area -->