4 use Friendica\Core\System;
5 use Friendica\Core\Config;
6 use Friendica\Core\Renderer;
8 function manifest_content(App $a) {
10 $tpl = Renderer::getMarkupTemplate('manifest.tpl');
12 header('Content-type: application/manifest+json');
14 $touch_icon = Config::get('system', 'touch_icon', 'images/friendica-128.png');
15 if ($touch_icon == '') {
16 $touch_icon = 'images/friendica-128.png';
19 $o = Renderer::replaceMacros($tpl, [
20 '$baseurl' => System::baseUrl(),
21 '$touch_icon' => $touch_icon,
22 '$title' => Config::get('config', 'sitename', 'Friendica'),