-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathheader.php
86 lines (81 loc) · 2.95 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
83
84
85
86
<?php
$ori_header_logo = get_option(
'origami_header_icon',
'https://blog.ixk.me/wp-content/uploads/2018/05/blog-44.png'
);
if (!isset($GLOBALS['layout'])) {
$GLOBALS['layout'] = get_option('origami_layout_style', 'layout1');
}
$body_class = '';
$body_class .= $GLOBALS['not_carousel'] ? 'not-car' : '';
$body_class .= ' ';
$body_class .= $GLOBALS['layout'];
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<meta name="theme-color" content="#87d1df">
<meta name="origami-version" content="<?php echo wp_get_theme()->get('Version'); ?>">
<?php wp_head(); ?>
<?php if (get_option('origami_block_mixed', 'true') == 'true') : ?>
<meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
<?php endif; ?>
</head>
<body <?php body_class($body_class); ?>>
<header class="ori-header">
<div class="ori-container navbar">
<section class="navbar-section">
<a href="<?php echo esc_url(home_url('/')); ?>" id="ori-logo">
<img src="<?php echo esc_url($ori_header_logo); ?>" alt="Site Logo">
</a>
<a href="<?php echo esc_url(home_url('/')); ?>" class="btn btn-link" id="ori-title">
<?php echo get_bloginfo('name'); ?>
</a>
</section>
<section class="navbar-section">
<?php wp_nav_menu([
'theme_location' => 'main-menu',
'container' => false,
'menu_id' => 'ori-menu',
'menu_class' => '',
'link_after' =>
'<div></div><span class="sub-drop-icon icon icon-arrow-down"></span>'
]); ?>
<div id="ori-s-btn">
<i class="fa fa-search"></i>
</div>
<div id="ori-m-btn">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</section>
</div>
<!-- Header search box -->
<section class="ori-search">
<div class="ori-container navbar">
<section class="navbar-section">
<div><i class="fa fa-search"></i></div>
</section>
<section class="navbar-center">
<div class="has-icon-right">
<input id="ori-search-input" class="form-input" type="text" placeholder="<?php echo __('快来寻找你要的文章ヾ(≧▽≦*)o...', 'origami'); ?>">
<i class="form-icon loading ori-search-loading"></i>
</div>
</section>
<section class="navbar-section">
<div id="ori-search-close"><i class="fa fa-close"></i></div>
</section>
</div>
<div class="ori-search-mask grid-md">
<section class="col-8 col-md-12 post-list" id="search-list"></section>
</div>
</section>
</header>
<!-- Window inner background -->
<section class="ori-background"></section>
<div id="read-progress" class="progress"></div>