<?php
/**
 * @package volta
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<header class="entry-header">
		<?php if( get_theme_mod('volta_show_title_post') == 'yes' ){ the_title( '<h1 class="entry-title">', '</h1>' ); } ?>
		<?php if( get_theme_mod('volta_show_meta_post') == 'yes' ):?>
		<div class="entry-meta">
			<?php volta_posted_on(); ?>
		</div><!-- .entry-meta -->
        <?php endif; ?>
	</header><!-- .entry-header -->
	<div class="single-featured-image">
    <?php 
	if ( has_post_thumbnail() && get_theme_mod('volta_show_featured_post') == 'yes' ) { // check if the post has a Post Thumbnail assigned to it.
	  the_post_thumbnail();
	} 
	?>
    </div>
	<div class="entry-content">
		<?php the_content(); ?>
		<?php
			wp_link_pages( array(
				'before' => '<div class="page-links">' . __( 'Страницы:', 'volta' ),
				'after'  => '</div>',
			) );
		?>
	</div><!-- .entry-content -->

	<footer class="entry-footer">
			<?php
				if( get_theme_mod('volta_show_cats_post') == 'yes' ) :
				/* translators: used between list items, there is a space after the comma */
				$categories_list = get_the_category_list( ' ' );
				if ( $categories_list && volta_categorized_blog() ) :
			?>
			<p class="cat-links">
				<?php printf( __( 'Опубликовано в рубрике %1$s', 'volta' ), $categories_list ); ?>
			</p>
			<?php endif; endif; // End if categories ?>

			<?php
				if( get_theme_mod('volta_show_tags_post') == 'yes' ) :
				/* translators: used between list items, there is a space after the comma */
				$tags_list = get_the_tag_list( '', '' );
				if ( $tags_list ) :
			?>
			<p class="tags-links">
				<?php printf( __( 'Теги %1$s', 'volta' ), $tags_list ); ?>
			</p>
			<?php endif; endif; // End if $tags_list ?>

			<?php edit_post_link( __( 'Редактировать', 'volta' ), '<span class="edit-link">', '</span>' ); ?>
	</footer><!-- .entry-footer -->
</article><!-- #post-## -->
