-
Notifications
You must be signed in to change notification settings - Fork 112
/
single.php
36 lines (25 loc) · 855 Bytes
/
single.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
<?php
get_header();
$single = RADL::get( 'state.posts', get_the_ID() ); ?>
<main>
<article>
<header>
<?php
if ( $single['featured_media']) {
set_query_var('vw_responsive_image', array(
'id' => $single['featured_media'],
'sizes' => '(max-width: 1200px) 100vw, 1200px'
));
get_template_part('template-parts/responsive-image');
} ?>
<h1><?php echo $single['title']['rendered']; ?></h1>
<?php
set_query_var('vw_post', $single);
get_template_part('template-parts/post-meta');
get_template_part('template-parts/post-taxonomies'); ?>
</header>
<div><?php echo $single['content']['rendered']; ?></div>
</article>
</main>
<?php
get_footer();