Files
Testing/tbs/wp-content/themes/bwshop/header.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

244 lines
19 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php bloginfo('name'); ?> <?php wp_title('&raquo;', true, 'right'); ?> </title>
<link href="<?php bloginfo('stylesheet_directory');?>/style.css?v=1.95" type="text/css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class() ?>>
<!-- Return to Top--><a href="javascript:" id="return-to-top"><i class="fas fa-chevron-up"></i></a><!--/-->
<!-- BG Strip --><div class="stripe"></div><!-- / -->
<!-- Search PopUp -->
<div id="searchover">
<button type="button" id="close" class="btn-orange close" data-dismiss="searchover">×</button>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input type="text" class="field" name="s" id="s" placeholder="type keyword(s) here" />
<button type="submit" class="btn btn-orange">Search</button>
</form>
</div>
<!-- / -->
<div class="container">
<div class="hidden-xs visible-sm visible-md visible-lg">
<div class="row main-logo">
<div class="col-sm-12">
<div class="col-sm-6"><a href="<?php bloginfo('url');?>/"><img src="<?php bloginfo('stylesheet_directory');?>/images/TheBateShop_Logo.png" class="img-responsive"></a></div>
<div class="col-sm-6 text-right"><?php include( get_template_directory() . '/includes/vert-standard.php'); ?></div>
<div class="clearfix"></div>
</div>
</div>
<div class="row">
<!-- Nav DESKTOP -->
<div id="custom-menu" class="navbar navbar-default" role="navigation">
<div class="container-fluid nopadding">
<div id="navbar-full" class="collapse navbar-collapse" data-hover="dropdown" data-animations="fadeIn">
<ul class="nav navbar-nav navbar-left">
<li><a href="<?php bloginfo('url');?>">Home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Bate Fuel <b class="caret"></b></a>
<ul class="dropdown-menu multi-column columns-2">
<div class="row">
<div class="col-sm-6">
<?php if(get_field('batefuel_-_nav_-_left',options)): $i = 0; ?>
<ul class="multi-column-dropdown">
<?php while(has_sub_field('batefuel_-_nav_-_left',options)): $i++; ?>
<li><a href="<?php the_sub_field('page');?>" title="<?php the_sub_field('link_title');?>"><?php the_sub_field('link_title');?></a><span><?php the_sub_field('link_description');?></span></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</div>
<div class="col-sm-6">
<?php if(get_field('batefuel_-_nav_-_right',options)): $i = 0; ?>
<ul class="multi-column-dropdown">
<?php while(has_sub_field('batefuel_-_nav_-_right',options)): $i++; ?>
<li><a href="<?php the_sub_field('page');?>" title="<?php the_sub_field('link_title');?>"><?php the_sub_field('link_title');?></a><span><?php the_sub_field('link_description');?></span></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<div style="padding: 15px 0; text-align: center;"><a href="<?php bloginfo('url');?>/batefuel" class="btn btn-orange btn-sm">VIEW ALL BATEFUEL</a></div>
</div>
<div class="clearfix"></div>
</div>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Products <b class="caret"></b></a>
<ul class="dropdown-menu multi-column columns-2">
<div class="row">
<div class="col-sm-4">
<?php if( have_rows('products_-_nav_-_left',options) ): ?>
<ul class="multi-column-dropdown">
<?php while( have_rows('products_-_nav_-_left',options) ): the_row(); ?>
<li class="column-header"><a href="<?php the_sub_field('section_title_link');?>" title="<?php the_sub_field('section_title');?>"><?php the_sub_field('section_title');?></a></li>
<?php if( have_rows('section_content') ): ?>
<?php while( have_rows('section_content') ): the_row();?>
<li><a href="<?php the_sub_field('page_link');?>" title="<?php the_sub_field('link_name');?>"><?php the_sub_field('link_name');?></a><span><?php the_sub_field('link_description');?></span></li>
<?php endwhile; ?>
<?php endif; ?>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</div>
<div class="col-sm-4">
<?php if( have_rows('products_-_nav_-_middle',options) ): ?>
<ul class="multi-column-dropdown">
<?php while( have_rows('products_-_nav_-_middle',options) ): the_row(); ?>
<li class="column-header"><a href="<?php the_sub_field('section_title_link');?>" title="<?php the_sub_field('section_title');?>"><?php the_sub_field('section_title');?></a></li>
<?php if( have_rows('section_content') ): ?>
<?php while( have_rows('section_content') ): the_row();?>
<li><a href="<?php the_sub_field('page_link');?>" title="<?php the_sub_field('link_name');?>"><?php the_sub_field('link_name');?></a><span><?php the_sub_field('link_description');?></span></li>
<?php endwhile; ?>
<?php endif; ?>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</div>
<div class="col-sm-4">
<?php if( have_rows('products_-_nav_-_right',options) ): ?>
<ul class="multi-column-dropdown">
<?php while( have_rows('products_-_nav_-_right',options) ): the_row(); ?>
<li class="column-header"><a href="<?php the_sub_field('section_title_link');?>" title="<?php the_sub_field('section_title');?>"><?php the_sub_field('section_title');?></a></li>
<?php if( have_rows('section_content') ): ?>
<?php while( have_rows('section_content') ): the_row();?>
<li><a href="<?php the_sub_field('page_link');?>" title="<?php the_sub_field('link_name');?>"><?php the_sub_field('link_name');?></a><span><?php the_sub_field('link_description');?></span></li>
<?php endwhile; ?>
<?php endif; ?>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<div style="padding: 15px 0; text-align: center;"><a href="<?php bloginfo('url');?>/products" class="btn btn-orange btn-sm">VIEW ALL PRODUCTS</a></div>
</div>
<div class="clearfix"></div>
</div>
</ul>
</li>
<li><a href="<?php bloginfo('url');?>/batefuel-category/live-cams" title="Live Cams">Live Cams</a></li>
<li><a href="http://www.bateworld.com" target="_blank" title="Bateworld">BateWorld</a></li>
<li><a href="http://www.thebatorblog.com" target="_blank" title="The Bater Blog">The Bator Blog</a></li>
<li><a href="#searchover"><span class="fa fa-search"></span></a></li>
</ul>
</div>
</div>
<!-- / Nav -->
</div>
</div>
</div>
<div class="visible-xs hidden-sm hidden-md hidden-lg">
<nav class="navbar navbar-default">
<div class="container nopadding">
<div class="navbar-header">
<div class="col-xs-9"><a href="<?php bloginfo('url');?>/"><img src="<?php bloginfo('stylesheet_directory');?>/images/TheBateShop_Logo_mobile.png" class="img-responsive"></a></div>
<div class="col-xs-3">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navmobile" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="clearfix"></div>
</div>
<div id="navmobile" class="navbar-collapse collapse">
<ul class="mobile-navigation">
<li><a href="<?php bloginfo('url');?>">Home</a></li>
<li>
<a href="#batefuel" data-toggle="collapse">Batefuel <span class="fa fa-caret-down"></span></a>
<div id="batefuel" class="collapse">
<ul class="mobile-dropdown">
<li><a href="<?php bloginfo('url');?>/batefuel">View All Batefuel</a></li>
<?php if(get_field('batefuel_-_nav_-_left',options)): $i = 0; ?>
<?php while(has_sub_field('batefuel_-_nav_-_left',options)): $i++; ?>
<li><a href="<?php the_sub_field('page');?>" title="<?php the_sub_field('link_title');?>"><?php the_sub_field('link_title');?></a> <span class="sub-text"><?php the_sub_field('link_description');?></span></li>
<?php endwhile; ?>
<?php endif; ?>
<?php if(get_field('batefuel_-_nav_-_right',options)): $i = 0; ?>
<?php while(has_sub_field('batefuel_-_nav_-_right',options)): $i++; ?>
<li><a href="<?php the_sub_field('page');?>" title="<?php the_sub_field('link_title');?>"><?php the_sub_field('link_title');?></a> <span class="sub-text"><?php the_sub_field('link_description');?></span></li>
<?php endwhile; ?>
<?php endif; ?>
</ul>
</div>
</li>
<li>
<a href="#products" data-toggle="collapse">Products <span class="fa fa-caret-down"></span></a>
<div id="products" class="collapse">
<ul class="mobile-dropdown">
<li><a href="<?php bloginfo('url');?>/products">View All Products</a></li>
<?php if( have_rows('products_-_nav_-_left',options) ): ?>
<ul class="grouping">
<?php while( have_rows('products_-_nav_-_left',options) ): the_row(); ?>
<li class="column-header"><a href="<?php the_sub_field('section_title_link');?>" title="<?php the_sub_field('section_title');?>"><?php the_sub_field('section_title');?></a></li>
<?php if( have_rows('section_content') ): ?>
<ul class="sub-group">
<?php while( have_rows('section_content') ): the_row();?>
<li><a href="<?php the_sub_field('page_link');?>" title="<?php the_sub_field('link_name');?>"><?php the_sub_field('link_name');?></a> <span class="sub-text"><?php the_sub_field('link_description');?></span></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php if( have_rows('products_-_nav_-_middle',options) ): ?>
<ul class="grouping">
<?php while( have_rows('products_-_nav_-_middle',options) ): the_row(); ?>
<li class="column-header"><a href="<?php the_sub_field('section_title_link');?>" title="<?php the_sub_field('section_title');?>"><?php the_sub_field('section_title');?></a></li>
<?php if( have_rows('section_content') ): ?>
<ul class="sub-group">
<?php while( have_rows('section_content') ): the_row();?>
<li><a href="<?php the_sub_field('page_link');?>" title="<?php the_sub_field('link_name');?>"><?php the_sub_field('link_name');?></a> <span class="sub-text"><?php the_sub_field('link_description');?></span></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php if( have_rows('products_-_nav_-_right',options) ): ?>
<ul class="grouping">
<?php while( have_rows('products_-_nav_-_right',options) ): the_row(); ?>
<li class="column-header"><a href="<?php the_sub_field('section_title_link');?>" title="<?php the_sub_field('section_title');?>"><?php the_sub_field('section_title');?></a></li>
<?php if( have_rows('section_content') ): ?>
<ul class="sub-group">
<?php while( have_rows('section_content') ): the_row();?>
<li><a href="<?php the_sub_field('page_link');?>" title="<?php the_sub_field('link_name');?>"><?php the_sub_field('link_name');?></a> <span class="sub-text"><?php the_sub_field('link_description');?></span></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</ul>
</div>
</li>
<li><a href="<?php bloginfo('url');?>/batefuel-category/live-cams" title="Live Cams">Live Cams</a></li>
<li><a href="http://www.bateworld.com" target="_blank" title="Bateworld">BateWorld</a></li>
<li><a href="http://www.thebatorblog.com" target="_blank" title="The Bater Blog">The Bator Blog</a></li>
<li>
<h4 class="head-text">Search</h4>
<div class="text-center">
<?php get_search_form(); ?>
</div>
</li>
</ul>
</div>
</div>
</nav>
</div>