{% extends "oscar/base.html" %} {% load staticfiles %} {% block styles %} {% comment %} If you are developing Oscar's CSS, or overriding Oscar's CSS files in your project, then set OSCAR_USE_LESS = True in your settings file. This will enable the on-the-fly less compiler. {% endcomment %} {% if use_less %} {% else %} {% endif %} {% endblock %} {% block layout %} {# Top-horizontal bar with account, notifictions, dashboard links #} {% include "oscar/partials/nav_accounts.html" %} {# Site logo/title, mini-basket, browse dropdown and searchbox #}
{% include "oscar/partials/brand.html" %} {# Mini-basket wrapped in a block so some templates can now display it #} {% block mini_basket %}{% include "oscar/partials/mini_basket.html" %}{% endblock %}
{% block navigation %} {% include "oscar/partials/nav_primary.html" %} {% endblock %}
{# Main content of page - other layout templates may override this block #} {% block content_wrapper %}
{% block breadcrumbs %}{% endblock %} {% block header %} {% endblock %} {% include "oscar/partials/alert_messages.html" %} {% block subnavigation %}{% endblock %}
{% block subheader %}{% endblock subheader %} {# Div exists for AJAX updates to entire content section #}
{% block content %}{% endblock %}
{% endblock %} {% include "oscar/partials/footer.html" %} {% endblock %} {% block cdn_scripts %} {{ block.super }} {% if use_less and debug %} {# Load the on-the-fly less compiler. Never do this in production. #} {% endif %} {% endblock %} {# Local scripts #} {% block scripts %} {{ block.super }} {% endblock %} {% block extrascripts %} {% include "oscar/partials/extrascripts.html" %} {{ block.super }} {% endblock %} {% block onbodyload %} {{ block.super }} oscar.init(); {% endblock %}