-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimpressum.php
More file actions
212 lines (177 loc) · 7.22 KB
/
impressum.php
File metadata and controls
212 lines (177 loc) · 7.22 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<?php
require_once 'php/controller/help-controller.php';
$pageTitle = "Impressum";
include $abs_path . '/php/include/head.php';
$_SESSION['currentpage'] = 'impressum';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= $pageTitle ?></title>
<link rel="stylesheet" href="styles.css">
<style>
/* Styles for the row with the title and button */
.title-container {
display: flex;
justify-content: space-between;
align-items: center;
}
.title {
margin: 0;
}
.language-toggle {
display: flex;
justify-content: flex-end;
}
.flag-button {
cursor: pointer;
width: 25px;
height: 25px;
border: none;
background-color: transparent;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
transition: transform 0.2s ease, opacity 0.2s ease;
/* Smooth transition for hover effects */
}
.flag-button:hover {
transform: scale(1.1);
/* Slightly enlarge the image on hover */
opacity: 0.8;
/* Slightly reduce opacity for a highlight effect */
}
.en-flag {
background-image: url('images/flag_uk.png');
/* Replace with your English flag image */
}
.de-flag {
background-image: url('images/flag_de.png');
/* Replace with your German flag image */
}
</style>
</head>
<body>
<?php include 'php/include/header.php'; ?>
<?php include 'php/include/notifications.php'; ?>
<main>
<article class="standard-article">
<div class="title-container">
<h1 class="title" id="impressum-title">Impressum</h1>
<!-- Language Toggle Button -->
<div class="language-toggle">
<button class="flag-button de-flag" onclick="switchLanguage('de')"></button>
<button class="flag-button en-flag" onclick="switchLanguage('en')" style="display: none;"></button>
</div>
</div>
<div class="content-box" id="content-de">
<h2>Anschrift</h2>
<address>
<strong>OFFIS e.V.</strong><br>
Escherweg 2<br>
26121 Oldenburg<br>
Deutschland
</address>
<h2>Telefon/Fax</h2>
<p>Telefon: +49 441 9722-0<br>
Fax: +49 441 9722-102
</p>
<h2>E-Mail</h2>
<p><a href="mailto:institut@offis.de">institut at offis.de</a></p>
<h2>Internet</h2>
<p><a href="http://www.offis.de/" target="_blank" rel="noopener">www.offis.de</a></p>
<h2>Vorstand</h2>
<ul>
<li>Prof. Dr. Sebastian Lehnhoff (Vorsitzender)</li>
<li>Prof. Dr. techn. Susanne Boll-Westermann</li>
<li>Prof. Dr.-Ing. Andreas Hein</li>
<li>Prof. Dr.-Ing. Astrid Nieße</li>
</ul>
<h2>Registergericht</h2>
<p>Amtsgericht Oldenburg<br>
Registernummer: VR 1956
</p>
<h2>Umsatzsteuer-Identifikationsnummer (USt-IdNr.)</h2>
<p>DE 811582102</p>
<h2>Verantwortlich im Sinne der Presse</h2>
<p>Dr. Ing. Jürgen Meister<br>
<strong>OFFIS e.V.</strong><br>
Escherweg 2<br>
26121 Oldenburg
</p>
<h2>Datenschutz</h2>
<p>Mehr zum Thema Datenschutz finden Sie <a href="privacy.php" target="_blank" rel="noopener">hier</a>.
</p>
</div>
<!-- English Version -->
<div class="content-box" id="content-en" style="display: none;">
<h2>Address</h2>
<address>
<strong>OFFIS e.V.</strong><br>
Escherweg 2<br>
26121 Oldenburg<br>
Germany
</address>
<h2>Phone/Fax</h2>
<p>Phone: +49 441 9722-0<br>
Fax: +49 441 9722-102
</p>
<h2>E-Mail</h2>
<p><a href="mailto:institut@offis.de">institut at offis.de</a></p>
<h2>Internet</h2>
<p><a href="http://www.offis.de/" target="_blank" rel="noopener">www.offis.de</a></p>
<h2>Board Members</h2>
<ul>
<li>Prof. Dr. Sebastian Lehnhoff (chairman)</li>
<li>Prof. Dr. techn. Susanne Boll-Westermann</li>
<li>Prof. Dr.-Ing. Andreas Hein</li>
<li>Prof. Dr.-Ing. Astrid Nieße</li>
</ul>
<h2>Register Court</h2>
<p>Amtsgericht Oldenburg<br>
Registration Number: VR 1956
</p>
<h2>VAT Identification Number</h2>
<p>DE 811582102</p>
<h2>Responsible in the sense of press law</h2>
<p>Dr. Ing. Jürgen Meister<br>
<strong>OFFIS e.V.</strong><br>
Escherweg 2<br>
26121 Oldenburg
</p>
<h2>Privacy Policy</h2>
<p>More about our privacy policy <a href="privacy.php" target="_blank" rel="noopener">here</a>.</p>
</div>
</article>
</main>
<script src="js/script.js"></script>
<script>
// Function to switch language content visibility and toggle flag button
document.addEventListener("DOMContentLoaded", function () {
let currentLanguage = localStorage.getItem("language") || "de";
switchLanguage(currentLanguage, false); // Initialisiere ohne erneut zu speichern
});
function switchLanguage(language, save = true) {
if (language === "en") {
document.getElementById("content-en").style.display = "block";
document.getElementById("content-de").style.display = "none";
document.querySelector(".en-flag").style.display = "none";
document.querySelector(".de-flag").style.display = "block";
document.getElementById("impressum-title").innerText = "Imprint";
} else {
document.getElementById("content-de").style.display = "block";
document.getElementById("content-en").style.display = "none";
document.querySelector(".de-flag").style.display = "none";
document.querySelector(".en-flag").style.display = "block";
document.getElementById("impressum-title").innerText = "Impressum";
}
if (save) {
localStorage.setItem("language", language);
}
}
</script>
<?php include $abs_path . '/php/include/footer.php'; ?>
</body>
</html>