2
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
3
die ('Please do not load this page directly. Thanks!');
6
if (! empty ($post->post_password)
7
&& ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password)) {
10
<p class="nocomments">
12
"This post is password protected." .
13
"Enter the password to view comments."); ?>
23
<!-- You can start editing here. -->
24
<div class="comments">
25
<?php if ($comments) : ?>
27
<?php comments_number(
28
'No Responses', 'One Response', '% Responses' );?>
29
to “<?php the_title(); ?>”
33
<?php foreach ($comments as $comment) : ?>
35
<li class="comment-<?php echo $oddcomment; ?>"
36
id="comment-<?php comment_ID() ?>">
38
<cite><?php comment_author_link() ?></cite> Says on
40
<small><?php comment_date('j M Y') ?> at
41
<?php comment_time() ?>
42
<?php edit_comment_link('(edit)','',''); ?></small>
46
<?php if ($comment->comment_approved == '0') : ?>
47
<p><em>Your comment is awaiting moderation.</em></p>
50
<?php comment_text() ?>
53
<?php $oddcomment = ('alt' == $oddcomment) ? 'even' : 'odd'; ?>
57
<?php if ('open' != $post->comment_status) : ?>
58
<p><em>Comments are closed.</em></p>
62
<?php if ('open' == $post->comment_status) : ?>
64
<a id="commentDisclosure" class="action-pre"
65
href="javascript:void(0)">Leave a Reply</a>
68
<?php if (get_option ('comment_registration') && ! $user_ID) : ?>
71
<a href="<?php echo get_option('siteurl');
72
?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"
73
>logged in</a> to post a comment.
76
<form action="<?php echo get_option('siteurl');
77
?>/wp-comments-post.php" method="post" id="commentform"
79
<input type="hidden" name="comment_post_ID"
80
value="<?php echo $id; ?>" />
82
<table class="form" summary="post a comment">
83
<?php if ($user_ID) : ?>
87
<a href="<?php echo get_option('siteurl');
88
?>/wp-admin/profile.php"
89
><?php echo $user_identity; ?></a>.
90
<a href="<?php echo get_option('siteurl');
91
?>/wp-login.php?action=logout"
93
'Log out of this account') ?>"
102
<?php if ($req) _e('(required)'); ?>
105
<input type="text" name="author"
107
value="<?php echo $comment_author; ?>"
108
size="22" tabindex="1" />
117
<?php if ($req) _e('(required)'); ?>
120
<input type="text" name="email" id="email"
121
value="<?php echo $comment_author_email; ?>"
122
size="22" tabindex="2" />
124
<small>(will not be published)</small>
132
<label for="comment">
133
<small>New comment</small>
135
<textarea name="comment" id="comment"
136
cols="100%" rows="10"
137
tabindex="4"></textarea>
143
<td style="text-align: right;">
144
<input name="submit" type="submit" id="submit"
145
tabindex="5" value="Submit Reply" />
146
<?php do_action('comment_form', $post->ID); ?>
152
<small><strong>You can use these XHTML tags:</strong>
153
<?php echo allowed_tags(); ?></small>