Conditions | 1 |
Paths | 1 |
Total Lines | 37 |
Code Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | protected function enqueueAssets(): void |
||
35 | { |
||
36 | parent::enqueueAssets(); |
||
37 | |||
38 | /** |
||
39 | * Hide the menus |
||
40 | */ |
||
41 | \wp_enqueue_style( |
||
42 | 'graphql-api-hide-admin-bar', |
||
43 | \GRAPHQL_API_URL . 'assets/css/hide-admin-bar.css', |
||
44 | array(), |
||
45 | \GRAPHQL_API_VERSION |
||
46 | ); |
||
47 | /** |
||
48 | * Styles for content within the modal window |
||
49 | */ |
||
50 | \wp_enqueue_style( |
||
51 | 'graphql-api-modal-window-content', |
||
52 | \GRAPHQL_API_URL . 'assets/css/modal-window-content.css', |
||
53 | array(), |
||
54 | \GRAPHQL_API_VERSION |
||
55 | ); |
||
56 | |||
57 | /** |
||
58 | * Add tabs to the documentation |
||
59 | */ |
||
60 | \wp_enqueue_style( |
||
61 | 'graphql-api-tabpanel', |
||
62 | \GRAPHQL_API_URL . 'assets/css/tabpanel.css', |
||
63 | array(), |
||
64 | \GRAPHQL_API_VERSION |
||
65 | ); |
||
66 | \wp_enqueue_script( |
||
67 | 'graphql-api-tabpanel', |
||
68 | \GRAPHQL_API_URL . 'assets/js/tabpanel.js', |
||
69 | array('jquery'), |
||
70 | \GRAPHQL_API_VERSION |
||
71 | ); |
||
74 |