95220b6b612ba6f136edd35e33938207780ccf23
[wolnelektury.git] / apps / wolnelektury_core / templates / superbase.html
1 <!DOCTYPE html>
2 <html lang="{{ LANGUAGE_CODE }}" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
3         {% load cache compressed i18n %}
4         {% load static from staticfiles %}
5     {% load catalogue_tags reporting_stats sponsor_tags %}
6     <head>
7         <meta charset="utf-8">
8         <meta name="application-name" content="Wolne Lektury" />
9         <meta property="og:site_name" content="Wolne Lektury" />
10         <meta property="og:title" content="{% block ogtitle %}{% endblock %}" />
11         <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
12         <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.png{% endblock %}" />
13         <meta name="description" 
14             content="{% block metadescription %}Darmowe opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
15         {% block ogextra %}{% endblock %}
16         
17
18         <title>{% block title %}{% trans "Wolne Lektury" %} :: 
19             {% block titleextra %}{% endblock %}{% endblock %}</title>
20         <link rel="icon" href="{% static "img/favicon.png" %}" type="image/png" />
21         <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury" 
22             href="{% static "opensearch.xml" %}" />
23         {% compressed_css "all" %}
24         <link href="{% static "css/core.css" %}" rel="stylesheet" type="text/css" media="screen" />
25         <link href="{% static "css/antiscreen.css" %}" rel="stylesheet" type="text/css" media="screen and (max-width: 480px)" />
26         {#% compressed_css "handheld" %#}
27         <!--[if IE]>
28                 {% compressed_css "ie" %}
29         <![endif]-->
30
31         {% block extrahead %}
32         {% endblock %}
33     </head>
34     <body id="{% block bodyid %}base{% endblock %}">
35         {% include "annoy.html" %}
36
37         {% block bodycontent %}
38
39                 <div id="header-bg"></div>
40
41         <div id="header">
42
43         <div id="header-content">
44             <div id="logo">
45                 <a class="logo" href="/">
46                 <img id="logo-image" src="{% static "img/logo-neon.png" %}"
47                     alt="Wolne Lektury" /></a>
48             </div>
49
50             <div id="tagline">
51                 <span>
52                 {% cache 60 tagline LANGUAGE_CODE %}
53                     {% url book_list as b %}
54                     {% url infopage 'prawa' as r %}
55                         {% count_books book_count %}
56                     {% blocktrans count book_count as c %}
57                     <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
58                     {% plural %}
59                     <a href='{{b}}'>{{c}}</a> free readings you have <a href='{{r}}'>right to</a>
60                     {% endblocktrans %}
61                 {% endcache %}
62                 </span>
63             </div>
64
65             <p id="user-info" class="mono">
66                 {% if user.is_authenticated %}
67                     {% trans "Welcome" %}, 
68                         <span class="hidden-box-wrapper">
69                                 <a href="{% url user_settings %}" class="hidden-box-trigger">
70                                         <strong>{{ user.username }}</strong>
71                                 </a>
72                                 <span id="user-menu" class="hidden-box">
73                                         <a href="{% url account_set_password %}">{% trans "Password" %}</a><br/>
74                                         <a href="{% url account_email %}">{% trans "E-mail" %}</a><br/>
75                                         <a href="{% url socialaccount_connections %}">{% trans "Social accounts" %}</a><br/>
76                                 </span>
77                         </span>
78                     | <a href="{% url social_my_shelf %}" id="user-shelves-link">{% trans "My shelf" %}</a>
79                     {% if user.is_staff %}
80                     | <a href="/admin/">{% trans "Administration" %}</a>
81                     {% endif %}
82                     | <a href="{% url logout %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
83                 {% else %}
84                     <a href="{% url login %}?next={{ request.path }}"
85                         id="login" class="ajaxable">
86                             {% trans "Sign in" %}</a>
87                     /
88                     <a href="{% url register %}?next={{ request.path }}"
89                         id="register" class="ajaxable">
90                             {% trans "Register" %}</a>
91                 {% endif %}
92             </p>
93
94
95             <div class="clearboth"></div>
96
97         </div>
98         </div>
99
100         <div id="half-header">
101         <div id="half-header-content">
102
103
104
105             <form id="search-area" action="{% url search %}" class="hidelabels">
106                 
107                 <div id="search-field" class="grid-line">
108                         <label for="search">{{search_form.q.label}}</label>
109                   {{search_form.q}}
110 <!--                    <input title="np. Leśmian" name="q" autocomplete="off" data-source="/fullsearch/hint/">-->
111                 </div><div id="search-button">
112                     <button type='submit'><span class="mono">{% trans "Search" %}</span></button>
113                 </div>
114                 
115                 <div class="clearboth"></div>
116             </form>
117
118
119
120         </div>
121         </div>
122
123
124
125         <div id="main-content">
126
127             <div id="nav-line">
128                 {% catalogue_menu %}
129
130             <div id="lang-menu" class="hoverget">
131                 <span id='lang-button' class='mono hoverclick'>
132                     <span class="lang-flag">⚐</span>
133                     {% trans "Language versions" %}</span>
134                 <div id="lang-menu-items">
135                 {% for lang in LANGUAGES %}
136                     <form action="{% url django.views.i18n.set_language %}" method="post">
137                     {% csrf_token %}
138                     <input type="hidden" name="language" value="{{ lang.0 }}" />
139                     <button type="submit"
140                         lang="{{ lang.0 }}"
141                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} mono"
142                         >{{ lang.1 }}</button>
143                     </form>
144                 {% endfor %}
145                 </div>
146             </div>
147             </div>
148
149             <div class="clearboth"></div>
150
151
152
153             {% block body %}
154             {% endblock %}
155
156
157
158
159         <div class="clearboth"></div>
160
161         </div>{# end main-content #}
162
163
164         <div id="footer">
165         <div id="footer-content">
166             <p>
167                 {% blocktrans %}
168                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
169                                 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.
170                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
171                                 {% endblocktrans %}
172             </p>
173             <p>
174                 {% blocktrans %}
175                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
176                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
177                                 {% endblocktrans %}
178             </p>
179             <p>Nowa strona biblioteki Wolne Lektury powstała dzięki środkom otrzymanym w ramach Programu Operacyjnego Fundusz Inicjatyw Obywatelskich, Senatu RP (zadanie realizowane w ramach zlecania przez Kancelarię Senatu zadań w zakresie opieki nad Polonią i Polakami za granicą w 2011 r.) oraz Narodowego Instytutu Audiowizualnego w ramach programu Dziedzictwo Cyfrowe.</p>
180
181             {% block add_footer %}{% endblock %}
182
183                         {% sponsor_page "footer" %}
184         </div>
185         </div>
186
187
188
189         {# template #}
190         <div id="ajaxable-window" class='dialog-window'>
191             <div class="header mono"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
192             <div class="target">
193                 <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
194             </div>
195         </div>
196
197
198         {% endblock bodycontent %}
199
200
201         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
202         <script type="text/javascript">
203             var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
204             var STATIC_URL = "{{ STATIC_URL }}";
205         </script>
206         {% compressed_js "base" %}
207
208         {{ piwik_tag|safe }}
209         <script type="text/javascript">
210         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
211         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
212         </script>
213         <script type="text/javascript">
214         var pageTracker = _gat._getTracker("UA-2576694-1");
215         pageTracker._trackPageview();
216         </script>
217
218                 {% block extrabody %}
219                 {% endblock %}
220
221         <script src="{% static "js/modernizr.custom.19652.js" %}"></script>
222     </body>
223 </html>