Django 1.8
[prawokultury.git] / prawokultury / templates / base.html
old mode 100755 (executable)
new mode 100644 (file)
index 9977e37..d2615be
@@ -1,35 +1,51 @@
 <!DOCTYPE html>
-{% load url from future %}
-{% load i18n static %}
-{% load migdal_tags events_tags %}
-{% load compressed %}
-<html>
+{% load i18n %}
+{% load static from staticfiles %}
+{% load fnp_common menu_tags migdal_tags events_tags fnp_share fnp_lang %}
+{% load pipeline %}
+{% load chunks %}
+{% load piwik_tags %}
+<html prefix="og: http://ogp.me/ns#">
     <head>
-        <title>{% trans "Culture's right" %}</title>
-        {% compressed_css 'base' %}
+       <title>{% block titleextra %}{% endblock %}{% trans "Right to Culture" %}</title>
+       <link rel="shortcut icon" type="image/png" href="{% static "img/favicon.png" %}" />
+        {% stylesheet 'base' %}
+        {% block extra_css %}{% endblock %}
+        <meta charset="UTF-8" />
+        <meta property='og:url' content='{% block ogurl %}{{ request.get_full_path|build_absolute_uri:request }}{% endblock %}' />
+        <meta property='og:title' content='{% block ogtitle %}{% trans "Right to Culture" %}{% endblock %}' />
+        <meta property='og:site_name' content='{% trans "Right to Culture" %}' />
+        <meta property='og:description' content='{% block ogdescription %}Prawokultury.pl to strona edukacyjna mająca za zadanie w przystępny i rzetelny sposób informować o wszelkich kwestiach związanych z prawem autorskim.{% endblock %}' />
+        <meta property='og:type' content='{% block ogtype %}website{% endblock %}' />
+        <meta property='og:image' content='{% block ogimage %}{{ "/static/img/square-logo.png"|build_absolute_uri:request }}{% endblock %}' />
+        <meta property='og:locale' content='pl_PL' />
+        <link href="{% url 'migdal_main_feed' %}" rel="alternate" type="application/rss+xml" title="{% trans "Right to Culture" %}" />
+        {% block headextra %}{% endblock %}
     </head>
     <body>
+    {% load fnp_annoy %}{% annoy %}
     <div id="body">
-        <!--img src="/static/a.jpg" style="position:absolute; opacity: .5;z-index: 1000;" /-->
-
         <div id="header-bar">
         <div class="bar-left">
             <a id="logo" href="{% url "migdal_main" %}">
-                <img alt="{% trans "Culture's right" %}"
+                <img alt="{% trans "Right to Culture" %}"
                     src="{% static "img/logo.png" %}" /></a>
         </div>
         <div class="bar-right">
             <div class="org-fnp">
                 <span>{% trans "Organizer" %}</span><br/>
-                <a href="http://nowoczesnapolska.org.pl">
+                <a href="//nowoczesnapolska.org.pl">
                     <img src="{% static 'img/logo-fnp.png' %}"
                         alt="{% trans "Modern Poland Foundation" %}" /></a>
-            </div><div class="org-trust">
+            </div>
+            {% comment %}
+            <div class="org-trust">
                 <span>{% trans "Sponsor" %}</span><br/>
                 <a href="http://ceetrust.org">
                     <img src="{% static 'img/logo-trust.png' %}"
                         alt="{% trans "Trust for Civil Society in Central and Eastern Europe" %}" /></a>
             </div>
+            {% endcomment %}
         </div>
         <div style="clear: both;"></div>
         </div>
             </button></form>
         </div>
         <ul id="menu" class="bar-left">
-            {% block "main_menu" %}
-                {% main_menu 'url' request.get_full_path %}
+            {% block main_menu %}
+                {% main_menu %}
             {% endblock %}
+            <li id="item-lang">{% lang_switcher %}</li>
         </ul>
         <div style="clear: both;"></div>
         </div>
 
-        <div id="main-bar">
+        {% comment %}
+        <a style="width: 100%; display: inline-block;" href="https://nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/">
+            <img src="{% static 'img/960x150_ogolny.jpg' %}">
+        </a>
+        {% endcomment %}
+
+        <div id="main-bar" style='clear: both;'>
         <div id="sidebar" class="bar-right">
-            {% block "sidebar" %}
+            {% block sidebar %}
                 <div class="sidebar-box">
-                    <h3>{% trans "Upcoming events" %}</h3>
+                    <h3><a href="{% url 'events' %}">{% trans "Upcoming events" %}</a></h3>
                     {% events_box %}
                 </div>
+                <div class="sidebar-box" style="text-align: center">
+                    {% chunk 'side_promo' %}
+                </div>
                 <div id="sidebar-box-categories" class="sidebar-box">
                     {% categories 'topics' %}
                     {% categories 'types' %}
                 </div>
-                <!--div class="sidebar-box">
-                    <a href="{% url 'migdal_main_feed' %}">RSS</a>
-                </div-->
+                <div class="sidebar-box social">
+                    <a href="{% url 'migdal_main_feed' %}" title="RSS feed">
+                        <img src="{% static 'img/rss.png' %}" alt="RSS feed" /></a>
+                    {% url 'migdal_main' as main_url %}
+                    {% trans "Right to Culture" as site_name %}
+                    {% share main_url site_name "big" %}
+                </div>
                 <div class="sidebar-box">
                     <h3>{% trans "Latest comments" %}</h3>
                     {% last_comments %}
@@ -69,7 +99,7 @@
             {% endblock %}
         </div>
         <div id="content" class="bar-left">
-            {% block "body" %}{% endblock %}
+            {% block body %}{% endblock %}
         </div>
         <div style="clear: both;"></div>
         </div>
                 <br/>
                 ul. Marszałkowska 84/92 lok. 125<br/>
                 00-514 Warszawa<br/>
-                tel/fax: +48 22 621 30 17<br/>
+                tel: +48 22 621 30 17<br/>
                 e-mail: fundacja@nowoczesnapolska.org.pl<br/>
-                <br/>
-                {% trans "If not explicitly stated otherwise, all texts are licensed under the <a href='http://creativecommons.org/licenses/by-sa/3.0/'>Creative Commons Attribution-Share Alike</a> free license." %}
             </p>
             <p class="footer-item">
                 <br/><br/>
                 REGON: 017423865<br/>
                 Nr konta: 46 10201097 0000 7502 0001 6766
             </p>
+            <p class="footer-item">
+                <a href="https://nowoczesnapolska.org.pl/prywatnosc/">Polityka prywatności i ciasteczka</a>
+                <br/><br/>
+                {% trans "If not explicitly stated otherwise, all texts are licensed under the <a href='http://creativecommons.org/licenses/by-sa/3.0/'>Creative Commons Attribution-Share Alike</a> free license." %}
+            </p>
+
             <div style="clear: both;"></div>
         </div>
 
     </div>
-    <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js" charset="utf-8"></script>
-    {% compressed_js 'base' %}
+    <script type="text/javascript" src="//code.jquery.com/jquery-1.8.0.min.js" charset="utf-8"></script>
+    {% javascript 'base' %}
+    {% tracking_code %}
+    {% block extra_js %}{% endblock %}
     </body>
 </html>