Skip to content
Snippets Groups Projects
Commit d7743748 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Placed course edit on / off button in the course header again like it was...

Placed course edit on / off button in the course header again like it was displayed before theme_boost.
parent 356771fb
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Changes
### Unreleased
* 2017-03-09 - Placed course edit on / off button in the course header again like it was displayed before theme_boost.
* 2017-03-08 - Course settings icon will now be displayed on all sites that display the course header.
* 2017-03-06 - Changed flat navigation nav-drawer menu code to make all items structured uniformly and improve the layout of the menu.
* 2017-03-02 - Added Font Awesome
......
......@@ -79,6 +79,10 @@ We improved the code of the new flatnavigation nay-drawer menu items to be unifo
The course settings icon will now be displayed on all sites that renders the course header. This improves the accessibility to those settings as there is not a onmipresent block anymore.
### Course edit button
We added the course edit on / off button to the course header again like it was displayed before theme_boost for faster accessibility.
Further information
-------------------
......
......@@ -50,6 +50,23 @@ defined('MOODLE_INTERNAL') || die;
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.
*
* We don't like these...
*
*/
public function edit_button(moodle_url $url) {
/* MODIFICATION START */
return \core_renderer::edit_button($url);
/* MODIFICATION END */
/* ORIGINAL START
return '';
ORIGINAL END */
}
/**
* Override to display course settings on every course site for permanent access
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment