153 lines
5.8 KiB
PHP
153 lines
5.8 KiB
PHP
<?php
|
|
/**
|
|
* The Header for our theme.
|
|
*
|
|
* Displays all of the <head> section and everything up till <div id="content">
|
|
*
|
|
* @package thbusiness
|
|
*/
|
|
|
|
?><!DOCTYPE html>
|
|
<html <?php language_attributes(); ?>>
|
|
<head>
|
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
|
<meta http-equiv="Pragma" content="no-cache" />
|
|
<meta http-equiv="Expires" content="0" />
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title><?php wp_title( '|', true, 'right' ); ?></title>
|
|
<link rel="profile" href="http://gmpg.org/xfn/11">
|
|
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
|
|
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css">
|
|
<meta name="format-detection" content="telephone=yes">
|
|
|
|
<?php wp_head(); ?>
|
|
|
|
<meta name="format-detection" content="telephone=yes">
|
|
|
|
<?php
|
|
|
|
$accent_desktop = of_get_option('thbusiness_accent_image_desktop1','');
|
|
$accent_mobile = of_get_option('thbusiness_accent_image_mobile1','');
|
|
|
|
?>
|
|
|
|
<style>
|
|
.hero_section:before {width:391px; height:270px;position:absolute; left:0px; top:0px; content:""; background:url('<?php echo $accent_desktop; ?>') no-repeat center center; background-size:cover;}
|
|
|
|
|
|
|
|
@media only screen and (min-width:299px) and (max-width:980px) {
|
|
.hero_section:before { width: 160px; height: 110px; position: absolute; left: auto; top:10px; right:0px;
|
|
background: url('<?php echo $accent_mobile; ?>') no-repeat center center;
|
|
z-index: 1; right: 0;}
|
|
}
|
|
|
|
|
|
@media only screen and (min-width:299px) and (max-width:599px) {
|
|
.mobile-hero::after {
|
|
position:absolute;
|
|
content:"";
|
|
top:0;
|
|
right:0;
|
|
width:110px;
|
|
height:156px;
|
|
background-image: url('<?php echo $accent_mobile; ?>');
|
|
background-repeat: no-repeat;
|
|
display: block!important;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<!-- <body <?php body_class(); ?> onload="_googWcmGet(callback, '1-800-123-4567')"> -->
|
|
|
|
<body <?php body_class(); ?> >
|
|
<div id="page" class="hfeed site">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
|
|
<header id="masthead" class="site-header" role="banner" style="padding-left:0;">
|
|
<?php if( of_get_option( 'thbusiness_topbar', '1' ) == '1' ) {
|
|
get_template_part('inc/topbar');
|
|
} ?>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="phone-mobile"><?php echo do_shortcode('[op]');?></span></a></div>
|
|
<div class="site-branding">
|
|
<?php if ( of_get_option( 'thbusiness_show_site_logo_text', 'text_only' ) == 'logo_only' && of_get_option( 'thbusiness_site_logo_image', '' ) != '' ) { ?>
|
|
<div class="site-logo-image">
|
|
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo of_get_option( 'thbusiness_site_logo_image', '' ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"></a>
|
|
</div>
|
|
<?php } ?>
|
|
<?php if ( of_get_option( 'thbusiness_show_site_logo_text', 'text_only' ) == 'text_only' ) { ?>
|
|
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
|
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-8 flush-right">
|
|
<nav id="site-navigation" class="main-navigation" role="navigation">
|
|
|
|
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu primary-menu' ) ); ?>
|
|
<?php wp_nav_menu( array( 'theme_location' => 'mobile', 'menu_class' => 'nav-menu mobile-menu' ) ); ?>
|
|
|
|
</nav><!-- #site-navigation -->
|
|
<a href="#" class="navbutton" id="main-nav-button"></a>
|
|
<div class="moblogo"><a href="/"><img src="/wp-content/uploads/2019/10/ma-logo@2x.png"></a></div>
|
|
<div class="mobcart" id="show-mob-cart"><a href="/medical-shipping"><img src="/wp-content/uploads/2021/05/cart.png"></a></div>
|
|
<div class="mobphone"><a href="tel:<?php echo do_shortcode('[op]');?>"><img src="/wp-content/uploads/2019/10/phone@2x.png"></a></div>
|
|
<div class="responsive-mainnav"></div>
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
|
|
</div><!-- .row -->
|
|
</div><!-- container -->
|
|
</header><!-- #masthead -->
|
|
|
|
<!-- Begin Promo Area -->
|
|
<div id="promo-area"><div class="promo-container"><p><a href="/covid-19" style="text-decoration:none;color:#fff"><span style="color: #fdc800;">COVID-19 Update: </span> We are 100% operational and sharing resources to protect yourself against COVID-19. Learn More »</a></p></div></div>
|
|
<div id="promo-mobile"><div class="promo-mobile-container"><p>
|
|
<a href="/covid-19" style="text-decoration:none;color:#fff"><span style="color: #fdc800;">COVID-19 Update: </span> Learn More »</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<!-- End Promo Area -->
|
|
<?php if ( get_header_image() ) : ?>
|
|
<figure class="thbusiness-header-image">
|
|
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
|
|
<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="">
|
|
</a>
|
|
</figure>
|
|
<?php endif; // End header image check. ?>
|
|
|
|
<?php
|
|
if( of_get_option( 'thbusiness_activate_slider', '0' ) == '1' ) {
|
|
if ( is_front_page() ) {
|
|
thbusiness_homepage_slider();
|
|
}
|
|
} ?>
|
|
<?php
|
|
$txt = "Order Now";
|
|
$txt2 = do_shortcode('[op]');
|
|
if (! is_front_page() ) {
|
|
$txt = "";
|
|
$txt2 = "";
|
|
}
|
|
?>
|
|
</div><!-- .row -->
|
|
</div><!-- .container-fluid -->
|
|
|
|
<div id="content" class="site-content">
|
|
<!--<div class="clickable-content"><a href="https://medicalalert.com/medical-select-product"><?php echo $txt;?> </a></div><div class="clickable-content-number"><div class="mNumber"><a href="tel:8777387485"><?php echo $txt2;?></a> </div> </div>-->
|
|
<div class="container">
|
|
<div class="row">
|