summaryrefslogtreecommitdiff
path: root/includes/helper
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-08-23 02:16:12 +0200
committerPhilip Häusler <msquare@notrademark.de>2014-08-23 02:16:12 +0200
commitc5331c44fd5f0251e7ec572c3bfc50a9f52c86bf (patch)
treecb8afcbac9fcf611f518f7eb44cc8f5d6d22ccaf /includes/helper
parentf5a094fd8b32d44767f7fc30a65f407f4e1d9945 (diff)
move language select to the top
Diffstat (limited to 'includes/helper')
-rw-r--r--includes/helper/internationalization_helper.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/includes/helper/internationalization_helper.php b/includes/helper/internationalization_helper.php
index db150fec..7598dc2f 100644
--- a/includes/helper/internationalization_helper.php
+++ b/includes/helper/internationalization_helper.php
@@ -45,11 +45,10 @@ function make_langselect() {
global $locales;
$URL = $_SERVER["REQUEST_URI"] . (strpos($_SERVER["REQUEST_URI"], "?") > 0 ? '&' : '?') . "set_locale=";
- $html = '<p class="content">';
+ $items = array();
foreach ($locales as $locale => $name)
- $html .= '<a class="sprache" href="' . htmlspecialchars($URL) . $locale . '"><img src="pic/flag/' . $locale . '.png" alt="' . $name . '" title="' . $name . '"></a>';
- $html .= '</p>';
- return '<nav class="container"><h4>' . _("Language") . '</h4>' . $html . '</nav>';
+ $items[] = toolbar_item_link(htmlspecialchars($URL) . $locale, '', '<img src="pic/flag/' . $locale . '.png" alt="' . $name . '" title="' . $name . '"> ' . $name);
+ return toolbar_dropdown('', '<img src="pic/flag/' . $_SESSION['locale'] . '.png" alt="' . $locales[$_SESSION['locale']] . '" title="' . $locales[$_SESSION['locale']] . '"> ' . $locales[$_SESSION['locale']], $items);
}
?> \ No newline at end of file