| @@ -5,8 +5,10 @@ | ||
| 5 | 5 | use Exception; |
| 6 | 6 | use Give\DonationForms\OrphanedForms\Actions\Assets as OrphanedFormsAssets; |
| 7 | 7 | use Give\DonationForms\Actions\AddHoneyPotFieldToDonationForms; |
| 8 | 8 | use Give\DonationForms\Actions\DispatchDonateControllerDonationCreatedListeners; |
| 9 | +use Give\DonationForms\Actions\GenerateExternalEmbedScriptUrl; | |
| 10 | +use Give\DonationForms\Actions\GetExternalEmbedScriptData; | |
| 9 | 11 | use Give\DonationForms\Actions\DispatchDonateControllerSubscriptionCreatedListeners; |
| 10 | 12 | use Give\DonationForms\Actions\PrintFormMetaTags; |
| 11 | 13 | use Give\DonationForms\Actions\RegisterFormEntity; |
| 12 | 14 | use Give\DonationForms\Actions\ReplaceGiveReceiptShortcodeViewWithDonationConfirmationIframe; |
| @@ -191,8 +193,14 @@ | ||
| 191 | 193 | /** |
| 192 | 194 | * @since 3.0.0 |
| 193 | 195 | */ |
| 194 | 196 | Route::post('authenticate', AuthenticationRoute::class); |
| 197 | + | |
| 198 | + /** | |
| 199 | + * @since 4.17.0 | |
| 200 | + */ | |
| 201 | + Route::script(GenerateExternalEmbedScriptUrl::URI, GIVE_PLUGIN_DIR . 'build/donationFormExternalEmbed.js') | |
| 202 | + ->localize('givewpDonationFormEmbed', new GetExternalEmbedScriptData()); | |
| 195 | 203 | |
| 196 | 204 | /** |
| 197 | 205 | * @since 3.22.0 Add locale support |
| 198 | 206 | * @since 3.0.0 |