# desktop-mode/1.1.3/includes/station-home/assets.php

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

- Page: https://pluginprobe.com/plugins/desktop-mode/1.1.3/code/includes/station-home/assets.php
- Raw: https://pluginprobe.com/plugins/desktop-mode/1.1.3/raw/includes/station-home/assets.php
- Modified: 2026-08-21T13:22:46+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.3/code/includes/station-home/assets.php#L10-L20`.

```php
<?php
/**
 * OpenStation — Station Home asset registration.
 *
 * @package OpenStation
 */

defined( 'ABSPATH' ) || exit;

/**
 * Register the lazy Station Home stylesheet and render bundle.
 */
function openstation_station_home_register_assets() {
	$version = OPENSTATION_VERSION;
	$suffix  = openstation_asset_suffix();

	$css_path = OPENSTATION_DIR . 'assets/css/station-home.css';
	wp_register_style(
		'os-station-home',
		OPENSTATION_URL . 'assets/css/station-home.css',
		array( 'os-variables', 'dashicons' ),
		file_exists( $css_path ) ? (string) filemtime( $css_path ) : $version
	);

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

```
