From 73a9852884de2b45100332666a17074854467912 Mon Sep 17 00:00:00 2001 From: bobmagicii Date: Fri, 4 Oct 2024 21:20:40 +0000 Subject: [PATCH] thusfar --- app/www/themes/default/design.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/www/themes/default/design.php b/app/www/themes/default/design.php index 6ce6fb1..db85cab 100755 --- a/app/www/themes/default/design.php +++ b/app/www/themes/default/design.php @@ -9,7 +9,7 @@ // not the entire scope that the application may have built, unlike the // design.phtml file which can access all the things scoped in. -$Surface->Queue('Atlantis.Config', function(Nether\Atlantis\Engine $App) { +$Surface->QueueOnce('Atlantis.Config', function(Nether\Atlantis\Engine $App) { $PageThemeMode = match(TRUE) { (isset($_COOKIE['theme'])) @@ -19,6 +19,8 @@ => 'dark' }; + $PageMainCSS = ($App->IsDev() ? 'css/styles.php' : 'css/styles.css'); + ($App->Surface) ->AddScriptURL('https://www.google.com/recaptcha/api.js') ->AddScriptURL('/themes/default/lib/js/swiper-bundle.min.js') @@ -29,7 +31,7 @@ 'Page.Theme.Mode' => $PageThemeMode, 'Page.Theme.FavIconURL' => '/themes/default/gfx/favicon.ico', - 'Theme.Page.MainCSS' => ($App->IsDev() ? 'css/styles.php' : 'css/styles.css'), + 'Theme.Page.MainCSS' => $PageMainCSS, 'Theme.Header.Contain' => FALSE, 'Theme.Header.Logo.ImageURL' => '/themes/default/gfx/atlantis-word.png', 'Theme.SiteMenu.Icons' => TRUE,