Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/style/ArchLinux/archnavbar.php
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 08:57:06 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 08:57:06 +0100
commitada3beb0a6c649bd9bfc6a87b2fe69ee8ae563f7 (patch)
treedf74b326c096fad4d74b90988caed727c15847ef /style/ArchLinux/archnavbar.php
initial checkin
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>