Commit 60c9872e authored by Fabrice Gangler's avatar Fabrice Gangler 🎨 Committed by Matthieu FAURE
Browse files

FEAT(mapping): add this item in main nav bar

Refs: #897
parent ef6c9132
......@@ -28,6 +28,10 @@ msgstr ""
msgid "Comptoir du libre - back home"
msgstr ""
#: Template/Element/Navigation/navbarFixedTop.ctp:
msgid "navbar.mapping"
msgstr ""
#: Template/Element/Navigation/navbarFixedTop.ctp:41;44
msgid "All softwares"
msgstr ""
......
......@@ -28,6 +28,10 @@ msgstr "Comptoir du libre"
msgid "Comptoir du libre - back home"
msgstr "Comptoir du libre - back home"
#: Template/Element/Navigation/navbarFixedTop.ctp:
msgid "navbar.mapping"
msgstr "Mapping"
#: Template/Element/Navigation/navbarFixedTop.ctp:41;44
msgid "All softwares"
msgstr "All softwares"
......
......@@ -29,6 +29,10 @@ msgstr "Comptoir du libre"
msgid "Comptoir du libre - back home"
msgstr "Comptoir du libre - retour à l'accueil"
#: Template/Element/Navigation/navbarFixedTop.ctp:
msgid "navbar.mapping"
msgstr "Cartographie"
#: Template/Element/Navigation/navbarFixedTop.ctp:41;44
msgid "All softwares"
msgstr "Logiciels"
......
......@@ -45,6 +45,22 @@
<?php // ===== main navigation bar ============================================================== ?>
<ul class="nav navbar-nav navbar-left nav-pull-down" id="navbar-mainMenu">
<?php
$txtMapping = __d("ElementNavigation", "navbar.mapping") ;
$urlMapping = '/en/mapping/';
if($selectedLanguage === 'fr') {
$urlMapping = '/fr/cartographie/';
}
?>
<?php if ($this->isHere("Taxonomys", 'mapping')): ?>
<li class="current">
<span class=" text-center"><?= __d("ElementNavigation", "navbar.mapping") ?></span>
</li>
<?php else: ?>
<li> <?= $this->Html->link($txtMapping, $urlMapping, ["id" => "mappingPage"]) ?></li>
<?php endif; ?>
<?php if ($this->isHere("Softwares")): ?>
<li class="current">
<span class=" text-center"><?= __d("ElementNavigation", "All softwares") ?></span>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment