Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theme_boost_campus_rwth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
moodle_l2p_public
theme_boost_campus_rwth
Commits
b3d3196d
Commit
b3d3196d
authored
7 years ago
by
Tim Schroeder
Browse files
Options
Downloads
Patches
Plain Diff
now using favicon configured for boost_campus theme
parent
e21f4249
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
classes/output/core_renderer.php
+18
-0
18 additions, 0 deletions
classes/output/core_renderer.php
with
18 additions
and
0 deletions
classes/output/core_renderer.php
+
18
−
0
View file @
b3d3196d
...
...
@@ -26,12 +26,15 @@
namespace
theme_boost_campus_rwth\output
;
require_once
(
$CFG
->
libdir
.
'/filestorage/file_storage.php'
);
require_once
(
$CFG
->
libdir
.
'/outputlib.php'
);
require_once
(
$CFG
->
dirroot
.
'/course/lib.php'
);
use
html_writer
;
use
moodle_url
;
use
moodle_page
;
use
single_button
;
use
context_course
;
use
theme_config
;
defined
(
'MOODLE_INTERNAL'
)
||
die
;
...
...
@@ -46,6 +49,21 @@ defined('MOODLE_INTERNAL') || die;
*/
class
core_renderer
extends
\theme_boost_campus\output\core_renderer
{
protected
$boostcampus
;
public
function
__construct
(
moodle_page
$page
,
$target
)
{
parent
::
__construct
(
$page
,
$target
);
$this
->
boostcampus
=
theme_config
::
load
(
'boost_campus'
);
}
public
function
favicon
()
{
if
(
!
empty
(
$this
->
boostcampus
->
settings
->
favicon
))
{
return
$this
->
boostcampus
->
setting_file_url
(
'favicon'
,
'favicon'
);
}
else
{
return
$this
->
image_url
(
'favicon'
,
'theme'
);
}
}
/**
* Override to dispaly switched role information beneath the course header instead of the user menu.
* We change this because the switch role function is course related and therefore it should be placed in the course context.
...
...
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