Add AddThis sharing buttons

This commit is contained in:
Mr. Senko 2016-01-17 17:07:27 +02:00
parent 52f805521e
commit d35b38d790
2 changed files with 24 additions and 0 deletions

View File

@ -73,6 +73,7 @@
</div> </div>
{% endif %} {% endif %}
{% include 'sharing.html' %}
<hr> <hr>
{% if DISQUS_SITENAME and SITEURL and article.status != "draft" %} {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}

23
templates/sharing.html Normal file
View File

@ -0,0 +1,23 @@
{% if article.status != "draft" %}
<hr>
<div class="sharing">
{% if ADDTHIS_PUBID %}
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_preferred_5"></a>
<a class="addthis_button_preferred_6"></a>
<a class="addthis_button_preferred_7"></a>
<a class="addthis_button_preferred_8"></a>
<a class="addthis_button_preferred_9"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADDTHIS_PUBID }}"></script>
<!-- AddThis Button END -->
{% endif %}
</div>
{% endif %}