summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/templates/base.html
blob: f2ee98af905e5fd412ae986b969c6f7665a412d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- template base.html -->
<html xmlns="http://www.w3.org/1999/xhtml">
    {% spaceless %}
    <head>
        <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        {% block meta_description %}
        <meta name="description" content="{{settings.APP_DESCRIPTION|escape}}" />
        {% endblock %}
        <meta name="keywords" content="{%block keywords%}{%endblock%},{{settings.APP_KEYWORDS|escape}}" />
        {% if settings.GOOGLE_SITEMAP_CODE %}
        <meta name="google-site-verification" content="{{settings.GOOGLE_SITEMAP_CODE}}" />
        {% endif %}
        <link rel="shortcut icon" href="{{ "/images/favicon.gif"|media }}" />
        <link href="{{"/style/style.css"|media }}" rel="stylesheet" type="text/css" />
        {% if settings.USE_CUSTOM_CSS %}
            <link 
                href="{% url "custom_css" %}?v={{settings.MEDIA_RESOURCE_REVISION}}"
                rel="stylesheet"
                type="text/css"
            />
        {% endif %}
        {% block forestyle %}{% endblock %}
        {% if user_messages %}
        <style type="text/css">
            body { margin-top:2.4em; }
        </style>
        {% endif %}
        {% if settings.USE_CUSTOM_HTML_HEAD %}
            {{ settings.CUSTOM_HTML_HEAD }}
        {% endif %}
        <script type="text/javascript">
            var askbot = {};
            askbot['data'] = {};
            askbot['urls'] = {};
            askbot['settings'] = {};
            askbot['messages'] = {};
        </script>
        {% block forejs %}
        {% endblock %}
        {# avoid adding javascript here so that pages load faster #}
    </head>
    {% endspaceless %}
    <body{% if page_class %} class="{{page_class}}"{% endif %}>
        {% include "blocks/system_messages.html" %}
        {% include "custom_header.html" ignore missing %}
        {% include "blocks/header.html" %}
        <div id="askbot-content">
            {% block body %}
            {% endblock %}
        </div>
        {% if settings.FOOTER_MODE == 'default' %}
            {% include "blocks/footer.html" %}
        {% elif settings.FOOTER_MODE == 'customize' %}
            {{ settings.CUSTOM_FOOTER }}
        {% endif %}
        {% include "custom_footer.html" ignore missing %}
        {% include "blocks/bottom_scripts.html" %}
        {% block endjs %}
        {% endblock %}
    </body>
</html>
<!-- end template base.html -->