<?php get_header(); ?>
<div id="onsayfa">
<div id="container">
<div class="katbaslik">
<h2><?php single_cat_title(); ?></h2>
</div>
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<div class="info">
<div class="posthumb"><?php echo tj_thumbnail(); ?></div>
<h2>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2>
<div class="infodata" style="background: url(<?php bloginfo('template_url'); ?>/images/tarih.png) left no-repeat;"><?php the_time('d F Y'); ?> tarihinde</div>
<div class="infodata" style="background: url(<?php bloginfo('template_url'); ?>/images/yazar.png) left no-repeat;"><?php the_author(); ?> tarafından gönderilmiş</div>
<div class="infodata" style="background: url(<?php bloginfo('template_url'); ?>/images/hit.png) left no-repeat;"><?php if(function_exists('the_views')) { the_views(); } ?> kez görüntülenmiş</div>
<div class="infodata" style="background: url(<?php bloginfo('template_url'); ?>/images/yorum.png) left no-repeat;"><?php comments_popup_link( __( 'Yorum yap', 'portal' ), __( '1 Yorum Yapılmış', 'portal' ), __( '% Yorum Yapılmış', 'portal' ) ); ?></div>
</div>
<?php endwhile; ?>
<div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
</div>
<?php else : ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php _e('Not Found'); ?></h2>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
</div>
</body>
</html>