3   <html lang="{{ LANGUAGE_CODE }}" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#" class="{% if VARIANT %}{{ VARIANT }}{% endif %}">
 
   4     {% load pipeline i18n %}
 
   6     {% load catalogue_tags funding_tags reporting_stats %}
 
   9     {% load chunk from chunks %}
 
  10     {% load sponsor_page from sponsors %}
 
  11     {% load annoy_banner from annoy %}
 
  12     {% get_current_language as LANGUAGE_CODE %}
 
  14       <meta charset="utf-8">
 
  15       <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
 
  16       <meta name="application-name" content="Wolne Lektury" />
 
  17       <meta property="og:site_name" content="Wolne Lektury" />
 
  18       <meta property="og:title" content="{% block ogtitle %}{{ page_title }}{% endblock %}" />
 
  19       <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
 
  20       <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.jpg{% endblock %}" />
 
  21       <meta name="description" content="{% block metadescription %}Darmowe, opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
 
  22       {% block ogextra %}{% endblock %}
 
  25         {% block title %}{% block titleextra %}{{ page_title }}{% endblock %} :: {% trans "Wolne Lektury" %}{% endblock %}
 
  27       <link rel="icon" href="{% static 'img/favicon.png' %}" type="image/png"/>
 
  28       <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury"
 
  29             href="{% static 'opensearch.xml' %}"/>
 
  30       <link rel="manifest" href="/manifest.json">
 
  31       {% stylesheet "main" %}
 
  32       {% block extrahead %}{% endblock %}
 
  35     <body id="{% block bodyid %}base{% endblock %}">
 
  37         <li><a href="#main-content">{% trans "Go to content" %}</a></li>
 
  38         <li><a id="skiplink-search" href="#search"">{% trans "Go to search" %}</a></li>
 
  39         <li><a href="{% block footerlink %}#footer-wrapper{% endblock %}">{% trans "Go to page footer" %}</a></li>
 
  42       {% block bodycontent %}
 
  45           {% annoy_banner 'blackout' %}
 
  46           {% annoy_banner 'top' %}
 
  47           {% if not funding_no_show_current %}
 
  48             {% cache 120 funding_top_bar LANGUAGE_CODE %}
 
  54         <div id="whole-header">
 
  55           <div id="header-wrapper">
 
  57               <a href="/" id="logo">
 
  58                 <img src="{% static 'img/logo-neon.png' %}" alt="Wolne Lektury"/>
 
  62                 {% url 'book_list' as b %}
 
  63                 {% url 'infopage' 'prawa' as r %}
 
  64                 {% count_books book_count %}
 
  65                 {% blocktrans count book_count as c %}
 
  66                   <a href='{{ b }}'>{{ c }}</a> free reading you have <a href='{{ r }}'>right to</a>
 
  68                   <a href='{{ b }}'>{{ c }}</a> free readings you have <a href='{{ r }}'>right to</a>
 
  72               <div id="lang-menu" class="hoverget">
 
  73                 <span id='lang-button' class='hoverclick' tabindex="0">
 
  74                   <img src="{% static "img/contrib/language/language.svg" %}" alt="">
 
  75                   <span class="label"> {% trans "Language" %}</span>
 
  77                 <div id="lang-menu-items">
 
  78                   {% for lang in LANGUAGES %}
 
  79                     <form action="{% url 'set_language' %}" method="post">
 
  81                       <input type="hidden" name="language" value="{{ lang.0 }}"/>
 
  82                       <button type="submit" lang="{{ lang.0 }}" tabindex="121"
 
  83                               class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}">{{ lang.1 }}</button>
 
  89               <a id="show-menu"></a>
 
  92                   {% if request.user.is_authenticated %}
 
  94                       <a href="{% url 'user_settings' %}">
 
  95                         <strong>{{ request.user.username }}</strong>
 
  99                       <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
 
 101                     {% if request.user.is_staff %}
 
 102                       <li><a href="{% url 'admin:index' %}">{% trans "Administration" %}</a></li>
 
 105                       <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
 
 109                       <a href="{% url 'login' %}?next={{ request.path }}" id="login">{% trans "Sign in" %}</a>
 
 110                       / <a href="{% url 'register' %}?next={{ request.path }}" id="register">{% trans "Register" %}</a>
 
 115                 <ul id="main-menu-side">
 
 116                   {% include "main_menu.html" %}
 
 119               <form id="search-area" action="{% url 'wlsearch' %}">
 
 120                 <div id="search-field">
 
 121                   <label for="search">{{ search_form.q.label }}</label>
 
 124                 <button type='submit'>{% trans "Search" %}</button>
 
 128                 {% include "main_menu.html" %}
 
 137         <div id="main-content">
 
 140             <a href="https://nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/">
 
 141               <img src="{% static 'img/banners/960x150_wolneLektury.jpg' %}"
 
 142                    alt="Wesprzyj działalność Nowoczesnej Polski"/>
 
 148           <div class="clearboth"></div>
 
 151         <div id="footer-wrapper">
 
 154             {% block add_footer %}{% endblock %}
 
 155             {% sponsor_page 'footer' %}
 
 160         <div id="ajaxable-window" class='dialog-window'>
 
 161           <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
 
 163             <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
 
 166       {% endblock bodycontent %}
 
 168       <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>
 
 169       <script type="text/javascript">
 
 170         var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
 
 171         var STATIC_URL = "{{ STATIC_URL }}";
 
 173       {% javascript "base" %}
 
 175       {% block extrabody %}{% endblock %}
 
 177       <script src="{% static "js/contrib/modernizr.custom.19652.js" %}"></script>