<?php get_header(); ?>
<div id="content">
<div id="beforeCategory">
<script>var stage = new swiffy.Stage(document.getElementById("beforeCategory"), swiffyobject);</script>
<script>stage.start();</script>
</div>
<div class="entryCategoryAll">
<!--<?php if (is_category()) { ?><h2 class="arh"><?php _e('', 'themezee_lang'); ?> <?php echo single_cat_title(); ?></h2>-->
<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?><h2 class="arh"><?php _e('Archives', 'themezee_lang'); ?></h2><?php } ?>
<!--------- SUB CAT ------->
<?php
if (is_category()) {
$this_category = get_category($cat);
if (get_category_children($this_category->cat_ID) != "")
{ echo "<ul>"; wp_list_categories('orderby=id&show_count=0&title_li=&use_desc_for_title=1&child_of='.$this_category->cat_ID); echo "</ul>"; }}
?>
<!--------- END SUB CAT ------->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!--<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>-->
<div class="entryCategory">
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail('thumbnail', array('class' => 'alignright')); ?></a>
<!--<?php the_content('<span class="moretext">' . __('Read more', 'themezee_lang') . '</span>'); ?>
<div class="clear"></div>
<?php wp_link_pages(); ?>-->
</div>
<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { // if PageNavi is activated ?>
<div class="more_posts">
<?php wp_pagenavi(); ?>
</div>
<?php } else { // Otherwise, use traditional Navigation ?>
<div class="more_posts">
<span class="post_links"><?php next_posts_link(__('« Older Entries', 'themezee_lang')) ?> <?php previous_posts_link (__('Recent Entries »', 'themezee_lang')) ?></span>
</div>
<?php }?>
<?php endif; ?>
</div></div>
</div>
<?php get_footer(); ?>