<?php /** * Template part for displaying a post's footer * * @package kadence */ namespace Kadence; use function Kadence\kadence; use function get_the_author; use function get_avatar; use function get_the_author_meta; use function the_author_meta; use function get_the_author_posts_link; kadence()->print_styles( 'kadence-author-box' ); ?> <div class="entry-author entry-author-style-<?php echo esc_attr( kadence()->option( 'post_author_box_style' ) ); ?><?php echo ( kadence()->option( 'post_footer_area_boxed' ) ? ' content-bg entry-content-wrap entry' : '' ); ?>"> <div class="entry-author-profile author-profile vcard"> <div class="entry-author-avatar"> <?php echo get_avatar( get_the_author_meta( 'ID' ), 80 ); ?> </div> <b class="entry-author-name author-name fn"><?php echo wp_kses_post( kadence()->option( 'post_author_box_link' ) ? get_the_author_posts_link() : get_the_author() ); ?></b> <?php if ( get_the_author_meta( 'occupation' ) ) { ?> <p class="entry-author-occupation author-occupation"><?php the_author_meta( 'occupation' ); ?></p> <?php } ?> <div class="entry-author-description author-bio"> <?php the_author_meta( 'description' ); ?> </div> <div class="entry-author-follow author-follow"> <?php foreach ( array( 'facebook', 'twitter', 'instagram', 'threads', 'youtube', 'flickr', 'vimeo', 'linkedin', 'pinterest', 'dribbble', 'amazon', 'medium', 'goodreads', 'bookbub' ) as $social ) { if ( get_the_author_meta( $social ) ) { $url = get_the_author_meta( $social ); $name = 'twitter' === $social ? 'x formerly Twitter' : $social; $icon = 'twitter' === $social ? 'twitterAlt2' : $social; $icon = 'instagram' === $social ? 'instagramAlt' : $icon; // Might need some special parsing if rank math is active. if ( defined( 'RANK_MATH_VERSION' ) && ! str_contains( $url, '.com' ) ) { if ( 'twitter' == $social ) { $url = 'https://twitter.com/' . $url; } } ?> <a href="<?php echo esc_url( $url ); ?>" class="<?php echo esc_attr( $social ); ?>-link social-button" target="_blank" rel="noopener" title="<?php /* translators: 1: Author Name, 2: Social Media Name */ echo sprintf( esc_attr__( 'Follow %1$s on %2$s', 'kadence' ), esc_attr( get_the_author_meta( 'display_name' ) ), esc_attr( ucfirst( $name ) ) ); ?>"> <?php kadence()->print_icon( $icon, '', false ); ?> </a> <?php } } ?> </div><!--.author-follow--> </div> </div><!-- .entry-author -->
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
archive.php | File | 1.33 KB | 0644 |
|
archive_header.php | File | 1002 B | 0644 |
|
archive_hero.php | File | 1.13 KB | 0644 |
|
comments-list.php | File | 1.03 KB | 0644 |
|
entry-attachment.php | File | 4.13 KB | 0644 |
|
entry.php | File | 603 B | 0644 |
|
entry_actions.php | File | 1.02 KB | 0644 |
|
entry_author.php | File | 2.44 KB | 0644 |
|
entry_content.php | File | 825 B | 0644 |
|
entry_footer.php | File | 335 B | 0644 |
|
entry_header.php | File | 1.15 KB | 0644 |
|
entry_hero.php | File | 1.46 KB | 0644 |
|
entry_loop_footer.php | File | 261 B | 0644 |
|
entry_loop_header.php | File | 397 B | 0644 |
|
entry_loop_meta.php | File | 12.29 KB | 0644 |
|
entry_loop_taxonomies.php | File | 1.61 KB | 0644 |
|
entry_loop_thumbnail.php | File | 1.94 KB | 0644 |
|
entry_loop_title.php | File | 673 B | 0644 |
|
entry_meta.php | File | 11.23 KB | 0644 |
|
entry_related.php | File | 2.95 KB | 0644 |
|
entry_summary.php | File | 1007 B | 0644 |
|
entry_tags.php | File | 712 B | 0644 |
|
entry_taxonomies.php | File | 1.56 KB | 0644 |
|
entry_thumbnail.php | File | 2.43 KB | 0644 |
|
entry_title.php | File | 254 B | 0644 |
|
error-404.php | File | 655 B | 0644 |
|
error-500.php | File | 789 B | 0644 |
|
error-offline.php | File | 575 B | 0644 |
|
error.php | File | 1.05 KB | 0644 |
|
page_header.php | File | 1.26 KB | 0644 |
|
pagination.php | File | 697 B | 0644 |
|
single-entry.php | File | 2.58 KB | 0644 |
|
single.php | File | 1 KB | 0644 |
|