X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/5af5cc14f6b2ecddcad714053e048e39d52ca02d..dbe22f64e83af84c570ada1c73975eff9d83efe2:/prawokultury/templates/base.html diff --git a/prawokultury/templates/base.html b/prawokultury/templates/base.html index 57ea892..890f042 100755 --- a/prawokultury/templates/base.html +++ b/prawokultury/templates/base.html @@ -1,31 +1,42 @@ <!DOCTYPE html> -{% load url from future %} -{% load i18n static %} -{% load common_tags migdal_tags share %} +{% load i18n %} +{% load static from staticfiles %} +{% load fnp_common migdal_tags fnp_share fnp_lang menu_tags %} +{% load sponsor_tags %} {% load compressed %} +{% load piwik_tags %} +{% load entry_url %} <html prefix="og: http://ogp.me/ns#"> <head> <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 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" %}CopyCamp!{% endblock %}' /> + <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" %}{{ "/static/img/square-logo.png"|build_absolute_uri:request }}{% endblock %}' /> - <meta property='og:locale' content='pl_PL' /> + <meta property='og:image' content='{% block "ogimage" %}https://copycamp.pl{% static "img/copycamp_2016_"|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> <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/logo.png" %}" /></a> + src="{% static "img/copycamp_2016_"|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" %} @@ -36,23 +47,34 @@ <div id="menu-bar"> <div class="bar-right"> - <form id="search-form" method="GET" action="{% url '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> + </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> + <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;">{% trans "Registration" %}</a> <div style="clear: both;"></div> </div> <div id="main-bar"> <div id="sidebar" class="bar-right"> {% block "sidebar" %} + <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> + <div class="sidebar-box" style="text-align:center; font-size: 1.3em;"> + <strong><a target="_blank" style="display: block" href="https://prawokultury.pl/publikacje/cory-doctorow-kontekst/"> + <img style="margin-bottom: .5em;" src="//prawokultury.pl/media/entry/image/cory_cvr_fb_2_maly.jpg" alt="Cory Doctorow – Kontekst"><br> + KsiÄ Å¼ka:<br/> + Cory Doctorow – Kontekst<br/> + Kup na PrawoKultury.pl + </a></strong></div> + <div class="sidebar-box"> - (Sponsorzy) + {% sponsor_page 'main' %} </div> {% endblock %} </div> @@ -86,8 +108,8 @@ </div> </div> - <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js" charset="utf-8"></script> + <script type="text/javascript" src="//code.jquery.com/jquery-1.8.0.min.js" charset="utf-8"></script> {% compressed_js 'base' %} - {{ piwik_tag|safe }} + {% tracking_code %} </body> </html>