Skip to content

Commit

Permalink
Add the friend's avatar to the page header
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Dec 21, 2024
1 parent 2336ac2 commit 4b86f50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/frontend/author-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
)
);
} else {
if ( $args['friend_user']->get_avatar_url() ) {
?>
<img src="<?php echo esc_attr( $args['friend_user']->get_avatar_url() ); ?>" alt="<?php echo esc_attr( $args['friend_user']->display_name ); ?>" class="avatar" width="36" height="36" style="vertical-align: middle;" />
<?php
}
echo esc_html( $args['friend_user']->display_name );
}
?>
Expand Down

0 comments on commit 4b86f50

Please sign in to comment.