2 removals
2 additions
1.<?php 1.<?php
2./** 2./**
3. * COMMENTS 3. * COMMENTS
4. * 4. *
5. * The template for displaying Comments. 5. * The template for displaying Comments.
6. * 6. *
7. * @package PageLines Framework 7. * @package PageLines Framework
8. * @since 1.0 8. * @since 1.0
9. * 9. *
10. * @link http://www.pagelines.com/ 10. * @link http://www.pagelines.com/
11. * @link http://www.pagelines.com/tour 11. * @link http://www.pagelines.com/tour
12. * 12. *
13. * @author PageLines http://www.pagelines.com/ 13. * @author PageLines http://www.pagelines.com/
14. * @copyright Copyright (c) 2012, PageLines hello@pagelines.com 14. * @copyright Copyright (c) 2012, PageLines hello@pagelines.com
15. * 15. *
16. * @internal last revised February 23, 2012 16. * @internal last revised February 23, 2012
17. * @version 2.1.1 17. * @version 2.1.1
18. */ 18. */
19. 19.
20.if(!have_comments() && !comments_open()) 20.//if(!have_comments()) && !comments_open())
21. return; 21.// return;
22. 22.
23.?> 23.?>
24. 24.
25.<div id="comments" class="wp-comments"> 25.<div id="comments" class="wp-comments">
26. <div class="wp-comments-pad"> 26. <div class="wp-comments-pad">
27. <?php 27. <?php
28. 28.
29. /* Stop the rest of comments.php from being processed, 29. /* Stop the rest of comments.php from being processed,
30. * but don't kill the script entirely -- we still have 30. * but don't kill the script entirely -- we still have
31. * to fully load the template. 31. * to fully load the template.
32. */ 32. */
33. if ( post_password_required() ){ 33. if ( post_password_required() ){
34. printf('<p class="nopassword">%s</p></div></div>', __( 'This post is password protected. Enter the password to view any comments.', 'pagelines' ) ); 34. printf('<p class="nopassword">%s</p></div></div>', __( 'This post is password protected. Enter the password to view any comments.', 'pagelines' ) );
35. return; 35. return;
36. 36.
37. } 37. }
38. 38.
39. if ( have_comments() ) : ?> 39. if ( have_comments() ) : ?>
40. <h3 id="comments-title"><?php 40. <h3 id="comments-title"><?php
41. printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'pagelines' ), 41. printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'pagelines' ),
42. number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); 42. number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
43. ?></h3> 43. ?></h3>
44. 44.
45. <ol class="commentlist"> 45. <ol class="commentlist">
46. <?php wp_list_comments(array('avatar_size' => 65)); ?> 46. <?php wp_list_comments(array('avatar_size' => 65)); ?>
47. </ol> 47. </ol>
48. <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> 48. <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
49. <div class="navigation fix"> 49. <div class="navigation fix">
50. <div class="alignleft"><?php previous_comments_link( __( "<span class='meta-nav'>&larr;</span> Older Comments", 'pagelines' ) ); ?></div> 50. <div class="alignleft"><?php previous_comments_link( __( "<span class='meta-nav'>&larr;</span> Older Comments", 'pagelines' ) ); ?></div>
51. <div class="alignright"><?php next_comments_link( __( "Newer Comments <span class='meta-nav'>&rarr;</span>", 'pagelines' ) ); ?></div> 51. <div class="alignright"><?php next_comments_link( __( "Newer Comments <span class='meta-nav'>&rarr;</span>", 'pagelines' ) ); ?></div>
52. </div> <!-- .navigation --> 52. </div> <!-- .navigation -->
53. <?php endif; // check for comment navigation ?> 53. <?php endif; // check for comment navigation ?>
54. 54.
55. 55.
56.<?php else : // or, if we don't have comments: 56.<?php else : // or, if we don't have comments:
57. 57.
58. /* If there are no comments and comments are closed, 58. /* If there are no comments and comments are closed,
59. * let's leave a little note, shall we? 59. * let's leave a little note, shall we?
60. */ 60. */
61. if ( ! comments_open() ) : 61. if ( ! comments_open() ) :
62. ?> 62. ?>
63. <p class="nocomments"><?php _e('Comments are closed.', 'pagelines');?></p> 63. <p class="nocomments"><?php _e('Comments are closed.', 'pagelines');?></p>
64. <?php endif; // end ! comments_open() ?> 64. <?php endif; // end ! comments_open() ?>
65. 65.
66.<?php 66.<?php
67. endif; // end have_comments() 67. endif; // end have_comments()
68. 68.
69. comment_form(); ?> 69. comment_form(); ?>
70. </div> 70. </div>
71.</div>71.</div>
original text
changed text