<div class="blog-post" id="post-<?php the_ID(); ?>">
	<div class="row secBg">
		<div class="large-12 columns">
			<div class="blog-post-heading">
				<h3>
					<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
				</h3>
				<p>
					<?php $user_ID = $post->post_author; ?>
					<span>
						<i class="fa fa-user"></i>
						<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php echo get_the_author_meta('display_name', $user_ID ); ?></a>
					</span>
					<?php $beTubedateFormat = get_option( 'date_format' );?>
					<span><i class="fa fa-clock-o"></i><?php echo get_the_date($beTubedateFormat, $post->ID); ?></span>
					<span><i class="fa fa-eye"></i><?php echo betube_get_post_views(get_the_ID()); ?></span>
					<span><i class="fa fa-commenting"></i><?php echo comments_number(); ?></span>
				</p>
			</div><!--blog-post-heading-->
			<div class="blog-post-content">
				<?php
				if ( has_post_thumbnail()) {
					global $redux_demo;
					$betube_img_opti = $redux_demo['betube_img_opti'];
					if($betube_img_opti == true){
						$thumbURL = get_the_post_thumbnail_url($post->ID, 'betube-thumbnail');
					}else{
						$thumbURL = get_the_post_thumbnail_url();
					}				
					if(empty($thumbURL)){
						$thumbURL = betube_thumb_url($post->ID);
					}				
					$altTag = betube_thumb_alt($post->ID);
					if(!empty($thumbURL)){
					?>
					<div class="blog-post-img">
						<img src="<?php echo esc_url($thumbURL); ?>" alt="<?php echo esc_attr($altTag); ?>"/>
					</div><!--blog-post-img-->
					<?php } ?>
				<?php } ?>
				<p><?php echo substr(get_the_excerpt(), 0,320); ?></p>
				<a class="blog-post-btn" href="<?php the_permalink(); ?>"><?php esc_html_e( 'Read More', 'betube' ); ?></a>
			</div><!--blog-post-content-->
		</div><!--large-12-->
	</div><!--row-->
</div><!--blog-post -->