# -*- 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 = 1434103207.7929707 _enable_loop = True _template_filename = 'themes/bootstrap3/templates/base_helper.tmpl' _template_uri = 'base_helper.tmpl' _source_encoding = 'utf-8' _exports = ['html_stylesheets', 'late_load_js', 'html_navigation_links', 'html_translations', 'html_headstart', 'html_feedlinks'] 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: use_cdn = context.get('use_cdn', UNDEFINED) use_bundles = context.get('use_bundles', UNDEFINED) notes = context.get('notes', UNDEFINED) has_custom_css = context.get('has_custom_css', UNDEFINED) post = context.get('post', 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_late_load_js(context): __M_caller = context.caller_stack._push_frame() try: use_cdn = context.get('use_cdn', UNDEFINED) use_bundles = context.get('use_bundles', UNDEFINED) colorbox_locales = context.get('colorbox_locales', UNDEFINED) lang = context.get('lang', 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_navigation_links(context): __M_caller = context.caller_stack._push_frame() try: rel_link = context.get('rel_link', UNDEFINED) permalink = context.get('permalink', UNDEFINED) isinstance = context.get('isinstance', UNDEFINED) tuple = context.get('tuple', UNDEFINED) lang = context.get('lang', UNDEFINED) navigation_links = context.get('navigation_links', 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: _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() def render_html_headstart(context): __M_caller = context.caller_stack._push_frame() try: description = context.get('description', UNDEFINED) title = context.get('title', UNDEFINED) comment_system = context.get('comment_system', UNDEFINED) comment_system_id = context.get('comment_system_id', UNDEFINED) nextlink = context.get('nextlink', UNDEFINED) url_replacer = context.get('url_replacer', UNDEFINED) is_rtl = context.get('is_rtl', UNDEFINED) striphtml = context.get('striphtml', UNDEFINED) mathjax_config = context.get('mathjax_config', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) lang = context.get('lang', UNDEFINED) def html_stylesheets(): return render_html_stylesheets(context) abs_link = context.get('abs_link', UNDEFINED) twitter_card = context.get('twitter_card', UNDEFINED) prevlink = context.get('prevlink', UNDEFINED) blog_title = context.get('blog_title', UNDEFINED) permalink = context.get('permalink', UNDEFINED) favicons = context.get('favicons', UNDEFINED) def html_feedlinks(): return render_html_feedlinks(context) use_cdn = context.get('use_cdn', UNDEFINED) extra_head_data = context.get('extra_head_data', 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: len = context.get('len', UNDEFINED) _link = context.get('_link', UNDEFINED) rss_link = context.get('rss_link', UNDEFINED) translations = context.get('translations', UNDEFINED) generate_rss = context.get('generate_rss', 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() """ __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": 67, "78": 67, "79": 68, "80": 69, "81": 70, "82": 73, "83": 74, "84": 76, "85": 77, "86": 78, "87": 80, "88": 81, "89": 86, "90": 88, "91": 89, "92": 89, "93": 89, "94": 91, "95": 91, "96": 91, "102": 124, "112": 124, "113": 125, "114": 126, "115": 127, "116": 127, "117": 127, "118": 129, "119": 130, "120": 131, "121": 131, "122": 131, "123": 131, "124": 131, "125": 132, "126": 133, "127": 133, "128": 133, "129": 133, "130": 133, "131": 136, "132": 137, "133": 138, "134": 139, "135": 139, "136": 139, "137": 139, "138": 139, "139": 140, "140": 141, "141": 141, "142": 141, "143": 141, "144": 141, "150": 161, "158": 161, "159": 162, "160": 163, "161": 164, "162": 164, "163": 164, "164": 164, "165": 164, "166": 164, "167": 164, "173": 3, "200": 3, "201": 7, "202": 8, "203": 9, "204": 10, "205": 12, "206": 13, "207": 15, "208": 16, "209": 18, "210": 21, "211": 22, "212": 25, "213": 25, "214": 25, "215": 28, "216": 29, "217": 29, "218": 29, "219": 31, "220": 32, "221": 32, "222": 32, "223": 32, "224": 34, "225": 34, "226": 35, "227": 35, "228": 36, "229": 37, "230": 37, "231": 37, "232": 39, "233": 40, "234": 41, "235": 42, "236": 42, "237": 42, "238": 42, "239": 42, "240": 42, "241": 42, "242": 45, "243": 46, "244": 47, "245": 47, "246": 47, "247": 49, "248": 50, "249": 51, "250": 51, "251": 51, "252": 53, "253": 54, "254": 54, "255": 54, "256": 56, "257": 57, "258": 57, "259": 58, "260": 59, "261": 60, "262": 61, "263": 61, "264": 61, "265": 63, "266": 64, "267": 64, "273": 147, "282": 147, "283": 148, "284": 149, "285": 149, "286": 149, "287": 150, "288": 151, "289": 152, "290": 153, "291": 153, "292": 153, "293": 153, "294": 153, "295": 155, "296": 156, "297": 156, "298": 156, "304": 298}, "source_encoding": "utf-8", "uri": "base_helper.tmpl", "filename": "themes/bootstrap3/templates/base_helper.tmpl"} __M_END_METADATA """