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 %}
8 {% load ssi_include ssi_csrf_token from ssify %}
9 {% load user_username user_is_staff from common_tags %}
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 {% stylesheet "main" %}
30 {% block extrahead %}{% endblock %}
32 <body id="{% block bodyid %}base{% endblock %}">
34 {% block bodycontent %}
37 {% if not funding_no_show_current %}
38 {% cache 120 funding_top_bar LANGUAGE_CODE %}
44 <div id="whole-header">
45 <div id="header-wrapper">
47 <a href="/" id="logo">
48 <img src="{% static 'img/logo-neon.png' %}" alt="Wolne Lektury"/>
52 {% url 'book_list' as b %}
53 {% url 'infopage' 'prawa' as r %}
54 {% count_books book_count %}
55 {% blocktrans count book_count as c %}
56 <a href='{{ b }}'>{{ c }}</a> free reading you have <a href='{{ r }}'>right to</a>
58 <a href='{{ b }}'>{{ c }}</a> free readings you have <a href='{{ r }}'>right to</a>
62 <div id="lang-menu" class="hoverget">
63 <span id='lang-button' class='hoverclick'>
64 <span class="lang-flag">⚐</span>
65 <span class="label"> {% trans "Language" %}</span>
67 <div id="lang-menu-items">
68 {% for lang in LANGUAGES %}
69 <form action="{% url 'django.views.i18n.set_language' %}" method="post">
71 <input type="hidden" name="language" value="{{ lang.0 }}"/>
72 <button type="submit" lang="{{ lang.0 }}"
73 class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}">{{ lang.1 }}</button>
79 <a id="show-menu"></a>
82 {% user_username as user_username %}
83 {% user_is_staff as user_is_staff %}
84 {{ user_username.if }}
86 <a href="{% url 'user_settings' %}">
87 <strong>{{ user_username }}</strong>
91 <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
93 {{ user_username.endif }}
94 {{ user_is_staff.if }}
95 <li><a href="{% url 'admin:index' %}">{% trans "Administration" %}</a></li>
96 {{ user_is_staff.endif }}
97 {{ user_username.if }}
99 <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
101 {{ user_username.else }}
103 <a href="{% url 'login' %}?next={{ request.path }}" id="login">{% trans "Sign in" %}</a>
104 / <a href="{% url 'register' %}?next={{ request.path }}" id="register">{% trans "Register" %}</a>
106 {{ user_username.endif }}
110 <li{% if active_menu_item == 'books' %} class="active"{% endif %}>
111 <a href="{% url 'book_list' %}">{% trans "Literature" %}</a>
113 <li{% if active_menu_item == 'theme' %} class="active"{% endif %}>
114 <a href="{% url 'theme_catalogue' %}">{% trans "Themes" %}</a>
116 <li{% if active_menu_item == 'audiobooks' %} class="active"{% endif %}>
117 <a href="{% url 'audiobook_list' %}">{% trans "Audiobooks" %}</a>
119 <li{% if active_menu_item == 'gallery' %} class="active"{% endif %}>
120 <a href="{% url 'gallery' %}">{% trans "Gallery" %}</a>
122 <li{% if active_menu_item == 'all_works' %} class="active"{% endif %}>
123 <a href="{% url 'catalogue' %}">{% trans "All works" %}</a>
127 <form id="search-area" action="{% url 'search' %}">
128 <div id="search-field">
129 <label for="search">{{ search_form.q.label }}</label>
132 <button type='submit'>{% trans "Search" %}</button>
138 <div id="main-content">
141 <a href="https://nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/">
142 <img src="{% static 'img/banners/960x150_wolneLektury.jpg' %}"
143 alt="Wesprzyj działalność Nowoczesnej Polski"/>
149 <div class="clearboth"></div>
152 <div id="footer-wrapper">
154 {% ssi_include 'chunk' key='footer' %}
155 {% block add_footer %}{% endblock %}
156 {% ssi_include 'sponsor_page' name='footer' %}
161 <div id="ajaxable-window" class='dialog-window'>
162 <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
164 <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
167 {% endblock bodycontent %}
169 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
170 <script type="text/javascript">
171 var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
172 var STATIC_URL = "{{ STATIC_URL }}";
174 {% javascript "base" %}
178 {% block extrabody %}{% endblock %}
180 <script src="{% static "js/contrib/modernizr.custom.19652.js" %}"></script>