2019
[prawokultury.git] / prawokultury / templates / base.html
index bc23d2e..3794c4d 100755 (executable)
-{% load url from future %}
+<!DOCTYPE html>
 {% load i18n %}
-{% load migdal_tags events_tags %}
-{% load compressed %}
-
-<html>
+{% load static from staticfiles %}
+{% load fnp_common migdal_tags fnp_share fnp_lang menu_tags %}
+{% load sponsor_tags %}
+{% load pipeline %}
+{% load piwik_tags %}
+{% load entry_url %}
+<html prefix="og: http://ogp.me/ns#">
     <head>
-        <title>{% trans "Culture's right" %}</title>
-        {% compressed_css 'base' %}
+       <title>{% block titleextra %}{% endblock %}CopyCamp</title>
+       <link rel="shortcut icon" type="image/png" href="{% static "img/favicon.png" %}" />
+        {% stylesheet 'base' %}
+
+        <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 %}CopyCamp{% endblock %}' />
+        <meta property='og:site_name' content='CopyCamp' />
+        <meta property='og:description' content='{% block ogdescription %}{% trans "CopyCamp Conference is the first large-scale meeting in Poland devoted to the issues of copyright in both ideological and practical terms." %}{% endblock %}' />
+        <meta property='og:type' content='{% block ogtype %}website{% endblock %}' />
+        <meta property='og:image' content='{% block ogimage %}https://copycamp.pl{% static "img/copycamp_2019_"|add:request.LANGUAGE_CODE|add:"_big.png" %}{% endblock %}' />
+        <meta property='og:locale' content='{% if LANGUAGE_CODE == 'en'%}en_US{% else %}pl_PL{% endif %}' />
     </head>
     <body>
-        <a href="{% url "migdal_main" %}">{% trans "Culture's right" %}</a>
-        <ul id="menu">
-            {% if request.LANGUAGE_CODE == 'pl' %}
-                <li><a href="{% url 'migdal_entry_info' 'o-nas' %}">{% trans "About us" %}</a></li>
-            {% else %}
-                <li><a href="{% url 'migdal_entry_info' 'about-us' %}">{% trans "About us" %}</a></li>
-            {% endif %}
-            <li><a href="{% url 'migdal_entry_list_publications' %}">{% trans "Publications" %}</a></li>
-            <li><a href="{% url 'events' %}">{% trans "Events" %}</a></li>
-            {% if request.LANGUAGE_CODE == 'pl' %}
-                <li><a href="{% url 'migdal_category' 'stanowiska' %}">{% trans "Positions" %}</a></li>
-                <li><a href="{% url 'migdal_category' 'pierwsza-pomoc' %}">{% trans "First aid" %}</a></li>
-                <li><a href="/en">English</a></li>
-            {% else %}
-                <li><a href="{% url 'migdal_category' 'positions' %}">{% trans "Positions" %}</a></li>
-                <li><a href="{% url 'migdal_category' 'first-aid' %}">{% trans "First aid" %}</a></li>
-                <li><a href="/">polski</a></li>
-            {% endif %}
+    <div id="body">
+        {% comment %}
+        <a href="https://nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/" style="width: 100%; display: inline-block;">
+            <img src="{% static 'img/960x150_ogolny.jpg' %}">
+        </a>
+        {% endcomment %}
+
+        <div id="header-bar">
+        <div class="bar-left">
+            <a id="logo" href="{% url "migdal_main" %}">
+                <img alt="{% trans "CopyCamp" %}"
+                    src="{% static "img/copycamp_2019_"|add:request.LANGUAGE_CODE|add:".png" %}" /></a>
+        </div>
+        <div class="bar-right">
+            <a href="http://prawokultury.pl"><img src="{% static "img/logo_160.png" %}" alt="PrawoKultury.pl"/></a>
+            <div class="social">
+                {% url 'migdal_main' as main_url %}
+                {% share main_url "CopyCamp" "big" %}
+            </div>
+        </div>
+        <div style="clear: both;"></div>
+        </div>
+
+        <div id="menu-bar">
+        <div class="bar-right">
+            <!--form id="search-form" method="GET" action="{% url 'search' %}"><input name="q" /><button>
+                <img src="{% static "img/search.png" %}" alt="{% trans "Search" %}" />
+            </button></form-->
+        </div>
+        <ul id="menu" class="bar-left">
+            {% block main_menu %}
+                {% main_menu %}
+            {% endblock %}
+            <li id="item-lang">{% lang_switcher %}</li>
         </ul>
+        <a href="{{ REGISTRATION_URL }}" style="float: right; margin: 0 10px; width: 220px; text-align:center; background: #ED7F00; color: white; font-size: 24px; text-transform: uppercase;">{{ REGISTRATION_BUTTON_LABEL }}</a>
+        <div style="clear: both;"></div>
+        </div>
+
+        <div id="main-bar">
+        <div id="sidebar" class="bar-right">
+            {% block sidebar %}
+                {% comment %}
+                <a href="{% entry_url "warsztaty" %}" style="display: block; margin-bottom: 10px; width: 220px; text-align:center; background: #ED7F00; color: white; font-size: 24px; text-transform: uppercase;">{% trans "Workshops" %}</a>
+                {% endcomment %}
+                <div class="sidebar-box" style="text-align:center; font-size: 1.3em;">
+                    <strong><a target="_blank" style="display: block" href="http://prawokultury.pl/publikacje/konrad-gliscinski-wszystkie-prawa-zastrzezone-hist/">
+                        <img style="margin-bottom: .5em;" src="//prawokultury.pl/media/entry/attach/gliscinski_maly.jpg" alt="Konrad Gliściński &ndash; Wszystkie prawa zastrzeżone"><br>
+                        Książka:<br/>
+                        Konrad Gliściński &ndash; Wszystkie prawa zastrzeżone<br/>
+                        Kup na PrawoKultury.pl
+                </a></strong></div>
 
-        <div id="sidebar" style="float:right; width: 20%;">
-            {% block "sidebar" %}
-                <div class="sidebar-box">
-                    <h3>{% trans "Upcoming events" %}</h3>
-                    {% events_box %}
-                </div>
-                <div class="sidebar-box">
-                    <h3>{% trans "Categories" %}</h3>
-                    {% categories %}
-                </div>
-                <div class="sidebar-box">
-                    <h3>{% trans "Latest comments" %}</h3>
-                    {% last_comments %}
-                </div>
                 <div class="sidebar-box">
-                    <h3>{% trans "Follow us" %}</h3>
-                    <a href="{% url 'migdal_main_feed' %}">RSS</a>
+                    {% sponsor_page 'main' %}
                 </div>
             {% endblock %}
         </div>
+        <div id="content" class="bar-left">
+            {% block body %}{% endblock %}
+        </div>
+        <div style="clear: both;"></div>
+        </div>
 
-        <div id="body" style="width: 75%">
-            {% block "body" %}{% endblock %}
+        <div id="footer-bar">
+            <p class="footer-item">
+                <strong>Fundacja Nowoczesna Polska</strong><br/>
+                <br/>
+                ul. Marszałkowska 84/92 lok. 125<br/>
+                00-514 Warszawa<br/>
+                tel: +48 22 621 30 17<br/>
+                e-mail: fundacja@nowoczesnapolska.org.pl<br/>
+            </p>
+            <p class="footer-item">
+                <br/><br/>
+                KRS: 0000070056<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="//code.jquery.com/jquery-1.8.0.min.js" charset="utf-8"></script>
+    {% javascript 'base' %}
+    {% tracking_code %}
     </body>
-</html>
\ No newline at end of file
+</html>