<!DOCTYPE html>

<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" > <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" > <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" > <![endif]-->
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" > <!--<![endif]-->


  <head>

    <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame 
         Remove this if you use the .htaccess -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

    <link type="image/png" rel="shortcut icon" href="<?php print base_path() . path_to_theme() .'/materio-icon-O.png' ?>"> 
    <?php print $head; ?>
    
    <title><?php print $head_title; ?></title>
    <?php print $styles; ?>

    
    <!-- All JavaScript at the bottom, except for Modernizr / Respond.
         Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
         For optimal performance, use a custom Modernizr build: www.modernizr.com/download/ -->
    <script src="<?php print $theme_path ?>/js/libs/modernizr-2.6.1.min.js" type="text/javascript"></script>


    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  </head>
  
  <body class="<?php print $classes; ?>"<?php print $attributes; ?>>
    <div id="root">

      <div id="container">        

        <header id="header">
          <h1 class="site-name"><?php print $site_name; ?></h1>
          <h2 class="site-slogan"><?php print $site_slogan; ?></h2>
        </header> 

        <div id="main">
          
            <section id="center"> 

                <section id="content">
                  <div class="inner-content">
                    <?php if($title): ?><h3 class="page-title"><?php print $title ?></h3><?php endif; ?>
                    <?php print $content ?>

                    <img src="<?php print base_path() . path_to_theme() .'/img/maintenance.jpg' ?>"> 
                  </div>
                </section>
          
            </section> <!-- /center -->
                  
        </div><!-- /main -->  

        <div id="footer"><?php //print $footer_message ?></div>

      </div> 
      <!-- /container -->

    </div>
    <!-- /root -->

    <!-- Javascript at the bottom for fast page loading -->
    <?php print $scripts; ?>
    

    <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
         chromium.org/developers/how-tos/chrome-frame-getting-started -->
    <!--[if lt IE 7 ]>
      <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
      <script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
    <![endif]-->

  </body>
  
</html>