mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 17:49:58 -06:00
feat: add favicon and web app manifest support
- Introduced new favicon files: apple-touch-icon.png, favicon-96x96.png, favicon.ico, favicon.svg. - Updated auth-request.php to include new favicon paths in the whitelist. - Added web app manifest files: web-app-manifest-192x192.png, web-app-manifest-512x512.png, and created a manifest.json structure in ThemeHelper. - Refactored DefaultPageLayout to include favicon links and manifest reference. This update enhances the application's branding and improves the user experience on mobile devices.
This commit is contained in:
11
emhttp/plugins/dynamix/include/DefaultPageLayout/Favicon.php
Normal file
11
emhttp/plugins/dynamix/include/DefaultPageLayout/Favicon.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
|
||||
$themeHelper->checkManifestFile();
|
||||
?>
|
||||
|
||||
<link type="image/png" rel="shortcut icon" href="/webGui/images/<?= _var($var, 'mdColor', 'red-on') ?>.png">
|
||||
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<meta name="apple-mobile-web-app-title" content="<?= _var($var, 'NAME') ?>" />
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
Reference in New Issue
Block a user