|
1 |
| -- import "disqus_helper.jade" as disqus with context |
2 |
| -//- namespace name="livefyre" file="livefyre_helper" |
3 |
| -//- namespace name="intensedebate" file="intensedebate_helper" |
4 |
| -//- namespace name="moot" file="moot_helper" |
5 |
| -//- namespace name="googleplus" file="googleplus_helper" |
6 |
| -//- namespace name="facebook" file="facebook_helper" |
7 |
| -//- namespace name="isso" file="isso_helper" |
8 |
| -
|
9 |
| -mixin 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 == 'moot' |
17 |
| - != moot.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 |
| - |
25 |
| - |
26 |
| - |
27 |
| -mixin comment_link(link, identifier) |
28 |
| - if comment_system == 'disqus' |
29 |
| - != disqus.comment_link(link, identifier) |
30 |
| - elif comment_system == 'livefyre' |
31 |
| - != livefyre.comment_link(link, identifier) |
32 |
| - elif comment_system == 'intensedebate' |
33 |
| - != intensedebate.comment_link(link, identifier) |
34 |
| - elif comment_system == 'moot' |
35 |
| - != moot.comment_link(link, identifier) |
36 |
| - elif comment_system == 'googleplus' |
37 |
| - != googleplus.comment_link(link, identifier) |
38 |
| - elif comment_system == 'facebook' |
39 |
| - != facebook.comment_link(link, identifier) |
40 |
| - elif comment_system == 'isso' |
41 |
| - != isso.comment_link(link, identifier) |
42 |
| - |
43 |
| - |
44 |
| - |
45 |
| -mixin comment_link_script() |
46 |
| - if comment_system == 'disqus' |
47 |
| - != disqus.comment_link_script() |
48 |
| - elif comment_system == 'livefyre' |
49 |
| - != livefyre.comment_link_script() |
50 |
| - elif comment_system == 'intensedebate' |
51 |
| - != intensedebate.comment_link_script() |
52 |
| - elif comment_system == 'moot' |
53 |
| - != moot.comment_link_script() |
54 |
| - elif comment_system == 'googleplus' |
55 |
| - != googleplus.comment_link_script() |
56 |
| - elif comment_system == 'facebook' |
57 |
| - != facebook.comment_link_script() |
58 |
| - elif comment_system == 'isso' |
59 |
| - != isso.comment_link_script() |
60 |
| - |
61 |
| - |
| 1 | +## -*- coding: utf-8 -*- |
| 2 | + |
| 3 | +<%namespace name="disqus" file="comments_helper_disqus.tmpl"/> |
| 4 | +<%namespace name="livefyre" file="comments_helper_livefyre.tmpl"/> |
| 5 | +<%namespace name="intensedebate" file="comments_helper_intensedebate.tmpl"/> |
| 6 | +<%namespace name="muut" file="comments_helper_muut.tmpl"/> |
| 7 | +<%namespace name="googleplus" file="comments_helper_googleplus.tmpl"/> |
| 8 | +<%namespace name="facebook" file="comments_helper_facebook.tmpl"/> |
| 9 | +<%namespace name="isso" file="comments_helper_isso.tmpl"/> |
| 10 | + |
| 11 | +<%def name="comment_form(url, title, identifier)"> |
| 12 | + %if comment_system == 'disqus': |
| 13 | + ${disqus.comment_form(url, title, identifier)} |
| 14 | + % elif comment_system == 'livefyre': |
| 15 | + ${livefyre.comment_form(url, title, identifier)} |
| 16 | + % elif comment_system == 'intensedebate': |
| 17 | + ${intensedebate.comment_form(url, title, identifier)} |
| 18 | + % elif comment_system == 'muut': |
| 19 | + ${muut.comment_form(url, title, identifier)} |
| 20 | + % elif comment_system == 'googleplus': |
| 21 | + ${googleplus.comment_form(url, title, identifier)} |
| 22 | + % elif comment_system == 'facebook': |
| 23 | + ${facebook.comment_form(url, title, identifier)} |
| 24 | + % elif comment_system == 'isso': |
| 25 | + ${isso.comment_form(url, title, identifier)} |
| 26 | + %endif |
| 27 | +</%def> |
| 28 | + |
| 29 | +<%def name="comment_link(link, identifier)"> |
| 30 | + %if comment_system == 'disqus': |
| 31 | + ${disqus.comment_link(link, identifier)} |
| 32 | + % elif comment_system == 'livefyre': |
| 33 | + ${livefyre.comment_link(link, identifier)} |
| 34 | + % elif comment_system == 'intensedebate': |
| 35 | + ${intensedebate.comment_link(link, identifier)} |
| 36 | + % elif comment_system == 'muut': |
| 37 | + ${muut.comment_link(link, identifier)} |
| 38 | + % elif comment_system == 'googleplus': |
| 39 | + ${googleplus.comment_link(link, identifier)} |
| 40 | + % elif comment_system == 'facebook': |
| 41 | + ${facebook.comment_link(link, identifier)} |
| 42 | + % elif comment_system == 'isso': |
| 43 | + ${isso.comment_link(link, identifier)} |
| 44 | + %endif |
| 45 | +</%def> |
| 46 | + |
| 47 | +<%def name="comment_link_script()"> |
| 48 | + %if comment_system == 'disqus': |
| 49 | + ${disqus.comment_link_script()} |
| 50 | + % elif comment_system == 'livefyre': |
| 51 | + ${livefyre.comment_link_script()} |
| 52 | + % elif comment_system == 'intensedebate': |
| 53 | + ${intensedebate.comment_link_script()} |
| 54 | + % elif comment_system == 'muut': |
| 55 | + ${muut.comment_link_script()} |
| 56 | + % elif comment_system == 'googleplus': |
| 57 | + ${googleplus.comment_link_script()} |
| 58 | + % elif comment_system == 'facebook': |
| 59 | + ${facebook.comment_link_script()} |
| 60 | + % elif comment_system == 'isso': |
| 61 | + ${isso.comment_link_script()} |
| 62 | + %endif |
| 63 | +</%def> |
0 commit comments