-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·78 lines (54 loc) · 3.06 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
<!doctype html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
<link href="//www.google-analytics.com" rel="dns-prefetch">
<link href="<?php echo get_template_directory_uri(); ?>/img/favicon.png" rel="shortcut icon">
<link href="<?php echo get_template_directory_uri(); ?>/img/favicon.png" rel="apple-touch-icon-precomposed">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<?php bloginfo('description'); ?>">
<?php wp_head(); ?>
</head>
<style>
h3, h4, h5, h6 {
color: <?php echo get_theme_mod( 'header_font_color' ); ?>;
}
h1, h2, main.blogArchives article h2 {
color: <?php echo get_theme_mod( 'header-2_font_color' ); ?>;
}
p, ul li, ol li {
color: <?php echo get_theme_mod( 'paragraph_font_color' ); ?>;
}
</style>
<body <?php body_class(); ?>>
<header class="header clear" role="banner">
<div class="container">
<a href="<?php echo home_url(); ?>">
<img id="logo" src="<?php echo get_theme_mod( 'ec_logo' ) ?>" alt="Logo">
</a>
<i class="fa fa-bars mobileMenuButton" aria-hidden="true"></i>
<nav class="nav" role="navigation">
<?php wp_nav_menu( array('menu' => 'Main', 'items_wrap' => '<ul class="dropdown menu" data-dropdown-menu>%3$s</ul>' )); ?>
</nav>
<div id="headerTop">
<div class="social-media">
<?php if (true === get_theme_mod('show_facebook')) { ?>
<a class="facebook" href="<?php echo get_theme_mod( 'facebook_link' ); ?>" target="_blank"></a>
<?php } ?>
<?php if (true === get_theme_mod('show_twitter')) { ?>
<a class="twitter" href="<?php echo get_theme_mod( 'twitter_link' ); ?>" target="_blank"></a>
<?php } ?>
<?php if (true === get_theme_mod('show_linkedin')) { ?>
<a class="linkedin" href="<?php echo get_theme_mod( 'linkedin_link' ); ?>" target="_blank"></a>
<?php } ?>
</div>
<a href="/login"><span class="login">Login</span></a>
<div class="search">
<label></label>
<?php get_template_part('searchform'); ?>
</div>
</div>
</div>
</header>