<?php
/**
 * The template used for displaying page content in page.php
 */
$page_class  = 'top'; // Help to force consistency for plugins like bbPress using in non-page context
$page_class .= get_post_meta( $post->ID, '_tb_title', true ) != 'hide' ? ' has-title' : ' no-title';
$page_class .= get_the_content() ? ' has-content' : ' no-content';
?>
<article id="post-<?php the_ID(); ?>" <?php post_class($page_class); ?>>

	<?php if ( ! themeblvd_get_att('epic_thumb') && get_post_meta( get_the_ID(), '_tb_title', true ) != 'hide' ) : ?>
		<header class="entry-header">
			<h1 class="entry-title"><?php the_title(); ?></h1>
		</header><!-- .entry-header -->
	<?php endif; ?>

	<?php if ( has_post_thumbnail() && themeblvd_get_att('thumbs') && ! themeblvd_get_att('epic_thumb') ) : ?>
		<div class="featured-item featured-image standard">
			<?php themeblvd_the_post_thumbnail(); ?>
		</div><!-- .featured-item(end) -->
	<?php endif; ?>

	<div class="entry-content clearfix">
		<?php the_content(); ?>
		<?php edit_post_link( themeblvd_get_local( 'edit_page' ), '<p class="edit-link">', '</p>' ); ?>
	</div><!-- .entry-content -->

	<?php wp_link_pages( array( 'before' => '<div class="page-link">' . themeblvd_get_local('pages').': ', 'after' => '</div>' ) ); ?>

</article><!-- #post-<?php the_ID(); ?> -->
