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 %}
9 {% load chunk from chunks %}
10 {% load sponsor_page from sponsors %}
11 {% get_current_language as LANGUAGE_CODE %}
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 %}
24 {% block title %}{% block titleextra %}{{ page_title }}{% endblock %} :: {% trans "Wolne Lektury" %}{% endblock %}
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 <link rel="manifest" href="/manifest.json">
30 {% stylesheet "main" %}
31 {% block extrahead %}{% endblock %}
33 <body id="{% block bodyid %}base{% endblock %}">
35 {% block bodycontent %}
38 {% include "annoy.html" %}
39 {% if not funding_no_show_current %}
40 {% cache 120 funding_top_bar LANGUAGE_CODE %}
46 <div id="whole-header">
47 <div id="header-wrapper">
49 <a href="/" id="logo">
50 <img src="{% static 'img/logo-neon.png' %}" alt="Wolne Lektury"/>
54 {% url 'book_list' as b %}
55 {% url 'infopage' 'prawa' as r %}
56 {% count_books book_count %}
57 {% blocktrans count book_count as c %}
58 <a href='{{ b }}'>{{ c }}</a> free reading you have <a href='{{ r }}'>right to</a>
60 <a href='{{ b }}'>{{ c }}</a> free readings you have <a href='{{ r }}'>right to</a>
64 <div id="lang-menu" class="hoverget">
65 <span id='lang-button' class='hoverclick'>
66 <span class="lang-flag">⚐</span>
67 <span class="label"> {% trans "Language" %}</span>
69 <div id="lang-menu-items">
70 {% for lang in LANGUAGES %}
71 <form action="{% url 'set_language' %}" method="post">
73 <input type="hidden" name="language" value="{{ lang.0 }}"/>
74 <button type="submit" lang="{{ lang.0 }}"
75 class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}">{{ lang.1 }}</button>
81 <a id="show-menu"></a>
84 {% if request.user.is_authenticated %}
86 <a href="{% url 'user_settings' %}">
87 <strong>{{ request.user.username }}</strong>
91 <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
93 {% if request.user.is_staff %}
94 <li><a href="{% url 'admin:index' %}">{% trans "Administration" %}</a></li>
97 <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
101 <a href="{% url 'login' %}?next={{ request.path }}" id="login">{% trans "Sign in" %}</a>
102 / <a href="{% url 'register' %}?next={{ request.path }}" id="register">{% trans "Register" %}</a>
108 <li{% if active_menu_item == 'books' %} class="active"{% endif %}>
109 <a href="{% url 'book_list' %}">{% trans "Literature" %}</a>
111 <li{% if active_menu_item == 'theme' %} class="active"{% endif %}>
112 <a href="{% url 'theme_catalogue' %}">{% trans "Themes" %}</a>
114 <li{% if active_menu_item == 'audiobooks' %} class="active"{% endif %}>
115 <a href="{% url 'audiobook_list' %}">{% trans "Audiobooks" %}</a>
117 <li{% if active_menu_item == 'club' %} class="active"{% endif %}>
118 <a href="{% url 'club_join' %}">{% trans "Wesprzyj nas" %}</a>
120 <li{% if active_menu_item == 'all_works' %} class="active"{% endif %}>
121 <a href="{% url 'catalogue' %}">{% trans "All works" %}</a>
125 <form id="search-area" action="{% url 'wlsearch' %}">
126 <div id="search-field">
127 <label for="search">{{ search_form.q.label }}</label>
130 <button type='submit'>{% trans "Search" %}</button>
136 <div id="main-content">
139 <a href="https://nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/">
140 <img src="{% static 'img/banners/960x150_wolneLektury.jpg' %}"
141 alt="Wesprzyj działalność Nowoczesnej Polski"/>
147 <div class="clearboth"></div>
150 <div id="footer-wrapper">
153 {% block add_footer %}{% endblock %}
154 {% sponsor_page 'footer' %}
159 <div id="ajaxable-window" class='dialog-window'>
160 <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
162 <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
165 {% endblock bodycontent %}
167 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
168 <script type="text/javascript">
169 var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
170 var STATIC_URL = "{{ STATIC_URL }}";
172 {% javascript "base" %}
176 {% block extrabody %}{% endblock %}
178 <script src="{% static "js/contrib/modernizr.custom.19652.js" %}"></script>