diff --git a/composer.json b/composer.json index ad6e53a..4ca70f7 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "nhsla/moodle-nhse", "type": "moodle-theme", - "version": "2023102601", + "version": "2023110201", "require": { "composer/installers": "~1.0" }, diff --git a/config.php b/config.php index 68d026f..c39f677 100755 --- a/config.php +++ b/config.php @@ -43,7 +43,7 @@ $THEME->doctype = 'html5'; $THEME->name = 'nhse'; -$THEME->version = '2023102601'; +$THEME->version = '2023110201'; $THEME->parents = ['boost']; $THEME->regions = []; $THEME->sheets = []; diff --git a/templates/core/email_fromname.mustache b/templates/core/email_fromname.mustache new file mode 100644 index 0000000..8bb9803 --- /dev/null +++ b/templates/core/email_fromname.mustache @@ -0,0 +1,40 @@ +{{! + 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 . +}} +{{! + @template core/email_fromname + + Template for all email subjects. + + Context variables required for this template: + * sitefullname + * siteshortname + * sitewwwroot + * subject + * to + * toname + * touserid + * from + * fromname + * replyto + * replytoname + + Example context (json): + { + "fromname": "Joe Bloggs" + } +}} +{{{fromname}}} diff --git a/templates/core/email_html.mustache b/templates/core/email_html.mustache new file mode 100644 index 0000000..252a061 --- /dev/null +++ b/templates/core/email_html.mustache @@ -0,0 +1,437 @@ +{{! + 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 . +}} +{{! + @template core/email_html + + Template for all html emails. Note that it may wrap content formatted + elsewhere in another a module template. + + Context variables required for this template: + * sitefullname + * siteshortname + * sitewwwroot + * subject + * to + * toname + * touserid + * tousername + * from + * fromname + * replyto + * replytoname + * body + * prefix + + Example context (json): + { + "prefix": "[Prefix Text]", + "body": "Email body" + } +}} + + + + + + + + + + + +
+ + + + + +
+ + diff --git a/templates/core/email_html_for_testing.html b/templates/core/email_html_for_testing.html new file mode 100644 index 0000000..63be074 --- /dev/null +++ b/templates/core/email_html_for_testing.html @@ -0,0 +1,385 @@ + + + + + + + + + + + + +
+ + + + + +
+ + diff --git a/templates/core/email_subject.mustache b/templates/core/email_subject.mustache new file mode 100644 index 0000000..88deb2e --- /dev/null +++ b/templates/core/email_subject.mustache @@ -0,0 +1,42 @@ +{{! + 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 . +}} +{{! + @template core/email_subject + + Template for all email subjects. + + Context variables required for this template: + * sitefullname + * siteshortname + * sitewwwroot + * subject + * to + * toname + * touserid + * from + * fromname + * replyto + * replytoname + * prefix + + Example context (json): + { + "prefix": "[Prefix Text]", + "subject": "Email subject" + } +}} +{{#prefix}}{{{prefix}}} {{/prefix}}{{{subject}}} diff --git a/templates/core/email_text.mustache b/templates/core/email_text.mustache new file mode 100644 index 0000000..6c55c30 --- /dev/null +++ b/templates/core/email_text.mustache @@ -0,0 +1,44 @@ +{{! + 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 . +}} +{{! + @template core/email_text + + Template for all html emails. Note that it may wrap content formatted + elsewhere in another a module template. + + Context variables required for this template: + * sitefullname + * siteshortname + * sitewwwroot + * subject + * to + * toname + * touserid + * from + * fromname + * replyto + * replytoname + * body + * prefix + + Example context (json): + { + "prefix": "[Prefix Text]", + "body": "Email body" + } +}} +{{{body}}} diff --git a/version.php b/version.php index 8d01ff5..bba05ac 100755 --- a/version.php +++ b/version.php @@ -26,7 +26,7 @@ defined('MOODLE_INTERNAL') || die(); // This is the version of the plugin. -$plugin->version = 2023102601; +$plugin->version = 2023110201; $plugin->release = '401.0.2'; $plugin->maturity = MATURITY_BETA;