{# Wiki Administrators should use a copy of this template to customize a wiki. See https://moin-20.readthedocs.org/en/latest/admin/configure.html#using-a-custom-snippets-html-template #} {% import theme("utils.html") as utils with context %} {# Logo in the theme header #} {% macro logo() -%} {%- endmacro %} {# link to favicon inside #} {% macro favicon() -%} {# default moin favicon #} {# for custom favicon, uncomment line below and place favicon file in wiki_local #} {# #} {%- endmacro %} {# Additional HTML tags inside #} {% macro head() -%} {# #} {%- endmacro %} {# Additional HTML before #moin-header #} {% macro before_header() -%} {#

This is before moin-header.

#} {%- endmacro %} {# Additional HTML after #moin-header #} {% macro after_header() -%} {%- endmacro %} {# Additional HTML before #moin-footer #} {% macro before_footer() -%} {%- endmacro %} {# Additional HTML after #moin-footer #} {% macro after_footer() -%} {%- endmacro %} {# License information in the footer #} {% macro license_info() -%} {#

Copyright © 2014 my.org, contents licensed under ...

#} {%- endmacro %} {# Helper macro to create image links #} {% macro creditlogo(link, logo, alt, title) %} {{ alt }} {% endmacro %} {# Image links in the footer #} {% macro creditlogos(start=''|safe, end=''|safe) %} {{ start }} {{ creditlogo('https://moinmo.in/', url_for('static', filename='logos/moinmoin_powered.png'), 'MoinMoin powered', _('This site uses the MoinMoin Wiki software.')) }} {{ creditlogo('https://moinmo.in/Python', url_for('static', filename='logos/python_powered.png'), 'Python powered', _('MoinMoin is written in Python.')) }} {{ end }} {% endmacro %} {# Helper macro to generate text links #} {% macro credit(link, text, title) -%} {{ text }} {%- endmacro %} {# Text links in the footer #} {% macro credits(start='

'|safe, end='

'|safe, sep=''|safe) %} {{ start }} {{ credit('https://moinmo.in/', 'MoinMoin Powered', _('This site uses the MoinMoin Wiki software.')) }} {{ sep }} {{ credit('https://moinmo.in/Python', 'Python Powered', _('MoinMoin is written in Python.')) }} {{ sep }} {{ credit('https://moinmo.in/GPL', 'GPL licensed', 'MoinMoin is GPL licensed.') }} {{ sep }} {{ credit('http://validator.w3.org/check?uri=referer', 'Valid HTML 5', 'Click here to validate this page.') }} {{ end }} {% endmacro %} {% macro footer_meta() %} {% if rev %}

{% if cfg.show_interwiki %} {{ cfg.interwikiname }}: {% endif %} {{ item_name }} (rev {{ rev.meta['rev_number'] }}), {{ _("modified") }} {{ rev.meta['mtime']|time_datetime }} {{ _("by") }} {{ utils.editor_info(rev.meta) }} {% if rev.meta['tags'] %} , {{ _("tags:") }} {% for tag in rev.meta['tags'] -%} {{ tag }}{% if not loop.last %}, {% endif %} {%- endfor -%} {%- endif -%}.

{% endif %} {% endmacro %} {# Additional Stylesheets (after theme css, before user css #} {% macro stylesheets() -%} {# #} {%- endmacro %} {# Additional Javascript #} {% macro scripts() -%} {# #} {%- endmacro %} {# Header/Sidebar for topside_cms theme - see docs for tips on customization #} {% macro cms_header() %}
{% block header %} {% if logo() %} {%- endif %} {% if cfg.sitename %} {{ cfg.sitename }}
{%- endif %} {% if request.user_agent and search_form %} {# request.user_agent is true if browser, false if run as ./m dump-html #} {{ utils.header_search(search_form) }} {% endif %} {% if request.user_agent %} {# request.user_agent is true if browser, false if run as ./m dump-html #} {%- endif %} {{ custom_panels() }} {% endblock %}

{% endmacro %} {# Custom panel for wiki's that want links to key pages in header or sidebar; not all themes support this #} {% macro custom_panels() %} {#- remove start-comment, end-comment marker lines; then customize the following: -#} {% endmacro %}