<!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">
    <head profile="http://gmpg.org/xfn/11">
        <meta http-equiv="Content-type" content="$theme.type; charset=utf-8" />
        <title>{% block title %}$site.name{% if title %} &raquo; ${ title | escape }{% endif %}{% endblock %}</title>
        <meta name="generator" content="Chyrp" />
        <link rel="pingback" href="$site.chyrp_url/includes/xmlrpc.php" />
        <link rel="EditURI" type="application/rsd+xml" href="$site.chyrp_url/includes/rsd.php" />

        $theme.feeds
        $theme.stylesheets
        $theme.javascripts

${ trigger.call("head") }


    </head>


    <body>
       
        {% if site.name %}
        <div id="header">
            <div class="header_box">
                <h1><a href="$site.url">$site.name</a></h1>
                {% if site.description %}
                <h2>$site.description</h2>
                {% endif %}
            </div>
        </div>
        {% endif %}

        <div id="wrapper">
{% include "content/sidebar.twig" %}
            <div id="content">
                {% for type, messages in flash.all | items %}
                {% for message in messages %}
                <div class="${ type | depluralize }">$message</div>
                {% endfor %}
                {% endfor %}
{% block content %}{% endblock %}
                <div class="clear"></div>
                $posts.prev_link
                $posts.next_link
                {% if posts.paginated and posts.pages > 1 %}
                {% endif %}
                <div id="footer">
                <p><a href="{% url "feed" %}">Feed</a></p>
                <p>&nbsp;</p>
                <p>${ "Powered by <a class=\"chyrp\" href=\"http://chyrp.net/\">chyrp.net</a>" | translate }</p>
                <p>Okii theme by <a href="http://mnative.com">mnative.com</a></p>
                </div> 
            </div>
            <div class="clear"></div>
        </div>
        
${ trigger.call("end_content") }
   
    </body>
</html>
