<?php get_header(); ?>

<div id="content">                 
<div id="contentmiddle3">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="sm"><?php _e('You are here:', 'ines') ?> <a href="/"><?php _e('Home', 'ines') ?></a> &raquo; <?php the_title(); ?></div>
<div class="sl"></div>

<h1 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h1>

<div class="smeta">
<?php if ( get_the_author_meta( 'description' ) ) :  ?>
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'author_bio_avatar_size', 20 ) ); ?>
</div>
<?php endif; ?><?php _e('by', 'ines') ?> <?php the_author() ?><?php edit_post_link(' | Edit','',''); ?>
</div>
	
<div class="entry">
<?php the_content(__('Read more'));?>
<div class="clearfix"></div><hr class="clear" />
<?php wp_link_pages('before=<p><strong>Pages:</strong> &after=</p>&next_or_number=number'); ?>
</div>
<div class="clearfix"></div>

<div class="postspace"></div>

<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>

</div>
<?php get_template_part('bar'); ?>
</div>
</div>
<?php get_footer(); ?>