index indictor
[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 class="logo" href="/"><img src="{% block logo_url %}{{ STATIC_URL }}img/logo-bez.png{% endblock %}" alt="WolneLektury.pl" />
32                 <br/>szkolna biblioteka internetowa</a>
33                 {% block tagline %}{% endblock %}
34             </div>
35             <div id="user-info" style="display:none">
36                 {% if user.is_authenticated %}
37                     <p>
38                         {% trans "Welcome" %}, <strong>{{ user.username }}</strong>
39                         | <a href="{% url user_shelves %}" id="user-shelves-link">{% trans "Your shelves" %}</a>
40                         {% if user.is_staff %}
41                         | <a href="/admin/">{% trans "Administration" %}</a>
42                         {% endif %}
43                                                 | <a href="{% url suggest %}" id="suggest-link">{% trans "Report a bug" %}</a>
44                         | <a href="{% url logout %}?next={{ request.get_full_path }}">{% trans "Logout" %}</a>
45                     </p>
46                 {% else %}
47                     <p><a href="{% url suggest %}" id="suggest-link">{% trans "Report a bug" %}</a>
48                         | <a href="{% url login %}" class="login-register-link">{% trans "Sign in" %} / {% trans "Register" %}</a></p>
49                 {% endif %}
50             </div>
51             <div class="social-links" style="float:right">
52                 <a href="http://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268"><img src="{{ STATIC_URL }}img/social/facebook.png" alt="WolneLektury @ Facebook" /></a>
53                 <a href="http://nk.pl/profile/30441509"><img src="{{ STATIC_URL }}img/social/naszaklasa.png" alt="WolneLektury @ NK" /></a>
54             </div>
55                                 <form action="{% url django.views.i18n.set_language %}" method="post">
56             <div class="lang-menu" style="float:right;">
57                                         {% spaceless %}
58                                         {% for lang in LANGUAGES %}                                          
59                                             <button type="submit" name="language" title="{{ lang.1 }}"
60                                                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} {% if forloop.last %}last{% endif %}" 
61                                                         value="{{ lang.0 }}">{{ lang.0|upper }}</button>
62                                         {% endfor %}    
63                                         {% endspaceless %}                              
64                         </div>
65                 </form>
66             {# publication plan consultations - form link #}
67             <div style="clear:right;float:right" class="big-top-link">
68                 <a href="{% url suggest_publishing %}" data-ajax="{% url suggest_publishing %}?ajax=1" id="suggest-publishing-link">
69                     {% trans "Didn't find a book? Make a suggestion." %}
70                 </a>
71             </div>
72             <div class="clearboth"></div>
73         </div>
74         <div id="maincontent">
75             {% block body %}
76             {% endblock %}
77         </div>
78         <div class="clearboth"></div>
79         <div id="footer">
80             <p>
81                 {% blocktrans %}
82                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
83                                 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.
84                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
85                                 {% endblocktrans %}
86             </p>
87             <p>
88                 {% blocktrans %}
89                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
90                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
91                                 {% endblocktrans %}
92             </p>
93
94             {% block add_footer %}{% endblock %}
95
96                         {% sponsor_page "footer" %}
97         </div>
98         <div id="login-register-window">
99             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
100             <div class="target">
101                 <form method="post" action="{% url login %}" id="login-form" class="cuteform">
102                     <h2>{% trans "Sign in" %} / <a href="#" id="show-registration-form" style="font-size: 0.85em; font-weight: normal">{% trans "Register" %}</a></h2>
103                     <p><span id="id_login-__all__"></span></p>
104                     <ol>
105                         {% authentication_form %}
106                         <li><input type="submit" value="{% trans "Sign in" %}" /></li>
107                     </ol>
108                 </form>
109                 <form method="post" action="{% url register %}" id="registration-form" class="cuteform" style="display: none;">
110                     <h2><a href="#" id="show-login-form" style="font-size: 0.85em; font-weight: normal">{% trans "Sign in" %}</a> / {% trans "Register" %}</h2>
111                     <p><span id="id_registration-__all__"></span></p>
112                     <ol>
113                         {% user_creation_form %}
114                         <li><input type="submit" value="{% trans "Register" %}" /></li>
115                     </ol>
116                 </form>
117             </div>
118         </div>
119         <div id="user-shelves-window">
120             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
121             <div class="target">
122                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
123             </div>
124         </div>
125         <div id="suggest-window">
126             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
127             <div class="target">
128                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
129             </div>
130         </div>
131         <div id="suggest-publishing-window">
132             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
133             <div class="target">
134                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
135             </div>
136         </div>
137         {% endblock bodycontent %}
138         {{ piwik_tag|safe }}
139         <script type="text/javascript">
140         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
141         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
142         </script>
143         <script type="text/javascript">
144         var pageTracker = _gat._getTracker("UA-2576694-1");
145         pageTracker._trackPageview();
146         </script>
147     </body>
148 </html>