{{! 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 theme_space/course-hint-guestaccess Space Theme template for outputting the guestaccess course hint. Context variables required for this template: * courseid - The course ID * role - The role name * showselfenrollink - The fact if a link to self enrolment should be shown or not Example context (json): { "courseid": "123", "role": "Guest", "showselfenrollink": true } }}
{{#str}} showhintcourseguestaccessgeneral, theme_space, { "role": "{{role}}" } {{/str}} {{#showselfenrollink}}
{{#str}} showhintcourseguestaccesslink, theme_space, { "url": "{{config.wwwroot}}/enrol/index.php?id={{courseid}}" } {{/str}} {{/showselfenrollink}}