CC-1949 : Showing the active page/section in the main navigation
This commit is contained in:
parent
df8b9af8f6
commit
fedad86eb8
|
@ -1,7 +1,7 @@
|
|||
<ul id="nav">
|
||||
<?php foreach ($this->container as $page) : ?>
|
||||
<?php if($this->navigation()->accept($page)) : ?>
|
||||
<li class="top">
|
||||
<li class="top <?php if($page->isActive(true)){echo 'active';} ?>">
|
||||
<?php if($page->hasPages()) : ?>
|
||||
<a class="top_link" href="<?php echo $page->getHref(); ?>">
|
||||
<span class="down"><?php echo $page->getLabel(); ?></span>
|
||||
|
|
|
@ -53,7 +53,7 @@ way to fit your requirements.
|
|||
background:url(images/down_arrow.png) no-repeat right 50%;
|
||||
|
||||
}
|
||||
#nav li:hover a.top_link {
|
||||
#nav li:hover a.top_link, #nav li.active a.top_link, #nav li.active:hover a.top_link {
|
||||
color:#fff;
|
||||
background:#000;
|
||||
-moz-border-radius: 3px;
|
||||
|
|
Loading…
Reference in New Issue