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
|
<?php
require_once dirname(__DIR__) . '/layout.php';
$i18n = i18n([
'de' => [
'topics' => 'Themenbereiche',
'volunteering' => 'Ehrenämter & Mitgliedschaften',
'social' => 'Social & Media',
'other' => 'Weitere Links',
],
'en' => [
'topics' => 'Topics',
'volunteering' => 'Volunteering & Memberships',
'social' => 'Social & Media',
'other' => 'Other Links',
],
'jp' => [
'topics' => '話題',
'volunteering' => 'Ehrenämterと会員',
'social' => 'ソーシャルとメディア',
'other' => 'その他',
],
]);
$t = $i18n['translate'];
$volunteering = [
[
'link' => 'https://web.ecogood.org/de/',
'title' => 'International Federation for the Economy for the Common Good e.V.',
'extra' => [
'link' => 'https://bayern.ecogood.org/',
'title' => 'in Bayern',
],
'icon' => '/assets/img/volunteering/gwoe_icon_57x57.png',
],
[
'link' => 'https://www.bund-naturschutz.de',
'title' => 'BUND Naturschutz in Bayern e.V.',
'extra' => [
'link' => 'https://rhoen-grabfeld.bund-naturschutz.de',
'title' => 'Kreisgruppe Rhön-Grabfeld',
],
'icon' => '/assets/img/volunteering/bns-favicon-32x32.png',
],
[
'link' => 'https://www.fairhandeln.de',
'title' => 'Aktion Eine Welt e.V.',
'icon' => '/assets/img/volunteering/EWL.png',
],
];
$media = [
[
'link' => 'https://gemeinwohl-development.de',
'title' => 'GEMEINWOHL.development',
'icon' => '/assets/img/social/gd-favicon.png',
],
[
'link' => 'https://gitlab.com/dweipert-3138720606',
'title' => 'GitLab',
'icon' => '/assets/img/social/favicon-7901bd695fb93edb07975966062049829afb56cf11511236e61bcf425070e36e.png',
],
[
'link' => 'https://github.com/dweipert-3138720606',
'title' => 'GitHub',
'icon' => '/assets/img/social/GitHub-Mark-Light-32px.png',
],
[
'link' => 'https://git.dweipert.de',
'title' => 'Git Projects',
'icon' => '/assets/img/social/Git-Icon-1788C.png',
],
];
ob_start();
?>
<style>
.container {
margin: 0 auto;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
justify-content: space-around;
}
.container a {
text-decoration: none;
}
.container ul {
padding: 0;
margin: 0;
list-style-type: none;
}
.container li + li {
margin-top: 0.75rem;
}
.volunteering h2 {
margin-top: 0;
}
.volunteering__list li {
text-align: left;
}
.volunteering__list li > img {
max-height: 1.5em;
max-width: 1.5em;
vertical-align: -6px;
}
.social__list li > a {
display: flex;
align-items: center;
}
.social__list li > a > img {
max-height: 1.5em;
max-width: 1.5em;
}
</style>
<?php
$head = ob_get_clean();
ob_start();
?>
<div class="container">
<div class="volunteering">
<h2><?php echo $t('volunteering'); ?></h2>
<ul class="volunteering__list">
<?php foreach ($volunteering as $idx => $v): ?>
<li>
<img src="<?php echo $v['icon']; ?>" alt="<?php echo $v['title']; ?>">
<a href="<?php echo $v['link']; ?>" target="_blank"><?php echo $v['title']; ?></a>
<?php if (isset($v['extra'])): ?>
<span>— <a href="<?php echo $v['extra']['link']; ?>"><?php echo $v['extra']['title']; ?></a></span>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<div class="social">
<h2><?php echo $t('social'); ?></h2>
<ul class="social__list">
<?php foreach ($media as $idx => $m): ?>
<li>
<a href="<?php echo $m['link']; ?>" target="_blank">
<img src="<?php echo $m['icon']; ?>" alt="<?php echo $m['title']; ?>">
<?php echo $m['title']; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
<?php
$content = ob_get_clean();
layout($head, $content);
|