<?php
get_header(); ?>
 <div class="container">	

<div class="content-ins">
<div class="posts">
	
	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>		
		
			<h2>
				<?php if (trim(get_the_title()) != '') { the_title(); } else  _e('No title', 'parallax'); ?>
			</h2>
			
			<div class="entry-meta">
			<?php _e('By', 'parallax'); ?> <?php the_author_link(); ?> | 
		     <?php _e('On', 'parallax'); ?> <?php the_time('j F Y'); ?> | 
			<?php the_category(', '); ?> | 
			<?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?>			
	        </div>			
	
			<div class="entry">
		        <div class="entry-thumbnail">
			        <?php if ( has_post_thumbnail() ) ?>
                <?php the_post_thumbnail('thumb-feature');?>
		        </div>
<div class="clear"></div>
				<?php the_content(); ?>
				<?php
				$tag_list = get_the_tag_list( '', __( ', ', 'parallax' ) );
	if ( $tag_list ) {?>
		<?php _e('Tags', 'parallax'); ?>: <?php echo '<span class="tags-links">' . $tag_list . '</span>';
	}?>
				<div class="clearboth"> </div>
			</div> <!-- entry-->
			
				 <div class="full-post-pages"><?php wp_link_pages(); ?></div> 
	     
			<div class="clearboth"> </div>
	
			<div class="post-nav">
			<div class="post-nav-l"><?php previous_post_link(__('&larr; %link', '<span class="meta-nav">' . '</span> %title', 'parallax')); ?></div>
			<div class="post-nav-r"><?php next_post_link( __('%link &rarr;', '%title <span class="meta-nav">' . '</span>' , 'parallax')); ?></div>
				</div>
				<div class="clear"></div>
			<?php comments_template( '', true ); ?>	

	<?php endwhile; else: ?>
	
			<div class="no-posts"><?php _e( 'Sorry, no posts matched your criteria.', 'parallax' );?></div>
	
	<?php endif; ?>
	
</div> <!-- posts-->
<div class="bottom-widget">
<div class="sb-right">
    <?php if ( is_active_sidebar( 'sidebar-posts' ) ) : ?>
	    <?php dynamic_sidebar( 'sidebar-posts' ); ?>
    <?php endif; ?>
</div>
</div>
	<div class="clear"></div>
	<?php 
	include get_template_directory() . '/featured-posts.php'; ?>
	<div class="clearfix"></div>		


</div><!--conten-ins -->
</div>
	<div class="clear"> </div>
<?php get_footer(); ?>