3 <html lang="{{ LANGUAGE_CODE }}" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
4 {% load pipeline i18n %}
7 {% get_current_language as LANGUAGE_CODE %}
10 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
11 <meta name="application-name" content="Wolne Lektury" />
12 <meta property="og:site_name" content="Wolne Lektury" />
13 <meta property="og:title" content="{% block ogtitle %}{{ page_title }}{% endblock %}" />
14 <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
15 <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.jpg{% endblock %}" />
16 <meta name="description" content="{% block metadescription %}Darmowe, opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
17 {% block ogextra %}{% endblock %}
20 {% block title %}{% block titleextra %}{{ page_title }}{% endblock %} :: {% trans "Wolne Lektury" %}{% endblock %}
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 <link rel="manifest" href="/manifest.json">
26 {% stylesheet "main" %}
27 {% block extrahead %}{% endblock %}
29 <body id="{% block bodyid %}base{% endblock %}">
31 {% block bodycontent %}
33 <div id="whole-header">
34 <div id="header-wrapper">
36 <a href="https://wolnelektury.pl" id="logo">
37 <img src="{% static 'img/logo-neon.png' %}" alt="Wolne Lektury"/>
40 <div id="lang-menu" class="hoverget">
41 <span id='lang-button' class='hoverclick'>
42 <img src="{% static "img/contrib/language/language.svg" %}" alt="{% trans "Language" %}">
43 <span class="label"> {% trans "Language" %}</span>
45 <div id="lang-menu-items">
46 {% for lang in LANGUAGES %}
47 <form action="{% url 'set_language' %}" method="post">
49 <input type="hidden" name="language" value="{{ lang.0 }}"/>
50 <button type="submit" lang="{{ lang.0 }}"
51 class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}">{{ lang.1 }}</button>
59 {% if request.user.is_authenticated %}
61 <a href="{% url 'user_settings' %}">
62 <strong>{{ request.user.username }}</strong>
66 <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
76 <div id="main-content">
79 <div class="clearboth"></div>
82 {% endblock bodycontent %}
84 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.1/jquery.min.js" integrity="sha512-BkBgWiL0N/EFIbLZYGTgbksKG5bS6PtwnWvVk3gccv+KhtK/4wkLxCRGh+kelKiXx7Ey4jfTabLg3AEIPC7ENA==" crossorigin="anonymous"></script>
85 <script type="text/javascript">
86 var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
87 var STATIC_URL = "{{ STATIC_URL }}";
89 {% javascript "base" %}
93 {% block extrabody %}{% endblock %}
95 <script src="{% static "js/contrib/modernizr.custom.19652.js" %}"></script>