3 namespace Friendica\Module;
5 use Friendica\BaseModule;
6 use Friendica\Core\Renderer;
9 class Manifest extends BaseModule
11 public static function rawContent(array $parameters = [])
13 $config = DI::config();
15 $tpl = Renderer::getMarkupTemplate('manifest.tpl');
17 header('Content-type: application/manifest+json');
19 $touch_icon = $config->get('system', 'touch_icon', 'images/friendica-128.png');
20 if ($touch_icon == '') {
21 $touch_icon = 'images/friendica-128.png';
24 $output = Renderer::replaceMacros($tpl, [
25 '$touch_icon' => $touch_icon,
26 '$title' => $config->get('config', 'sitename', 'Friendica'),