__( 'Heartbeat', 'desktop-mode' ), 'description' => __( 'A gently beating heart that pulses with the WordPress Heartbeat. The bar fills as the next tick approaches.', 'desktop-mode' ), 'icon' => 'dashicons-heart', 'script' => 'desktop-mode-heartbeat-widget', 'movable' => true, 'resizable' => false, 'min_width' => 310, 'max_width' => 310, 'min_height' => 230, 'max_height' => 230, 'default_width' => 310, 'default_height' => 230, ) ); } add_action( 'init', 'desktop_mode_register_heartbeat_widget', 6 ); /** /** * Eagerly enqueue the widget's CSS handle ONLY when the current * request is a Desktop Mode SHELL request — not a chromeless * iframe load, not an admin page that doesn't mount the desktop. * The JS bundle stays lazy and loads via the widget server-sync * the first time the picker opens or the widget mounts. * * Why eager (on shell pages): the shell injects a `