2009-08-21 19:29:45 +00:00
|
|
|
<?php
|
2009-11-23 06:59:15 +00:00
|
|
|
global $comicpress_options;
|
2009-08-21 19:29:45 +00:00
|
|
|
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
|
2009-10-05 06:08:01 +00:00
|
|
|
die (__('Please do not load this page directly. Thanks!','comicpress'));
|
2009-08-21 19:29:45 +00:00
|
|
|
|
|
|
|
if ( post_password_required() ) { ?>
|
2009-10-05 06:08:01 +00:00
|
|
|
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','comicpress'); ?></p>
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php
|
|
|
|
return;
|
|
|
|
} ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-10-21 01:14:59 +00:00
|
|
|
<div id="comment-wrapper-head"></div>
|
2009-10-11 11:48:57 +00:00
|
|
|
<div id="comment-wrapper">
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php if ( have_comments() ) : ?>
|
|
|
|
|
|
|
|
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
|
2009-12-04 18:32:16 +00:00
|
|
|
|
2009-10-05 06:08:01 +00:00
|
|
|
<h3 id="comments"><?php comments_number(__('Discussion ¬','comicpress'), __('Discussion ¬','comicpress'), __('Discussion (%) ¬','comicpress') );?></h3>
|
2009-12-04 18:32:16 +00:00
|
|
|
<div class="commentsrsslink">[ <?php comments_rss_link('Comments RSS'); ?> ]</div>
|
2009-08-21 19:29:45 +00:00
|
|
|
<ol class="commentlist">
|
2009-12-04 18:32:16 +00:00
|
|
|
<?php if (function_exists('comicpress_comments_callback')) {
|
|
|
|
wp_list_comments(array(
|
|
|
|
'type' => 'comment',
|
|
|
|
'reply_text' => __('Reply to %s¬','comicpress'),
|
|
|
|
'callback' => 'comicpress_comments_callback',
|
|
|
|
'end-callback' => 'comicpress_comments_end_callback',
|
|
|
|
'avatar_size'=>64
|
|
|
|
)
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
wp_list_comments(array('type' => 'comment', 'avatar_size'=>64));
|
2009-08-21 19:29:45 +00:00
|
|
|
}?>
|
|
|
|
</ol>
|
2009-12-04 18:32:16 +00:00
|
|
|
|
|
|
|
<?php if ( ! empty($comments_by_type['pings']) ) : ?>
|
|
|
|
<div id="pingtrackback-wrap">
|
|
|
|
<h3 id="pingtrackback"><?php _e('Pings & Trackbacks ¬','comicpress'); ?></h3>
|
|
|
|
<ol class="commentlist">
|
|
|
|
<ul>
|
|
|
|
<?php if (function_exists('comicpress_comments_callback')) {
|
|
|
|
wp_list_comments(array(
|
|
|
|
'type' => 'pings',
|
|
|
|
'callback' => 'comicpress_comments_callback',
|
|
|
|
'end-callback' => 'comicpress_comments_end_callback',
|
|
|
|
'avatar_size'=>32
|
|
|
|
)
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
wp_list_comments(array('type' => 'pings', 'avatar_size'=>64));
|
|
|
|
}?>
|
|
|
|
</ul>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2009-08-21 19:29:45 +00:00
|
|
|
<?php endif; ?>
|
2009-09-13 13:42:20 +00:00
|
|
|
|
2009-11-23 06:47:53 +00:00
|
|
|
<?php if ($comicpress_options['enable_numbered_pagination']) { ?>
|
2009-09-13 13:42:20 +00:00
|
|
|
<?php
|
|
|
|
$pagelinks = paginate_comments_links(array('echo' => 0));
|
|
|
|
if (!empty($pagelinks)) {
|
|
|
|
$pagelinks = preg_replace('#\<a#', '<li><a', $pagelinks);
|
|
|
|
$pagelinks = preg_replace('#\<\/a\>#', '</a></li>', $pagelinks);
|
|
|
|
$pagelinks = preg_replace('#\<span#', '<li', $pagelinks);
|
|
|
|
$pagelinks = preg_replace('#\<\/span\>#', '</li>', $pagelinks); ?>
|
|
|
|
<div id="wp-paginav">
|
|
|
|
<div id="paginav">
|
2009-10-05 06:08:01 +00:00
|
|
|
<?php echo '<ul><li class="paginav-extend">'.__('Comment Pages','comicpress').'</li>'. $pagelinks . '</ul>'; ?>
|
2009-09-13 13:42:20 +00:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php } else { ?>
|
|
|
|
<div class="commentnav">
|
2009-10-05 06:08:01 +00:00
|
|
|
<div class="commentnav-right"><?php next_comments_link(__('Next Comments ↑','comicpress')) ?></div>
|
|
|
|
<div class="commentnav-left"><?php previous_comments_link(__('↓ Previous Comments','comicpress')) ?></div>
|
2009-09-13 13:42:20 +00:00
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
2009-08-21 19:29:45 +00:00
|
|
|
|
|
|
|
<?php else : // this is displayed if there are no comments so far ?>
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php if ('open' == $post->comment_status) : ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
<!-- If comments are open, but there are no comments. -->
|
|
|
|
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php else : // comments are closed ?>
|
|
|
|
<!-- If comments are closed. -->
|
2009-10-05 06:08:01 +00:00
|
|
|
<p class="nocomments"><?php _e('Comments are closed.','comicpress'); ?></p>
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php endif; ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
|
|
|
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php if ('open' == $post->comment_status) : ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-15 10:23:54 +00:00
|
|
|
<div id="respond">
|
|
|
|
|
2009-10-05 06:08:01 +00:00
|
|
|
<h3><?php comment_form_title( __('Comment ¬','comicpress'), __('Reply to %s ¬','comicpress') ); ?></h3>
|
2009-09-15 10:23:54 +00:00
|
|
|
|
|
|
|
<div class="cancel-comment-reply">
|
2009-11-04 12:28:14 +00:00
|
|
|
<p><small><?php cancel_comment_reply_link(); ?></small></p>
|
2009-09-15 10:23:54 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
|
2009-10-05 06:08:01 +00:00
|
|
|
<p><?php _e('You must be','comicpress'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in','comicpress'); ?></a> <?php _e('to post a comment.','comicpress'); ?></p>
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php else : ?>
|
|
|
|
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
|
|
|
|
<?php if ( $user_ID ) : ?>
|
2009-10-05 06:08:01 +00:00
|
|
|
<p><?php _e('Logged in as','comicpress'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account','comicpress'); ?>"><?php _e('Log out »','comicpress'); ?></a></p>
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php else : ?>
|
|
|
|
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
|
2009-10-05 06:08:01 +00:00
|
|
|
<label for="author"><small><?php _e('NAME —','comicpress'); ?> <a href="http://gravatar.com"><?php _e('Get a Gravatar','comicpress'); ?></a></small></label></p>
|
2009-09-15 10:23:54 +00:00
|
|
|
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
|
2009-10-05 06:08:01 +00:00
|
|
|
<label for="email"><small><?php _e('EMAIL','comicpress'); ?> <?php if ($req) echo __("— Required / not published",'comicpress'); ?> </small></label></p>
|
2009-09-15 10:23:54 +00:00
|
|
|
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
|
2009-10-05 06:08:01 +00:00
|
|
|
<label for="url"><small><?php _e('WEBSITE','comicpress'); ?></small></label></p>
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php do_action('comment_form', $post->ID); ?>
|
2009-11-04 12:28:14 +00:00
|
|
|
<p><textarea name="comment" id="comment-textarea" cols="60" rows="6" tabindex="4"></textarea></p>
|
|
|
|
<p><button type="submit" class="comment-submit"><?php _e('Submit Comment','comicpress'); ?></button></p>
|
2009-11-23 06:47:53 +00:00
|
|
|
<?php
|
|
|
|
if (!$comicpress_options['disable_comment_note']) { ?>
|
2009-11-04 12:28:14 +00:00
|
|
|
<p><span class="comment-note"><?php _e('NOTE - You can use these tags:','comicpress'); ?><br /><?php echo allowed_tags(); ?></span></p>
|
2009-09-15 10:23:54 +00:00
|
|
|
<?php } ?>
|
|
|
|
<?php comment_id_fields(); ?>
|
|
|
|
</form>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
|
|
|
<?php endif; ?>
|
2009-11-04 11:09:56 +00:00
|
|
|
|
2009-12-04 18:32:16 +00:00
|
|
|
|
2009-11-04 11:09:56 +00:00
|
|
|
|
2009-10-21 01:14:59 +00:00
|
|
|
</div>
|
|
|
|
<div id="comment-wrapper-foot"></div>
|