forked from Onemillionmonkeys/virt-eu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
34 lines (28 loc) · 835 Bytes
/
index.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
<?php get_header(); ?>
<section id="primary" class="content-area">
<?php
if(get_field('header_image', 'options')) {
$headerimage = get_field('header_image', 'options');
$size = 'full';
echo '<div class="header-image-box header-image-box-frontpage">';
echo wp_get_attachment_image($headerimage['ID'], $size);
echo '<div class="main-title-box main-bg">';
echo get_field('headline','options');
echo '</div>';
echo '</div>';
}
?>
<main id="main" class="site-main">
<article>
<?php
if( have_rows('segments', 'options') ):
while ( have_rows('segments', 'options') ) : the_row();
include('content.php');
endwhile;
endif;
?>
</article>
</main><!-- .site-main -->
</section><!-- .content-area -->
<?php
get_footer(); ?>