<?php get_header(); ?>

<?php include('sidebar.php');?>
<div id="container">
       <div class="title"><h3>Son Yazılar</h3></div>
	   <?php if( have_posts() ) : while (have_posts()) : the_post(); ?>
		<div class="entry">
		<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
		<div class="byline">
			<?php the_time(__('F j, Y')); ?>  <?php edit_post_link('Edit', ' &#124; ', ''); ?>  
		</div>
		<?php $resim = resimgoster(); if( $resim != "" ): ?>
		<img src="<?php echo resimgoster() ?>" alt="<?php the_title(); ?>" class="postimg" />
		<?php endif; ?>
		<?php the_excerpt(); ?>
		<p style="clear:both;margin:0;padding:0;"></p>
		</div>
        <?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Eski Yazılar') ?></div>
			<div class="alignright"><?php previous_posts_link('Yeni Yazılar &raquo;') ?></div>
		</div>

	<?php else : ?>

		<h2 class="center">Bulunamadı</h2>
		<p class="center">Üzgünüz, aradığınız şey burada değil.</p>
		<?php get_search_form(); ?>

	<?php endif; ?>
</div>

<?php include('bio.php');?>
<?php include('misc.php');?>

<?php get_footer(); ?>