1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <!-- base_content.html -->
3 {% load i18n extra_tags extra_filters markup %}
4 <html xmlns="http://www.w3.org/1999/xhtml">
6 <title>{% block fulltitle %}{% block title %}{% endblock %} - {{ settings.APP_SHORT_NAME }}{% endblock %}</title>
7 <meta name="description" content="{% block metadescription %}{{ settings.APP_DESCRIPTION }}{% endblock %}">
8 <meta name="keywords" content="{% block metakeywords %}{{ settings.APP_KEYWORDS }}{% endblock %}">
9 {% block meta %}{% endblock %}
10 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11 {% if settings.GOOGLE_SITEMAP_CODE %}
12 <meta name="google-site-verification" content="{{ settings.GOOGLE_SITEMAP_CODE }}" />
14 <link rel="shortcut icon" href="{{ settings.APP_FAVICON }}" />
15 <link href="{% media "/media/style/style.css" %}" rel="stylesheet" type="text/css" />
16 {% if settings.USE_CUSTOM_CSS|or_preview:request %}
17 <link href="{% url custom_css %}" rel="stylesheet" type="text/css" />
19 {% block forestyle %}{% endblock %}
20 <script src="http://www.google.com/jsapi" type="text/javascript"></script>
21 <script type="text/javascript">google.load("jquery", "1.4.2");</script>
22 <script type="text/javascript">
24 var i18nLang = '{{settings.LANGUAGE_CODE}}';
25 var scriptUrl = '/{{settings.FORUM_SCRIPT_ALIAS}}'
26 var osqaSkin = '{{settings.OSQA_SKIN}}';
29 username: '{{ user.username }}',
30 confirm: "{% trans "Are you sure?" %}",
31 yes: "{% trans "Yes" %}",
32 no: "{% trans "No" %}",
33 message: "{% trans "Message:" %}",
34 cancel: "{% trans "Cancel" %}",
35 close: "{% trans "Close" %}",
36 ok: "{% trans "Ok" %}"
40 <script type='text/javascript' src='{% media "/media/js/osqa.main.js" %}'></script>
41 {% if user_messages %}
42 <style type="text/css">
43 body { margin-top:2.4em; }
45 <script type="text/javascript">
46 $(document).ready(function() {
47 var element = $('#validate_email_alert');
48 element.click(function(){notify.close(true);})
53 {% if settings.USE_CUSTOM_HEAD|or_preview:request %}
54 {{ settings.CUSTOM_HEAD|or_preview:request|safe }}
56 {% block forejs %}{% endblock %}
57 <link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch %}" title="{{ settings.APP_SHORT_NAME }} Search" />
60 <div class="notify" style="display:none">
62 {% if user_messages %}
63 {% for message in user_messages %}
64 <p class="darkred">{{ message }}</p>
68 <a id="close-notify" onclick="notify.close(true)">×</a>
70 {% if settings.USE_CUSTOM_HEADER|or_preview:request %}
71 <div id="custom_header">
72 {{ settings.CUSTOM_HEADER|or_preview:request|markdown:"settingsparser" }}
75 {% include "header.html" %}
76 {% block page_center %}
84 <div id="tail" style="clear:both;">
89 <div class="spacer3"></div>
92 {% if settings.USE_CUSTOM_FOOTER|or_preview:request %}
93 {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "above" %}
94 <div id="custom_footer">
95 {{ settings.CUSTOM_FOOTER|or_preview:request|markdown:"settingsparser" }}
99 {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "replace" %}
100 {{ settings.CUSTOM_FOOTER|or_preview:request|markdown:"settingsparser" }}
102 {% include "footer.html" %}
105 {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "below" %}
106 <div id="custom_footer">
107 {{ settings.CUSTOM_FOOTER|or_preview:request|markdown:"settingsparser" }}
112 {% include "footer.html" %}
117 {% if settings.GOOGLE_ANALYTICS_KEY %}
118 <script type="text/javascript">
119 var _gaq = _gaq || [];
120 _gaq.push(['_setAccount', '{{ settings.GOOGLE_ANALYTICS_KEY }}']);
121 _gaq.push(['_trackPageview']);
124 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
125 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
126 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
132 <!-- end template base_content.html -->