mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Move language selection to a drop-down list
Move all languages to a select container to save some space. Language selection is a rarely used feature, so there's no need to make this a one click option. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
16e250b69d
commit
091c2b5f55
2 changed files with 23 additions and 12 deletions
|
@ -1 +1,4 @@
|
||||||
/* AUR-specific customizations to "archweb.css". */
|
/* AUR-specific customizations to "archweb.css". */
|
||||||
|
#lang_sub {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
|
@ -31,6 +31,26 @@
|
||||||
</div><!-- #archnavbar -->
|
</div><!-- #archnavbar -->
|
||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
|
<div id="lang_sub">
|
||||||
|
<form method="get" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES) ?>">
|
||||||
|
<fieldset>
|
||||||
|
<div>
|
||||||
|
<select name="setlang" id="id_setlang">
|
||||||
|
<?php
|
||||||
|
reset($SUPPORTED_LANGS);
|
||||||
|
foreach ($SUPPORTED_LANGS as $lang => $lang_name) {
|
||||||
|
|
||||||
|
print '<option value="' . strtolower($lang) . '"' .
|
||||||
|
($lang == $LANG ? ' selected="selected"' : '') .
|
||||||
|
'>' . strtolower($lang) . "</option>\n";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
<input type="submit" value="Go" />
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
<div id="archdev-navbar">
|
<div id="archdev-navbar">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="index.php">AUR <?php print __("Home"); ?></a></li>
|
<li><a href="index.php">AUR <?php print __("Home"); ?></a></li>
|
||||||
|
@ -47,17 +67,5 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div><!-- #archdev-navbar -->
|
</div><!-- #archdev-navbar -->
|
||||||
|
|
||||||
<div id="lang_sub">
|
|
||||||
<?php
|
|
||||||
reset($SUPPORTED_LANGS);
|
|
||||||
foreach ($SUPPORTED_LANGS as $lang => $lang_name) {
|
|
||||||
print '<a href="'
|
|
||||||
. htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES)
|
|
||||||
."?setlang=" . htmlspecialchars($lang, ENT_QUOTES) . "\" title=\"" . htmlspecialchars($lang_name, ENT_QUOTES) . "\">"
|
|
||||||
. htmlspecialchars(strtolower($lang)) . "</a>\n";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<!-- Start of main content -->
|
<!-- Start of main content -->
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue