<?php
/**
 * The default template for displaying content
 *
 * Used for both single and index/archive/search.
 *
 * @package CMSSuperHeroes
 * @subpackage CMS Theme
 * @since 1.0.0
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class('col-md-6 cms-blog-item wow fadeIn pb-70 clearfix'); ?>>
	<?php
		if (get_post_format(get_the_ID()) == 'link') {
			haswell_archive_audio('soundcloud', false);
		}
		else { ?>
			<div class="entry-feature entry-feature-image mb-30">
				<?php the_post_thumbnail( 'full' ); ?>
			</div>
		<?php
		}
	?>
	<header class="entry-header">
		<h3 class="entry-title">
	    	<a href="<?php the_permalink(); ?>">
	    		<?php
		    		if(is_sticky()){
		                echo "<i class='fa fa-thumb-tack'></i>";
		            }
		    	?>
	    		<?php the_title(); ?>
	    	</a>
	    </h3>
	</header>
	<div class="entry-meta mb-20">
		<?php haswell_archive_detail(); ?>
	</div>
	<div class="entry-content">
		<?php the_excerpt();
    		wp_link_pages( array(
        		'before'      => '<div class="pagination loop-pagination"><span class="page-links-title">' . esc_html__( 'Pages:','haswell') . '</span>',
        		'after'       => '</div>',
        		'link_before' => '<span class="page-numbers">',
        		'link_after'  => '</span>',
    		) );
		?>
	</div>
	<!-- .entry-content -->
	<footer class="entry-footer">
	    <?php haswell_archive_readmore(); ?>
	    <!-- .readmore link -->
	</footer>
	<!-- .entry-footer -->
</article>
<!-- #post -->