Skip to content

Commit

Permalink
upated - more avatar to 80 pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveJonesDev committed Jun 5, 2024
1 parent 577983a commit 89fe64e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions inc/layouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ function eqd_single_fullwidth_content() {

?>
<span class="entry-author">
<?php echo ! empty( $edit_auth_id ) ? get_avatar( $edit_auth_id, 40 ) : ''; ?>
<?php echo ! empty( $edit_auth_id ) ? get_avatar( $edit_auth_id, 80 ) : ''; ?>

<span class="entry-info">
<span>
Expand All @@ -403,7 +403,7 @@ function eqd_single_fullwidth_content() {
// Reviewed By.
$review_by_auth_id = get_field( 'post_reviewed_by', get_the_ID() );
if ( false !== $review_by_auth_id ) {
$profile_picture = get_avatar( $review_by_auth_id, 64 );
$profile_picture = get_avatar( $review_by_auth_id, 80 );
$user_info = get_userdata( $review_by_auth_id );
$first_name = $user_info->first_name; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Leaving for future use.
$last_name = $user_info->last_name; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Leaving for future use.
Expand Down
2 changes: 1 addition & 1 deletion inc/loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function eqd_single_header() {
?>
<span class="entry-author">
<a href="<?php echo esc_url( get_author_posts_url( $id ) ); ?>" aria-hidden="true" tabindex="-1">
<?php echo get_avatar( $id, 40 ); ?>
<?php echo get_avatar( $id, 80 ); ?>
</a>
<span class="entry-info">
<span>
Expand Down
2 changes: 1 addition & 1 deletion inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function eqd_entry_image_id() {
*/
function eqd_entry_author() {
$id = get_the_author_meta( 'ID' );
echo '<p class="entry-author"><a href="' . esc_url( get_author_posts_url( $id ) ) . '" aria-hidden="true" tabindex="-1">' . get_avatar( $id, 40 ) . '</a><em>by</em> <a href="' . esc_url( get_author_posts_url( $id ) ) . '">' . get_the_author() . '</a></p>';
echo '<p class="entry-author"><a href="' . esc_url( get_author_posts_url( $id ) ) . '" aria-hidden="true" tabindex="-1">' . get_avatar( $id, 80 ) . '</a><em>by</em> <a href="' . esc_url( get_author_posts_url( $id ) ) . '">' . get_the_author() . '</a></p>';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ function eqd_single_after_entry_author_info() {
<?php
$review_by_auth_id = get_field( 'post_reviewed_by', get_the_ID() );

$profile_picture = get_avatar( $review_by_auth_id, 64 );
$profile_picture = get_avatar( $review_by_auth_id, 80 );
if ( false !== $review_by_auth_id ) {
$user_info = get_userdata( $review_by_auth_id );
$first_name = $user_info->first_name; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Leaving this here for future use.
Expand Down Expand Up @@ -583,7 +583,7 @@ function eqd_single_after_entry_author_info() {
<?php
$post_editor_by_auth_id_footer = get_field( 'post_editor', get_the_ID() );

$profile_picture = get_avatar( $post_editor_by_auth_id_footer['ID'], 64 );
$profile_picture = get_avatar( $post_editor_by_auth_id_footer['ID'], 80 );
$user_info = get_userdata( $post_editor_by_auth_id_footer['ID'] );

?>
Expand Down

0 comments on commit 89fe64e

Please sign in to comment.