You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
735 B
29 lines
735 B
4 years ago
|
{#
|
||
|
/**
|
||
|
* @file
|
||
|
* Default theme implementation to display the file entity as an audio tag.
|
||
|
*
|
||
|
* Available variables:
|
||
|
* - attributes: An array of HTML attributes, intended to be added to the
|
||
|
* audio tag.
|
||
|
* - files: And array of files to be added as sources for the audio tag. Each
|
||
|
* element is an array with the following elements:
|
||
|
* - file: The full file object.
|
||
|
* - source_attributes: An array of HTML attributes for to be added to the
|
||
|
* source tag.
|
||
|
*
|
||
|
* @ingroup themeable
|
||
|
*/
|
||
|
#}
|
||
|
<audio {{ attributes }}>
|
||
|
{% for file in files %}
|
||
|
<source {{ file.source_attributes }} />
|
||
|
{% if tracks %}
|
||
|
{% for track in tracks %}
|
||
|
<track {{ track.track_attributes }}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
</audio>
|
||
|
|