<div>
<div>دیدگاه ها
<div>تعداد دیدگاه ها : <?php comments_popup_link('بدون دیدگاه', '1 دیدگاه', '% دیدگاه'); ?></div>
</div>
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<h2><?php _e('Password Protected'); ?></h2>
<p><?php _e('Enter the password to view comments.'); ?></p>
<?php return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<ol>
<?php wp_list_comments("type=comment&callback=mytheme_comment"); ?>
</ol>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p>امکان ارسال نظر وجود ندارد</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<div>
<div><?php cancel_comment_reply_link(); ?></div>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
برای ارسال نظر لطفا ابتدا <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">وارد شوید</a> <?php else : ?>
<div>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<div>
شما با نام کاربری <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a> وارد شده اید. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="خارج شدن">خارج می شوید ؟ »</a></div>
<?php else : ?>
<input type="text" placeholder="نام شما" name="author" /><br />
<input type="email" placeholder="ایمیل شما" name="email" /><br />
<input type="url" placeholder="وب سایت شما" name="url" /><br />
<?php endif; ?>
<textarea placeholder="متن پیام شما" name="comment"></textarea><br />
<input type="submit" value="ارسال پیام" /><br /><br />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?php comment_id_fields(); ?>
<?php do_action('comment_form', $post->ID); ?>
</form></div>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
</div></div>
<?php
function mytheme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<div><?php echo get_avatar($comment,$size='75' ); ?>
<div><?php printf(__('%s '), get_comment_author_link()) ?> در تاریخ <?php comment_date(__('l d F','kubrick')) ?> گفته : </div>
<div><?php comment_text() ?></div>
</div>
<?php if ($comment->comment_approved == '0') : ?>
<div><strong><?php _e(' <small>نظر شما منتظر تاييد مديريت سايت است.</small>'); ?></strong></div>
<?php endif; ?>
<?php
}
?>
<?php function list_pings($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
?>
<li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?> - <?php comment_excerpt(); ?>
<?php } ?>
<?php the_tags('',''); ?>
[COLOR=#000000] [COLOR=#0000BB]<?php [/COLOR][COLOR=#007700]if ( [/COLOR][COLOR=#0000BB]is_singular[/COLOR][COLOR=#007700]() ) [/COLOR][COLOR=#0000BB]wp_enqueue_script[/COLOR][COLOR=#007700]( [/COLOR][COLOR=#DD0000]'comment-reply' [/COLOR][COLOR=#007700]); [/COLOR][COLOR=#0000BB]wp_head[/COLOR][COLOR=#007700](); [/COLOR][COLOR=#0000BB]?>[/COLOR] [/COLOR]