Advertisement
Bojan_Radonic

Untitled

Oct 29th, 2015
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. <?php if ( post_password_required() ) return; ?>
  2.  
  3. <?php if ( have_comments() ) :
  4.  
  5. if ( comments_open() ) { echo '<div class="respond-container">'; }
  6.  
  7. comment_form($comments_args);
  8.  
  9. if ( comments_open() ) { echo '</div> <!-- /respond-container -->'; }
  10.  
  11. ?>
  12.  
  13. <div class="comments-container">
  14.  
  15. <div class="comments-inner">
  16.  
  17. <a name="comments"></a>
  18.  
  19. <div class="comments-title-container">
  20.  
  21. <h2 class="comments-title">
  22.  
  23. <?php echo count($wp_query->comments_by_type['comment']) . ' ';
  24. echo _n( 'Comment' , 'Comments' , count($wp_query->comments_by_type['comment']), 'lovecraft' ); ?>
  25.  
  26. </h2>
  27.  
  28. <?php if ( comments_open() ) : ?>
  29.  
  30. <p class="comments-title-link">
  31.  
  32. <a href="#respond"><?php _e('Add Comment','lovecraft'); ?> &rarr;</a>
  33.  
  34. </p>
  35.  
  36. <?php endif; ?>
  37.  
  38. <div class="clear"></div>
  39.  
  40. </div>
  41.  
  42. <div class="comments">
  43.  
  44. <ol class="commentlist">
  45. <?php wp_list_comments( array( 'type' => 'comment', 'callback' => 'lovecraft_comment' ) ); ?>
  46. </ol>
  47.  
  48. <?php if (!empty($comments_by_type['pings'])) : ?>
  49.  
  50. <div class="pingbacks">
  51.  
  52. <h3 class="pingbacks-title">
  53.  
  54. <?php echo count($wp_query->comments_by_type['pings']) . ' ';
  55. echo _n( 'Pingback', 'Pingbacks', count($wp_query->comments_by_type['pings']), 'lovecraft' ); ?>
  56.  
  57. </h3>
  58.  
  59. <ol class="pingbacklist">
  60. <?php wp_list_comments( array( 'type' => 'pings', 'callback' => 'lovecraft_comment' ) ); ?>
  61. </ol>
  62.  
  63. </div> <!-- /pingbacks -->
  64.  
  65. <?php endif; ?>
  66.  
  67. <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
  68.  
  69. <div class="comments-nav" role="navigation">
  70.  
  71. <div class="fleft">
  72.  
  73. <?php previous_comments_link( '&larr; ' . __( 'Previous', 'lovecraft' ) ); ?>
  74.  
  75. </div>
  76.  
  77. <div class="fright">
  78.  
  79. <?php next_comments_link( __( 'Next', 'lovecraft' ) . ' &rarr;' ); ?>
  80.  
  81. </div>
  82.  
  83. <div class="clear"></div>
  84.  
  85. </div> <!-- /comment-nav-below -->
  86.  
  87. <?php endif; ?>
  88.  
  89. </div> <!-- /comments -->
  90.  
  91. </div> <!-- /comments-inner -->
  92.  
  93. </div> <!-- /comments-container -->
  94.  
  95. <?php endif; ?>
  96.  
  97. <?php if ( ! comments_open() && ! is_page() ) : ?>
  98.  
  99. <div class="comments-container">
  100.  
  101. <div class="comments-inner">
  102.  
  103. <p class="no-comments"><?php _e( 'Comments are closed.', 'lovecraft' ); ?></p>
  104.  
  105. </div>
  106.  
  107. </div>
  108.  
  109. <?php endif; ?>
  110.  
  111. <?php $comments_args = array(
  112.  
  113. 'comment_notes_before' =>
  114. '',
  115.  
  116. 'comment_notes_after' =>
  117. '',
  118.  
  119. 'comment_field' =>
  120. '<p class="comment-form-comment">
  121. <label for="comment">' . __('Comment','lovecraft') . ( $req ? '<span class="required">*</span>' : '' ) . '</label>
  122. <textarea id="comment" name="comment" cols="45" rows="6" required></textarea>
  123. </p>',
  124.  
  125. 'fields' => apply_filters( 'comment_form_default_fields', array(
  126.  
  127. 'author' =>
  128. '<p class="comment-form-author">
  129. <label for="author">' . __('Name','lovecraft') . ( $req ? '<span class="required">*</span>' : '' ) . '</label>
  130. <input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" />
  131. </p>',
  132.  
  133. 'email' =>
  134. '<p class="comment-form-email">
  135. <label for="email">' . __('Email','lovecraft') . ( $req ? '<span class="required">*</span>' : '' ) . '</label>
  136. <input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" />
  137. </p>',
  138.  
  139. 'url' =>
  140. '<p class="comment-form-url">
  141. <label for="url">' . __('Website','lovecraft') . '</label>
  142. <input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" />
  143. </p>')
  144. ),
  145. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement