| @@ -1,18 +1,17 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Desktop Mode — Living Tree: asset registration. | |
| 3 | + * OpenStation — Living Tree: asset registration. | |
| 4 | 4 | * |
| 5 | - * Registers the `desktop-mode-living-tree-wallpaper` script handle (built | |
| 5 | + * Registers the `os-living-tree-wallpaper` script handle (built | |
| 6 | 6 | * bundle `assets/js/living-tree-wallpaper[.min].js`). The wallpaper |
| 7 | 7 | * `server-sync` lazy-loads it when the user selects the `wp-living-tree` |
| 8 | 8 | * wallpaper (or opens OS Settings → Wallpaper and the picker pulls the |
| 9 | 9 | * def in). The bundle's only side effect is publishing the `WallpaperDef` |
| 10 | - * on `window.desktopModeWallpapers['wp-living-tree']`. Mirrors the | |
| 10 | + * on `window.openStationWallpapers['wp-living-tree']`. Mirrors the | |
| 11 | 11 | * animated-logo block in `includes/assets.php`. |
| 12 | 12 | * |
| 13 | - * @package WPDesktopMode | |
| 14 | - * @since 0.9.4 | |
| 13 | + * @package OpenStation | |
| 15 | 14 | */ |
| 16 | 15 | |
| 17 | 16 | defined( 'ABSPATH' ) || exit; |
| 18 | 17 | |
| @@ -17,26 +16,24 @@ | ||
| 17 | 16 | defined( 'ABSPATH' ) || exit; |
| 18 | 17 | |
| 19 | 18 | /** |
| 20 | 19 | * Register the Living Tree wallpaper script handle. |
| 21 | - * | |
| 22 | - * @since 0.9.4 | |
| 23 | 20 | */ |
| 24 | -function desktop_mode_living_tree_register_assets() { | |
| 25 | - $version = DESKTOP_MODE_VERSION; | |
| 26 | - $suffix = desktop_mode_asset_suffix(); | |
| 21 | +function openstation_living_tree_register_assets() { | |
| 22 | + $version = OPENSTATION_VERSION; | |
| 23 | + $suffix = openstation_asset_suffix(); | |
| 27 | 24 | |
| 28 | - $js_path = DESKTOP_MODE_DIR . 'assets/js/living-tree-wallpaper' . $suffix . '.js'; | |
| 25 | + $js_path = OPENSTATION_DIR . 'assets/js/living-tree-wallpaper' . $suffix . '.js'; | |
| 29 | 26 | wp_register_script( |
| 30 | - 'desktop-mode-living-tree-wallpaper', | |
| 31 | - DESKTOP_MODE_URL . 'assets/js/living-tree-wallpaper' . $suffix . '.js', | |
| 27 | + 'os-living-tree-wallpaper', | |
| 28 | + OPENSTATION_URL . 'assets/js/living-tree-wallpaper' . $suffix . '.js', | |
| 32 | 29 | array( 'wp-hooks', 'wp-i18n' ), |
| 33 | 30 | file_exists( $js_path ) ? (string) filemtime( $js_path ) : $version, |
| 34 | 31 | true |
| 35 | 32 | ); |
| 36 | 33 | wp_set_script_translations( |
| 37 | - 'desktop-mode-living-tree-wallpaper', | |
| 34 | + 'os-living-tree-wallpaper', | |
| 38 | 35 | 'desktop-mode', |
| 39 | - DESKTOP_MODE_DIR . 'languages' | |
| 36 | + OPENSTATION_DIR . 'languages' | |
| 40 | 37 | ); |
| 41 | 38 | } |
| 42 | -add_action( 'init', 'desktop_mode_living_tree_register_assets', 5 ); | |
| 39 | +add_action( 'init', 'openstation_living_tree_register_assets', 5 ); | |