-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathheader.php
48 lines (41 loc) · 1.47 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
<?php
/**
* Header file for the Sulli theme.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Bigfa
* @subpackage Sulli
* @since 1.0.0
*/
?>
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="image/vnd.microsoft.icon" href="<?php echo get_template_directory_uri() ?>/build/img/favicon.png" rel="shortcut icon">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="surface--content">
<div class="search--area">
<div class="container">
<form role="search" method="get" class="search-form" action="<?php echo home_url(); ?>">
<input type="search" class="search-field" placeholder="输入内容回车搜索" value="" name="s">
</form>
</div>
</div>
<div class="block--area">
<header class="sulli--header">
<div class="sulli--header__content">
<a href="/"><img src="<?php echo get_template_directory_uri() ?>/build/img/logo.png" width="64"></a>
<nav class="sulli--nav sulli">
<?php if (has_nav_menu('primary')) : ?>
<?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'sulli--menu', 'container' => 'ul')); ?>
<?php endif; ?>
<a href="javascript:;" class="sulli sulli--searchBtn">Search</a>
</nav>
</div>
</header>