<?php
/*

Template Name: room

*/
?>

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

<main class="content1 aboutUsPage <?php echo $featuredImageType; ?>">
<div class="breadcrumb_box"> <div class="container"><?php
echo do_shortcode( '[breadcrumb]' ); 
?></div></div>
	<section class="pageImage">
    
		<?php putRevSlider("room","274,263,272") ?>
	</section>
	
			
</main>
<div class="container">
		<div class="container">
		<div class="row">
			<section class="pageTitle text-center">
                    <div class="um_helper">
                    	<div class="um_middle">
                    		<div class="bookingInfo" style="display:none;">
                    			<h3 class="title titleUp"><?php the_field('room_name'); ?></h3>
                    			<p><?php the_field('price_label'); ?></p>
                    	
	                    		<?php 
									$redirectClass = 'um_book';
									if(get_field('redirect_to') != "booking"){
										$redirectClass = '';	
									}
								 ?>
								<a href="<?php the_field('shop_link'); ?>" data-postID="<?php echo $post->ID; ?>" class="btn btn-default titleUp <?php echo $redirectClass; ?>"><?php the_field('redirect_title'); ?></a>
                    		</div>
                    	</div>
                    </div>
                </section>
			
			<section class="content">
				<div class="col-md-12">
					<section class="innerContent singleRoomContent">
						<div class="row">
							
							<?php 
								$colMdClass = "col-md-9";								
								if(get_field('disable_attributes')){
									$colMdClass = "col-md-12";
								}
							 ?>
                             
							 <?php if($colMdClass == "col-md-9"): ?>
									<div class="col-md-3">
                           <h4 class="conatcttitle">ROOMS</h4>
		                	 <?php
						                $defaults = array(
											'container' 	  => false,
						                    'contact_class'      => 'contact-nav',
						                    'theme_location'   => 'room'
						                );
						                wp_nav_menu( $defaults );
						            ?>
                            
							<div class="um_message text-center">
								<h1></h1>
							</div>  
                            <div class="offer">
                            
                            <h4 class="conatcttitle2">SPECIAL OFFER</h4>
                               <div class="offer_1"> <?php putRevSlider("special offer") ?></div>	 </div>	
	                	</div><!-- col-md -->
								<?php endif; ?>
							<div class="<?php echo $colMdClass; ?>">
						
                            <div class="roomsDescription">
									<h5 class="title titleUp"><?php the_field('description_text'); ?></h5>
								    
									<?php the_content(); ?>
                                   
								    	
								</div>
                                
                              
							<?php /*?><div class="col-md-7 margin-top20"> <?php putRevSlider("Superior") ?><?php */?>
                            </div>
                            
                             <?php /*?><div class="col-md-12">
                            <?php $id=185; $post = get_page($id); echo $post->post_content;  ?>
                            </div><?php */?>
								
							</div>
							
								
						</div>								
							
	
					</div>
				</section>
			</div>
		
		</section>
	</div>
	</div>

    <?php get_footer(); ?>