<?php
/**
 * The template to display the Author bio
 *
 * @package TOURIMO
 * @since TOURIMO 1.0
 */
?>

<div class="author_info author vcard" itemprop="author" itemscope="itemscope" itemtype="<?php echo esc_attr( tourimo_get_protocol( true ) ); ?>//schema.org/Person">

	<div class="author_avatar" itemprop="image">
		<?php
		$tourimo_mult = tourimo_get_retina_multiplier();
		echo get_avatar( get_the_author_meta( 'user_email' ), 120 * $tourimo_mult );
		?>
	</div><!-- .author_avatar -->

	<div class="author_description">
		<h5 class="author_subtitle">
		<?php
			echo esc_html__( 'About Author', 'tourimo');
		?>
		</h5>
		<h5 class="author_title" itemprop="name"><span class="fn"><?php the_author(); ?></span></h5>
		<div class="author_bio" itemprop="description">
			<?php echo wp_kses( wpautop( get_the_author_meta( 'description' ) ), 'tourimo_kses_content' ); ?>
			<div class="author_links">
				<a class="author_link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
													<?php
													// Translators: Add the author's name in the <span>
													printf( esc_html__( 'View all posts by %s', 'tourimo' ), '<span class="author_name">' . esc_html( get_the_author() ) . '</span>' );
													?>
				</a>
				<?php do_action( 'tourimo_action_user_meta', 'author-bio' ); ?>
			</div>
		</div><!-- .author_bio -->

	</div><!-- .author_description -->

</div><!-- .author_info -->
