Skip to content

Commit

Permalink
Favicons - fixes #1547
Browse files Browse the repository at this point in the history
Added:
-Android homescreen
-Windows Metro
-macOS Safari (touchbar and Pinned tab)
-Opera Browser

Refreshed:
-iOS Web Clip
  • Loading branch information
Moris299 committed May 24, 2018
1 parent 2b272c1 commit 97e1590
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 2 deletions.
Binary file added images/icons/android-chrome-192x192.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/android-chrome-512x512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions images/icons/browserconfig.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/images/icons/mstile-150x150.png"/>
<TileColor>#04bd00</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added images/icons/favicon-16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/favicon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/favicon.ico
Binary file not shown.
Binary file added images/icons/mstile-150x150.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/icons/safari-pinned-tab.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions images/icons/site.webmanifest
@@ -0,0 +1,19 @@
{
"name": "Opencaching",
"short_name": "Opencaching",
"icons": [
{
"src": "/images/icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/images/icons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
13 changes: 11 additions & 2 deletions tpl/stdstyle/common/main.tpl.php
Expand Up @@ -14,8 +14,17 @@
<title><?=$tpl_subtitle?>{title}</title>

<link rel="shortcut icon" href="/images/<?=$config['headerFavicon']?>">
<link rel="apple-touch-icon-precomposed" href="/images/oc_logo_144.png">

<link rel="apple-touch-icon" sizes="180x180" href="/images/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/icons/favicon-16x16.png">
<link rel="manifest" href="/images/icons/site.webmanifest">
<link rel="mask-icon" href="/images/icons/safari-pinned-tab.svg" color="#5bbad5">
<meta name="apple-mobile-web-app-title" content="Opencaching">
<meta name="application-name" content="Opencaching">
<meta name="msapplication-TileColor" content="#04bd00">
<meta name="msapplication-config" content="/images/icons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">

<link rel="stylesheet" type="text/css" media="screen" href="<?=$view->screenCss?>">
<link rel="stylesheet" type="text/css" media="print" href="<?=$view->printCss?>">

Expand Down

0 comments on commit 97e1590

Please sign in to comment.