<!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>
  <title><%=h page_title %></title>
  <%= page_header %>
  <%= stylesheet_link_tag '/stylesheets/theme/application.css', :media => 'all' %>
</head>

<body>
<div class="outer-container">
	<div class="inner-container">
  	<div class="header">
			<div class="title">
    		<h1 class="sitename"><%= link_to this_blog.blog_name, this_blog.base_url %></h1>
    		<div class="slogan"><%= this_blog.blog_subtitle %></div>
			</div>
  	</div>
    <div class="path">
        <ul>
            <li class="page_item <%= 'current_page_item' if (controller.controller_name == "articles" and controller.action_name == "index") %>">
                <%= link_to _("Home"), this_blog.base_url %>
            </li>
            <li class="page_item <%= 'current_page_item' if (controller.action_name != 'index' and controller.action_name != 'view_page') %>">
                <%= link_to _("Articles"), {:controller => "articles", :action => "archives"} if (controller.controller_name != "index" )%>
            </li>
            <li class="page_item <%= 'current_page_item' if (controller.controller_name == "articles" and controller.action_name == "view_page" and params[:name].to_s == 'about') %>">
                <%= link_to _("About"), this_blog.base_url + "/pages/about" %>
            </li>
        </ul>
    </div>

  	<div class="main">
    	<div id="content">
      	<%= @content_for_layout %>
      	<%= javascript_tag 'show_dates_as_local_time()' %>
    	</div>

    	<div id="sidebar">
      	<!-- sidebar components -->
      	<%= render_sidebars %>
    	</div>
    	<br style="clear:both;" />
  	</div>

  	<div id="footer">
    	<div class="left"><%= link_to this_blog.blog_name, this_blog.base_url %></div>
			<div class="right">
        <%= _("Designed by %s ported to typo by %s ", link_to('Dirtylicious', ' http://templates.arcsin.se/'), 
        link_to("Frédéric de Villamil", 'http://fredericdevillamil.com')) %> <br />
        <%= _("Powered by %s", link_to('typo', 'http://typosphere.org')) %>
			</div>
			<div class="clearer"></div>
  	</div>
	</div>
</div>
</body>
</html>
