Skip to content

Commit

Permalink
Update plugin structure based on ponlawat-w/moodle-local_accessibilit…
Browse files Browse the repository at this point in the history
  • Loading branch information
cli-ish committed Aug 17, 2024
1 parent 86f0c8a commit 61334b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions accessibility_fontsize.php → classes/fontsize.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace local_accessibility\widgets;
namespace accessibility_fontsize;

defined('MOODLE_INTERNAL') || die();

require_once(__DIR__ . '/../../classes/rangewidget.php');
use local_accessibility\widgets\rangewidget;

/**
* Font size accessibility widget definition
Expand Down Expand Up @@ -57,6 +55,8 @@ public function init() {

$userconfig = $this->getuserconfig();
if ($userconfig) {
// We set the userconfig variable because we perhaps need it for the amd script too.
$userconfig = clean_param($userconfig, PARAM_FLOAT);
$this->addbodyclass('accessibility-fontsize-' . round($userconfig * 100));
}

Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

$plugin->component = 'accessibility_fontsize';
$plugin->release = '1.0.0';
$plugin->version = 2023071401;
$plugin->version = 2024051300;
$plugin->requires = 2022041900;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = [
'local_accessibility' => 2023071300,
'local_accessibility' => 2024050800,
];

0 comments on commit 61334b8

Please sign in to comment.