-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
49 lines (39 loc) · 1.24 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
<?php
/**
* @package WordPress
* @subpackage Gentle
*/
global $shortname;
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php $mp_option = gentle_get_global_options(); ?>
<?php
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="mpc-main-container">
<div id="mpc-header-container">
<div id="mpc-header">
<div id="gentle-logo">
<a href="<?php echo home_url(); ?>"><img src="<?php echo get_bloginfo('template_directory');?>/images/header.png" id="imageHeader"></a>
</div>
<?php if(has_nav_menu('main')) {
wp_nav_menu(array(
'theme_location' => 'main',
'container' => '',
'menu_id' => 'mpc-nav',
'after' => '<span class="nav-slash"></span>'));
} else {
echo '<ul id="nav">';
wp_list_pages('title_li=');
echo '</ul>';
} ?> <!-- end menu -->
<span class="nav-bar"></span>
</div> <!-- end header -->
</div> <!-- end header-container -->