Guest User

Untitled

a guest
Jan 16th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.49 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Default_Theme
  5. */
  6.  
  7. // Do not delete these lines
  8. if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
  9. die ('Please do not load this page directly. Thanks!');
  10.  
  11. if ( post_password_required() ) { ?>
  12. <div class="Post">
  13. <div class="Post-body">
  14. <div class="Post-inner article">
  15.  
  16. <div class="PostContent">
  17.  
  18. <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'kubrick'); ?></p>
  19.  
  20. </div>
  21. <div class="cleared"></div>
  22.  
  23.  
  24. </div>
  25.  
  26. </div>
  27. </div>
  28.  
  29. <?php
  30. return;
  31. }
  32. ?>
  33.  
  34. <!-- You can start editing here. -->
  35.  
  36. <?php if ( have_comments() ) : ?>
  37.  
  38. <div class="Post">
  39. <div class="Post-body">
  40. <div class="Post-inner article">
  41.  
  42. <div class="PostContent">
  43.  
  44. <h3 id="comments"><?php kommentarer_number(__('No Responses', 'kubrick'), __('One Response', 'kubrick'), __('% Responses', 'kubrick'));?> <?php printf(__('to &#8220;%s&#8221;', 'kubrick'), the_title('', '', false)); ?></h3>
  45.  
  46. <?php
  47. ob_start();
  48. previous_comments_link(__('Newer Entries &raquo;', 'kubrick'));
  49. $prev_comment_link = ob_get_clean();
  50.  
  51. ob_start();
  52. next_comments_link(__('&laquo; Older Entries', 'kubrick'));
  53. $next_comment_link = ob_get_clean();
  54. ?>
  55.  
  56. <?php if ($prev_comment_link || $next_comment_link): ?>
  57. <div class="navigation">
  58. <div class="alignleft">
  59. <?php echo $next_comment_link; ?>
  60. </div>
  61. <div class="alignright">
  62. <?php echo $prev_comment_link; ?>
  63. </div>
  64. </div>
  65. <?php endif; ?>
  66.  
  67. </div>
  68. <div class="cleared"></div>
  69.  
  70.  
  71. </div>
  72.  
  73. </div>
  74. </div>
  75.  
  76.  
  77. <ul class="commentlist">
  78. <?php wp_list_comments('type=comment&callback=art_comment'); ?>
  79. </ul>
  80.  
  81. <?php if ($prev_comment_link || $next_comment_link): ?>
  82. <div class="Post">
  83. <div class="Post-body">
  84. <div class="Post-inner article">
  85.  
  86. <div class="PostContent">
  87.  
  88. <div class="navigation">
  89. <div class="alignleft">
  90. <?php echo $next_comment_link; ?>
  91. </div>
  92. <div class="alignright">
  93. <?php echo $prev_comment_link; ?>
  94. </div>
  95. </div>
  96.  
  97. </div>
  98. <div class="cleared"></div>
  99.  
  100.  
  101. </div>
  102.  
  103. </div>
  104. </div>
  105.  
  106. <?php endif; ?>
  107.  
  108. <?php else : // this is displayed if there are no comments so far ?>
  109.  
  110. <?php if ('open' == $post->comment_status) : ?>
  111. <!-- If comments are open, but there are no comments. -->
  112.  
  113. <?php else : // comments are closed ?>
  114. <!-- If comments are closed. -->
  115. <div class="Post">
  116. <div class="Post-body">
  117. <div class="Post-inner article">
  118.  
  119. <div class="PostContent">
  120.  
  121. <p class="nocomments"><?php _e('Comments are closed.', 'kubrick'); ?></p>
  122.  
  123. </div>
  124. <div class="cleared"></div>
  125.  
  126.  
  127. </div>
  128.  
  129. </div>
  130. </div>
  131.  
  132. <?php endif; ?>
  133. <?php endif; ?>
  134.  
  135.  
  136. <?php if ('open' == $post->comment_status) : ?>
  137. <div class="Post">
  138. <div class="Post-body">
  139. <div class="Post-inner article">
  140.  
  141. <div class="PostContent">
  142.  
  143. <div id="respond">
  144.  
  145. <h3><?php comment_form_title( __('Leave a Reply', 'kubrick'), __('Leave a Reply for %s', 'kubrick') ); ?></h3>
  146.  
  147. <div class="cancel-comment-reply">
  148. <small><?php cancel_comment_reply_link(); ?></small>
  149. </div>
  150.  
  151. <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
  152. <p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'kubrick'), get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink())); ?></p>
  153. <?php else : ?>
  154.  
  155. <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
  156.  
  157. <?php if ( $user_ID ) : ?>
  158.  
  159. <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'kubrick'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account', 'kubrick'); ?>"><?php _e('Log out &raquo;', 'kubrick'); ?></a></p>
  160.  
  161. <?php else : ?>
  162.  
  163. <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
  164. <label for="author"><small><?php _e('Name', 'kubrick'); ?> <?php if ($req) _e("(required)", "kubrick"); ?></small></label></p>
  165.  
  166. <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
  167. <label for="email"><small><?php _e('Mail (will not be published)', 'kubrick'); ?> <?php if ($req) _e("(required)", "kubrick"); ?></small></label></p>
  168.  
  169. <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
  170. <label for="url"><small><?php _e('Website', 'kubrick'); ?></small></label></p>
  171.  
  172. <?php endif; ?>
  173.  
  174. <!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>', 'kubrick'), allowed_tags()); ?></small></p>-->
  175.  
  176. <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
  177.  
  178. <p>
  179.  
  180. <button class="Button" type="submit" name="submit" tabindex="5">
  181. <span class="btn">
  182. <span class="t">
  183. <?php _e('Submit Comment', 'kubrick'); ?>
  184. </span>
  185. <span class="r">
  186. <span></span>
  187. </span>
  188. <span class="l"></span>
  189. </span>
  190. </button>
  191.  
  192. <?php comment_id_fields(); ?>
  193. </p>
  194. <?php do_action('comment_form', $post->ID); ?>
  195.  
  196. </form>
  197.  
  198. <?php endif; // If registration required and not logged in ?>
  199. </div>
  200.  
  201. </div>
  202. <div class="cleared"></div>
  203.  
  204.  
  205. </div>
  206.  
  207. </div>
  208. </div>
  209.  
  210. <?php endif; // if you delete this the sky will fall on your head ?>
Add Comment
Please, Sign In to add comment