| @@ -199,16 +199,8 @@ | ||
| 199 | 199 | OPENSTATION_URL . 'assets/css/mobile.css', |
| 200 | 200 | array( 'os-variables', 'dashicons', 'os-dock', 'os-windows' ), |
| 201 | 201 | $built_version( 'assets/css/mobile.css' ) |
| 202 | 202 | ); |
| 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 | 203 | // The workspace wizard. Scoped to `.os-workspace-wizard`, so it is |
| 212 | 204 | // inert until the user opens it from the overview bar's `+` or a |
| 213 | 205 | // tile's Edit. Those controls are styled with the rest of the bar |
| 214 | 206 | // in `window-overview.css`. |
| @@ -394,8 +386,34 @@ | ||
| 394 | 386 | OPENSTATION_URL . 'assets/js/iframe-bridge' . $suffix . '.js', |
| 395 | 387 | array(), |
| 396 | 388 | $built_version( 'assets/js/iframe-bridge' . $suffix . '.js' ), |
| 397 | 389 | true |
| 390 | + ); | |
| 391 | + | |
| 392 | + // `os-deactivation-feedback` — the dialog that asks one optional | |
| 393 | + // question when an admin deactivates OpenStation. Enqueued on | |
| 394 | + // `plugins.php` (classic, chromeless and network admin) by | |
| 395 | + // `includes/feedback/deactivation.php`, and lazy-loaded by the | |
| 396 | + // native Plugins app from its config block. Plain DOM on purpose: | |
| 397 | + // the classic screen has no `<os-*>` kit. | |
| 398 | + wp_register_script( | |
| 399 | + 'os-deactivation-feedback', | |
| 400 | + OPENSTATION_URL . 'assets/js/deactivation-feedback' . $suffix . '.js', | |
| 401 | + array( 'wp-i18n' ), | |
| 402 | + $built_version( 'assets/js/deactivation-feedback' . $suffix . '.js' ), | |
| 403 | + true | |
| 404 | + ); | |
| 405 | + wp_set_script_translations( | |
| 406 | + 'os-deactivation-feedback', | |
| 407 | + 'desktop-mode', | |
| 408 | + OPENSTATION_DIR . 'languages' | |
| 409 | + ); | |
| 410 | + $feedback_css = OPENSTATION_DIR . 'assets/css/deactivation-feedback.css'; | |
| 411 | + wp_register_style( | |
| 412 | + 'os-deactivation-feedback', | |
| 413 | + OPENSTATION_URL . 'assets/css/deactivation-feedback.css', | |
| 414 | + array(), | |
| 415 | + file_exists( $feedback_css ) ? (string) filemtime( $feedback_css ) : $version | |
| 398 | 416 | ); |
| 399 | 417 | |
| 400 | 418 | // `os-chromeless-bridge` — the iframe side of every window, |
| 401 | 419 | // enqueued on `admin_footer` by |