<?php get_header(); ?>
		<div class="col-md-9" id="kt-transition">
			<div id="kt-article">
			  <?php while ( have_posts() ) : the_post(); ?>
				<h1 id="kt-article-title">
                <?php 
						$photographer_thetitle = get_the_title($post->ID);
						$photographer_origpostdate = get_the_date(get_option('date_format'), $post->post_parent);
						$photographer_dateline = $photographer_origpostdate.' ';
						if($photographer_thetitle==null):
                            echo $photographer_origpostdate;
                        else:
						    the_title();                     
						endif;
					?>
                </h1>
				<?php the_content();?>
				<div class="clearfix"></div>
				<div id="kt-categories"><div class="glyphicon glyphicon-th-list" id="kt-categories-icon" ></div><?php echo get_the_category_list(',', _e( ' ','photographer' )); ?></div>
				<p><?php if(has_tag()){?>
                <span class="glyphicon glyphicon-tags"></span>
                <?php }?>
                <span id="kt-tags"><?php the_tags('', ' ,', '<br />'); ?></span></p>
				<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Страницы:', 'photographer' ) . '</span>', 'after' => '</div>' ) ); ?>
				<div class="clearfix"></div>
				<?php comments_template( '', true ); ?>
				<?php endwhile; ?>
			 </div>
		</div>	  
	</div>
</div>
<?php get_footer(); ?>   