Advertisement
Guest User

Untitled

a guest
Jul 8th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. <?php
  2. if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
  3. die ('Please do not load this page directly. Thanks!');
  4. }
  5. ?>
  6.  
  7. <?php if (comments_open()) : ?>
  8.  
  9. <a name="comments"></a>
  10. <div class="post-box post-box-replies post-box-comments">
  11. <div class="title">
  12. <h2><?php echo __('Comments', PADD_THEME_SLUG); ?></h2>
  13. <p><?php echo __('Tell us what do you think.', PADD_THEME_SLUG); ?></p>
  14. </div>
  15. <div class="interior post-box-comments-interior">
  16. <?php if (post_password_required()) : ?>
  17. <p class="no-comments"><?php echo __('This post is password protected. Enter the password to view comments.', PADD_THEME_SLUG); ?></p>
  18. <?php elseif (!empty($comments_by_type['comment'])) : ?>
  19. <ol class="comments-list">
  20. <?php wp_list_comments('type=comment&callback=padd_theme_single_comments'); ?>
  21. </ol>
  22. <?php else : ?>
  23. <p class="no-comments"><?php echo __('There are no comments on this entry.', PADD_THEME_SLUG); ?></p>
  24. <?php endif; ?>
  25. </div>
  26. </div>
  27.  
  28.  
  29.  
  30.  
  31.  
  32. <a name="reply"></a>
  33. <div class="post-box post-box-reply" id="reply">
  34. <div class="title post-box-reply-title append-clear">
  35. <h2><?php comment_form_title('Add a Comment', 'Add a Comment to %s'); ?></h2>
  36. <p><?php echo __('Fill in the form and submit.', PADD_THEME_SLUG); ?></p>
  37. </div>
  38. <div class="interior post-box-reply-interior">
  39. <?php if (get_option('comment_registration') && !is_user_logged_in()) : ?>
  40. <p>You must be <a href="<?php echo wp_login_url(get_permalink()); ?>">logged in</a> to post a comment.</p>
  41. <?php else : ?>
  42. <form action="<?php echo bloginfo('wpurl'); ?>/wp-comments-post.php" method="post" id="comment-form">
  43. <?php if ( is_user_logged_in() ) : ?>
  44. <p>Logged in as <a href="<?php echo bloginfo('wpurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
  45. <?php else : ?>
  46. <p class="input input-small input-name">
  47. <label for="comment-author"><?php echo __('Name', PADD_THEME_SLUG); ?>: <small><?php if ($req) echo __("(Required)", PADD_THEME_SLUG); ?></small></label>
  48. <span><input type="text" name="author" id="comment-author" value="<?php echo '' != esc_attr($comment_author) ? esc_attr($comment_author) : ''; ?>" size="22" tabindex="1" /></span>
  49. </p>
  50. <p class="input input-small input-email">
  51. <label for="comment-email"><?php echo __('E-mail', PADD_THEME_SLUG); ?>: <small><?php if ($req) echo __("(Required)", PADD_THEME_SLUG); else echo __("(Optional)", PADD_THEME_SLUG); ?></small></label>
  52. <span><input type="text" name="email" id="comment-email" value="<?php echo '' != esc_attr($comment_author_email) ? esc_attr($comment_author_email) : ''; ?>" size="22" tabindex="2" /></span>
  53. </p>
  54. <p class="input input-website">
  55. <label for="comment-url"><?php echo __('Website', PADD_THEME_SLUG); ?>: <small><?php echo __("(Optional)", PADD_THEME_SLUG); ?></small></label>
  56. <span><input type="text" name="url" id="comment-url" value="<?php echo '' != esc_attr($comment_author_url) ? esc_attr($comment_author_url) : ''; ?>" size="22" tabindex="3" /></span>
  57. </p>
  58. <?php endif; ?>
  59. <p class="inpit">
  60. <label for="comment-comment"><?php echo __('Comments', PADD_THEME_SLUG); ?>:</label>
  61. <span><textarea name="comment" id="comment-comment" cols="22" rows="5" tabindex="4"></textarea></span>
  62. </p>
  63. <div class="comment-notify-submit">
  64. <?php
  65. if (function_exists('show_subscription_checkbox')) {
  66. show_subscription_checkbox();
  67. }
  68. ?>
  69. <p class="comment-submit">
  70. <button type="submit" name="submit" value="submit" id="comment-submit" tabindex="5" ><span><?php echo __('Submit', PADD_THEME_SLUG); ?></span></button>
  71. <small><?php cancel_comment_reply_link(); ?></small>
  72. </p>
  73. <div class="clear"></div>
  74. </div>
  75. <?php comment_id_fields(); ?>
  76. <?php do_action('comment_form', $post->ID); ?>
  77. </form>
  78. <?php endif; ?>
  79. </div>
  80. </div>
  81.  
  82. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement