/
base.html
139 lines (112 loc) · 4.61 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
<!DOCTYPE html>
{% load pages_tags mezzanine_tags i18n future %}
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<meta name="keywords" content="{% block meta_keywords %}{% endblock %}">
<meta name="description" content="{% block meta_description %}{% endblock %}">
<title>{% block full_meta_title %}{% block meta_title %}{% endblock %}{% if settings.SITE_TITLE %} | {{ settings.SITE_TITLE }}{% endif %}{% endblock %}</title>
<link rel="shortcut icon" type="image/x-icon" href="{{ STATIC_URL }}img/favicon.ico">
<link rel="icon" type="image/x-icon" href="{{ STATIC_URL }}img/favicon.ico">
{% ifinstalled mezzanine.blog %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{% url "blog_post_feed" "rss" %}">
<link rel="alternate" type="application/atom+xml" title="Atom" href="{% url "blog_post_feed" "atom" %}">
{% endifinstalled %}
{% compress css %}
<link rel="stylesheet" href="{{ STATIC_URL }}css/bootstrap.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/bootstrap.responsive.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/mezzanine.css">
{% ifinstalled cartridge.shop %}
<link rel="stylesheet" href="{{ STATIC_URL }}css/cartridge.css">
{% endifinstalled %}
<link rel="stylesheet" href="{{ STATIC_URL }}css/theme.css">
{% block extra_css %}{% endblock %}
{% endcompress %}
{% compress js %}
<script src="{{ STATIC_URL }}mezzanine/js/{{ settings.JQUERY_FILENAME }}"></script>
<script src="{{ STATIC_URL }}js/bootstrap.min.js"></script>
<script>
$(function() {
$('.middleinput:text, textarea').addClass('xlarge');
$('.control-group label').addClass('control-label');
});
</script>
{% block extra_js %}{% endblock %}
{% endcompress %}
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
{% block extra_head %}{% endblock %}
</head>
<body id="{% block body_id %}body{% endblock %}">
<div id="wrapper" class="container">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<div id="header" class="container">
<div class="row">
<div id="site-info" class="col-md-6">
<div id="site-logo"><a href="/"><img src="{{ STATIC_URL }}img/logo.png" /></a></div>
<div id="site-titles">
{% if settings.SITE_TITLE %}<div id="site-title"><a href="/">{{ settings.SITE_TITLE }}</a></div>{% endif %}
{% if settings.SITE_TAGLINE %}<div id="site-tagline">{{ settings.SITE_TAGLINE }}</div>{% endif %}
</div>
</div>
<div id="navigation" class="col-md-6">
{% page_menu "pages/menus/dropdown.html" %}
</div>
</div>
</div>
<div id="main" class="container">
{% nevercache %}
{% for message in messages %}
<div class="alert alert-{{ message.tags }}" data-alert="alert">
<a class="close" href="#" onclick="$(this).parent().fadeOut('fast'); return false;">×</a>{{ message }}
</div>
{% endfor %}
{% endnevercache %}
{% block full %}
<div class="row">
<div class="col-md-9 middle">
<ul class="breadcrumb-custom">
{% spaceless %}
{% block breadcrumb_menu %}{% page_menu "pages/menus/breadcrumb.html" %}{% endblock %}
{% endspaceless %}
</ul>
<h1>{% block title %}{% endblock %}</h1>
{% block main %}{% endblock %}
</div>
<div class="col-md-3 right">
<div class="panel">
{% block right_panel %}
{% ifinstalled mezzanine.twitter %}
{% include "twitter/tweets.html" %}
{% endifinstalled %}
{% endblock %}
</div>
</div>
</div><!-- /row -->
{% endblock %}
</div><!-- /container #main -->
<div id="footer-line" class="container">
<div class="row">
<div class="col-md-6">
{% include "includes/footer_text.html" %}
</div>
<div id="footer-powered" class="col-md-6">
{% include "includes/footer_powered.html" %}
<a onclick="scrollToTop();return false;" href="#"><i class="icon-arrow-up"></i></a>
</div>
</div>
</div>
<div id="footer" class="container">
{% page_menu "pages/menus/footer.html" %}
</div>
</div>
</div>
{% include "includes/footer_scripts.html" %}
<div class="col-md-2"></div>
</div>
</body>
</html>