Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. <?php
  2. if (post_password_required()) {
  3. return;
  4. }
  5. ?>
  6.  
  7. <div id="comments" class="comments-area">
  8. <h2 class="comments-title">
  9. <?php if (get_locale() == 'en_GB') {
  10. ?>
  11. comments TO
  12. <?php
  13. } else {
  14. ?>
  15. KOMENTARZE DO
  16. <?php
  17. }
  18. ?> <?php the_title() ?>
  19. </h2>
  20. <?php
  21. if (have_comments()) : ?>
  22.  
  23. <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : ?>
  24. <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
  25. <h2 class="screen-reader-text"><?php esc_html_e('Comment navigation', 'webs'); ?></h2>
  26. <div class="nav-links">
  27.  
  28. <div class="nav-previous"><?php previous_comments_link(esc_html__('Older Comments', 'webs')); ?></div>
  29. <div class="nav-next"><?php next_comments_link(esc_html__('Newer Comments', 'webs')); ?></div>
  30.  
  31. </div>
  32. </nav>
  33. <?php endif; ?>
  34.  
  35. <ol class="comment-list">
  36. <?php wp_list_comments( 'type=comment&callback=mytheme_comment' ); ?>
  37. </ol>
  38.  
  39. <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : ?>
  40. <nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
  41. <h2 class="screen-reader-text"><?php esc_html_e('Comment navigation', 'webs'); ?></h2>
  42. <div class="nav-links">
  43.  
  44. <div class="nav-previous"><?php previous_comments_link(esc_html__('Older Comments', 'webs')); ?></div>
  45. <div class="nav-next"><?php next_comments_link(esc_html__('Newer Comments', 'webs')); ?></div>
  46.  
  47. </div>
  48. </nav>
  49. <?php
  50. endif;
  51.  
  52. endif;
  53.  
  54.  
  55. if (!comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) : ?>
  56.  
  57. <p class="no-comments"><?php esc_html_e('Comments are closed.', 'webs'); ?></p>
  58. <?php
  59. endif;
  60.  
  61. comment_form();
  62. ?>
  63.  
  64. </div><!-- #comments -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement