public function load_base_styles()
 {
     $ident = ClefUtils::register_style('main');
     wp_enqueue_style($ident);
     $ident = ClefUtils::register_script('login');
     wp_enqueue_script($ident);
     if (!has_action('login_enqueue_scripts', 'wp_print_styles')) {
         add_action('login_enqueue_scripts', 'wp_print_styles', 11);
     }
 }
 public function admin_enqueue_scripts($hook)
 {
     $exploded_path = explode('/', $hook);
     $settings_page_name = array_shift($exploded_path);
     // only register clef logout if user is a clef user
     if (ClefUtils::user_has_clef()) {
         $ident = ClefUtils::register_script('clef_heartbeat');
         wp_enqueue_script($ident);
     }
     $ident = ClefUtils::register_style('admin');
     wp_enqueue_style($ident);
     if (preg_match("/" . $this->settings->settings_path . "/", $settings_page_name)) {
         wp_enqueue_media();
         $ident = ClefUtils::register_script('settings', array('jquery', 'backbone', 'underscore', $this->ajax_settings->identifier()));
         wp_enqueue_script($ident);
     }
 }
 public function register_assets()
 {
     $this->script_identifier = ClefUtils::register_script('connect', array('jquery', 'backbone', 'underscore'));
     $this->style_identifier = ClefUtils::register_style('admin');
     wp_localize_script($this->script_identifier, 'ajaxurl', admin_url('admin-ajax.php'));
 }
 public function register_scripts()
 {
     $ident = ClefUtils::register_script('badge');
     wp_enqueue_script($ident);
 }