Advertisement
Guest User

Untitled

a guest
Jul 6th, 2012
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying Comments.
  4. *
  5. * The area of the page that contains both current comments
  6. * and the comment form. The actual display of comments is
  7. * handled by a callback to twentyten_comment which is
  8. * located in the functions.php file.
  9. *
  10. * @package WordPress
  11. * @subpackage Twenty_Ten
  12. * @since Twenty Ten 1.0
  13. */
  14. ?>
  15.  
  16. <div id="comments" style="padding:15px; background-color:#EAF5FF">
  17. <?php if ( post_password_required() ) : ?>
  18. <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p>
  19. </div><!-- #comments -->
  20. <?php
  21. /* Stop the rest of comments.php from being processed,
  22. * but don't kill the script entirely -- we still have
  23. * to fully load the template.
  24. */
  25. return;
  26. endif;
  27. ?>
  28.  
  29. <?php
  30. // You can start editing here -- including this comment!
  31. ?>
  32.  
  33. <?php if ( have_comments() ) : ?>
  34. <h3 id="comments-title"><?php
  35. printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
  36. number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
  37. ?></h3>
  38.  
  39. <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
  40. <div class="navigation">
  41. <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div>
  42. <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
  43. </div> <!-- .navigation -->
  44. <?php endif; // check for comment navigation ?>
  45.  
  46. <ol class="commentlist">
  47. <?php
  48. /* Loop through and list the comments. Tell wp_list_comments()
  49. * to use twentyten_comment() to format the comments.
  50. * If you want to overload this in a child theme then you can
  51. * define twentyten_comment() and that will be used instead.
  52. * See twentyten_comment() in twentyten/functions.php for more.
  53. */
  54. wp_list_comments( array( 'callback' => 'twentyten_comment' ) );
  55. ?>
  56. </ol>
  57.  
  58. <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
  59. <div class="navigation">
  60. <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div>
  61. <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
  62. </div><!-- .navigation -->
  63. <?php endif; // check for comment navigation ?>
  64. http://dev1.actsolution.biz/nchm/wp-admin/theme-editor.php?file=/home/dev/public_html/nchm/wp-content/themes/nchm/comments.php&theme=NCHM&a=te&scrollto=980
  65. <?php else : // or, if we don't have comments:
  66.  
  67. /* If there are no comments and comments are closed,
  68. * let's leave a little note, shall we?
  69. */
  70. if ( ! comments_open() ) :
  71. ?>
  72. <p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
  73. <?php endif; // end ! comments_open() ?>
  74.  
  75. <?php endif; // end have_comments() ?>
  76.  
  77. <h3 id="respond">Leave a Reply</h3>
  78.  
  79. <form action=”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post” id=”commentform”>
  80. <p>
  81. <input name="author" id="author" value="" size="22" tabindex="1" type="text" style="border:1px #DDDDDD solid; background-color: #FFFFFF">
  82. <label for="author">
  83. <small>Name*</small>
  84. </label>
  85. </p>
  86. <p>
  87. <input name="email" id="email" value="" size="22" tabindex="2" type="text" style="border:1px #DDDDDD solid; background-color: #FFFFFF">
  88. <label for="email">
  89. <small>Email* (will not be published)</small>
  90. </label>
  91. </p>
  92.  
  93. <p>
  94. <textarea name="comment" id="comment" cols="50" rows="10" tabindex="4" style="border:1px #DDDDDD solid; background-color: #FFFFFF">
  95. </textarea>
  96. </p>
  97. <p>
  98. <input name="submit" id="submit" tabindex="5" value="Submit Comment" type="submit">
  99. <input name="comment_post_ID" value="1" type="hidden">
  100. </p>
  101. </form>
  102.  
  103. </div><!-- #comments -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement