-
Notifications
You must be signed in to change notification settings - Fork 1
/
Configuration.php
188 lines (173 loc) · 5.73 KB
/
Configuration.php
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
<?php
namespace KirchenImWeb\Helpers;
/**
* Class Configuration
*
* @package KirchenImWeb\Helpers
*/
class Configuration
{
public static function getCountries(): array
{
return [
'DE' => _('Deutschland'),
'LI' => _('Liechtenstein'),
'LU' => _('Luxemburg'),
'AT' => _('Österreich'),
'CH' => _('Schweiz'),
];
}
public static function getDenominations(): array
{
return [
'alt-katholisch' => _('alt-katholisch'),
'anglikanisch' => _('anglikanisch'),
'evangelisch' => _('evangelisch'),
'freikirchlich' => _('freikirchlich'),
'katholisch' => _('katholisch'),
'ökumenisch' => _('ökumenisch'),
];
}
public static function getDenominationColors(): array
{
return [
'alt-katholisch' => '#ff8000',
'anglikanisch' => '#81a04d',
'evangelisch' => '#4e2775',
'freikirchlich' => '#2f7ed8',
'katholisch' => '#e5ca4d',
'ökumenisch' => '#ff4500',
];
}
public static function getTypes(): array
{
return [
'Bildungseinrichtung' => _('Bildungseinrichtung'),
'Bischofskonferenz' => _('Bischofskonferenz'),
'Bistum' => _('Bistum'),
'Citykirche' => _('Citykirche'),
'Dekanat' => _('Dekanat'),
'Jugend' => _('Jugend'),
'Gemeindeverband' => _('Gemeindeverband'),
'Hilfswerk' => _('Hilfswerk'),
'Internetportal' => _('Internetportal'),
'Kirchengemeinde' => _('Kirchengemeinde'),
'Kirchenkreis' => _('Kirchenkreis'),
'Kloster' => _('Kloster'),
'Laienorganisation' => _('Laienorganisation'),
'Landeskirche' => _('Landeskirche'),
'Museum' => _('Museum'),
'Pastoraler Raum' => _('Pastoraler Raum/ Pfarreiengemeinschaft/ Seelsorgeeinheit'),
'Pfarrei' => _('Pfarrei'),
'Pfarrvikarie' => _('Pfarrvikarie'),
'andere' => _('andere'),
];
}
public static function getWebsiteTypes(): array
{
return [
'web' => _('Webauftritt'),
'blog' => _('Blog'),
'podcast' => 'Podcast',
'rss' => 'RSS',
'facebook' => 'Facebook',
'flickr' => 'Flickr',
'instagram' => 'Instagram',
'soundcloud' => 'Soundcloud',
'twitter' => 'Twitter',
'vimeo' => 'Vimeo',
'youtube' => 'YouTube',
];
}
public static function getWebsiteTypeIcons(): array
{
return [
'web' => 'fa fa-home',
'blog' => 'fa fa-blog',
'podcast' => 'fa fa-podcast',
'rss' => 'fa fa-rss',
'facebook' => 'fab fa-facebook',
'flickr' => 'fab fa-flickr',
'instagram' => 'fab fa-instagram',
'soundcloud' => 'fab fa-soundcloud',
'twitter' => 'fab fa-twitter',
'vimeo' => 'fab fa-vimeo',
'youtube' => 'fab fa-youtube',
];
}
public static function getPreselectedWebsiteTypes(): array
{
return [
'web' => _('Webauftritt'),
'facebook' => 'Facebook',
'instagram' => 'Instagram',
'twitter' => 'Twitter',
];
}
public static function getStartOfWebsiteURL(): array
{
return [
'web' => '',
'blog' => '',
'podcast' => '',
'rss' => '',
'facebook' => 'https://www.facebook.com/',
'flickr' => 'https://www.flickr.com/',
'instagram' => 'https://www.instagram.com/',
'soundcloud' => 'https://soundcloud.com',
'twitter' => 'https://twitter.com/',
'vimeo' => 'https://vimeo.com/',
'youtube' => 'https://www.youtube.com/',
];
}
public static function getWebsiteTypesForLinkCheck(): array
{
/**
* All except {@link Configuration::getWebsiteTypesToCompare()}
* and Twitter (redirects to login page)
* and YouTube (which redirects to cookie consent page).
*/
return [
'web' => _('Webauftritt'),
'blog' => _('Blog'),
'rss' => 'RSS',
'flickr' => 'Flickr',
'soundcloud' => 'Soundcloud',
'vimeo' => 'Vimeo',
];
}
public static function getWebsiteTypesToCompare(): array
{
return [
'facebook' => 'Facebook',
'instagram' => 'Instagram',
];
}
public static function getWebsitesToCompareColors(): array
{
return [
'facebook' => '#3b5998',
'instagram' => '#383838',
'twitter' => '#1da1f2',
];
}
public static function getSortOptions(): array
{
$sortOptions = [
'name' => _('Name'),
'postalCode' => _('PLZ'),
'city' => _('Ort'),
'country' => _('Land'),
'denomination' => _('Konfession'),
'type' => _('Gemeindetyp'),
];
return array_merge($sortOptions, self::getWebsiteTypesToCompare());
}
public static function getLanguages(): array
{
return [
'de_DE' => 'de',
'en_US' => 'en',
];
}
}