<?php
/**
* The Header for our theme.
*
* For the full license information, please view the Licensing folder
* that was distributed with this source code.
*
* @package G1_Framework
* @subpackage G1_Theme03
* @since G1_Theme03 1.0.0
*/// Prevent direct script access
if ( !defined('ABSPATH') )
die ( 'No direct script access allowed' );?><!DOCTYPE html>
<!--[if IE 7]>
<html class="no-js lt-ie10 lt-ie9 lt-ie8" id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie10 lt-ie9" id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 9]>
<html class="no-js lt-ie10" id="ie9" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !IE]><!-->
<html class="no-js" <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title( '', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /><?php wp_head(); ?>
</head>
<body <?php body_class(); ?> itemscope itemtype="http://schema.org/WebPage">
<?php do_action( 'g1_before_page' ); ?>
<div id="page">
<div id="g1-top">
<?php
/* Executes a custom hook.
* If you want to add some content before the g1-header, hook into 'g1_header_before' action.
*/
do_action( 'g1_header_before' );
?><!-- BEGIN #g1-header -->
<div id="g1-header-waypoint">
<div id="g1-header" class="g1-header" role="banner">
<div class="g1-layout-inner">
<?php
/* Executes a custom hook.
* If you want to add some content before the g1-primary-bar, hook into 'g1_header_begin' action.
*/
do_action( 'g1_header_begin' );
?><div id="g1-primary-bar">
<?php G1_Theme()->render_site_id(); ?><!-- BEGIN #g1-primary-nav -->
<nav id="g1-primary-nav" class="g1-nav--<?php echo sanitize_html_class( g1_get_theme_option('ta_header', 'primary_nav_style', 'none') ); ?> g1-nav--collapsed">
<a id="g1-primary-nav-switch" href="#"><?php echo __('Menu', 'g1_theme')?></a>
<?php
if ( has_nav_menu( 'primary_nav' ) ) {
wp_nav_menu( array(
'theme_location' => 'primary_nav',
'container' => '',
'menu_class' => '',
'menu_id' => 'g1-primary-nav-menu',
'depth' => 0,
'walker' => new G1_Extended_Walker_Nav_Menu(array(
'with_description' => true,
'with_icon' => true,
)),
));
} else {
if ( function_exists( 'G1_Helpmode' ) ) {
$helpmode = G1_Helpmode(
'empty_primary_nvation',
__( 'Empty Primary Navigation', 'g1_theme' ),
'<p>' . sprintf( __( 'You should <a href="%s">assign a menu to the Primary Navigation Theme Location</a>', 'g1_theme' ), network_admin_url( 'nav-menus.php' ) ) . '</p>'
);
$helpmode->render();
}
}
?><?php if ( apply_filters( 'g1_header_woocommerce_minicart', is_plugin_active('woocommerce/woocommerce.php') ) ): ?>
<div class="g1-cartbox">
<a class="g1-cartbox__switch" href="#">
<div class="g1-cartbox__arrow"></div>
<strong><?php _ex( ' ', 'searchbox switch label', 'g1_theme' ); ?></strong>
</a><div class="g1-cartbox__box">
<div class="g1-inner woocommerce">
<?php
$g1_instance = array(
'title' => '',
'number' => 1
);
$g1_args = array(
'title' => '',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<div class="g1-cartbox__title">',
'after_title' => '</div>',
);
$g1_widget = new WC_Widget_Cart();
$g1_widget->number = $g1_instance['number'];
$g1_widget->widget( $g1_args, $g1_instance );
?>
<p class="g1-cartbox__empty"><?php _e( 'No products in the cart.', 'woocommerce' ); ?></p>
</div></div>
</div>
<?php endif; ?><?php
$g1_value = g1_get_theme_option( 'ta_header', 'searchform' );
$g1_layout = g1_get_theme_option( 'ta_header', 'layout', 'semi-standard' );$g1_class = array(
'g1-searchbox',
'g1-searchbox--' . $g1_value,
'g1-searchbox--' . $g1_layout
);
?>
<?php if ( 'none' !== $g1_value && !is_404() ): ?>
<div class="<?php echo sanitize_html_classes($g1_class); ?>">
<a class="g1-searchbox__switch" href="#">
<div class="g1-searchbox__arrow"></div>
<strong><?php _ex( ' ', 'searchbox switch label', 'g1_theme' ); ?></strong>
</a>
<?php get_search_form(); ?>
</div>
<?php endif; ?></nav>
<!-- END #g1-primary-nav -->
</div><!-- END #g1-primary-bar --><?php
/* Executes a custom hook.
* If you want to add some content after the g1-primary-bar, hook into 'g1_header_end' action.
*/
do_action( 'g1_header_end' );
?></div><?php get_template_part( 'template-parts/g1_background', 'header' ); ?>
</div>
</div>
<!-- END #g1-header --><?php
/* Executes a custom hook.
* If you want to add some content after the g1-header, hook into 'g1_header_after' action.
*/
do_action( 'g1_header_after' );
?>
<?php
/* Executes a custom hook.
* If you want to add some content before the g1-content, hook into 'g1_content_before' action.
*/
do_action( 'g1_content_before' );
?>
<?php get_template_part( 'g1_precontent' ); ?><div class="g1-background">
</div>
</div><!-- BEGIN #g1-content -->
<div id="g1-content" class="g1-content">
<div class="g1-layout-inner">
<?php
/* Executes a custom hook.
* If you want to add some content before the g1-content-area, hook into 'g1_content_begin' action.
*/
do_action( 'g1_content_begin' );
?>
<div id="g1-content-area">
<?php
/**
* The Template Part for displaying the footer.
*
* For the full license information, please view the Licensing folder
* that was distributed with this source code.
*
* @package G1_Framework
* @subpackage G1_Theme03
* @since G1_Theme03 1.0.0
*/// Prevent direct script access
if ( !defined('ABSPATH') )
die ( 'No direct script access allowed' );
?>
</div>
<!-- END #g1-content-area -->
<?php
/* Executes a custom hook.
* If you want to add some content after the g1-content-area,
* hook into 'g1_content_end' action.
*/
do_action( 'g1_content_end' );
?>
</div><?php get_template_part( 'template-parts/g1_background', 'content' ); ?>
</div>
<!-- END #g1-content --><?php
/* Executes a custom hook.
* If you want to add some content after the g1-content,
* hook into 'g1_content_after' action.
*/
do_action( 'g1_content_after' );
?><?php
// For the SEO purposes the preheader is placed here
get_template_part( 'g1_preheader' );
?><?php get_template_part( 'g1_prefooter' ); ?>
<?php
/* Executes a custom hook.
* If you want to add some content before the g1-footer,
* hook into 'g1_footer_before' action.
*/
do_action( 'g1_footer_before' );
?>
<!-- BEGIN #g1-footer -->
<footer id="g1-footer" class="g1-footer" role="contentinfo">
<?php
/* Executes a custom hook.
* If you want to add some content before the g1-footer-area,
* hook into 'g1_footer_begin' action.
*/
do_action( 'g1_footer_begin' );
?><!-- BEGIN #g1-footer-area -->
<div id="g1-footer-area" class="g1-layout-inner">
<nav id="g1-footer-nav">
<?php
if ( has_nav_menu( 'footer_nav' ) ) {
$footer_nav = array(
'theme_location' => 'footer_nav',
'container' => '',
'menu_id' => 'g1-footer-nav-menu',
'menu_class' => '',
'depth' => 1
);
wp_nav_menu($footer_nav);
} else {
if ( class_exists( 'G1_Helpmode' ) ) {
$helpmode = G1_Helpmode(
'empty_footer_navigation',
__( 'Empty Footer Navigation', 'g1_theme' ),
'<p>' . sprintf( __( 'You should <a href="%s">assign a menu to the Footer Navigation Theme Location</a>', 'g1_theme' ), network_admin_url( 'nav-menus.php' ) ) . '</p>'
);
$helpmode->render();
}
}
?>
</nav>
<p id="g1-footer-text"><?php echo g1_get_theme_option( 'general', 'footer_text', '' ); ?></p>
</div>
<!-- END #g1-footer-area --><?php
/* Executes a custom hook.
* If you want to add some content after the g1-footer-area,
* hook into 'g1_footer_end' action.
*/
do_action( 'g1_footer_end' );
?><?php get_template_part( 'template-parts/g1_background', 'footer' ); ?>
</footer>
<!-- END #g1-footer --><?php if ( 'none' !== g1_get_theme_option( 'general', 'scroll_to_top', 'standard' ) ): ?>
<a href="#page" id="g1-back-to-top"><?php _e( 'Back to Top', 'g1_theme' ); ?></a>
<?php endif; ?>
<?php
/* Executes a custom hook.
* If you want to add some content after the g1-footer,
* hook into 'g1_footer_after' action.
*/
do_action( 'g1_footer_after' );
?>
</div>
<!-- END #page -->
<?php wp_footer(); ?>
<script src="https://backend.leadconnectorhq.com/appengine/loc/9ZbGaJ8qxGhJ63xyJrca/pool/wDbgXgXOGqdzF9eEZXn4/number_pool.js"></script>
<script src="https://backend.leadconnectorhq.com/appengine/js/user_session.js"></script>
</body>
</html>
Recent Comments