-
Notifications
You must be signed in to change notification settings - Fork 1
/
comments.php
33 lines (20 loc) · 935 Bytes
/
comments.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php defined( 'ABSPATH' ) or die( header( 'HTTP/1.0 403 Forbidden' ) );
echo '<div id="comments" class="comments-area">';
if ( gThemeComments::passwordRequired() )
return;
if ( have_comments() ) {
gThemeComments::feed();
gThemeComments::renderTitle();
gThemeComments::lockDownNotice();
$gtheme_comment_navigation = ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) );
if ( $gtheme_comment_navigation )
gThemeComments::navigation( 'comment-nav-above' );
gThemeComments::renderList();
if ( $gtheme_comment_navigation )
gThemeComments::navigation( 'comment-nav-below' );
} else if ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) {
if ( $closed = gThemeOptions::info( 'comments_closed', __( 'Comments are closed.', 'gtheme' ) ) )
echo '<p class="no-comments -print-hide">'.$closed.'</p>';
}
gThemeComments::renderForm();
echo '</div>';