<!-- start blog item -->
<article <?php post_class('data'); ?> id="post-<?php the_ID() ?>">

	<!-- start content -->
	<?php if (is_home() || is_search() || is_archive()): ?>
	<div class="post-content">	
		<div class="blog-date">
			<span class="span-day"><?php echo get_the_time('d');?></span>
			<span class="span-month"><?php echo get_the_time('M');?></span>
		</div>
		<?php if (function_exists('printLikes')) { ?>
		<div class="kk-likes">
			<?php printLikes(get_the_ID()); ?>
		</div>
		<?php } ?>
	</div>
	<?php endif; ?>
	
	<div class="blog-content">
		<?php 
		$quoteLink = get_post_meta($post->ID, '_post_quote_source_value', true);
		$quoteText = get_post_meta($post->ID, '_post_quote_value', true);
		?>
		
		<?php if ( !empty( $quoteText ) ) : ?>
			<h2 class="quote-text">
				&ldquo;<?php echo esc_html( $quoteText ); ?>&rdquo;
			</h2>		
		<?php endif; ?>
		
		<?php if ( !empty($quoteLink) ) : ?>
			<span class="quote-source">
				&mdash;&nbsp;<?php echo wp_kses_post($quoteLink) ?>
			</span>
		<?php endif; ?>
		
		<div class="blog-entry">
			<?php the_content() ?>
		</div>
		
	</div>
	
</article>
<!-- end blog item -->