forked from lightmaster/Meteobridge-Weather34-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.php
30 lines (28 loc) · 773 Bytes
/
manifest.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
<?php
include('./settings1.php');
$sitebase=substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/') + 1);
$manifest = [
"name" => $stationName.' Weather',
"short_name" => $manifestShortName,
"start_url" => $sitebase,
"display" => "standalone",
"background_color" => "#000000",
"theme_color" => "#000000",
"scope" => $sitebase,
"prefer_related_applications" => false,
"icons" => [
[
"src" => "img/android-chrome-192x192.png",
"sizes"=> "192x192",
"type" => "image/png"
],
[
"src" => "img/android-chrome-512x512.png",
"sizes" => "512x512",
"type" => "image/png"
]
]
];
header('Content-Type: application/json');
echo json_encode($manifest);
?>