-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
70 lines (38 loc) · 1.2 KB
/
page.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
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php get_header(); ?>
<main class="interior">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
//$image = get_field('image');
if( !empty($image) ):
// vars
$url = $image['url'];
$title = $image['title'];
$alt = $image['alt'];
$caption = $image['caption'];
// thumbnail
$size = 'full';
$thumb = $image['sizes'][ $size ];
$width = $image['sizes'][ $size . '-width' ];
$height = $image['sizes'][ $size . '-height' ];
?>
<article class="intro-image" data-type="background" data-speed="6" style="background-image: url(<?php echo $url; ?>);">
<?php if( $caption ): ?>
<div class="wp-caption">
<?php endif; ?>
<?php if( $caption ): ?>
<p class="wp-caption-text"><?php echo $caption; ?></p>
</div>
<?php endif; ?>
<?php endif; ?>
</article>
<article>
<section class="col-8-12 no-float">
<?php the_content(); ?>
</section>
</article>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
</main><!-- .interior -->
<?php get_footer(); ?>