forked from adventistchurch/alps-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-home.php
30 lines (29 loc) · 1.54 KB
/
page-home.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
<?php while (have_posts()) : the_post();
// Get carousel format.
$carousel_format = get_field('carousel_type');
?>
<?php if ($carousel_format == "large_format_2_col_4x3" || $carousel_format == "large_format_2_col_16x9"): ?>
<?php include(locate_template('patterns/components/hero-carousel__2-column.php')); ?>
<?php elseif ($carousel_format == "large_format_inset"): ?>
<?php include(locate_template('patterns/components/hero-carousel.php')); ?>
<?php else: ?>
<?php include(locate_template('patterns/components/hero-carousel__2-column.php')); ?>
<?php endif; ?>
<div class="layout-container full--until-large">
<div class="flex-container cf">
<div class="shift-left--fluid column__primary bg--white can-be--dark-light no-pad--btm">
<div class="spacing--double">
<div class="pad--primary spacing text">
<h2 class="font--tertiary--l theme--primary-text-color"><?php if (get_field('display_title')): the_field('display_title'); else: the_title(); endif; ?></h2>
<?php the_content(); ?>
</div>
<?php include(locate_template('templates/block-layout.php')); ?>
<?php include(locate_template('patterns/blocks/block-story.php')); ?>
</div>
</div> <!-- /.shift-left--fluid -->
<div class="shift-right--fluid bg--beige can-be--dark-dark">
<?php include(locate_template('patterns/components/aside.php')); ?>
</div> <!-- /.shift-right--fluid -->
</div> <!-- /.flex-container -->
</div> <!-- /.layout-container -->
<?php endwhile; ?>