Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Important, please do not delete
- if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && ( 'comments.php' === basename( $_SERVER['SCRIPT_FILENAME'] ) ) )
- die( 'Please do not load this page directly. Thanks!' );
- if ( ! builder_show_comments() )
- return;
- $login_url = wp_login_url( apply_filters( 'the_permalink', get_permalink() ) );
- $logout_url = wp_logout_url( apply_filters( 'the_permalink', get_permalink() ) );
- $req = get_option( 'require_name_email' );
- $aria_req = ( $req ) ? ' aria-required="true"' : '';
- $commenter = wp_get_current_commenter();
- if ( post_password_required() )
- return;
- ?>
- <?php if ( have_comments() ) : ?>
- <div id="comments" class="clearfix">
- <?php do_action( 'builder_comments_popup_link', '<h3 class="comments-title">', '</h3>', __( '<span class="comment-number">%s</span> for ' . get_the_title() . '', 'it-l10n-BuilderChild-Kepler' ), __( '0 Responses', 'it-l10n-BuilderChild-Kepler' ), __( '1 Response', 'it-l10n-BuilderChild-Kepler' ), __( '% Responses', 'it-l10n-BuilderChild-Kepler' ) ); ?>
- <ol class="commentlist">
- <?php wp_list_comments( array( 'type' => 'comment', 'callback' => 'builder_child_kepler_comments_structure' ) ); ?>
- </ol>
- <?php if ( get_comment_pages_count() > 1 ) : ?>
- <div class="navigation">
- <div class="alignleft"><?php previous_comments_link(); ?></div>
- <div class="alignright"><?php next_comments_link(); ?></div>
- </div>
- <?php endif; ?>
- </div>
- <!-- end #comments -->
- <?php endif; ?>
- <?php if ( comments_open() ) : ?>
- <div id="respond">
- <?php do_action("comment_form_before");?>
- <h3><?php comment_form_title( __( 'Leave a Reply', 'it-l10n-BuilderChild-Kepler' ), __( 'Leave a Reply to %s', 'it-l10n-BuilderChild-Kepler' ) ); ?></h3>
- <div class="cancel-comment-reply">
- <small><?php cancel_comment_reply_link( 'Cancel Reply' ); ?></small>
- </div>
- <?php if ( get_option( 'comment_registration' ) && ! is_user_logged_in() ) : ?>
- <p class="must-log-in"><?php printf( __( 'You must be <a href="%s">logged in</a> to post a comment.', 'it-l10n-BuilderChild-Kepler' ), $login_url ); ?></p>
- <?php else : ?>
- <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="commentform">
- <?php if ( is_user_logged_in() ) : ?>
- <p class="logged-in-as"><?php printf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>', 'it-l10n-BuilderChild-Kepler' ), admin_url( 'profile.php' ), $user_identity, $logout_url ); ?></p>
- <?php else : ?>
- <p class="comment-form-author">
- <input type="text" name="author" id="author" value="<?php echo esc_attr( $commenter['comment_author'] ); ?>" size="22"<?php echo $aria_req; ?> />
- <label for="author"><small><?php _e( 'Name', 'it-l10n-BuilderChild-Kepler' ); ?> <?php if ( $req ) _e( "<span class='required'>(required)</span>", 'it-l10n-BuilderChild-Kepler' ); ?></small></label>
- </p>
- <p class="comment-form-email">
- <input type="text" name="email" id="email" value="<?php echo esc_attr( $commenter['comment_author_email'] ); ?>" size="22"<?php echo $aria_req; ?> />
- <label for="email"><small><?php _e( 'Mail (will not be published)', 'it-l10n-BuilderChild-Kepler' ); ?> <?php if ( $req ) _e( "<span class='required'>(required)</span>", 'it-l10n-BuilderChild-Kepler' ); ?></small></label>
- </p>
- <p class="comment-form-url">
- <input type="text" name="url" id="url" value="<?php echo esc_attr( $commenter['comment_author_url'] ); ?>" size="22" />
- <label for="url"><small><?php _e( 'Website', 'it-l10n-BuilderChild-Kepler' ); ?></small></label>
- </p>
- <?php endif; ?>
- <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>-->
- <p><textarea name="comment" id="comment" cols="45" rows="10"></textarea></p>
- <p class="comment-submit-wrapper">
- <input name="submit" type="submit" id="submit" value="<?php _e( 'Submit Comment', 'it-l10n-BuilderChild-Kepler' ); ?>" />
- <?php comment_id_fields(); ?>
- </p>
- <?php do_action( 'comment_form', $post->ID ); ?>
- </form>
- <?php endif; // If registration required and not logged in ?>
- </div>
- <!--end #respond-->
- <?php do_action("comment_form_after");?>
- <?php else : // comments are closed ?>
- <?php echo builder_get_closed_comments_message( __( 'Comments are closed.', 'it-l10n-BuilderChild-Kepler' ) ); ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement