# -*- 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 = 1433970007.5313492 _enable_loop = True _template_filename = 'themes/bootstrap3/templates/base_helper.tmpl' _template_uri = 'base_helper.tmpl' _source_encoding = 'utf-8' _exports = ['html_feedlinks', 'html_stylesheets', 'html_navigation_links', 'html_translations', 'late_load_js', '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_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() def render_html_stylesheets(context): __M_caller = context.caller_stack._push_frame() try: has_custom_css = context.get('has_custom_css', UNDEFINED) notes = context.get('notes', UNDEFINED) use_bundles = context.get('use_bundles', UNDEFINED) annotations = context.get('annotations', UNDEFINED) post = context.get('post', 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') 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: tuple = context.get('tuple', UNDEFINED) isinstance = context.get('isinstance', UNDEFINED) navigation_links = context.get('navigation_links', UNDEFINED) permalink = context.get('permalink', UNDEFINED) rel_link = context.get('rel_link', UNDEFINED) lang = context.get('lang', 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) _link = context.get('_link', UNDEFINED) translations = context.get('translations', UNDEFINED) messages = context.get('messages', 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: colorbox_locales = context.get('colorbox_locales', UNDEFINED) lang = context.get('lang', UNDEFINED) use_bundles = context.get('use_bundles', UNDEFINED) use_cdn = context.get('use_cdn', 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: def html_stylesheets(): return render_html_stylesheets(context) description = context.get('description', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) comment_system_id = context.get('comment_system_id', UNDEFINED) url_replacer = context.get('url_replacer', UNDEFINED) comment_system = context.get('comment_system', UNDEFINED) striphtml = context.get('striphtml', UNDEFINED) is_rtl = context.get('is_rtl', UNDEFINED) def html_feedlinks(): return render_html_feedlinks(context) prevlink = context.get('prevlink', UNDEFINED) blog_title = context.get('blog_title', UNDEFINED) abs_link = context.get('abs_link', UNDEFINED) mathjax_config = context.get('mathjax_config', UNDEFINED) permalink = context.get('permalink', UNDEFINED) favicons = context.get('favicons', UNDEFINED) twitter_card = context.get('twitter_card', UNDEFINED) nextlink = context.get('nextlink', UNDEFINED) lang = context.get('lang', UNDEFINED) title = context.get('title', UNDEFINED) 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() """ __M_BEGIN_METADATA {"source_encoding": "utf-8", "uri": "base_helper.tmpl", "line_map": {"15": 0, "20": 2, "21": 65, "22": 92, "23": 122, "24": 145, "25": 159, "26": 167, "32": 147, "41": 147, "42": 148, "43": 149, "44": 149, "45": 149, "46": 150, "47": 151, "48": 152, "49": 153, "50": 153, "51": 153, "52": 153, "53": 153, "54": 155, "55": 156, "56": 156, "57": 156, "63": 95, "73": 95, "74": 96, "75": 97, "76": 98, "77": 100, "78": 101, "79": 103, "80": 104, "81": 105, "82": 106, "83": 107, "84": 109, "85": 113, "86": 114, "87": 117, "88": 118, "89": 118, "90": 118, "91": 119, "92": 120, "93": 120, "94": 120, "100": 124, "110": 124, "111": 125, "112": 126, "113": 127, "114": 127, "115": 127, "116": 129, "117": 130, "118": 131, "119": 131, "120": 131, "121": 131, "122": 131, "123": 132, "124": 133, "125": 133, "126": 133, "127": 133, "128": 133, "129": 136, "130": 137, "131": 138, "132": 139, "133": 139, "134": 139, "135": 139, "136": 139, "137": 140, "138": 141, "139": 141, "140": 141, "141": 141, "142": 141, "148": 161, "156": 161, "157": 162, "158": 163, "159": 164, "160": 164, "161": 164, "162": 164, "163": 164, "164": 164, "165": 164, "171": 67, "180": 67, "181": 68, "182": 69, "183": 70, "184": 73, "185": 74, "186": 76, "187": 77, "188": 78, "189": 80, "190": 81, "191": 86, "192": 88, "193": 89, "194": 89, "195": 89, "196": 91, "197": 91, "198": 91, "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"} __M_END_METADATA """