diff --git a/static/routes.config.php b/static/routes.config.php index 4ad122fbf..879a48db8 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -301,6 +301,7 @@ return [ '/magic' => [Module\Magic::class, [R::GET]], '/maintenance' => [Module\Maintenance::class, [R::GET]], '/manifest' => [Module\Manifest::class, [R::GET]], + '/friendica.webmanifest' => [Module\Manifest::class, [R::GET]], '/modexp/{nick}' => [Module\PublicRSAKey::class, [R::GET]], '/newmember' => [Module\Welcome::class, [R::GET]], '/nodeinfo/1.0' => [Module\NodeInfo110::class, [R::GET]], diff --git a/view/theme/frio/templates/head.tpl b/view/theme/frio/templates/head.tpl index 65af7692d..7c8123744 100644 --- a/view/theme/frio/templates/head.tpl +++ b/view/theme/frio/templates/head.tpl @@ -1,4 +1,3 @@ - {{* This content will be added to the html page *}} @@ -8,86 +7,137 @@ {{* All needed css files - Note: css must be inserted before js files *}} - - - - + + + + - - - - - - - - - - - + + + + + + + + + + + {{* own css files *}} - - + + {{foreach $stylesheets as $stylesheetUrl => $media}} - + {{/foreach}} - + - + + + // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat + // Prevents links to switch to Safari in a home screen app - see https://gist.github.com/irae/1042167 + (function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(chref=d.href).replace("{{$baseurl}}/", "").replace(e.href,"").indexOf("#")&&(!/^[a-z\+\.\-]+:/i.test(chref)||chref.indexOf(e.protocol+"//"+e.host)===0)&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone"); + // |license-end + - + -{{* The js files we use *}} - - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + -{{* own js files *}} - - -{{if ! $block_public}} - -{{/if}} - + {{* own js files *}} + + + {{if ! $block_public}} + + {{/if}} + -{{* Include the strings which are needed for some js functions (e.g. translation) + {{* Include the strings which are needed for some js functions (e.g. translation) They are loaded into the html so that js functions can use them *}} -{{include file="js_strings.tpl"}} + {{include file="js_strings.tpl"}}