From 8794b464b49a81cdc2de2edf180c0ab172d7498d Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 2 Oct 2007 16:50:03 +0000 Subject: [PATCH] =?UTF-8?q?D=E9but=20ajout=20module=20"Phenix"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/menus/barre_top/default.php | 22 +++++++++++++++++++ .../menus/barre_top/eldy_backoffice.php | 18 +++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/htdocs/includes/menus/barre_top/default.php b/htdocs/includes/menus/barre_top/default.php index 72708ea4af3..95968c01bf5 100644 --- a/htdocs/includes/menus/barre_top/default.php +++ b/htdocs/includes/menus/barre_top/default.php @@ -329,6 +329,28 @@ class MenuTop { print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("Calendar").''; } + + // Webcal + if ($conf->phenix->enabled) + { + $langs->load("other"); + + $class=""; + if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "phenix") + { + $class='class="tmenu" id="sel"'; + } + elseif (ereg("^".DOL_URL_ROOT.".*\/phenix",$_SERVER["PHP_SELF"])) + { + $class='class="tmenu" id="sel"'; + } + else + { + $class = 'class="tmenu"'; + } + + print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("Calendar").''; + } // Mantis if ($conf->mantis->enabled) diff --git a/htdocs/includes/menus/barre_top/eldy_backoffice.php b/htdocs/includes/menus/barre_top/eldy_backoffice.php index a3fad4a5f96..353e42e15a6 100644 --- a/htdocs/includes/menus/barre_top/eldy_backoffice.php +++ b/htdocs/includes/menus/barre_top/eldy_backoffice.php @@ -360,6 +360,24 @@ class MenuTop { print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("Calendar").''; } + + // Phenix + if ($conf->phenix->enabled) + { + $langs->load("other"); + + $class=""; + if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "phenix") + { + $class='class="tmenu" id="sel"'; + } + else + { + $class = 'class="tmenu"'; + } + + print 'atarget?" target=$this->atarget":"").'>'.$langs->trans("Calendar").''; + } // Mantis if ($conf->mantis->enabled)