<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

	<div class="sitenav">
	<a href="<?php bloginfo('url'); ?>">خانه</a>&nbsp;&nbsp;&raquo;&nbsp;&nbsp;<?php the_category(', '); ?>&nbsp;&nbsp;&raquo;&nbsp;&nbsp;<?php single_post_title(); ?>
	</div>

	<div id="post-<?php the_ID(); ?>" class="post">

	<h1><?php the_title(); ?></h1>
	
	<ul class="postinfo">
	<li><?php the_time('l, F j, Y, G:i'); ?></li>
	<li class="ncat"><?php the_category(', ') ?></li>
	<?php if(function_exists('the_views')) { print '<li class="nview">'; the_views(); print '</li>'; } ?>
	<li class="ncomment"><a href="#respond"><?php comments_number('ثبت نظر','1 comment','% comments'); ?></a></li>
	<?php edit_post_link('[ویرایش]', '<li>', '</li>'); ?>
	</ul><div class="clear"></div>

	<div class="entry">
    <div class="singpic"><?php show_thumb($width=250,$height=auto,$crop='T',$quality=95,$blank=false); ?></div>
	<?php the_content('Read full entry &raquo;'); ?>
	<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
	</div><div class="clear"></div>
	
	<ul class="postinfoB">
	<li class="nshare"><a href="#bookmarks" id="share">اشتراک</a>
	<div id="social">
	<a id="del" href="http://delicious.com/post?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>">Delicious</a>
	<a id="dig" href="http://digg.com/submit?phase=2&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>">Digg</a>
	<a id="des" href="http://designfloat.com/submit.php?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>">Design Float</a>
	<a id="mix" href="http://www.mixx.com/submit?page_url=<?php the_permalink(); ?>&title=<?php the_title(); ?>">Mixx</a>
	<a id="red" href="http://reddit.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>">Reddit</a>
	<a id="stu" href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>">StumbleUpon</a>
	<a id="tec" href="http://technorati.com/faves?add=<?php the_permalink(); ?>">Technorati</a>
	</div></li>
	<?php if(function_exists('wp_print')) { print '<li class="nprint">'; print_link(); print '</li>'; } ?>
	</ul><div class="clear"></div>
	
	<?php the_tags('<div class="tags">برچسب : ', ', ', '</div>'); ?>
	
	<h4>درباره نویسنده</h4>
	<div class="author">
	<?php echo get_avatar(get_the_author_email(), '50'); ?>
	<p><?php the_author_posts_link(); ?><?php the_author_posts(); ?>مطلب نوشته است .</p>
	<p><?php the_author_description(); ?></p><div class="clear"></div>
	</div>

	<?php comments_template(); ?>
	
	<!--
	<?php trackback_rdf(); ?>
	-->
	
	</div><!-- post -->

<?php endwhile; ?>

	<!-- navigation here -->
	<div class="nav">
	<div class="alignleft"><?php previous_post_link('&laquo; <strong>%link</strong>') ?></div>
	<div class="alignright"><?php next_post_link('<strong>%link</strong> &raquo;') ?></div>
	<div class="clear"></div>
	</div>

<?php else : ?>

	<!-- not found here -->
	<?php include TEMPLATEPATH. '/templates/not.found.html'; ?>

<?php endif; ?>