-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: display migration banner only on give pages
- Loading branch information
Showing
3 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,8 @@ public function highlightAllFormsMenuItem() | |
|
||
/** | ||
* Load scripts | ||
* | ||
* @unreleased Set admin script and style dependencies to display PayPal Standard to Donations Migration banner. | ||
*/ | ||
public function loadScripts() | ||
{ | ||
|
@@ -87,14 +89,15 @@ public function loadScripts() | |
]; | ||
|
||
EnqueueScript::make('give-admin-donation-forms', 'assets/dist/js/give-admin-donation-forms.js') | ||
->dependencies(['give-admin-scripts']) | ||
->loadInFooter() | ||
->registerTranslations() | ||
->registerLocalizeData('GiveDonationForms', $data)->enqueue(); | ||
|
||
wp_enqueue_style( | ||
'give-admin-ui-font', | ||
'https://fonts.googleapis.com/css2?family=Open+Sans:[email protected]&display=swap', | ||
[], | ||
['give-admin-styles'], | ||
null | ||
); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters