2 <html class="no-js" xmlns:og="http://opengraphprotocol.org/schema/">
 
   3         {% load cache compressed i18n %}
 
   4     {% load catalogue_tags reporting_stats sponsor_tags %}
 
   7         <meta name="application-name" content="Wolne Lektury" />
 
   8         <meta property="og:site_name" content="Wolne Lektury" />
 
   9         <meta property="og:title" content="{% block ogtitle %}{% endblock %}" />
 
  10         <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
 
  11         <meta property="og:image" content="{% block ogimage %}http://static.wolnelektury.pl/img/logo-bez.png{% endblock %}" />
 
  12         <meta name="description" 
 
  13             content="{% block metadescription %}Darmowe opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
 
  14         {% block ogextra %}{% endblock %}
 
  17         <title>{% block title %}{% trans "Wolne Lektury" %} :: 
 
  18             {% block titleextra %}{% endblock %}{% endblock %}</title>
 
  19         <link rel="icon" href="{{ STATIC_URL }}img/favicon.png" type="image/png" />
 
  20         <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury" href="{{ STATIC_URL }}opensearch.xml" />
 
  21         {% compressed_css "all" %}
 
  22         {% compressed_css "screen" %}
 
  24                 {% compressed_css "ie" %}
 
  26         <!--script src="{{ STATIC_URL }}js/modernizr.custom.13352.js"></script-->
 
  27         <script src="{{ STATIC_URL }}js/modernizr-latest.js"></script>
 
  32     <body id="{% block bodyid %}base{% endblock %}">
 
  34         {% block bodycontent %}
 
  36                 <div id="header-bg"></div>
 
  40         <div id="header-content">
 
  42                 <a class="logo" href="/">
 
  48                 {% cache 60 tagline LANGUAGE_CODE %}
 
  49                     {% url book_list as b %}
 
  50                     {% url infopage 'o-projekcie' as r %}
 
  51                         {% count_books book_count %}
 
  52                     {% blocktrans count book_count as c %}
 
  53                     <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
 
  55                     <a href='{{b}}'>{{c}}</a> free readings you have <a href='{{r}}'>right to</a>
 
  61             <p id="user-info" class="mono">
 
  62                 {% if user.is_authenticated %}
 
  63                     {% trans "Welcome" %}, <strong>{{ user.username }}</strong>
 
  64                     | <a href="{% url social_my_shelf %}" id="user-shelves-link">{% trans "My shelf" %}</a>
 
  65                     {% if user.is_staff %}
 
  66                     | <a href="/admin/">{% trans "Administration" %}</a>
 
  68                     | <a href="{% url logout %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
 
  70                     <a href="{% url login %}?next={{ request.path }}"
 
  71                         id="login" class="ajaxable">
 
  72                             {% trans "Sign in" %}</a>
 
  74                     <a href="{% url register %}?next={{ request.path }}"
 
  75                         id="register" class="ajaxable">
 
  76                             {% trans "Register" %}</a>
 
  81             <div class="clearboth"></div>
 
  86         <div id="half-header">
 
  87         <div id="half-header-content">
 
  91             <form id="search-area" action="/fullsearch/" class="hidelabels">
 
  93                 <div id="search-field" class="grid-line">
 
  94                         <label for="search">{{search_form.q.label}}</label>
 
  96 <!--                    <input title="np. Leśmian" name="q" autocomplete="off" data-source="/fullsearch/hint/">-->
 
  97                 </div><div id="search-button">
 
  98                     <button type='submit'><span class="mono">{% trans "Search" %}</span></button>
 
 101                 <div class="clearboth"></div>
 
 111         <div id="main-content">
 
 114                 {% cache 60 catalogue-menu LANGUAGE_CODE %}
 
 118             <form action="{% url django.views.i18n.set_language %}" method="post">
 
 120                 <span id='lang-button' class='mono'>
 
 121                     {% trans "Language versions" %}</span>
 
 122                 <div id="lang-menu-items">
 
 123                 {% for lang in LANGUAGES %}
 
 124                     <button type="submit" name="language"
 
 125                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} mono"
 
 126                         value="{{ lang.0 }}">{{ lang.1 }}</button>
 
 133             <div class="clearboth"></div>
 
 143         <div class="clearboth"></div>
 
 145         </div>{# end main-content #}
 
 149         <div id="footer-content">
 
 152                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
 
 153                                 Digital reproductions are made by <a href="http://www.bn.org.pl/">The National Library</a>, <a href="http://www.bs.katowice.pl/">Biblioteka Śląska</a> and <a href="http://www.bibliotekaelblaska.pl/">Biblioteka Elbląska</a>, based on TNL, BŚ and BE resources.
 
 154                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
 
 159                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
 
 160                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
 
 164             {% block add_footer %}{% endblock %}
 
 166                         {% sponsor_page "footer" %}
 
 173         <div id="ajaxable-window" class='dialog-window'>
 
 174             <div class="header mono"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
 
 176                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
 
 181         {% endblock bodycontent %}
 
 184         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
 
 185         <script type="text/javascript">
 
 186             var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
 
 187             var STATIC_URL = "{{ STATIC_URL }}";
 
 189         {% compressed_js "base" %}
 
 191         <!--{{ piwik_tag|safe }}
 
 192         <script type="text/javascript">
 
 193         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
 
 194         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
 
 196         <script type="text/javascript">
 
 197         var pageTracker = _gat._getTracker("UA-2576694-1");
 
 198         pageTracker._trackPageview();