PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.7
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.7
1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 0.8.8 0.8.7 All 34 releases
desktop-mode / includes / living-tree / wallpaper.php

wallpaper.php in OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin 1.1.7, at includes/living-tree/wallpaper.php

38 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * OpenStation — Living Tree: wallpaper registration.
4 *
5 * Registers the `wp-living-tree` canvas wallpaper through the same public
6 * API third-party canvas wallpapers use (`openstation_register_wallpaper()`).
7 * The `script` is the handle registered in `assets.php`; the shell's
8 * wallpaper sync injects its URL when the def is needed. Mirrors the
9 * animated-logo registration in `includes/wallpapers.php`.
10 *
11 * Hooked on `init` priority 6 — after the asset handle is registered
12 * (priority 5) so the handle exists when the wallpaper references it.
13 *
14 * @package OpenStation
15 */
16
17 defined( 'ABSPATH' ) || exit;
18
19 /**
20 * Register the Living Tree canvas wallpaper.
21 */
22 function openstation_living_tree_register_wallpaper() {
23 openstation_register_wallpaper(
24 'wp-living-tree',
25 array(
26 'label' => __( 'Living Tree', 'desktop-mode' ),
27 'preview' => 'linear-gradient(180deg, #24304a 0%, #6b4a63 70%, #b5744f 100%)',
28 'type' => 'canvas',
29 'script' => 'os-living-tree-wallpaper',
30 'description' => __(
31 'Your site as a living tree: every post a leaf, every page ivy on the trunk, comments in blossom, categories as wildflowers in the meadow, tags as butterflies among them, visitors as wind, and readers as fireflies after dark. It grows a little every day and never repeats itself. A tribute to open source and to Matt Mullenweg — “working on open source is like planting a tree whose shade you will never sit in: you plant it for the generations that come after you.” Keep publishing; the shade is for everyone.',
32 'desktop-mode'
33 ),
34 )
35 );
36 }
37 add_action( 'init', 'openstation_living_tree_register_wallpaper', 6 );
38