| Server IP : 68.178.247.200 / Your IP : 216.73.217.131 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/x9dppmxs4rgd/public_html/wp-content/themes/grace-church/templates/_parts/ |
Upload File : |
<?php
//===================================== Post author info =====================================
if (grace_church_get_custom_option("show_post_author") == 'yes') {
$post_author_name = $post_author_socials = '';
$show_post_author_socials = false;
if ($post_data['post_type']=='post') {
$post_author_title = esc_html__('About author', 'grace-church');
$post_author_name = $post_data['post_author'];
$post_author_url = $post_data['post_author_url'];
$post_author_email = get_the_author_meta('user_email', $post_data['post_author_id']);
$post_author_avatar = get_avatar($post_author_email, 75*min(2, max(1, grace_church_get_theme_option("retina_ready"))));
$post_author_descr = grace_church_do_shortcode(nl2br(get_the_author_meta('description', $post_data['post_author_id'])));
if ($show_post_author_socials) $post_author_socials = grace_church_show_user_socials(array('author_id'=>$post_data['post_author_id'], 'size'=>'tiny', 'echo' => false));
}
if (!empty($post_author_name)) {
?>
<section class="post_author author vcard" itemprop="author" itemscope itemtype="http://schema.org/Person">
<div class="post_author_avatar"><a href="<?php echo esc_url($post_data['post_author_url']); ?>" itemprop="image"><?php echo ($post_author_avatar); ?></a></div>
<h4 class="post_author_title"><span itemprop="name"><a href="<?php echo esc_url($post_author_url); ?>" class="fn"><?php echo ($post_author_name); ?></a></span></h4>
<div class="post_author_about"><span><?php echo esc_html($post_author_title); ?></span></div>
<div class="post_author_info" itemprop="description"><?php echo ($post_author_descr); ?></div>
<?php if ($post_author_socials!='') echo ($post_author_socials); ?>
</section>
<?php
}
}
?>