Commit d3da0a26 authored by gijs's avatar gijs
Browse files

Added title in video and audio template.

parent 315be099
<section class="audio"> <section class="audio">
{% if audio.title.value %}
<h3>{{ audio.title }}</h3>
{% endif %}
<audio controls> <audio controls>
<source src="{{ audio.audio }}" type="{% if audio.type.value %}{{ audio.type }}{% else %}audio/mpeg{% endif %}"> <source src="{{ audio.audio }}" type="{% if audio.type.value %}{{ audio.type }}{% else %}audio/mpeg{% endif %}">
</audio> </audio>
......
<section class="video"> <section class="video">
{% if video.title.value %}
<h3>{{ video.title }}</h3>
{% endif %}
{% if video.vimeoId %} {% if video.vimeoId %}
<div style="padding:60% 0 0 0;position:relative;"> <div style="padding:60% 0 0 0;position:relative;">
<iframe src="https://player.vimeo.com/video/{{ video.vimeoId }}?color=ffffff&title=0&byline=0&portrait=0" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe> <iframe src="https://player.vimeo.com/video/{{ video.vimeoId }}?color=ffffff&title=0&byline=0&portrait=0" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment