-
Notifications
You must be signed in to change notification settings - Fork 31
/
header.php
114 lines (113 loc) · 6.04 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo bm_title(); ?></title>
<?php echo bm_keywords()?>
<?php echo bm_description()?>
<?php if (boxmoe_com('favicon_src') ): ?> <link rel="shortcut icon" href="<?php echo boxmoe_com('favicon_src')?>" /><?php endif; ?>
<?php wp_head(); ?>
<?php if (boxmoe_com('diystyles') ): ?> <link rel="stylesheet" href="<?php echo boxmoe_load_style(); ?>/assets/css/diystyle.css"><?php endif; ?>
</head>
<body data-spy="scroll" data-target=".navbar">
<div id="loading" class="loading">
<div id="begin"></div>
</div>
<aside class="aside">
<div class="nav-wrapper">
<div class="navbar-toggler">
<svg class="ham hamRotate ham1" viewBox="0 0 100 100" width="60">
<path class="line top" d="m 30,33 h 40 c 0,0 9.044436,-0.654587 9.044436,-8.508902 0,-7.854315 -8.024349,-11.958003 -14.89975,-10.85914 -6.875401,1.098863 -13.637059,4.171617 -13.637059,16.368042 v 40" />
<path class="line middle" d="m 30,50 h 40" />
<path class="line bottom" d="m 30,67 h 40 c 12.796276,0 15.357889,-11.717785 15.357889,-26.851538 0,-15.133752 -4.786586,-27.274118 -16.667516,-27.274118 -11.88093,0 -18.499247,6.994427 -18.435284,17.125656 l 0.252538,40" /></svg>
</div>
<nav class="navbar text-center align-items-center justify-content-center">
<div class="collapse navbar-collapse show" id="navbarCollapse">
<div class="about-avatar mb-5">
<a href="<?php echo home_url(); ?>">
<?php echo bm_logo() ;?></a>
<div class="about-avatar-details mt-4">
<h1><?php bloginfo( 'webname' ); ?></h1>
<?php if (boxmoe_com('blog_site') ){echo'<p class="badge">'.boxmoe_com('blog_site').'</p>';}else{echo'<p class="badge">Wordpress</p>';} ?>
</div>
</div>
<ul class="navbar-nav mx-auto">
<?php bm_nav_menu() ;?>
<?php if( boxmoe_com('sousuo') ) { echo '<li class="nav-item "><a href="#search" class="nav-link"><i class="fa fa-search"></i>搜索</a></li>';} ?>
</ul>
<?php if( boxmoe_com('sign_f') ) { ?>
<?php if ( is_user_logged_in() ) {?>
<ul class="list-group userlogin mb20" id="longining" >
<li class="checklist-entry list-group-item flex-column align-items-start px-4">
<div class="checklist-item checklist-item-success">
<div class="checklist-info">
<h5 class="checklist-title mb-0">Hello!欢迎回来!</h5>
<small><a href="<?php echo boxmoe_com('users_page') ?>"><i class="fa fa-user-circle-o"></i>会员中心</a><a href="<?php echo wp_logout_url( home_url() ); ?>"><i class="fa fa-sign-out"></i>注销登录</a></small>
</div>
<div>
</div>
</div>
</li>
</ul><?php } else {?>
<div class="admin-login" id="longinreg">
<div class="ruike_user-wrapper">
<span class="ruike_user-loader">
<a href="<?php echo boxmoe_com('users_login') ?>" class="signin-loader z-bor">登录</a>
<b class="middle-text">
<span class="middle-inner">or</span></b>
</span>
<span class="ruike_user-loader">
<a href="<?php echo boxmoe_com('users_reg') ?>" class="signup-loader l-bor">注册</a></span>
</div>
<i class="up-new"></i>
</div>
<?php } ?> <?php } ?>
</div>
<div class="aside-footer">
<ul class="list-unstyled list-inline wow bounceInUp animated">
<?php if(boxmoe_com('boxmoe_qq')){?>
<li class="list-inline-item">
<a target="_blank" href="https://wpa.qq.com/msgrd?v=3&uin=<?php echo boxmoe_com('boxmoe_qq');?>&site=qq&menu=yes" data-toggle="tooltip" data-placement="top" data-original-title="点击联系我QQ:<?php echo boxmoe_com('boxmoe_qq');?>">
<i class="fa fa-qq"></i>
</a>
</li>
<?php } ?><?php if(boxmoe_com('boxmoe_wechat')){?>
<li class="list-inline-item">
<a href="<?php echo boxmoe_com('boxmoe_wechat');?>" data-fancybox="images" class="fancybox" data-fancybox-group="button" data-toggle="tooltip" data-placement="top" data-original-title="点击打开二维码扫一扫加好友">
<i class="fa fa-weixin"></i>
</i>
</a>
</li>
<?php } ?><?php if(boxmoe_com('boxmoe_weibo')){?>
<li class="list-inline-item">
<a target="_blank" href="<?php echo boxmoe_com('boxmoe_weibo');?>" data-toggle="tooltip" data-placement="top" data-original-title="欢迎关注我的微博">
<i class="fa fa-weibo"></i>
</a>
</li>
<?php } ?><?php if(boxmoe_com('boxmoe_github')){?>
<li class="list-inline-item">
<a target="_blank" href="<?php echo boxmoe_com('boxmoe_github');?>" data-toggle="tooltip" data-placement="top" data-original-title="记得帮我点Star哦!">
<i class="fa fa-github"></i>
</a>
</li>
<?php } ?>
<?php if(boxmoe_com('boxmoe_mail')){?>
<li class="list-inline-item">
<a target="_blank" href="//mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=<?php echo boxmoe_com('boxmoe_mail');?>" data-toggle="tooltip" data-placement="top" data-original-title="有问题发邮件<?php echo boxmoe_com('boxmoe_mail');?>">
<i class="fa fa-envelope-o"></i>
</a>
</li>
<?php } ?>
</ul>
</div>
</nav>
</div>
</aside>
<div class="page-overlay">
<span class="overlay-1"></span>
<span class="overlay-2"></span>
</div>
<div class="page-wrapper" id="global" >
<section class="section-home " id="home">
<div class="glass" <?php bm_banner();?>"></div></section>