<!DOCTYPE html>
{% load compressed %}{% load sekizai_tags i18n %}{% load url from future %}{% load staticfiles %}
<html>
<head>
  {% block title %}
    {% if THEME_NAME == "stanford" %}
      <title>Home | class.stanford.edu</title>
    {% else %}
      <title>edX</title>
    {% endif %}
  {% endblock %}
  
  <link rel="icon" type="image/x-icon" href="{% static FAVICON_PATH %}" />
  
  {% compressed_css 'application' %}
  {% block main_vendor_js %}
  {% compressed_js 'main_vendor' %}
  {% endblock %}
  {% block headextra %}{% endblock %}
  {% if MITX_FEATURES.USE_CUSTOM_THEME %}
    {% include "theme-head-extra.html" %}
  {% endif %}
  {% render_block "css" %}
  
  
  <!--[if lt IE 9]>
  <script src="${static.url('js/html5shiv.js')}"></script>
  <![endif]-->

  <!--[if lte IE 9]>
  <%static:css group='ie-fixes'/>
  <![endif]-->
  <meta name="path_prefix" content="{{MITX_ROOT_URL}}">
</head>

<body class="{% block bodyclass %}{% endblock %}">
  {% if MITX_FEATURES.USE_CUSTOM_THEME %}
    {% include "theme-header.html" %}
  {% else %}
    {% include "navigation.html" %}
  {% endif %}

  <section class="content-wrapper">
    {% block body %}{% endblock %}
    {% block bodyextra %}{% endblock %}
  </section>
  
  {% if MITX_FEATURES.USE_CUSTOM_THEME %}
    {% include "theme-footer.html" %}
  {% else %}
    {% include "footer.html" %}
  {% endif %}
    
  {% compressed_js 'application' %}
  {% compressed_js 'module-js' %}
  
  {% render_block "js" %}
</body>
</html>

{% comment %}
  This is a django template version of our main page from which all
  other pages inherit. This file should be rewritten to reflect any
  changes in main.html! Files used by {% include %} can be written
  as mako templates.
  
  Inheriting from this file allows us to include apps that use the
  django templating system without rewriting all of their views in
  mako. 
{% endcomment %}
