<div class="main-section">
 <div class="col-sm-9 col-sm-push-3 padding0 right-side">
<?php
/**
 * Template Name: Contact Page
 *
 * @package Luzuk Premium
 */
get_header(); 
?>
<header class="page-main-header">
	<div>
		<?php $image = wp_get_attachment_url( get_post_thumbnail_id($post->ID));?>
		<?php
		//print_r ($post);
			if (!empty($image)){
				echo '<img src="'.$image.'" class="ht-page-header-img" />';
			}
		?>
		<!-- <img src="<?php //echo !empty($image)?$image : get_template_directory_uri().'/images/innerpage.jpg';?>" class="ht-page-header-img" alt="<?php //the_title();?>" /> -->
	</div>
		<?php the_title( '<h1 class="ht-main-title">', '</h1>' ); ?>
		<?php do_action( 'total_breadcrumbs' ); ?>
</header><!-- .entry-header -->

<?php if( get_theme_mod('breadcrumb_button_display','show' ) == 'show') :
        ?>
 	<div class="breadcrumbbox">
        <div class='button'><?php lz_fitness_lite_the_breadcrumb(); ?></div>
    </div>
<?php endif ?>
<?php 
            if( get_theme_mod('innerpagesbox_toppadding',true) ) {
                $innerpagesbox_toppadding = 'padding-top:'.esc_attr(get_theme_mod('innerpagesbox_toppadding')).';';
            }
            if( get_theme_mod('innerpagesbox_bottompadding',true) ) {
                $innerpagesbox_bottompadding = 'padding-bottom:'.esc_attr(get_theme_mod('innerpagesbox_bottompadding')).';';
            }
            if( get_theme_mod('innerpagesbox_leftpadding',true) ) {
                $innerpagesbox_leftpadding = 'padding-left:'.esc_attr(get_theme_mod('innerpagesbox_leftpadding')).';';
            }
            if( get_theme_mod('innerpagesbox_rightpadding',true) ) {
                $innerpagesbox_rightpadding = 'padding-right:'.esc_attr(get_theme_mod('innerpagesbox_rightpadding')).';';
            }
    ?> 
<main id="innerpage-box" style="<?php echo esc_attr($innerpagesbox_toppadding); ?>" "<?php echo esc_attr($innerpagesbox_bottompadding); ?>" "<?php echo esc_attr($innerpagesbox_leftpadding); ?>" "<?php echo esc_attr($innerpagesbox_rightpadding); ?>">
		<?php
		
		// $lz_fitness_contactus_title = get_theme_mod('lz_fitness_contactus_title');
		$lz_fitness_contactus_sub_title = get_theme_mod('lz_fitness_contactus_sub_title');
		?>
		<?php /*if($lz_fitness_contactus_title){ ?>
		<div class="ht-section-title-tagline">
			<?php if($lz_fitness_contactus_title){ ?>
			<h2 class="ht-section-title"><?php echo esc_html($lz_fitness_contactus_title); ?></h2>
			<?php } ?>
		</div>
	<?php }*/ ?>
	<div class="ht-contactus-wrap innerpage-whitebox">
		<?php 
		$lz_fitness_contactus_addrress = get_theme_mod('lz_fitness_contactus_addrress', 'Address');
		$lz_fitness_contactus_emailid = get_theme_mod('lz_fitness_contactus_emailid', 'Email');
		$lz_fitness_contactus_phhone = get_theme_mod('lz_fitness_contactus_phhone', 'Phone');
		$lz_fitness_contactus_socialtitle = get_theme_mod('lz_fitness_contactus_socialtitle', 'Follow us on');
		$address = get_theme_mod('lz_fitness_contactus_address', 'Add Contact Address here..');
		$email = get_theme_mod('lz_fitness_contactus_email', 'contact@example.com');
		$phone = get_theme_mod('lz_fitness_contactus_phone', '+1 999 999 9999');
		$shortcodeLbl = get_theme_mod('lz_fitness_contactus_shortcode_lbl', 'Contact Now');
		$shortcode = get_theme_mod('lz_fitness_contactus_shortcode', 'Add your shortcode through customizer');
		
		$iframe = get_theme_mod('lz_fitness_contactus_embade', 'Add your Embed code in customizer');

		$facebook = get_theme_mod('lz_fitness_contactus_facebook', '//facebook.com/');
		$twitter = get_theme_mod('lz_fitness_contactus_twitter', '//twitter.com/');
		$instagram = get_theme_mod('lz_fitness_contactus_instagram', 'http://www.instagram.com/');
		$linkedIn = get_theme_mod('lz_fitness_contactus_linkedin', '//linkedin.com/');
		//$youtube = get_theme_mod('lz_fitness_contactus_youtube','//https://www.youtube.com/');
		?>
		<div id="ht-contactus-wrap">
			<div class="row">
				<div class="col-md-6  wow fadeInLeft">
					<div class="contact-page-address">
						<div class="row address-box">
							<div class="col-md-5"> 
								<?php if($lz_fitness_contactus_addrress){ ?>
									<div class="padding0 ht-section-tagline lz-appointment-addresss"><div class="fa fa-map-marker"></div> <?php echo ($lz_fitness_contactus_addrress);  ?> :</div>
								<?php } ?>
							</div>
							<div class="col-md-7 contact-info">  <?php echo nl2br($address); ?></div>
							<div class="clearfix"></div>	
						</div>

						<div class="row address-box">
							<div class="col-md-5">
								<?php if($lz_fitness_contactus_emailid){ ?>
									<div class="padding0 ht-section-tagline lz-appointment-email"><div class="fa fa-envelope"></div> <?php echo ($lz_fitness_contactus_emailid);  ?> :</div>
								<?php } ?>
							</div>
							<div class="col-md-7 contact-info">  <a href="mailto:<?php echo $email;?>"><?php echo $email;?></a> </div>
							<div class="clearfix"></div>	
						</div>

						<div class="row address-box">
							<div class="col-md-5"> 
								<?php if($lz_fitness_contactus_phhone){ ?>
									<div class="padding0 ht-section-tagline lz-appointment-phhone"><div class="fa fa-phone"></div> <?php echo ($lz_fitness_contactus_phhone);  ?> :</div>
								<?php } ?>
							</div>
							<div class="col-md-7 contact-info">  <?php echo $phone;?> </div>
							<div class="clearfix"></div>	
						</div>

						<div class="col-md-12">
							<h3><?php if($lz_fitness_contactus_socialtitle){ ?>
								<?php echo ($lz_fitness_contactus_socialtitle);  ?> :</h3>
							<?php } ?>
							<ul class="contact-sm-links">
								<?php if(!empty($facebook)){ ?>
									<li><a target="_blank" href="<?php echo $facebook ?>" title="Facebook" class="fb"><span class="fa fa-facebook"></span></a></li>
								<?php }?>
								<?php if(!empty($twitter)){ ?>
									<li><a target="_blank" href="<?php echo $twitter ?>" title="Twitter"><span class="fa fa-twitter"></span></a></li>
								<?php }?>
								<?php if(!empty($instagram)){ ?>
									<li><a target="_blank" href="<?php echo $instagram ?>" title="Instagram"><span class="fa fa-instagram"></span></a></li>
								<?php }?>
								<?php if(!empty($linkedIn)){ ?>
									<li><a target="_blank" href="<?php echo $linkedIn ?>" title="Linked In"><span class="fa fa-linkedin"></span></a></li>
								<?php }?>
							</ul>
						</div>
						<div class="clearfix"></div>
					</div>
				</div>

				<div class="col-md-6 wow fadeInRight">
					<div class="contact-page-form">
						<h4 class="ht-section-title text-center"><?php echo $shortcodeLbl;?></h4> 
						<p><?php echo do_shortcode($shortcode);?></p>
						<div class="clearfix"></div>
					</div>
				</div>
				<div class="clearfix"></div>
			</div>
		</div>

		<div class="contact-mapbox wow zoomIn">
			<!-- <iframe width="100%" height="350" frameborder="0" style="border:0" src="" allowfullscreen></iframe> -->
			<?php echo $iframe; ?>
		</div>

	</div>	
</main>
</div>
<div class="col-sm-3 col-sm-pull-9 home-sidebar sidebar left-side">
<div class="logobox" >
            <?php 
            if ( function_exists( 'has_custom_logo' ) && has_custom_logo() ) :
                the_custom_logo();
        else : 
            if ( is_front_page() ) : ?>
                <h1 class="ht-site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
                <?php else : ?>
                    <p class="ht-site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
                <?php endif; ?>
                <!-- <p class="ht-site-description"><a href="<?php //echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php //bloginfo( 'description' ); ?></a></p> -->
            <?php endif; ?>
            <!-- .site-branding -->
        </div>

    <?php if(class_exists('woocommerce')){ ?>
                                
                                    <?php if(class_exists('woocommerce')){ ?>                               
                                    <?php
                                  $lz_fitness_header_browsebydept = get_theme_mod('lz_fitness_header_browsebydept', 'Browse Categories');
                                    ?>
                                    <div class="sidecategorie">
                                        <h3><?php echo ($lz_fitness_header_browsebydept);  ?></h3>  
                                        <div class="clearfix"></div>                

                                    <div class="category_box">
                                            <?php
                                            $args = array(
                                                      'taxonomy' => 'product_cat',
                                                      'hide_empty' => false,
                                                      'parent'   => 0
                                                  );
                                              $product_cat = get_terms( $args );

                                              foreach ($product_cat as $parent_product_cat)
                                              {

                                              echo '
                                                  <ul>
                                                    <li class="drp_dwn_menu"><a href="'.get_term_link($parent_product_cat->term_id).'">'.$parent_product_cat->name.'<i class="fa fa-caret-right" aria-hidden="true"></i></a>
                                                    <ul>
                                                      ';
                                              $child_args = array(
                                                          'taxonomy' => 'product_cat',
                                                          'hide_empty' => false,
                                                          'parent'   => $parent_product_cat->term_id
                                                      );
                                              $child_product_cats = get_terms( $child_args );
                                              foreach ($child_product_cats as $child_product_cat)
                                              {
                                                echo '<li class="sucat"><a href="'.get_term_link($child_product_cat->term_id).'">'.$child_product_cat->name.'<i class="fa fa-caret-right" aria-hidden="true"></i></a>
                                                <ul>
                                                      ';
                                              $child_child_args = array(
                                                          'taxonomy' => 'product_cat',
                                                          'hide_empty' => false,
                                                          'parent'   => $child_product_cat->term_id
                                                      );
                                              $child_child_product_cats = get_terms( $child_child_args );
                                              foreach ($child_child_product_cats as $child_child_product_cat)
                                              {
                                                echo '<li class="sucat"><a href="'.get_term_link($child_child_product_cat->term_id).'">'.$child_child_product_cat->name.'<i class="fa fa-caret-right" aria-hidden="true"></a></i>
                                                            <ul>
                                                      ';
                                              $child_child_child_args = array(
                                                          'taxonomy' => 'product_cat',
                                                          'hide_empty' => false,
                                                          'parent'   => $child_child_product_cat->term_id
                                                      );
                                              $child_child_child_product_cats = get_terms( $child_child_child_args );
                                              foreach ($child_child_child_product_cats as $child_child_child_product_cat)
                                              {
                                                echo '<li class="sucat"><a href="'.get_term_link($child_child_child_product_cat->term_id).'">'.$child_child_child_product_cat->name.'<i class="fa fa-caret-right" aria-hidden="true"></i></a></li>';

                                                }
                                                echo '</ul>
                                                    </li>';




                                                ;

                                                }
                                                echo '</ul>
                                                    </li>';

                                              }

                                              echo ' </ul>  
                                              </li>                     
                                                </ul>';
                                              }
                                            ?>
                                                                    
                                <?php }else {
                                    echo '<h6>'.esc_html('Please Install Woocommerce Plugin','lz-fashion-ecommerce').'<h6>'; }?>
                                    </div>
                                </div>
                                <div class="clearfix"></div>
                       <?php }?>
    <?php  get_sidebar(); ?>
    <div class="clearfix"></div>
</div>
</div>

<?php get_footer(); ?>