forked from themesdefrance/Galopin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-video.php
57 lines (30 loc) · 1.35 KB
/
content-video.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php $video_link = get_post_meta($post->ID, '_galopin_video_meta', true); ?>
<?php do_action('galopin_before_post'); ?>
<article <?php post_class('article'); ?> itemscope itemtype="http://schema.org/Article">
<?php do_action('galopin_top_post'); ?>
<header class="entry-header post-header">
<?php do_action('galopin_top_header_post'); ?>
<div class="entry-video post-video">
<?php echo wp_oembed_get( esc_url($video_link)); ?>
</div>
<?php if (is_single()): ?>
<h1 class="entry-title post-header-title" itemprop="headline"><?php the_title(); ?></h1>
<?php else: ?>
<h2 class="entry-title post-header-title" itemprop="headline">
<?php if (galopin_is_masonry()): ?>
<?php the_title(); ?>
<?php else: ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a>
<?php endif; ?>
</h2><!--END .entry-title-->
<?php endif; ?>
<?php if (!galopin_is_masonry()) get_template_part('content', 'header-meta'); ?>
<?php do_action('galopin_bottom_header_post'); ?>
</header><!--END .entry-header-->
<?php get_template_part( 'content', 'body' ); ?>
<?php get_template_part( 'content', 'footer-meta' ); ?>
<?php do_action('galopin_bottom_post'); ?>
</article>
<?php do_action('galopin_after_post'); ?>