Advertisement
Guest User

comments-feedback.php

a guest
Sep 13th, 2010
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.27 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage ClassiPress
  5. *
  6. */
  7.  
  8. // Do not delete these lines
  9. if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
  10. die (__('Please do not load this page directly. Thanks!', 'cp'));
  11.  
  12. if ( post_password_required() ) { ?>
  13. <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','cp'); ?></p>
  14. <?php
  15. return;
  16. }
  17. ?>
  18.  
  19. <!-- You can start editing here. -->
  20. <div class="shadowblock_out">
  21.  
  22. <div class="shadowblock">
  23.  
  24. <div id="comments">
  25.  
  26. <div id="comments_wrap">
  27.  
  28. <?php if (have_comments()) : ?>
  29.  
  30. <h2 class="dotted"><?php comments_number(__('No Reviews Yet','cp'), __('One Review','cp'), __('% Reviews','cp') );?> <?php _e('for','cp'); ?> <span class="colour">&#8220;<?php the_title(); ?>&#8221;</span></h2>
  31.  
  32. <ol class="commentlist">
  33.  
  34. <?php wp_list_comments(); ?>
  35.  
  36. </ol>
  37. <div class="navigation">
  38.  
  39. <div class="alignleft"><?php previous_comments_link('&laquo; ' . __('Older Reviews', 'cp'), 0) ?></div>
  40.  
  41. <div class="alignright"><?php next_comments_link(__('Newer Reviews', 'cp') . ' &raquo;', 0) ?></div>
  42.  
  43. <div class="clr"></div>
  44.  
  45. </div>
  46.  
  47. <div class="clr"></div>
  48.  
  49. <?php if (!empty($comments_by_type['pings'])) : ?>
  50.  
  51. <h2 class="dotted" id="pings"><?php _e('Trackbacks/Pingbacks', 'cp'); ?></h2>
  52.  
  53. <ol class="commentlist">
  54.  
  55. <?php wp_list_comments('type=pings'); ?>
  56.  
  57. </ol>
  58.  
  59. <?php endif; ?>
  60.  
  61.  
  62.  
  63. <?php else : // this is displayed if there are no comments so far ?>
  64.  
  65. <?php if (comments_open()) : ?>
  66. <!-- If comments are open, but there are no comments. -->
  67.  
  68. <?php else : // comments are closed ?>
  69.  
  70. <!-- If comments are closed. -->
  71. <h2 class="dotted"><?php _e('Feedback','cp'); ?></h2>
  72. <p class="nocomments"><?php _e('Feedback is closed.','cp'); ?></p>
  73.  
  74. <?php endif; ?>
  75.  
  76. <?php endif; ?>
  77.  
  78. <?php if ('open' == $post->comment_status) : ?>
  79.  
  80. <div id="respond">
  81.  
  82. <h2 class="dotted"><?php comment_form_title( __('Feedback','cp'), __('Leave Feedback on %s','cp') ); ?></h2>
  83.  
  84. <div class="cancel-comment-reply">
  85.  
  86. <small><?php cancel_comment_reply_link(); ?></small>
  87.  
  88. </div>
  89.  
  90. <?php if (!$user_ID) : ?>
  91.  
  92. <p><?php printf(__("You must be <a href='%s'>logged in</a> to leave feedback.", 'cp'), get_option('siteurl').'/wp-login.php?redirect_to='.urlencode(get_permalink())); ?></p>
  93.  
  94. <?php else : ?>
  95.  
  96. <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform" class="commentform" >
  97.  
  98. <fieldset class="form-comments">
  99.  
  100. <?php if ($user_ID) : ?>
  101.  
  102. <p><?php _e('Logged in as','cp'); ?> <a href="<?php echo get_option('siteurl'); ?>/profile/"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Logout of this account','cp'); ?>"><?php _e('Logout','cp'); ?> &raquo;</a></p>
  103.  
  104. <?php else : ?>
  105.  
  106. <p class="comments">
  107. <input type="text" name="author" id="author" class="text" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
  108. <label for="author"><?php _e('Name','cp'); ?> <?php if ($req) _e('(required)','cp'); ?></label>
  109. </p>
  110.  
  111. <div class="clr"></div>
  112.  
  113. <p class="comments">
  114. <input type="text" name="email" id="email" class="text" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
  115. <label for="email"><?php _e('Email (will not be visible)','cp'); ?> <?php if ($req) _e('(required)','cp'); ?></label>
  116. </p>
  117.  
  118. <div class="clr"></div>
  119.  
  120. <p class="comments">
  121. <input type="text" name="url" id="url" class="text" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
  122. <label for="url"><?php _e('Website','cp'); ?></label>
  123. </p>
  124.  
  125. <div class="clr"></div>
  126.  
  127. <?php endif; ?>
  128.  
  129. <!--<li><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small><div class="clr"></div></li>-->
  130.  
  131. <p class="comments-box">
  132. <textarea name="comment" rows="" cols="" id="comment" tabindex="4"></textarea>
  133. </p>
  134.  
  135. <div class="clr"></div>
  136. <?php comment_id_fields(); ?> <?php $id = $post->ID ?>
  137. <p class="comments">
  138. <input name="submit" type="submit" id="submit" tabindex="5" class="btn_orange" value="<?php _e('Submit','cp'); ?>" />
  139. <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
  140. </p>
  141.  
  142. <?php do_action('comment_form', $post->ID); ?>
  143.  
  144. </fieldset>
  145.  
  146. </form>
  147.  
  148. <?php endif; // If logged in ?>
  149.  
  150. <div class="clr"></div>
  151.  
  152. </div> <!-- /respond -->
  153.  
  154. <?php endif; ?>
  155.  
  156. </div> <!-- /comments_wrap -->
  157.  
  158. </div><!-- /comments -->
  159.  
  160. </div><!-- /shadowblock -->
  161.  
  162. </div><!-- /shadowblock_out -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement