-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
99 lines (91 loc) · 3.55 KB
/
header.php
File metadata and controls
99 lines (91 loc) · 3.55 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
* The header for our theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package BurgeonEnv Themes
* @subpackage LoCoPaS
* @since 0.1.0
*/
?><!DOCTYPE html>
<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">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php do_action( 'locopas_before' ); ?>
<div id="page-<?php if (! get_permalink()) { the_ID(); } else { echo basename(get_permalink()); } ?>" class="site">
<?php do_action( 'locopas_before_header' ); ?>
<div class="lc-whole-header">
<?php
$locopas_top_header_option = get_theme_mod( 'top_header_option', 'hide' );
if( $locopas_top_header_option != 'hide' ) {
?>
<div class="lc-top-header-wrapper">
<div class="lc-container clearfix">
<nav class="main-navigation" role="navigation">
<!-- TODO: Lacks check for active plugin -->
<?php echo qtranxf_generateLanguageSelectCode('image'); ?> <!-- #language chooser -->
<?php wp_nav_menu( array( 'theme_location' => 'locopas_top_menu',
'menu_id' => 'top-menu',
'fallback_cb' => false
) ); ?>
</nav><!-- #site-navigation -->
<?php do_action( 'locopas_top_social_icons' ); ?>
</div><!-- .lc-container -->
</div><!-- .lc-top-header-wrapper -->
<?php } ?>
<header id="masthead" class="site-header" role="banner">
<div class="lc-container">
<div class="lc-header-wrapper clearfix">
<div class="site-branding">
<?php
if(get_theme_mod('custom_logo')){
if ( function_exists( 'the_custom_logo' ) ) {
the_custom_logo();
}
} else {
?>
<div class="site-title-wrapper">
<?php
if ( is_front_page() && is_home() ) : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php else : ?>
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
<?php
endif;
$description = get_bloginfo( 'description', 'display' );
if ( $description || is_customize_preview() ) : ?>
<p class="site-description"><?php echo esc_html($description); /* WPCS: xss ok. */ ?></p>
<?php
endif;
?>
</div><!-- .site-title-wrapper -->
<?php
}
?>
</div><!-- .site-branding -->
<!-- theme main menu -->
<nav id="top-site-navigation" role="navigation">
<?php wp_nav_menu( array( 'theme_location' => 'locopas_top_menu', 'menu_id' => 'top-menu', 'fallback_cb' => false ) ); ?>
</nav><!-- #site-navigation -->
<?php /* do_action( 'locopas_main_menu' ); */ ?>
</div><!-- .lc-header-wrapper-- >
</div><!-- .lc-container -->
</header><!-- #masthead -->
</div><!-- .lc-whole-header -->
<?php
if( is_front_page() ) {
do_action( 'locopas_homepage_slider' );
} else {
do_action( 'locopas_innerpage_header' );
}
?>
<div id="content" class="site-content">
<div class="lc-container">