summaryrefslogtreecommitdiff
path: root/style/ArchLinux/archnavbar.php
blob: 6478edd9669806430a8408cc018fb3014b9b69ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>