| @@ -8,9 +8,11 @@ | ||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | namespace Give\Form; |
| 11 | 11 | |
| 12 | +use Give\DonationForms\Models\DonationForm; | |
| 12 | 13 | use Give\Form\Template\Options; |
| 14 | +use Give\Helpers\Form\Utils; | |
| 13 | 15 | use Give\Helpers\Form\Utils as FormUtils; |
| 14 | 16 | use Give\Receipt\DonationReceipt; |
| 15 | 17 | |
| 16 | 18 | defined('ABSPATH') || exit; |
| @@ -322,8 +324,12 @@ | ||
| 322 | 324 | * @return string |
| 323 | 325 | */ |
| 324 | 326 | public function getFormFeaturedImage($formId) |
| 325 | 327 | { |
| 328 | + if (Utils::isV3Form($formId)) { | |
| 329 | + return DonationForm::find($formId)->settings->designSettingsImageUrl; | |
| 330 | + } | |
| 331 | + | |
| 326 | 332 | return get_the_post_thumbnail_url($formId, 'full'); |
| 327 | 333 | } |
| 328 | 334 | |
| 329 | 335 | /** |