From a1bc96b9acd493401568dbd010f5ec27fed339a3 Mon Sep 17 00:00:00 2001 From: Jason Adams Date: Wed, 13 Nov 2024 17:17:32 -0700 Subject: [PATCH] feature: displays uploaded donor avatar on donor wall --- templates/shortcode-donor-wall.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/templates/shortcode-donor-wall.php b/templates/shortcode-donor-wall.php index b54a5a4c37..7b360a17f8 100644 --- a/templates/shortcode-donor-wall.php +++ b/templates/shortcode-donor-wall.php @@ -38,6 +38,17 @@ $alt "; + } elseif (($avatar = $donor->get_meta('_give_donor_avatar_id', true))) { + // Donor has an avatar + $imageUrl = wp_get_attachment_image_url($avatar, 'thumbnail'); + $alt = __('Donor Avatar', 'give'); + + echo " +
+ $alt +
+ "; + } elseif ($donation['_give_payment_donor_email'] && give_validate_gravatar( $donation['_give_payment_donor_email'] )) {