wootook-reloaded/application/design/frontend/base/default/scripts/page/html/navigation.phtml
Gregory PLANCHAT 66805034a6 Configuration & Layout architecture updates
Fixed production bug
Fixed styles
Updated Action Controller

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
2012-01-13 23:36:03 +01:00

28 lines
978 B
PHTML

<div class="navigation-container">
<div class="navigation">
<?php foreach ($this->getAllPartials() as $partial):?>
<div class="navigation-node" rel="<?php echo $this->escape($partial->getNameInLayout())?>">
<p class="title"><?php echo $this->escape($partial->getTitle())?></p>
</div>
<?php endforeach?>
<span class="last"></span>
<?php foreach ($this->getAllPartials() as $partial):?>
<?php echo $partial->render()?>
<?php endforeach?>
</div>
<script type="text/javascript">
//<![CDATA[
(function($){
var navigation = $('.navigation');
$('.navigation-node', navigation).mouseenter(function(e){
$('.navigation-node', $(this).parent()).removeClass('hover');
$(this).addClass('hover');
$('.navigation-links', $(this).parent()).hide();
var rel = ($(this).attr('rel')).replace(/(\.|\\|\\:|\\#)/, '\\$1');
$('#navigation\\:' + rel).show();
});
})(jQuery);
//]]>
</script>
</div>