<?php
/**
 * The default template for displaying content of posts in a blogroll.
 */
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(themeblvd_get_att('class')); ?>>

	<?php if ( ! has_post_format('quote') ) : ?>
		<header class="entry-header">

			<?php if ( ! has_post_format('aside') ) : ?>
				<h1 class="entry-title">
					<?php themeblvd_the_title(); ?>
				</h1>
			<?php endif; ?>

			<?php if ( themeblvd_get_att('show_meta') ) : ?>
				<div class="meta-wrapper">
					<?php themeblvd_blog_meta(); ?>
				</div><!-- .meta-wrapper (end) -->
			<?php endif; ?>

		</header><!-- .entry-header -->
	<?php endif; ?>

	<?php if ( has_post_format('gallery') ) : ?>

		<div class="featured-item featured-gallery popout">
			<?php themeblvd_gallery_slider(); ?>
		</div><!-- .featured-gallery (end) -->

	<?php elseif ( has_post_format('video') ) : ?>

		<div class="featured-item featured-video popout">
			<?php themeblvd_content_video(); ?>
		</div><!-- .featured-video (end) -->

	<?php elseif ( has_post_format('audio') ) : ?>

		<div class="featured-item featured-audio popout">
			<?php themeblvd_content_audio(); ?>
		</div><!-- .featured-audio (end) -->

	<?php elseif ( has_post_format('quote') ) : ?>

		<?php if ( themeblvd_get_att('show_meta') ) : ?>
			<header class="entry-header quote">
				<div class="meta-wrapper">
					<?php themeblvd_blog_meta(); ?>
				</div><!-- .meta-wrapper (end) -->
			</header><!-- .entry-header -->
		<?php endif; ?>

		<div class="featured-item featured-quote bg-primary has-link popout">
			<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
				<?php themeblvd_content_quote(); ?>
			</a>
		</div><!-- .featured-quote (end) -->

	<?php elseif ( has_post_thumbnail() && themeblvd_get_att('thumbs') ) : ?>

		<div class="featured-item featured-image popout standard">
			<?php themeblvd_the_post_thumbnail(); ?>
		</div><!-- .featured-item (end) -->

	<?php endif; ?>

	<?php if ( ! has_post_format('quote') ) : ?>
		<div class="entry-content clearfix">
			<?php themeblvd_blog_content( themeblvd_get_att('content') ); // Abide by relevant excerpt vs content theme option ?>
		</div><!-- .entry-content -->
	<?php endif; ?>

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