From 8f2de348b53a94fb5ac25ac8bfab25ff0f1a02a8 Mon Sep 17 00:00:00 2001 From: Anton Afanasyeu Date: Wed, 5 Aug 2026 11:40:05 +0200 Subject: [PATCH] Add global FOR SALE corner badge linking to Contact us page. Rendered from platform_render_footer() on all consoles and hub: white background, double red border with 1px gap, -45deg ribbon, per-letter rotation. Co-authored-by: Cursor --- platform/footer.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/platform/footer.php b/platform/footer.php index 4401c63..655a87a 100644 --- a/platform/footer.php +++ b/platform/footer.php @@ -240,4 +240,34 @@ function platform_render_footer(array $opts = []): void } echo ''; + platform_render_for_sale_badge($opts); +} + +/** Bottom-right “FOR SALE” ribbon → Contact us (landing page 12). */ +function platform_render_for_sale_badge(array $opts = []): void +{ + if (array_key_exists('for_sale_badge', $opts) && !$opts['for_sale_badge']) { + return; + } + $cfg = platform_footer_config(); + if (array_key_exists('for_sale_badge', $cfg) && !$cfg['for_sale_badge']) { + return; + } + $url = trim((string) ($opts['for_sale_badge_url'] ?? ($cfg['for_sale_badge_url'] ?? ''))); + if ($url === '') { + $url = 'https://apps.f0xx.org/app/androidcast_project/?page=12'; + } + echo ''; + echo ''; + echo ''; + echo ''; }