-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
78 lines (52 loc) · 4.25 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package Avant
*/
global $woocommerce;
?><!DOCTYPE html><!-- Avant.ORG -->
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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(); ?>>
<div id="page" class="hfeed site <?php echo ( get_theme_mod( 'avant-site-layout' ) == 'avant-site-boxed' ) ? sanitize_html_class( 'boxed-site' ) : ''; ?> <?php echo ( get_theme_mod( 'avant-slider-type' ) ) ? sanitize_html_class( get_theme_mod( 'avant-slider-type' ) ) : sanitize_html_class( 'avant-slider-default' ); ?>">
<?php echo ( get_theme_mod( 'avant-header-layout' ) != 'avant-header-layout-six' && get_theme_mod( 'avant-site-layout' ) == 'avant-site-boxed' ) ? '<div class="content-boxed">' : ''; ?>
<?php echo ( get_theme_mod( 'avant-header-layout' ) != 'avant-header-layout-six' && get_theme_mod( 'avant-site-layout' ) == 'avant-site-boxed' ) ? '<div class="site-boxed">' : ''; ?>
<?php echo ( !get_theme_mod( 'avant-remove-topborder' ) ) ? '<div class="site-top-border"></div>' : ''; // Site Top Bar ?>
<?php if ( get_theme_mod( 'avant-header-layout' ) == 'avant-header-layout-seven' ) : // Site Header ?>
<?php get_template_part( '/templates/header/header-layout-seven' ); ?>
<?php elseif ( get_theme_mod( 'avant-header-layout' ) == 'avant-header-layout-six' ) : // Site Header ?>
<?php get_template_part( '/templates/header/header-layout-six' ); ?>
<?php elseif ( get_theme_mod( 'avant-header-layout' ) == 'avant-header-layout-five' ) : ?>
<?php get_template_part( '/templates/header/header-layout-five' ); ?>
<?php elseif ( get_theme_mod( 'avant-header-layout' ) == 'avant-header-layout-four' ) : ?>
<?php get_template_part( '/templates/header/header-layout-four' ); ?>
<?php elseif ( get_theme_mod( 'avant-header-layout' ) == 'avant-header-layout-three' ) : ?>
<?php get_template_part( '/templates/header/header-layout-three' ); ?>
<?php elseif ( get_theme_mod( 'avant-header-layout' ) == 'avant-header-layout-two' ) : ?>
<?php get_template_part( '/templates/header/header-layout-two' ); ?>
<?php else : ?>
<?php get_template_part( '/templates/header/header-layout-one' ); ?>
<?php endif; // Site Header ?>
<?php echo ( get_theme_mod( 'avant-header-layout' ) != 'avant-header-layout-six' && get_theme_mod( 'avant-site-layout' ) == 'avant-site-boxed' ) ? '</div>' : ''; ?>
<?php if ( is_front_page() ) : ?>
<?php get_template_part( '/templates/slider/homepage-slider' ); // Home Page Slider ?>
<?php endif; ?>
<?php echo ( get_theme_mod( 'avant-header-layout' ) != 'avant-header-layout-six' && get_theme_mod( 'avant-site-layout' ) == 'avant-site-boxed' ) ? '<div class="site-boxed">' : ''; ?>
<?php echo ( get_theme_mod( 'avant-header-layout' ) == 'avant-header-layout-six' ) ? '<div class="site-side-layout-container">' : ''; // Site Side Layout ?>
<?php if ( !is_front_page() ) : ?>
<?php if ( is_home() || is_archive() || is_search() || is_page() ) : ?>
<?php get_template_part( '/templates/page-banner' ); ?>
<?php else : ?>
<?php get_template_part( '/templates/page-banner-single' ); ?>
<?php endif; ?>
<?php endif; ?>
<div class="site-container <?php echo ( ! is_active_sidebar( 'sidebar-1' ) ) ? sanitize_html_class( 'content-no-sidebar' ) : sanitize_html_class( 'content-has-sidebar' ); ?> <?php echo ( get_theme_mod( 'avant-remove-product-border' ) ) ? sanitize_html_class( 'avant-products-noborder' ) : ''; ?> <?php echo ( get_theme_mod( 'avant-remove-content-bgborder' ) ) ? sanitize_html_class( 'avant-content-nobgborder' ) : ''; ?> <?php echo ( get_theme_mod( 'avant-add-sidebar-line' ) ) ? sanitize_html_class( 'avant-add-sidebar-line' ) : ''; ?> <?php echo ( get_theme_mod( 'avant-blog-widget-title-leftalign' ) ) ? sanitize_html_class( 'avant-leftalign-widget-title' ) : ''; ?> <?php echo ( get_theme_mod( 'avant-blog-widget-title-style' ) ) ? sanitize_html_class( get_theme_mod( 'avant-blog-widget-title-style' ) ) : sanitize_html_class( 'widget-title-style-plain' ); ?>">