<?php
/**
 * The template for displaying all pages.
 *
 * @package Kage
 */
 get_header(); ?>
 <?php while (have_posts()) : the_post(); ?>
 		<div id="content">
			<div class="pagetitle pagetitle_blog">
				<div class="container">
					<div class="gutter clearfix">
						<h5><?php _e( 'Блог', 'kage' ); ?></h5>
					</div>
				</div>	
			</div>
			<div class="container">
				<div class="sidebar_right clearfix">
					<section class="pagesection">
						<div class="gutter">
							<article class="singlepost clearfix">
								<h2><?php if(get_the_title($post->ID)) { the_title(); } else { the_time( get_option( 'date_format' ) ); } ?></h2>
								<hr />
								<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
							     	<?php the_post_thumbnail($post->ID, 'featured'); ?>
								<?php endif; ?>
								<p class="posted"><?php _e( 'Опубликовано', 'kage' ); ?> <?php the_time( get_option( 'date_format' ) ); ?></p>
								<?php the_content(); ?>
								<div class="clear"></div>
								<p class="meta_tags"><?php _e( 'Рубрики:', 'kage' ); ?> <?php the_category(', '); ?></p>
								<p class="meta_tags"><?php the_tags(); ?></p>
								<hr class="space25">
								<p><?php posts_nav_link(); ?></p>
								<?php comments_template(); ?>
								<?php kage_paginate_page(); ?> 
							</article>
						</div>
					</section>
					<?php  get_sidebar(); ?>
				</div>
			</div>
		</div>
<?php endwhile; ?>
<?php get_footer(); ?>