| @@ -182,9 +182,18 @@ | ||
| 182 | 182 | OPENSTATION_URL . 'assets/css/dock.css', |
| 183 | 183 | array( 'os-variables', 'dashicons' ), |
| 184 | 184 | $built_version( 'assets/css/dock.css' ) |
| 185 | 185 | ); |
| 186 | + // The Taskbar rail renderer. Scoped to the rail it stamps, so it is | |
| 187 | + // inert under the icon strip; loaded with the dock because the | |
| 188 | + // renderer can be picked live. | |
| 186 | 189 | wp_register_style( |
| 190 | + 'os-dock-taskbar', | |
| 191 | + OPENSTATION_URL . 'assets/css/dock-taskbar.css', | |
| 192 | + array( 'os-dock' ), | |
| 193 | + $built_version( 'assets/css/dock-taskbar.css' ) | |
| 194 | + ); | |
| 195 | + wp_register_style( | |
| 187 | 196 | 'os-dock-peek', |
| 188 | 197 | OPENSTATION_URL . 'assets/css/dock-peek.css', |
| 189 | 198 | array( 'os-dock' ), |
| 190 | 199 | $built_version( 'assets/css/dock-peek.css' ) |
| @@ -199,16 +208,8 @@ | ||
| 199 | 208 | OPENSTATION_URL . 'assets/css/mobile.css', |
| 200 | 209 | array( 'os-variables', 'dashicons', 'os-dock', 'os-windows' ), |
| 201 | 210 | $built_version( 'assets/css/mobile.css' ) |
| 202 | 211 | ); |
| 203 | - // The notch — the shell's top-centre voice and the site | |
| 204 | - // assistant's front door. Scoped to `.os-notch`. | |
| 205 | - wp_register_style( | |
| 206 | - 'os-notch', | |
| 207 | - OPENSTATION_URL . 'assets/css/notch.css', | |
| 208 | - array( 'os-variables' ), | |
| 209 | - $built_version( 'assets/css/notch.css' ) | |
| 210 | - ); | |
| 211 | 212 | // The workspace wizard. Scoped to `.os-workspace-wizard`, so it is |
| 212 | 213 | // inert until the user opens it from the overview bar's `+` or a |
| 213 | 214 | // tile's Edit. Those controls are styled with the rest of the bar |
| 214 | 215 | // in `window-overview.css`. |
| @@ -394,8 +395,34 @@ | ||
| 394 | 395 | OPENSTATION_URL . 'assets/js/iframe-bridge' . $suffix . '.js', |
| 395 | 396 | array(), |
| 396 | 397 | $built_version( 'assets/js/iframe-bridge' . $suffix . '.js' ), |
| 397 | 398 | true |
| 399 | + ); | |
| 400 | + | |
| 401 | + // `os-deactivation-feedback` — the dialog that asks one optional | |
| 402 | + // question when an admin deactivates OpenStation. Enqueued on | |
| 403 | + // `plugins.php` (classic, chromeless and network admin) by | |
| 404 | + // `includes/feedback/deactivation.php`, and lazy-loaded by the | |
| 405 | + // native Plugins app from its config block. Plain DOM on purpose: | |
| 406 | + // the classic screen has no `<os-*>` kit. | |
| 407 | + wp_register_script( | |
| 408 | + 'os-deactivation-feedback', | |
| 409 | + OPENSTATION_URL . 'assets/js/deactivation-feedback' . $suffix . '.js', | |
| 410 | + array( 'wp-i18n' ), | |
| 411 | + $built_version( 'assets/js/deactivation-feedback' . $suffix . '.js' ), | |
| 412 | + true | |
| 413 | + ); | |
| 414 | + wp_set_script_translations( | |
| 415 | + 'os-deactivation-feedback', | |
| 416 | + 'desktop-mode', | |
| 417 | + OPENSTATION_DIR . 'languages' | |
| 418 | + ); | |
| 419 | + $feedback_css = OPENSTATION_DIR . 'assets/css/deactivation-feedback.css'; | |
| 420 | + wp_register_style( | |
| 421 | + 'os-deactivation-feedback', | |
| 422 | + OPENSTATION_URL . 'assets/css/deactivation-feedback.css', | |
| 423 | + array(), | |
| 424 | + file_exists( $feedback_css ) ? (string) filemtime( $feedback_css ) : $version | |
| 398 | 425 | ); |
| 399 | 426 | |
| 400 | 427 | // `os-chromeless-bridge` — the iframe side of every window, |
| 401 | 428 | // enqueued on `admin_footer` by |