<?php get_header(); ?>
<?php
global $options;
foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<!--Start of content-->
    <div class="bg-content">
	<?php get_sidebar(); ?>

    <div class="l-pad">
    <div class="grid_8x">
    <section>
    <div class="article">

    <article>
    <div class="content">
    <?php if (have_posts()) : ?>
	<?php while (have_posts()) : the_post(); ?>
    <div class="space-px"></div>
    	<header>
		<div class="post-up">
        <div class="post-title-in">
        <h2 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="پيوند پايدار به <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
        <div class="post-date"><span>[تاريخ:<?php the_time('j F Y') ?>]</span> ~ <span><?php the_category('،') ?></span></div>
        
        
        
        
        </div></div>
        <div class="clear"></div>
        <div class="space-px"></div>
        </header>
        <section>
    <div class="post">
    <?php the_content(); ?>
 
    
    
    </div>
	<div class="space"></div>
    <div class="space"></div>
        <div class="post-meta">
        <img class="right" src="<?php bloginfo('template_url'); ?>/img/tags.gif" width="16" height="16" alt="برچسب‌ها" /> <p class="right" style=" padding-right:5px">  <?php the_tags('','، ',''); ?> </p>
        <div class="post-submit">
        <ul><li><a target="_blank" href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&amp;title=<?php the_title(); ?>"><img style="border: medium none;" class="" alt="stumbleupon" src="<?php bloginfo('template_url'); ?>/img/stumbleupon.jpg" /></a></li><li><a target="_blank" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink() ?>&amp;title=<?php the_title(); ?>"><img style="border: medium none;" class="" alt="Digg" src="<?php bloginfo('template_url'); ?>/img/digg.jpg" /></a></li><li><a target="_blank" href="http://del.icio.us/post?v=4&amp;url=<?php the_permalink() ?>&amp;title=<?php the_title(); ?>"><img style="border: medium none;" class="" alt="Delicious" src="<?php bloginfo('template_url'); ?>/img/delicious-small.jpg" /></a></li><li><a href="javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&amp;&amp;!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/link-bookmarklet.js');void(b.appendChild(z));}else{}"><img style="border: medium none;" class="" title="ارسال به گوگل ریدر" alt="Greader" src="<?php bloginfo('template_url'); ?>/img/google-small.jpg" /></a></li><li><a target="_blank" href="http://twitthis.com/twit?url=<?php the_permalink() ?>&amp;title=<?php the_title(); ?>"><img style="border: medium none;" class="" alt="Twitter" src="<?php bloginfo('template_url'); ?>/img/twitter-small.jpg" /></a></li><li><a target="_blank" href="http://friendfeed.com/share?url=<?php the_permalink() ?>&amp;title=<?php the_title(); ?>"><img style="border: medium none;" class="" alt="FriendFeed" src="<?php bloginfo('template_url'); ?>/img/ff-small.jpg" /></a></li>
        
        </ul>
        </div>
        <div class="clear"></div>
        </div>
    	<div class="space"></div> 
        </section>  
        <div class="space"></div> 
        <!--subscribe-->     
        <div class="post-follow">
        <?php 
			$itbl_feedburne_stuff = $itbl_feedburne_stuff == '' ? get_bloginfo('rss2_url') : "http://feeds.feedburner.com/".$itbl_feedburne_stuff;
		?>
        <a href="<?php echo $itbl_feedburne_stuff; ?>">
        <img src="<?php bloginfo('template_url'); ?>/img/feed-sub.gif" alt="" /></a>
        <div class="follow-des">
        مشترک شوید و مطالب ما را از دست ندهید.
        <br />
       
        </div>
        </div>
        <!--subscribe-->  
        <div class="space"></div>  
        <div id="comments-box">

		<?php comments_template(); ?>

		</div>
		<?php endwhile; ?>
        <div class="src-result">
		<div class="navigation">
			<div class="alignleft"><?php previous_posts_link('مطالب جدیدتر &raquo;') ?></div>
			<div class="alignright"><?php next_posts_link('&laquo; مطالب قبلی') ?></div>
            <div class="clear-all"></div>
		</div>
        </div>
	<?php else : ?>
            <div class="src-result">
            <h4 class="center">پیدا نشد !</h4>
            <p class="center">پوزش. صفحه ای که بدنبال آن می گردید موجودنمی باشد.</p>		
            </div>
	<?php endif; ?>
            <div class="page-foot">
            <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
            </div>     
    
    </div>
    </article>
    </div>
    </section>
    <div class="space"></div>

    </div>
    </div>
    <div class="clear"></div>
    </div>
    </div>
</div>
<div class="clear"></div>
<!--end of content-->
<?php get_footer(); ?>
