Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7f595f9345
Fetching contributors…

Cannot retrieve contributors at this time

113 lines (95 sloc) 4.64 kb
<?php
// Do not access this file directly
if ( !empty($_SERVER['SCRIPT_FILENAME']) and 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) )
die( __('Please do not load this page directly. Thanks!', 'unwakeable') );
// Password Protection
if ( post_password_required() ): ?>
<p class="nopassword"><?php _e('This post is password protected. Enter the password to view comments.', 'unwakeable'); ?></p>
<?php return; endif; ?>
<h4><?php printf( __('%1$s %2$s to &#8220;%3$s&#8221;', 'unwakeable'), '<span id="comments">' . count($comments) . '</span>', count($comments) != 1 ? __('Responses', 'unwakeable'): __('Response','unwakeable'), the_title('', '', false) ); ?></h4>
<div class="metalinks">
<span class="commentsrsslink"><?php post_comments_feed_link( __('Feed for this Entry', 'unwakeable') ); ?></span>
<?php if ( pings_open() ): ?><span class="trackbacklink"><a href="<?php trackback_url(); ?>" title="<?php _e('Copy this URI to trackback this entry.','unwakeable'); ?>"><?php _e('Trackback Address','unwakeable'); ?></a></span><?php endif; ?>
</div>
<hr />
<?php if ( have_comments() ): $GLOBALS['comment_index'] = 0; ?>
<ul id="commentlist">
<?php
if ( function_exists('wp_list_comments') ):
wp_list_comments('callback=k2_comment_start_el');
else:
foreach ($comments as $comment):
k2_comment_item($comment);
endforeach;
endif;
?>
</ul>
<?php if ( function_exists('wp_list_comments') ):
/* Navigation */ k2_navigation('nav-comments');
if (get_option('page_comments')):
$comment_pages = paginate_comments_links('echo=0');
if ($comment_pages): ?>
<div class="comment-navigation clear-block">
<?php echo $comment_pages; ?>
</div>
<?php
endif;
endif;
endif; ?>
<?php elseif ( comments_open() ): ?>
<ul id="commentlist">
<li id="leavecomment">
<?php _e('No Comments','unwakeable'); ?>
</li>
</ul>
<?php endif; // If there are comments ?>
<?php if ( !empty($GLOBALS['trackbacks']) ): $GLOBALS['comment_index'] = 0; ?>
<ul id="pinglist">
<?php
foreach ($GLOBALS['trackbacks'] as $comment):
k2_ping_item($comment);
endforeach;
?>
</ul>
<?php endif; // If there are trackbacks / pingbacks ?>
<?php /* Comments closed */ if ( !comments_open() and is_single() ): ?>
<div id="comments-closed-msg"><?php _e('Comments are currently closed.','unwakeable'); ?></div>
<?php endif; ?>
<?php /* Reply Form */ if ( comments_open() ): ?>
<div id="respond">
<h4 class="reply"><?php
if ( isset( $_GET['jal_edit_comments'] ) ):
_e('Edit Your Comment','unwakeable');
elseif ( function_exists('comment_form_title') ):
comment_form_title( __('Leave a Reply', 'unwakeable'), __('Leave a Reply to %s', 'unwakeable') );
else:
_e('Leave a Reply','unwakeable');
endif;
?></h4>
<div class="quoter_page_container"><?php if ( function_exists('quoter_page') ) quoter_page(); ?></div>
<?php if ( function_exists('cancel_comment_reply_link') ): ?>
<div class="cancel-comment-reply">
<?php cancel_comment_reply_link( __('Cancel Reply', 'unwakeable') ); ?>
</div>
<?php endif; ?>
<?php if ( get_option('comment_registration') and !$user_ID ): ?>
<p>
<?php printf(__('You must <a href="%s">login</a> to post a comment.','unwakeable'), get_option('siteurl') . '/wp-login.php?redirect_to=' . htmlentities(urlencode(get_permalink()))); ?>
</p>
<?php else: ?>
<?php
comment_form( array(
'title_reply' => '',
'comment_notes_before' => '',
'comment_notes_after' => '',
'comment_field' => '<p><textarea id="comment" name="comment" cols="100%" rows="10" aria-required="true" tabindex="4"></textarea></p>',
'fields' => array(
'author' => '<div id="comment-author-info"><p><input type="text" name="author" id="author" value="'.esc_attr($comment_author).'" size="22" tabindex="1" /><label for="author"><strong>'._x('Name','unwakeable').'</strong></label></p>',
'email' => '<p><input type="text" name="email" id="email" value="'.esc_attr($comment_author_email).'" size="22" tabindex="2" /><label for="email"><strong>'._x('Mail','unwakeable').'</strong>'._x(' (will not be published)','unwakeable').'</label></p>',
'url' => '<p><input type="text" name="url" id="url" value="'.esc_attr($comment_author_url).'" size="22" tabindex="3" /><label for="url"><strong>'._x('Website','unwakeable').'</strong></label></p></div>')
) );
?>
<?php endif; // If registration required and not logged in ?>
<div class="clear"></div>
</div> <!-- .commentformbox -->
<?php endif; // Reply Form ?>
Jump to Line
Something went wrong with that request. Please try again.