3e3de981654ff7594be236af0ef3f4fd91071ed1
[wolnelektury.git] / wolnelektury / templates / base.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4         {% load i18n chunks compressed catalogue_tags sponsor_tags %}
5     <head>
6         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
7         <meta http-equiv="Content-Style-Type" content="text/css" />
8         <meta name="description" 
9             content="{% block metadescription %}Darmowe opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
10         <title>{% block title %}WolneLektury.pl{% endblock %}</title>
11         <link rel="icon" href="{{ STATIC_URL }}img/favicon.png" type="image/png" />
12         <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury" href="{{ STATIC_URL }}opensearch.xml" />
13         {% compressed_css "all" %}
14         <script type="text/javascript">var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";</script>
15         {% compressed_js "jquery" %}
16         {% compressed_js "all" %}
17         {% block extrahead %}
18         {% endblock %}
19     </head>
20     <body id="{% block bodyid %}base{% endblock %}">
21         <!--[if lt IE 7]><link href={{ STATIC_URL }}infobar/infobar.css rel=stylesheet>
22         <div id=infobar><a href=http://browsehappy.pl/infobar>
23         {% trans "Internet Explorer cannot display this site properly. Click here to read more..." %}
24         </a></div><div id=viewplot><script src={{ STATIC_URL }}infobar/infobar.js></script><![endif]-->
25         {% block bodycontent %}
26         <div id="top-message">
27             {% chunk "top-message" %}
28         </div>
29         <div id="header">
30             <div id="logo">
31                 <a href="/"><img src="{% block logo_url %}{{ STATIC_URL }}img/logo-bez.png{% endblock %}" alt="WolneLektury.pl" /><br/>szkolna biblioteka internetowa</a>
32             </div>
33             <div id="user-info" style="display:none">
34                 {% if user.is_authenticated %}
35                     <p>
36                         {% trans "Welcome" %}, <strong>{{ user.username }}</strong>
37                         | <a href="{% url user_shelves %}" id="user-shelves-link">{% trans "Your shelves" %}</a>
38                         {% if user.is_staff %}
39                         | <a href="/admin/">{% trans "Administration" %}</a>
40                         {% endif %}
41                                                 | <a href="{% url suggest %}" id="suggest-link">{% trans "Report a bug" %}</a>
42                         | <a href="{% url logout %}?next={{ request.get_full_path }}">{% trans "Logout" %}</a>
43                     </p>
44                 {% else %}
45                     <p><a href="{% url suggest %}" id="suggest-link">{% trans "Report a bug" %}</a>
46                         | <a href="{% url login %}" class="login-register-link">{% trans "Sign in" %} / {% trans "Register" %}</a></p>
47                 {% endif %}
48             </div>
49             <div class="social-links" style="float:right">
50                 <a href="http://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268"><img src="{{ STATIC_URL }}img/social/facebook.png" alt="WolneLektury @ Facebook" /></a>
51                 <a href="http://nk.pl/profile/30441509"><img src="{{ STATIC_URL }}img/social/naszaklasa.png" alt="WolneLektury @ NK" /></a>
52             </div>
53                                 <form action="{% url django.views.i18n.set_language %}" method="post">
54             <div class="lang-menu" style="float:right;">
55                                         {% spaceless %}
56                                         {% for lang in LANGUAGES %}                                          
57                                             <button type="submit" name="language" title="{{ lang.1 }}"
58                                                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} {% if forloop.last %}last{% endif %}" 
59                                                         value="{{ lang.0 }}">{{ lang.0|upper }}</button>
60                                         {% endfor %}    
61                                         {% endspaceless %}                              
62                         </div>
63                 </form>
64             {# publication plan consultations - form link #}
65             <div style="clear:right;float:right" class="big-top-link">
66                 <a href="{% url suggest_publishing %}" data-ajax="{% url suggest_publishing %}?ajax=1" id="suggest-publishing-link">
67                     {% trans "Didn't find a book? Make a suggestion." %}
68                 </a>
69             </div>
70             <div class="clearboth"></div>
71         </div>
72         <div id="maincontent">
73             {% block body %}
74             {% endblock %}
75         </div>
76         <div class="clearboth"></div>
77         <div id="footer">
78             <p>
79                 {% blocktrans %}
80                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
81                                 Digital reproductions are made by <a href="http://www.bn.org.pl/">The National Library</a>, <a href="http://www.bs.katowice.pl/">Biblioteka Śląska</a> and <a href="http://www.bibliotekaelblaska.pl/">Biblioteka Elbląska</a>, based on TNL, BŚ and BE resources.
82                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
83                                 {% endblocktrans %}
84             </p>
85             <p>
86                 {% blocktrans %}
87                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
88                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
89                                 {% endblocktrans %}
90             </p>
91
92             {% block add_footer %}{% endblock %}
93
94                         {% sponsor_page "footer" %}
95         </div>
96         <div id="login-register-window">
97             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
98             <div class="target">
99                 <form method="post" action="{% url login %}" id="login-form" class="cuteform">
100                     <h2>{% trans "Sign in" %} / <a href="#" id="show-registration-form" style="font-size: 0.85em; font-weight: normal">{% trans "Register" %}</a></h2>
101                     <p><span id="id_login-__all__"></span></p>
102                     <ol>
103                         {% authentication_form %}
104                         <li><input type="submit" value="{% trans "Sign in" %}" /></li>
105                     </ol>
106                 </form>
107                 <form method="post" action="{% url register %}" id="registration-form" class="cuteform" style="display: none;">
108                     <h2><a href="#" id="show-login-form" style="font-size: 0.85em; font-weight: normal">{% trans "Sign in" %}</a> / {% trans "Register" %}</h2>
109                     <p><span id="id_registration-__all__"></span></p>
110                     <ol>
111                         {% user_creation_form %}
112                         <li><input type="submit" value="{% trans "Register" %}" /></li>
113                     </ol>
114                 </form>
115             </div>
116         </div>
117         <div id="user-shelves-window">
118             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
119             <div class="target">
120                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
121             </div>
122         </div>
123         <div id="suggest-window">
124             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
125             <div class="target">
126                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
127             </div>
128         </div>
129         <div id="suggest-publishing-window">
130             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
131             <div class="target">
132                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
133             </div>
134         </div>
135         {% endblock bodycontent %}
136         {{ piwik_tag|safe }}
137         <script type="text/javascript">
138         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
139         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
140         </script>
141         <script type="text/javascript">
142         var pageTracker = _gat._getTracker("UA-2576694-1");
143         pageTracker._trackPageview();
144         </script>
145     </body>
146 </html>