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