Make some menus reponsive, some work on book boxes.
[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="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
9         <meta name="application-name" content="Wolne Lektury" />
10         <meta property="og:site_name" content="Wolne Lektury" />
11         <meta property="og:title" content="{% block ogtitle %}{% endblock %}" />
12         <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
13         <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.png{% endblock %}" />
14         <meta name="description" 
15             content="{% block metadescription %}Darmowe opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
16         {% block ogextra %}{% endblock %}
17         
18
19         <title>{% block title %}{% trans "Wolne Lektury" %} :: 
20             {% block titleextra %}{% endblock %}{% endblock %}</title>
21         <link rel="icon" href="{% static 'img/favicon.png' %}" type="image/png" />
22         <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury" 
23             href="{% static 'opensearch.xml' %}" />
24         {% compressed_css "main" %}
25         <!--[if IE]>
26                 {% compressed_css "ie" %}
27         <![endif]-->
28
29         {% block extrahead %}
30         {% endblock %}
31     </head>
32     <body id="{% block bodyid %}base{% endblock %}">
33
34         {% block bodycontent %}
35         <div id="header-wrapper">
36         <header id="main">
37             <a href="/" id="logo">
38                 <img src="{% static 'img/logo-neon.png' %}"
39                     alt="Wolne Lektury" />
40             </a>
41
42             <p id="user-info">
43                 {% if user.is_authenticated %}
44                     {% trans "Welcome" %}, 
45                     <span class="hidden-box-wrapper">
46                         <a href="{% url 'user_settings' %}" class="hidden-box-trigger">
47                             <strong>{{ user.username }}</strong>
48                         </a>
49                         <span id="user-menu" class="hidden-box">
50                             <a href="{% url 'account_set_password' %}">{% trans "Password" %}</a><br/>
51                             <a href="{% url 'account_email' %}">{% trans "E-mail" %}</a><br/>
52                             <a href="{% url 'socialaccount_connections' %}">{% trans "Social accounts" %}</a><br/>
53                         </span>
54                     </span>
55                     | <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
56                     {% if user.is_staff %}
57                     | <a href="/admin/">{% trans "Administration" %}</a>
58                     {% endif %}
59                     | <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
60                 {% else %}
61                     <a href="{% url 'login' %}?next={{ request.path }}"
62                         id="login" class="ajaxable">
63                             {% trans "Sign in" %}</a>
64                     /
65                     <a href="{% url 'register' %}?next={{ request.path }}"
66                         id="register" class="ajaxable">
67                             {% trans "Register" %}</a>
68                 {% endif %}
69             </p>
70
71             <p id="tagline">
72                 {% cache 60 tagline LANGUAGE_CODE %}
73                     {% url 'book_list' as b %}
74                     {% url 'infopage' 'prawa' as r %}
75                         {% count_books book_count %}
76                     {% blocktrans count book_count as c %}
77                     <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
78                     {% plural %}
79                     <a href='{{b}}'>{{c}}</a> free readings you have <a href='{{r}}'>right to</a>
80                     {% endblocktrans %}
81                 {% endcache %}
82             </p>
83
84             <form id="search-area" action="{% url 'search' %}">
85                 <div id="search-field">
86                     <label for="search">{{search_form.q.label}}</label>
87                         {{search_form.q}}
88                 </div><button type='submit'>{% trans "Search" %}</button>
89             </form>
90
91         </header>
92         </div>
93
94
95         <nav id="nav-line">
96             {% catalogue_menu %}
97
98             <div id="lang-menu" class="hoverget">
99                 <span id='lang-button' class='hoverclick'>
100                     <span class="lang-flag">⚐</span>
101                     <span class="label">{% trans "Language versions" %}</span>
102                 </span>
103                 <div id="lang-menu-items">
104                 {% for lang in LANGUAGES %}
105                     <form action="{% url 'django.views.i18n.set_language' %}" method="post">
106                     {% csrf_token %}
107                     <input type="hidden" name="language" value="{{ lang.0 }}" />
108                     <button type="submit"
109                         lang="{{ lang.0 }}"
110                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}"
111                         >{{ lang.1 }}</button>
112                     </form>
113                 {% endfor %}
114                 </div>
115             </div>
116
117             <div class="clearboth"></div>
118         </nav>
119
120
121         <div id="main-content">
122             {% block body %}
123             {% endblock %}
124             <div class="clearboth"></div>
125         </div>
126
127
128         <div id="footer-wrapper">
129         <footer id="main">
130             <p>
131                 {% blocktrans %}
132                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
133                                 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.
134                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
135                                 {% endblocktrans %}
136             </p>
137             <p>
138                 {% blocktrans %}
139                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
140                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
141                                 {% endblocktrans %}
142             </p>
143             <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>
144
145             {% block add_footer %}{% endblock %}
146
147                         {% sponsor_page "footer" %}
148         </footer>
149         </div>
150
151
152
153         {# template #}
154         <div id="ajaxable-window" class='dialog-window'>
155             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
156             <div class="target">
157                 <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
158             </div>
159         </div>
160
161
162         {% endblock bodycontent %}
163
164
165         <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
166         <script type="text/javascript">
167             var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
168             var STATIC_URL = "{{ STATIC_URL }}";
169         </script>
170         {% compressed_js "base" %}
171
172         {{ piwik_tag|safe }}
173
174                 {% block extrabody %}
175                 {% endblock %}
176
177         <script src="{% static "js/modernizr.custom.19652.js" %}"></script>
178     </body>
179 </html>