83 lines
3 KiB
Python
83 lines
3 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 = 1434160807.4238615
|
|
_enable_loop = True
|
|
_template_filename = '/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper_isso.tmpl'
|
|
_template_uri = 'comments_helper_isso.tmpl'
|
|
_source_encoding = 'utf-8'
|
|
_exports = ['comment_link', 'comment_link_script', 'comment_form']
|
|
|
|
|
|
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\n')
|
|
__M_writer('\n\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:
|
|
comment_system_id = context.get('comment_system_id', UNDEFINED)
|
|
__M_writer = context.writer()
|
|
__M_writer('\n')
|
|
if comment_system_id:
|
|
__M_writer(' <a href="')
|
|
__M_writer(str(link))
|
|
__M_writer('#isso-thread">Comments</a>\n')
|
|
return ''
|
|
finally:
|
|
context.caller_stack._pop_frame()
|
|
|
|
|
|
def render_comment_link_script(context):
|
|
__M_caller = context.caller_stack._push_frame()
|
|
try:
|
|
comment_system_id = context.get('comment_system_id', UNDEFINED)
|
|
__M_writer = context.writer()
|
|
__M_writer('\n')
|
|
if comment_system_id:
|
|
__M_writer(' <script src="')
|
|
__M_writer(str(comment_system_id))
|
|
__M_writer('js/count.min.js" data-isso="')
|
|
__M_writer(str(comment_system_id))
|
|
__M_writer('"></script>\n')
|
|
return ''
|
|
finally:
|
|
context.caller_stack._pop_frame()
|
|
|
|
|
|
def render_comment_form(context,url,title,identifier):
|
|
__M_caller = context.caller_stack._push_frame()
|
|
try:
|
|
comment_system_id = context.get('comment_system_id', UNDEFINED)
|
|
__M_writer = context.writer()
|
|
__M_writer('\n')
|
|
if comment_system_id:
|
|
__M_writer(' <div data-title="')
|
|
__M_writer(filters.url_escape(str(title)))
|
|
__M_writer('" id="isso-thread"></div>\n <script src="')
|
|
__M_writer(str(comment_system_id))
|
|
__M_writer('js/embed.min.js" data-isso="')
|
|
__M_writer(str(comment_system_id))
|
|
__M_writer('"></script>\n')
|
|
return ''
|
|
finally:
|
|
context.caller_stack._pop_frame()
|
|
|
|
|
|
"""
|
|
__M_BEGIN_METADATA
|
|
{"line_map": {"65": 2, "66": 3, "67": 4, "68": 4, "69": 4, "70": 5, "71": 5, "72": 5, "73": 5, "15": 0, "20": 7, "21": 13, "22": 20, "79": 73, "28": 9, "33": 9, "34": 10, "35": 11, "36": 11, "37": 11, "43": 16, "48": 16, "49": 17, "50": 18, "51": 18, "52": 18, "53": 18, "54": 18, "60": 2}, "source_encoding": "utf-8", "filename": "/usr/lib/python3.4/site-packages/nikola/data/themes/base/templates/comments_helper_isso.tmpl", "uri": "comments_helper_isso.tmpl"}
|
|
__M_END_METADATA
|
|
"""
|