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