# -*- 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 = 1434070807.6051025 _enable_loop = True _template_filename = 'themes/bootstrap3/templates/base_helper.tmpl' _template_uri = 'base_helper.tmpl' _source_encoding = 'utf-8' _exports = ['html_feedlinks', 'late_load_js', 'html_stylesheets', 'html_headstart', 'html_navigation_links', 'html_translations'] 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\n') __M_writer('\n\n\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_html_feedlinks(context): __M_caller = context.caller_stack._push_frame() try: rss_link = context.get('rss_link', UNDEFINED) translations = context.get('translations', UNDEFINED) _link = context.get('_link', UNDEFINED) generate_rss = context.get('generate_rss', UNDEFINED) len = context.get('len', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if rss_link: __M_writer(' ') __M_writer(str(rss_link)) __M_writer('\n') elif generate_rss: if len(translations) > 1: for language in translations: __M_writer(' \n') else: __M_writer(' \n') return '' finally: context.caller_stack._pop_frame() def render_late_load_js(context): __M_caller = context.caller_stack._push_frame() try: colorbox_locales = context.get('colorbox_locales', UNDEFINED) social_buttons_code = context.get('social_buttons_code', UNDEFINED) use_bundles = context.get('use_bundles', UNDEFINED) lang = context.get('lang', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if use_bundles: if use_cdn: __M_writer(' \n \n \n') else: __M_writer(' \n') else: if use_cdn: __M_writer(' \n \n') else: __M_writer(' \n \n \n \n') __M_writer(' \n') if colorbox_locales[lang]: __M_writer(' \n') __M_writer(' ') __M_writer(str(social_buttons_code)) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render_html_stylesheets(context): __M_caller = context.caller_stack._push_frame() try: post = context.get('post', UNDEFINED) notes = context.get('notes', UNDEFINED) has_custom_css = context.get('has_custom_css', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) annotations = context.get('annotations', UNDEFINED) use_bundles = context.get('use_bundles', UNDEFINED) __M_writer = context.writer() __M_writer('\n') if use_bundles: if use_cdn: __M_writer(' \n \n') else: __M_writer(' \n') else: if use_cdn: __M_writer(' \n') else: __M_writer(' \n') __M_writer(' \n \n \n \n') if has_custom_css: __M_writer(' \n') if annotations and post and not post.meta('noannotations'): __M_writer(' ') __M_writer(str(notes.css())) __M_writer('\n') elif not annotations and post and post.meta('annotations'): __M_writer(' ') __M_writer(str(notes.css())) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render_html_headstart(context): __M_caller = context.caller_stack._push_frame() try: is_rtl = context.get('is_rtl', UNDEFINED) prevlink = context.get('prevlink', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) lang = context.get('lang', UNDEFINED) mathjax_config = context.get('mathjax_config', UNDEFINED) def html_stylesheets(): return render_html_stylesheets(context) url_replacer = context.get('url_replacer', UNDEFINED) blog_title = context.get('blog_title', UNDEFINED) description = context.get('description', UNDEFINED) extra_head_data = context.get('extra_head_data', UNDEFINED) twitter_card = context.get('twitter_card', UNDEFINED) abs_link = context.get('abs_link', UNDEFINED) comment_system = context.get('comment_system', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) comment_system_id = context.get('comment_system_id', UNDEFINED) favicons = context.get('favicons', UNDEFINED) def html_feedlinks(): return render_html_feedlinks(context) nextlink = context.get('nextlink', UNDEFINED) permalink = context.get('permalink', UNDEFINED) striphtml = context.get('striphtml', UNDEFINED) title = context.get('title', UNDEFINED) __M_writer = context.writer() __M_writer('\n\n\n
\n \n') if description: __M_writer(' \n') __M_writer(' \n