-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.html
106 lines (106 loc) · 4.83 KB
/
page.html
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
#include('./partial/header.html', {title: article.title })
<div class="container">
<div class="row">
<section id="main" class='col-md-8'>
<article itemscope itemtype="http://schema.org/BlogPosting">
<div class="kratos-hentry kratos-post-inner clearfix">
<header class="kratos-entry-header">
<h1 class="kratos-entry-title text-center">${title()}</h1>
</header>
<div class="kratos-post-content">${show_content()}</div>
<footer class="kratos-entry-footer clearfix">
<div class="post-like-donate text-center clearfix" id="post-like-donate">
<a href="javascript:;" class="Donate"><i class="fa fa-bitcoin"></i> 打赏</a>
<a href="javascript:;" id="btn" data-action="love" data-id="1" class="Love done"><i class="fa fa-thumbs-o-up"></i> 点赞</a>
<a href="javascript:;" class="Share" ><i class="fa fa-share-alt"></i> 分享</a>
<div class="panel-reward" style="display: none;">
<ul class="dsye">
#if(theme_option('alipay') == "")
<li class="alipay"><img alt="打赏" src="${theme_url('/static/images/alipay.jpg')}"><b>支付宝扫一扫</b></li>
#else
<li class="alipay"><img alt="打赏" src="${theme_option('alipay')}"><b>支付宝扫一扫</b></li>
#end
#if(theme_option('weixinpay') == "")
<li class="weixinpay"><img alt="打赏" src="${theme_url('/static/images/weixinpay.jpg')}"><b>微信扫一扫</b></li>
#else
<li class="weixinpay"><img alt="打赏" src="${theme_option('weixinpay')}"><b>微信扫一扫</b></li>
#end
#if(theme_option('qqpay') == "")
<li class="txpay"><img alt="打赏" src="${theme_url('/static/images/qqpay.jpg')}"><b>企鹅扫一扫</b></li>
#else
<li class="txpay"><img alt="打赏" src="${theme_option('qqpay')}"><b>企鹅扫一扫</b></li>
#end
</ul>
</div>
<div class="share-wrap" style="display: none;">
<div class="share-group">
<a href="javascript:;" class="share-plain twitter" onclick="share('qq');" rel="nofollow">
<div class="icon-wrap">
<i class="fa fa-qq"></i>
</div>
</a>
<a href="javascript:;" class="share-plain weibo" onclick="share('weibo');" rel="nofollow">
<div class="icon-wrap">
<i class="fa fa-weibo"></i>
</div>
</a>
<a href="javascript:;" class="share-plain facebook style-plain" onclick="share('facebook');" rel="nofollow">
<div class="icon-wrap">
<i class="fa fa-facebook"></i>
</div>
</a>
<a href="javascript:;" class="share-plain googleplus style-plain" onclick="share('googleplus');" rel="nofollow">
<div class="icon-wrap">
<i class="fa fa-google-plus"></i>
</div>
</a>
<a href="javascript:;" class="share-plain weixin pop style-plain" rel="nofollow">
<div class="icon-wrap">
<i class="fa fa-weixin"></i>
</div>
<div class="share-int">
<div class="qrcode" data-url="${permalink()}"></div>
<p>打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮</p>
</div>
</a>
</div>
<script type="text/javascript">
function share(obj){
var qqShareURL="http://connect.qq.com/widget/shareqq/index.html?";
var weiboShareURL="http://service.weibo.com/share/share.php?";
var facebookShareURL="https://www.facebook.com/sharer/sharer.php?";
var twitterShareURL="https://twitter.com/intent/tweet?";
var googleplusShareURL="https://plus.google.com/share?";
var host_url="${permalink()}";
var title="【${title()}】";
var qqtitle="${title()}";
var excerpt=`${intro(75)}...`;
var pic="${site_url()}${show_thumb(article)}";
var appkey="sina_appkey";
var _URL;
if(obj=="qq"){
_URL=qqShareURL+"url="+host_url+"&title="+qqtitle+"&pics="+pic+"&desc=&summary="+excerpt+"&site=vtrois";
}else if(obj=="weibo"){
_URL=weiboShareURL+"url="+host_url+"&appkey="+appkey+"&title="+title+excerpt+"&pic="+pic;
}else if(obj=="facebook"){
_URL=facebookShareURL+"u="+host_url;
}else if(obj=="twitter"){
_URL=twitterShareURL+"text="+title+excerpt+"&url="+host_url;
}else if(obj=="googleplus"){
_URL=googleplusShareURL+"url="+host_url;
}
window.open(_URL);
}
</script>
</div>
</div>
</footer>
</div>
</article>
#include('./partial/comments.html')
</section>
#include('./partial/sidebar.html')
</div>
</div>
</div>
#include('./partial/footer.html')