Skip to content

Commit

Permalink
thusfar
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmagicii committed Oct 6, 2024
1 parent 201d4f5 commit 925bb31
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/www/themes/default/area/design/header.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ $ContainerClass = $Surface->Get($TKHeaderContainer) ?? 'container';
$MenuBtnLbl = $Surface->Get($TKHeaderMenuBtnLbl) ?? NULL;

$ShowSpacer = $Surface->Get($TKHeaderShowSpacer) ?? TRUE;
$ShowDevNote = $App->IsEnv('dev');
$ShowDemoNote = $App->IsEnv('demo');
$ShowDevNote = $App->IsEnvType('dev');
$ShowDemoNote = $App->IsEnvType('demo');

////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////// ?>
Expand Down
16 changes: 13 additions & 3 deletions src/Nether/Atlantis/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,16 +206,26 @@ public function
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////

#[Common\Meta\Info('return if this environment is indeed the one that was asked about.')]
public function
IsEnv(string $Env):
bool {
/*//
Return if this environment is indeed the one that was asked about.
//*/

return ($this->ProjectEnv === $Env);
}

#[Common\Meta\Date('2024-10-06')]
#[Common\Meta\Info('match the env prefix like is dev-local dev.')]
public function
IsEnvType(string $Type):
bool {

return ($this->GetProjectEnvType() === $Type);
}

////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////

public function
IsDev():
bool {
Expand Down

0 comments on commit 925bb31

Please sign in to comment.