Advertisement
Guest User

Untitled

a guest
Nov 29th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying Comments.
  4. *
  5. * @package wplook
  6. * @subpackage BlogoLife
  7. * @since BlogoLife 1.0
  8. */
  9. ?>
  10. <a name="comments"></a>
  11. <?php if ( comments_open() ) : ?>
  12. <div class="comments"><?php if ( post_password_required() ) : ?><p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'wplook' ); ?></p></div>
  13. <!-- #comments -->
  14. <?php return; endif; ?>
  15. <?php if ( have_comments() ) : ?>
  16. <header class="page-header"><h2 class="page-title"><?php printf( _n( 'One Response', '%1$s Responses', get_comments_number(), 'wplook' ), number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); ?></h2><div class="left-corner"></div></header>
  17. <ul class="commentlist"><?php wp_list_comments( array( 'callback' => 'wplook_comment' ) ); ?></ul>
  18. <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
  19. <nav id="nav-below">
  20. <div class="nav-previous fleft"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'wplook' ) ); ?> </div>
  21. <div class="nav-next fright"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'wplook' ) ); ?></div>
  22. <div class="left-corner"></div>
  23. <div class="clear"></div>
  24. </nav>
  25. <?php endif; ?>
  26.  
  27. <!-- .navigation -->
  28. <?php endif; // check for comment navigation ?>
  29. <?php else : // or, if we don't have comments:
  30. if ( ! comments_open() ) :
  31. ?>
  32. <!--<p class="nocomments"><?php //we show in metaheader _e( 'Comments are closed.', 'wplook' ); ?></p>-->
  33. <?php endif; // end ! comments_open() ?>
  34. <?php endif; // end have_comments() ?>
  35. <?php wplook_comment_form( ); ?>
  36. </div>
  37. <!-- end #comments -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement