diff options
Diffstat (limited to 'nikola/data/themes/base-jinja/templates/comments_helper.tmpl')
| -rw-r--r-- | nikola/data/themes/base-jinja/templates/comments_helper.tmpl | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/nikola/data/themes/base-jinja/templates/comments_helper.tmpl b/nikola/data/themes/base-jinja/templates/comments_helper.tmpl new file mode 100644 index 0000000..aba7294 --- /dev/null +++ b/nikola/data/themes/base-jinja/templates/comments_helper.tmpl @@ -0,0 +1,63 @@ +{# -*- coding: utf-8 -*- #} + +{% import 'comments_helper_disqus.tmpl' as disqus with context %} +{% import 'comments_helper_livefyre.tmpl' as livefyre with context %} +{% import 'comments_helper_intensedebate.tmpl' as intensedebate with context %} +{% import 'comments_helper_muut.tmpl' as muut with context %} +{% import 'comments_helper_googleplus.tmpl' as googleplus with context %} +{% import 'comments_helper_facebook.tmpl' as facebook with context %} +{% import 'comments_helper_isso.tmpl' as isso with context %} + +{% macro comment_form(url, title, identifier) %} + {% if comment_system == 'disqus' %} + {{ disqus.comment_form(url, title, identifier) }} + {% elif comment_system == 'livefyre' %} + {{ livefyre.comment_form(url, title, identifier) }} + {% elif comment_system == 'intensedebate' %} + {{ intensedebate.comment_form(url, title, identifier) }} + {% elif comment_system == 'muut' %} + {{ muut.comment_form(url, title, identifier) }} + {% elif comment_system == 'googleplus' %} + {{ googleplus.comment_form(url, title, identifier) }} + {% elif comment_system == 'facebook' %} + {{ facebook.comment_form(url, title, identifier) }} + {% elif comment_system == 'isso' %} + {{ isso.comment_form(url, title, identifier) }} + {% endif %} +{% endmacro %} + +{% macro comment_link(link, identifier) %} + {% if comment_system == 'disqus' %} + {{ disqus.comment_link(link, identifier) }} + {% elif comment_system == 'livefyre' %} + {{ livefyre.comment_link(link, identifier) }} + {% elif comment_system == 'intensedebate' %} + {{ intensedebate.comment_link(link, identifier) }} + {% elif comment_system == 'muut' %} + {{ muut.comment_link(link, identifier) }} + {% elif comment_system == 'googleplus' %} + {{ googleplus.comment_link(link, identifier) }} + {% elif comment_system == 'facebook' %} + {{ facebook.comment_link(link, identifier) }} + {% elif comment_system == 'isso' %} + {{ isso.comment_link(link, identifier) }} + {% endif %} +{% endmacro %} + +{% macro comment_link_script() %} + {% if comment_system == 'disqus' %} + {{ disqus.comment_link_script() }} + {% elif comment_system == 'livefyre' %} + {{ livefyre.comment_link_script() }} + {% elif comment_system == 'intensedebate' %} + {{ intensedebate.comment_link_script() }} + {% elif comment_system == 'muut' %} + {{ muut.comment_link_script() }} + {% elif comment_system == 'googleplus' %} + {{ googleplus.comment_link_script() }} + {% elif comment_system == 'facebook' %} + {{ facebook.comment_link_script() }} + {% elif comment_system == 'isso' %} + {{ isso.comment_link_script() }} + {% endif %} +{% endmacro %} |
