initial
This commit is contained in:
57
themes/next/layout/_partials/share/baidushare.swig
Normal file
57
themes/next/layout/_partials/share/baidushare.swig
Normal file
@ -0,0 +1,57 @@
|
||||
{% if theme.baidushare.type === "button" %}
|
||||
<div class="bdsharebuttonbox">
|
||||
<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
|
||||
<a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a>
|
||||
<a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
|
||||
<a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
|
||||
<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
|
||||
<a href="#" class="bds_tieba" data-cmd="tieba" title="分享到百度贴吧"></a>
|
||||
<a href="#" class="bds_twi" data-cmd="twi" title="分享到Twitter"></a>
|
||||
<a href="#" class="bds_fbook" data-cmd="fbook" title="分享到Facebook"></a>
|
||||
<a href="#" class="bds_more" data-cmd="more"></a>
|
||||
<a class="bds_count" data-cmd="count"></a>
|
||||
</div>
|
||||
<script>
|
||||
window._bd_share_config = {
|
||||
"common": {
|
||||
"bdText": "",
|
||||
"bdMini": "2",
|
||||
"bdMiniList": false,
|
||||
"bdPic": ""
|
||||
},
|
||||
"share": {
|
||||
"bdSize": "16",
|
||||
"bdStyle": "0"
|
||||
},
|
||||
"image": {
|
||||
"viewList": ["tsina", "douban", "sqq", "qzone", "weixin", "twi", "fbook"],
|
||||
"viewText": "分享到:",
|
||||
"viewSize": "16"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{% elif theme.baidushare.type === "slide" %}
|
||||
<script>
|
||||
window._bd_share_config = {
|
||||
"common": {
|
||||
"bdText": "",
|
||||
"bdMini": "1",
|
||||
"bdMiniList": false,
|
||||
"bdPic": ""
|
||||
},
|
||||
"image": {
|
||||
"viewList": ["tsina", "douban", "sqq", "qzone", "weixin", "twi", "fbook"],
|
||||
"viewText": "分享到:",
|
||||
"viewSize": "16"
|
||||
},
|
||||
"slide": {
|
||||
"bdImg": "5",
|
||||
"bdPos": "left",
|
||||
"bdTop": "100"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{% endif %}
|
||||
<script>
|
||||
with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='//bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
|
||||
</script>
|
Reference in New Issue
Block a user