Newer
Older
pre-www / src / blocks / video.twig
{# 
 # Blocco video
 #}

<div class="block-container block-{{block.key}}">
    <div class="block-{{block.key}}__inner">
        <video width="320" height="240" controls>
            <source src="{{paths_base}}{{config.paths.video}}{{block.content.path}}/{{block.content.filename}}.{{block.content.ext}}" type="video/{{block.content.ext}}">
            Your browser does not support the video tag.
        </video>
    </div>
    {% if block.content.caption %}
        <div class="block-{{block.key}}__caption">
            <p>{{block.content.caption}}</p>
        </div>
    {% endif %}
</div>