summaryrefslogtreecommitdiff
path: root/style/ArchLinux/archnavbar.php
diff options
context:
space:
mode:
Diffstat (limited to 'style/ArchLinux/archnavbar.php')
-rw-r--r--style/ArchLinux/archnavbar.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/style/ArchLinux/archnavbar.php b/style/ArchLinux/archnavbar.php
new file mode 100644
index 0000000..6478edd
--- /dev/null
+++ b/style/ArchLinux/archnavbar.php
@@ -0,0 +1,17 @@
+<?php global $arch_home, $arch_navbar, $arch_navbar_selected; ?>
+<div id="archnavbar" class="anb-forum">
+ <div id="archnavbarlogo"><h1><a href="<?php if (isset($arch_home)) { echo $arch_home; } ?>">Arch Linux</a></h1></div>
+ <div id="archnavbarmenu">
+ <ul id="archnavbarlist">
+ <?php
+ if (isset($arch_navbar)) {
+ foreach ($arch_navbar as $arch_name => $arch_url) {
+ echo '<li id="anb-'.strtolower($arch_name).'"'
+ .(isset($arch_navbar_selected) && $arch_navbar_selected == $arch_name ? ' class="anb-selected"' : '')
+ .'><a href="'.$arch_url.'">'.$arch_name.'</a></li>';
+ }
+ }
+ ?>
+ </ul>
+ </div>
+</div>