]> git.mxchange.org Git - friendica.git/blob - mod/manifest.php
The central item fetch does work now and the API now uses these functions
[friendica.git] / mod / manifest.php
1 <?php
2
3 use Friendica\App;
4 use Friendica\Core\System;
5 use Friendica\Core\Config;
6
7 function manifest_content(App $a) {
8
9         $tpl = get_markup_template('manifest.tpl');
10
11         header('Content-type: application/manifest+json');
12
13         $touch_icon = Config::get('system', 'touch_icon', 'images/friendica-128.png');
14         if ($touch_icon == '') {
15                 $touch_icon = 'images/friendica-128.png';
16         }
17
18         $o = replace_macros($tpl, [
19                 '$baseurl' => System::baseUrl(),
20                 '$touch_icon' => $touch_icon,
21                 '$title' => Config::get('config', 'sitename', 'Friendica'),
22         ]);
23
24         echo $o;
25
26         killme();
27 }