]> git.p6c8.net - jirafeau.git/commitdiff
[FEATURE] Enable custom favicons
authorDan Untenzu <untenzu@webit.de>
Fri, 17 Mar 2017 14:54:22 +0000 (15:54 +0100)
committerDan Untenzu <untenzu@webit.de>
Fri, 17 Mar 2017 14:54:22 +0000 (15:54 +0100)
Enable integrators to add custom favicons by
including it from the media folder (themes).

lib/template/header.php
media/courgette/favicon.ico [moved from favicon.ico with 100% similarity]
media/elegantish/favicon.ico [new file with mode: 0644]
media/industrial/favicon.ico [new file with mode: 0644]
media/jyraphe/favicon.ico [new file with mode: 0644]

index f984e1c14392cbe860bb0eeb74bd5d794fd2f9c7..f03b2bacbbb925091f92b30496e920b984e573b9 100644 (file)
@@ -7,6 +7,7 @@ header('x-ua-compatible: ie=edge');
 <head>
   <meta charset="utf-8">
   <title><?php echo (true === empty($cfg['title']))? t('Jirafeau, your web file repository') : $cfg['title']; ?></title>
 <head>
   <meta charset="utf-8">
   <title><?php echo (true === empty($cfg['title']))? t('Jirafeau, your web file repository') : $cfg['title']; ?></title>
+  <link rel="shortcut icon" href="<?php echo JIRAFEAU_ABSPREFIX . 'media/' . $cfg['style'] . '/favicon.ico'; ?>">
   <link href="<?php echo JIRAFEAU_ABSPREFIX . 'media/' . $cfg['style'] . '/style.css.php'; ?>" rel="stylesheet" type="text/css" />
 </head>
 <body>
   <link href="<?php echo JIRAFEAU_ABSPREFIX . 'media/' . $cfg['style'] . '/style.css.php'; ?>" rel="stylesheet" type="text/css" />
 </head>
 <body>
similarity index 100%
rename from favicon.ico
rename to media/courgette/favicon.ico
diff --git a/media/elegantish/favicon.ico b/media/elegantish/favicon.ico
new file mode 100644 (file)
index 0000000..c42c696
Binary files /dev/null and b/media/elegantish/favicon.ico differ
diff --git a/media/industrial/favicon.ico b/media/industrial/favicon.ico
new file mode 100644 (file)
index 0000000..c42c696
Binary files /dev/null and b/media/industrial/favicon.ico differ
diff --git a/media/jyraphe/favicon.ico b/media/jyraphe/favicon.ico
new file mode 100644 (file)
index 0000000..c42c696
Binary files /dev/null and b/media/jyraphe/favicon.ico differ

patrick-canterino.de