-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathheader.php
41 lines (40 loc) · 1.42 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<?php include('includes/seo.php'); ?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head();?>
</head>
<body>
<div class="nav-bar">
<?php
$option=get_option('erlsimple_theme_options');
if($option['logoimg']){?>
<style>
.logo-s{
background-image: url(<?php echo $option['logoimg'];?>);
text-indent: -9999px;
}
</style>
<?php }?>
<a href="<?php echo home_url();?>" class="logo-s"><?php echo get_bloginfo('name');?></a>
<?php
if(function_exists('wp_nav_menu')) {
wp_nav_menu(array('theme_location'=>'primary','menu_class'=>'menu','container'=>'nav'));
}
?>
<form method="get" id="searchform" class="top-search" action="<?php bloginfo('url'); ?>/">
<span class="search-icon"><i class="fa fa-search"></i></span>
<input class="input-search" type="text" name="s" value="" placeholder="Search" autocomplete="off">
</form>
<span class="toggle-menu tooltip" title="菜单">
<i class="fa fa-bars"></i>
</span>
<span class="toggle-search tooltip" title="搜索">
<i class="fa fa-search"></i>
</span>
</div>
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<input class="input-search-screen" type="text" name="s" value="" placeholder="输入关键字后按回车键搜索" autocomplete="off">
</form>