Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fiktivkod/library/Fiktiv/View/Helper/RenderSubMenu.php
2010-10-02 00:09:06 +02:00

17 lines
No EOL
487 B
PHP

<?php
class Fiktiv_View_Helper_RenderSubMenu extends Zend_View_Helper_Abstract
{
public function renderSubMenu()
{
$navigation = $this->view->navigation();
$container = $navigation->getContainer();
$active = $navigation->menu()->findActive($navigation->getContainer());
if ($active && $active['page']->hasPages()) {
return $navigation->menu()->setUlClass('subnav')->renderSubMenu();
}
return '';
}
}