Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends "base.html" %}
- {% load cms_tags menu_tags cache %}
- {% with bgimage=request.current_page.backgroundimageextension.background_image %}
- {% block title %}{% page_attribute 'title' %}{% endblock title %}
- {% block content %}
- <section id="content-landing">
- {% if bgimage %}
- <div class="article_image">
- <div class="wrapper">
- {% if request.current_page.get_ancestors|length <= 1 %}
- <h1>{{ request.current_page.get_page_title }}</h1>
- {% else %}
- {% for ance in request.current_page.get_ancestors %}
- {% if ance.level == 1 %}
- <h1>{{ ance.get_page_title }}</h1>
- {% endif %}
- {% endfor %}
- {% endif %}
- </div>
- <div class="overlay_gradient"></div>
- <div class="bg_image" style="background: url({{ bgimage.desktop }});"></div>
- </div>
- {% endif %}
- <div id="article">
- <div class="landing-wrapper cf">
- <div class="article-content">
- {% if not bgimage %}
- {% if request.current_page.get_ancestors|length <= 1 %}
- {% block page_title %}
- <h1 class="article_title">{{ request.current_page.get_page_title }}</h1>
- {% endblock page_title %}
- {% else %}
- {% for ance in request.current_page.get_ancestors %}
- {% if ance.level == 1 %}
- <h1 class="article_title">{{ ance.get_page_title }}</h1>
- {% endif %}
- {% endfor %}
- {% endif %}
- {% endif %}
- {% block page-content %}
- {% endblock page-content %}
- </div>
- </div>
- </div>
- <div class="clear"></div>
- </section>
- {% endblock content %}
- {% endwith %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement