-
Notifications
You must be signed in to change notification settings - Fork 36
/
footer.php
243 lines (189 loc) · 11.2 KB
/
footer.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<footer id="footer" class="main-content-wrap">
<span class="copyrights"> 博客已萌萌哒运行<span id=span_dt_dt></span><br>
© 2016 <?php $this->options->title(); ?> /
Power By <a target="_blank" href="http://typecho.org/">Typecho</a>
/ Designed By <a target="_blank" href="https://github.com/jrotty/Themia-for-TE">Jrotty</a>
/ Loading time <?php timer_stop($this) ?>s
/ <?php $this->options->tongji(); ?></span>
</footer>
</div>
<?php if($this->is('post')): ?>
<div id="bottom-bar" class="post-bottom-bar" <?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 };?>>
<div class="post-actions-wrap">
<nav>
<ul class="post-actions post-action-nav">
<li class="post-action">
<?php thePrev($this); ?><i class="fa fa-angle-left"></i><span class="hide-xs hide-sm text-small icon-ml"><?php if ($this->options->cdl == '0'): ?>PREVIOUS <?php endif; ?><?php if ($this->options->cdl == '1'): ?>前一篇<?php endif; ?></span></a>
</li>
<li class="post-action">
<?php theNext($this); ?><span class="hide-xs hide-sm text-small icon-mr"><?php if ($this->options->cdl == '0'): ?>NEXT<?php endif; ?><?php if ($this->options->cdl == '1'): ?>后一篇<?php endif; ?></span>
<i class="fa fa-angle-right"></i></a>
</li>
</ul>
</nav>
<ul class="post-actions post-action-share">
<li class="post-action hide-lg hide-md hide-sm">
<a class="post-action-btn btn btn--default btn-open-shareoptions" href="#btn-open-shareoptions">
<i class="fa fa-share-alt"></i>
</a>
</li> <li class="post-action hide-xs">
<a class="post-action-btn btn btn--default" target="new" data-tooltip="分享至Google" href="https://plus.google.com/share?url=<?php $this->permalink() ?>">
<i class="fa fa-google-plus"></i>
</a>
</li>
<li class="post-action hide-xs">
<a class="post-action-btn btn btn--default tooltip--top" target="new" data-tooltip="分享至QQ空间" href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<?php $this->permalink() ?>&title=<?php $this->title() ?>&site=<?php $this->options->title(); ?>/&pics=<?php showThumbnail($this); ?>">
<i class="fa fa-qq"></i>
</a>
</li>
<li class="post-action hide-xs">
<a class="post-action-btn btn btn--default" target="new" data-tooltip="分享至新浪微博" href="http://service.weibo.com/share/share.php?url=<?php $this->permalink() ?>/&appkey=<?php $this->options->title(); ?>/&title=<?php $this->title() ?>&pic=<?php showThumbnail($this); ?>">
<i class="fa fa-weibo"></i>
</a>
</li>
<li class="post-action">
<a class="post-action-btn btn btn--default" href="#disqus_thread">
<i class="fa fa-comment-o"></i>
</a>
</li>
<li class="post-action">
<?php if (!empty($this->options->sidebarBlock) && in_array('mulu', $this->options->sidebarBlock)): ?>
<a class="post-action-btn btn btn--default" href="#mulu">
<i class="fa fa-list"></i>
</a><?php else: ?>
<a class="post-action-btn btn btn--default" href="#" onclick="gotoTop();return false;">
<i class="fa fa-arrow-up"></i>
</a><?php endif; ?>
</li>
</ul>
</div>
</div>
<div id="share-options-bar" class="share-options-bar" <?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 };?>>
<ul class="share-options">
<li class="share-option">
<a class="share-option-btn" target="new" href="http://service.weibo.com/share/share.php?url=<?php $this->permalink() ?>/&appkey=<?php $this->options->title(); ?>/&title=<?php $this->title() ?>&pic=<?php showThumbnail($this); ?>">
<i class="fa fa-weibo"></i><span class="">Share on 新浪微博</span>
</a>
</li>
<li class="share-option">
<a class="share-option-btn" target="new" href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<?php $this->permalink() ?>&title=<?php $this->title() ?>&site=<?php $this->options->title(); ?>/&pics=<?php showThumbnail($this); ?>">
<i class="fa fa-qq"></i><span>Share on QQ空间</span>
</a>
</li><li class="share-option">
<a class="share-option-btn" target="new" href="https://plus.google.com/share?url=<?php $this->permalink() ?>">
<i class="fa fa-google-plus"></i><span>Share on Google</span>
</a>
</li>
</ul>
</div>
<div id="share-options-mask" class="share-options-mask"></div>
<?php endif; ?>
</div></div>
<div id="about">
<div id="about-card">
<div id="about-btn-close">
<i class="fa fa-remove"></i>
</div>
<?php if($this->user->hasLogin()): ?>
<a href="<?php $this->options->adminUrl(); ?>" title="<?php $this->user->screenName(); ?>" target="_blank">
<?php else: ?>
<a href="<?php $this->options->adminUrl('login.php'); ?>" target="_blank"> <?php endif; ?> <img id="about-card-picture" <?php if ($this->options->logoUrl){ ?>src="<?php $this->options->logoUrl();?>"<?php }else{ ?>src="<?php $this->options->themeUrl('image/avatar.jpg'); ?>"<?php };?>/></a>
<h4 id="about-card-name"> <?php $this->author() ?></h4>
<h5 id="about-card-bio"><p><?php $this->options->description() ?>
</p>
<SCRIPT language=javascript>
function show_date_time(){window.setTimeout("show_date_time()",1e3);var BirthDay=new Date("<?php $this->options->otime(); ?>"),today=new Date,timeold=today.getTime()-BirthDay.getTime(),msPerDay=864e5,e_daysold=timeold/msPerDay,daysold=Math.floor(e_daysold),e_hrsold=24*(e_daysold-daysold),hrsold=Math.floor(e_hrsold),e_minsold=60*(e_hrsold-hrsold),minsold=Math.floor(60*(e_hrsold-hrsold)),seconds=Math.floor(60*(e_minsold-minsold));span_dt_dt.innerHTML=daysold+"天"+hrsold+"小时"+minsold+"分"+seconds+"秒"}
show_date_time();
</SCRIPT>
</div>
</div>
<?php if ($this->options->bgs == '1'): ?>
<div id="cover"<?php if ($this->options->bgUrl){ ?>
style="background-image:url('<?php $this->options->bgUrl();?>');"
<?php }else{ ?>style="background-image:url('<?php $this->options->themeUrl('image/bg.jpg'); ?>');"<?php };?>></div>
<?php else: ?>
<div id="cover"<?php if ($this->options->bgUrl){ ?>
style="background-color:<?php $this->options->bgUrl();?>;"
<?php }else{ ?>style="background-color: #444444;"<?php };?>></div>
<?php endif; ?>
<?php if($this->is('page')||$this->is('post')): ?>
<!--- 简繁转换开始 ---><script>
var defaultEncoding = 2; // 1: 繁體, 2: 简体
var translateDelay = 0; //延迟时间,若不在前, 要设定延迟翻译时间, 如100表示100ms,默认为0
var cookieDomain = "<?php $this->options->siteUrl(); ?>";
</script>
<script type="text/javascript" src="<?php $this->options->themeUrl('js/cn_tw.js'); ?>"></script>
<!--- 简繁转换结束 --->
<?php if ($this->options->bqg == '2'): ?>
<?php if($this->user->hasLogin()):?>
<?php else:?>
<script>
document.body.addEventListener('copy', function (e) {
if (window.getSelection().toString() && window.getSelection().toString().length > 42) {
setClipboardText(e);
notie({
type: 'info',
text: '商业转载请联系作者获得授权,非商业转载请注明出处,谢谢合作。',
autoHide: true
})
}
});
function setClipboardText(event) {
var clipboardData = event.clipboardData || window.clipboardData;
if (clipboardData) {
event.preventDefault();
var htmlData = ''
+ '著作权归作者所有。<br>'
+ '商业转载请联系作者获得授权,非商业转载请注明出处。<br>'
+ '作者:<?php $this->author() ?><br>'
+ '链接:' + window.location.href + '<br>'
+ '来源:<?php $this->options->siteUrl(); ?><br><br>'
+ window.getSelection().toString();
var textData = ''
+ '著作权归作者所有。\n'
+ '商业转载请联系作者获得授权,非商业转载请注明出处。\n'
+ '作者:<?php $this->author() ?>\n'
+ '链接:' + window.location.href + '\n'
+ '来源:<?php $this->options->siteUrl(); ?>\n\n'
+ window.getSelection().toString();
clipboardData.setData('text/html', htmlData);
clipboardData.setData('text/plain',textData);
}
}
</script><?php endif;?><?php endif; ?><?php endif; ?>
<!--SCRIPTS-->
<script src="<?php $this->options->themeUrl('js/script.min.js'); ?>" type="text/javascript"></script>
<!--PANGU AUTO SPACE-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/pangu/3.0.0/pangu.min.js"></script>
<script> pangu.spacingPage(); </script>
<!--PANGU AUTO SPACE END-->
<script src="<?php $this->options->themeUrl('js/kz.js'); ?>" type="text/javascript"></script>
<?php if (!empty($this->options->sidebarBlock) && in_array('mulu', $this->options->sidebarBlock)): ?>
<?php if($this->is('post')): ?>
<script language="javascript" type="text/javascript">GenerateContentList();
</script><?php endif; ?><?php endif; ?>
<?php if($this->is('post')): ?>
<script type="text/javascript">
$(document).ready(function(){
$('.tag sx').replaceWith('<?php $this->category('<div id="div" style="display: none" onMouseout="hidden();">', true, '木有标签且木有分类或者该分类已被删除'); ?></div>');
});
</script>
<?php endif; ?>
<?php if (!empty($this->options->sidebarBlock) && in_array('kiana', $this->options->sidebarBlock)): ?>
<script type="text/javascript" src="<?php $this->options->themeUrl('bga.min.js'); ?>"></script><?php endif; ?>
<div class="search_form">
<form method="post" action="./" class="sosuo">
<input class="search_key" name="s" autocomplete="off" placeholder="Enter search keywords..." type="text" value="" required="required">
<button type="submit" class="submit"><i class="fa fa-lg fa-search" id="bt"></i></button>
</form>
<span class="search_close"><i class="fa fa-close" id="close"></i></span>
</div>
<?php $this->footer(); ?>
</body>
</html>