<?php
/**
 * The header for our theme
 *
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package ChromaticCapital
 */

?>
<!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="https://gmpg.org/xfn/11">

	<?php wp_head(); ?>
</head>
<?php

if ( !is_user_logged_in() && !is_front_page()) {
    wp_redirect( 'http://nikunj.creativamotions.com/ChromaticCapital/' );
    exit;
}


?>
<body <?php body_class(); ?>>
<div id="page" class="site">

	<div id="content" class="site-content">
        <?php if (!is_front_page()&&!is_home()): ?>
        <section class="container">
            <nav class="navbar navbar-default navbar_theme">
                <div class="container-fluid">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">
                        <?php
                        $logo = get_field('logo','option');
                        if( !empty($logo) ): ?>
                            <a class="navbar-brand logo" href="<?= site_url(); ?>">
                                <img src="<?php echo $logo['url']; ?>" alt="<?php echo $logo['alt']; ?>" />
                            </a>
                        <?php endif; ?>
                    </div>
                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <?php get_search_form(); ?>
                    </div><!-- /.navbar-collapse -->
                    <a href="javascript:void(0)" class="nav_thline active">
                        <img src="<?= get_template_directory_uri(); ?>/img/line-3.png" class="active" alt=""/>
                        <img src="<?= get_template_directory_uri(); ?>/img/close.png" alt=""/>
                    </a>
                </div><!-- /.container-fluid -->
            </nav>
        <?php endif; ?>