initial
This commit is contained in:
3
themes/next/layout/_partials/share/add-this.swig
Normal file
3
themes/next/layout/_partials/share/add-this.swig
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="addthis_inline_share_toolbox">
|
||||
<script src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ theme.add_this_id }}" async="async"></script>
|
||||
</div>
|
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>
|
23
themes/next/layout/_partials/share/likely.swig
Normal file
23
themes/next/layout/_partials/share/likely.swig
Normal file
@ -0,0 +1,23 @@
|
||||
{% set likely_js_url = '//cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.js' %}
|
||||
{% if theme.vendors.likely_js %}
|
||||
{% set likely_js_url = theme.vendors.likely_js %}
|
||||
{% endif %}
|
||||
<script src="{{ likely_js_url }}"></script>
|
||||
|
||||
{% set likely_css_url = '//cdn.jsdelivr.net/npm/ilyabirman-likely@2/release/likely.css' %}
|
||||
{% if theme.vendors.likely_css %}
|
||||
{% set likely_css_url = theme.vendors.likely_css %}
|
||||
{% endif %}
|
||||
<link rel="stylesheet" href="{{ likely_css_url }}">
|
||||
|
||||
{% if theme.likely.look == 'normal' %}
|
||||
{% set likely_look = 'likely' %}
|
||||
{% else %}
|
||||
{% set likely_look = 'likely likely-' + theme.likely.look %}
|
||||
{% endif %}
|
||||
|
||||
<div class="{{ likely_look }}">
|
||||
{% for x in theme.likely.networks %}
|
||||
<div class="{{ loop.key }}">{{ x }}</div>
|
||||
{% endfor %}
|
||||
</div>
|
Reference in New Issue
Block a user