Files
server/usr/share/psa-horde/templates/tree/menu.html.php
2026-01-07 20:52:11 +01:00

22 lines
1.4 KiB
PHP

<?php foreach ($this->rootItems as $item): ?>
<div class="horde-navipoint">
<div class="horde-point-left<?php if ($this->items[$item]['active']): ?>-active<?php endif ?>"></div>
<ul class="horde-dropdown">
<li>
<div class="<?php echo $this->items[$item]['class'] ?>">
<a class="horde-mainnavi<?php if ($this->items[$item]['active']): ?>-active<?php endif ?>" href="<?php echo $this->items[$item]['url'] ?: '#' ?>"<?php if (!empty($this->items[$item]['target'])) echo ' target="' . $this->items[$item]['target'] . '"'?><?php if (!empty($this->items[$item]['onclick'])) echo ' onclick="' . htmlspecialchars($this->items[$item]['onclick']) . '"'?>>
<?php if (!empty($this->items[$item]['children']) && empty($this->items[$item]['noarrow'])): ?>
<span class="horde-point-arrow<?php if ($this->items[$item]['active']): ?>-active<?php endif ?>">&#9662;</span>
<?php endif ?>
<?php echo htmlspecialchars($this->items[$item]['label']) ?>
</a>
</div>
<?php if (!empty($this->items[$item]['children'])): ?>
<?php echo $this->renderPartial('submenu', array('locals' => array('items' => $this->items[$item]['children']))) ?>
<?php endif ?>
</li>
</ul>
<div class="horde-point-right<?php if ($this->items[$item]['active']): ?>-active<?php endif ?>"></div>
</div>
<?php endforeach ?>