annoy stub for misja ksiazka
[wolnelektury.git] / src / wolnelektury / templates / base / superbase.html
1 <!DOCTYPE html>
2 {% spaceless %}
3   <html lang="{{ LANGUAGE_CODE }}" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
4     {% load pipeline i18n %}
5     {% load static from staticfiles %}
6     {% load catalogue_tags funding_tags reporting_stats %}
7     {% load piwik_tags %}
8     {% load ssi_include ssi_csrf_token from ssify %}
9     {% load user_username user_is_staff from common_tags %}
10     {% load cache %}
11     {% get_current_language as LANGUAGE_CODE %}
12     <head>
13       <meta charset="utf-8">
14       <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
15       <meta name="application-name" content="Wolne Lektury" />
16       <meta property="og:site_name" content="Wolne Lektury" />
17       <meta property="og:title" content="{% block ogtitle %}{{ page_title }}{% endblock %}" />
18       <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
19       <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.jpg{% endblock %}" />
20       <meta name="description" content="{% block metadescription %}Darmowe, opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
21       {% block ogextra %}{% endblock %}
22
23       <title>
24         {% block title %}{% block titleextra %}{{ page_title }}{% endblock %} :: {% trans "Wolne Lektury" %}{% endblock %}
25       </title>
26       <link rel="icon" href="{% static 'img/favicon.png' %}" type="image/png"/>
27       <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury"
28             href="{% static 'opensearch.xml' %}"/>
29       {% stylesheet "main" %}
30       {% block extrahead %}{% endblock %}
31     </head>
32     <body id="{% block bodyid %}base{% endblock %}">
33
34       {% block bodycontent %}
35
36         {% block annoy %}
37           {% include "annoy.html" %}
38         {% endblock %}
39
40         <div id="whole-header">
41           <div id="header-wrapper">
42             <header id="main">
43               <a href="/" id="logo">
44                 <img src="{% static 'img/logo-neon.png' %}" alt="Wolne Lektury"/>
45               </a>
46
47               <p id="tagline">
48                 {% url 'book_list' as b %}
49                 {% url 'infopage' 'prawa' as r %}
50                 {% count_books book_count %}
51                 {% blocktrans count book_count as c %}
52                   <a href='{{ b }}'>{{ c }}</a> free reading you have <a href='{{ r }}'>right to</a>
53                 {% plural %}
54                   <a href='{{ b }}'>{{ c }}</a> free readings you have <a href='{{ r }}'>right to</a>
55                 {% endblocktrans %}
56               </p>
57
58               <div id="lang-menu" class="hoverget">
59                 <span id='lang-button' class='hoverclick'>
60                   <span class="lang-flag">⚐</span>
61                   <span class="label"> {% trans "Language" %}</span>
62                 </span>
63                 <div id="lang-menu-items">
64                   {% for lang in LANGUAGES %}
65                     <form action="{% url 'django.views.i18n.set_language' %}" method="post">
66                       {% ssi_csrf_token %}
67                       <input type="hidden" name="language" value="{{ lang.0 }}"/>
68                       <button type="submit" lang="{{ lang.0 }}"
69                               class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}">{{ lang.1 }}</button>
70                     </form>
71                   {% endfor %}
72                 </div>
73               </div>
74
75               <a id="show-menu"></a>
76               <nav id="menu">
77                 <ul id="user-info">
78                   {% user_username as user_username %}
79                   {% user_is_staff as user_is_staff %}
80                   {{ user_username.if }}
81                     <li>
82                       <a href="{% url 'user_settings' %}">
83                         <strong>{{ user_username }}</strong>
84                       </a>
85                     </li>
86                     <li>
87                       <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
88                     </li>
89                   {{ user_username.endif }}
90                   {{ user_is_staff.if }}
91                     <li><a href="{% url 'admin:index' %}">{% trans "Administration" %}</a></li>
92                   {{ user_is_staff.endif }}
93                   {{ user_username.if }}
94                     <li>
95                       <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
96                     </li>
97                   {{ user_username.else }}
98                     <li>
99                       <a href="{% url 'login' %}?next={{ request.path }}" id="login">{% trans "Sign in" %}</a>
100                       / <a href="{% url 'register' %}?next={{ request.path }}" id="register">{% trans "Register" %}</a>
101                     </li>
102                   {{ user_username.endif }}
103                 </ul>
104
105                 <ul id="main-menu">
106                   <li{% if active_menu_item == 'books' %} class="active"{% endif %}>
107                     <a href="{% url 'book_list' %}">{% trans "Literature" %}</a>
108                   </li>
109                   <li{% if active_menu_item == 'theme' %} class="active"{% endif %}>
110                     <a href="{% url 'theme_catalogue' %}">{% trans "Themes" %}</a>
111                   </li>
112                   <li{% if active_menu_item == 'audiobooks' %} class="active"{% endif %}>
113                     <a href="{% url 'audiobook_list' %}">{% trans "Audiobooks" %}</a>
114                   </li>
115                   <li{% if active_menu_item == 'gallery' %} class="active"{% endif %}>
116                     <a href="{% url 'gallery' %}">{% trans "Gallery" %}</a>
117                   </li>
118                   <li{% if active_menu_item == 'all_works' %} class="active"{% endif %}>
119                     <a href="{% url 'catalogue' %}">{% trans "All works" %}</a>
120                   </li>
121                 </ul>
122               </nav>
123               <form id="search-area" action="{% url 'search' %}">
124                 <div id="search-field">
125                   <label for="search">{{ search_form.q.label }}</label>
126                   {{ search_form.q }}
127                 </div>
128                 <button type='submit'>{% trans "Search" %}</button>
129               </form>
130             </header>
131           </div>
132         </div>
133
134         <div id="main-content">
135           {% comment %}
136           <div id="banners">
137             <a href="https://nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/">
138               <img src="{% static 'img/banners/960x150_wolneLektury.jpg' %}"
139                    alt="Wesprzyj działalność Nowoczesnej Polski"/>
140             </a>
141           </div>
142           {% endcomment %}
143           {% block body %}
144           {% endblock %}
145           <div class="clearboth"></div>
146         </div>
147
148         <div id="footer-wrapper">
149           <footer id="main">
150             {% ssi_include 'chunk' key='footer' %}
151             {% block add_footer %}{% endblock %}
152             {% ssi_include 'sponsor_page' name='footer' %}
153           </footer>
154         </div>
155
156         {# template #}
157         <div id="ajaxable-window" class='dialog-window'>
158           <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
159           <div class="target">
160             <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
161           </div>
162         </div>
163       {% endblock bodycontent %}
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       {% javascript "base" %}
171
172       {% tracking_code %}
173
174       {% block extrabody %}{% endblock %}
175
176       <script src="{% static "js/contrib/modernizr.custom.19652.js" %}"></script>
177     </body>
178   </html>
179 {% endspaceless %}