Skip to content

Commit

Permalink
Add video poster fix for displaying overlay video template
Browse files Browse the repository at this point in the history
  • Loading branch information
Ljudevit committed Nov 16, 2020
1 parent 6bfcce9 commit d632b1f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
{% set alias_name = alias_name|default('i480') %}
{% set alt_text = alt_text ?? null %}

<a href="{{ path(location is not empty ? location : content) }}" class="image-16by9" {% if alt_text is not empty %}aria-label="{{ alt_text }}"{% endif %}>
<figure>
<figure class="image">
<a href="{{ path(location is not empty ? location : content) }}" class="image-16by9" {% if alt_text is not empty %}aria-label="{{ alt_text }}"{% endif %}>
{% if not content.fields.poster.empty %}
{{ ng_render_field(content.fields.poster, {'parameters': {'alias': alias_name}}) }}
{% elseif not content.fields.video_identifier.empty %}
Expand All @@ -20,8 +20,8 @@
{% else %}
<img data-src="{{ asset('bundles/app/images/video_poster.png') }}" {% if alt_text is not empty %}alt="{{ alt_text }}"{% endif %} />
{% endif %}
</figure>
</a>
</a>
</figure>
{% endmacro %}

{% macro poster_slide(content, use_lazy_load, alt_text) %}
Expand Down

0 comments on commit d632b1f

Please sign in to comment.