<?php
/**
 *
 * @package LZ Restaurant Premium
 */
if(get_theme_mod('lz_fitness_time_n_address_disabled') != 'on' ){ ?>
<section id="time-address-section">
	<div class="darkbox">
		<div class="container row-eq-height">
			<div class="col-md-6">
				<div class="inside-full-height">
						<?php	

						$videoSubTitle = get_theme_mod('lz_fitness_video_sub_title', 'Restaurent Video');
						$videoTitle = get_theme_mod('lz_fitness_video_title', 'Two or three words');
						?>
						
						<div class="spacing">
							<div class="ht-section-title-tagline">
								 <div class="ht-section-tagline"><?php echo esc_html($videoTitle); ?></div>
								 <h2 class="ht-section-title"><?php echo esc_html($videoSubTitle); ?></h2>
								 <div class="clearfix"></div>
							</div>
						</div>
					<div class="video-left">

						<?php
						$video = get_theme_mod('lz_fitness_time_n_address_video');

						//$videoTitle = get_theme_mod('lz_fitness_video_title', 'Two or three words');
						//$videoSubTitle = get_theme_mod('lz_fitness_video_sub_title', 'Restaurent Video');
						?>
						<!--<div class="ht-section-tagline lz-gym-text"><?php //echo esc_html($videoTitle); ?></div>
						<div class="t-section-title lz-gym-heading"><?php //echo esc_html($videoSubTitle); ?></div>-->
						<?php
					  if(!empty($video)) {
					   echo $video;
					  }else{
						  echo '<iframe width="560" height="315" src="https://www.youtube.com/embed/Kb9pNl1IQpY" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>';
					  }
					  ?>
					 </div>
					 <div class="clearfix"></div>
				</div>
			</div>
			<div class="col-md-1">
			</div>
			<div class="col-md-5 col-sm-5 ">
				<div class="inside-full-height price-time">
					<?php
					$lzFitnessSectionTitle = get_theme_mod('lz_fitness_time_n_address_title', 'Timing');
					$lzFitnessSectionSubTitle = get_theme_mod('lz_fitness_time_n_address_subtitle', 'Here goes the short description for the section');
					
					if($lzFitnessSectionTitle || $lzFitnessSectionSubTitle){
						?>
						<div class="ht-section-title-tagline">
						<?php if($lzFitnessSectionSubTitle){ ?>
							<div class="ht-section-tagline lz-gym-text"><?php echo esc_html($lzFitnessSectionSubTitle); ?></div>
						<?php } ?>
						<?php
						if($lzFitnessSectionTitle){ ?>
							<h2 class="ht-section-title lz-gym-heading"><?php echo esc_html($lzFitnessSectionTitle); ?></h2>
						<?php } ?>
						</div>
					<?php } ?>
					<div class="ht-gym-time-wrap lz-fitness-time">			
						<?php
						$days = array('Mon', 'Tue','Wed', 'Thur', 'Fri', 'Sat', 'Sun'); 
						$showStatic = true;
						foreach ($days as $key => $value) {
							$lzFitnessDayTime = get_theme_mod('lz_fitness_time_n_address_time_'.($key+1)); 
							if($lzFitnessDayTime){
								$showStatic = false;
								?>
								<div class="days-time">
									<div class="days-time-day col-md-2"><?php echo ucwords(esc_html($value));?></div>
									<div class="col-md-4 monogram">&#9866;</div>
									<div class="days-time-day-time col-md-6"><?php echo $lzFitnessDayTime;?></div>
									<div class="clearfix"></div>
								</div>
								<?php
							}
						}
						
						if($showStatic === true){
							foreach ($days as $key => $value) {	
								?>
								<div class="days-time">
									<div class="days-time-day col-md-2"><?php echo ucwords(esc_html($value));?></div>
									<div class="col-md-4 monogram">&#9866;</div>
									<div class="days-time-day-time col-md-6">5:00 AM - 12:00 PM</div>
									<div class="clearfix"></div>
								</div>
								<?php
							}
						}
						?>
					</div>
					<div class="clearfix"></div>
				</div>
			</div>
		</div>
	</div>
</section>
<?php }