Asset
1 month ago
Banner
1 month ago
Colors
1 month ago
MenuGroupFactory
1 month ago
MenuPageFactory
1 month ago
Notice
1 month ago
Page
1 month ago
PageFactory
1 month ago
Preference
1 month ago
Type
1 month ago
View
1 month ago
Admin.php
1 month ago
AdminLoader.php
1 month ago
AdminNetwork.php
1 month ago
AdminScripts.php
1 month ago
HelpTab.php
1 month ago
Helpable.php
1 month ago
Menu.php
1 month ago
MenuFactory.php
1 month ago
MenuFactoryInterface.php
1 month ago
MenuGroupFactory.php
1 month ago
MenuListFactory.php
1 month ago
MenuListItems.php
1 month ago
MenuPageFactory.php
1 month ago
PageFactoryInterface.php
1 month ago
PageNetworkRequestHandler.php
1 month ago
PageNetworkRequestHandlers.php
1 month ago
PageRequestHandler.php
1 month ago
PageRequestHandlers.php
1 month ago
RenderableHead.php
1 month ago
RequestHandlerInterface.php
1 month ago
ScreenOption.php
1 month ago
ScreenOptions.php
1 month ago
Scripts.php
1 month ago
Tooltip.php
1 month ago
UninitializedScreens.php
1 month ago
AdminScripts.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Admin; |
| 4 | |
| 5 | use AC\AdminColumns; |
| 6 | use AC\Asset\Assets; |
| 7 | use AC\Asset\Enqueueables; |
| 8 | use AC\Asset\Location; |
| 9 | use AC\Asset\Style; |
| 10 | |
| 11 | class AdminScripts implements Enqueueables |
| 12 | { |
| 13 | |
| 14 | private Location $location; |
| 15 | |
| 16 | public function __construct(AdminColumns $plugin) |
| 17 | { |
| 18 | $this->location = $plugin->get_location(); |
| 19 | } |
| 20 | |
| 21 | public function get_assets(): Assets |
| 22 | { |
| 23 | return new Assets([ |
| 24 | new Style( |
| 25 | 'ac-admin', |
| 26 | $this->location->with_suffix('assets/css/admin-general.css'), |
| 27 | ['ac-ui', 'ac-utilities', 'ac-material-symbols'] |
| 28 | ), |
| 29 | ]); |
| 30 | } |
| 31 | |
| 32 | } |