AddEventTicketsToDonationConfirmationPageDonationTotal.php
1 year ago
AddEventTicketsToDonationConfirmationPageEventTicketDetails.php
2 years ago
AttachAttendeeDataToTicketData.php
2 years ago
ConvertEventTicketsBlockToFieldsApi.php
11 months ago
EnqueueDonationFormScripts.php
2 years ago
EnqueueEventDetailsScripts.php
1 year ago
EnqueueFormBuilderScripts.php
1 year ago
EnqueueListTableScripts.php
1 year ago
GenerateTicketsFromPurchaseData.php
11 months ago
RegisterEventsMenuItem.php
5 months ago
RenderDonationFormBlock.php
2 years ago
UpdateDonationConfirmationPageReceiptDonationAmount.php
2 years ago
EnqueueListTableScripts.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\EventTickets\Actions; |
| 4 | |
| 5 | use Give\EventTickets\ListTable\EventTicketsListTable; |
| 6 | use Give\Helpers\EnqueueScript; |
| 7 | |
| 8 | class EnqueueListTableScripts |
| 9 | { |
| 10 | public function __invoke() |
| 11 | { |
| 12 | $data = [ |
| 13 | 'apiRoot' => esc_url_raw(rest_url('give-api/v2/events-tickets/events/list-table')), |
| 14 | 'apiNonce' => wp_create_nonce('wp_rest'), |
| 15 | 'table' => give(EventTicketsListTable::class)->toArray(), |
| 16 | 'adminUrl' => admin_url(), |
| 17 | 'paymentMode' => give_is_test_mode(), |
| 18 | 'pluginUrl' => GIVE_PLUGIN_URL, |
| 19 | ]; |
| 20 | |
| 21 | EnqueueScript::make('give-admin-event-tickets', 'build/assets/dist/js/give-admin-event-tickets.js') |
| 22 | ->loadInFooter() |
| 23 | ->registerTranslations() |
| 24 | ->registerLocalizeData('GiveEventTickets', $data)->enqueue(); |
| 25 | |
| 26 | wp_enqueue_style( |
| 27 | 'give-admin-ui-font', |
| 28 | 'https://fonts.googleapis.com/css2?family=Open+Sans:wght@400..700&display=swap', |
| 29 | [], |
| 30 | null |
| 31 | ); |
| 32 | |
| 33 | wp_enqueue_style('givewp-design-system-foundation'); |
| 34 | } |
| 35 | } |
| 36 |