<?php
/*

Template Name: Atractions

*/
?>

<?php get_header(); ?>

<?php wp_reset_postdata(); ?>

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

<main class="content serviceSinglePage <?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"></div>
					</div>
                </section>
				
				<?php if(get_the_content()): ?>
					<section class="theContent mainBgColor">
					
						<h4 class="title titleUp titleSpace titleLS brandColor"><?php the_title(); ?></h4>
								
						<?php the_content(); ?>
				
						<div class="dec dec1">
					        <div class="line lineH"></div>
					        <div class="line lineV"></div>
					    </div>
					    <div class="dec dec2">
					        <div class="line lineH"></div>
					        <div class="line lineV"></div>
					    </div>
					    <div class="dec dec3">
					        <div class="line lineH"></div>
					        <div class="line lineV"></div>
					    </div>
					    <div class="dec dec4">
					        <div class="line lineH"></div>
					        <div class="line lineV"></div>
					    </div>
				
					</section>
				<?php endif; ?>
		
            </div>
            <!--row-->
        </div>
    </main>

    <?php get_footer(); ?>