From 7703b04ca8123d48d7dfb7d9ecb00b57b764e15d Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 18 Apr 2026 11:50:54 -0500 Subject: [PATCH] Fix offline page: white logo bg, remove duplicate message, load language - Logo gets white background with padding and rounded corners - Removed (was duplicating offline message) - Load template language files explicitly (not auto-loaded in offline context) Co-Authored-By: Claude Opus 4.6 (1M context) --- src/media/css/offline.css | 6 ++++-- src/offline.php | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/media/css/offline.css b/src/media/css/offline.css index 0ba09bd..e5e3008 100644 --- a/src/media/css/offline.css +++ b/src/media/css/offline.css @@ -71,8 +71,10 @@ max-height: 120px; width: auto; height: auto; - filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3)) - drop-shadow(0 0 24px rgba(255, 255, 255, 0.15)); + background: #fff; + padding: 1rem 1.5rem; + border-radius: 0.5rem; + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); } .moko-offline-brand .site-title { diff --git a/src/offline.php b/src/offline.php index 148a133..6f8064f 100644 --- a/src/offline.php +++ b/src/offline.php @@ -36,6 +36,11 @@ if (is_file($manifestPath)) { $wa->getRegistry()->addRegistryFile($manifestPath); } +// Load template language files (not auto-loaded in offline context) +$lang = Factory::getLanguage(); +$lang->load('tpl_' . $this->template, JPATH_ROOT . '/templates/' . $this->template); +$lang->load('tpl_' . $this->template, JPATH_ROOT); + /* ----------------------- Load assets via WebAssetManager (matches index.php pattern) ------------------------ */ @@ -283,11 +288,6 @@ if (class_exists('\Joomla\Component\Users\Site\Helper\RouteHelper')) { - -
- -
-