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 ui_registry %}
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 <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" />
21 <style type="text/css">
22 img, div, a { behavior: url({% media "/media/iepngfix/iepngfix.htc" %}) }
25 {% block forestyle %}{% endblock %}
26 <script src="http://www.google.com/jsapi" type="text/javascript"></script>
27 <script type="text/javascript">
28 google.load("jquery", "1.4.2");
29 google.load("jqueryui", "1", {autoload:true});
31 <script type="text/javascript">
33 var i18nLang = '{{settings.LANGUAGE_CODE}}';
34 var scriptUrl = '{{settings.FORCE_SCRIPT_NAME}}/'
35 var osqaSkin = '{{settings.OSQA_SKIN}}';
38 username: '{{ user.username }}',
39 confirm: "{% trans "Are you sure?" %}",
40 yes: "{% trans "Yes" %}",
41 no: "{% trans "No" %}",
42 message: "{% trans "Message:" %}",
43 cancel: "{% trans "Cancel" %}",
44 close: "{% trans "Close" %}",
45 ok: "{% trans "Ok" %}",
46 matching_tags_url: "{% url matching_tags %}",
47 word: "{% trans "word" %}",
48 words: "{% trans "words" %}",
49 character: "{% trans "character" %}",
50 characters: "{% trans "characters" %}"
54 <script type='text/javascript' src='{% media "/media/js/osqa.main.js" %}'></script>
55 <script type='text/javascript' src='{% media "/media/js/jquery.copy.js" %}'></script>
56 {% if user_messages %}
57 <style type="text/css">
58 body { margin-top:2.4em; }
60 <script type="text/javascript">
61 $(document).ready(function() {
62 var element = $('#validate_email_alert');
63 element.click(function(){notify.close(true);})
68 {% if settings.USE_CUSTOM_HEAD|or_preview:request %}
69 {{ settings.CUSTOM_HEAD|or_preview:request|safe }}
71 {% block forejs %}{% endblock %}
72 <link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch %}" title="{{ settings.APP_SHORT_NAME }} Search" />
73 {% loadregistry head_content %}{% endloadregistry %}
76 <div class="notify" style="display:none">
78 {% if user_messages %}
79 {% for message in user_messages %}
80 <p class="darkred">{{ message }}</p>
84 <a id="close-notify" onclick="notify.close(true)">×</a>
86 {% if settings.USE_CUSTOM_HEADER|or_preview:request %}
87 <div id="custom_header">
88 {{ settings.CUSTOM_HEADER|or_preview:request|static_content:settings.CUSTOM_HEADER_RENDER_MODE }}
91 {% include "header.html" %}
92 {% block page_center %}
100 <div id="tail" style="clear:both;">
105 <div class="spacer3"></div>
108 {% if settings.USE_CUSTOM_FOOTER|or_preview:request %}
109 {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "above" %}
110 <div id="custom_footer">
111 {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
115 {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "replace" %}
116 {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
118 {% include "footer.html" %}
121 {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "below" %}
122 <div id="custom_footer">
123 {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
128 {% include "footer.html" %}
133 {% if settings.GOOGLE_ANALYTICS_KEY %}
134 <script type="text/javascript">
135 var _gaq = _gaq || [];
136 _gaq.push(['_setAccount', '{{ settings.GOOGLE_ANALYTICS_KEY }}']);
137 _gaq.push(['_trackPageview']);
140 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
141 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
142 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
148 <!-- end template base_content.html -->