-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-last-videos.php
26 lines (24 loc) · 1.45 KB
/
content-last-videos.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div class="six columns video-post-container" >
<div class="video-title">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="video-block">
<div class="postmetadata">
<span class="postmetada-left" style="float:left;">🖿 <?php the_category(', ') ?> </span><span class="postmetada-right"><?php the_time('j F') ?> <?php //the_author() ?><span class="comments-link">
<?php $comment = '<span aria-label=" commentaire" style="color: transparent; text-shadow: 0 0 0 white;">🗨️</span>'; ?>
<?php $comments = '<span aria-label=" commentaires">🗨️</span>'; ?>
<?php comments_popup_link( '', '1' . $comment, '% ' . $comments); ?></span></span>
</div>
<?php if ( has_post_thumbnail() ) { ?> <!-- dans la boucle-->
<?php $thumb_id = get_post_thumbnail_id();
$thumb_url = wp_get_attachment_image_src($thumb_id,'post-thumbnail', true); ?>
<div class="post_img">
<a href="<?php the_permalink(); ?>" class="cover" title="<?php the_title();?>" style="background-image:url('<?php echo $thumb_url[0]; ?>');">
<div class="video-play-icon">
<span aria-label="Lire la page de la vidéo" style="font-size:4rem; line-height:1;">▸</span>
</div>
</a>
</div>
<?php } ?>
</div>
</div>