aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base/templates/comments_helper.tmpl
blob: d3a2704052782718141e728c59aad7adf552672f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
## -*- coding: utf-8 -*-

<%namespace name="disqus" file="disqus_helper.tmpl"/>
<%namespace name="livefyre" file="livefyre_helper.tmpl"/>
<%namespace name="intensedebate" file="intensedebate_helper.tmpl"/>
<%namespace name="moot" file="moot_helper.tmpl"/>
<%namespace name="googleplus" file="googleplus_helper.tmpl"/>
<%namespace name="facebook" file="facebook_helper.tmpl"/>
<%namespace name="isso" file="isso_helper.tmpl"/>

<%def name="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 == 'moot':
        ${moot.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
</%def>

<%def name="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 == 'moot':
        ${moot.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
</%def>

<%def name="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 == 'moot':
        ${moot.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
</%def>