Merge pull request #20 from MrSenko/add_this

Add AddThis sharing buttons
This commit is contained in:
Gilson Filho 2016-01-18 08:45:12 -03:00
commit 7bca08adfe
2 changed files with 24 additions and 0 deletions

View File

@ -76,6 +76,7 @@
</div>
{% endif %}
{% include 'sharing.html' %}
<hr>
{% 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 %}