Viewing File: /home/maglabs/lacentraleit/wp-content/themes/mlab/tmpl/post/content-author.php

<?php
defined( 'ABSPATH' ) or die();

if ( ! ( $author_id = get_the_author_meta( 'ID' ) ) ) {
	$author_id = get_query_var( 'author' );
}

$author_description = get_the_author_meta( 'description', $author_id );
?>

<?php if ( ! empty( $author_description ) ): ?>
<div class="post-author-box" itemprop="author" itemscope="itemscope" itemtype="https://schema.org/Person">
	<?php echo get_avatar( get_the_author_meta( 'ID' ), 100 ); ?>
	<div class="post-author-content">
		<div class="author-data">
			<span><?php esc_html_e( 'Author:', 'mlab' ) ?></span>
			<span class="author-name">
				<?php the_author_posts_link() ?>
			</span>	
		</div>
		<div class="author-description">
			<?php echo mlab_cleanup( $author_description ) ?>
		</div>
	</div>
</div>

<?php endif ?>
Back to Directory File Manager