Move language selection to a drop-down list
[aur.git] / web / template / header.php
blob023c44ddb2a40aa990d79c850b5d78197dff3c1f
1 <?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml"
5 xml:lang="<?php print htmlspecialchars($LANG, ENT_QUOTES) ?>" lang="<?php print htmlspecialchars($LANG, ENT_QUOTES) ?>">
6 <head>
7 <title>AUR (<?php print htmlspecialchars($LANG); ?>)<?php if ($title != "") { print " - " . htmlspecialchars($title); } ?></title>
8 <link rel='stylesheet' type='text/css' href='css/fonts.css' />
9 <link rel='stylesheet' type='text/css' href='css/containers.css' />
10 <link rel='stylesheet' type='text/css' href='css/arch.css' />
11 <link rel='stylesheet' type='text/css' href='css/archweb.css' />
12 <link rel='stylesheet' type='text/css' href='css/aur.css' />
13 <link rel='shortcut icon' href='images/favicon.ico' />
14 <link rel='alternate' type='application/rss+xml' title='Newest Packages RSS' href='rss.php' />
15 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
16 </head>
17 <body>
18 <div id="archnavbar" class="anb-aur">
19 <div id="archnavbarlogo"><h1><a href="/" title="Return to the main page">Arch Linux</a></h1></div>
20 <div id="archnavbarmenu">
21 <ul id="archnavbarlist">
22 <li id="anb-home"><a href="http://www.archlinux.org/" title="Arch news, packages, projects and more">Home</a></li>
23 <li id="anb-packages"><a href="http://www.archlinux.org/packages/" title="Arch Package Database">Packages</a></li>
24 <li id="anb-forums"><a href="https://bbs.archlinux.org/" title="Community forums">Forums</a></li>
25 <li id="anb-wiki"><a href="https://wiki.archlinux.org/" title="Community documentation">Wiki</a></li>
26 <li id="anb-bugs"><a href="https://bugs.archlinux.org/" title="Report and track bugs">Bugs</a></li>
27 <li id="anb-aur"><a href="/" title="Arch Linux User Repository">AUR</a></li>
28 <li id="anb-download"><a href="http://www.archlinux.org/download/" title="Get Arch Linux">Download</a></li>
29 </ul>
30 </div>
31 </div><!-- #archnavbar -->
33 <div id="content">
34 <div id="lang_sub">
35 <form method="get" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES) ?>">
36 <fieldset>
37 <div>
38 <select name="setlang" id="id_setlang">
39 <?php
40 reset($SUPPORTED_LANGS);
41 foreach ($SUPPORTED_LANGS as $lang => $lang_name) {
43 print '<option value="' . strtolower($lang) . '"' .
44 ($lang == $LANG ? ' selected="selected"' : '') .
45 '>' . strtolower($lang) . "</option>\n";
48 </select>
49 <input type="submit" value="Go" />
50 </div>
51 </fieldset>
52 </form>
53 </div>
54 <div id="archdev-navbar">
55 <ul>
56 <li><a href="index.php">AUR <?php print __("Home"); ?></a></li>
57 <li><a href="packages.php"><?php print __("Packages"); ?></a></li>
58 <?php if (isset($_COOKIE['AURSID'])): ?>
59 <li><a href="packages.php?SeB=m&amp;K=<?php print username_from_sid($_COOKIE["AURSID"]); ?>"><?php print __("My Packages"); ?></a></li>
60 <li><a href="pkgsubmit.php"><?php print __("Submit"); ?></a></li>
61 <li><a href="account.php"><?php print __("Accounts"); ?></a></li>
62 <?php if (check_user_privileges()): ?><li><a href="tu.php"><?php print __("Trusted User"); ?></a></li><?php endif; ?>
63 <li><a href="logout.php"><?php print __("Logout"); ?></a></li>
64 <?php else: ?>
65 <li><a href="account.php"><?php print __("Register"); ?></a></li>
66 <li><a href="login.php"><?php print __("Login"); ?></a></li>
67 <?php endif; ?>
68 </ul>
69 </div><!-- #archdev-navbar -->
70 <!-- Start of main content -->