<?php /* Template Name: Page / Home */ ?>
<?php get_header() ?>

<?php if (have_rows('sections')) : ?>
    <?php while (have_rows('sections')) : the_row(); ?>
        <?php if (get_row_layout() == 'hero_slider') : ?>
            <?php get_template_part('template-parts/sections/section-hero-slider', 'hero_slider'); ?>
        <?php endif; ?>
        <?php if (get_row_layout() == 'hero_section') : ?>
            <?php get_template_part('template-parts/sections/section-hero', 'hero_section'); ?>
        <?php endif; ?>
        <?php if (get_row_layout() == 'three_col_repeater_section') : ?>
            <?php get_template_part('template-parts/sections/section-three-col-repeater', 'three_col_repeater_section'); ?>
        <?php endif; ?>
        <?php if (get_row_layout() == 'two_col_section') : ?>
            <?php get_template_part('template-parts/sections/section-two-col', 'section-two-col'); ?>
        <?php endif; ?>
        <?php if (get_row_layout() == 'two_col_section_with_bg') : ?>
            <?php get_template_part('template-parts/sections/section-two-col-with-bg', 'section-two-col-with-bg'); ?>
        <?php endif; ?>
        <?php if (get_row_layout() == 'one_col_2_cta') : ?>c
            <?php get_template_part('template-parts/sections/home-page-seo', 'home-page-seo'); ?>d
        <?php endif; ?>
        <?php if (get_row_layout() == 'one_col_2_cta') : ?>
            <?php get_template_part('template-parts/sections/section-one-col-cta', 'section-one-col-cta'); ?>
        <?php endif; ?>
        <?php if (get_row_layout() == 'boxes_repeater_img_title_text_cta') : ?>
            <?php get_template_part('template-parts/sections/section-boxes_repeater_img_title_text_cta', 'boxes_repeater_img_title_text_cta'); ?>
        <?php endif; ?>
        <?php if (get_row_layout() == 'faq') : ?>
            <?php get_template_part('template-parts/sections/section-faq', 'faq'); ?>
        <?php endif; ?>
        <?php if (get_row_layout() == 'gallery') : ?>
            <?php get_template_part('template-parts/sections/section-gallery', 'gallery'); ?>
        <?php endif; ?>
        <?php if (get_row_layout() == 'wysiwyg') : ?>
            <?php get_template_part('template-parts/sections/section-wysiwyg', 'wysiwyg'); ?>
        <?php endif; ?>
    <?php endwhile; ?>
<?php endif; ?>


<?php get_footer() ?>