diff options
Diffstat (limited to 'pelican-bootstrap3/templates/includes/addthis.html')
-rw-r--r-- | pelican-bootstrap3/templates/includes/addthis.html | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pelican-bootstrap3/templates/includes/addthis.html b/pelican-bootstrap3/templates/includes/addthis.html index 9f8fe50..12e2e8a 100644 --- a/pelican-bootstrap3/templates/includes/addthis.html +++ b/pelican-bootstrap3/templates/includes/addthis.html @@ -2,11 +2,19 @@ <hr /> <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style"> - <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> - <a class="addthis_button_tweet"></a> - <a class="addthis_button_google_plusone" g:plusone:size="medium"></a> + {% if ADDTHIS_FACEBOOK_LIKE|default(true) %} + <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> + {% endif %} + {% if ADDTHIS_TWEET|default(true) %} + <a class="addthis_button_tweet"></a> + {% endif %} + {% if ADDTHIS_GOOGLE_PLUSONE|default(true) %} + <a class="addthis_button_google_plusone" g:plusone:size="medium"></a> + {% endif %} </div> - <script type="text/javascript">var addthis_config = {"data_track_addressbar": true};</script> + {% if ADDTHIS_DATA_TRACK_ADDRESSBAR|default(true) %} + <script type="text/javascript">var addthis_config = {"data_track_addressbar": true};</script> + {% endif %} <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADDTHIS_PROFILE }}"></script> <!-- AddThis Button END --> {% endif %}
\ No newline at end of file |