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 %}
9 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
10 <meta name="application-name" content="Wolne Lektury" />
11 <meta property="og:site_name" content="Wolne Lektury" />
12 <meta property="og:title" content="{% block ogtitle %}{% endblock %}" />
13 <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
14 <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.png{% endblock %}" />
15 <meta name="description"
16 content="{% block metadescription %}Darmowe, opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
17 {% block ogextra %}{% endblock %}
20 <title>{% block title %}{% trans "Wolne Lektury" %} ::
21 {% block titleextra %}{% endblock %}{% endblock %}</title>
22 <link rel="icon" href="{% static 'img/favicon.png' %}" type="image/png" />
23 <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury"
24 href="{% static 'opensearch.xml' %}" />
25 {% compressed_css "main" %}
29 <body id="{% block bodyid %}base{% endblock %}">
31 {% block bodycontent %}
32 {% funding link=1 closeable=1 add_class="funding-top-header" %}
33 <div id="header-wrapper">
35 <a href="/" id="logo">
36 <img src="{% static 'img/logo-neon.png' %}"
37 alt="Wolne Lektury" />
41 {% if user.is_authenticated %}
42 {% trans "Welcome" %},
43 <span class="hidden-box-wrapper">
44 <a href="{% url 'user_settings' %}" class="hidden-box-trigger">
45 <strong>{{ user.username }}</strong>
47 <span id="user-menu" class="hidden-box">
48 <a href="{% url 'account_set_password' %}">{% trans "Password" %}</a><br/>
49 <a href="{% url 'account_email' %}">{% trans "E-mail" %}</a><br/>
50 <a href="{% url 'socialaccount_connections' %}">{% trans "Social accounts" %}</a><br/>
53 | <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
54 {% if user.is_staff %}
55 | <a href="/admin/">{% trans "Administration" %}</a>
57 | <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
59 <a href="{% url 'login' %}?next={{ request.path }}"
60 id="login" class="ajaxable">
61 {% trans "Sign in" %}</a>
63 <a href="{% url 'register' %}?next={{ request.path }}"
64 id="register" class="ajaxable">
65 {% trans "Register" %}</a>
70 {% cache 60 tagline LANGUAGE_CODE %}
71 {% url 'book_list' as b %}
72 {% url 'infopage' 'prawa' as r %}
73 {% count_books book_count %}
74 {% blocktrans count book_count as c %}
75 <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
77 <a href='{{b}}'>{{c}}</a> free readings you have <a href='{{r}}'>right to</a>
82 <form id="search-area" action="{% url 'search' %}">
83 <div id="search-field">
84 <label for="search">{{search_form.q.label}}</label>
86 </div><button type='submit'>{% trans "Search" %}</button>
96 <div id="lang-menu" class="hoverget">
97 <span id='lang-button' class='hoverclick'>
98 <span class="lang-flag">⚐</span>
99 <span class="label">{% trans "Language versions" %}</span>
101 <div id="lang-menu-items">
102 {% for lang in LANGUAGES %}
103 <form action="{% url 'django.views.i18n.set_language' %}" method="post">
105 <input type="hidden" name="language" value="{{ lang.0 }}" />
106 <button type="submit"
108 class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}"
109 >{{ lang.1 }}</button>
115 <div class="clearboth"></div>
119 <div id="main-content">
122 <div class="clearboth"></div>
126 <div id="footer-wrapper">
129 {% block add_footer %}{% endblock %}
130 {% sponsor_page "footer" %}
137 <div id="ajaxable-window" class='dialog-window'>
138 <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
140 <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
145 {% endblock bodycontent %}
148 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
149 <script type="text/javascript">
150 var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
151 var STATIC_URL = "{{ STATIC_URL }}";
153 {% compressed_js "base" %}
157 {% block extrabody %}
160 <script src="{% static "js/modernizr.custom.19652.js" %}"></script>