<?php get_header(); ?>

<?php wp_reset_postdata(); ?>

<?php $featuredImageType = get_field('background_image_type'); ?>
<?php setBgImg();  ?>


<main class="content defaultPage <?php echo $featuredImageType; ?>"> <!-- for image and paralax use headerImg otherwise bgImg -->

		<section class="pageImage">
			<?php if($featuredImageType == "bgImg"): ?>	
				<div class="fullBg"></div>
			<?php elseif($featuredImageType == "headerImg"): ?>
				<div class="um_parallax" data-velocity="-.1"></div>
			<?php endif; ?>
		</section>
	
        <div class="container">
            <div class="row">
                <section class="pageTitle text-center">
                    <div class="um_helper">
                    	<div class="um_middle">
                    		<h3 class="title pageTitle titleUp"><?php the_title(); ?></h3>
                    	</div>
                    </div>
                </section>
				
				
				<?php if(get_the_content()): ?>
					<section class="theContent mainBgColor">
						<?php the_content(); ?>
					</section>
				<?php endif; ?>
		
            </div>
            <!--row-->
        </div>
    </main>

    <?php get_footer(); ?>