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