<?php get_header(); ?>
<div id="contentwrapper"><div id="content">
<div class="adsense_top"><?php include (TEMPLATEPATH . '/adsense_top.php'); ?></div>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // hek. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pageTitle">‘<?php single_cat_title(); ?>’ Kategorisinin Arşivi</h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="pageTitle">Etiket Arşivi: ‘<?php single_tag_title(); ?>’</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pageTitle">Arşiv: <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pageTitle">Arşiv: <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pageTitle">Arşiv: <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pageTitle">Yazar Arşivi</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pageTitle">Blog Arşivi</h2>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<h2 class="postTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<div class="postMeta">
<span class="date"><?php the_time('M.d, Y') ?></span> in
<span class="filed"><?php the_category(', '); ?></span>
<span class="commentcount"><?php comments_popup_link('Yorum Yaz', '1 Yorum', '% Yorum'); ?></span>
</div>
<div class="postContent"><?php the_excerpt('(Devamını Oku...)'); ?></div>
<div class="postMeta"><span class="tags"><?php the_tags('Etiketler: ', ', ', ''); ?></span></div>
</div> <!-- Closes Post -->
<?php endwhile; ?>
<div id="nextprevious">
<center><?php wp_pagenavi(); ?></center>
</div>
<div class="cleared"></div>
<?php else : ?>
<div class="post">
<h2 class="postTitle">Bulunamadı</h2>
<p>Aradığınız şey bulunamadı.</p>
</div> <!-- Closes Post -->
<?php endif; ?>
</div></div> <!-- Closes Content -->
<?php get_sidebar(); ?>
<div class="cleared"></div>
</div> <!-- Closes Main -->
<div class="bottomcurvewhite"></div>
<?php get_footer(); ?>