3 namespace Friendica\Module;
5 use Friendica\BaseModule;
6 use Friendica\Core\Renderer;
8 class Manifest extends BaseModule
10 public static function rawContent(array $parameters = [])
12 $app = self::getApp();
13 $config = $app->getConfig();
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'),