rebase from live enviornment
This commit is contained in:
249
wp/themes/thbusiness/header-specialoffer.php
Normal file
249
wp/themes/thbusiness/header-specialoffer.php
Normal file
@@ -0,0 +1,249 @@
|
||||
<?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">
|
||||
<?php wp_head(); ?>
|
||||
<?php remove_filter ('the_content', 'wpautop'); ?>
|
||||
|
||||
<style>
|
||||
.entry-footer-insinglepost {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hentry {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.nav-promo {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
a.nav-order-btn {
|
||||
font-weight: 700;
|
||||
display: inline-block;
|
||||
line-height: 50px;
|
||||
line-height: 40px;
|
||||
height: auto;
|
||||
padding: 0px 16px;
|
||||
font-size: 20px;
|
||||
margin: 12px 0 0 0px;
|
||||
color: #FFF;
|
||||
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#e21c00+36,e21c00+36,8d1200+100 */
|
||||
background: #e21c00;
|
||||
/* Old browsers */
|
||||
background: -moz-linear-gradient(top, #e21c00 36%, #e21c00 36%, #8d1200 100%);
|
||||
/* FF3.6-15 */
|
||||
background: -webkit-linear-gradient(top, #e21c00 36%, #e21c00 36%, #8d1200 100%);
|
||||
/* Chrome10-25,Safari5.1-6 */
|
||||
background: linear-gradient(to bottom, #e21c00 36%, #e21c00 36%, #8d1200 100%);
|
||||
/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
|
||||
filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#e21c00', endColorstr='#8d1200', GradientType=0);
|
||||
/* IE6-9 */
|
||||
}
|
||||
|
||||
a.nav-order-btn:hover {
|
||||
background: #e21c00;
|
||||
color: #FFF;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.nav-call {
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
font-size: 13px;
|
||||
line-height: normal;
|
||||
text-align: right;
|
||||
float: right;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.nav-call strong {
|
||||
font-size: 24px;
|
||||
color: #004790;
|
||||
}
|
||||
|
||||
a.phone-header {display: block; height: auto; margin: 0px auto 10px auto; font-size: 17px; color: #b71220; font-weight: 700}
|
||||
a.phone-header:hover {background: none; color: #b71220}
|
||||
|
||||
@media all and (max-width: 1199px) {
|
||||
.nav-promo-img {
|
||||
max-width: 60%;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (max-width: 585px) and (min-width: 468px) {
|
||||
.nav-call {
|
||||
float: none;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
margin: auto
|
||||
}
|
||||
.nav-promo-img {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (max-width: 467px) {
|
||||
.nav-call {
|
||||
float: left;
|
||||
text-align: center;
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
.nav-promo-img {
|
||||
max-width: 94%;
|
||||
margin: -10px auto 10px auto;
|
||||
display: block;margin-left: 0;
|
||||
}
|
||||
.flush-right {
|
||||
padding-right: 0;
|
||||
}
|
||||
a.nav-order-btn {
|
||||
display: none;
|
||||
}
|
||||
span.number {
|
||||
display: block
|
||||
}
|
||||
span.mobile-hide {
|
||||
display: none;
|
||||
}
|
||||
.nav-call a {
|
||||
color: #FFF; height: 30px; font-size:24px; font-weight: 700;
|
||||
}
|
||||
.nav-call strong {
|
||||
font-size: 24px;
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<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">
|
||||
<div class="top-bar">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-xs-12 col-sm-12">
|
||||
<p class="phonetext">
|
||||
<?php $tp_text = of_get_option('thbusiness_telephone_text','');?>
|
||||
<?php if (isset($_COOKIE["WebTopBarSpecialOffer"])) : ?>
|
||||
<?php echo do_shortcode('[campaign_special]');?>
|
||||
<?php endif; ?>
|
||||
<?php if (!isset($_COOKIE["WebTopBarSpecialOffer"])) : ?>
|
||||
|
||||
<?php echo esc_attr($tp_text) ?>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-4 col-xs-12 col-sm-12 phonenumber">
|
||||
<div class="existing-customer">Existing Customer<br/>
|
||||
<a href="http://medicalalertsupport.com/">Click Here</a>
|
||||
</div>
|
||||
<p>
|
||||
<a href="tel: <?php echo do_shortcode('[op /]');?>
|
||||
">
|
||||
<?php echo do_shortcode('[op /]');?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="phonetext-mobile">
|
||||
<div class="mobile-text-left">
|
||||
|
||||
<?php $tp_text = of_get_option('thbusiness_telephone_text','');?>
|
||||
<?php if (isset($_COOKIE["WebTopBarSpecialOffer"])) : ?>
|
||||
<?php echo do_shortcode('[campaign_special]');?>
|
||||
<?php endif; ?>
|
||||
<?php if (!isset($_COOKIE["WebTopBarSpecialOffer"])) : ?>
|
||||
<?php echo esc_attr($tp_text) ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="mobile-icon-right">
|
||||
<?php echo do_shortcode('[op]')?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3 col-xs-12 col-lg-3">
|
||||
<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"> <img src="<?php echo of_get_option( 'thbusiness_site_logo_image', '' ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" style="margin: 10px auto 0 auto;"> </div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- .col-md-4 .col-xs-12 .col-lg-4 -->
|
||||
<div class="col-md-9 col-xs-12 col-lg-9 flush-right nav-promo">
|
||||
<nav id="site-navigation" class="main-navigation" role="navigation" style="line-height: 83px; display: block">
|
||||
|
||||
<div class="nav-call"><a href="<?php bloginfo('url'); ?>/medical-select-product" class="nav-order-btn">Order Now</a><span>
|
||||
<a href="tel:<?php echo do_shortcode('[op]');?>" class="phone-header">
|
||||
<?php echo do_shortcode('[op]');?>
|
||||
</a>
|
||||
</span>
|
||||
</div> <img src="<?php bloginfo('url'); ?>/wp-content/themes/thbusiness/images/promo-in-nav.jpg" alt="Special Offer - Free Gift just for calling!" class="nav-promo-img">
|
||||
|
||||
</nav>
|
||||
<!-- #site-navigation -->
|
||||
|
||||
|
||||
</div>
|
||||
<!-- .col-md-8 .col-xs-12 .col-lg-8 -->
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- .col-md-8 .col-xs-12 .col-lg-8 -->
|
||||
</div>
|
||||
<!-- .row -->
|
||||
</div>
|
||||
<!-- container -->
|
||||
</header>
|
||||
<!-- #masthead -->
|
||||
|
||||
<?php if ( get_header_image() ) : ?>
|
||||
<figure class="thbusiness-header-image"> <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt=""> </figure>
|
||||
<?php endif; // End header image check. ?>
|
||||
<?php
|
||||
if ( of_get_option( 'thbusiness_activate_slider', '0' ) == '1' ) {
|
||||
if ( is_front_page() ) {
|
||||
thbusiness_homepage_slider();
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<!-- .row -->
|
||||
</div>
|
||||
<!-- .container-fluid -->
|
||||
|
||||
<div id="content" class="site-content">
|
||||
<div class="container-fluid" style="padding: 0;">
|
||||
<div class="row">
|
||||
Reference in New Issue
Block a user