]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/base_content.html
OSQA-533, fixed some W3C validation errors: closing <img /> tags, removed some unnece...
[osqa.git] / forum / skins / default / templates / base_content.html
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">
5     <head>
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 }}" />
13         {% endif %}
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" />
18         {% endif %}
19         <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" />
20         {% block forestyle %}{% endblock %}
21         <script src="http://www.google.com/jsapi" type="text/javascript"></script>
22         <script type="text/javascript">
23             google.load("jquery", "1.4.2");
24             google.load("jqueryui", "1", {autoload:true});
25         </script>
26         <script type="text/javascript">
27         /* <![CDATA[ */
28             var i18nLang = '{{settings.LANGUAGE_CODE}}';
29             var scriptUrl = '{{settings.FORCE_SCRIPT_NAME}}/'
30             var osqaSkin = '{{settings.OSQA_SKIN}}';
31
32             var messages = {
33                 username: '{{ user.username }}',
34                 confirm: "{% trans "Are you sure?" %}",
35                 yes: "{% trans "Yes" %}",
36                 no: "{% trans "No" %}",
37                 message: "{% trans "Message:" %}",
38                 cancel: "{% trans "Cancel" %}",
39                 close: "{% trans "Close" %}",
40                 ok: "{% trans "Ok" %}",
41                 matching_tags_url: "{% url matching_tags %}",
42                 word: "{% trans "word" %}",
43                 words: "{% trans "words" %}",
44                 character: "{% trans "character" %}",
45                 characters: "{% trans "characters" %}"
46             }
47         /* ]]> */
48         </script>
49         <script type='text/javascript' src='{% media  "/media/js/osqa.main.js" %}'></script>
50         <script type='text/javascript' src='{% media  "/media/js/jquery.copy.js" %}'></script>
51         {% if user_messages %}
52         <style type="text/css">
53             body { margin-top:2.4em; }
54         </style>
55         <script type="text/javascript">
56             $(document).ready(function() {
57                 var element = $('#validate_email_alert');
58                 element.click(function(){notify.close(true);})
59                 notify.show();
60             });
61         </script>
62         {% endif %}
63         {% if settings.USE_CUSTOM_HEAD|or_preview:request %}
64             {{ settings.CUSTOM_HEAD|or_preview:request|safe }}
65         {% endif %}
66         {% block forejs %}{% endblock %}
67         <link rel="search" type="application/opensearchdescription+xml" href="{% url opensearch %}" title="{{ settings.APP_SHORT_NAME }} Search" />
68         {% loadregistry head_content %}{% endloadregistry %}
69     </head>
70     <body>
71         <div class="notify" style="display:none">
72             {% autoescape off %}
73                 {% if user_messages %}
74                     {% for message in user_messages %}
75                           <p class="darkred">{{ message }}</p>
76                     {% endfor %}
77                 {% endif %}
78             {% endautoescape %}
79             <a id="close-notify" onclick="notify.close(true)">&#215;</a>
80         </div>
81         {% if settings.USE_CUSTOM_HEADER|or_preview:request %}
82             <div id="custom_header">
83                 {{ settings.CUSTOM_HEADER|or_preview:request|static_content:settings.CUSTOM_HEADER_RENDER_MODE }}
84             </div>
85         {% endif %}
86         {% include "header.html" %}
87         {% block page_center %}
88         <div id="wrapper">
89             <div id="room">
90                 <div id="CAFull">
91                     {% block content%}
92                     {% endblock%}
93
94                 </div>
95                 <div id="tail" style="clear:both;">
96                     {% block tail %}
97                     {% endblock %}
98                 </div>
99             </div>
100             <div class="spacer3"></div>
101         </div>
102         {% endblock %}
103         {% if settings.USE_CUSTOM_FOOTER|or_preview:request %}
104             {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "above" %}
105                 <div id="custom_footer">
106                     {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
107                 </div>
108             {% endifequal %}
109             <div id="ground">
110                 {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "replace" %}
111                     {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
112                 {% else %}
113                     {% include "footer.html" %}
114                 {% endifequal %}
115             </div>
116             {% ifequal settings.CUSTOM_FOOTER_MODE|or_preview:request "below" %}
117                 <div id="custom_footer">
118                     {{ settings.CUSTOM_FOOTER|or_preview:request|static_content:settings.CUSTOM_FOOTER_RENDER_MODE }}
119                 </div>
120             {% endifequal %}
121         {% else %}
122             <div id="ground">
123                 {% include "footer.html" %}
124             </div>
125         {% endif %}
126         {% block endjs %}
127         {% endblock %}
128         {% if settings.GOOGLE_ANALYTICS_KEY %}
129             <script type="text/javascript">
130                 var _gaq = _gaq || [];
131                 _gaq.push(['_setAccount', '{{ settings.GOOGLE_ANALYTICS_KEY }}']);
132                 _gaq.push(['_trackPageview']);
133
134                 (function() {
135                     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
136                     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
137                     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
138                 })();
139             </script>
140         {% endif %}
141     </body>
142 </html>
143 <!-- end template base_content.html -->