video embed
This commit is contained in:
parent
e119663877
commit
deb272daea
@ -38,6 +38,9 @@ $args = array (
|
||||
'numberposts' => 3
|
||||
);
|
||||
|
||||
$context['video_url'] = get_field('video_la_mine', FALSE, FALSE);
|
||||
|
||||
|
||||
$context['projet'] = Timber::get_posts( $projet );
|
||||
$context['posts'] = Timber::get_posts( $args );
|
||||
$context['tpsF'] = Timber::get_posts( $tpsF );
|
||||
|
@ -47,7 +47,7 @@
|
||||
<h3>Transition urbaine</h3>
|
||||
{% if post.video_la_mine %}
|
||||
<figure class="row mx-0">
|
||||
<iframe id="playVideo" src="{{post.video_la_mine}}" frameborder="0" allowfullscreen></iframe>
|
||||
{{post.get_field('video_la_mine', FALSE, FALSE)}}
|
||||
</figure>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
@ -15,11 +15,7 @@
|
||||
</header>
|
||||
|
||||
<figure class="__img_event col-lg-6 col-12">
|
||||
{% if post.ajouter_un_media_0_image_event %}
|
||||
<img src="{{ Image(post.ajouter_un_media_0_image_event).src }}" />
|
||||
{% else %}
|
||||
<iframe width="560" height="315" src="{{post.ajouter_un_media_0_video}}" frameborder="0" allowfullscreen></iframe>
|
||||
{% endif %}
|
||||
<img src="{{Image(post.image_event).src|resize(600,500)}}" alt="{{Image(post.image_event).alt}}" title="{{Image(post.image_event).title}}">
|
||||
</figure>
|
||||
|
||||
<div class="article-content col-lg-6 col-12 my-3 my-lg-0">
|
||||
|
Loading…
x
Reference in New Issue
Block a user