<div class="entry-meta">

	<?php if( ( get_theme_mod('single-author-avatar-on', true) == true ) || ( get_theme_mod('single-author-name-on', true) == true ) ) : ?>

		<span class="entry-author">
			
			<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>" target="_blank">

				<?php 
					if( get_theme_mod('single-author-avatar-on', true) == true ) :
						echo get_avatar( get_the_author_meta( 'ID' ), 80 );
					endif; 
				?>

				<?php 
					if( get_theme_mod('single-author-name-on', true) == true ) : 
						echo get_the_author_meta('nickname'); 
					endif; 
				?>

			</a>

		</span><!-- .entry-author -->

	<?php endif; ?>

	<?php
		global $post;	

		$entry_source = get_post_meta($post->ID, 'entry_source', true);

		$entry_source_link = get_post_meta($post->ID, 'entry_source_link', true);				
		
		if ( ( get_theme_mod('single-source-on', true) == true ) && ( !empty($entry_source) ) ): 

	?>

		<span class="entry-source">
			来源: 
			<?php if (!empty($entry_source_link)) { ?>
				<a href="<?php echo esc_url($entry_source_link); ?>" target="_blank" rel="nofollow"><?php echo $entry_source; ?></a>
			<?php } else { ?>
				<?php echo $entry_source; ?>
			<?php } ?>
		</span><!-- .entry-date -->

	<?php endif; ?>		

	<?php if( get_theme_mod('single-date-on', true) == true ) : ?>

		<span class="entry-date">
			<?php echo esc_html(get_the_date()); ?> <?php the_time( 'G:i' ); ?>
		</span><!-- .entry-date -->

	<?php endif; ?>

	<?php if( get_theme_mod('single-view-on', true) == true ) : ?>
		<span class="entry-views"><?php echo daohang_get_post_views(get_the_ID()); ?></span>
	<?php endif; ?>	

	<?php if( get_theme_mod('single-comment-on', true) == true ) : ?>
		<span class="entry-comment"><?php comments_popup_link( esc_html__('评论(0)','daohang'), esc_html__('评论(1)', 'daohang'), esc_html__('评论(%)', 'daohang'), 'comments-link', esc_html__('评论关闭', 'daohang'));?></span>
	<?php endif; ?>

	<?php if( get_theme_mod('single-share-on', true) == true ) : ?>

	<span class="custom-share">
		<span class="social-share" data-sites="wechat, weibo, qq, qzone"></span>
	</span>	
	
	<?php endif; ?>

</div><!-- .entry-meta -->