PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.8.1
GiveWP – Donation Plugin and Fundraising Platform v4.16.8.1
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
give / src / EventTickets / Actions / EnqueueListTableScripts.php

EnqueueListTableScripts.php in GiveWP – Donation Plugin and Fundraising Platform 4.16.8.1, at src/EventTickets/Actions/EnqueueListTableScripts.php

36 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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