-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimpressum.php
More file actions
44 lines (40 loc) · 1.72 KB
/
Copy pathimpressum.php
File metadata and controls
44 lines (40 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
// Define a constant to protect included files from direct access
define('INCLUDED_VIA_APP', true);
// Include the initialization file (handles sessions and database connection)
require_once __DIR__ . '/includes/init.php';
$page = getStaticPage('impressum');
$page_title = ($page['page_title'] ?? 'Impressum / Imprint') . ' - ' . getSiteTitle();
$meta_desc = $page['meta_description'] ?? ('Impressum and legal notice for ' . getSiteTitle());
$owner_name = getOwnerName();
$owner_email = getOwnerEmail();
$owner_address = getSiteSetting('owner_address', '');
$site_title = getSiteTitle();
$meta_keywords = buildKeywordsList([
'impressum', 'imprint', 'legal notice', 'contact',
$owner_name, $site_title
]);
require_once 'includes/header.php';
?>
<div class="card">
<section>
<?php if (!empty($page['page_content'])): ?>
<?php echo function_exists('interpolateSiteSettings') ? interpolateSiteSettings($page['page_content']) : $page['page_content']; ?>
<?php else: ?>
<h3>Impressum / Imprint</h3>
<p>
Diese Webseite wird privat genutzt.<br><br>
<b>Impressum Angaben gem. §5 TMG:</b><br><br>
Inhaltlich verantwortlich ist:<br>
<address>
<?php echo htmlspecialchars($owner_name, ENT_QUOTES, 'UTF-8'); ?><br>
<?php if (!empty($owner_address)): ?>
<div class="impressum-address"><?php echo $owner_address; ?></div>
<?php endif; ?>
E-Mail: <a href="mailto:<?php echo htmlspecialchars($owner_email, ENT_QUOTES, 'UTF-8'); ?>"><?php echo htmlspecialchars($owner_email, ENT_QUOTES, 'UTF-8'); ?></a>
</address>
</p>
<?php endif; ?>
</section>
</div>
<?php require_once 'includes/footer.php'; ?>