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

Update to change 2017-03-09: Added setting to be able to decide if the...

Update to change 2017-03-09: Added setting to be able to decide if  the additional edit on / off button should be placed.
parent 92d088e2
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Changes
### Unreleased
* 2017-03-21 - Update to change 2017-03-09: Added setting to be able to decide if the additional edit on / off button should be placed.
* 2017-03-17 - Added back to top button with smooth scrolling.
* 2017-03-15 - Setting to choose if switched role information should be displayed beneath course header.
* 2017-03-14 - Setting to add multiple background images for the login page that will be picked randomly and delivered when the user visits the login page.
......
......@@ -79,6 +79,10 @@ This setting can change the behaviour Moodle displays the title for the first co
In this setting you can add up to 10 files as a background image for the login page. One of these images will be picked randomly and delivered when the user visits the login page.
### Course edit button
With this setting you can add an additional course edit on / off button to the course header for faster accessibility. This the same way as it was displayed before theme_boost.
Further improvements to Boost core theme
----------------------------------------
......@@ -95,10 +99,6 @@ 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.
### Back to top button
We added a back to top button that appears in the right bottom corner when the user scrolls down the page. With a click on it the page scrolls back to top smoothly and the button will disappear again.
......
......@@ -60,7 +60,10 @@ class core_renderer extends \theme_boost\output\core_renderer {
*/
public function edit_button(moodle_url $url) {
/* MODIFICATION START */
// If setting editbuttonincourseheader ist checked give out the edit on / off button in course header
if (get_config('theme_boost_campus', 'courseeditbutton') == '1') {
return \core_renderer::edit_button($url);
}
/* MODIFICATION END */
/* ORIGINAL START
return '';
......
......@@ -51,6 +51,9 @@ $string['region-footer-middle'] = 'Footer (middle)';
$string['region-footer-right'] = 'Footer (right)';
$string['region-side-pre'] = 'Right';
$string['courseeditbuttonsetting'] = 'Course edit button';
$string['courseeditbuttonsetting_desc'] = 'With this setting you can add an additional course edit on / off button to the course header for faster accessibility of this often used function.';
$string['section0titlesetting'] = 'Section 0: Title';
$string['section0titlesetting_desc'] = 'This setting can change the behaviour Moodle displays the title for the first course section. Moodle does not display it as long as the default title for this section is set. As soon as a user changes the title, it will appear. With this setting (option is checked), you can achieve a consistent behaviour by always showing the title for section 0.';
......
......@@ -146,6 +146,13 @@ if ($ADMIN->fulltree) {
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
// Setting for displaying edit on / off button addionally in course header
$setting = new admin_setting_configcheckbox('theme_boost_campus/courseeditbutton',
get_string('courseeditbuttonsetting', 'theme_boost_campus', null, true),
get_string('courseeditbuttonsetting_desc', 'theme_boost_campus', null, true), 0);
$setting->set_updatedcallback('theme_reset_all_caches');
$page->add($setting);
// Add tab to settings page.
$settings->add($page);
......
......@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'theme_boost_campus';
$plugin->version = '2017031500';
$plugin->version = '2017032100';
$plugin->release = 'v3.2-r1';
$plugin->requires = '2016070700';
$plugin->maturity = MATURITY_STABLE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment