diff --git a/amd/src/jmodule.js b/amd/src/jmodule.js index 7000aeac1bfa77e574910d480fd91ff842823503..6785cbc6668ff573fcab4828e8b1a2da913998e7 100644 --- a/amd/src/jmodule.js +++ b/amd/src/jmodule.js @@ -1,3 +1,19 @@ +// 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/>. + + define(['jquery'], function ($) { function search(searchstring, reloadBool, displaymode, instanceid, sesskey, contextid, idSearching, orderbysemester, wwwroot) { if (reloadBool) { diff --git a/amd/src/listselect.js b/amd/src/listselect.js index 2d9c2d16fd9660a25e7f4fe4e66885aad5334087..b93640eb14d85fcb647afdc046c58e135dded27c 100644 --- a/amd/src/listselect.js +++ b/amd/src/listselect.js @@ -1,3 +1,26 @@ +// 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/>. + +/** + * + * @package theme_hsh_boost_campus + * @copyright 2018 Tobias Baden, Hochschule Hannover + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + + define(["jquery"], function($) { function changeActionString(current, wwwroot) { var actionString = wwwroot + "/course/view.php?id=" + current.val(); diff --git a/block_hshcourselist.php b/block_hshcourselist.php index 023ecd30a5481463498cc05169e0082f61faeee3..ec80b60b8fb5b3cfaacf61a8643cb08161ebfe2f 100644 --- a/block_hshcourselist.php +++ b/block_hshcourselist.php @@ -1,4 +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/>. + +/** + * Course list block. + * Original: block_course_list + * + * @package block_hshcourselist + * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com), Edited by Tobias Baden, Hochschule Hannover + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ defined('MOODLE_INTERNAL') || die(); class block_hshcourselist extends block_base { diff --git a/db/access.php b/db/access.php index 9f01ec36c5d75ece851e72726348bbd06e9aff86..2386f46c63d8803965e2be18e14594fbebb8bfb2 100644 --- a/db/access.php +++ b/db/access.php @@ -1,4 +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/>. + +/** + * Course list block caps. + * + * @package block_course_list, renamed to block_hshcourselist by Tobias Baden + * @copyright Mark Nelson <markn@moodle.com> + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + $capabilities = array( 'block/hshcourselist:myaddinstance' => array( diff --git a/edit_form.php b/edit_form.php index c0bc59d481d24ef9a6ce4da55aab0666673b3f1c..d920e322308e8fc3eb202f770bfefa54ed1e4d30 100644 --- a/edit_form.php +++ b/edit_form.php @@ -1,4 +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/>. +/** + * Server-side script for generating response to AJAX search request + * Original: block_course_list + * + * @package block_hshcourselist + * @author Mark Johnson <mark.johnson@tauntons.ac.uk>, Edited by Tobias Baden, Hochschule Hannover + * @copyright 2010 Tauntons College, UK + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ class block_hshcourselist_edit_form extends block_edit_form { diff --git a/hshcourselist.php b/hshcourselist.php index f1723a6f7d99f6c79e8cd7d7e369228d71836d3b..a0882ff339f8bea15839c6ea25d19130f0cad580 100644 --- a/hshcourselist.php +++ b/hshcourselist.php @@ -15,12 +15,15 @@ // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Server-side script for generating response to AJAX search request + * Original: block_course_list * * @package block_hshcourselist - * @author Mark Johnson <mark.johnson@tauntons.ac.uk> + * @author Mark Johnson <mark.johnson@tauntons.ac.uk>, Edited by Tobias Baden, Hochschule Hannover * @copyright 2010 Tauntons College, UK * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ + + //define('AJAX_SCRIPT', true); require_once('../../config.php'); require_once($CFG->dirroot . '/blocks/moodleblock.class.php'); diff --git a/lang/en/block_hshcourselist.php b/lang/en/block_hshcourselist.php index 06657f137c3dda8ccd3671d669accdfa9e27f231..7837008faaa9d187d3e00b3a3944ac145a437ced 100644 --- a/lang/en/block_hshcourselist.php +++ b/lang/en/block_hshcourselist.php @@ -1,4 +1,28 @@ <?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 'block_hshcourselist', language 'en' + * Original: block_course_list + * + * @package block_hshcourselist + * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}, Edited by Tobias Baden, Hochschule Hannover + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + $string['pluginname'] = 'HsH Courselist'; $string['hshcourselist'] = 'HsH Courselist'; $string['hshcourselist:addinstance'] = 'Füge einen neuen Suchblock hinzu'; diff --git a/version.php b/version.php index 92cb4aa554b15529d2125d1b4bb9376b9cabcc18..eab161362390be62148da2e0e52942101717a510 100644 --- a/version.php +++ b/version.php @@ -1,4 +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/>. + +/** + * Version details + * Original: block_course_list + * + * @package block_hshcourselist + * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com), Edited by Tobias Baden, Hochschule Hannover + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + + $plugin->component = 'block_hshcourselist'; $plugin->version = 2018091200; // YYYYMMDDHH $plugin->requires = 2016112900; // YYYYMMDDHH