left-side.phtml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!--
  2. left navigation view partial
  3. displaying only one level of submenus, all menus and submenus except for the
  4. heading will have links.
  5. accordion is also disabled
  6. -->
  7. <ul class="nav nav-list">
  8. <li class="nav-header">
  9. <?php if (isset($this->menu->icon)) { ?>
  10. <i class="<?php echo $this->menu->icon; ?>"></i>
  11. <?php } ?>
  12. <?php echo $this->menu->label; ?>
  13. </li>
  14. <?php foreach ($this->menu->pages as $key => $page) { ?>
  15. <?php if ((!$page->settings || (intval($this->settings[(string)$page->settings['name']]) == $page->settings['value'])) &&
  16. $this->navigation()->accept($page) &&
  17. $page->hidden != 'true'
  18. ) {
  19. ?>
  20. <li class="nav-subheader<?php echo ($page->isActive(true)) ? ' active' : ''; ?>">
  21. <a href="<?php echo $this->url($page->params); ?>">
  22. <?php echo $page->label; ?>
  23. </a>
  24. </li>
  25. <?php if (!empty($page->pages)) { ?>
  26. <?php foreach ($page->pages as $subKey => $subPage) { ?>
  27. <?php if ((!$subPage->settings || (intval($this->settings[(string)$subPage->settings['name']]) == $subPage->settings['value'])) &&
  28. $this->navigation()->accept($subPage) &&
  29. $subPage->hidden != 'true'
  30. ) {
  31. ?>
  32. <li class="nav-tab<?php echo ($subPage->isActive(true)) ? ' active' : ''; ?>">
  33. <a href="<?php echo $this->url($subPage->params); ?>">
  34. <?php echo $subPage->label; ?>
  35. </a>
  36. </li>
  37. <?php } ?>
  38. <?php } ?>
  39. <?php } ?>
  40. <?php } ?>
  41. <?php } ?>
  42. </ul>