fix og:image
[prawokultury.git] / prawokultury / templates / base.html
index 3d36dcf..166e701 100755 (executable)
@@ -1,17 +1,24 @@
 <!DOCTYPE html>
 {% load url from future %}
 {% load i18n static %}
 <!DOCTYPE html>
 {% load url from future %}
 {% load i18n static %}
-{% load migdal_tags events_tags %}
+{% load common_tags migdal_tags events_tags share %}
 {% load compressed %}
 {% load compressed %}
-<html>
+<html prefix="og: http://ogp.me/ns#">
     <head>
     <head>
-        <title>{% trans "Culture's right" %}</title>
+       <title>{% trans "Culture's right" %}{% block "titleextra" %}{% endblock %}</title>
+       <link rel="shortcut icon" type="image/png" href="{% static "img/favicon.png" %}" />
         {% compressed_css 'base' %}
         {% compressed_css 'base' %}
+
+        <meta property='og:url' content='{% block "ogurl" %}{% url 'migdal_main' %}{% endblock %}' />
+        <meta property='og:title' content='{% block "ogtitle" %}{% trans "Culture's right" %}{% endblock %}' />
+        <meta property='og:site_name' content='{% trans "Culture's right" %}' />
+        <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' />
     </head>
     <body>
     <div id="body">
     </head>
     <body>
     <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" %}">
         <div id="header-bar">
         <div class="bar-left">
             <a id="logo" href="{% url "migdal_main" %}">
@@ -36,7 +43,7 @@
 
         <div id="menu-bar">
         <div class="bar-right">
 
         <div id="menu-bar">
         <div class="bar-right">
-            <form id="search-form" method="GET" action="/search/"><input name="q" /><button>
+            <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>
                 <img src="{% static "img/search.png" %}" alt="{% trans "Search" %}" />
             </button></form>
         </div>
         <div id="sidebar" class="bar-right">
             {% block "sidebar" %}
                 <div class="sidebar-box">
         <div id="sidebar" class="bar-right">
             {% 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 id="sidebar-box-categories" class="sidebar-box">
                     {% categories 'topics' %}
                     {% categories 'types' %}
                 </div>
                     {% 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 social">
+                    {% url 'migdal_main' as main_url %}
+                    {% trans "Culture's right" as site_name %}
+                    {% share main_url site_name "big" %}
+                    <!--a href="{% url 'migdal_main_feed' %}">RSS</a-->
+                </div>
                 <div class="sidebar-box">
                     <h3>{% trans "Latest comments" %}</h3>
                     {% last_comments %}
                 <div class="sidebar-box">
                     <h3>{% trans "Latest comments" %}</h3>
                     {% last_comments %}
@@ -82,8 +92,6 @@
                 00-514 Warszawa<br/>
                 tel/fax: +48 22 621 30 17<br/>
                 e-mail: fundacja@nowoczesnapolska.org.pl<br/>
                 00-514 Warszawa<br/>
                 tel/fax: +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/>
             </p>
             <p class="footer-item">
                 <br/><br/>
                 REGON: 017423865<br/>
                 Nr konta: 46 10201097 0000 7502 0001 6766
             </p>
                 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' %}
             <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>
     </body>
 </html>