From a1fa53cb95036e44d59c885aec9d9c79ee15ced0 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Thu, 28 Feb 2013 15:15:52 +0000 Subject: [PATCH] =?UTF-8?q?Possibilit=C3=A9=20de=20surcharger=20proprement?= =?UTF-8?q?=20le=20logo=20du=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 2 +- bureau/admin/{ => images}/logo3.png | Bin bureau/admin/menu.php | 8 +++++++- 3 files changed, 8 insertions(+), 2 deletions(-) rename bureau/admin/{ => images}/logo3.png (100%) diff --git a/.gitattributes b/.gitattributes index 28653009..4d227627 100644 --- a/.gitattributes +++ b/.gitattributes @@ -213,6 +213,7 @@ bureau/admin/images/help.png -text bureau/admin/images/home.png -text bureau/admin/images/ip.png -text bureau/admin/images/lang.png -text +bureau/admin/images/logo3.png -text bureau/admin/images/logs.png -text bureau/admin/images/mail.png -text bureau/admin/images/menu_moins.png -text @@ -281,7 +282,6 @@ bureau/admin/js/prototype.js -text bureau/admin/login.php -text bureau/admin/logo.png -text bureau/admin/logo2.png -text -bureau/admin/logo3.png -text bureau/admin/logs_download.php -text bureau/admin/logs_list.php -text bureau/admin/mail_add.php -text diff --git a/bureau/admin/logo3.png b/bureau/admin/images/logo3.png similarity index 100% rename from bureau/admin/logo3.png rename to bureau/admin/images/logo3.png diff --git a/bureau/admin/menu.php b/bureau/admin/menu.php index 7b5f57b5..27dbb7bb 100644 --- a/bureau/admin/menu.php +++ b/bureau/admin/menu.php @@ -29,8 +29,14 @@ */ require_once("../class/config.php"); +$logo = variable_get('menu_logo', 0 ,'You can specify a logo for your AlternC, example /images/my_logo.png . Set 0 or empty to reset it. '); + +if ( empty($logo) || ! $logo ) { + $logo = 'images/logo3.png'; +} + ?> -"/> +"/>

user["login"]); ?>