added flattr buttons

This commit is contained in:
Marvin Steadfast 2015-04-14 16:46:49 +02:00
parent 83e0a7fdc2
commit 80bcaf522f
2 changed files with 64 additions and 54 deletions

View File

@ -15,6 +15,7 @@ GITHUB_URL = 'http://github.com/xsteadfastx/'
TWITTER_NAME = 'xsteadfastx'
DISQUS_SITENAME = "xsteadfastx"
#ISSO_URL = 'http://comments.xsteadfastx.org'
FLATTR_USER = 'xsteadfastx'
PDF_GENERATOR = False
REVERSE_CATEGORY_ORDER = True
LOCALE = "C"

View File

@ -29,8 +29,17 @@
</div>
{{ ARTICLE_FOOTER }}
<!-- FLATTR -->
{% if FLATTR_USER %}
<script id='fbc04dc'>
(function(i){var f,s=document.getElementById(i);f=document.createElement('iframe');f.src='//api.flattr.com/button/view/?uid={{ FLATTR_USER }}&button=compact&url='+encodeURIComponent(document.URL);f.title='Flattr';f.height=20;f.width=110;f.scrolling='no';f.style.borderWidth=0;s.parentNode.insertBefore(f,s);})('fbc04dc');
</script>
{% endif %}
<!-- TWITTER -->
<a href="https://twitter.com/{{ TWITTER_NAME }}" class="twitter-follow-button" data-show-count="false">Follow @{{ TWITTER_NAME }}</a>
<a href="https://twitter.com/share" class="twitter-share-button" data-via="{{ TWITTER_NAME }}">Tweet</a>
<div class="back-to-home"><a href="/">← Back to Home</a></div>
<hr class="large">