<!--Header-->
<?php get_header(); ?>
<!--content-->
<div id="contents">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<?php
foreach((get_the_category()) as $category) {
$catzzz = "$category->cat_ID";
if ($catzzz == 1){$titlecolor = "eee";}
elseif ($catzzz == 5){$titlecolor = "d7480f";}
elseif ($catzzz == 10){$titlecolor = "0f0fd7";}
else {$titlecolor = "000";}
}
?>
<div class="content">
<h3 class="ncontent" style="color:#<?php echo "$titlecolor";?>!important"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?>
</a></h3>
<div class="mcontent">
<div class="icontent">
<?php
if(has_post_thumbnail()):
the_post_thumbnail('film_thumbs');
endif;
?>
</div>
<div class="tcontent">
<?php the_excerpt(); ?>
</div>
</div>
<div class="hcontent">
<div class="ucontent"> <span>
<h3>
<?php the_author(); ?>
</h3>
<br>
<div class="avataruser"> <?php echo get_avatar(get_the_author_meta('user_email'), '80', ''); ?> </div>
<div class="user">
<?php the_author_description(); ?>
</div>
</span> </div>
<div class="dcontent"> <span> تاریخ انشار:
<?php the_time('d / m / y') ?>
</span> </div>
<div class="ccontent"> <span> موضوع:
<?php the_Category(' , '); ?>
</span> </div>
<div class="cocontent"> <span>
<?php comments_popup_link(); ?>
</span> </div>
</div>
<div class="more"> <a href="<?php the_permalink() ?>" class="more-link">ادامه مطلب</a> </div>
</div>
<?php endwhile; ?>
<?php else : ?>
<h4 style="
font:13px 'Roya';border:solid 1px #FF0000; width:300px; text-align:center;margin:15px auto 0; background:#ff9094;border-radius:3px;
line-height:25px;
">مطلبی موجو نیست!</h4>
<?php endif; ?>
<div class="wp-page">
<?php getpagenavi(); ?>
</div>
</div>
<!--/content-->
<!--sidbar-->
<?php get_sidebar(); ?>
<!--/sidbar-->
</div>
<?php get_footer(); ?>