Skip to content

Commit

Permalink
Release 1.0.2 (PR #10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ponlawat-w authored Apr 18, 2024
2 parents db986b1 + d9b84f6 commit 0344112
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ After installing widget plugins, site administrator needs to enable widgets by g
extra details if your plugin type is not automatically detected.
3. Check the plugin validation report and finish the installation.

## Installing via git
From moodle root

git clone [email protected]:ponlawat-w/moodle-local_accessibility.git local/accessibility

`cd local/accessibility`

At this point the plugin will be installed but without any widgets. To add the widgets you can check out by tag as follows.
Tags can be found at https://github.com/ponlawat-w/moodle-local_accessibility/tags. Select the one you want and checkout as follows

`git checkout v1.0.1-with-widgets`

This will result in a warning about being in 'detached HEAD' state that will not affect testing

## Installing manually ##

The plugin can be also installed by putting the contents of this directory to
Expand Down
5 changes: 3 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,10 @@ function local_accessibility_before_footer() {
}
$panel = $OUTPUT->render_from_template('local_accessibility/panel', [
'widgets' => $widgets,
'resetallurl' => new moodle_url('/local/accessibility/resetall.php', [
'resetallurl' => (new moodle_url('/local/accessibility/resetall.php', [
'returnurl' => $PAGE->url,
]),
'sesskey' => sesskey(),
]))->out(false),
]);

return $mainbutton . $panel;
Expand Down
2 changes: 2 additions & 0 deletions resetall.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
require_once(__DIR__ . '/../../config.php'); // @codingStandardsIgnoreLine ignore login check as guest is also allowed.
require_once(__DIR__ . '/lib.php');

require_sesskey();

$returnurl = optional_param('returnurl', new moodle_url('/'), PARAM_URL);

$widgets = local_accessibility_getwidgetinstances();
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'local_accessibility';
$plugin->release = '1.0.1';
$plugin->version = 2023110800;
$plugin->release = '1.0.2';
$plugin->version = 2024041800;
$plugin->requires = 2022041900; // Moodle >= 4.0.
$plugin->maturity = MATURITY_STABLE;

0 comments on commit 0344112

Please sign in to comment.