Support for 'deed.pl' license URL.
[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 funding_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
36         {% block bodycontent %}
37                 <div id="header-bg"></div>
38
39         <div id="header">
40
41         <div id="header-content">
42             <div id="logo">
43                 <a class="logo" href="/">
44                 <img id="logo-image" src="{% static "img/logo-neon.png" %}"
45                     alt="Wolne Lektury" /></a>
46             </div>
47
48             <div id="tagline">
49                 <span>
50                 {% cache 60 tagline LANGUAGE_CODE %}
51                     {% url 'book_list' as b %}
52                     {% url 'infopage' 'prawa' as r %}
53                         {% count_books book_count %}
54                     {% blocktrans count book_count as c %}
55                     <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
56                     {% plural %}
57                     <a href='{{b}}'>{{c}}</a> free readings you have <a href='{{r}}'>right to</a>
58                     {% endblocktrans %}
59                 {% endcache %}
60                 </span>
61             </div>
62
63             <p id="user-info" class="mono">
64                 {% if user.is_authenticated %}
65                     {% trans "Welcome" %}, 
66                         <span class="hidden-box-wrapper">
67                                 <a href="{% url 'user_settings' %}" class="hidden-box-trigger">
68                                         <strong>{{ user.username }}</strong>
69                                 </a>
70                                 <span id="user-menu" class="hidden-box">
71                                         <a href="{% url 'account_set_password' %}">{% trans "Password" %}</a><br/>
72                                         <a href="{% url 'account_email' %}">{% trans "E-mail" %}</a><br/>
73                                         <a href="{% url 'socialaccount_connections' %}">{% trans "Social accounts" %}</a><br/>
74                                 </span>
75                         </span>
76                     | <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
77                     {% if user.is_staff %}
78                     | <a href="/admin/">{% trans "Administration" %}</a>
79                     {% endif %}
80                     | <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
81                 {% else %}
82                     <a href="{% url 'login' %}?next={{ request.path }}"
83                         id="login" class="ajaxable">
84                             {% trans "Sign in" %}</a>
85                     /
86                     <a href="{% url 'register' %}?next={{ request.path }}"
87                         id="register" class="ajaxable">
88                             {% trans "Register" %}</a>
89                 {% endif %}
90             </p>
91
92
93             <div class="clearboth"></div>
94
95         </div>
96         </div>
97
98         <div id="half-header">
99         <div id="half-header-content">
100
101
102
103             <form id="search-area" action="{% url 'search' %}" class="hidelabels">
104                 
105                 <div id="search-field" class="grid-line">
106                         <label for="search">{{search_form.q.label}}</label>
107                   {{search_form.q}}
108 <!--                    <input title="np. Leśmian" name="q" autocomplete="off" data-source="/fullsearch/hint/">-->
109                 </div><div id="search-button">
110                     <button type='submit'><span class="mono">{% trans "Search" %}</span></button>
111                 </div>
112                 
113                 <div class="clearboth"></div>
114             </form>
115
116
117
118         </div>
119         </div>
120
121
122         <div id="main-content">
123             
124             <div id="nav-line">
125                 {% catalogue_menu %}
126
127             <div id="lang-menu" class="hoverget">
128                 <span id='lang-button' class='mono hoverclick'>
129                     <span class="lang-flag">⚐</span>
130                     {% trans "Language versions" %}</span>
131                 <div id="lang-menu-items">
132                 {% for lang in LANGUAGES %}
133                     <form action="{% url 'django.views.i18n.set_language' %}" method="post">
134                     {% csrf_token %}
135                     <input type="hidden" name="language" value="{{ lang.0 }}" />
136                     <button type="submit"
137                         lang="{{ lang.0 }}"
138                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} mono"
139                         >{{ lang.1 }}</button>
140                     </form>
141                 {% endfor %}
142                 </div>
143             </div>
144             </div>
145
146             <div class="clearboth"></div>
147
148
149
150             {% block body %}
151             {% endblock %}
152
153
154
155
156         <div class="clearboth"></div>
157
158         </div>{# end main-content #}
159
160
161         <div id="footer">
162         <div id="footer-content">
163             <p>
164                 {% blocktrans %}
165                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
166                                 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.
167                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
168                                 {% endblocktrans %}
169             </p>
170             <p>
171                 {% blocktrans %}
172                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
173                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
174                                 {% endblocktrans %}
175             </p>
176             <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>
177
178             {% block add_footer %}{% endblock %}
179
180                         {% sponsor_page "footer" %}
181         </div>
182         </div>
183
184
185
186         {# template #}
187         <div id="ajaxable-window" class='dialog-window'>
188             <div class="header mono"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
189             <div class="target">
190                 <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
191             </div>
192         </div>
193
194
195         {% endblock bodycontent %}
196
197
198         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
199         <script type="text/javascript">
200             var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
201             var STATIC_URL = "{{ STATIC_URL }}";
202         </script>
203         {% compressed_js "base" %}
204
205         {{ piwik_tag|safe }}
206
207                 {% block extrabody %}
208                 {% endblock %}
209
210         <script src="{% static "js/modernizr.custom.19652.js" %}"></script>
211     </body>
212 </html>