<?php $size = 'bdaia-block11'; ?>
<?php $post_reviews = get_post_meta( get_the_ID(), 'bdaia_taqyeem', true ); ?>
<div class="block-article bd-col-md-6 bdaiaFadeIn">
	<article <?php woohoo_post_class(); ?>>
		<div class="block-article-img-container">
			<?php echo woohoo_icon_video_play(); ?>
			<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $size ); ?></a>
		</div>
		<div class="block-article-content-wrapper">
			<header>
				<div class="block-info-cat"><?php echo woohoo_custom_primary_category(); ?></div>
				<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><span><?php the_title(); ?></span></a></h2>
			</header>
            <footer>
				<?php if ( $post_reviews ) { ?>
                    <div class="bdaia-post-rating"><?php echo woohoo_final_score(); ?></div>
				<?php } else { ?>
                    <div class="bdaia-post-author-name">
						<?php woohoo_lang_e( 'By' ); ?>&nbsp;<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) )?>" title=""><?php echo get_the_author() ?> </a>
                    </div>
                    <div class="bdaia-post-date"><?php woohoo_get_time(); ?></div>
				<?php } ?>
            </footer>
			<p class="block-exb"><?php echo woohoo_cl( get_the_excerpt() , '124' ) ?></p>
		</div>
	</article>
</div>