-
Notifications
You must be signed in to change notification settings - Fork 1
/
post.html
135 lines (135 loc) · 6.45 KB
/
post.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
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
#include('./partial/header.html',{title: article.title, keywords: article.tags})
<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>
<div class="kratos-post-meta text-center">
<span>
<i class="fa fa-calendar"></i> ${created('yyyy年MM月dd日')}<i class="fa fa-commenting-o"></i> ${comments_num('0条评论', ' %d 条评论')}
<i class="fa fa-eye"></i> ${views()}次阅读
</span>
</div>
</header>
<div class="kratos-post-content"><p>${show_content()}</p></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>
<div class="footer-tag clearfix">
<div class="pull-date">
<span>最后编辑:${modified('yyyy年MM月dd日')}</span>
</div>
</div>
</footer>
</div>
<div class="post-copyright panel panel-sort sbclass aos-init aos-animate" data-aos="fade-up">
<p class="sidetags"><i class="fa fa-tags"></i> 本文标签:
${show_tags()}
<p><i class="fa fa-bullhorn"></i> 版权声明:本博客所有文章除特别声明外,本文皆为《<a href="${site_url()}" title="管理员">${theme_option('author') ?! ''}</a>》原创,转载请保留文章出处。</p>
<p><i class="fa fa-share-alt-square"></i> 本文链接:${title()} - ${permalink()}</p>
</div>
</article>
<nav class="navigation post-navigation clearfix" role="navigation">
#if(null != article_prev())
<div class="nav-previous clearfix">
<a>上一篇: </a><a href="${permalink(article_prev())}" title="${title(article_prev())}">${title(article_prev())}</a>
</div>
#end
#if(null != article_next())
<div class="nav-next">
<a>下一篇:</a><a href="${permalink(article_next())}" title="${title(article_next())}">${title(article_next())}</a>
</div>
#end
</nav>
#include('./partial/comments.html')
</section>
#include('./partial/sidebar.html')
</div>
</div>
</div>
#include('./partial/footer.html')