# -*- 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 = 1434139207.3345287 _enable_loop = True _template_filename = 'themes/bootstrap3/templates/base_helper.tmpl' _template_uri = 'base_helper.tmpl' _source_encoding = 'utf-8' _exports = ['html_headstart', 'html_translations', 'html_feedlinks', 'html_stylesheets', 'html_navigation_links', 'late_load_js'] 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: mathjax_config = context.get('mathjax_config', UNDEFINED) def html_stylesheets(): return render_html_stylesheets(context) lang = context.get('lang', UNDEFINED) description = context.get('description', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) permalink = context.get('permalink', UNDEFINED) striphtml = context.get('striphtml', 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) is_rtl = context.get('is_rtl', UNDEFINED) favicons = context.get('favicons', UNDEFINED) prevlink = context.get('prevlink', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) comment_system_id = context.get('comment_system_id', UNDEFINED) nextlink = context.get('nextlink', UNDEFINED) title = context.get('title', UNDEFINED) def html_feedlinks(): return render_html_feedlinks(context) url_replacer = context.get('url_replacer', UNDEFINED) blog_title = context.get('blog_title', 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_translations(context): __M_caller = context.caller_stack._push_frame() try: messages = context.get('messages', UNDEFINED) translations = context.get('translations', UNDEFINED) _link = context.get('_link', 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_feedlinks(context): __M_caller = context.caller_stack._push_frame() try: translations = context.get('translations', UNDEFINED) generate_rss = context.get('generate_rss', UNDEFINED) rss_link = context.get('rss_link', UNDEFINED) len = context.get('len', 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: 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_navigation_links(context): __M_caller = context.caller_stack._push_frame() try: isinstance = context.get('isinstance', UNDEFINED) tuple = context.get('tuple', UNDEFINED) navigation_links = context.get('navigation_links', UNDEFINED) lang = context.get('lang', UNDEFINED) rel_link = context.get('rel_link', UNDEFINED) permalink = context.get('permalink', 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_late_load_js(context): __M_caller = context.caller_stack._push_frame() try: colorbox_locales = context.get('colorbox_locales', UNDEFINED) use_bundles = context.get('use_bundles', UNDEFINED) social_buttons_code = context.get('social_buttons_code', 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() """ __M_BEGIN_METADATA {"source_encoding": "utf-8", "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": 161, "140": 161, "141": 162, "142": 163, "143": 164, "144": 164, "145": 164, "146": 164, "147": 164, "148": 164, "149": 164, "155": 147, "164": 147, "165": 148, "166": 149, "167": 149, "168": 149, "169": 150, "170": 151, "171": 152, "172": 153, "173": 153, "174": 153, "175": 153, "176": 153, "177": 155, "178": 156, "179": 156, "180": 156, "186": 95, "196": 95, "197": 96, "198": 97, "199": 98, "200": 100, "201": 101, "202": 103, "203": 104, "204": 105, "205": 106, "206": 107, "207": 109, "208": 113, "209": 114, "210": 117, "211": 118, "212": 118, "213": 118, "214": 119, "215": 120, "216": 120, "217": 120, "223": 124, "233": 124, "234": 125, "235": 126, "236": 127, "237": 127, "238": 127, "239": 129, "240": 130, "241": 131, "242": 131, "243": 131, "244": 131, "245": 131, "246": 132, "247": 133, "248": 133, "249": 133, "250": 133, "251": 133, "252": 136, "253": 137, "254": 138, "255": 139, "256": 139, "257": 139, "258": 139, "259": 139, "260": 140, "261": 141, "262": 141, "263": 141, "264": 141, "265": 141, "271": 67, "280": 67, "281": 68, "282": 69, "283": 70, "284": 73, "285": 74, "286": 76, "287": 77, "288": 78, "289": 80, "290": 81, "291": 86, "292": 88, "293": 89, "294": 89, "295": 89, "296": 91, "297": 91, "298": 91, "304": 298}, "filename": "themes/bootstrap3/templates/base_helper.tmpl", "uri": "base_helper.tmpl"} __M_END_METADATA """