{# video ================= Description #} {# Getting player params if autoplay is used activate only if in view #} {% set params = options.params ? options.params : 'autoplay' %} {% if 'autoplay' in params %} {% set autoPlayClass = ' is-videoAutoplay' %} {% set params = params|replace({'autoplay':''}) %} {% else %} {% set autoPlayClass = '' %} {% endif %} {# Build Element Block #}