| Server IP : 149.28.60.191 / Your IP : 216.73.217.128 Web Server : nginx/1.31.1 System : Linux vultr.guest 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mda ( ) PHP Version : 7.4.33 Disable Function : getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,shell_exec,dl,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mda/webapps/mda-restore/wp-content/themes/Avada/templates/ |
Upload File : |
<?php // phpcs:disable WPThemeReview.Templates.ReservedFileNamePrefix
/**
* Author-info template.
*
* @author ThemeFusion
* @copyright (c) Copyright by ThemeFusion
* @link https://theme-fusion.com
* @package Avada
* @subpackage Core
*/
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
?>
<?php
$social_icons = fusion_get_social_icons_class();
// Initialize needed variables.
$author = get_user_by( 'id', get_query_var( 'author' ) );
$author_id = (int) $author->ID;
$author_name = get_the_author_meta( 'display_name', $author_id );
$author_avatar = get_avatar( get_the_author_meta( 'email', $author_id ), '82' );
$author_description = get_the_author_meta( 'description', $author_id );
$author_custom = get_the_author_meta( 'author_custom', $author_id );
// If no description was added by user, add some default text and stats.
if ( empty( $author_description ) ) {
$author_description = esc_html__( 'This author has not yet filled in any details.', 'Avada' );
/* translators: %1$s: Username. %2$s: Number. */
$author_description .= '<br />' . sprintf( esc_html__( 'So far %1$s has created %2$s blog entries.', 'Avada' ), $author_name, count_user_posts( $author_id ) );
}
?>
<div class="fusion-author">
<div class="fusion-author-avatar">
<?php echo $author_avatar; // phpcs:ignore WordPress.Security.EscapeOutput ?>
</div>
<div class="fusion-author-info">
<h3 class="fusion-author-title<?php echo ( Avada()->settings->get( 'disable_date_rich_snippet_pages' ) && Avada()->settings->get( 'disable_rich_snippet_author' ) ) ? ' vcard' : ''; ?>">
<?php
printf(
/* translators: The user. */
esc_html__( 'About %s', 'Avada' ),
( Avada()->settings->get( 'disable_date_rich_snippet_pages' ) && Avada()->settings->get( 'disable_rich_snippet_author' ) ) ? '<span class="fn">' . esc_attr( $author_name ) . '</span>' : esc_attr( $author_name )
);
?>
<?php // If user can edit his profile, offer a link for it. ?>
<?php if ( current_user_can( 'edit_users' ) || get_current_user_id() === $author_id ) : ?>
<span class="fusion-edit-profile">(<a href="<?php echo esc_url_raw( admin_url( 'profile.php?user_id=' . $author_id ) ); ?>"><?php esc_attr_e( 'Edit profile', 'Avada' ); ?></a>)</span>
<?php endif; ?>
</h3>
<?php echo $author_description; // phpcs:ignore WordPress.Security.EscapeOutput ?>
</div>
<div style="clear:both;"></div>
<div class="fusion-author-social clearfix">
<div class="fusion-author-tagline">
<?php if ( $author_custom ) : ?>
<?php echo $author_custom; // phpcs:ignore WordPress.Security.EscapeOutput ?>
<?php endif; ?>
</div>
<?php
// Get the social icons for the author set on his profile page.
$author_social_icon_options = [
'authorpage' => 'yes',
'author_id' => $author_id,
'position' => 'author',
'icon_colors' => Avada()->settings->get( 'social_links_icon_color' ),
'box_colors' => Avada()->settings->get( 'social_links_box_color' ),
'icon_boxed' => Avada()->settings->get( 'social_links_boxed' ),
'icon_boxed_radius' => Fusion_Sanitize::size( Avada()->settings->get( 'social_links_boxed_radius' ) ),
'tooltip_placement' => Avada()->settings->get( 'social_links_tooltip_placement' ),
'linktarget' => Avada()->settings->get( 'social_icons_new' ),
];
echo fusion_library()->social_sharing->render_social_icons( $author_social_icon_options ); // phpcs:ignore WordPress.Security.EscapeOutput
?>
</div>
</div>