<?php
/**
 * Author Info Box.
 *
 * @package Ef Practical
 */

global $post;
$post_author = $post->post_author;
$url = '';

?>

<div class="author-info">
    
    <div class="author-img">
        <?php echo get_avatar( get_the_author_meta( 'user_email' ), 80 ); ?>
    </div>
    
    <div class="author-name">
        <?php the_author_posts_link(); ?>
    </div>
    
    <?php if ( get_the_author_meta( 'description' ) ) : ?>
        <div class="author-desc">
            <p><?php the_author_meta( 'description' ); ?></p>
        </div>
    <?php endif ?>
	
	<?php if ( $url = get_the_author_meta( 'url', $post_author ) ) : ?>
	<div class="author-social">
		<a class="social-icon globe" href="<?php echo esc_url( $url ); ?>" rel="nofollow"><i class="fa fa-globe"></i><span></span></a>
	</div>
	<?php endif ?>
    
</div>