Compare commits
2 commits
0094d7cbbd
...
215706162d
| Author | SHA1 | Date | |
|---|---|---|---|
| 215706162d | |||
| 607234d727 |
12 changed files with 75 additions and 5 deletions
|
|
@ -1,8 +1,7 @@
|
|||
<?php
|
||||
require_once("language/language.php");
|
||||
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
|
||||
$lang = Language::getPreferredLanguage();
|
||||
echo $lang->get("Test");
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
|||
BIN
icons/apple-touch-icon.png
Normal file
BIN
icons/apple-touch-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
icons/favicon-96x96.png
Normal file
BIN
icons/favicon-96x96.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.9 KiB |
BIN
icons/favicon.ico
Normal file
BIN
icons/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
30
icons/favicon.svg
Normal file
30
icons/favicon.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 35 KiB |
21
icons/site.webmanifest
Normal file
21
icons/site.webmanifest
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"name": "Technologia Incognita",
|
||||
"short_name": "TechInc",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/icons/web-app-manifest-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "/icons/web-app-manifest-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
||||
BIN
icons/web-app-manifest-192x192.png
Normal file
BIN
icons/web-app-manifest-192x192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
icons/web-app-manifest-512x512.png
Normal file
BIN
icons/web-app-manifest-512x512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
16
index.php
16
index.php
|
|
@ -1,4 +1,18 @@
|
|||
<?php require_once("header.php"); ?>
|
||||
|
||||
<html lang="<?= $lang->languageCode ?>">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<!-- Favicons -->
|
||||
<link rel="icon" type="image/png" href="/icons/favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="icon" type="image/svg+xml" href="/icons/favicon.svg" />
|
||||
<link rel="shortcut icon" href="/icons/favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png" />
|
||||
<meta name="apple-mobile-web-app-title" content="TechInc" />
|
||||
<link rel="manifest" href="/icons/site.webmanifest" />
|
||||
<!-- Metadata -->
|
||||
<meta name="description" content="TechInc is a hackerspace in Amsterdam." />
|
||||
<title>Technologia Incognita</title>
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -8,4 +8,5 @@ class English extends Language {
|
|||
}
|
||||
}
|
||||
|
||||
return new English();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,11 @@ class Language {
|
|||
}
|
||||
|
||||
public static function getPreferredLanguage() {
|
||||
$language = Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
if (empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
||||
$language = "en";
|
||||
} else {
|
||||
$language = Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
}
|
||||
|
||||
$languages = array(
|
||||
"en",
|
||||
|
|
|
|||
|
|
@ -8,4 +8,5 @@ class Dutch extends Language {
|
|||
}
|
||||
}
|
||||
|
||||
return new Dutch();
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue