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)