/**
  * Class constructor
  *
  * We need to override the parent's to set our stylesheet URL
  *
  * @since 0.1.0
  * @param array $types Icon Types
  * @return array
  */
 public function __construct()
 {
     $this->stylesheet = sprintf('%scss/%s%s.css', Menu_Icons::get('url'), $this->type, Menu_Icons::get_script_suffix());
     parent::__construct();
 }
Example #2
0
 /**
  * Enqueue scripts & styles for admin page
  *
  * @since   0.3.0
  * @wp_hook action admin_enqueue_scripts
  */
 public static function _enqueue_assets()
 {
     $suffix = Menu_Icons::get_script_suffix();
     wp_enqueue_style('menu-icons', Menu_Icons::get('url') . 'css/admin' . $suffix . '.css', false, Menu_Icons::VERSION);
     wp_register_script('kucrut-jquery-input-dependencies', Menu_Icons::get('url') . 'js/input-dependencies' . $suffix . '.js', array('jquery'), '0.1.0', true);
     if (!empty(self::$settings['global']['icon_types'])) {
         wp_enqueue_media();
     }
     wp_enqueue_script('menu-icons', Menu_Icons::get('url') . 'js/admin' . $suffix . '.js', array('kucrut-jquery-input-dependencies'), Menu_Icons::VERSION, true);
 }