Ajoute la possibilité de personnaliser les logo d'AlternC suivant l'url utilisé -> utile pour l'hébergement mutualisé en marque blanche

This commit is contained in:
Alan Garcia 2013-12-11 15:45:00 +00:00
parent b9db60556c
commit 9fdf25eb19
2 changed files with 18 additions and 6 deletions

View File

@ -59,10 +59,16 @@ if (file_exists("styles/style-custom.css") ) {
<div id="global">
<div id="content" style="width:1000px;">
<?php
$logo = variable_get('logo_login', 0 ,'You can specify a logo for the login page, example /images/my_logo.png . Set 0 or empty to reset it. ');
if ( empty($logo) || ! $logo ) { $logo = 'images/logo.png'; }
?>
<?php
// Getting logo
$logo = variable_get('logo_login_'.strtolower($_SERVER['HTTP_HOST']), '', 'You can specify a logo for the login page for a specific URL of the panel');
if ( empty($logo) || ! $logo ) {
$logo = variable_get('logo_login', '' ,'You can specify a logo for the login page, example /images/my_logo.png . Set 0 or empty to reset it. ');
}
if ( empty($logo) || ! $logo ) {
$logo = 'images/logo.png';
}
?>
<p id="logo"> <img src="<?php echo $logo; ?>" border="0" alt="<?php __("Web Hosting Control Panel"); ?>" title="<?php __("Web Hosting Control Panel"); ?>" />
</p>

View File

@ -29,8 +29,14 @@
*/
require_once("../class/config.php");
$logo = variable_get('logo_menu', 0 ,'You can specify a logo for the menu, example /images/my_logo.png . Set 0 or empty to reset it. ');
if ( empty($logo) || ! $logo ) { $logo = 'images/logo3.png'; }
// Getting logo
$logo = variable_get('logo_menu_'.strtolower($_SERVER['HTTP_HOST']), '', 'You can specify a logo for the menu for a specific URL of the panel');
if ( empty($logo) || ! $logo ) {
$logo = variable_get('logo_menu', '' ,'You can specify a logo for the menu, example /images/my_logo.png . Set 0 or empty to reset it. ');
}
if ( empty($logo) || ! $logo ) {
$logo = 'images/logo3.png';
}
?>
<img src="<?php echo $logo; ?>" class="menutoplogo" border="0" alt="AlternC" width='190px' height='46px' />