favicon in metadata

This commit is contained in:
Yuri Kuznetsov
2020-02-19 16:55:19 +02:00
parent 02948e09c5
commit 575cdf8f5b
2 changed files with 5 additions and 3 deletions

View File

@@ -153,6 +153,8 @@ class ClientManager
'scriptsHtml' => $scriptsHtml,
'additionalStyleSheetsHtml' => $additionalStyleSheetsHtml,
'linksHtml' => $linksHtml,
'favicon196Path' => $this->getMetadata()->get(['app', 'client', 'favicon196']) ?? 'client/img/favicon196x196.png',
'faviconPath' => $this->getMetadata()->get(['app', 'client', 'favicon']) ?? 'client/img/favicon.ico',
];
$html = file_get_contents($htmlFilePath);

View File

@@ -9,9 +9,9 @@
<meta name="description" content="EspoCRM is Open Source CRM application. Increase profitability through customer loyalty!">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="shortcut icon" sizes="196x196" href="{{basePath}}client/img/favicon196x196.png">
<link rel="icon" href="{{basePath}}client/img/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="{{basePath}}client/img/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" sizes="196x196" href="{{basePath}}{{favicon196Path}}">
<link rel="icon" href="{{basePath}}{{faviconPath}}" type="image/x-icon">
<link rel="shortcut icon" href="{{basePath}}{{faviconPath}}" type="image/x-icon">
<script type="text/javascript">
$(function () {
Espo.loader.cacheTimestamp = {{loaderCacheTimestamp}};