comments_helper_livefyre.tmpl 959 B

123456789101112131415161718192021222324252627282930313233
  1. ## -*- coding: utf-8 -*-
  2. <%def name="comment_form(url, title, identifier)">
  3. <div id="livefyre-comments"></div>
  4. <script src="http://zor.livefyre.com/wjs/v3.0/javascripts/livefyre.js"></script>
  5. <script>
  6. (function () {
  7. var articleId = "${identifier}";
  8. fyre.conv.load({}, [{
  9. el: 'livefyre-comments',
  10. network: "livefyre.com",
  11. siteId: "${comment_system_id}",
  12. articleId: articleId,
  13. signed: false,
  14. collectionMeta: {
  15. articleId: articleId,
  16. url: fyre.conv.load.makeCollectionUrl(),
  17. }
  18. }], function() {});
  19. }());
  20. </script>
  21. </%def>
  22. <%def name="comment_link(link, identifier)">
  23. <a href="${link}">
  24. <span class="livefyre-commentcount" data-lf-site-id="${comment_system_id}" data-lf-article-id="${identifier}">
  25. 0 Comments
  26. </span>
  27. </%def>
  28. <%def name="comment_link_script()">
  29. <script src="http://zor.livefyre.com/wjs/v1.0/javascripts/CommentCount.js"></script>
  30. </%def>