'PersoFavicon',
'URL' => get_admin_plugin_menu_link(PFI_PATH . 'admin/admin.php')));
return $menu;
}
// Remplace le code dans le header
add_event_handler('loc_begin_page_header', 'Change_Favicon', 55 );
function Change_Favicon()
{
global $template;
$template->set_prefilter('header', 'Favicon');
}
function Favicon($content, &$smarty)
{
$search = '##';
global $conf;
$favicon_name = & $conf['PersoFavicon'];
if (!empty($favicon_name))
{
$replacement = '';
}
else
{
$replacement = '';
}
return preg_replace($search, $replacement, $content);
}
?>