root placeholders

master
fefa4ka 10 years ago
parent 06afa8258e
commit c54fdc4c35
  1. 11
      zsite/templates/base.html

@ -29,18 +29,13 @@
<img src="{% with 'imgs/logo_'|add:request.LANGUAGE_CODE|add:'.svg' as image_static %}{% static image_static %}{% endwith %}">
</a>
{% if request.current_page.parent %}
{% static_placeholder 'header-slogan-main-'|add:request.current_page.parent.reverse_id %}
{% elif request.current_page.reverse_id %}
{% static_placeholder 'header-slogan-main-'|add:request.current_page.reverse_id %}
{% else %}
<h2>{% trans 'Intellectual Property Protection' %}</h2>
{% endif %}
{% static_placeholder 'header-slogan-main-'|add:request.current_page.get_root.reverse_id %}
</div>
<div class="header-content">
{% if request.current_page.parent %}
{% static_placeholder 'header-content-'|add:request.current_page.parent.reverse_id %}
{% static_placeholder 'header-content-'|add:request.current_page.get_root.reverse_id %}
{% elif request.current_page.reverse_id %}
{% static_placeholder 'header-content-main-'|add:request.current_page.reverse_id %}
{% endif %}

Loading…
Cancel
Save