diff --git a/CHANGELOG.md b/CHANGELOG.md index 25b27be..8ae6623 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,23 @@ Format: [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/) — versi --- +## [0.6.3] — 2026-05-30 — Discreet "buy me a coffee" support link + +### Added +- New `RADIO_SUPPORT_URL` constant in `radio.php` (default `https://buymeacoffee.com/davidtkeane`). Wrapped in `if ( ! defined(...) )` so it's override-able from `wp-config.php`. +- Tiny footer line `☕ Like Radio? If You fancy to buy me a coffee →` inside the **Updates panel** on Settings, below the manual-update note. +- Matching footer line at the bottom of the **Credits + thanks** card on the About page. +- Both spots render from the same constant — change one place, both update. +- **Conditional render**: if `RADIO_SUPPORT_URL` is empty / undefined, the link is silently hidden. Forks can strip funding with one line. + +### Design +- Muted styling deliberate: 12 px, admin-theme-coloured link, subtle top border. Reads as housekeeping ("here's where to send thanks") not a sales pitch. No yellow BMC brand chrome. +- Dark-theme variant for the divider (`#3c434a`) so it stays subtle on the dark surface. + +**Files changed:** `radio.php` (version, `RADIO_SUPPORT_URL` constant), `inc/updater.php` (link inside the Updates panel after the manual-update paragraph), `inc/about.php` (link inside the Credits + thanks card; rotate v0.6.3 into latest expanded slot, v0.6.2 into earlier-releases list), `assets/css/radio.css` (`.radio-support-link` styling + dark-theme override). + +--- + ## [0.6.2] — 2026-05-30 — Current version badge on Settings ### Added diff --git a/assets/css/radio.css b/assets/css/radio.css index c35ff98..558eb5e 100644 --- a/assets/css/radio.css +++ b/assets/css/radio.css @@ -297,8 +297,25 @@ font-size: 13px; } +/* v0.6.3: Discreet "buy me a coffee" support line. Rendered in two + spots from the single RADIO_SUPPORT_URL constant — bottom of the + Updates panel in Settings, and bottom of the Credits + thanks card + on About. Muted styling deliberate: housekeeping not sales pitch. */ +.radio-support-link { + display: block; + margin-top: 12px; + padding-top: 10px; + border-top: 1px solid #f0f0f1; + font-size: 12px; + color: var(--wp-admin-theme-color, #2271b1); + text-decoration: none; +} +.radio-support-link::before { content: '☕ '; opacity: 0.8; } +.radio-support-link:hover { text-decoration: underline; } +.radio-theme-dark .radio-support-link { border-top-color: #3c434a; } + /* Small grey pill that follows the Settings page H1 — at-a-glance - confirmation of the version you are running (v0.6.2). */ + confirmation of the version you are running. */ .radio-version-badge { display: inline-block; margin-left: 8px; diff --git a/inc/about.php b/inc/about.php index 3af9a7b..7ca5869 100644 --- a/inc/about.php +++ b/inc/about.php @@ -65,6 +65,11 @@ function radio_render_about_page() {
+ + + + + @@ -74,14 +79,15 @@ function radio_render_about_page() {
- +
+ + + + + +