forked from wehaox/Typecho-Butterfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive_header.php
96 lines (96 loc) · 4.15 KB
/
archive_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
<?php $this->need('header_com.php'); ?>
<style>#body-wrap {min-height: 0;}</style>
<div id="web_bg"></div>
<div id="rightside">
<div id="rightside-config-hide" class="">
<button id="font-plus" type="button" title="放大字体">
<i class="fas fa-plus">
</i>
</button>
<button id="font-minus" type="button" title="缩小字体">
<i class="fas fa-minus">
</i>
</button>
<button id="translateLink" type="button" title="简繁转换">
簡
</button>
<button id="darkmode" type="button" title="浅色和深色模式转换">
<i class="fas fa-adjust">
</i>
</button>
<button id="hide-aside-btn" type="button" title="单栏和双栏切换">
<i class="fas fa-arrows-alt-h">
</i>
</button>
</div>
<div id="rightside-config-show">
<button id="rightside_config" type="button" title="设置">
<i class="fas fa-cog fa-spin">
</i>
</button>
<button id="go-up" type="button" title="回到顶部">
<i class="fas fa-arrow-up">
</i>
</button>
</div>
</div>
<div class="page" id="body-wrap">
<header class="not-home-page" id="page-header" style="background-image: url(<?php if ($this->is('page')){GetRandomThumbnailPost($this);}?>)">
<div id="page-site-info"><h1 id="site-title"><?php $this->archiveTitle(array(
'category' => _t(' %s '),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ''); ?></h1></div>
<nav id="nav" class="show" >
<span id="blog_name">
<a id="site-name" href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title() ?></a>
</span>
<div id="menus">
<div id="search-button">
<a class="site-page social-icon search">
<i class="fas fa-search fa-fw"></i>
<span> 搜索</span></a>
</div>
<div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div>
<div class="menus_items">
<div class="menus_item">
<a class="site-page" href="<?php $this->options->siteUrl(); ?>">
<li class="fa-fw fas fa-home"></li><?php _e('首页'); ?></a>
</div>
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while($pages->next()): ?>
<div class="menus_item">
<a class="site-page" href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>">
<?php if($this->is($pages->title == "友链")){
echo"<i class='fa-fw fas fa-link'></i>";
}
elseif($this->is($pages->title == "关于")){
echo"<li class='fa-fw fas fa-user'></li>";
}
elseif($this->is($pages->title=="留言")){
echo"<i class='fa-fw fas fa-comment-dots'></i>";
}
elseif($this->is($pages->title=="归档")){
echo"<i class='fa-fw fas fa-archive'></i>";
}
elseif($this->is($pages->title=="标签")){
echo"<i class='fa-fw fas fa-tags'></i>";
}
elseif($this->is($pages->title=="分类")){
echo"<i class='fa-fw fas fa-folder-open'></i>";
}elseif($this->is($pages->title=="留言板")){
echo"<i class='fa-fw fa fa-comment-dots'></i>";
}else{
echo"<i class='fa-fw fa fa-coffee'></i>";
}
?>
<?php $pages->title(); ?>
</a>
</div>
<?php endwhile; ?>
</div>
</div>
</div>
</nav>
</header>