HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux sci 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: tpdc (1002)
PHP: 7.4.3-4ubuntu2.29
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/nsci/wp-content/themes/soledad/inc/templates/about_author.php
<?php
/**
 * Display detail author of current post
 * Use in single post
 *
 * @since 1.0
 */
$author_id = false;
$author    = get_user_by( 'slug', get_query_var( 'author_name' ) );
if ( $author ) {
	$author_id = $author->ID;
}
$classes   = 'post-author';
$bio_style = get_theme_mod( 'penci_authorbio_style' ) ? get_theme_mod( 'penci_authorbio_style' ) : 'style-1';
$bio_img   = get_theme_mod( 'penci_bioimg_style' ) ? get_theme_mod( 'penci_bioimg_style' ) : 'round';
$classes   .= ' abio-' . $bio_style;
$classes   .= ' bioimg-' . $bio_img;
?>
<div class="<?php echo $classes; ?>">
    <div class="author-img">
		<?php
		echo get_avatar( get_the_author_meta( 'email', $author_id ), '100' );
		?>
    </div>
    <div class="author-content">
        <h5><?php echo penci_get_the_author_posts_link( $author_id ); ?></h5>
        <p><?php the_author_meta( 'description', $author_id ); ?></p>
        <div class="bio-social">
			<?php if ( get_the_author_meta( 'user_url', $author_id ) ) : ?>
                <a <?php echo penci_reltag_social_icons(); ?> target="_blank" class="author-social"
                                                              href="<?php the_author_meta( 'user_url', $author_id ); ?>"><?php penci_fawesome_icon( 'fas fa-globe' ); ?></a>
			<?php endif; ?>
			<?php if ( get_the_author_meta( 'facebook', $author_id ) ) : ?>
                <a <?php echo penci_reltag_social_icons(); ?> target="_blank" class="author-social"
                                                              href="https://facebook.com/<?php echo esc_attr( the_author_meta( 'facebook', $author_id ) ); ?>"><?php penci_fawesome_icon( 'fab fa-facebook-f' ); ?></a>
			<?php endif; ?>
			<?php if ( get_the_author_meta( 'twitter', $author_id ) ) : ?>
                <a <?php echo penci_reltag_social_icons(); ?> target="_blank" class="author-social"
                                                              href="https://twitter.com/<?php echo esc_attr( the_author_meta( 'twitter', $author_id ) ); ?>"><?php penci_fawesome_icon( 'fab fa-twitter' ); ?></a>
			<?php endif; ?>
			<?php if ( get_the_author_meta( 'instagram', $author_id ) ) : ?>
                <a <?php echo penci_reltag_social_icons(); ?> target="_blank" class="author-social"
                                                              href="https://instagram.com/<?php echo esc_attr( the_author_meta( 'instagram', $author_id ) ); ?>"><?php penci_fawesome_icon( 'fab fa-instagram' ); ?></a>
			<?php endif; ?>
			<?php if ( get_the_author_meta( 'pinterest', $author_id ) ) : ?>
                <a <?php echo penci_reltag_social_icons(); ?> target="_blank" class="author-social"
                                                              href="https://pinterest.com/<?php echo esc_attr( the_author_meta( 'pinterest', $author_id ) ); ?>"><?php penci_fawesome_icon( 'fab fa-pinterest' ); ?></a>
			<?php endif; ?>
			<?php if ( get_the_author_meta( 'tumblr', $author_id ) ) : ?>
                <a <?php echo penci_reltag_social_icons(); ?> target="_blank" class="author-social"
                                                              href="https://<?php echo esc_attr( the_author_meta( 'tumblr', $author_id ) ); ?>.tumblr.com/"><?php penci_fawesome_icon( 'fab fa-tumblr' ); ?></a>
			<?php endif; ?>
			<?php if ( get_the_author_meta( 'linkedin', $author_id ) ) : ?>
                <a <?php echo penci_reltag_social_icons(); ?> target="_blank" class="author-social"
                                                              href="<?php echo esc_url( the_author_meta( 'linkedin', $author_id ) ); ?>"><?php penci_fawesome_icon( 'fab fa-linkedin-in' ); ?></a>
			<?php endif; ?>
			<?php if ( get_the_author_meta( 'soundcloud', $author_id ) ) : ?>
                <a <?php echo penci_reltag_social_icons(); ?> target="_blank" class="author-social"
                                                              href="<?php echo esc_url( the_author_meta( 'soundcloud', $author_id ) ); ?>"><?php penci_fawesome_icon( 'fab fa-soundcloud' ); ?></a>
			<?php endif; ?>
			<?php if ( get_the_author_meta( 'youtube', $author_id ) ) : ?>
                <a <?php echo penci_reltag_social_icons(); ?> target="_blank" class="author-social"
                                                              href="<?php echo esc_url( the_author_meta( 'youtube', $author_id ) ); ?>"><?php penci_fawesome_icon( 'fab fa-youtube' ); ?></a>
			<?php endif; ?>
			<?php if ( get_the_author_meta( 'email', $author_id ) && get_theme_mod( 'penci_post_author_email' ) ) : ?>
                <a class="author-social"
                   href="mailto:<?php echo esc_attr( the_author_meta( 'email', $author_id ) ); ?>"><?php penci_fawesome_icon( 'fas fa-envelope' ); ?></a>
			<?php endif; ?>
        </div>
    </div>
</div>