]> git.mxchange.org Git - friendica.git/blob - mod/manifest.php
Merge remote-tracking branch 'upstream/develop' into 1706-lock
[friendica.git] / mod / manifest.php
1 <?php
2
3 use Friendica\App;
4 use Friendica\Core\Config;
5
6 function manifest_content(App $a) {
7
8         $tpl = get_markup_template('manifest.tpl');
9
10         header('Content-type: application/manifest+json');
11
12         $touch_icon = Config::get('system', 'touch_icon', 'images/friendica-128.png');
13         if ($touch_icon == '') {
14                 $touch_icon = 'images/friendica-128.png';
15         }
16
17         $o = replace_macros($tpl, array(
18                 '$baseurl' => App::get_baseurl(),
19                 '$touch_icon' => $touch_icon,
20                 '$title' => Config::get('config', 'sitename', 'Friendica'),
21         ));
22
23         echo $o;
24
25         killme();
26 }