diff --git a/filter.php b/filter.php new file mode 100644 index 0000000000000000000000000000000000000000..ba0fd0ec1ec29beb30c4fc29dd1830ee4a5cd037 --- /dev/null +++ b/filter.php @@ -0,0 +1,45 @@ +<?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/>. + +/** + * Opencast filtering + * + * This filter will replace any links to opencast videos with the opencast theodul pass player. + * + * @package filter + * @subpackage opencastfilter + * @copyright 2017 Tamara Gunkel + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined('MOODLE_INTERNAL') || die(); + +/** + * Automatic opencast videos filter class. + * + * @package filter + * @subpackage opencastfilter + * @copyright 2017 Tamara Gunkel + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class filter_opencastfilter extends moodle_text_filter { + + + public function filter($text, array $options = array()) { + } + + +} diff --git a/lang/en/filter_opencastfilter.php b/lang/en/filter_opencastfilter.php new file mode 100644 index 0000000000000000000000000000000000000000..2ac7c52f1984d6538de50b1636ca744f20925164 --- /dev/null +++ b/lang/en/filter_opencastfilter.php @@ -0,0 +1,27 @@ +<?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 'filter_opencastfilter', language 'en' + * + * @package filter_opencastfilter + * @copyright 2017 Tamara Gunkel + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined('MOODLE_INTERNAL') || die(); +$string['filtername'] = 'Opencast'; +$string['pluginname'] = 'Opencast Filter'; \ No newline at end of file diff --git a/settings.php b/settings.php new file mode 100644 index 0000000000000000000000000000000000000000..01d883764c34475357bd823e9e1960cf4a3077b4 --- /dev/null +++ b/settings.php @@ -0,0 +1,29 @@ +<?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/>. + +/** + * Opencast filter settings + * + * @package filter_opencastfilter + * @copyright 2017 Tamara Gunkel + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined('MOODLE_INTERNAL') || die; + +if ($ADMIN->fulltree) { + +} diff --git a/styles.css b/styles.css new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/version.php b/version.php new file mode 100644 index 0000000000000000000000000000000000000000..02ea2bafb053093a6dbb883022c0a0079704385d --- /dev/null +++ b/version.php @@ -0,0 +1,30 @@ +<?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/>. + +/** + * Opencast filter + * + * @package filter + * @subpackage opencastfilter + * @copyright 2017 Tamara Gunkel + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined('MOODLE_INTERNAL') || die(); + +$plugin->version = 2017120500; // The current plugin version (Date: YYYYMMDDXX) +$plugin->requires = 2017050500; // Requires this Moodle version +$plugin->component = 'filter_opencastfilter'; // Full name of the plugin (used for diagnostics)