Fix possibly undefined vars in main templates.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-12-23 18:17:13 -06:00
parent 5d3c9eb5e7
commit 5ec825cb20
No known key found for this signature in database
GPG Key ID: 9FC8B9E008872109
2 changed files with 13 additions and 8 deletions

View File

@ -12,19 +12,22 @@
* @var App\Environment $environment
*/
$manual ??= false;
$title ??= null;
$header ??= null;
?>
<!DOCTYPE html>
<html data-theme="<?=$customization->getTheme()?>">
<html data-theme="<?= $customization->getTheme() ?>">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?=$customization->getPageTitle($title)?></title>
<title><?= $customization->getPageTitle($title) ?></title>
<?=$this->fetch('partials/icons')?>
<?= $this->fetch('partials/icons') ?>
<?=$this->section('head')?>
<?= $this->section('head') ?>
<?php
$assets

View File

@ -13,18 +13,20 @@
* @var App\Environment $environment
*/
$title ??= null;
$hide_footer ??= false;
?>
<html data-theme="<?=$customization->getPublicTheme()?>">
<html data-theme="<?= $customization->getPublicTheme() ?>">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?=$customization->getPageTitle($title)?></title>
<title><?= $customization->getPageTitle($title) ?></title>
<?=$this->fetch('partials/icons')?>
<?= $this->fetch('partials/icons') ?>
<?=$this->section('head')?>
<?= $this->section('head') ?>
<?php
$assets