<?php
	
function deep_print_menu($ispagephp = true, $isfirstpage = false){
	global $deep_header_bgstyle_pre, $deep_header_bgstyle_after;
	$header_shrink = "";
	if (get_option('deep_fixed_menu') == 'on'){
		if (get_option('deep_header_after_scroll') == 'on'){
			if (get_option('deep_header_shrink_effect') == 'on'){
				$header_shrink = " header_shrink";
			}
		}
	}
	$header_after_scroll = false;
	if (get_option('deep_fixed_menu') == 'on'){
		if (get_option('deep_header_after_scroll') == 'on'){
			$header_after_scroll = true;
		}
	}
	$typeofheader = get_option("deep_header_style_type");
	$deep_underlining_effect = get_option("deep_menu_underline_".$deep_header_bgstyle_pre,"on") == "on" ? " deep-underlining " : "";

	$deep_content_at_top = (get_post_meta(get_the_ID(),'deep_enable_custom_header_options_value', true) == "yes") ? get_post_meta(get_the_ID(),'deep_content_to_the_top_value', true) : get_option('deep_content_to_the_top');
	$deep_content_at_top = ($deep_content_at_top == "on") ? false : true;
	
	$deep_header_hide_on_start = (get_post_meta(get_the_ID(),'deep_enable_custom_header_options_value', true) == "yes") ? get_post_meta(get_the_ID(),'deep_header_hide_on_start_value', true) : get_option('deep_header_hide_on_start');
	$deep_header_hide_on_start = ($deep_header_hide_on_start == "on") ? true : false;
	
	$deep_header_after_scroll_type2 = get_option('deep_header_after_scroll_type2');
	if ($deep_header_after_scroll_type2 == 'on'){
		$deep_header_hide_on_start = false;
		$typeofheader .= " header_with_after_scroll_t2 ";
		
		if (get_post_meta( get_the_ID(), 'deep_enable_custom_header_options_value', true ) == "yes" || intval(get_option('deep_headerbg_opacity_'.$deep_header_bgstyle_pre)) == 0) $typeofheader .= " header_no_box_shadow ";
	}
	?>
	
	<header class="header-init navbar navbar-default navbar-fixed-top <?php echo esc_attr($typeofheader); if (get_option('deep_header_animations') == 'on') echo " wpb_animate_when_almost_visible wpb_fadeInDownShort fadeInDownShort";?> <?php if (get_option('deep_fixed_menu') == 'off') echo " header_not_fixed"; else if (get_option('deep_header_hide_on_start') == "on" && !$ispagephp) echo " hide-on-start"; ?><?php if (get_option("deep_header_full_width") == "on") echo " header-full-width"; ?><?php if (get_option("deep_header_full_width") == "off") echo " header-with-container"; ?><?php if (get_option("deep_menu_line_effect") == "aboveline") echo " hover-line"; ?><?php if (get_option("deep_menu_line_effect") == "linebellow") echo " deep-underlining"; ?><?php if (get_option("deep_header_menu_itens_style") == "simple") echo " menu-simple"; ?><?php echo " ".esc_attr($deep_header_bgstyle_pre); ?>" data-rel="<?php echo esc_attr($deep_header_bgstyle_pre."|".$deep_header_bgstyle_after); ?>">
		
		<?php
		if (get_option("deep_info_above_menu") == "on"){
			?>
			<div class="top-bar <?php if (get_option("deep_topbar_mobile") == "off") echo "disable_deep_topbar_mobile"; ?>">
				<div class="top-bar-bg">
					<div class="<?php if (get_option("deep_header_full_width") == "off") echo "container"; ?> clearfix">
						<div class="slidedown">
						    <div class="col-xs-12 col-sm-12">
							<?php
								
								/* wpml menu */
								if (get_option("deep_wpml_menu_widget") == "on") {
									if (function_exists('icl_object_id')) { ?>
										<div class="menu_wpml_widget">	
											<?php if (function_exists('icl_language_selector')) do_action('icl_language_selector'); else if (function_exists('wpml_add_language_selector')) do_action('wpml_add_language_selector'); ?>
										</div>
									<?php 
									}
								}
								/* social icons */
								if (get_option("deep_enable_socials") == "on"){
									?>
										<div class="social-icons-fa">
									        <ul>

												<?php
													$icons = array(array("houzz","Houzz"),array("facebook","Facebook"),array("tumblr","Tumblr"),array("stumbleupon","Stumble Upon"),array("flickr","Flickr"),array("linkedin","LinkedIn"),array("delicious","Delicious"),array("skype","Skype"),array("digg","Digg"),array("vimeo-square","Vimeo"),array("deviantart","DeviantArt"),array("behance","Behance"),array("instagram","Instagram"),array("wordpress","Wordpress"),array("youtube","Youtube"),array("reddit","Reddit"),array("soundcloud","SoundCloud"),array("pinterest","Pinterest"),array("dribbble","Dribbble"),array("vk","VK"),array("twitch","Twitch"),array("foursquare","Foursquare"),array("slack","Slack"),array("whatsapp","whatsapp"),array("line","Line"),array("weixin","weixin"),array("imdb","imdb"),array("tiktok","tiktok"),array("amazon","amazon"),array("apple","apple"),array("google-play","google-play"),array("snapchat","snapchat"),array("tripadvisor","tripadvisor"),array("spotify","Spotify"));
													foreach ($icons as $i){
														if (is_string(get_option("deep_icon-".$i[0])) && get_option("deep_icon-".$i[0]) != ""){
														?>
														<li>
															<a href="<?php echo esc_url(get_option("deep_icon-".$i[0])); ?>" <?php if (get_option("deep_enable_blank_social_link") == "on") echo " target='_blank'";?>  class="<?php echo esc_attr(strtolower($i[0])); ?>" title="<?php echo esc_attr($i[1]); ?>"><i class="fab fa-<?php echo esc_attr(strtolower($i[0])); ?>"></i></a>
														</li>
														
														
														<?php
														}
													}
												?>
					
												<?php if ( is_string(get_option("deep_icon-envelope")) && get_option("deep_icon-envelope") != "" ){ ?>
													<li><a href="<?php echo esc_url(get_option("deep_icon-envelope"))?>" <?php if (get_option("deep_enable_blank_social_link") == "on") echo " target='_blank'";?>  class="envelope" title="email"><i class="far fa-envelope"></i></a></li>
												<?php } ?>
												
												
												<!-- Replace X Twitter from svg -->
												<?php if ( is_string(get_option("deep_icon-twitter")) && get_option("deep_icon-twitter") != "" ){ ?>
													<li><a href="<?php echo esc_url(get_option("deep_icon-twitter"))?>" <?php if (get_option("deep_enable_blank_social_link") == "on") echo " target='_blank'";?>  class="twitter" title="twitter">
														<i>
															<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path id="twitter_x_svg" opacity="1" d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>
														</i>
													
													</a></li>
												<?php } ?>
												
												<!-- Add threads svg -->
												<?php if ( is_string(get_option("deep_icon-threads")) && get_option("deep_icon-threads") != "" ){ ?>
													<li><a href="<?php echo esc_url(get_option("deep_icon-threads"))?>" <?php if (get_option("deep_enable_blank_social_link") == "on") echo " target='_blank'";?>  class="threads" title="threads">
														<i>
															<svg aria-label="Threads" viewBox="0 0 192 192" xmlns="http://www.w3.org/2000/svg"><path id="threads_x_svg" d="M141.537 88.9883C140.71 88.5919 139.87 88.2104 139.019 87.8451C137.537 60.5382 122.616 44.905 97.5619 44.745C97.4484 44.7443 97.3355 44.7443 97.222 44.7443C82.2364 44.7443 69.7731 51.1409 62.102 62.7807L75.881 72.2328C81.6116 63.5383 90.6052 61.6848 97.2286 61.6848C97.3051 61.6848 97.3819 61.6848 97.4576 61.6855C105.707 61.7381 111.932 64.1366 115.961 68.814C118.893 72.2193 120.854 76.925 121.825 82.8638C114.511 81.6207 106.601 81.2385 98.145 81.7233C74.3247 83.0954 59.0111 96.9879 60.0396 116.292C60.5615 126.084 65.4397 134.508 73.775 140.011C80.8224 144.663 89.899 146.938 99.3323 146.423C111.79 145.74 121.563 140.987 128.381 132.296C133.559 125.696 136.834 117.143 138.28 106.366C144.217 109.949 148.617 114.664 151.047 120.332C155.179 129.967 155.42 145.8 142.501 158.708C131.182 170.016 117.576 174.908 97.0135 175.059C74.2042 174.89 56.9538 167.575 45.7381 153.317C35.2355 139.966 29.8077 120.682 29.6052 96C29.8077 71.3178 35.2355 52.0336 45.7381 38.6827C56.9538 24.4249 74.2039 17.11 97.0132 16.9405C119.988 17.1113 137.539 24.4614 149.184 38.788C154.894 45.8136 159.199 54.6488 162.037 64.9503L178.184 60.6422C174.744 47.9622 169.331 37.0357 161.965 27.974C147.036 9.60668 125.202 0.195148 97.0695 0H96.9569C68.8816 0.19447 47.2921 9.6418 32.7883 28.0793C19.8819 44.4864 13.2244 67.3157 13.0007 95.9325L13 96L13.0007 96.0675C13.2244 124.684 19.8819 147.514 32.7883 163.921C47.2921 182.358 68.8816 191.806 96.9569 192H97.0695C122.03 191.827 139.624 185.292 154.118 170.811C173.081 151.866 172.51 128.119 166.26 113.541C161.776 103.087 153.227 94.5962 141.537 88.9883ZM98.4405 129.507C88.0005 130.095 77.1544 125.409 76.6196 115.372C76.2232 107.93 81.9158 99.626 99.0812 98.6368C101.047 98.5234 102.976 98.468 104.871 98.468C111.106 98.468 116.939 99.0737 122.242 100.233C120.264 124.935 108.662 128.946 98.4405 129.507Z"></path></svg>
														</i>
													
													</a></li>
												<?php } ?>
												
												<!-- Add Medium svg -->
												<?php if ( is_string(get_option("deep_icon-medium")) && get_option("deep_icon-medium") != "" ){ ?>
													<li><a href="<?php echo esc_url(get_option("deep_icon-medium"))?>" <?php if (get_option("deep_enable_blank_social_link") == "on") echo " target='_blank'";?>  class="medium" title="medium">
														<i>
															<svg id="Medium" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 625 625">
															  <path id="medium_x_svg" d="M554.13,0H70.87C31.73,0,0,31.73,0,70.87v483.27c0,39.14,31.73,70.87,70.87,70.87h483.27c39.14,0,70.87-31.73,70.87-70.87V70.87c-.01-39.14-31.74-70.87-70.88-70.87ZM200.9,457.89c-79.75,0-144.4-65.09-144.4-145.39s64.65-145.39,144.4-145.39,144.4,65.1,144.4,145.39-64.65,145.39-144.4,145.39ZM431.51,449.38c-39.88,0-72.2-61.29-72.2-136.88s32.32-136.88,72.2-136.88,72.2,61.28,72.2,136.88h0c0,75.58-32.33,136.88-72.2,136.88ZM543.11,435.12c-14.03,0-25.39-54.9-25.39-122.62s11.37-122.62,25.39-122.62,25.39,54.9,25.39,122.62-11.37,122.62-25.39,122.62Z"/>
															</svg>
															
														</i>
													
													</a></li>
												<?php } ?>
												
												
												<?php if ( is_string(get_option("deep_icon-rss")) && get_option("deep_icon-rss") != "" ){ ?>
													<li><a href="<?php echo esc_url(get_option("deep_icon-rss"))?>" <?php if (get_option("deep_enable_blank_social_link") == "on") echo " target='_blank'";?>  class="rss" title="rss"><i class="fa fa-rss-square"></i></a></li>
												<?php } ?>
												
											
										    </ul>
									</div>
									<?php	
								}
								/* company infos */
								if ( get_option("deep_telephone_menu") != "" || get_option("deep_email_menu") != "" || get_option("deep_address_menu") != "" || get_option("deep_text_field_menu") != "" ){
									?>
									<ul class="phone-mail">
										<?php if ( is_string(get_option("deep_telephone_menu")) && get_option("deep_telephone_menu") != "" ){ ?>
											<li><i class="fa fa-phone"></i><a href="tel:<?php printf(esc_html__("%s", "deep"), get_option("deep_telephone_menu")); ?>"><?php printf(esc_html__("%s", "deep"), get_option("deep_telephone_menu")); ?></a></li>
										<?php } ?>
										<?php if ( is_string(get_option("deep_email_menu")) && get_option("deep_email_menu") != "" ){ ?>
											<li><div class="icon dripicons-message"></div><a href="mailto:<?php echo esc_attr(get_option("deep_email_menu")); ?>"><?php echo esc_html(get_option("deep_email_menu")); ?></a></li>
										<?php } ?>
										<?php if ( is_string(get_option("deep_address_menu")) && get_option("deep_address_menu") != "" ){ ?>
											<li><div class="icon dripicons-pin"></div><?php echo wp_kses(get_option("deep_address_menu"), 'post'); ?></li>
										<?php } ?>
										<?php if ( is_string(get_option("deep_text_field_menu")) && get_option("deep_text_field_menu") != "" ){ ?>
											<li class="text_field"><?php echo wp_kses(get_option("deep_text_field_menu"), 'post'); ?></li>
										<?php } ?>
									</ul>
									<?php
								}
								
								
								/* topbar menu */
								if (get_option("deep_top_bar_menu") == "on"){
									?>
									<div class="top-bar-menu">
										<?php wp_nav_menu( array( 'theme_location' => 'topbarnav', 'container' => false, 'menu_class' => 'sf-menu', 'menu_id' => 'menu_top_bar' )); ?>
									</div>
									<?php
								}
							?>
							</div>
						</div>
					</div>
				</div>
				<a href="#" class="down-button"><i class="fa fa-plus"></i></a><!-- this appear on small devices -->
			</div>
			<?php
		}
		
		
		?>
		
		<div class="nav-container <?php if (get_option("deep_header_full_width") == "off") echo " container"; ?>">
	    	<div class="navbar-header">
		    	
				<a class="navbar-brand nav-to" href="<?php echo esc_url(home_url("/")); ?>" tabindex="-1">
				<?php 
					$deep_header_style_pre = $deep_header_bgstyle_pre == 'dark' ? 'light' : 'dark';
					$deep_header_style_after = $deep_header_bgstyle_after == 'dark' ? 'light' : 'dark';
					
					$alone = true;
					if (get_option("deep_logo_retina_image_url_".$deep_header_style_pre) != ""){
						$alone = false;
					}
					?>
					<img class="logo_normal<?php echo ! $alone ? ' notalone' : ''; ?>" src="<?php echo esc_url( get_option( 'deep_logo_image_url_' . $deep_header_style_pre ) ); ?>" alt="<?php esc_attr_e( 'Site Logo', 'deep' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>">
    					
    				<?php 
    				if (get_option("deep_logo_retina_image_url_".$deep_header_style_pre) != ""){
    				?>

							<img class="logo_retina" style="display:none; position: relative;" src="<?php echo esc_url( get_option( 'deep_logo_retina_image_url_' . $deep_header_style_pre ) ); ?>" alt="<?php esc_attr_e( 'Retina Logo', 'deep' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>">
							
    				<?php
					}
					/* deep_header_after_scroll option */
	    			if ($header_after_scroll || $deep_header_hide_on_start){
		    			$alone = true;
	    				if (get_option("deep_logo_retina_image_url_".$deep_header_style_after) != ""){
		    				$alone = false;
	    				}
    					?>
    					
    					<img class="logo_normal logo_after_scroll<?php echo ! $alone ? ' notalone' : ''; ?>" src="<?php echo esc_url( get_option( 'deep_logo_image_url_' . $deep_header_style_after ) ); ?>" alt="<?php esc_attr_e( 'Logo after scroll', 'deep' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>">
	    					
	    				<?php 
	    				if (get_option("deep_logo_retina_image_url_".$deep_header_style_after) != ""){
	    				?>
		    				<img class="logo_retina logo_after_scroll" style="display:none; position: relative;" src="<?php echo esc_url( get_option( 'deep_logo_retina_image_url_' . $deep_header_style_after ) ); ?>" alt="<?php esc_attr_e( 'Retina Logo after scroll', 'deep' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>">
						<?php
						}
					}
				?>
				</a>
			</div>
			
			<div class="deep_right_header_icons <?php
				if (class_exists( 'WooCommerce' ) && get_option("deep_woocommerce_cart") == "on") echo "with-woocommerce-cart";
			?>">
			
				<div class="menu-trigger-button">
					<span class="hamburguer-trigger-menu-icon">
						<span class="hamburguer-line hamburger-line-1"></span>
						<span class="hamburguer-line hamburger-line-2"></span>
						<span class="hamburguer-line hamburger-line-3"></span>
					</span>
				</div>
			
				<div class="header_social_icons <?php if (get_option("deep_social_icons_menu") == "on") echo "with-social-icons"; if (get_option("header_deep_show_social_border") == "on") echo " social-icons-with-border"; ?>">
					<?php
						if (get_option("deep_social_icons_menu") == "on" ){
							?>
							<div class="header_social_icons_wrapper <?php if (get_option("deep_social_icons_mobile") == "off") echo "disable_deep_social_icons_mobile"; ?>">
							<?php
								$icons = array(array("houzz","Houzz"),array("facebook","Facebook"),array("tumblr","Tumblr"),array("stumbleupon","Stumble Upon"),array("flickr","Flickr"),array("linkedin","LinkedIn"),array("delicious","Delicious"),array("skype","Skype"),array("digg","Digg"),array("vimeo-square","Vimeo"),array("deviantart","DeviantArt"),array("behance","Behance"),array("instagram","Instagram"),array("wordpress","Wordpress"),array("youtube","Youtube"),array("reddit","Reddit"),array("soundcloud","SoundCloud"),array("pinterest","Pinterest"),array("dribbble","Dribbble"),array("vk","VK"),array("twitch","Twitch"),array("foursquare","Foursquare"),array("slack","Slack"),array("whatsapp","whatsapp"),array("line","Line"),array("weixin","weixin"),array("imdb","imdb"),array("tiktok","tiktok"),array("amazon","amazon"),array("apple","apple"),array("google-play","google-play"),array("snapchat","snapchat"),array("tripadvisor","tripadvisor"),array("xing","Xing"),array("spotify","Spotify"));
								foreach ($icons as $i){
									if (is_string(get_option("deep_icon-".$i[0])) && get_option("deep_icon-".$i[0]) != ""){
									?>
									<div class="social_container <?php echo esc_attr(strtolower($i[0])); ?>_container" onclick="window.open('<?php echo esc_js(get_option("deep_icon-".$i[0])); ?>', '<?php if (get_option("deep_enable_blank_social_link") == "on") echo "_blank"; if (get_option("deep_enable_blank_social_link") == "off") echo "_self"; ?>');">
										<i class="fab fa-<?php echo esc_attr(strtolower($i[0])); ?>"></i>
									</div>
							<?php
							}
						}
					?>	
					
					<?php if ( is_string(get_option("deep_icon-envelope")) && get_option("deep_icon-envelope") != "" ){ ?>
							<div class="social_container <?php echo esc_attr(strtolower($i[0])); ?>_container" onclick="window.open('<?php echo esc_js(get_option("deep_icon-envelope")); ?>', '<?php if (get_option("deep_enable_blank_social_link") == "on") echo "_blank"; if (get_option("deep_enable_blank_social_link") == "off") echo "_self"; ?>');">
								<i class="far fa-envelope"></i>
							</div>
						<?php } ?>
						
						<!-- Replace X Twitter from svg -->
						<?php if ( is_string(get_option("deep_icon-twitter")) && get_option("deep_icon-twitter") != "" ){ ?>
							
							<div class="social_container twitter_container" onclick="window.open('<?php echo esc_js(get_option("deep_icon-twitter")); ?>', '<?php if (get_option("deep_enable_blank_social_link") == "on") echo "_blank"; if (get_option("deep_enable_blank_social_link") == "off") echo "_self"; ?>');">
								<i>
									<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path id="twitter_x_svg" opacity="1" d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>
								</i>
							</div>
							
						<?php } ?>
						
						<!-- Add threads svg -->
						<?php if ( is_string(get_option("deep_icon-threads")) && get_option("deep_icon-threads") != "" ){ ?>
							
							<div class="social_container threads_container" onclick="window.open('<?php echo esc_js(get_option("deep_icon-threads")); ?>', '<?php if (get_option("deep_enable_blank_social_link") == "on") echo "_blank"; if (get_option("deep_enable_blank_social_link") == "off") echo "_self"; ?>');">
								<i>
									<svg aria-label="Threads" viewBox="0 0 192 192" xmlns="http://www.w3.org/2000/svg"><path id="threads_x_svg" d="M141.537 88.9883C140.71 88.5919 139.87 88.2104 139.019 87.8451C137.537 60.5382 122.616 44.905 97.5619 44.745C97.4484 44.7443 97.3355 44.7443 97.222 44.7443C82.2364 44.7443 69.7731 51.1409 62.102 62.7807L75.881 72.2328C81.6116 63.5383 90.6052 61.6848 97.2286 61.6848C97.3051 61.6848 97.3819 61.6848 97.4576 61.6855C105.707 61.7381 111.932 64.1366 115.961 68.814C118.893 72.2193 120.854 76.925 121.825 82.8638C114.511 81.6207 106.601 81.2385 98.145 81.7233C74.3247 83.0954 59.0111 96.9879 60.0396 116.292C60.5615 126.084 65.4397 134.508 73.775 140.011C80.8224 144.663 89.899 146.938 99.3323 146.423C111.79 145.74 121.563 140.987 128.381 132.296C133.559 125.696 136.834 117.143 138.28 106.366C144.217 109.949 148.617 114.664 151.047 120.332C155.179 129.967 155.42 145.8 142.501 158.708C131.182 170.016 117.576 174.908 97.0135 175.059C74.2042 174.89 56.9538 167.575 45.7381 153.317C35.2355 139.966 29.8077 120.682 29.6052 96C29.8077 71.3178 35.2355 52.0336 45.7381 38.6827C56.9538 24.4249 74.2039 17.11 97.0132 16.9405C119.988 17.1113 137.539 24.4614 149.184 38.788C154.894 45.8136 159.199 54.6488 162.037 64.9503L178.184 60.6422C174.744 47.9622 169.331 37.0357 161.965 27.974C147.036 9.60668 125.202 0.195148 97.0695 0H96.9569C68.8816 0.19447 47.2921 9.6418 32.7883 28.0793C19.8819 44.4864 13.2244 67.3157 13.0007 95.9325L13 96L13.0007 96.0675C13.2244 124.684 19.8819 147.514 32.7883 163.921C47.2921 182.358 68.8816 191.806 96.9569 192H97.0695C122.03 191.827 139.624 185.292 154.118 170.811C173.081 151.866 172.51 128.119 166.26 113.541C161.776 103.087 153.227 94.5962 141.537 88.9883ZM98.4405 129.507C88.0005 130.095 77.1544 125.409 76.6196 115.372C76.2232 107.93 81.9158 99.626 99.0812 98.6368C101.047 98.5234 102.976 98.468 104.871 98.468C111.106 98.468 116.939 99.0737 122.242 100.233C120.264 124.935 108.662 128.946 98.4405 129.507Z"></path></svg>
								</i>
							</div>
							
						<?php } ?>
						
						<!-- Add Medium svg -->
						<?php if ( is_string(get_option("deep_icon-medium")) && get_option("deep_icon-medium") != "" ){ ?>
							
							<div class="social_container medium_container" onclick="window.open('<?php echo esc_js(get_option("deep_icon-medium")); ?>', '<?php if (get_option("deep_enable_blank_social_link") == "on") echo "_blank"; if (get_option("deep_enable_blank_social_link") == "off") echo "_self"; ?>');">
								<i>
									<svg id="Medium" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 625 625">
									  <path id="medium_x_svg" d="M554.13,0H70.87C31.73,0,0,31.73,0,70.87v483.27c0,39.14,31.73,70.87,70.87,70.87h483.27c39.14,0,70.87-31.73,70.87-70.87V70.87c-.01-39.14-31.74-70.87-70.88-70.87ZM200.9,457.89c-79.75,0-144.4-65.09-144.4-145.39s64.65-145.39,144.4-145.39,144.4,65.1,144.4,145.39-64.65,145.39-144.4,145.39ZM431.51,449.38c-39.88,0-72.2-61.29-72.2-136.88s32.32-136.88,72.2-136.88,72.2,61.28,72.2,136.88h0c0,75.58-32.33,136.88-72.2,136.88ZM543.11,435.12c-14.03,0-25.39-54.9-25.39-122.62s11.37-122.62,25.39-122.62,25.39,54.9,25.39,122.62-11.37,122.62-25.39,122.62Z"/>
									</svg>
								</i>
							</div>
							
						<?php } ?>
						
						<?php if ( is_string(get_option("deep_icon-rss")) && get_option("deep_icon-rss") != "" ){ ?>
							<div class="social_container <?php echo esc_attr(strtolower($i[0])); ?>_container" onclick="window.open('<?php echo esc_js(get_option("deep_icon-rss")); ?>', '<?php if (get_option("deep_enable_blank_social_link") == "on") echo "_blank"; if (get_option("deep_enable_blank_social_link") == "off") echo "_self"; ?>');">
								<i class="fa fa-rss"></i>
							</div>
						<?php } ?>
					</div>
					<?php
				}
						
					
					?>
			</div>
				
			<?php
			//search trigger
			if (get_option("deep_enable_search") == "on"){
				?>
				<div class="search_trigger <?php if (get_option("deep_search_mobile") == "off") echo "disable_deep_search_mobile"; ?>">
					<i class="mi-search"></i>
					
				</div>
				<?php
			}
			?>
			
			<?php
			global $woocommerce;
			if (isset($woocommerce) && get_option("deep_woocommerce_cart") == "on"){	
			
				?>	
				<div class="deep_cart_header <?php if (get_option("deep_woocommerce_cart_mobile") == "off") echo "disable_deep_woocommerce_cart_mobile"; ?>">
					<?php deep_print_woocommerce_button();?>
					
					
				</div>
			
			<?php
			}
			
			/* Languages menu */
				if (get_option("deep_languages_menu") == "on"){
					?>
					<div class="menu-languages <?php if (get_option("deep_extra_menu_mobile") == "off") echo "disable_extra_menu_mobile"; ?>">
						
						<div class="top-bar-menu">
							<?php wp_nav_menu( array( 'theme_location' => 'languagenav', 'container' => false, 'menu_class' => 'sf-menu', 'menu_id' => 'menu_top_bar', 'fallback_cb' => false )); ?>
						</div>
						
					
						
					</div>
					<?php
				}
			?>
			
			
			<?php	
				if (get_option('deep_header_button') == 'on'){
					
					if (get_option('button_style') == 'text_style'){
						?>
						<div class="deep-header-button only_text_button <?php if (get_option("deep_extra_button_mobile") == "off") echo "disable_deep_button_mobile"; ?>">
							
							<a <?php if (get_option("deep_header_button_link_target") == "on") echo " target='_blank'"; ?> href="<?php echo esc_url(get_option('deep_header_button_link')); ?>" class="nav-to opacity-1 no-hover">
							
								<span class="link-hover-anim underline" data-link-animate="y">
									<?php	
									if (function_exists('icl_t')){
										printf(esc_html__( "%s", "deep" ), stripslashes_from_strings_only(icl_t( 'deep', 'Header Button', get_option('deep_header_button_text'))));
									} else {
										printf(esc_html__( "%s", "deep" ), stripslashes_from_strings_only(get_option('deep_header_button_text')));
									}
									if (get_option('deep_header_button_icon') == 'on'){
										?>
										<i class="icon-arrow-right1" aria-hidden="true"></i>
										<?php
										
									}
									?>
									
								</span>
							
							</a>
							
						</div>
						<?php
					}
					else if (get_option('button_style') == 'special_button_style'){
						?>
						<div class="deep-header-button only_special_button <?php if (get_option("deep_extra_button_mobile") == "off") echo "disable_deep_button_mobile"; ?>">
							
							
							<a <?php if (get_option("deep_header_button_link_target") == "on") echo " target='_blank'"; ?> href="<?php echo esc_url(get_option('deep_header_button_link')); ?>" class="nav-to">
							
								<span class="special_button_style_header" data-btn-animate="y">
									<span class="btn-animate-y">
										<?php	
										if (function_exists('icl_t')){
											printf(esc_html__( "%s", "deep" ), stripslashes_from_strings_only(icl_t( 'deep', 'Header Button', get_option('deep_header_button_text'))));
										} else {
											printf(esc_html__( "%s", "deep" ), stripslashes_from_strings_only(get_option('deep_header_button_text')));
										}
										
										if (get_option('deep_header_button_icon') == 'on'){
											?>
											<i class="icon-arrow-right1" aria-hidden="true"></i>
											<?php
											
										}
										?>
										
									</span>
									
								</span>
								
							</a>
							
						</div>
						<?php
					}else{
						?>
						<div class="deep-header-button only_button <?php if (get_option("deep_extra_button_mobile") == "off") echo "disable_deep_button_mobile"; ?>">
							<a <?php if (get_option("deep_header_button_link_target") == "on") echo " target='_blank'"; ?> href="<?php echo esc_url(get_option('deep_header_button_link')); ?>" class="nav-to"><?php 
								if (function_exists('icl_t')){
									printf(esc_html__( "%s", "deep" ), stripslashes_from_strings_only(icl_t( 'deep', 'Header Button', get_option('deep_header_button_text'))));
								} else {
									printf(esc_html__( "%s", "deep" ), stripslashes_from_strings_only(get_option('deep_header_button_text')));
								}
								
								if (get_option('deep_header_button_icon') == 'on'){
									?>
									<i class="icon-arrow-right1" aria-hidden="true"></i>
									<?php
									
								}
								?>
								
								
							</a>
						</div>
						<?php
					}
					}
				?>
			</div>
					
			
			
		<?php
			if (!$isfirstpage){
				?>
				<div id="dl-menu" class="dl-menuwrapper">
					<div class="dl-trigger-wrapper">
						<button class="dl-trigger">
							<span class="hamburguer-trigger-menu-icon">   
								<span class="hamburguer-line hamburger-line-1"></span>
								<span class="hamburguer-line hamburger-line-2"></span>
								<span class="hamburguer-line hamburger-line-3"></span>
							</span>
						</button>
					</div>
					<?php 
						if ($ispagephp){
							wp_nav_menu( array( 'theme_location' => 'PrimaryNavigation', 'container' => false, 'menu_class' => 'dl-menu', 'walker' => new deep_walker_nav_menu_outsider_mobile, 'fallback_cb' => esc_html__('You need to assign a Menu to the Main Navigation Location.','deep') ) );
						} 
						else {
							global $homes;
							$homes = 0;
							wp_nav_menu( array( 'theme_location' => 'PrimaryNavigation', 'container' => false, 'menu_class' => 'dl-menu', 'walker' => new deep_walker_nav_menu_mobile, 'fallback_cb' => esc_html__('You need to assign a Menu to the Main Navigation Location.','deep') ) );
						} 
					?>
				</div>
				<?php
			}
		?>
		
			<div class="navbar-collapse collapse">
				<?php 
					if (!$isfirstpage){
						if ($ispagephp){
							wp_nav_menu( array( 'theme_location' => 'PrimaryNavigation', 'container' => false, 'menu_class' => 'nav navbar-nav navbar-right', 'walker' => new deep_walker_nav_menu_outsider, 'fallback_cb' => esc_html__('You need to assign a Menu to the Main Navigation Location.','deep') ) );
						} 
						else {
							global $homes;
							$homes = 0;
							wp_nav_menu( array( 'theme_location' => 'PrimaryNavigation', 'container' => false, 'menu_class' => 'nav navbar-nav navbar-right', 'walker' => new deep_walker_nav_menu, 'fallback_cb' => esc_html__('You need to assign a Menu to the Main Navigation Location.','deep') ) );
						}
					}
					
					
				?>
				
			</div>
		
		</div>
		
	</header>
	<?php
}
	
?>