Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="comments-wrapper">
- <?php if(have_comments()): ?>
- <div id="comments">
- <hr />
- <h3>Customer Comments:</h3>
- <?php
- wp_list_comments(array(
- 'avatar_size'=>128,
- 'style'=> 'div',
- 'callback'=>'uds_comment_new'
- ));
- ?>
- </div>
- <div>
- <div class="align-left"><?php previous_comments_link() ?></div>
- <div class="align-right"><?php next_comments_link() ?></div>
- <div class="clear"></div>
- </div>
- <?php else: ?>
- <?php if(comments_open()): ?>
- <p class="comment-info">There are no comments yet</p>
- <?php else: ?>
- <?php endif; ?>
- <?php endif; //have comments?>
- <hr class="comment-divider" />
- <?php if(comments_open()): ?>
- <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
- <p>
- <a href="<?php echo wp_login_url( get_permalink() ); ?>">Log in</a> <?php wp_register(' or ', '');?> to post a comment.
- </p>
- <?php else : ?>
- <?php if ( is_user_logged_in() ) : ?>
- <p>Logged in as
- <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>.
- <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out »</a>
- </p>
- <?php endif; ?>
- <div id="respond">
- <h3><?php comment_form_title('Leave a comment', 'Reply to %s') ?></h3>
- <form method="post" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" id="add-comment">
- <fieldset>
- <?php comment_id_fields(); ?>
- <div>
- <label>Your name:</label>
- <input type="text" class="input-text" name="author" />
- </div>
- <div>
- <label>Your email:</label>
- <input type="text" class="input-text" name="email" />
- </div>
- <div>
- <label>Comment:</label>
- <textarea rows="3" cols="54" name="comment" class="comment-text" id="comment"></textarea>
- </div>
- <div class="buttons">
- <button type="reset">Reset</button>
- <button type="submit">Submit</button>
- <div class="cancel-comment-reply">
- <small><?php cancel_comment_reply_link(); ?></small>
- </div>
- </div>
- </fieldset>
- </form>
- </div>
- <?php endif; // If registration required and not logged in ?>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment