-
Notifications
You must be signed in to change notification settings - Fork 36
/
sidebar.php
101 lines (67 loc) · 4.47 KB
/
sidebar.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
<?php if($this->is('post') || $this->is('page')): ?>
<nav id="sidebar" <?php if ($this->fields->fm){ ?>data-behavior="3"<?php }else{ ?>
<?php if ($this->fields->ys){ ?>data-behavior="<?php $this->fields->ys(); ?>"<?php }else{ ?>
data-behavior="<?php $this->options->css(); ?>"<?php };?><?php };?>>
<?php else: ?>
<nav id="sidebar" data-behavior="<?php $this->options->css(); ?>" >
<?php endif; ?>
<div class="sidebar-profile">
<a href="/#about">
<img class="sidebar-profile-picture" <?php if ($this->options->logoUrl){ ?>src="<?php $this->options->logoUrl();?>"<?php }else{ ?>src="<?php $this->options->themeUrl('image/avatar.jpg'); ?>"<?php };?>/> </a>
<span class="sidebar-profile-name"><?php $this->options->title(); ?></span>
</div>
<ul class="sidebar-buttons">
<li class="sidebar-button">
<a class="sidebar-button-link " href="<?php $this->options->siteUrl(); ?>" >
<i class="sidebar-button-icon fa fa-lg fa-home" ></i>
<span class="sidebar-button-desc"><?php if ($this->options->cdl == '0'): ?>Home<?php endif; ?><?php if ($this->options->cdl == '1'): ?>主页<?php endif; ?></span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link "
href="<?php $this->options->Categories();?>"
>
<i class="sidebar-button-icon fa fa-lg fa-bookmark"></i>
<span class="sidebar-button-desc"><?php if ($this->options->cdl == '0'): ?>Categories<?php endif; ?><?php if ($this->options->cdl == '1'): ?>分类归档<?php endif; ?>
</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link "
href="<?php $this->options->Archive();?>"
>
<i class="sidebar-button-icon fa fa-lg fa-calendar"></i>
<span class="sidebar-button-desc"><?php if ($this->options->cdl == '0'): ?>Archive<?php endif; ?><?php if ($this->options->cdl == '1'): ?>时间归档<?php endif; ?></span>
</a>
</li>
<li class="sidebar-button" id="sou">
<a class="sidebar-button-link st-search-show-outputs" >
<i class="sidebar-button-icon fa fa-lg fa-search"></i>
<span class="sidebar-button-desc"><?php if ($this->options->cdl == '0'): ?>Search<?php endif; ?><?php if ($this->options->cdl == '1'): ?>搜索<?php endif; ?>
</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link "
href="<?php $this->options->about();?>"
>
<i class="sidebar-button-icon fa fa-lg fa-info-circle"></i>
<span class="sidebar-button-desc"><?php if ($this->options->cdl == '0'): ?>About<?php endif; ?><?php if ($this->options->cdl == '1'): ?>关于<?php endif; ?></span>
</a>
</li>
</ul>
<ul class="sidebar-buttons">
<li class="sidebar-button">
<a class="sidebar-button-link " href="<?php $this->options->weibo();?>" target="_blank" >
<i class="sidebar-button-icon fa fa-lg fa-weibo"></i>
<span class="sidebar-button-desc"><?php if ($this->options->cdl == '0'): ?>Weibo<?php endif; ?><?php if ($this->options->cdl == '1'): ?>微博<?php endif; ?></span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link " href="<?php $this->options->links();?>">
<i class="sidebar-button-icon fa fa-lg fa-chain"></i>
<span class="sidebar-button-desc"><?php if ($this->options->cdl == '0'): ?>Links<?php endif; ?><?php if ($this->options->cdl == '1'): ?>友链<?php endif; ?></span>
</a>
</li>
</ul>
</nav>