mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:42:54 +00:00
35abc4bb64
implement getMarkupTemplate function
28 lines
605 B
PHP
28 lines
605 B
PHP
<?php
|
|
|
|
use Friendica\App;
|
|
use Friendica\Core\System;
|
|
use Friendica\Core\Config;
|
|
use Friendica\Core\Renderer;
|
|
|
|
function manifest_content(App $a) {
|
|
|
|
$tpl = Renderer::getMarkupTemplate('manifest.tpl');
|
|
|
|
header('Content-type: application/manifest+json');
|
|
|
|
$touch_icon = Config::get('system', 'touch_icon', 'images/friendica-128.png');
|
|
if ($touch_icon == '') {
|
|
$touch_icon = 'images/friendica-128.png';
|
|
}
|
|
|
|
$o = Renderer::replaceMacros($tpl, [
|
|
'$baseurl' => System::baseUrl(),
|
|
'$touch_icon' => $touch_icon,
|
|
'$title' => Config::get('config', 'sitename', 'Friendica'),
|
|
]);
|
|
|
|
echo $o;
|
|
|
|
killme();
|
|
}
|