{#
    fenics/layout.html
    ~~~~~~~~~~~~~~~~~~

    Sphinx layout template for the fenics theme.

    :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.

    This theme is based on the default 'haiku' theme from Sphinx.
    Modified by Anders Logg for the FEniCS Project web pages, 2011.

#}
{% extends "basic/layout.html" %}
{% set script_files = script_files + ['_static/platform_sniff.js'] %}
{% set css_files = css_files + ['_static/print.css'] %}

{# do not display relbars #}
{% block relbar1 %}{% endblock %}
{% block relbar2 %}{% endblock %}

{% macro nav() %}
        <p>
        {%- block fenicsrel1 %}
        {%- endblock %}
        <a href="http://www.fenicsproject.org/new/about">About</a> &nbsp;&nbsp;&nbsp;
        <a href="http://www.fenicsproject.org/new/installation">Installation</a> &nbsp;&nbsp;&nbsp;
        <a href="http://www.fenicsproject.org/new/documentation">Documentation</a> &nbsp;&nbsp;&nbsp;
        <a href="http://www.fenicsproject.org/new/developers">Developers</a> &nbsp;&nbsp;&nbsp;
        <a href="http://www.fenicsproject.org/new/citing">Citing</a> &nbsp;&nbsp;&nbsp;
        <a href="http://www.fenicsproject.org/new/contact">Contact</a>
        {%- block fenicsrel2 %}
        {%- endblock %}
        </p>
{% endmacro %}

{% block content %}
      <div class="header">
        {%- block fenicsheader %}
        {%- if theme_full_logo != "false" %}
        <a href="{{ pathto('index') }}">
          <img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
        </a>
        {%- else %}
        {%- if logo -%}
          <img class="rightlogo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
        {%- endif -%}
        <h1 class="heading"><a href="{{ pathto('index') }}">
          <span>{{ shorttitle|e }}</span></a></h1>
        <h2 class="heading"><span>{{ title|striptags|e }}</span></h2>
        {%- endif %}
        {%- endblock %}
      </div>
      <div class="topnav">
      {{ nav() }}
      </div>
      <div class="content">
        {#{%- if display_toc %}
        <div id="toc">
          <h3>Table Of Contents</h3>
          {{ toc }}
        </div>
        {%- endif %}#}
        {% block body %}{% endblock %}
      </div>
      <div class="bottomnav">
      {{ nav() }}
      </div>
{% endblock %}
