-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathheader.php
More file actions
47 lines (47 loc) · 2.29 KB
/
header.php
File metadata and controls
47 lines (47 loc) · 2.29 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri() . '/css/bootstrap.css' ; ?>" type="text/css" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri() . '/css/bootstrap-theme.css' ; ?>" type="text/css" />
<link rel="stylesheet" href="<?php bloginfo ( 'stylesheet_url' );?>" />
<title><?php wp_title ( '|', true, 'right' ); ?></title>
<?php echo stripslashes ( get_option ( 'analytics_code', '' ) ); ?>
</head>
<body>
<nav class="navbar <?php $navbar_color = get_option ( 'navbar_color', 'black' ); if ( $navbar_color == "black" ) { echo 'navbar-inverse'; } elseif ( $navbar_color == "white" ) { echo 'navbar-default'; } ?> navbar-fixed-top" style="padding-right: inherit;">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo site_url(); ?>"><span class="glyphicon glyphicon-home"></span> <?php echo stripslashes( get_option ( 'navbar_brand', get_bloginfo ( 'name' ) ) ); ?></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav">
<?php if( function_exists( 'wp_nav_menu' ) ) wp_nav_menu( array (
'container' => false,
'items_wrap' => '%3$s',
'walker' => new Walker_Nav_Bootstrap (),
)); ?>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
</nav>
<div class="jumbotron">
<div class="container">
<h1><?php bloginfo ( 'name' ); $subtext_for_header = get_option ( 'subtext_for_header', '' ); if ( $subtext_for_header != "" ) { echo ' <small>' . $subtext_for_header . '</small>'; } ?></h1>
<p>
<?php bloginfo ( 'description', 'display' ); ?>
</p>
</div>
</div>
<div class="container">