/
header.php
executable file
·60 lines (59 loc) · 2.36 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
``
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="<?php bloginfo('charset'); ?>" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php
//get theme options here
if(get_option('busiprof_theme_options')!='')
{
$busiprof_current_options=get_option('busiprof_theme_options');
}
if($busiprof_current_options['upload_image_favicon']!=''){?>
<link rel="shortcut icon" href="<?php echo esc_url($busiprof_current_options['upload_image_favicon']); ?>" />
<?php } ?>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="container">
<div class="navbar" id="busimenu">
<div class="navbar-inner">
<div class="container">
<a data-target=".navbar-responsive-collapse" data-toggle="collapse" class="btn btn-navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<?php if($busiprof_current_options['upload_image']!='') { ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="brand">
<img src="<?php echo esc_url($busiprof_current_options['upload_image']); ?>" alt="Logo" class="logo-img" />
</a>
<?php } else { ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="brand">
<img alt="Logo" src="<?php echo get_template_directory_uri();?>/images/logo.png">
</a>
<?php } ?>
<div class="nav-collapse collapse navbar-responsive-collapse">
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
//'container' => 'nav-collapse collapse navbar-inverse-collapse',
'menu_class' => 'nav',
'fallback_cb' => 'busiprof_fallback_page_menu',
'walker' => new busiprof_nav_walker()
)
);
?>
</div>
<!-- /.nav-collapse -->
</div>
</div>
<!-- /navbar-inner -->
</div>
</div>