diff options
| author | 2022-04-20 00:12:09 -0400 | |
|---|---|---|
| committer | 2022-04-20 00:12:09 -0400 | |
| commit | 942e313727d1ad886a1024c24fe4a9e8e2e0bb3e (patch) | |
| tree | 1c4d5d826655cdb812c88563a25410f8b54e41d2 /nikola/data/themes/base/templates/comments_helper.tmpl | |
| parent | 8eeed31eb2f86ac982fa4b26f93b15828289c56d (diff) | |
New upstream version 8.2.0.upstream/8.2.0
Diffstat (limited to 'nikola/data/themes/base/templates/comments_helper.tmpl')
| -rw-r--r-- | nikola/data/themes/base/templates/comments_helper.tmpl | 56 |
1 files changed, 4 insertions, 52 deletions
diff --git a/nikola/data/themes/base/templates/comments_helper.tmpl b/nikola/data/themes/base/templates/comments_helper.tmpl index 002499e..cfd52f2 100644 --- a/nikola/data/themes/base/templates/comments_helper.tmpl +++ b/nikola/data/themes/base/templates/comments_helper.tmpl @@ -1,63 +1,15 @@ ## -*- coding: utf-8 -*- -<%namespace name="disqus" file="comments_helper_disqus.tmpl"/> -<%namespace name="intensedebate" file="comments_helper_intensedebate.tmpl"/> -<%namespace name="muut" file="comments_helper_muut.tmpl"/> -<%namespace name="facebook" file="comments_helper_facebook.tmpl"/> -<%namespace name="isso" file="comments_helper_isso.tmpl"/> -<%namespace name="commento" file="comments_helper_commento.tmpl"/> -<%namespace name="utterances" file="comments_helper_utterances.tmpl"/> +<%namespace name="comments_helper_impl" file="comments_helper_${context['comment_system']}.tmpl"/> <%def name="comment_form(url, title, identifier)"> - %if comment_system == 'disqus': - ${disqus.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 == 'facebook': - ${facebook.comment_form(url, title, identifier)} - % elif comment_system == 'isso': - ${isso.comment_form(url, title, identifier)} - % elif comment_system == 'commento': - ${commento.comment_form(url, title, identifier)} - % elif comment_system == 'utterances': - ${utterances.comment_form(url, title, identifier)} - %endif + ${comments_helper_impl.comment_form(url, title, identifier)} </%def> <%def name="comment_link(link, identifier)"> - %if comment_system == 'disqus': - ${disqus.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 == 'facebook': - ${facebook.comment_link(link, identifier)} - % elif comment_system == 'isso': - ${isso.comment_link(link, identifier)} - % elif comment_system == 'commento': - ${commento.comment_link(link, identifier)} - % elif comment_system == 'utterances': - ${utterances.comment_link(link, identifier)} - %endif + ${comments_helper_impl.comment_link(link, identifier)} </%def> <%def name="comment_link_script()"> - %if comment_system == 'disqus': - ${disqus.comment_link_script()} - % elif comment_system == 'intensedebate': - ${intensedebate.comment_link_script()} - % elif comment_system == 'muut': - ${muut.comment_link_script()} - % elif comment_system == 'facebook': - ${facebook.comment_link_script()} - % elif comment_system == 'isso': - ${isso.comment_link_script()} - % elif comment_system == 'commento': - ${commento.comment_link_script()} - % elif comment_system == 'utterances': - ${utterances.comment_link_script()} - %endif + ${comments_helper_impl.comment_link_script()} </%def> |
