# -*- 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 = 1434049206.9699633 _enable_loop = True _template_filename = 'themes/bootstrap3/templates/base_helper.tmpl' _template_uri = 'base_helper.tmpl' _source_encoding = 'utf-8' _exports = ['late_load_js', 'html_headstart', 'html_navigation_links', 'html_stylesheets', 'html_feedlinks', '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_late_load_js(context): __M_caller = context.caller_stack._push_frame() try: colorbox_locales = context.get('colorbox_locales', UNDEFINED) lang = context.get('lang', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) use_bundles = context.get('use_bundles', UNDEFINED) social_buttons_code = context.get('social_buttons_code', 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_headstart(context): __M_caller = context.caller_stack._push_frame() try: lang = context.get('lang', UNDEFINED) nextlink = context.get('nextlink', UNDEFINED) title = context.get('title', UNDEFINED) permalink = context.get('permalink', UNDEFINED) def html_feedlinks(): return render_html_feedlinks(context) twitter_card = context.get('twitter_card', UNDEFINED) abs_link = context.get('abs_link', UNDEFINED) prevlink = context.get('prevlink', UNDEFINED) def html_stylesheets(): return render_html_stylesheets(context) comment_system = context.get('comment_system', UNDEFINED) blog_title = context.get('blog_title', UNDEFINED) url_replacer = context.get('url_replacer', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) extra_head_data = context.get('extra_head_data', UNDEFINED) favicons = context.get('favicons', UNDEFINED) is_rtl = context.get('is_rtl', UNDEFINED) striphtml = context.get('striphtml', UNDEFINED) mathjax_config = context.get('mathjax_config', UNDEFINED) description = context.get('description', UNDEFINED) comment_system_id = context.get('comment_system_id', UNDEFINED) use_cdn = context.get('use_cdn', 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_navigation_links(context): __M_caller = context.caller_stack._push_frame() try: lang = context.get('lang', UNDEFINED) tuple = context.get('tuple', UNDEFINED) permalink = context.get('permalink', UNDEFINED) isinstance = context.get('isinstance', UNDEFINED) navigation_links = context.get('navigation_links', 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_stylesheets(context): __M_caller = context.caller_stack._push_frame() try: notes = context.get('notes', UNDEFINED) has_custom_css = context.get('has_custom_css', UNDEFINED) post = context.get('post', UNDEFINED) use_bundles = context.get('use_bundles', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) annotations = context.get('annotations', 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_feedlinks(context): __M_caller = context.caller_stack._push_frame() try: rss_link = context.get('rss_link', UNDEFINED) generate_rss = context.get('generate_rss', UNDEFINED) translations = context.get('translations', UNDEFINED) _link = context.get('_link', 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_html_translations(context): __M_caller = context.caller_stack._push_frame() try: _link = context.get('_link', UNDEFINED) messages = context.get('messages', UNDEFINED) translations = context.get('translations', UNDEFINED) lang = context.get('lang', 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": 67, "41": 67, "42": 68, "43": 69, "44": 70, "45": 73, "46": 74, "47": 76, "48": 77, "49": 78, "50": 80, "51": 81, "52": 86, "53": 88, "54": 89, "55": 89, "56": 89, "57": 91, "58": 91, "59": 91, "65": 3, "92": 3, "93": 7, "94": 8, "95": 9, "96": 10, "97": 12, "98": 13, "99": 15, "100": 16, "101": 18, "102": 21, "103": 22, "104": 25, "105": 25, "106": 25, "107": 28, "108": 29, "109": 29, "110": 29, "111": 31, "112": 32, "113": 32, "114": 32, "115": 32, "116": 34, "117": 34, "118": 35, "119": 35, "120": 36, "121": 37, "122": 37, "123": 37, "124": 39, "125": 40, "126": 41, "127": 42, "128": 42, "129": 42, "130": 42, "131": 42, "132": 42, "133": 42, "134": 45, "135": 46, "136": 47, "137": 47, "138": 47, "139": 49, "140": 50, "141": 51, "142": 51, "143": 51, "144": 53, "145": 54, "146": 54, "147": 54, "148": 56, "149": 57, "150": 57, "151": 58, "152": 59, "153": 60, "154": 61, "155": 61, "156": 61, "157": 63, "158": 64, "159": 64, "165": 124, "175": 124, "176": 125, "177": 126, "178": 127, "179": 127, "180": 127, "181": 129, "182": 130, "183": 131, "184": 131, "185": 131, "186": 131, "187": 131, "188": 132, "189": 133, "190": 133, "191": 133, "192": 133, "193": 133, "194": 136, "195": 137, "196": 138, "197": 139, "198": 139, "199": 139, "200": 139, "201": 139, "202": 140, "203": 141, "204": 141, "205": 141, "206": 141, "207": 141, "213": 95, "223": 95, "224": 96, "225": 97, "226": 98, "227": 100, "228": 101, "229": 103, "230": 104, "231": 105, "232": 106, "233": 107, "234": 109, "235": 113, "236": 114, "237": 117, "238": 118, "239": 118, "240": 118, "241": 119, "242": 120, "243": 120, "244": 120, "250": 147, "259": 147, "260": 148, "261": 149, "262": 149, "263": 149, "264": 150, "265": 151, "266": 152, "267": 153, "268": 153, "269": 153, "270": 153, "271": 153, "272": 155, "273": 156, "274": 156, "275": 156, "281": 161, "289": 161, "290": 162, "291": 163, "292": 164, "293": 164, "294": 164, "295": 164, "296": 164, "297": 164, "298": 164, "304": 298}, "uri": "base_helper.tmpl", "filename": "themes/bootstrap3/templates/base_helper.tmpl", "source_encoding": "utf-8"} __M_END_METADATA """