…` skeleton at * `in_admin_header @ 5`. The shell floats on top of the classic * admin via `position: fixed`; the body class added by * `body-classes.php` triggers the CSS that hides classic chrome. * * Extracted from `render.php` during the architecture-0.8.1 PHP * slicing (phase 6). * * @package Desktop_Mode * @since 0.8.1 */ defined( 'ABSPATH' ) || exit; /** * Injects the desktop shell markup into the admin page. * * Runs on `in_admin_header` at priority 5 so the shell renders right * after the classic admin bar but before the page content. The shell * floats above the classic layout via `position: fixed` in CSS; the * classic sidebar, body, and footer are hidden with `body.desktop-mode-active` * selectors. * * @since 0.1.0 */ function desktop_mode_render_shell() { if ( desktop_mode_is_chromeless_request() || ! desktop_mode_is_enabled() || desktop_mode_is_classic_request() ) { return; } /** * Fires right before the desktop shell markup is rendered. * * @since 0.1.0 */ do_action( 'desktop_mode_shell_before' ); // Stamp the user's admin color scheme onto the shell root so the // variables.css per-scheme selectors kick in before first paint — // doing this from JS on init() would show the default palette for a // frame before swapping. $scheme = sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' ); ?>