]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - templates/base.html
Make posted comments give a better message
[sommitrealweird.git] / templates / base.html
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4     <head>
5         <title>{% block title %}{{ title }}{% endblock %}</title>
6         <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}style/main.css" />
7         {% block extrahead %}{% endblock %}
8     </head>
9     <body>
10         <div id="page">
11             <div id="headerbar">
12                 <div id="websitetitle">
13                     <h1>SommitRealWeird</h1>
14                 </div>
15                 <div id="menu">
16                     {% block menu %}
17                     <ul>
18                         <li><a href="/">Home</a></li>
19                         {% for item in content_menu %}
20                         <li><a href="{{ item.url }}">{{ item.title }}</a></li>
21                         {% endfor %}
22                         <li><a href="/photo/">Photos</a></li>
23                         <li><a href="/blog/">Blog</a></li>
24                     </ul>
25                     {% endblock %}
26                 </div>
27             </div>
28             <div id="content">
29                 {% block breadcrumb %}
30                 <div id="breadcrumb">
31                     <p>
32                     {% for item in content_breadcrumb %}
33                         {% if not forloop.last %}
34                         <a href="{{ item.url }}">{{ item.title }}</a> &gt;
35                         {%else %}
36                         {{ item.title }}
37                         {% endif %}
38                     {% endfor %}
39                     </p>
40                 </div>
41                 {% endblock %}
42                 {% block submenu %}
43                     {% if content_submenu %}
44                     <div id="submenu">
45                         <ul>
46                             {% for item in content_submenu %}
47                             <li><a href="{{ item.url }}">{{ item.title }}</a></li>
48                             {% endfor %}
49                         </ul>
50                     </div>
51                     {% endif %}
52                 {% endblock %}
53                 {% block content %}
54                 {{ content }}
55                 {% endblock %}
56             </div>
57             <div id="footer">
58                 <p>Copyright &copy; 2008, 2009, 2010, 2011, 2012 - <a href="mailto:iDunno@sommitrealweird.co.uk">Brett Parker</a></p>
59             </div>
60         </div>
61     </body>
62 </html>