{% load staticfiles %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-AU">
  <head>
    <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
    <meta name="author" content="haran" />
    <meta name="generator" content="haran" />

    {% if sidebar %}
    <link rel="stylesheet" type="text/css" href="{% static "evennia_general/css/prosimii-screen-alt.css" %}" media="screen" title="Prosimii (Sidebar)" />
    {% else %}
    <link rel="stylesheet" type="text/css" href="{% static "evennia_general/css/prosimii-screen.css" %}" media="screen" title="Prosimii" />
    {% endif %}
    <link rel="stylesheet alternative" type="text/css" href="{% static "evennia_general/css/prosimii-print.css" %}" media="screen" title="Print Preview" />
    <link rel="stylesheet" type="text/css" href="{% static "evennia_general/css/prosimii-print.css" %}" media="print" />

    {% block header_ext %}
    {% endblock %}

    <title>{{game_name}} - {% if flatpage %}{{flatpage.title}}{% else %}{% block titleblock %}{{page_title}}{% endblock %}{% endif %}</title>
  </head>

  <body>
    <!-- For non-visual user agents: -->
      <div id="top"><a href="#main-copy" class="doNotDisplay doNotPrint">Skip to main content.</a></div>

    <!-- ##### Header ##### -->

    <div id="header">
      <div class="superHeader">
        <!--span>Sites:</span-->
        <a href="http://evennia.com" title="The Python-based MUD server">Evennia.com</a>
      </div>

      <div class="midHeader">
        <img src="{% static "evennia_general/images/evennia_logo.png" %}" align='left'/> <h1 class="headerTitle" lang="la">{{game_name}}</h1>
        <div class="headerSubTitle" title="Slogan">
        <!-- Insert a slogan here if you want -->
        {{game_slogan}}			&nbsp;
        </div>

        <br class="doNotDisplay doNotPrint" />

        <div class="headerLinks">
          <span class="doNotDisplay">Tools:</span>
          {% if user.is_authenticated %}
            <a href="{% url 'logout' %}">Log Out &laquo;</a>
            <span class="doNotDisplay">|</span>
            Logged in as {{user.username}} &laquo;
          {% else %}
            <a href="{% url 'login' %}">Log In &laquo;</a>
            <span class="doNotDisplay">|</span>
            <a href="{% url 'to_be_implemented' %}">Register &laquo;</a>
          {% endif %}
        </div>
      </div>

      <div class="subHeader">
        <!--span class="doNotDisplay">Navigation:</span-->
        <a href="/">Home</a> |
        <a href="https://github.com/evennia/evennia/wiki/Evennia-Introduction/">About</a> |
        <a href="https://github.com/evennia/evennia/wiki">Documentation</a> |
        <a href="{% url 'admin:index' %}">Admin Interface</a>
        {% if webclient_enabled %}
         | <a href="{% url 'webclient:index' %}">Play Online</a>
        {% endif %}
        
      </div>
    </div>

    <!-- ##### Side Menu ##### -->
    {% block sidebar %}{% endblock %}
    <!-- ##### Main Copy ##### -->

    <div id="main-copy">
      {% block content %}
      {% endblock %}
    </div>

    <!-- ##### Footer ##### -->

    <div id="footer">
      <span class="doNotPrint">
        Template design by 
        <a href="http://www.oswd.org/designs/search/designer/id/3013/"
        title="Other designs by haran">haran</a>. 
        Powered by  
        <a href="http://evennia.com">Evennia.</a>
        <br />
      </span>
    </div>
  </body>
</html>
