Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
519B

  1. <?php
  2. use Friendica\Core\Config;
  3. function manifest_content(App $a) {
  4. $tpl = get_markup_template('manifest.tpl');
  5. header('Content-type: application/manifest+json');
  6. $touch_icon = Config::get('system', 'touch_icon', 'images/friendica-128.png');
  7. if ($touch_icon == '') {
  8. $touch_icon = 'images/friendica-128.png';
  9. }
  10. $o = replace_macros($tpl, array(
  11. '$baseurl' => App::get_baseurl(),
  12. '$touch_icon' => $touch_icon,
  13. '$title' => Config::get('config', 'sitename', 'Friendica'),
  14. ));
  15. echo $o;
  16. killme();
  17. }