Skip to content

Commit

Permalink
Fix for footer buttons
Browse files Browse the repository at this point in the history
- This will fix #103.
- We use `<pluginname>_before_footer()` instead of `<pluginname>_standard_footer_html`.
- Reference: https://tracker.moodle.org/browse/MDL-68564.
- See also: davosmith/moodle-navbuttons@f257bdc
  • Loading branch information
martignoni committed Aug 2, 2022
1 parent ad24bca commit 3a47ece
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib.php
Expand Up @@ -35,7 +35,7 @@
*
* @return string HTML footer content
*/
function tool_moodlebox_standard_footer_html() {
function tool_moodlebox_before_footer() {

global $CFG;

Expand Down Expand Up @@ -72,7 +72,7 @@ function tool_moodlebox_standard_footer_html() {
}
}

$output = $restartshutdownform->render();
$output = html_writer::div($restartshutdownform->render(), "", array('id' => 'footerbuttons'));

return $output;
}
Expand Down
4 changes: 4 additions & 0 deletions styles.css
Expand Up @@ -66,3 +66,7 @@ input#id_shutdownbutton {
border-color: rgba(189, 54, 47, 0.1) rgba(189, 54, 47, 0.1) rgba(128, 36, 32, 0.25);
filter: progid:dximagetransform.microsoft.gradient(enabled = false);
}

#footerbuttons {
margin-top: 2rem;
}
6 changes: 3 additions & 3 deletions version.php
Expand Up @@ -26,9 +26,9 @@

$plugin = new stdClass();

$plugin->version = 2022042300;
$plugin->release = '2.12.0';
$plugin->version = 2022080200;
$plugin->release = '2.13.0-beta';
$plugin->requires = 2018120300;
$plugin->supported = [36, 400];
$plugin->maturity = MATURITY_STABLE;
$plugin->maturity = MATURITY_BETA;
$plugin->component = 'tool_moodlebox';

0 comments on commit 3a47ece

Please sign in to comment.