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