fixed from error
This commit is contained in:
@@ -52,6 +52,7 @@ class Renderer {
|
||||
}
|
||||
$this->templateName = $templateName ?: (!in_array($scriptName, ['ffajs', 'fvajs', '', '/']) ? $scriptName : 'index');
|
||||
$this->connectDb();
|
||||
$this->content['year'] = date('Y');
|
||||
}
|
||||
|
||||
private function createPublicMenuItems(): void {
|
||||
@@ -173,7 +174,9 @@ class Renderer {
|
||||
}
|
||||
|
||||
private function footer(): void {
|
||||
$this->website = str_replace('{{footer}}', file_get_contents('templates/footer.html'), $this->website);
|
||||
$footerTemplate = file_get_contents('templates/footer.html');
|
||||
$footer = str_replace('{{year}}', date('Y'), $footerTemplate);
|
||||
$this->website = str_replace('{{footer}}', $footer, $this->website);
|
||||
}
|
||||
|
||||
protected function showInputField(array $errors, string $inputType, string $fieldName, int $fieldLength): void {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<footer>
|
||||
<span class="footer-copyright">(c) 2023 Verein der Freunde und Förderer der <a href="https://www.steffi-jones-schule.com" target="_blank">Steffi-Jones-Schule e.V.</a></span>
|
||||
<span class="footer-copyright">© {{year}} Verein der Freunde und Förderer der <a href="https://www.steffi-jones-schule.com" target="_blank">Steffi-Jones-Schule e.V.</a></span>
|
||||
<a href="imprint" class="footer-imprint">Impressum</a>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user