Label du menu
This commit is contained in:
parent
2edd863849
commit
ab8666c938
@ -1,7 +1,7 @@
|
||||
<div role="navigation" class="navbar-default sidebar">
|
||||
<div class="sidebar-nav navbar-collapse">
|
||||
<ul id="side-menu" class="nav in">
|
||||
<li class="sidebar-head"><strong>Recherche</strong></li>
|
||||
<li class="sidebar-head"><strong><?=$this->MenuLabel?></strong></li>
|
||||
<?php foreach ($this->navigation()->getContainer() as $page) {?>
|
||||
<li>
|
||||
<a href="<?=$page->getHref()?>" class="<?php if ($page->isActive(true)) { echo 'active'; } ?>"><?=$page->label?>
|
||||
|
@ -39,6 +39,7 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
|
||||
case 'search':
|
||||
$view = $layout->getView();
|
||||
$view->MenuAdvanced = true;
|
||||
$view->MenuLabel = 'Recherche';
|
||||
$config = include APPLICATION_PATH . '/configs/menu.search.php';
|
||||
$container = new Zend_Navigation($config);
|
||||
$view->navigation($container);
|
||||
@ -47,6 +48,18 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
|
||||
$view->headScript()
|
||||
->appendFile('/libs/metisMenu/metisMenu.js', 'text/javascript');
|
||||
break;
|
||||
case 'user':
|
||||
$view = $layout->getView();
|
||||
$view->MenuAdvanced = true;
|
||||
$view->MenuLabel = 'Mon compte';
|
||||
$config = include APPLICATION_PATH . '/configs/menu.user.php';
|
||||
$container = new Zend_Navigation($config);
|
||||
$view->navigation($container);
|
||||
$view->headLink()
|
||||
->appendStylesheet('/libs/metisMenu/metisMenu.css', 'all');
|
||||
$view->headScript()
|
||||
->appendFile('/libs/metisMenu/metisMenu.js', 'text/javascript');
|
||||
break;
|
||||
default:
|
||||
// --- Override SIRET to complete with zero by left
|
||||
$siret = $request->getParam('siret');
|
||||
|
Loading…
Reference in New Issue
Block a user