# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1676236796.2348382 _enable_loop = True _template_filename = 'themes/bootstrap3/templates/gallery.tmpl' _template_uri = 'gallery.tmpl' _source_encoding = 'utf-8' _exports = ['sourcelink', 'content', 'extra_head', 'extra_js'] def _mako_get_namespace(context, name): try: return context.namespaces[(__name__, name)] except KeyError: _mako_generate_namespaces(context) return context.namespaces[(__name__, name)] def _mako_generate_namespaces(context): ns = runtime.TemplateNamespace('comments', context._clean_inheritance_tokens(), templateuri='comments_helper.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'comments')] = ns ns = runtime.TemplateNamespace('ui', context._clean_inheritance_tokens(), templateuri='crumbs.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'ui')] = ns def _mako_inherit(template, context): _mako_generate_namespaces(context) return runtime._inherit_from(context, 'base.tmpl', _template_uri) def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) _import_ns = {} _mako_get_namespace(context, 'ui')._populate(_import_ns, ['bar']) def extra_js(): return render_extra_js(context._locals(__M_locals)) photo_array_json = _import_ns.get('photo_array_json', context.get('photo_array_json', UNDEFINED)) thumbnail_size = _import_ns.get('thumbnail_size', context.get('thumbnail_size', UNDEFINED)) enable_comments = _import_ns.get('enable_comments', context.get('enable_comments', UNDEFINED)) gallery_path = _import_ns.get('gallery_path', context.get('gallery_path', UNDEFINED)) comments = _mako_get_namespace(context, 'comments') def extra_head(): return render_extra_head(context._locals(__M_locals)) lang = _import_ns.get('lang', context.get('lang', UNDEFINED)) translations = _import_ns.get('translations', context.get('translations', UNDEFINED)) folders = _import_ns.get('folders', context.get('folders', UNDEFINED)) title = _import_ns.get('title', context.get('title', UNDEFINED)) permalink = _import_ns.get('permalink', context.get('permalink', UNDEFINED)) len = _import_ns.get('len', context.get('len', UNDEFINED)) parent = _import_ns.get('parent', context.get('parent', UNDEFINED)) crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED)) post = _import_ns.get('post', context.get('post', UNDEFINED)) photo_array = _import_ns.get('photo_array', context.get('photo_array', UNDEFINED)) _link = _import_ns.get('_link', context.get('_link', UNDEFINED)) site_has_comments = _import_ns.get('site_has_comments', context.get('site_has_comments', UNDEFINED)) def content(): return render_content(context._locals(__M_locals)) ui = _mako_get_namespace(context, 'ui') def sourcelink(): return render_sourcelink(context._locals(__M_locals)) __M_writer = context.writer() __M_writer('\n') __M_writer('\n') __M_writer('\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'sourcelink'): context['self'].sourcelink(**pageargs) __M_writer('\n\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer('\n\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'extra_head'): context['self'].extra_head(**pageargs) __M_writer('\n\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'extra_js'): context['self'].extra_js(**pageargs) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render_sourcelink(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: _import_ns = {} _mako_get_namespace(context, 'ui')._populate(_import_ns, ['bar']) def sourcelink(): return render_sourcelink(context) __M_writer = context.writer() return '' finally: context.caller_stack._pop_frame() def render_content(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: _import_ns = {} _mako_get_namespace(context, 'ui')._populate(_import_ns, ['bar']) title = _import_ns.get('title', context.get('title', UNDEFINED)) permalink = _import_ns.get('permalink', context.get('permalink', UNDEFINED)) enable_comments = _import_ns.get('enable_comments', context.get('enable_comments', UNDEFINED)) crumbs = _import_ns.get('crumbs', context.get('crumbs', UNDEFINED)) comments = _mako_get_namespace(context, 'comments') post = _import_ns.get('post', context.get('post', UNDEFINED)) photo_array = _import_ns.get('photo_array', context.get('photo_array', UNDEFINED)) site_has_comments = _import_ns.get('site_has_comments', context.get('site_has_comments', UNDEFINED)) def content(): return render_content(context) ui = _mako_get_namespace(context, 'ui') folders = _import_ns.get('folders', context.get('folders', UNDEFINED)) __M_writer = context.writer() __M_writer('\n ') __M_writer(str(ui.bar(crumbs))) __M_writer('\n') if title: __M_writer('
\n ') __M_writer(str(post.text())) __M_writer('\n
\n') if folders: __M_writer('