<?php
	$user_info = get_userdata(get_the_author_meta( 'ID' ));
	$size_author = 100;

?>
<div class="author-box"> <!-- About the Post Author -->
	<div class="section-title">
		<h4 class="title"><?php rst_the_translate('About The Author','translation_author') ?></h4>
	</div>
	<div class="text-center">
		<?php echo get_avatar( get_the_author_meta( 'ID' ), $size_author ); ?>
		<h4><?php echo (is_object($user_info) && !empty($user_info->display_name)) ? esc_html($user_info->display_name) : '' ?></h4> <!-- Author name -->
		<?php echo apply_filters('the_content', get_the_author_meta( 'description', get_the_author_meta( 'ID' ) )); ?>
		<ul class="list-inline social reverse"><!-- Social Share -->
			<?php if( rs::getField('rst_user_facebook','user_'.get_the_author_meta( 'ID' )) ) { ?>
			<li><a class="rst-icon-facebook" target="_blank" href="<?php echo rs::getField('rst_user_facebook','user_'.get_the_author_meta( 'ID' )) ?>"><i class="fa fa-facebook"></i></a></li>
			<?php } ?>
			<?php if( rs::getField('rst_user_twitter','user_'.get_the_author_meta( 'ID' )) ) { ?>
			<li><a class="rst-icon-twitter" target="_blank" href="<?php echo rs::getField('rst_user_twitter','user_'.get_the_author_meta( 'ID' )) ?>"><i class="fa fa-twitter"></i></a></li>
			<?php } ?>
			<?php if( rs::getField('rst_user_google','user_'.get_the_author_meta( 'ID' )) ) { ?>
			<li><a class="rst-icon-google-plus" target="_blank" href="<?php echo rs::getField('rst_user_google','user_'.get_the_author_meta( 'ID' )) ?>"><i class="fa fa-google-plus"></i></a></li>
			<?php } ?>
			<?php if( rs::getField('rst_user_dribbble','user_'.get_the_author_meta( 'ID' )) ) { ?>
			<li><a class="rst-icon-dribbble" target="_blank" href="<?php echo rs::getField('rst_user_dribbble','user_'.get_the_author_meta( 'ID' )) ?>"><i class="fa fa-dribbble"></i></a></li>
			<?php } ?>
			<?php if( rs::getField('rst_user_pinterest','user_'.get_the_author_meta( 'ID' )) ) { ?>
			<li><a class="rst-icon-pinterest" target="_blank" href="<?php echo rs::getField('rst_user_pinterest','user_'.get_the_author_meta( 'ID' )) ?>"><i class="fa fa-pinterest"></i></a></li>
			<?php } ?>
		</ul>
	</div>
</div>