-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
executable file
·160 lines (152 loc) · 6.88 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en_US">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="Linux游戏站是全世界唯一全面介绍Linux游戏及相关工具的中文社区,本站秉承简洁而不简单的办站原则,为广大Linux用户娱乐性而奋斗!">
<meta name="revised" content="gamux, 2020/01/26/">
<meta http-equiv="refresh" content="21600">
<meta name="description" content="Linux游戏, Linux game, Linuxgame, gamux, steam">
<title> <?php echo get_bloginfo('name'); ?> |
<?php
if (is_home() || is_front_page())
echo '为Linux用户的娱乐性而奋斗!';
elseif (is_single())
echo get_the_title().' for Linux';
else
echo '你好,gamux!';
?>
</title>
<link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/logo.ico">
<link href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-ui/2.15.3/theme-chalk/index.min.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<?php if(is_single()) { ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/single.css">
<link crossorigin="anonymous" integrity="sha384-Cr4NirNGPwhXoUPml2HA5PmMExeUuxM/oxUMDhMdSzUi9udHL+hdgDZZpq/2rOrp" href="https://lib.baomitu.com/quill/1.3.7/quill.snow.min.css" rel="stylesheet">
<?php } elseif(is_home()) { ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/index.css">
<?php } elseif(is_category() or (strpos($_SERVER['REQUEST_URI'], 'gamelist') != false)){ ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/category.css">
<?php } elseif(is_category() or (strpos($_SERVER['REQUEST_URI'], 'newslist') != false) or (strpos($_SERVER['REQUEST_URI'], 'search') != false)){ ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/news.css">
<?php } elseif(is_search()){ ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/search.css">
<?php } elseif(is_single()) { ?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/single.css">
<?php } else { echo ""; } ?>
<?php wp_head(); ?>
</head>
<body id="body">
<div id="container">
<header id="header">
<div id="header-div">
<div id="site-logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>">GAMUX</a></div>
<div>
<el-form action="search" method="get" class="demo-form-inline">
<input type="text" placeholder="请输入搜索内容" id="header-search" name="s" size="small">
</el-form>
</div>
<el-row id="header-row">
<el-col id="header-col">
<el-menu
id="left-menu"
class="el-menu-vertical-demo">
<el-menu-item index="1">
<i class="el-icon-menu"></i>
<span slot="title"><a :href="siteurl + '/gamelist'">游戏列表</a></span>
</el-menu-item>
<el-menu-item index="2">
<i class="el-icon-news"></i>
<span slot="title"><a :href="siteurl + '/newslist'">新闻资讯</a></span>
</el-menu-item>
<el-menu-item index="3">
<i class="el-icon-document"></i>
<span slot="title"><a href="https://doc.appimage.cn/docs/home/">帮助文档</a></span>
</el-menu-item>
<el-menu-item index="4">
<i class="el-icon-star-on"></i>
<span slot="title"><a href="https://github.com/Gamuxorg/bbs/issues/new/choose" target="_blank">愿望清单</a></span>
</el-menu-item>
<el-menu-item index="5">
<i class="el-icon-chat-line-square"></i>
<span slot="title"><a href="https://github.com/Gamuxorg/bbs/discussions" target="_blank">交流面板</a></span>
</el-menu-item>
<el-menu-item index="6">
<i class="el-icon-milk-tea"></i>
<span slot="title"><a :href="siteurl + '/donate-gamux-cash'" target="_blank">打赏本站</a></span>
</el-menu-item>
</el-menu>
</el-col>
</el-row>
<div id="avatar" v-if="islogin == 0">
<div class="block avatar-inner">
<el-button class="login-button" type="text" ref="login" @click="dialogloginVisible = true; saveCurrentUrl();">点击登录</el-button>
</div>
</div>
<div id="avatar" v-else>
<div class="header-avatar">
<el-image :src="useravatar"></el-image>
<div class="username">
<a :href="siteurl + '/wp-admin'">{{ username }}</a> | <a :href="logout">退出</a>
</div>
</div>
</div>
<!--弹窗登录-->
<el-dialog title="网站登录" class="login-dialog" :visible.sync="dialogloginVisible">
<div class="github-login login-dialog-list">
<a href="<?php echo \Gamux\github_login_url(); ?>">
<el-button type="primary">
<svg class="aliicon" aria-hidden="true">
<use xlink:href="#icon-gamux-github2"></use>
</svg>GitHub账号登录
</el-button>
</a>
</div>
<div class="weibo-login login-dialog-list">
<a href="<?php echo \Gamux\weibo_login_url(); ?>">
<el-button type="danger">
<svg class="aliicon" aria-hidden="true">
<use xlink:href="#icon-weibo"></use>
</svg>新浪微博账号登录
</el-button>
</a>
</div>
<div class="qq-login login-dialog-list">
<a href="<?php echo \Gamux\qq_login_url(); ?>">
<el-button type="success">
<svg class="aliicon" aria-hidden="true">
<use xlink:href="#icon-QQ"></use>
</svg>腾讯QQ账号登录
</el-button>
</a>
</div>
</el-dialog>
<!--弹窗添加新游戏-->
<el-dialog title="添加新游戏" class="create-dialog" :visible.sync="createVisible">
<div class="create-manual create-new">
<a href="<?php echo esc_url( site_url( '/' ) ).'wp-admin/post-new.php' ?>">
<el-button type="primary">
手动创建新游戏
</el-button>
</a>
</div>
<div class="create-steam create-new">
<el-input placeholder="steam游戏的数字ID" v-model="steamid" class="create-input">
<el-button slot="append" @click="createSteam()">自动创建</el-button>
</el-input>
</div>
</el-dialog>
<div id="yuliu"></div>
<div id="techfrom">
<span class="wplogo"><img src="<?php bloginfo('template_url'); ?>/img/wplogo.png"></span>
<span class="vuelogo"><img src="<?php bloginfo('template_url'); ?>/img/vuelogo.png"></span>
<span class="elementlogo"><i class="el-icon-eleme"></i></span>
</div>
</div>
</header>
<div id="section">
<div id="mobile-header">
</div>
<div id="inner-section">