Skip to content
Extraits de code Groupes Projets
Valider aeee621a rédigé par mattpiwik's avatar mattpiwik
Parcourir les fichiers

Allowing one plugin to define 2 top bar menus

git-svn-id: http://dev.piwik.org/svn/trunk@5161 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent bfdc0dab
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -80,6 +80,7 @@ class Piwik_View implements Piwik_iView ...@@ -80,6 +80,7 @@ class Piwik_View implements Piwik_iView
{ {
try { try {
$this->currentModule = Piwik::getModule(); $this->currentModule = Piwik::getModule();
$this->currentAction = Piwik::getAction();
$userLogin = Piwik::getCurrentUserLogin(); $userLogin = Piwik::getCurrentUserLogin();
$this->userLogin = $userLogin; $this->userLogin = $userLogin;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{if isset($menu._html)} {if isset($menu._html)}
{$menu._html} {$menu._html}
{elseif $menu._url.module == $currentModule} {elseif $menu._url.module == $currentModule && (empty($menu._url.action) || $menu._url.action == $currentAction)}
<span class="topBarElem"><b>{$label|translate}</b></span> | <span class="topBarElem"><b>{$label|translate}</b></span> |
{else} {else}
<span class="topBarElem"><a id="topmenu-{$menu._url.module|strtolower}" href="index.php{$menu._url|@urlRewriteWithParameters}">{$label|translate}</a></span> | <span class="topBarElem"><a id="topmenu-{$menu._url.module|strtolower}" href="index.php{$menu._url|@urlRewriteWithParameters}">{$label|translate}</a></span> |
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter