/
__base.html
139 lines (116 loc) · 6.1 KB
/
__base.html
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{% comment %}
Copyright 2012 - Participatory Culture Foundation
This file is part of Miro Community.
Miro Community is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
Miro Community is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Miro Community. If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}
{% load uploadtemplate_tags i18n daguerre compress %}
{% load url from future %}
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
{% block meta %}
<meta name="description" content="{% if site_settings.about_html|striptags %}{{ site_settings.about_html|striptags }}{% else %}A Video Community for {{ site_settings.site.name }}{% endif %}">
{% if site_settings.logo %}<link rel="image_src" href="{{ settings.MEDIA_URL }}{{ site_settings.logo }}" />{% endif %}
{% endblock meta %}
<title>{% block title %}{{ site_settings.site.name }}{% endblock title %}</title>
{% block styles %}
{#% compress css %#}
<link rel="stylesheet" type="text/css" href="{% get_static_url 'localtv/front/stylesheets/screen.css' bundled %}" media="screen" />
{% if site_settings.css and site_settings.site.tier_info.tier.custom_css %}
<style type="text/css">
{{ site_settings.css|safe }}
</style>
{% endif %}
{% if site_settings.background %}
<style type="text/css">
body {
background: url("{{ site_settings.background.url }}") !important;
}
</style>
{% endif %}
{#% endcompress %#}
{% endblock %}
{% block scripts %}
{#% compress js %#}
<script type="text/javascript">
(function () {
// if a querystring is present in the hash, redirect
// This is due to History.js's strange behavior.
if (window.location.hash.slice(0, 2) == '#?') {
window.location = window.location.hash.slice(1)
}
window.STATIC_URL = "{{ STATIC_URL }}";
}());
</script>
<script src="{% get_static_url 'localtv/front/js/modernizr-2.5.3.min.js' %}"></script>
<script src="{% get_static_url 'localtv/front/js/jquery-1.7.2.min.js' %}"></script>
<script src="{% get_static_url 'localtv/front/js/jquery.cycle.js' %}"></script>
<script src="{% get_static_url 'localtv/front/js/jquery.history.js' %}"></script>
<script src="{% get_static_url 'localtv/front/js/jquery.infinitescroll.js' %}"></script>
<script src="{% get_static_url 'localtv/front/js/bootstrap.tooltip.js' %}"></script>
<script src="{% get_static_url 'localtv/front/js/bootstrap.popover.js' %}"></script>
<script src="{% get_static_url 'localtv/front/js/localtv.dropdown.js' %}"></script>
<script src="{% get_static_url 'localtv/front/js/localtv.tabs.js' %}"></script>
<script src="{% get_static_url 'localtv/front/js/localtv.shrinkydink.js' %}"></script>
<script src="{% get_static_url 'localtv/front/js/localtv.kickoff.js' %}"></script>
{% if GOOGLE_ANALYTICS_UA %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS_UA }}']);
{% if GOOGLE_ANALYTICS_DOMAIN %}
_gaq.push(['_setDomainName', '{{ GOOGLE_ANALYTICS_DOMAIN }}'])
{% endif %}
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{% endif %}
{#% endcompress %#}
{% endblock %}
</head>
<body class="{% block body_classes %}miro_community{% endblock %}">
{% url 'localtv_index' as localtv_index %}
<div id="container">
<header id="header">
<div class="container">
{% block header %}
{% include "localtv/_site_header_small.html" %}
{% endblock %}
</div>
</header>
<div id="main" role="main">
{% block content %}
{% endblock %}
</div>
<footer id="footer">
<div class="container">
{% include "localtv/_site_footer.html" %}
</div>
</footer>
</div>{# /#container #}
{% if "MSIE 6" in request.META.HTTP_USER_AGENT or "MSIE 7" in request.META.HTTP_USER_AGENT %}
{% if not "chromeframe" in request.META.HTTP_USER_AGENT %}
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.2/CFInstall.min.js"></script>
<script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script>
{% endif %}
{% endif %}
</body>
</html>