# -*- 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 = 1434024007.3898416 _enable_loop = True _template_filename = 'themes/bootstrap3/templates/base_helper.tmpl' _template_uri = 'base_helper.tmpl' _source_encoding = 'utf-8' _exports = ['html_stylesheets', 'html_navigation_links', 'html_translations', 'late_load_js', 'html_feedlinks', 'html_headstart'] 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_stylesheets(context): __M_caller = context.caller_stack._push_frame() try: notes = context.get('notes', 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) has_custom_css = context.get('has_custom_css', 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_navigation_links(context): __M_caller = context.caller_stack._push_frame() try: lang = context.get('lang', UNDEFINED) rel_link = context.get('rel_link', UNDEFINED) isinstance = context.get('isinstance', UNDEFINED) permalink = context.get('permalink', UNDEFINED) navigation_links = context.get('navigation_links', UNDEFINED) tuple = context.get('tuple', 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: lang = context.get('lang', UNDEFINED) messages = context.get('messages', UNDEFINED) _link = context.get('_link', UNDEFINED) translations = context.get('translations', 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() def render_late_load_js(context): __M_caller = context.caller_stack._push_frame() try: use_cdn = context.get('use_cdn', UNDEFINED) colorbox_locales = context.get('colorbox_locales', UNDEFINED) lang = context.get('lang', 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_feedlinks(context): __M_caller = context.caller_stack._push_frame() try: len = context.get('len', UNDEFINED) _link = context.get('_link', UNDEFINED) rss_link = context.get('rss_link', UNDEFINED) generate_rss = context.get('generate_rss', UNDEFINED) translations = context.get('translations', 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_headstart(context): __M_caller = context.caller_stack._push_frame() try: is_rtl = context.get('is_rtl', UNDEFINED) prevlink = context.get('prevlink', UNDEFINED) url_replacer = context.get('url_replacer', UNDEFINED) title = context.get('title', UNDEFINED) abs_link = context.get('abs_link', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) comment_system_id = context.get('comment_system_id', UNDEFINED) blog_title = context.get('blog_title', UNDEFINED) description = context.get('description', UNDEFINED) def html_feedlinks(): return render_html_feedlinks(context) striphtml = context.get('striphtml', UNDEFINED) extra_head_data = context.get('extra_head_data', UNDEFINED) def html_stylesheets(): return render_html_stylesheets(context) lang = context.get('lang', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) comment_system = context.get('comment_system', UNDEFINED) permalink = context.get('permalink', UNDEFINED) mathjax_config = context.get('mathjax_config', UNDEFINED) twitter_card = context.get('twitter_card', UNDEFINED) favicons = context.get('favicons', UNDEFINED) nextlink = context.get('nextlink', 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() """ __M_BEGIN_METADATA {"line_map": {"15": 0, "20": 2, "21": 65, "22": 92, "23": 122, "24": 145, "25": 159, "26": 167, "32": 95, "42": 95, "43": 96, "44": 97, "45": 98, "46": 100, "47": 101, "48": 103, "49": 104, "50": 105, "51": 106, "52": 107, "53": 109, "54": 113, "55": 114, "56": 117, "57": 118, "58": 118, "59": 118, "60": 119, "61": 120, "62": 120, "63": 120, "69": 124, "79": 124, "80": 125, "81": 126, "82": 127, "83": 127, "84": 127, "85": 129, "86": 130, "87": 131, "88": 131, "89": 131, "90": 131, "91": 131, "92": 132, "93": 133, "94": 133, "95": 133, "96": 133, "97": 133, "98": 136, "99": 137, "100": 138, "101": 139, "102": 139, "103": 139, "104": 139, "105": 139, "106": 140, "107": 141, "108": 141, "109": 141, "110": 141, "111": 141, "117": 161, "125": 161, "126": 162, "127": 163, "128": 164, "129": 164, "130": 164, "131": 164, "132": 164, "133": 164, "134": 164, "140": 67, "149": 67, "150": 68, "151": 69, "152": 70, "153": 73, "154": 74, "155": 76, "156": 77, "157": 78, "158": 80, "159": 81, "160": 86, "161": 88, "162": 89, "163": 89, "164": 89, "165": 91, "166": 91, "167": 91, "173": 147, "182": 147, "183": 148, "184": 149, "185": 149, "186": 149, "187": 150, "188": 151, "189": 152, "190": 153, "191": 153, "192": 153, "193": 153, "194": 153, "195": 155, "196": 156, "197": 156, "198": 156, "204": 3, "231": 3, "232": 7, "233": 8, "234": 9, "235": 10, "236": 12, "237": 13, "238": 15, "239": 16, "240": 18, "241": 21, "242": 22, "243": 25, "244": 25, "245": 25, "246": 28, "247": 29, "248": 29, "249": 29, "250": 31, "251": 32, "252": 32, "253": 32, "254": 32, "255": 34, "256": 34, "257": 35, "258": 35, "259": 36, "260": 37, "261": 37, "262": 37, "263": 39, "264": 40, "265": 41, "266": 42, "267": 42, "268": 42, "269": 42, "270": 42, "271": 42, "272": 42, "273": 45, "274": 46, "275": 47, "276": 47, "277": 47, "278": 49, "279": 50, "280": 51, "281": 51, "282": 51, "283": 53, "284": 54, "285": 54, "286": 54, "287": 56, "288": 57, "289": 57, "290": 58, "291": 59, "292": 60, "293": 61, "294": 61, "295": 61, "296": 63, "297": 64, "298": 64, "304": 298}, "filename": "themes/bootstrap3/templates/base_helper.tmpl", "uri": "base_helper.tmpl", "source_encoding": "utf-8"} __M_END_METADATA """