Set default template name in Renderer class and updated imprint.html with official registration and tax identification numbers.
This commit is contained in:
@@ -8,7 +8,7 @@ use Webklex\PHPIMAP\Client;
|
|||||||
require 'vendor/autoload.php';
|
require 'vendor/autoload.php';
|
||||||
|
|
||||||
class Renderer {
|
class Renderer {
|
||||||
protected string $templateName;
|
protected string $templateName = 'index';
|
||||||
private array $menuItems = [];
|
private array $menuItems = [];
|
||||||
protected array $internalMenuItems = [];
|
protected array $internalMenuItems = [];
|
||||||
protected $hiddenCount = 0;
|
protected $hiddenCount = 0;
|
||||||
@@ -48,7 +48,7 @@ class Renderer {
|
|||||||
$scriptName = $this->getScriptName();
|
$scriptName = $this->getScriptName();
|
||||||
if (!in_array($scriptName, array_merge($this->menuItems, $this->internalMenuItems))) {
|
if (!in_array($scriptName, array_merge($this->menuItems, $this->internalMenuItems))) {
|
||||||
header('Location: /', true, 301);
|
header('Location: /', true, 301);
|
||||||
return;
|
exit;
|
||||||
}
|
}
|
||||||
$this->templateName = $templateName ?: (!in_array($scriptName, ['ffajs', 'fvajs', '', '/']) ? $scriptName : 'index');
|
$this->templateName = $templateName ?: (!in_array($scriptName, ['ffajs', 'fvajs', '', '/']) ? $scriptName : 'index');
|
||||||
$this->connectDb();
|
$this->connectDb();
|
||||||
|
|||||||
@@ -11,5 +11,5 @@ Tel: xxx-xxxxxxx
|
|||||||
</ul>
|
</ul>
|
||||||
<h2>Amtliche Informationen</h2>
|
<h2>Amtliche Informationen</h2>
|
||||||
Registergericht: Amtsgericht Frankfurt a.M., Gerichtsstraße 2, 60313 Frankfurt am Main<br/>
|
Registergericht: Amtsgericht Frankfurt a.M., Gerichtsstraße 2, 60313 Frankfurt am Main<br/>
|
||||||
Vereinsregisternummer: <br/>
|
Vereinsregisternummer: 13422<br/>
|
||||||
Umsatzsteueridentifkationsnummer: <br/>
|
Umsatzsteueridentifkationsnummer: 4525075625<br/>
|
||||||
|
|||||||
Reference in New Issue
Block a user