<?php do_action('fbc_display_login_button') ?>
<?php
if (!empty($comments)) {
if (!get_query_var('comments_per_page')) {
set_query_var('comments_per_page', 20);
}
if (!get_query_var('cpage')) {
set_query_var('cpage', ceil(get_comments_number() / get_query_var('comments_per_page')));
if (!empty($_GET['page'])) {
set_query_var('cpage', $_GET['page']);
}
}
}
$comments = array_slice($comments, (get_query_var('cpage') - 1) * get_query_var('comments_per_page'), get_query_var('comments_per_page'));
global $commentcount;
if (!isset($commentcount)) {
$commentcount = (get_query_var('cpage') - 1) * get_query_var('comments_per_page');
}
?>
<div class="navigation">
</div>
<?php if (!empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password): ?>
<p><?php _e('Yaziyi g�rmek i�in giris yapin.'); ?></p>
<?php return; endif; ?>
<?php if (comments_open()): ?>
<h3 id="comments">
</h3>
<?php numb_paginate_comments('#comments'); ?>
<?php comment_ID(); ?>
<?php if ($comments): ?>
<ol class="commentlist">
</div>
<?php foreach ($comments as $comment): ?>
<li id="comment-<?php comment_ID(); ?>">
<p class="meta">
<span>(<b><?php comment_author(); ?></b>)<span><a href="#" class="comment-reply"><?php _e('Reply'); ?></a> <a href="#" class="comment-quote"><?php _e('Quote'); ?></a> <i class="comment-edit-link"><?php edit_comment_link(__("Edit")); ?></i></span>
<?php if ($comment->comment_type == 'trackback' or $comment->comment_type == 'pingback'): ?>
(<?php comment_type(); ?>)
<?php endif; ?>
</p>
<div class="comment-text">
<?php comment_text(); ?>
</div>
</li>
<?php endforeach; ?>
</ol>
<?php numb_paginate_comments('#comments'); ?>
<?php else: ?>
<p><?php _e('No comments yet.'); ?></p>
<?php endif; ?>
</p>
<h3 id="postcomment"><?php _e('Leave a comment'); ?></h3>
<?php if (get_option('comment_registration') && !$user_ID): ?>
<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), get_option('siteurl')."/wp-login.php?redirect_to=".urlencode(get_permalink()));?></p>
<?php else: ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ($user_ID): ?>
<p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?></p>
<?php else: ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="2" />
<label for="author"><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="3" />
<label for="email"><?php _e('Mail (will not be published)');?> <?php if ($req) _e('(required)'); ?></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="4" />
<label for="url"><?php _e('Website'); ?></label></p>
<?php endif; ?>
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="5"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment'); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php else: // Comments are closed ?>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>Bi ayarlarmısın lütfen