| 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 |
|