From 47d6171b94ad6ba36386869633540f2c8f2d06fe Mon Sep 17 00:00:00 2001
From: Manuel Hiebel
Date: Wed, 5 Jul 2017 08:55:22 +0200
Subject: Adapt to bootstrap, add common_header for css & js script in
common_footer
Use modal for langs switch
Don't inject anymore nav css in html
---
langs.php | 44 ++++++++++++++++++++++++++++++++++++--------
1 file changed, 36 insertions(+), 8 deletions(-)
(limited to 'langs.php')
diff --git a/langs.php b/langs.php
index ce48933fa..37cbf8944 100644
--- a/langs.php
+++ b/langs.php
@@ -68,25 +68,50 @@ foreach ($langs as $k => $v) {
$k,
$k == $locale ? ' selected="selected"' : '',
$v);
+ $k == $locale ? $fulllang = $v: '';
}
$options = implode($options);
$langsForm = <<
-
-
-
-
+- {$fulllang}
H;
-$hsnav = _mgnav_style() . _mgnav_html(true, $locale, $langsForm, $_SERVER['HTTP_HOST']);
+$langsmodal = <<
+
+
+H;
+
+// _mgnav_style() no more needed
+$hsnav = _mgnav_html(true, $locale, $langsForm, $_SERVER['HTTP_HOST']). $langsmodal;
$hsfoot = '';
if (!defined('HLANG'))
echo $hsnav;
+function common_header(){
+ $common_header = '' . PHP_EOL;
+ $common_header .= ' ' . PHP_EOL;
+ $common_header .= ' ' . PHP_EOL;
+ $common_header .= ' ' . PHP_EOL;
+ return $common_header;
+}
+
/**
* Output common footer in passed language
*
@@ -121,6 +146,9 @@ function common_footer($locale = 'en')
$common_footer .= '
' . PHP_EOL;
$common_footer .= ' ' . PHP_EOL;
$common_footer .= '' . PHP_EOL;
+ $common_footer .= '' . PHP_EOL;
+ $common_footer .= '' . PHP_EOL;
+ $common_footer .= '' . PHP_EOL;
return $common_footer;
}
--
cgit v1.2.1