<!doctype html>
<!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">

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

<body <?php body_class(); ?>>
<?php wp_body_open(); ?>

<div id="page">
	<div id="mobile-bar">
		<a class="menu-trigger" href="#mobilemenu"><i class="fa fa-bars"></i></a>
		<div class="mob-title"><?php bloginfo( 'name' ); ?></div>
	</div>

	<header id="header">
		<div class="container">
			<div class="row">
				<div class="col-md-4 col-sm-3">
					<?php ci_e_logo( '<div class="site-logo ' . get_logo_class() . '">', '</div>' ); ?>
				</div>
				<div class="col-md-8 col-sm-9">
					<?php if ( has_nav_menu( 'ci_secondary_menu' ) || woocommerce_enabled() ) : ?>
						<nav class="nav-secondary-wrap">
							<ul class="nav-secondary">
								<?php wp_nav_menu( array(
									'theme_location' => 'ci_secondary_menu',
									'fallback_cb'    => '',
									'container'      => '',
									'menu_id'        => '',
									'menu_class'     => '',
									'items_wrap'     => '%3$s'
								) ); ?>

								<?php if ( woocommerce_enabled() ) : ?>
									<li>
										<div class="cart-head">
											<?php _e('Shopping Bag', 'ci_theme'); ?>:
											<a href="<?php echo esc_url( wc_get_cart_url() ); ?>">
												<b><?php echo sprintf( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count(), 'ci_theme' ), WC()->cart->get_cart_contents_count() ); ?></b>	<span class="cart-price"><?php echo WC()->cart->get_cart_total(); ?></span>
											</a>
										</div>
									</li>
								<?php endif; ?>
							</ul>
						</nav>
					<?php endif; ?>

					<nav id="nav">
						<?php wp_nav_menu( array(
							'theme_location' => 'ci_main_menu',
							'fallback_cb'    => '',
							'container'      => '',
							'menu_id'        => 'navigation',
							'menu_class'     => 'group'
						) ); ?>
					</nav>

					<div id="mobilemenu"></div>
				</div>
			</div>
		</div>
	</header>