comments_helper.tmpl 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. ## -*- coding: utf-8 -*-
  2. <%namespace name="disqus" file="comments_helper_disqus.tmpl"/>
  3. <%namespace name="livefyre" file="comments_helper_livefyre.tmpl"/>
  4. <%namespace name="intensedebate" file="comments_helper_intensedebate.tmpl"/>
  5. <%namespace name="muut" file="comments_helper_muut.tmpl"/>
  6. <%namespace name="googleplus" file="comments_helper_googleplus.tmpl"/>
  7. <%namespace name="facebook" file="comments_helper_facebook.tmpl"/>
  8. <%namespace name="isso" file="comments_helper_isso.tmpl"/>
  9. <%def name="comment_form(url, title, identifier)">
  10. %if comment_system == 'disqus':
  11. ${disqus.comment_form(url, title, identifier)}
  12. % elif comment_system == 'livefyre':
  13. ${livefyre.comment_form(url, title, identifier)}
  14. % elif comment_system == 'intensedebate':
  15. ${intensedebate.comment_form(url, title, identifier)}
  16. % elif comment_system == 'muut':
  17. ${muut.comment_form(url, title, identifier)}
  18. % elif comment_system == 'googleplus':
  19. ${googleplus.comment_form(url, title, identifier)}
  20. % elif comment_system == 'facebook':
  21. ${facebook.comment_form(url, title, identifier)}
  22. % elif comment_system == 'isso':
  23. ${isso.comment_form(url, title, identifier)}
  24. %endif
  25. </%def>
  26. <%def name="comment_link(link, identifier)">
  27. %if comment_system == 'disqus':
  28. ${disqus.comment_link(link, identifier)}
  29. % elif comment_system == 'livefyre':
  30. ${livefyre.comment_link(link, identifier)}
  31. % elif comment_system == 'intensedebate':
  32. ${intensedebate.comment_link(link, identifier)}
  33. % elif comment_system == 'muut':
  34. ${muut.comment_link(link, identifier)}
  35. % elif comment_system == 'googleplus':
  36. ${googleplus.comment_link(link, identifier)}
  37. % elif comment_system == 'facebook':
  38. ${facebook.comment_link(link, identifier)}
  39. % elif comment_system == 'isso':
  40. ${isso.comment_link(link, identifier)}
  41. %endif
  42. </%def>
  43. <%def name="comment_link_script()">
  44. %if comment_system == 'disqus':
  45. ${disqus.comment_link_script()}
  46. % elif comment_system == 'livefyre':
  47. ${livefyre.comment_link_script()}
  48. % elif comment_system == 'intensedebate':
  49. ${intensedebate.comment_link_script()}
  50. % elif comment_system == 'muut':
  51. ${muut.comment_link_script()}
  52. % elif comment_system == 'googleplus':
  53. ${googleplus.comment_link_script()}
  54. % elif comment_system == 'facebook':
  55. ${facebook.comment_link_script()}
  56. % elif comment_system == 'isso':
  57. ${isso.comment_link_script()}
  58. %endif
  59. </%def>