# -*- 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 = 1433955607.0456564 _enable_loop = True _template_filename = 'themes/bootstrap3/templates/base_helper.tmpl' _template_uri = 'base_helper.tmpl' _source_encoding = 'utf-8' _exports = ['html_translations', 'late_load_js', 'html_feedlinks', 'html_navigation_links', 'html_headstart', 'html_stylesheets'] 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_translations(context): __M_caller = context.caller_stack._push_frame() try: _link = context.get('_link', UNDEFINED) translations = context.get('translations', UNDEFINED) lang = context.get('lang', 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) use_bundles = context.get('use_bundles', UNDEFINED) use_cdn = context.get('use_cdn', 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_feedlinks(context): __M_caller = context.caller_stack._push_frame() try: _link = context.get('_link', UNDEFINED) len = context.get('len', UNDEFINED) translations = context.get('translations', UNDEFINED) rss_link = context.get('rss_link', 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_navigation_links(context): __M_caller = context.caller_stack._push_frame() try: tuple = context.get('tuple', UNDEFINED) lang = context.get('lang', 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) __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_headstart(context): __M_caller = context.caller_stack._push_frame() try: comment_system = context.get('comment_system', UNDEFINED) lang = context.get('lang', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) favicons = context.get('favicons', UNDEFINED) nextlink = context.get('nextlink', UNDEFINED) twitter_card = context.get('twitter_card', UNDEFINED) def html_feedlinks(): return render_html_feedlinks(context) def html_stylesheets(): return render_html_stylesheets(context) blog_title = context.get('blog_title', UNDEFINED) comment_system_id = context.get('comment_system_id', UNDEFINED) mathjax_config = context.get('mathjax_config', UNDEFINED) permalink = context.get('permalink', UNDEFINED) striphtml = context.get('striphtml', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) is_rtl = context.get('is_rtl', UNDEFINED) abs_link = context.get('abs_link', UNDEFINED) description = context.get('description', UNDEFINED) prevlink = context.get('prevlink', UNDEFINED) url_replacer = context.get('url_replacer', UNDEFINED) title = context.get('title', 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_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_cdn = context.get('use_cdn', UNDEFINED) annotations = context.get('annotations', UNDEFINED) use_bundles = context.get('use_bundles', UNDEFINED) post = context.get('post', 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() """ __M_BEGIN_METADATA {"filename": "themes/bootstrap3/templates/base_helper.tmpl", "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": 161, "40": 161, "41": 162, "42": 163, "43": 164, "44": 164, "45": 164, "46": 164, "47": 164, "48": 164, "49": 164, "55": 67, "64": 67, "65": 68, "66": 69, "67": 70, "68": 73, "69": 74, "70": 76, "71": 77, "72": 78, "73": 80, "74": 81, "75": 86, "76": 88, "77": 89, "78": 89, "79": 89, "80": 91, "81": 91, "82": 91, "88": 147, "97": 147, "98": 148, "99": 149, "100": 149, "101": 149, "102": 150, "103": 151, "104": 152, "105": 153, "106": 153, "107": 153, "108": 153, "109": 153, "110": 155, "111": 156, "112": 156, "113": 156, "119": 124, "129": 124, "130": 125, "131": 126, "132": 127, "133": 127, "134": 127, "135": 129, "136": 130, "137": 131, "138": 131, "139": 131, "140": 131, "141": 131, "142": 132, "143": 133, "144": 133, "145": 133, "146": 133, "147": 133, "148": 136, "149": 137, "150": 138, "151": 139, "152": 139, "153": 139, "154": 139, "155": 139, "156": 140, "157": 141, "158": 141, "159": 141, "160": 141, "161": 141, "167": 3, "194": 3, "195": 7, "196": 8, "197": 9, "198": 10, "199": 12, "200": 13, "201": 15, "202": 16, "203": 18, "204": 21, "205": 22, "206": 25, "207": 25, "208": 25, "209": 28, "210": 29, "211": 29, "212": 29, "213": 31, "214": 32, "215": 32, "216": 32, "217": 32, "218": 34, "219": 34, "220": 35, "221": 35, "222": 36, "223": 37, "224": 37, "225": 37, "226": 39, "227": 40, "228": 41, "229": 42, "230": 42, "231": 42, "232": 42, "233": 42, "234": 42, "235": 42, "236": 45, "237": 46, "238": 47, "239": 47, "240": 47, "241": 49, "242": 50, "243": 51, "244": 51, "245": 51, "246": 53, "247": 54, "248": 54, "249": 54, "250": 56, "251": 57, "252": 57, "253": 58, "254": 59, "255": 60, "256": 61, "257": 61, "258": 61, "259": 63, "260": 64, "261": 64, "267": 95, "277": 95, "278": 96, "279": 97, "280": 98, "281": 100, "282": 101, "283": 103, "284": 104, "285": 105, "286": 106, "287": 107, "288": 109, "289": 113, "290": 114, "291": 117, "292": 118, "293": 118, "294": 118, "295": 119, "296": 120, "297": 120, "298": 120, "304": 298}} __M_END_METADATA """