Skip to content
Snippets Groups Projects
Commit 8bc61192 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

ISTWCMS-6863: refactor video to UW standards so it resizes properly

parent 57fc9f10
No related branches found
No related tags found
1 merge request!227ISTWCMS-6863: Adding ofis video to ohana.
...@@ -41,17 +41,24 @@ ...@@ -41,17 +41,24 @@
</div> </div>
{% if ofis_data.profile.video %} {% if ofis_data.profile.video %}
<div> <div>
{% set vid = ofis_data.profile.video|split('?v=')[1] %} <div class="uw-remote-video">
{% if vid %} {% set vid = ofis_data.profile.video|split('?v=')[1] %}
{% set ytembed = 'https://www.youtube.com/embed/' ~ vid %} {% if vid %}
<iframe width="560" height="315" src="{{ ytembed }}" {% set ytembed = 'https://www.youtube.com/embed/' ~ vid %}
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" <div class="uw-remote-video__video">
referrerpolicy="strict-origin-when-cross-origin" <div class="uw-media media media--type-uw-mt-remote-video media--view-mode-default">
allowfullscreen></iframe> <div class="uw-field uw-field--name-field-media-oembed-video uw-field--type-string uw-field--label-visually_hidden uw-field__items">
<div class="ofis-video__link"> <div class=uw-field__item">
<a href="{{ ofis_data.profile.video }}">Watch on Youtube</a> <iframe class="media-oembed-content" width="200" height="113" src="{{ ytembed }}" aria-label="Remote Video"></iframe>
</div>
</div>
</div>
</div>
{% endif %}
<div class="uw-remote-video__view">
<a href="{{ ofis_data.profile.video }}">View on YouTube</a>
</div> </div>
{% endif %} </div>
</div> </div>
{% endif %} {% endif %}
</section> </section>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment