Skip to content

Commit

Permalink
thusfar
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmagicii committed Oct 4, 2024
1 parent 13ec046 commit 626cd4c
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions app/www/themes/default/design.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@ $PageBodyClasses = new Common\Datastore;
////////////////////////////////////////////////////////////////////////////////

$Surface
->Set('Theme.Page.ThemeMode', (array_key_exists('theme', $_COOKIE) ? $_COOKIE['theme'] : 'dark' ))
->Set('Theme.Page.MainCSS', ($App->IsDev() ? 'css/styles.php' : 'css/styles.css'));
->Define('Theme.Page.ThemeMode', (array_key_exists('theme', $_COOKIE) ? $_COOKIE['theme'] : 'dark' ))
->Define('Theme.Page.MainCSS', ($App->IsDev() ? 'css/styles.php' : 'css/styles.css'));

$ShowPageHeader = !($Surface->Get('Page.SkipHeader') ?? FALSE);
$ShowPageSubheader = ($DesignSubheader !== NULL);
$ShowPageContent = !($Surface->Get('Page.SkipContent') ?? FALSE);
$ShowPageFooter = !($Surface->Get('Page.SkipFooter') ?? FALSE);
$ShowPageShutdown = !($Surface->Get('Page.SkipShutdown') ?? FALSE);

////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -94,18 +100,22 @@ $Surface

<?php

if($ShowPageHeader)
$Surface->Area('design/header');

if($DesignSubheader !== NULL)
if($ShowPageHeader && $ShowPageSubheader)
$Surface->Area($DesignSubheader, $__SCOPE);

?>
if($ShowPageContent)
$Surface->Area('design/main', [ 'Output'=> $Output ]);

<?php $Surface->Area('design/main', [ 'Output'=> $Output ]) ?>
if($ShowPageFooter)
$Surface->Area('design/footer');

<?php $Surface->Area('design/footer') ?>
if($ShowPageShutdown)
$Surface->Area('design/shutdown');

<?php $Surface->Area('design/shutdown') ?>
?>

<script type="module">
jQuery(function(){
Expand Down

0 comments on commit 626cd4c

Please sign in to comment.