-
Notifications
You must be signed in to change notification settings - Fork 4
/
header.php
85 lines (79 loc) · 3.62 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
79
80
81
82
83
84
85
<?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 Codilight_Lite
*/
?><!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">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'codilight-lite' ); ?></a>
<?php do_action( 'codilight_lite_before_topbar' ); ?>
<div id="topbar" class="site-topbar">
<div class="container">
<div class="topbar-left pull-left">
<nav id="site-navigation" class="main-navigation" >
<span class="home-menu"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><i class="fa fa-home"></i></a></span>
<span class="nav-toggle"><a href="#0" id="nav-toggle"><?php esc_html_e( 'Menu', 'codilight-lite' ); ?><span></span></a></span>
<ul class="ft-menu">
<?php wp_nav_menu( array('theme_location' => 'primary', 'container' => '', 'items_wrap' => '%3$s', 'fallback_cb' => 'codilight_lite_link_to_menu_editor' ) ); ?>
</ul>
</nav><!-- #site-navigation -->
</div>
<div class="topbar-right pull-right">
<ul class="topbar-elements">
<?php do_action( 'codilight_lite_before_topbar_search' ); ?>
<li class="topbar-search">
<a href="javascript:void(0)"><i class="search-icon fa fa-search"></i><span><?php esc_html_e( 'Search', 'codilight-lite' ); ?></span></a>
<div class="dropdown-content dropdown-search">
<?php get_search_form( true ); ?>
</div>
</li>
<?php do_action( 'codilight_lite_after_topbar_search' ); ?>
<div class="clear"></div>
</ul>
</div>
</div>
</div><!--#topbar-->
<?php do_action( 'codilight_lite_after_topbar' ); ?>
<div class="mobile-navigation">
<?php do_action( 'codilight_lite_before_mobile_navigation' ); ?>
<ul>
<?php wp_nav_menu( array('theme_location' => 'primary', 'container' => '', 'items_wrap' => '%3$s', 'fallback_cb' => 'codilight_lite_link_to_menu_editor' ) ); ?>
</ul>
<?php do_action( 'codilight_lite_after_mobile_navigation' ); ?>
</div>
<?php do_action( 'codilight_lite_lite_before_site_header' ); ?>
<header id="masthead" class="site-header" >
<div class="container">
<div class="site-branding">
<?php
$codilight_lite_site_logo = get_theme_mod( 'codilight_lite_site_logo', apply_filters('customizer_default_logo', '' ) );
if ( isset( $codilight_lite_site_logo ) && $codilight_lite_site_logo != '' ) {
echo '<a title="'. get_bloginfo( 'name' ) .'" class="site-logo" href="' . esc_url( home_url( '/' ) ) . '" rel="home"><img src="'. esc_url( $codilight_lite_site_logo ) .'" alt="'. get_bloginfo( 'name' ) .'"></a>';
} else {
if ( is_front_page() && is_home() ) :
echo '<h1 class="site-title"><a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . get_bloginfo( 'name' ) . '</a></h1>';
else :
echo '<p class="site-title"><a href="' .esc_url( home_url( '/' ) ) . '" rel="home">' . get_bloginfo( 'name' ) . '</a></p>';
endif;
echo '<p class="site-description">'. get_bloginfo( 'description' ) .'</p>';
}
?>
</div><!-- .site-branding -->
</div>
</header><!-- #masthead -->
<?php do_action( 'codilight_lite_after_site_header' ); ?>