Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
framadate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
framadate
Commits
221848e6
Commit
221848e6
authored
10 years ago
by
Bob Le Bricodeur
Browse files
Options
Downloads
Patches
Plain Diff
variable $show_language_bar_selection to display the language bar in the header
parent
8ce89a43
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bandeaux.php
+7
-4
7 additions, 4 deletions
bandeaux.php
config.inc.php
+3
-0
3 additions, 0 deletions
config.inc.php
with
10 additions
and
4 deletions
bandeaux.php
+
7
−
4
View file @
221848e6
...
@@ -25,16 +25,19 @@ function bandeau_titre($titre)
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
config.inc.php
+
3
−
0
View file @
221848e6
...
@@ -24,6 +24,9 @@
...
@@ -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
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment