Advertisement
Guest User

Untitled

a guest
Jul 4th, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. <?php
  2. /**
  3. * Template for comments
  4. * @package themify
  5. * @since 1.0.0
  6. */
  7. ?>
  8.  
  9. <?php themify_comment_before(); //hook ?>
  10.  
  11. <?php if ( have_comments() || comments_open() ) : ?>
  12.  
  13. <div id="comments" class="commentwrap">
  14.  
  15. <?php themify_comment_start(); //hook ?>
  16.  
  17. <?php if ( post_password_required() && have_comments() ) : ?>
  18.  
  19. <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'themify' ); ?></p>
  20.  
  21. <?php elseif ( have_comments() ) : ?>
  22.  
  23. <h4 class="comment-title"><?php comments_number(__('No Comments','themify'), __('1 Comment','themify'), __('% Comments','themify') );?></h4>
  24.  
  25. <?php // Comment Pagination
  26. if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
  27. <nav class="pagenav top clearfix">
  28. <?php paginate_comments_links( array('prev_text' => '', 'next_text' => '') );?>
  29. </nav>
  30. <!-- /.pagenav -->
  31. <?php endif; ?>
  32.  
  33. <ol class="commentlist">
  34. <?php wp_list_comments('callback=themify_theme_comment'); ?>
  35. </ol>
  36.  
  37. <?php // Comment Pagination
  38. if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
  39. <nav class="pagenav bottom clearfix">
  40. <?php paginate_comments_links( array('prev_text' => '', 'next_text' => '') );?>
  41. </nav>
  42. <!-- /.pagenav -->
  43. <?php endif; ?>
  44.  
  45. <?php endif; // end have_comments() ?>
  46.  
  47. <?php if ( comments_open() ) : ?>
  48.  
  49. <?php
  50. global $req, $aria_req, $user_identity;
  51. global $aria_req;
  52. $comments_args = array(
  53. 'title_reply'=>'Deinen Gästebucheintrag hinzufügen',
  54. 'label_submit'=>'Gästebucheintrag absenden',
  55. 'comment_field' => '<p class="comment-form-comment"><label for="comment">Deine Nachricht</label><br /><textarea id="comment" name="comment"></textarea></p>'
  56. );
  57.  
  58. comment_form($comments_args);?>
  59. <?php endif; // end comments_open() ?>
  60.  
  61. <?php themify_comment_end(); //hook ?>
  62.  
  63. </div>
  64. <!-- /.commentwrap -->
  65.  
  66. <?php endif; ?>
  67.  
  68. <?php themify_comment_after(); //hook ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement