# -*- 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 = 1434020407.3391924 _enable_loop = True _template_filename = 'themes/bootstrap3/templates/base_helper.tmpl' _template_uri = 'base_helper.tmpl' _source_encoding = 'utf-8' _exports = ['html_headstart', 'html_feedlinks', 'html_stylesheets', 'late_load_js', '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_headstart(context): __M_caller = context.caller_stack._push_frame() try: abs_link = context.get('abs_link', UNDEFINED) permalink = context.get('permalink', UNDEFINED) lang = context.get('lang', UNDEFINED) is_rtl = context.get('is_rtl', UNDEFINED) def html_feedlinks(): return render_html_feedlinks(context) mathjax_config = context.get('mathjax_config', UNDEFINED) title = context.get('title', UNDEFINED) def html_stylesheets(): return render_html_stylesheets(context) nextlink = context.get('nextlink', UNDEFINED) twitter_card = context.get('twitter_card', UNDEFINED) description = context.get('description', UNDEFINED) extra_head_data = context.get('extra_head_data', UNDEFINED) striphtml = context.get('striphtml', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) blog_title = context.get('blog_title', UNDEFINED) favicons = context.get('favicons', UNDEFINED) comment_system_id = context.get('comment_system_id', UNDEFINED) url_replacer = context.get('url_replacer', UNDEFINED) prevlink = context.get('prevlink', UNDEFINED) comment_system = context.get('comment_system', UNDEFINED) __M_writer = context.writer() __M_writer('\n\n\n \n \n') if description: __M_writer(' \n') __M_writer(' \n ') __M_writer(striphtml(str(title))) __M_writer(' | ') __M_writer(striphtml(str(blog_title))) __M_writer('\n\n ') __M_writer(str(html_stylesheets())) __M_writer('\n ') __M_writer(str(html_feedlinks())) __M_writer('\n') if permalink: __M_writer(' \n') __M_writer('\n') if favicons: for name, file, size in favicons: __M_writer(' \n') __M_writer('\n') if comment_system == 'facebook': __M_writer(' \n') __M_writer('\n') if prevlink: __M_writer(' \n') if nextlink: __M_writer(' \n') __M_writer('\n ') __M_writer(str(mathjax_config)) __M_writer('\n') if use_cdn: __M_writer(' \n') else: __M_writer(' \n') __M_writer('\n ') __M_writer(str(extra_head_data)) __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) len = context.get('len', UNDEFINED) generate_rss = context.get('generate_rss', UNDEFINED) translations = context.get('translations', UNDEFINED) _link = context.get('_link', 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_html_stylesheets(context): __M_caller = context.caller_stack._push_frame() try: notes = context.get('notes', UNDEFINED) annotations = context.get('annotations', UNDEFINED) has_custom_css = context.get('has_custom_css', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) use_bundles = context.get('use_bundles', UNDEFINED) post = context.get('post', 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_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) use_cdn = context.get('use_cdn', UNDEFINED) lang = context.get('lang', 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_navigation_links(context): __M_caller = context.caller_stack._push_frame() try: isinstance = context.get('isinstance', UNDEFINED) permalink = context.get('permalink', UNDEFINED) lang = context.get('lang', UNDEFINED) navigation_links = context.get('navigation_links', UNDEFINED) tuple = context.get('tuple', UNDEFINED) rel_link = context.get('rel_link', UNDEFINED) __M_writer = context.writer() __M_writer('\n') for url, text in navigation_links[lang]: if isinstance(url, tuple): __M_writer('
  • ') __M_writer(str(text)) __M_writer('\n') else: __M_writer('
  • ') __M_writer(str(text)) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render_html_translations(context): __M_caller = context.caller_stack._push_frame() try: messages = context.get('messages', UNDEFINED) lang = context.get('lang', UNDEFINED) translations = context.get('translations', UNDEFINED) _link = context.get('_link', UNDEFINED) __M_writer = context.writer() __M_writer('\n') for langname in translations.keys(): if langname != lang: __M_writer('
  • ') __M_writer(str(messages("LANGUAGE", langname))) __M_writer('
  • \n') return '' finally: context.caller_stack._pop_frame() """ __M_BEGIN_METADATA {"line_map": {"15": 0, "20": 2, "21": 65, "22": 92, "23": 122, "24": 145, "25": 159, "26": 167, "32": 3, "59": 3, "60": 7, "61": 8, "62": 9, "63": 10, "64": 12, "65": 13, "66": 15, "67": 16, "68": 18, "69": 21, "70": 22, "71": 25, "72": 25, "73": 25, "74": 28, "75": 29, "76": 29, "77": 29, "78": 31, "79": 32, "80": 32, "81": 32, "82": 32, "83": 34, "84": 34, "85": 35, "86": 35, "87": 36, "88": 37, "89": 37, "90": 37, "91": 39, "92": 40, "93": 41, "94": 42, "95": 42, "96": 42, "97": 42, "98": 42, "99": 42, "100": 42, "101": 45, "102": 46, "103": 47, "104": 47, "105": 47, "106": 49, "107": 50, "108": 51, "109": 51, "110": 51, "111": 53, "112": 54, "113": 54, "114": 54, "115": 56, "116": 57, "117": 57, "118": 58, "119": 59, "120": 60, "121": 61, "122": 61, "123": 61, "124": 63, "125": 64, "126": 64, "132": 147, "141": 147, "142": 148, "143": 149, "144": 149, "145": 149, "146": 150, "147": 151, "148": 152, "149": 153, "150": 153, "151": 153, "152": 153, "153": 153, "154": 155, "155": 156, "156": 156, "157": 156, "163": 95, "173": 95, "174": 96, "175": 97, "176": 98, "177": 100, "178": 101, "179": 103, "180": 104, "181": 105, "182": 106, "183": 107, "184": 109, "185": 113, "186": 114, "187": 117, "188": 118, "189": 118, "190": 118, "191": 119, "192": 120, "193": 120, "194": 120, "200": 67, "209": 67, "210": 68, "211": 69, "212": 70, "213": 73, "214": 74, "215": 76, "216": 77, "217": 78, "218": 80, "219": 81, "220": 86, "221": 88, "222": 89, "223": 89, "224": 89, "225": 91, "226": 91, "227": 91, "233": 124, "243": 124, "244": 125, "245": 126, "246": 127, "247": 127, "248": 127, "249": 129, "250": 130, "251": 131, "252": 131, "253": 131, "254": 131, "255": 131, "256": 132, "257": 133, "258": 133, "259": 133, "260": 133, "261": 133, "262": 136, "263": 137, "264": 138, "265": 139, "266": 139, "267": 139, "268": 139, "269": 139, "270": 140, "271": 141, "272": 141, "273": 141, "274": 141, "275": 141, "281": 161, "289": 161, "290": 162, "291": 163, "292": 164, "293": 164, "294": 164, "295": 164, "296": 164, "297": 164, "298": 164, "304": 298}, "source_encoding": "utf-8", "filename": "themes/bootstrap3/templates/base_helper.tmpl", "uri": "base_helper.tmpl"} __M_END_METADATA """