From 32a3040e396409a7d2535bb824b431acae3e2b85 Mon Sep 17 00:00:00 2001 From: David Keane Date: Sat, 30 May 2026 00:30:14 +0100 Subject: [PATCH] feat(0.6.2): current version badge on Settings page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Small grey pill follows the "Radio — Settings" H1 — v{RADIO_VERSION}. Visible at a glance so you don't have to hover the plugin row in Plugins → Installed or open About just to check what version you're on. Dark-theme variant so it stays readable when theme=dark. Files: radio.php (version), inc/settings.php ( inside H1), assets/css/radio.css (.radio-version-badge + dark override), inc/about.php (rotate v0.6.2 into latest expanded slot, v0.6.1 into earlier-releases list), CHANGELOG.md. Co-Authored-By: Claude Opus 4.7 (1M context) --- CHANGELOG.md | 10 ++++++++++ assets/css/radio.css | 16 ++++++++++++++++ inc/about.php | 5 +++-- inc/settings.php | 5 ++++- radio.php | 4 ++-- 5 files changed, 35 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 746fa52..25b27be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,16 @@ Format: [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/) — versi --- +## [0.6.2] — 2026-05-30 — Current version badge on Settings + +### Added +- Small grey pill follows the **"Radio — Settings"** heading: `v{RADIO_VERSION}`. Visible at a glance so you don't have to hover the plugin row in *Plugins → Installed* or open *About* just to check what version you're on. +- Dark-theme variant of the badge (`#2c3338` background, `#c3c4c7` text) so it stays readable when `theme=dark`. + +**Files changed:** `radio.php` (version), `inc/settings.php` (`v…` inside the H1), `assets/css/radio.css` (`.radio-version-badge` styling + dark-theme override). + +--- + ## [0.6.1] — 2026-05-30 — About page restructure By v0.6.0 the About page had eight version-history entries, each a full paragraph, dwarfing the other cards and pushing Credits + thanks off the visible area. v0.6.1 rebalances the layout. diff --git a/assets/css/radio.css b/assets/css/radio.css index 9bd57a7..c35ff98 100644 --- a/assets/css/radio.css +++ b/assets/css/radio.css @@ -297,6 +297,22 @@ font-size: 13px; } +/* Small grey pill that follows the Settings page H1 — at-a-glance + confirmation of the version you are running (v0.6.2). */ +.radio-version-badge { + display: inline-block; + margin-left: 8px; + padding: 2px 8px; + background: #e2e4e7; + color: #50575e; + border-radius: 10px; + font-size: 11px; + font-weight: 600; + vertical-align: middle; + letter-spacing: 0.02em; +} +.radio-theme-dark .radio-version-badge { background: #2c3338; color: #c3c4c7; } + /* ────────────────────────────────────────────────────────────────── * Dashboard widget — no nested card; bare content inside .inside * (WP renders the widget as a postbox already; don't double up) diff --git a/inc/about.php b/inc/about.php index 75973ed..3af9a7b 100644 --- a/inc/about.php +++ b/inc/about.php @@ -74,14 +74,15 @@ function radio_render_about_page() {

- v0.6.1 — 30 May 2026 + v0.6.2 — 30 May 2026

- +

    +
  • v0.6.1 30 May 2026
  • v0.6.0 30 May 2026
  • v0.5.0 29 May 2026
  • v0.4.0 29 May 2026
  • diff --git a/inc/settings.php b/inc/settings.php index 2e753e5..2312cc6 100644 --- a/inc/settings.php +++ b/inc/settings.php @@ -47,7 +47,10 @@ function radio_render_settings_page() { $hide_widget = ! empty( $state['hide_dashboard_widget'] ); ?>
    -

    +

    + + v +

    diff --git a/radio.php b/radio.php index 3f01b72..ec90332 100644 --- a/radio.php +++ b/radio.php @@ -5,7 +5,7 @@ * Plugin Name: Radio * Plugin URI: https://icanhelp.ie/radio * Description: A small, focused, free radio player for your WordPress admin. 44 SomaFM stations grouped by 10 genres — ambient, electronic, lounge, rock, metal, jazz, world, reggae, holiday, specials. Plays via HTML5 audio; volume + station choice persist per-user. - * Version: 0.6.1 + * Version: 0.6.2 * Requires at least: 5.0 * Requires PHP: 7.4 * Author: David Keane @@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } // Plugin coordinates. -if ( ! defined( 'RADIO_VERSION' ) ) { define( 'RADIO_VERSION', '0.6.1' ); } +if ( ! defined( 'RADIO_VERSION' ) ) { define( 'RADIO_VERSION', '0.6.2' ); } if ( ! defined( 'RADIO_FILE' ) ) { define( 'RADIO_FILE', __FILE__ ); } if ( ! defined( 'RADIO_PATH' ) ) { define( 'RADIO_PATH', plugin_dir_path( __FILE__ ) ); } if ( ! defined( 'RADIO_URL' ) ) { define( 'RADIO_URL', plugin_dir_url( __FILE__ ) ); }