File: /home/c0400220/public_html/wp-content/themes/industryup/header.php
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @package industryup
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php echo esc_url(get_bloginfo( 'pingback_url' )); ?>">
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> >
<?php wp_body_open(); ?>
<a class="skip-link screen-reader-text" href="#content">
<?php esc_html_e( 'Skip to content', 'industryup' ); ?></a>
<div class="wrapper">
<header class="bs-headwidget default">
<!--top-bar-->
<div class="header_widgets d-none d-lg-block">
<div class="container">
<div class="row align-items-center">
<div class="col">
<?php do_action('industryup_action_header_logo_menu_section'); ?>
</div>
<!--/col-->
<?php do_action('icycp_industryup_top_header'); ?>
<!--/col-md-8-->
</div>
<!--/row-->
</div>
<!--/container-->
</div>
<!--/top-bar-->
<div class="clearfix"></div>
<!-- Main Menu Area-->
<div class="container mobi-menu">
<!-- Logo image -->
<div class="navbar-header">
<div class="navbar-header-logo">
<?php the_custom_logo();
if (display_header_text()) : ?>
<div class="site-branding-text navbar-brand">
<h1 class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<?php
echo esc_html(get_bloginfo('name'));
?>
</a>
</h1>
<p class="site-description"><?php echo esc_html(bloginfo('description')); ?></p>
</div>
<?php endif; ?>
<!-- navbar-toggle -->
</div>
<!-- /Logo -->
<div class="desk-header ms-auto position-relative align-items-center">
<?php $hide_show_nav_menu_btn = get_theme_mod('hide_show_nav_menu_btn','1');
$menu_btn_label = get_theme_mod('menu_btn_label');
$menu_btn_link = get_theme_mod('menu_btn_link');
$menu_btn_target = get_theme_mod('menu_btn_target','1');
if($hide_show_nav_menu_btn == '1') {
if($menu_btn_label) { ?>
<a <?php if($menu_btn_target == '1') { ?> target ="_blank" <?php } ?> href="<?php echo esc_url($menu_btn_link); ?>" class="btn btn-0"><?php echo esc_html($menu_btn_label); ?></a>
<?php } } ?>
<button type="button" class="navbar-toggler collapsed" data-toggle="collapse" data-target="#navbar-wp" aria-controls="navbar-wp" aria-expanded="true" aria-label="<?php esc_attr_e('Toggle navigation','industryup'); ?>">
<span class="navbar-toggler-icon"><i class="fas fa-times"></i></span>
</button>
</div>
</div>
</div>
<?php $nav_menu_sticky = get_theme_mod('nav_menu_sticky','sticky'); ?>
<!--/ Main Menu Area-->
<!-- desk-menu-->
<div class="container bs-stick desk-menu">
<div class="bs-main-nav">
<nav class="navbar navbar-expand-lg navbar-wp <?php if($nav_menu_sticky == 'sticky'){echo 'header-sticky'; } else {echo 'header-static'; } ?>">
<div class="collapse navbar-collapse" id="navbar-wp">
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'container' => 'collapse navbar-collapse',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'industryup_fallback_page_menu',
'walker' => new industryup_nav_walker()
) );
?>
</div>
<div class="desk-header pl-3 ml-auto my-2 my-lg-0 position-relative align-items-center">
<!---Menu Button --->
<?php $hide_show_nav_menu_btn = get_theme_mod('hide_show_nav_menu_btn','1');
$menu_btn_label = get_theme_mod('menu_btn_label','Read More');
$menu_btn_link = get_theme_mod('menu_btn_link');
$menu_btn_target = get_theme_mod('menu_btn_target','1');
if($hide_show_nav_menu_btn == '1') { if($menu_btn_label) { ?>
<a <?php if($menu_btn_target == '1') { ?> target ="_blank" <?php } ?> href="<?php echo esc_url($menu_btn_link); ?>" class="btn btn-0 ms-2 me-1 d-none d-md-block"><?php echo esc_html($menu_btn_label); ?></a>
<?php } } ?>
</div>
</nav>
</div>
</div>
<!-- /desk-menu-->
</header>