Minor css fix.
[wolnelektury.git] / apps / wolnelektury_core / templates / superbase.html
1 <!DOCTYPE html>
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 %}
6     <head>
7         <meta charset="utf-8">
8         <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
9         <meta name="application-name" content="Wolne Lektury" />
10         <meta property="og:site_name" content="Wolne Lektury" />
11         <meta property="og:title" content="{% block ogtitle %}{% endblock %}" />
12         <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
13         <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.png{% endblock %}" />
14         <meta name="description" 
15             content="{% block metadescription %}Darmowe opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
16         {% block ogextra %}{% endblock %}
17         
18
19         <title>{% block title %}{% trans "Wolne Lektury" %} :: 
20             {% block titleextra %}{% endblock %}{% endblock %}</title>
21         <link rel="icon" href="{% static 'img/favicon.png' %}" type="image/png" />
22         <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury" 
23             href="{% static 'opensearch.xml' %}" />
24         {% compressed_css "main" %}
25         {% block extrahead %}
26         {% endblock %}
27     </head>
28     <body id="{% block bodyid %}base{% endblock %}">
29
30         {% block bodycontent %}
31         {% funding link=1 closeable=1 add_class="funding-top-header" %}
32         <div id="header-wrapper">
33         <header id="main">
34             <a href="/" id="logo">
35                 <img src="{% static 'img/logo-neon.png' %}"
36                     alt="Wolne Lektury" />
37             </a>
38
39             <p id="user-info">
40                 {% if user.is_authenticated %}
41                     {% trans "Welcome" %}, 
42                     <span class="hidden-box-wrapper">
43                         <a href="{% url 'user_settings' %}" class="hidden-box-trigger">
44                             <strong>{{ user.username }}</strong>
45                         </a>
46                         <span id="user-menu" class="hidden-box">
47                             <a href="{% url 'account_set_password' %}">{% trans "Password" %}</a><br/>
48                             <a href="{% url 'account_email' %}">{% trans "E-mail" %}</a><br/>
49                             <a href="{% url 'socialaccount_connections' %}">{% trans "Social accounts" %}</a><br/>
50                         </span>
51                     </span>
52                     | <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
53                     {% if user.is_staff %}
54                     | <a href="/admin/">{% trans "Administration" %}</a>
55                     {% endif %}
56                     | <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
57                 {% else %}
58                     <a href="{% url 'login' %}?next={{ request.path }}"
59                         id="login" class="ajaxable">
60                             {% trans "Sign in" %}</a>
61                     /
62                     <a href="{% url 'register' %}?next={{ request.path }}"
63                         id="register" class="ajaxable">
64                             {% trans "Register" %}</a>
65                 {% endif %}
66             </p>
67
68             <p id="tagline">
69                 {% cache 60 tagline LANGUAGE_CODE %}
70                     {% url 'book_list' as b %}
71                     {% url 'infopage' 'prawa' as r %}
72                         {% count_books book_count %}
73                     {% blocktrans count book_count as c %}
74                     <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
75                     {% plural %}
76                     <a href='{{b}}'>{{c}}</a> free readings you have <a href='{{r}}'>right to</a>
77                     {% endblocktrans %}
78                 {% endcache %}
79             </p>
80
81             <form id="search-area" action="{% url 'search' %}">
82                 <div id="search-field">
83                     <label for="search">{{search_form.q.label}}</label>
84                         {{search_form.q}}
85                 </div><button type='submit'>{% trans "Search" %}</button>
86             </form>
87
88         </header>
89         </div>
90
91
92         <nav id="nav-line">
93             {% catalogue_menu %}
94
95             <div id="lang-menu" class="hoverget">
96                 <span id='lang-button' class='hoverclick'>
97                     <span class="lang-flag">⚐</span>
98                     <span class="label">{% trans "Language versions" %}</span>
99                 </span>
100                 <div id="lang-menu-items">
101                 {% for lang in LANGUAGES %}
102                     <form action="{% url 'django.views.i18n.set_language' %}" method="post">
103                     {% csrf_token %}
104                     <input type="hidden" name="language" value="{{ lang.0 }}" />
105                     <button type="submit"
106                         lang="{{ lang.0 }}"
107                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}"
108                         >{{ lang.1 }}</button>
109                     </form>
110                 {% endfor %}
111                 </div>
112             </div>
113
114             <div class="clearboth"></div>
115         </nav>
116
117
118         <div id="main-content">
119             {% block body %}
120             {% endblock %}
121             <div class="clearboth"></div>
122         </div>
123
124
125         <div id="footer-wrapper">
126         <footer id="main">
127             <p>
128                 {% blocktrans %}
129                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
130                                 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.
131                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
132                                 {% endblocktrans %}
133             </p>
134             <p>
135                 {% blocktrans %}
136                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
137                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
138                                 {% endblocktrans %}
139             </p>
140             <p>Nowa strona biblioteki Wolne Lektury powstała dzięki środkom otrzymanym w ramach Programu Operacyjnego Fundusz Inicjatyw Obywatelskich, Senatu RP (zadanie realizowane w ramach zlecania przez Kancelarię Senatu zadań w zakresie opieki nad Polonią i Polakami za granicą w 2011 r.) oraz Narodowego Instytutu Audiowizualnego w ramach programu Dziedzictwo Cyfrowe.</p>
141
142             {% block add_footer %}{% endblock %}
143
144                         {% sponsor_page "footer" %}
145         </footer>
146         </div>
147
148
149
150         {# template #}
151         <div id="ajaxable-window" class='dialog-window'>
152             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
153             <div class="target">
154                 <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
155             </div>
156         </div>
157
158
159         {% endblock bodycontent %}
160
161
162         <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
163         <script type="text/javascript">
164             var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
165             var STATIC_URL = "{{ STATIC_URL }}";
166         </script>
167         {% compressed_js "base" %}
168
169         {{ piwik_tag|safe }}
170
171                 {% block extrabody %}
172                 {% endblock %}
173
174         <script src="{% static "js/modernizr.custom.19652.js" %}"></script>
175     </body>
176 </html>