Skip to content

Commit

Permalink
v1.0-alpha3
Browse files Browse the repository at this point in the history
  • Loading branch information
bytesparrow committed Apr 17, 2024
1 parent da88dea commit 630be82
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ This theme is provided not as a standalone-theme but as a parenttheme to other t
2. write your own theme extending THIS theme AND any other (for example boost)

2.1 make sure to place an empty class
'class core_renderer extends \theme_contentmodifier\output\core_renderer' in folder classes/output
``` class core_renderer extends \theme_contentmodifier\output\core_renderer``` in folder **classes/output**
2.2. In theme's config.php place the line:
$THEME->rendererfactory = 'theme_extended_overridden_renderer_factory';
``` $THEME->rendererfactory = 'theme_extended_overridden_renderer_factory'; ```

3. Enable YOUR theme in your Moodle installation under the appearance settings
4. You can now use the features of this theme by implementing the class
theme_YOURS\output\core_modifier extends \core_modifier_base
``` theme_YOURS\output\core_modifier extends \core_modifier_base ```

## Usage

Expand All @@ -25,3 +25,19 @@ own custom modifications to moodle.
## Requirements

This theme requires Moodle 4.0+

## License ##

2022 Bernhard Strehl <moodle@bytesparrow.de>

This program 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.

This program 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
this program. If not, see <https://www.gnu.org/licenses/>.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"html"
],
"license": "GPLv3",
"version": "v1.0-alpha2",
"version": "v1.0-alpha3",
"authors": [
{
"name": "Bernhard Strehl"
Expand Down
9 changes: 5 additions & 4 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

defined('MOODLE_INTERNAL') || die;

$plugin->version = 2022110700;
$plugin->requires = 2022041900;
$plugin->version = 2024041700;
$plugin->requires = 2022112800;
$plugin->supported = [400, 403];
$plugin->component = 'theme_contentmodifier';
$plugin->dependencies = ['theme_boost' => 2020060900];
$plugin->dependencies = ['theme_boost' => 2023042400];
$plugin->maturity = MATURITY_ALPHA;

0 comments on commit 630be82

Please sign in to comment.