for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YIKES Inc. Easy Mailchimp Forms Plugin.
*
* @package YIKES\EasyForms
* @author Freddie Mixell
* @license GPL2
*/
namespace YIKES\EasyForms\Assets;
use YIKES\EasyForms\Service;
* Class AdminStyles
* Handles registration of stylesheet for the entire admin area.
* @since %VERSION%
class AdminStyles implements Service, AssetsAware {
use AssetsAwareness;
* Register the current Registerable.
public function register() {
$this->register_assets();
add_action( 'admin_enqueue_scripts', function() {
$this->enqueue_assets();
} );
}
* Load asset objects for use.
protected function load_assets() {
$this->assets = [
new StyleAsset( 'easy-forms-admin-css', 'assets/css/admin' ),
];