# -*- 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 = 1433934007.8397036 _enable_loop = True _template_filename = 'themes/bootstrap3/templates/base_helper.tmpl' _template_uri = 'base_helper.tmpl' _source_encoding = 'utf-8' _exports = ['html_translations', 'html_stylesheets', 'late_load_js', 'html_headstart', 'html_navigation_links', '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_translations(context): __M_caller = context.caller_stack._push_frame() try: messages = context.get('messages', UNDEFINED) _link = context.get('_link', UNDEFINED) lang = context.get('lang', 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_html_stylesheets(context): __M_caller = context.caller_stack._push_frame() try: post = context.get('post', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) annotations = context.get('annotations', UNDEFINED) notes = context.get('notes', UNDEFINED) has_custom_css = context.get('has_custom_css', 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_late_load_js(context): __M_caller = context.caller_stack._push_frame() try: colorbox_locales = context.get('colorbox_locales', UNDEFINED) use_cdn = context.get('use_cdn', UNDEFINED) social_buttons_code = context.get('social_buttons_code', UNDEFINED) lang = context.get('lang', 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 \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: blog_title = context.get('blog_title', UNDEFINED) favicons = context.get('favicons', UNDEFINED) mathjax_config = context.get('mathjax_config', UNDEFINED) comment_system = context.get('comment_system', UNDEFINED) def html_feedlinks(): return render_html_feedlinks(context) use_cdn = context.get('use_cdn', UNDEFINED) twitter_card = context.get('twitter_card', UNDEFINED) description = context.get('description', UNDEFINED) is_rtl = context.get('is_rtl', UNDEFINED) striphtml = context.get('striphtml', UNDEFINED) use_open_graph = context.get('use_open_graph', UNDEFINED) def html_stylesheets(): return render_html_stylesheets(context) comment_system_id = context.get('comment_system_id', UNDEFINED) title = context.get('title', UNDEFINED) nextlink = context.get('nextlink', UNDEFINED) extra_head_data = context.get('extra_head_data', UNDEFINED) lang = context.get('lang', UNDEFINED) prevlink = context.get('prevlink', UNDEFINED) permalink = context.get('permalink', UNDEFINED) abs_link = context.get('abs_link', UNDEFINED) url_replacer = context.get('url_replacer', 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_navigation_links(context): __M_caller = context.caller_stack._push_frame() try: isinstance = context.get('isinstance', UNDEFINED) lang = context.get('lang', UNDEFINED) navigation_links = context.get('navigation_links', UNDEFINED) rel_link = context.get('rel_link', UNDEFINED) tuple = context.get('tuple', 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_html_feedlinks(context): __M_caller = context.caller_stack._push_frame() try: _link = context.get('_link', UNDEFINED) len = context.get('len', 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() """ __M_BEGIN_METADATA {"filename": "themes/bootstrap3/templates/base_helper.tmpl", "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": 95, "65": 95, "66": 96, "67": 97, "68": 98, "69": 100, "70": 101, "71": 103, "72": 104, "73": 105, "74": 106, "75": 107, "76": 109, "77": 113, "78": 114, "79": 117, "80": 118, "81": 118, "82": 118, "83": 119, "84": 120, "85": 120, "86": 120, "92": 67, "101": 67, "102": 68, "103": 69, "104": 70, "105": 73, "106": 74, "107": 76, "108": 77, "109": 78, "110": 80, "111": 81, "112": 86, "113": 88, "114": 89, "115": 89, "116": 89, "117": 91, "118": 91, "119": 91, "125": 3, "152": 3, "153": 7, "154": 8, "155": 9, "156": 10, "157": 12, "158": 13, "159": 15, "160": 16, "161": 18, "162": 21, "163": 22, "164": 25, "165": 25, "166": 25, "167": 28, "168": 29, "169": 29, "170": 29, "171": 31, "172": 32, "173": 32, "174": 32, "175": 32, "176": 34, "177": 34, "178": 35, "179": 35, "180": 36, "181": 37, "182": 37, "183": 37, "184": 39, "185": 40, "186": 41, "187": 42, "188": 42, "189": 42, "190": 42, "191": 42, "192": 42, "193": 42, "194": 45, "195": 46, "196": 47, "197": 47, "198": 47, "199": 49, "200": 50, "201": 51, "202": 51, "203": 51, "204": 53, "205": 54, "206": 54, "207": 54, "208": 56, "209": 57, "210": 57, "211": 58, "212": 59, "213": 60, "214": 61, "215": 61, "216": 61, "217": 63, "218": 64, "219": 64, "225": 124, "235": 124, "236": 125, "237": 126, "238": 127, "239": 127, "240": 127, "241": 129, "242": 130, "243": 131, "244": 131, "245": 131, "246": 131, "247": 131, "248": 132, "249": 133, "250": 133, "251": 133, "252": 133, "253": 133, "254": 136, "255": 137, "256": 138, "257": 139, "258": 139, "259": 139, "260": 139, "261": 139, "262": 140, "263": 141, "264": 141, "265": 141, "266": 141, "267": 141, "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"} __M_END_METADATA """