changeset 2400:7ee586313dd7

adds snippets for basic theme
author sharky93 <rishabhr123@gmail.com>
date Sun, 18 Aug 2013 15:28:36 +0530
parents 4112a46ce81d
children e09b57853979
files MoinMoin/themes/basic/templates/snippets.html
diffstat 1 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/basic/templates/snippets.html	Sun Aug 18 15:28:36 2013 +0530
@@ -0,0 +1,39 @@
+{# Logo in the header #}
+{% macro logo() -%}
+<img src="{{ url_for('static', filename='logos/moinmoin.png') }}" id="moin-img-logo" alt="Logo">
+{%- endmacro %}
+
+
+{# Helper macro to create image links #}
+{% macro creditlogo(link, logo, alt, title) %}
+<a class="navbar-brand" href="{{ link }}" title="{{ title }}"><img src="{{ logo }}" alt="{{ alt }}" /></a>
+{% endmacro %}
+
+
+{# Image links in the footer #}
+{% macro creditlogos(start=''|safe, end=''|safe, sep=''|safe) %}
+{{ start }}
+{{ creditlogo('http://moinmo.in/', url_for('static', filename='logos/moinmoin-small.png'),
+   'MoinMoin powered', 'This site uses the MoinMoin Wiki software.') }}
+{{ end }}
+{% endmacro %}
+
+
+{# Helper macro to generate text links #}
+{% macro credit(link, text, title) -%}
+<a href="{{ link }}" title="{{ title }}">{{ text }}</a>
+{%- endmacro %}
+
+
+{# Text links in the footer #}
+{% macro credits(start='<p class="navbar-text pull-right">'|safe, end='</p>'|safe, sep='<span>&bull;</span>'|safe) %}
+{{ start }}
+{{ credit('http://moinmo.in/', 'MoinMoin Powered', 'This site uses the MoinMoin Wiki software.') }}
+{{ sep }}
+{{ credit('http://moinmo.in/Python', 'Python Powered', 'MoinMoin is written in Python.') }}
+{{ sep }}
+{{ credit('http://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 %}
\ No newline at end of file