mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-03-12 07:53:40 -04:00
a
This commit is contained in:
36
lms-plugins/mediacms-moodle/tiny/templates/iframe_embed_output.mustache
Executable file
36
lms-plugins/mediacms-moodle/tiny/templates/iframe_embed_output.mustache
Executable file
@@ -0,0 +1,36 @@
|
||||
{{!
|
||||
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/>.
|
||||
}}
|
||||
{{!
|
||||
@template tiny_mediacms/iframe_embed_output
|
||||
|
||||
Iframe embed output template.
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"src": "https://example.com/embed?m=abc123",
|
||||
"width": 560,
|
||||
"height": 315,
|
||||
"responsive": true,
|
||||
"aspectRatioClass": "ratio-16-9"
|
||||
}
|
||||
}}
|
||||
{{#responsive}}
|
||||
<iframe src="{{src}}" style="width:100%;aspect-ratio:{{aspectRatioValue}};display:block;border:0;" allowFullScreen></iframe>
|
||||
{{/responsive}}
|
||||
{{^responsive}}
|
||||
<iframe width="{{width}}" height="{{height}}" src="{{src}}" frameBorder="0" allowFullScreen></iframe>
|
||||
{{/responsive}}
|
||||
Reference in New Issue
Block a user