minor fix
[prawokultury.git] / prawokultury / templates / base.html
index a5d0325..b484c46 100755 (executable)
@@ -1,35 +1,52 @@
+<!DOCTYPE html>
 {% load url from future %}
-{% load i18n %}
-{% load migdal_tags events_tags %}
+{% load i18n static %}
+{% load fnp_common migdal_tags fnp_share fnp_lang menu_tags %}
+{% load sponsor_tags %}
 {% load compressed %}
-
-<html>
+<html prefix="og: http://ogp.me/ns#">
     <head>
-        <title>{% trans "Culture's right" %}</title>
+       <title>{% block "titleextra" %}{% endblock %}CopyCamp</title>
+       <link rel="shortcut icon" type="image/png" href="{% static "img/favicon.png" %}" />
         {% compressed_css 'base' %}
+
+        <meta property='og:url' content='{% block "ogurl" %}{% url 'migdal_main' %}{% endblock %}' />
+        <meta property='og:title' content='{% block "ogtitle" %}CopyCamp{% endblock %}' />
+        <meta property='og:site_name' content='CopyCamp' />
+        <meta property='og:description' content='{% block "ogdescription" %}CopyCamp!{% endblock %}' />
+        <meta property='og:type' content='{% block "ogtype" %}website{% endblock %}' />
+        <meta property='og:image' content='{% block "ogimage" %}{{ "img/copycamp2012_"|add:request.LANGUAGE_CODE|add:".png"|build_absolute_uri:request }}{% endblock %}' />
+        <meta property='og:locale' content='pl_PL' />
     </head>
     <body>
     <div id="body">
-
         <div id="header-bar">
         <div class="bar-left">
-            <a id="logo" href="{% url "migdal_main" %}">{% trans "Culture's right" %}</a>
+            <a id="logo" href="{% url "migdal_main" %}">
+                <img alt="{% trans "CopyCamp" %}"
+                    src="{% static "img/copycamp2012_"|add:request.LANGUAGE_CODE|add:".png" %}" /></a>
         </div>
         <div class="bar-right">
-            <a id="logo-fnp" href="http://nowoczesnapolska.org.pl">[Logo FNP]</a>
-            <a id="logo-osi" href="http://osi">[Logo OSI]</a>
+            <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"><input /><button>?</button></form>
+            <!--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 'url' request.get_full_path %}
+                {% main_menu %}
             {% endblock %}
+            <li id="item-lang">{% lang_switcher %}</li>
         </ul>
         <div style="clear: both;"></div>
         </div>
         <div id="sidebar" class="bar-right">
             {% block "sidebar" %}
                 <div class="sidebar-box">
-                    <h3>{% trans "Upcoming events" %}</h3>
-                    {% events_box %}
-                </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">
-                    <h3>{% trans "Latest comments" %}</h3>
-                    {% last_comments %}
+                    {% sponsor_page 'main' %}
                 </div>
             {% endblock %}
         </div>
             <p class="footer-item">
                 <strong>Fundacja Nowoczesna Polska</strong><br/>
                 <br/>
-                ul.MarszaƂkowska 84/92 lok. 125<br/>
+                ul. MarszaƂkowska 84/92 lok. 125<br/>
                 00-514 Warszawa<br/>
                 tel/fax: +48 22 621 30 17<br/>
-                e-mail: fundacja@nowoczesnapolska.org.pl
+                e-mail: fundacja@nowoczesnapolska.org.pl<br/>
             </p>
             <p class="footer-item">
                 <br/><br/>
                 REGON: 017423865<br/>
                 Nr konta: 46 10201097 0000 7502 0001 6766
             </p>
+            <p class="footer-item">
+                <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' %}
+    {{ piwik_tag|safe }}
     </body>
-</html>
\ No newline at end of file
+</html>