{#This file is part of Rogō Rogō 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. Rogō 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 Rogō. If not, see . #} {# This template is for the question media display. author Dr Joseph Baxter copyright 2018 onwards The University of Nottingham Required variables - data.mediaid - id data.mediatype - type of media data.mediawidth - width data.mediaheight - height data.mediabordercolour - border colour data.mediaurl - url data.mediafile - file path Required localised strings - lang.audiofile - audio file lang.audioclip - audio clip lang.iframes - iframe support message lang.datafile - datafile lang.delete - delete lang.deleteimage - delete image lang.flashendoflife - flash end of life message #} {# Display unknown media #} {% if data.mediaid != -1 %}
{% endif %} {# Display images #} {% if data.mediatype == 2 %} {{data.mediaalt}} {# Display audio #} {% elseif data.mediatype == 3 %} {{lang.audiofile}} {{lang.audioclip}} {# Display documents #} {% elseif data.mediatype == 4 %} {# Display flash #} {% elseif data.mediatype == 5 %}
{{lang.flashendoflife}}
{# Display HTML5 audio #} {% elseif data.mediatype == 6 %} {# Display movie #} {% elseif data.mediatype == 7 %} {% elseif data.mediatype == 8 or data.mediatype == 9 %}
{# Display HTML5 video #} {% elseif data.mediatype == 10 %} {% else %} {% endif %} {# Display controls to edit media #} {% if data.mediadelete %} {{lang.delete}}
{% endif %}