Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
eLearning
Moodle
moodle-theme_unige
Commits
2bce89eb
Commit
2bce89eb
authored
Aug 06, 2018
by
Camille Tardy
Browse files
Add search Courses page title in theme
Signed-off-by:
Camille Tardy
<
camille.tardy@unige.ch
>
parent
6c08e9f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
classes/output/core_renderer.php
View file @
2bce89eb
...
...
@@ -162,6 +162,7 @@ class core_renderer extends \theme_boost\output\core_renderer {
$heading
=
""
;
// Page title.
// overide Page title for specific pages
switch
(
$this
->
page
->
pagelayout
)
{
case
'mydashboard'
:
$heading
=
get_string
(
'my-courses'
,
'theme_unige'
);
...
...
@@ -184,6 +185,8 @@ class core_renderer extends \theme_boost\output\core_renderer {
OR
$this
->
page
->
pagetype
==
"badges-preferences"
OR
$this
->
page
->
pagetype
==
"badges-mybackpack"
)
{
$heading
=
get_string
(
'preferences'
,
'moodle'
);
}
elseif
(
$this
->
page
->
pagetype
==
"course-search"
){
$heading
=
get_string
(
'searchcourses'
,
'moodle'
);
}
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment