<?php global $lightning_theme_options; ?>
<div class="entry-meta">

<?php 
$post_type_info = lightning_get_post_type();
if ( $post_type_info['slug'] != 'product' && $post_type_info['slug'] != 'forum' ) : ?>

<span class="published entry-meta_items"><?php echo esc_html( get_the_date() ); ?></span>
<?php
// Post update
$meta_hidden_update = ( isset( $lightning_theme_options['postUpdate_hidden'] ) && $lightning_theme_options['postUpdate_hidden'] ) ? ' entry-meta_hidden' : '';
?>

<span class="entry-meta_items entry-meta_updated<?php echo $meta_hidden_update; ?>">/ <?php _e( 'Last updated', 'lightning' ); ?> : <span class="updated"><?php the_modified_date( '' ); ?></span></span>

<?php
// Post author

// For post type where author does not exist
$author = get_the_author();
if ( $author ) {
?>

	<?php
	$meta_hidden_author = ( isset( $lightning_theme_options['postAuthor_hidden'] ) && $lightning_theme_options['postAuthor_hidden'] ) ? ' entry-meta_hidden' : '';
	?>

	<span class="vcard author entry-meta_items entry-meta_items_author<?php echo $meta_hidden_author; ?>"><span class="fn"><?php echo esc_html( $author ); ?></span></span>

<?php } // if ( $author ) { ?>

<?php endif; // if ( get_post_type() != 'product' ) ?>

<?php
$taxonomies	= lightning_get_display_taxonomies();
if ( $taxonomies ) :
	// get $taxonomy name
	// $taxonomy   = key( $taxonomies );
	foreach ( $taxonomies as $key => $value ) {
		$taxonomy = $key;
		break;
	}

	$terms      = get_the_terms( get_the_ID(), $taxonomy );
	$term_url   = esc_url( get_term_link( $terms[0]->term_id, $taxonomy ) );
	$term_name  = esc_html( $terms[0]->name );
	$term_color = '';
	if ( class_exists( 'Vk_term_color' ) ) {
			$term_color = Vk_term_color::get_term_color( $terms[0]->term_id );
			$term_color = ( $term_color ) ? ' style="background-color:' . $term_color . ';border:none;"' : '';
	}
	echo '<span class="entry-meta_items entry-meta_items_term"><a href="' . $term_url . '" class="btn btn-xs btn-primary entry-meta_items_term_button"' . $term_color . '>' . $term_name . '</a></span>';
	endif;
?>

</div>
