first commit
This commit is contained in:
23
apps/backend/modules/stBackend/templates/_menu.php
Normal file
23
apps/backend/modules/stBackend/templates/_menu.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
use_helper('stBackend');
|
||||
/**
|
||||
* @var stNavigationMenuItem[] $items
|
||||
*/
|
||||
?>
|
||||
<ul<?php if ($inverted): ?> class="inverted"<?php endif ?>>
|
||||
<?php foreach ($items as $item): $children = $item->getItems() ?>
|
||||
<li<?php if ($children): ?> class="expandable"<?php endif; ?>>
|
||||
<?php if ($item->getUrl()): ?>
|
||||
<a href="<?php echo st_url_for($item->getUrl()) ?>">
|
||||
<?php if($item->getIcon()): ?><img src="<?php echo get_app_icon($item->getIcon()); ?>" alt="" /><?php endif; ?>
|
||||
<span><?php echo __($item->getTitle(), null, $item->getI18n()) ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span><?php echo __($item->getTitle(), null, $item->getI18n()) ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ($children): ?>
|
||||
<?php echo st_get_fast_partial('stBackend/menu', array('items' => $children, 'inverted' => !$inverted), true) ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user