Habari\Monolith::action_admin_header PHP Method

action_admin_header() public method

Load the stack with the scripts and css we need
public action_admin_header ( Theme $theme )
$theme Theme The current theme
    public function action_admin_header($theme)
    {
        // Since this is the core admin theme, all of these named StackItems should have been added via Stack::action_register_stackitems()
        Stack::add('admin_header_javascript', 'jquery.color');
        Stack::add('admin_header_javascript', 'jquery-nested-sortable');
        Stack::add('admin_header_javascript', 'humanmsg');
        Stack::add('admin_header_javascript', 'jquery.hotkeys');
        Stack::add('admin_header_javascript', 'locale-js');
        Stack::add('admin_header_javascript', 'media');
        Stack::add('admin_header_javascript', 'admin-js');
        Stack::add('admin_header_javascript', 'crc32');
        Stack::add('admin_header_javascript', 'select2');
        Stack::add('admin_stylesheet', 'jquery.ui-css');
        Stack::add('admin_stylesheet', 'select2-css');
        if (defined('DEBUG_ADMIN')) {
            Stack::add('admin_footer_javascript', 'less');
            Stack::add('admin_stylesheet', 'admin-less');
        } else {
            Stack::add('admin_stylesheet', 'admin-css');
        }
    }