From 221848e62aa84547861e299c0988b0a7f47209c0 Mon Sep 17 00:00:00 2001 From: Bob Le Bricodeur Date: Tue, 11 Nov 2014 20:28:14 +0100 Subject: [PATCH] variable $show_language_bar_selection to display the language bar in the header --- bandeaux.php | 11 +++++++---- config.inc.php | 3 +++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bandeaux.php b/bandeaux.php index 0eb77f1..b3c0249 100644 --- a/bandeaux.php +++ b/bandeaux.php @@ -25,16 +25,19 @@ function bandeau_titre($titre) { $img = ( IMAGE_TITRE ) ? ''.NOMAPPLICATION.'' : ''; echo ' -
-
+
'; + if(config_get('show_language_bar_selection')){ + echo '
- -

'.$img.'

+ '; + } + echo ' +

'.$img.'

'. $titre .'


diff --git a/config.inc.php b/config.inc.php index 4f16d7e..b9ef90d 100644 --- a/config.inc.php +++ b/config.inc.php @@ -24,6 +24,9 @@ //is a smtp server is configured to send e-mail ? //$use_smtp = true; + //if only one language is allowed in constants.php, $ALLOWED_LANGUAGES, the language selection bar is useless + $show_language_bar_selection = true; + /** * index.php */