diff options
author | Phie <phie@phie.ovh> | 2019-09-11 10:19:43 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-09-11 10:19:43 +0300 |
commit | d1932d57e7afc5992c582f5eb08bb8927c914f7a (patch) | |
tree | 96bd5fe19b18a578e955c893779ffa33f4261403 /templates | |
parent | 70442d92a9869b13aaf282dccf31433ab66f4d1d (diff) |
put back headers
Diffstat (limited to 'templates')
-rwxr-xr-x | templates/index.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/index.php b/templates/index.php index 957b7e2..fc50f62 100755 --- a/templates/index.php +++ b/templates/index.php @@ -24,9 +24,16 @@ $file = preg_replace_callback('/<script(.*?)src=\"(.*?\.js(?:\?.*?)?)"/s',functi // token is needed to pass the csfr check $file .= "<span style=\"display:none;\" id=\"token\">".$_['requesttoken']."</span>"; if($_['carnet_display_fullscreen']==="yes"){ + $file = str_replace('</head>', " + <link rel=\"apple-touch-icon-precomposed\" href=\"".image_path('', 'favicon-touch.png')."\" /> + <link rel=\"icon\" href=\"".image_path('', 'favicon.ico')."\"> + <link rel=\"mask-icon\" sizes=\"any\" href=\"".image_path('', 'favicon-mask.svg')."\" color=\"".$theme->getColorPrimary()."\"> + <link rel=\"manifest\" href=\"".image_path('', 'manifest.json')."\"> + </head>", $file); $file .= "<script src=\"compatibility/nextcloud/fullscreen.js?mtime=\"></script>"; if($_['nc_version']>=16) style("carnet","../templates/CarnetElectron/compatibility/nextcloud/nc16"); + } else { if($_['nc_version']>=14) |