Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-theme_boost_campus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-theme_boost_campus
Commits
acef204a
Commit
acef204a
authored
6 years ago
by
Kathrin Osswald
Browse files
Options
Downloads
Patches
Plain Diff
Added source information to all overridden renderers.
parent
30d3d88e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES.md
+4
-0
4 additions, 0 deletions
CHANGES.md
classes/output/core_renderer.php
+11
-0
11 additions, 0 deletions
classes/output/core_renderer.php
with
15 additions
and
0 deletions
CHANGES.md
+
4
−
0
View file @
acef204a
...
...
@@ -4,6 +4,10 @@ moodle-theme_boost_campus
Changes
-------
### Unreleased
*
2019-04-15 - Added source information to all overridden renderers.
### Release v3.6-r2
*
2019-02-13 - Added source information to renderers that are overridden from core directly.
...
...
This diff is collapsed.
Click to expand it.
classes/output/core_renderer.php
+
11
−
0
View file @
acef204a
...
...
@@ -63,6 +63,9 @@ class core_renderer extends \theme_boost\output\core_renderer {
* Override to display an edit button again by calling the parent function
* in core/core_renderer because theme_boost's function returns an empty
* string and therefore displays nothing.
*
* MODIFICATION: This renderer function is copied and modified from /theme/boost/classes/output/core_renderer.php
*
* @param moodle_url $url The current course url.
* @return \core_renderer::edit_button Moodle edit button.
*/
...
...
@@ -138,6 +141,8 @@ class core_renderer extends \theme_boost\output\core_renderer {
* Override to display 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.
*
* MODIFICATION: This renderer function is copied and modified from /theme/boost/classes/output/core_renderer.php
*
* Wrapper for header elements.
*
* @return string HTML to display the main header.
...
...
@@ -274,6 +279,8 @@ class core_renderer extends \theme_boost\output\core_renderer {
* This is an optional menu that can be added to a layout by a theme. It contains the
* menu for the course administration, only on the course main page.
*
* MODIFICATION: This renderer function is copied and modified from /theme/boost/classes/output/core_renderer.php
*
* @return string
*/
public
function
context_header_settings_menu
()
{
...
...
@@ -385,6 +392,8 @@ class core_renderer extends \theme_boost\output\core_renderer {
* Override to use theme_boost_campus login template
* Renders the login form.
*
* MODIFICATION: This renderer function is copied and modified from /theme/boost/classes/output/core_renderer.php
*
* @param \core_auth\output\login $form The renderable.
* @return string
*/
...
...
@@ -423,6 +432,8 @@ class core_renderer extends \theme_boost\output\core_renderer {
/**
* Implementation of user image rendering.
*
* MODIFICATION: This renderer function is copied and modified from /theme/boost/classes/output/core_renderer.php
*
* @param help_icon $helpicon A help icon instance
* @return string HTML fragment
*/
...
...
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