-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·56 lines (48 loc) · 1.77 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
<!doctype html>
<!--[if lt IE 7]>
<html class="ie ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if (gte IE 9) | !(IE) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>
<?php wp_title('|', true, 'right'); ?>
</title>
<link rel="shortcut icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<!-- Scripts that need to be loaded first -->
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header class="container_12">
<?php $heading_tag = (is_home() || is_front_page()) ? 'h1' : 'div'; ?>
<<?php echo $heading_tag ?>>
<?php if (get_theme_mod("concept_logo")): ?>
<a href="<?php echo home_url('/'); ?>" title="<?php echo get_bloginfo('name'); ?>">
<img class="logo-website" src="<?php echo get_theme_mod("concept_logo"); ?>" alt="<?php echo esc_attr(get_bloginfo('title')); ?>" />
</a>
<?php else: ?>
<a href="<?php echo home_url('/'); ?>" title="<?php echo get_bloginfo('name'); ?>" class="logotext">
<?php echo get_bloginfo('name'); ?>
</a>
<?php endif; ?>
</<?php echo $heading_tag ?>>
<?php
wp_nav_menu(array(
'container' => 'nav',
'theme_location' => 'primary',
)); ?>
</header>