variable $show_language_bar_selection to display the language bar in the header
This commit is contained in:
parent
8ce89a4321
commit
221848e62a
11
bandeaux.php
11
bandeaux.php
|
@ -25,16 +25,19 @@ function bandeau_titre($titre)
|
||||||
{
|
{
|
||||||
$img = ( IMAGE_TITRE ) ? '<img src="'. Utils::get_server_name(). IMAGE_TITRE. '" alt="'.NOMAPPLICATION.'">' : '';
|
$img = ( IMAGE_TITRE ) ? '<img src="'. Utils::get_server_name(). IMAGE_TITRE. '" alt="'.NOMAPPLICATION.'">' : '';
|
||||||
echo '
|
echo '
|
||||||
<header role="banner">
|
<header role="banner">';
|
||||||
<form method="post" action="#">
|
if(config_get('show_language_bar_selection')){
|
||||||
|
echo '<form method="post" action="#">
|
||||||
<div class="input-group input-group-sm pull-right col-md-2 col-xs-4">
|
<div class="input-group input-group-sm pull-right col-md-2 col-xs-4">
|
||||||
<select name="lang" class="form-control" title="'. _("Select the language") .'" >' . liste_lang() . '</select>
|
<select name="lang" class="form-control" title="'. _("Select the language") .'" >' . liste_lang() . '</select>
|
||||||
<span class="input-group-btn">
|
<span class="input-group-btn">
|
||||||
<button type="submit" class="btn btn-default btn-sm" title="'. _("Change the language") .'">OK</button>
|
<button type="submit" class="btn btn-default btn-sm" title="'. _("Change the language") .'">OK</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>';
|
||||||
<h1><a href="'.str_replace('/admin','', Utils::get_server_name()).'" title="'._("Home").' - '.NOMAPPLICATION.'">'.$img.'</a></h1>
|
}
|
||||||
|
echo '
|
||||||
|
<h1><a href="'.str_replace('/admin','', Utils::get_server_name()).'" title="'._("Home").' - '.NOMAPPLICATION.'">'.$img.'</a></h1>
|
||||||
<h2 class="lead"><i>'. $titre .'</i></h2>
|
<h2 class="lead"><i>'. $titre .'</i></h2>
|
||||||
<hr class="trait" />
|
<hr class="trait" />
|
||||||
</header>
|
</header>
|
||||||
|
|
|
@ -24,6 +24,9 @@
|
||||||
//is a smtp server is configured to send e-mail ?
|
//is a smtp server is configured to send e-mail ?
|
||||||
//$use_smtp = true;
|
//$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
|
* index.php
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue