# desktop-mode/1.1.2/includes/living-tree/assets.php

OpenStation: Desktop Windows, Dock &amp; Virtual Desktops for WP Admin, version 1.1.2. 40 lines.

- Page: https://pluginprobe.com/plugins/desktop-mode/1.1.2/code/includes/living-tree/assets.php
- Raw: https://pluginprobe.com/plugins/desktop-mode/1.1.2/raw/includes/living-tree/assets.php
- Modified: 2026-08-07T20:39:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/desktop-mode/1.1.2/code/includes/living-tree/assets.php#L10-L20`.

```php
<?php
/**
 * OpenStation — Living Tree: asset registration.
 *
 * Registers the `os-living-tree-wallpaper` script handle (built
 * bundle `assets/js/living-tree-wallpaper[.min].js`). The wallpaper
 * `server-sync` lazy-loads it when the user selects the `wp-living-tree`
 * wallpaper (or opens OS Settings → Wallpaper and the picker pulls the
 * def in). The bundle's only side effect is publishing the `WallpaperDef`
 * on `window.openStationWallpapers['wp-living-tree']`. Mirrors the
 * animated-logo block in `includes/assets.php`.
 *
 * @package OpenStation
 */

defined( 'ABSPATH' ) || exit;

/**
 * Register the Living Tree wallpaper script handle.
 */
function openstation_living_tree_register_assets() {
	$version = OPENSTATION_VERSION;
	$suffix  = openstation_asset_suffix();

	$js_path = OPENSTATION_DIR . 'assets/js/living-tree-wallpaper' . $suffix . '.js';
	wp_register_script(
		'os-living-tree-wallpaper',
		OPENSTATION_URL . 'assets/js/living-tree-wallpaper' . $suffix . '.js',
		array( 'wp-hooks', 'wp-i18n' ),
		file_exists( $js_path ) ? (string) filemtime( $js_path ) : $version,
		true
	);
	wp_set_script_translations(
		'os-living-tree-wallpaper',
		'desktop-mode',
		OPENSTATION_DIR . 'languages'
	);
}
add_action( 'init', 'openstation_living_tree_register_assets', 5 );

```
