-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-offerings.php
54 lines (48 loc) · 1.45 KB
/
page-offerings.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
<?php
/**
* The template for displaying the Offerings page
*
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package lucien
*/
get_header();
?>
<div class="page-container">
<?php get_sidebar(); ?>
<main id="offerings" class="single-page">
<?php while ( have_posts() ) : the_post();
$offerings_image_1 = get_field('offerings_image_1');
$offerings_image_2 = get_field('offerings_image_2');
$offerings_image_3 = get_field('offerings_image_3');
$offerings_image_4 = get_field('offerings_image_4');
$size = "full";
?>
<div class="offerings-images">
<figure>
<?php echo wp_get_attachment_image( $offerings_image_1, $size ); ?>
</figure>
<?php if($offerings_image_2): ?>
<figure class="img">
<?php echo wp_get_attachment_image( $offerings_image_2, $size ) ?>
</figure>
<?php endif; ?>
<?php if($offerings_image_3): ?>
<figure class="img">
<?php echo wp_get_attachment_image( $offerings_image_3, $size ) ?>
</figure>
<?php endif; ?>
<?php if($offerings_image_4): ?>
<figure class="img">
<?php echo wp_get_attachment_image( $offerings_image_4, $size ) ?>
</figure>
<?php endif; ?>
</div>
<div class="offerings-container">
<?php get_template_part( 'template-parts/content-offerings', 'offerings' ); ?>
</div>
<?php endwhile; ?> <!-- End of the loop -->
</main><!-- #main -->
</div>
<?php get_footer(); ?>