Asset
5 years ago
HelpTab
5 years ago
Main
5 years ago
Menu
5 years ago
Notice
5 years ago
Preference
5 years ago
ScreenOption
5 years ago
Section
5 years ago
AddonStatus.php
5 years ago
Admin.php
5 years ago
AdminNetwork.php
5 years ago
AdminScripts.php
5 years ago
Banner.php
5 years ago
HelpTab.php
5 years ago
Helpable.php
5 years ago
MainFactory.php
5 years ago
MainFactoryInterface.php
5 years ago
Menu.php
5 years ago
MenuFactory.php
5 years ago
MenuFactoryInterface.php
5 years ago
NetworkRequestHandler.php
5 years ago
Page.php
5 years ago
PageFactory.php
5 years ago
PageFactoryInterface.php
5 years ago
PageRequestHandler.php
5 years ago
RequestHandler.php
5 years ago
RequestHandlerInterface.php
5 years ago
ScreenOption.php
5 years ago
ScreenOptions.php
5 years ago
Section.php
5 years ago
SectionCollection.php
5 years ago
Table.php
5 years ago
Tooltip.php
5 years ago
WpMenuFactory.php
5 years ago
AdminScripts.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Admin; |
| 4 | |
| 5 | use AC\Asset\Assets; |
| 6 | use AC\Asset\Enqueueables; |
| 7 | use AC\Asset\Location; |
| 8 | use AC\Asset\Script; |
| 9 | use AC\Asset\Style; |
| 10 | |
| 11 | class AdminScripts implements Enqueueables { |
| 12 | |
| 13 | /** |
| 14 | * @var Location\Absolute |
| 15 | */ |
| 16 | private $location; |
| 17 | |
| 18 | public function __construct( Location\Absolute $location ) { |
| 19 | $this->location = $location; |
| 20 | } |
| 21 | |
| 22 | public function get_assets() { |
| 23 | return new Assets( [ |
| 24 | new Style( 'wp-pointer' ), |
| 25 | new Script( 'ac-admin-general', $this->location->with_suffix( 'assets/js/admin-general.js' ), [ 'jquery', 'wp-pointer' ] ), |
| 26 | new Style( 'ac-admin', $this->location->with_suffix( 'assets/css/admin-general.css' ) ), |
| 27 | ] ); |
| 28 | } |
| 29 | |
| 30 | } |