aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/menu/elements
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/navigation/menu/elements')
-rw-r--r--views/default/navigation/menu/elements/item.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/views/default/navigation/menu/elements/item.php b/views/default/navigation/menu/elements/item.php
new file mode 100644
index 000000000..f6959b2f4
--- /dev/null
+++ b/views/default/navigation/menu/elements/item.php
@@ -0,0 +1,10 @@
+<?php
+
+$item = $vars['item'];
+
+$class = '';
+if ($item->getSelected()) {
+ $class = 'class="selected"';
+}
+
+echo "<li $class>{$item->getLink()}</li>";