2 This file is part of Moodle - http://moodle.org/
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 @template core_h5p/h5perror
20 This template will render the embed code shown in the H5P content embed popup.
22 Variables required for this template:
24 * message - The error messages to display.
26 Example context (json):
28 "embedurl": "http://example.com/h5p/embed.php?url=testurl"
33 <div class="d-flex h-100 position-relative align-items-center bg-light h5pmessages">
34 <div class="position-absolute py-2 bg-secondary" style="top: 0px; left: 0px; right: 0px;">
35 <div class="container">
37 <img src="{{{.}}}" class="h5picon" alt="{{#str}}h5p, core_h5p{{/str}}" style="width: 50px; height: auto; opacity: 0.5">
41 <div class="container mt-5">
43 <div class="alert alert-block fade in alert-danger my-2" role="alert">
48 <div class="alert alert-block fade in alert-info my-2" role="alert">
53 <div class="alert alert-block fade in alert-warning my-2" role="alert">
54 {{#code}}{{{code}}} : {{/code}}{{{ message }}}