<article id="post-<?php the_ID(); ?>" <?php post_class("home_section"); ?>>
    <?php
    $homeType = types_render_field("home-type", array("output" => "raw"));
    $slider_image = types_render_field("home_slider_image", array("output" => "html"));
    ?>
    <?php the_post_thumbnail("background"); ?>
    <?php if (is_front_page() || is_home()) { ?>
        <div class="home-slider">
            <?php echo $slider_image; ?>
        </div>
    <?php } ?>

    <header class="header <?php echo $homeType; ?>">
        <h2 class="entry-title"><?php the_title(); ?></h2>
        <section class="entry-content">
            <?php the_content(); ?>
        </section>
        <span class="scroll-down-arrow"></span>
    </header>

    <?php /*if (is_front_page()) { */?><!--
        <div class="home-slider">
            <?php /*foreach ($slider_images as $slider_image) { */?>
                <div class="slide-holder">
                    <img src="<?php /*echo $slider_image; */?>">
                    <header class="header <?php /*echo $homeType; */?>">
                        <h2 class="entry-title">
                            <?php /*the_title(); */?>
                        </h2>
                        <section class="entry-content">
                            <?php /*the_content(); */?>
                        </section>
                        <span class="scroll-down-arrow"></span>
                    </header>
                </div>
            <?php /*} */?>
        </div>
    <?php /*} */?>

    <?php /*if (!is_front_page()){ */?>
        <header class="header <?php /*echo $homeType; */?>">
            <h2 class="entry-title">
                <?php /*the_title(); */?>
            </h2>
            <section class="entry-content">
                <?php /*the_content(); */?>
            </section>
            <span class="scroll-down-arrow"></span>
        </header>
    --><?php /*} */?>
</article>