206 lines
9.8 KiB
Python
206 lines
9.8 KiB
Python
# -*- coding:utf-8 -*-
|
|
from mako import runtime, filters, cache
|
|
UNDEFINED = runtime.UNDEFINED
|
|
__M_dict_builtin = dict
|
|
__M_locals_builtin = locals
|
|
_magic_number = 10
|
|
_modified_time = 1433910956.1884553
|
|
_enable_loop = True
|
|
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper.tmpl'
|
|
_template_uri = 'comments_helper.tmpl'
|
|
_source_encoding = 'utf-8'
|
|
_exports = ['comment_link', 'comment_form', 'comment_link_script']
|
|
|
|
|
|
def _mako_get_namespace(context, name):
|
|
try:
|
|
return context.namespaces[(__name__, name)]
|
|
except KeyError:
|
|
_mako_generate_namespaces(context)
|
|
return context.namespaces[(__name__, name)]
|
|
def _mako_generate_namespaces(context):
|
|
ns = runtime.TemplateNamespace('isso', context._clean_inheritance_tokens(), templateuri='comments_helper_isso.tmpl', callables=None, calling_uri=_template_uri)
|
|
context.namespaces[(__name__, 'isso')] = ns
|
|
|
|
ns = runtime.TemplateNamespace('livefyre', context._clean_inheritance_tokens(), templateuri='comments_helper_livefyre.tmpl', callables=None, calling_uri=_template_uri)
|
|
context.namespaces[(__name__, 'livefyre')] = ns
|
|
|
|
ns = runtime.TemplateNamespace('intensedebate', context._clean_inheritance_tokens(), templateuri='comments_helper_intensedebate.tmpl', callables=None, calling_uri=_template_uri)
|
|
context.namespaces[(__name__, 'intensedebate')] = ns
|
|
|
|
ns = runtime.TemplateNamespace('googleplus', context._clean_inheritance_tokens(), templateuri='comments_helper_googleplus.tmpl', callables=None, calling_uri=_template_uri)
|
|
context.namespaces[(__name__, 'googleplus')] = ns
|
|
|
|
ns = runtime.TemplateNamespace('muut', context._clean_inheritance_tokens(), templateuri='comments_helper_muut.tmpl', callables=None, calling_uri=_template_uri)
|
|
context.namespaces[(__name__, 'muut')] = ns
|
|
|
|
ns = runtime.TemplateNamespace('disqus', context._clean_inheritance_tokens(), templateuri='comments_helper_disqus.tmpl', callables=None, calling_uri=_template_uri)
|
|
context.namespaces[(__name__, 'disqus')] = ns
|
|
|
|
ns = runtime.TemplateNamespace('facebook', context._clean_inheritance_tokens(), templateuri='comments_helper_facebook.tmpl', callables=None, calling_uri=_template_uri)
|
|
context.namespaces[(__name__, 'facebook')] = ns
|
|
|
|
def render_body(context,**pageargs):
|
|
__M_caller = context.caller_stack._push_frame()
|
|
try:
|
|
__M_locals = __M_dict_builtin(pageargs=pageargs)
|
|
__M_writer = context.writer()
|
|
__M_writer('\n')
|
|
__M_writer('\n')
|
|
__M_writer('\n')
|
|
__M_writer('\n')
|
|
__M_writer('\n')
|
|
__M_writer('\n')
|
|
__M_writer('\n')
|
|
__M_writer('\n\n')
|
|
__M_writer('\n\n')
|
|
__M_writer('\n\n')
|
|
__M_writer('\n')
|
|
return ''
|
|
finally:
|
|
context.caller_stack._pop_frame()
|
|
|
|
|
|
def render_comment_link(context,link,identifier):
|
|
__M_caller = context.caller_stack._push_frame()
|
|
try:
|
|
isso = _mako_get_namespace(context, 'isso')
|
|
livefyre = _mako_get_namespace(context, 'livefyre')
|
|
intensedebate = _mako_get_namespace(context, 'intensedebate')
|
|
comment_system = context.get('comment_system', UNDEFINED)
|
|
disqus = _mako_get_namespace(context, 'disqus')
|
|
googleplus = _mako_get_namespace(context, 'googleplus')
|
|
muut = _mako_get_namespace(context, 'muut')
|
|
facebook = _mako_get_namespace(context, 'facebook')
|
|
__M_writer = context.writer()
|
|
__M_writer('\n')
|
|
if comment_system == 'disqus':
|
|
__M_writer(' ')
|
|
__M_writer(str(disqus.comment_link(link, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'livefyre':
|
|
__M_writer(' ')
|
|
__M_writer(str(livefyre.comment_link(link, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'intensedebate':
|
|
__M_writer(' ')
|
|
__M_writer(str(intensedebate.comment_link(link, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'muut':
|
|
__M_writer(' ')
|
|
__M_writer(str(muut.comment_link(link, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'googleplus':
|
|
__M_writer(' ')
|
|
__M_writer(str(googleplus.comment_link(link, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'facebook':
|
|
__M_writer(' ')
|
|
__M_writer(str(facebook.comment_link(link, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'isso':
|
|
__M_writer(' ')
|
|
__M_writer(str(isso.comment_link(link, identifier)))
|
|
__M_writer('\n')
|
|
return ''
|
|
finally:
|
|
context.caller_stack._pop_frame()
|
|
|
|
|
|
def render_comment_form(context,url,title,identifier):
|
|
__M_caller = context.caller_stack._push_frame()
|
|
try:
|
|
isso = _mako_get_namespace(context, 'isso')
|
|
livefyre = _mako_get_namespace(context, 'livefyre')
|
|
intensedebate = _mako_get_namespace(context, 'intensedebate')
|
|
comment_system = context.get('comment_system', UNDEFINED)
|
|
disqus = _mako_get_namespace(context, 'disqus')
|
|
googleplus = _mako_get_namespace(context, 'googleplus')
|
|
muut = _mako_get_namespace(context, 'muut')
|
|
facebook = _mako_get_namespace(context, 'facebook')
|
|
__M_writer = context.writer()
|
|
__M_writer('\n')
|
|
if comment_system == 'disqus':
|
|
__M_writer(' ')
|
|
__M_writer(str(disqus.comment_form(url, title, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'livefyre':
|
|
__M_writer(' ')
|
|
__M_writer(str(livefyre.comment_form(url, title, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'intensedebate':
|
|
__M_writer(' ')
|
|
__M_writer(str(intensedebate.comment_form(url, title, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'muut':
|
|
__M_writer(' ')
|
|
__M_writer(str(muut.comment_form(url, title, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'googleplus':
|
|
__M_writer(' ')
|
|
__M_writer(str(googleplus.comment_form(url, title, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'facebook':
|
|
__M_writer(' ')
|
|
__M_writer(str(facebook.comment_form(url, title, identifier)))
|
|
__M_writer('\n')
|
|
elif comment_system == 'isso':
|
|
__M_writer(' ')
|
|
__M_writer(str(isso.comment_form(url, title, identifier)))
|
|
__M_writer('\n')
|
|
return ''
|
|
finally:
|
|
context.caller_stack._pop_frame()
|
|
|
|
|
|
def render_comment_link_script(context):
|
|
__M_caller = context.caller_stack._push_frame()
|
|
try:
|
|
isso = _mako_get_namespace(context, 'isso')
|
|
livefyre = _mako_get_namespace(context, 'livefyre')
|
|
intensedebate = _mako_get_namespace(context, 'intensedebate')
|
|
comment_system = context.get('comment_system', UNDEFINED)
|
|
disqus = _mako_get_namespace(context, 'disqus')
|
|
googleplus = _mako_get_namespace(context, 'googleplus')
|
|
muut = _mako_get_namespace(context, 'muut')
|
|
facebook = _mako_get_namespace(context, 'facebook')
|
|
__M_writer = context.writer()
|
|
__M_writer('\n')
|
|
if comment_system == 'disqus':
|
|
__M_writer(' ')
|
|
__M_writer(str(disqus.comment_link_script()))
|
|
__M_writer('\n')
|
|
elif comment_system == 'livefyre':
|
|
__M_writer(' ')
|
|
__M_writer(str(livefyre.comment_link_script()))
|
|
__M_writer('\n')
|
|
elif comment_system == 'intensedebate':
|
|
__M_writer(' ')
|
|
__M_writer(str(intensedebate.comment_link_script()))
|
|
__M_writer('\n')
|
|
elif comment_system == 'muut':
|
|
__M_writer(' ')
|
|
__M_writer(str(muut.comment_link_script()))
|
|
__M_writer('\n')
|
|
elif comment_system == 'googleplus':
|
|
__M_writer(' ')
|
|
__M_writer(str(googleplus.comment_link_script()))
|
|
__M_writer('\n')
|
|
elif comment_system == 'facebook':
|
|
__M_writer(' ')
|
|
__M_writer(str(facebook.comment_link_script()))
|
|
__M_writer('\n')
|
|
elif comment_system == 'isso':
|
|
__M_writer(' ')
|
|
__M_writer(str(isso.comment_link_script()))
|
|
__M_writer('\n')
|
|
return ''
|
|
finally:
|
|
context.caller_stack._pop_frame()
|
|
|
|
|
|
"""
|
|
__M_BEGIN_METADATA
|
|
{"line_map": {"22": 9, "25": 4, "28": 5, "31": 7, "34": 6, "37": 3, "40": 8, "43": 0, "48": 2, "49": 3, "50": 4, "51": 5, "52": 6, "53": 7, "54": 8, "55": 9, "56": 27, "57": 45, "58": 63, "64": 29, "76": 29, "77": 30, "78": 31, "79": 31, "80": 31, "81": 32, "82": 33, "83": 33, "84": 33, "85": 34, "86": 35, "87": 35, "88": 35, "89": 36, "90": 37, "91": 37, "92": 37, "93": 38, "94": 39, "95": 39, "96": 39, "97": 40, "98": 41, "99": 41, "100": 41, "101": 42, "102": 43, "103": 43, "104": 43, "110": 11, "122": 11, "123": 12, "124": 13, "125": 13, "126": 13, "127": 14, "128": 15, "129": 15, "130": 15, "131": 16, "132": 17, "133": 17, "134": 17, "135": 18, "136": 19, "137": 19, "138": 19, "139": 20, "140": 21, "141": 21, "142": 21, "143": 22, "144": 23, "145": 23, "146": 23, "147": 24, "148": 25, "149": 25, "150": 25, "156": 47, "168": 47, "169": 48, "170": 49, "171": 49, "172": 49, "173": 50, "174": 51, "175": 51, "176": 51, "177": 52, "178": 53, "179": 53, "180": 53, "181": 54, "182": 55, "183": 55, "184": 55, "185": 56, "186": 57, "187": 57, "188": 57, "189": 58, "190": 59, "191": 59, "192": 59, "193": 60, "194": 61, "195": 61, "196": 61, "202": 196}, "uri": "comments_helper.tmpl", "source_encoding": "utf-8", "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper.tmpl"}
|
|
__M_END_METADATA
|
|
"""
|