<?php 
/* 
 * used to display blog posts items in archives and listings 
 *
 * need to be called within the loop
 */
 ?>	
<?php 
$caticoncolor="";
$category_icon_code ="";
$category_icon="";
$category_icon_color="";
?> 
<div class="blogPost">
	<div class="blog-post-head">
		<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
		<p>
			<i class="fa fa-user"></i>
			<span><?php esc_html_e( 'Posted By', 'classiera' ); ?>:</span>
			<strong><?php the_author(); ?></strong>
			<i class="fa fa-calendar-o"></i>
			<?php $dateFormat = get_option( 'date_format' );?>
			<span><?php echo get_the_date($dateFormat, $post_id); ?></span>			
			<i class="fa fa-comments"></i>
			<span><?php esc_html_e( 'Comments', 'classiera' ); ?></span>
			<strong><?php echo comments_number(); ?></strong>
		</p>
	</div><!--blog-post-head -->
	<?php 
	
		//display featured image if any
		if ( has_post_thumbnail() ){?>
	<div class="blog-media">
		<?php the_post_thumbnail('large'); ?>
	</div><!--blog-media -->
		<?php } ?>
	<div class="blog-post-desc">
		<?php the_excerpt(); ?>
		<p><a href="<?php the_permalink(); ?>" class="button round"><?php esc_html_e( 'Read More', 'classiera' ); ?></a></p>
		<div class="share">
			<div class="row collapse">
				<div class="large-6 medium-6 columns">
					<div class="tags">
						<span class="shareIcon"><i class="fa fa-tags"></i><?php esc_html_e( 'Tags', 'classiera' ); ?> : </span>						
						<?php echo get_the_term_list( $post->ID, 'post_tag', '<ul class="inline-list"><li>', '</li><li>', '</li></ul>' ); ?>
					</div><!--tags -->
				</div><!--large-6 medium-6 columns -->
				<div class="large-6 medium-6 columns line">
					<span class="shareIcon">
						<i class="fa fa-share-alt"></i>
						<?php esc_html_e( 'Share', 'classiera' ); ?>&nbsp;:&nbsp;
					</span>
					<ul class="rrssb-buttons inline-list">
						<li class="rrssb-facebook">
							<a href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>" class="popup">
								<i class="fa fa-facebook"></i>
							</a>
						</li>
						<li class="rrssb-twitter">
							<a href="https://twitter.com/intent/tweet?text=<?php the_permalink(); ?>"
								class="popup">
								<i class="fa fa-twitter"></i>
							 </a>
						</li>
						<li class="rrssb-googleplus">                                    
							<a href="https://plus.google.com/share?url=<?php the_permalink(); ?>" class="popup">
								  <i class="fa fa-google-plus"></i>
							</a>
						</li>
					</ul>
				</div><!--large-6 medium-6 columns -->
			</div><!--row -->
		</div><!--share --> 
	</div><!--blog-post-desc -->
</div><!--blogPost -->