-
Notifications
You must be signed in to change notification settings - Fork 5
/
header.php
82 lines (81 loc) · 3.39 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
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package duena
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="format-detection" content="telephone=no" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if( '' != of_get_option('favicon') ){ ?>
<link rel="icon" href="<?php echo esc_url( of_get_option('favicon', "" ) ); ?>" type="image/x-icon" />
<?php } ?>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<!--[if (gt IE 9)|!(IE)]>
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.mobile.customized.min.js" type="text/javascript"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="page-wrapper">
<?php do_action( 'before' ); ?>
<header id="header" role="banner">
<div class="container clearfix">
<div class="logo">
<?php if (( of_get_option('logo_type') == 'image_logo') && ( of_get_option('logo_url') != '')) { ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo esc_url( of_get_option('logo_url') ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"></a>
<?php } else { ?>
<?php if ( is_front_page() || is_home() || is_404() ) { ?>
<h1 class="text-logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php } else { ?>
<h2 class="text-logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h2>
<?php } ?>
<?php } ?>
<p class="site-description"><?php bloginfo( 'description' ); ?></p>
</div>
<?php if ( of_get_option('g_search_box_id') == 'yes') { ?>
<div id="top-search">
<form method="get" action="<?php echo home_url(); ?>/">
<input type="text" name="s" class="input-search" /><input type="submit" value="" id="submit">
</form>
</div>
<?php } ?>
<div class="clear"></div>
<nav id="site-navigation" class="main-nav" role="navigation">
<div class="navbar_inner">
<?php
wp_nav_menu( array(
'container' => 'ul',
'menu_class' => 'sf-menu',
'menu_id' => 'topnav',
'depth' => 0,
'theme_location' => 'primary'
) );
?>
</div>
</nav><!-- #site-navigation -->
</div>
</header><!-- #masthead -->
<?php if( (is_front_page()) && (of_get_option('sl_show') != 'no') ) { ?>
<section id="slider-wrapper">
<div class="container">
<?php get_template_part( 'slider' ); ?>
</div>
</section><!--#slider-->
<?php } ?>
<div id="main" class="site-main">
<div class="container">
<?php if ( of_get_option('g_breadcrumbs_id') != 'no') { ?>
<?php duena_breadcrumb(); ?>
<?php } ?>
<div class="row">