Issue #58 - Decided to support only Moodle 29+ however older versions may work if using an additional local plugin (skeleton included in the local_outage subfolder).

This commit is contained in:
Daniel Thee Roperto
2016-09-29 09:53:19 +10:00
parent 200133dcab
commit 2e363d1acf
6 changed files with 103 additions and 14 deletions

15
lib.php
View File

@@ -22,23 +22,12 @@
* @copyright 2016 Catalyst IT
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
use auth_outage\local\outagelib;
defined('MOODLE_INTERNAL') || die;
function auth_outage_extends_navigation() {
outagelib::inject();
}
function auth_outage_extends_settings_navigation() {
outagelib::inject();
}
function auth_outage_extend_navigation() {
outagelib::inject();
}
function auth_outage_extend_settings_navigation() {
function auth_outage_extend_navigation_user_settings() {
outagelib::inject();
}

6
local_outage/README.md Normal file
View File

@@ -0,0 +1,6 @@
What is this?
-------------
This is a local plugin used together with the auth plugin.
You will only need it if you are using Moodle 2.8 or lower.

View File

@@ -0,0 +1,26 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
//
/**
* Strings for component 'local_outage', language 'en'.
*
* @package local_outage
* @author Daniel Thee Roperto <daniel.roperto@catalyst-au.net>
* @copyright 2016 Catalyst IT
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'Outage for Old Moodle';

36
local_outage/lib.php Normal file
View File

@@ -0,0 +1,36 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* local_outage plugin lib
*
* @package local_outage
* @author Daniel Thee Roperto <daniel.roperto@catalyst-au.net>
* @copyright 2016 Catalyst IT
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
use auth_outage\local\outagelib;
defined('MOODLE_INTERNAL') || die();
function local_outage_extend_navigation() {
outagelib::inject();
}
function local_outage_extend_settings_navigation() {
outagelib::inject();
}

32
local_outage/version.php Normal file
View File

@@ -0,0 +1,32 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Version information.
*
* @package local_outage
* @author Daniel Thee Roperto <daniel.roperto@catalyst-au.net>
* @copyright 2016 Catalyst IT
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->component = "local_outage";
$plugin->version = 2016092900; // The current plugin version (Date: YYYYMMDDXX).
$plugin->release = 'Build '.$plugin->version; // Human-readable release information.
$plugin->requires = 2014051200; // Requires Moodle 2.7 or later.
$plugin->maturity = MATURITY_STABLE; // Not suitable for PRODUCTION environments yet!

View File

@@ -63,7 +63,7 @@ If you need to make changes here, remember to update your settings inside Moodle
}
.auth_outage_warningbar_center {
margin-top: -45px;
margin-top: -35px;
position: relative;
top: 50%;
}