Revision history for WikkaFavicon


Revision [18967]

Last edited on 2008-01-28 00:13:28 by OlivierBorowski [Modified links pointing to docs server]

No Differences

Revision [15495]

Edited on 2006-10-13 08:21:07 by OlivierBorowski [Modified links pointing to docs server]
Additions:
With the current method, default favicon.ico need to be overwritten by a personalized one.
Problems:
- update : updating a wikka installation (folder copy) erase custom favicon.ico
- //w3 : png support would be greater for linux users (only for 2nd proposal)//
Proposal:
- add ##'favicon' => 'images/favicon.ico'## parameter to wikka.config.php
##actions/header.php##:
- current :
- proposal :
%%(php)
// ===== favicon =====
$favicon = $this->GetConfigValue("favicon");
if ($favicon == '') { $favicon = 'images/favicon.ico'; }
echo ' <link rel="icon" href="'.$favicon.'" type="image/x-icon" />'."\n";
echo ' <link rel="shortcut icon" href="'.$favicon.'" type="image/x-icon" />'."\n";
- best (only useful when when pigs might fly and ie support standards) :
%%(php)
// ===== favicon =====
$favicon = $this->GetConfigValue("favicon");
if ($favicon == '') { $favicon = 'images/favicon.ico'; }
if (substr($favicon, -4) == ".png") {
echo ' <link rel="icon" type="image/png" href="'.$favicon.'" />'."\n";
} elseif (substr($favicon, -4) == ".gif") {
echo ' <link rel="icon" type="image/gif" href="'.$favicon.'" />'."\n";
} elseif (substr($favicon, -4) == ".ico") {
echo ' <link rel="icon" href="'.$favicon.'" type="image/x-icon" />'."\n";
echo ' <link rel="shortcut icon" href="'.$favicon.'" type="image/x-icon" />'."\n";
}
__note__ : could it be useful to allow disabling favicon? ('favicon' => 'none')


Revision [10874]

The oldest known version of this page was created on 2005-08-28 13:06:47 by DarTar [Modified links pointing to docs server]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki