File: /var/www/captainschairit.com/wp-content/themes/captainschare/header-404.php
<?php
/**
* The template for displaying the header
*
* Displays all of the head element and everything up until the "site-content" div.
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
<?php endif; ?>
<link rel="shortcut icon" type="image/png" href="<?php echo get_bloginfo('template_directory');?>/img/favicon.ico" id="favicon" data-original-href="<?php echo get_bloginfo('template_directory');?>/img/favicon.ico" />
<!-- Bootstrap core CSS -->
<link href="<?php echo get_bloginfo('template_directory');?>/css/bootstrap.min.css" rel="stylesheet">
<!-- hover Effect CSS -->
<link href="<?php echo get_bloginfo('template_directory');?>/css/hover.css" rel="stylesheet" media="all">
<!-- Animation CSS -->
<link rel="stylesheet" href="<?php echo get_bloginfo('template_directory');?>/css/animate.css">
<!-- Custom fonts for this template -->
<link href="<?php echo get_bloginfo('template_directory');?>/fonts/css/all.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i&display=swap" rel="stylesheet">
<!-- Serialize CSS -->
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/css/selectize.bootstrap3.min.css" integrity="sha256-ze/OEYGcFbPRmvCnrSeKbRTtjG4vGLHXgOqsyLFTRjg=" crossorigin="anonymous" /> -->
<link rel="stylesheet" type="text/css" href="<?php echo get_bloginfo('template_directory');?>/css/slick.css">
<link rel="stylesheet" type="text/css" href="<?php echo get_bloginfo('template_directory');?>/css/slick-theme.css">
<!-- Custom styles for this template -->
<link href="<?php echo get_bloginfo('template_directory');?>/css/custom.css" rel="stylesheet">
<?php session_start(); ?>
<?php wp_head(); ?>
</head>
<body id="page-top">
<a href="#" id="scroll" style="display: none;"><span></span></a>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark main-navigation msp-menu" id="mainNav">
<?php //$announcement = get_option('announcement');
// if($announcement != '') { ?>
<!-- <div class="top-header topHeader">
<div class="container">
<div class="row">
<div class="col">
<p class="text-center">
<a href="<?php //echo get_option('announcement_link'); ?>" target="_blank"><?php //echo get_option('announcement'); ?>
<i class="fas fa-arrow-right"></i></a>
<i class="fas fa-times-circle remove"></i>
</p>
</div>
</div>
</div>
</div> -->
<?php
//} ?>
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="<?php echo get_site_url(); ?>">
<img src="<?php echo get_option('site_logo'); ?>" alt="Captains Chair">
</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false"
aria-label="Toggle navigation"><i class="fas fa-bars"></i></button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<?php
$locations = get_nav_menu_locations();
// echo '<pre>'; print_r($locations);
if ( isset( $locations[ 'primary' ] ) ) {
$menu = get_term( $locations[ 'primary' ], 'nav_menu' );
$menu_array = wp_get_menu_array($menu);
// echo '<pre>'; print_r($menu_array);
foreach($menu_array as $menu_item) {
if(count($menu_item['children']) > 0) {
// echo '<pre>'; print_r($menu_item); ?>
<li class="nav-item dropdown has-mega-menu">
<a class="nav-link dropdown-toggle hvr-underline-from-center" data-toggle="dropdown" href="" role="button" aria-haspopup="true" aria-expanded="false"><?php echo $menu_item['title']; ?></a>
<!--Mega Menu-->
<div class="dropdown-menu one-dropdown-menu">
<?php foreach($menu_item['children'] as $sub_item) { ?>
<a class="dropdown-item js-scroll-trigger" href="<?php echo $sub_item['url'] ?>"><?php echo $sub_item['title']; ?></a>
<?php
} ?>
</div>
<!--Mega Menu-->
</li>
<?php
} else { ?>
<li class="nav-item">
<a class="nav-link hvr-underline-from-center" href="<?php echo $menu_item['url']; ?>"><?php echo $menu_item['title']; ?></a>
</li>
<?php
}
}
}
?>
</ul>
</div>
<div class="demo-login-btn">
<a href="<?php echo get_option('cc_login'); ?>" class="login msp-login-btn hvr-shutter-out-horizontal">Login</a>
<!-- <a href="<?php //echo get_site_url(); ?>/pricing-msp" class="login GetaDemo hvr-shutter-out-horizontal">Start 30-Day Preview</a> -->
</div>
</div>
</nav>