<?php
/** View Template: main page layout, is used via Zend_Layout.
 *
 * @package koubel homepage
 * @author Miroslav Kubelik (koubel@volny.cz)
 * @copyright Copyright (c) 2007-2009 Miroslav Kubelik
 * @license http://opensource.org/licenses/gpl-license.php GNU GPL
 */

//preDeclare some vars in the view
$this->declareVars(array("pageTitle"));
//prints xml declaration, without echo, can raises error for short_open_tag=On
echo '<?xml version="1.0" encoding="utf-8"?'.'>'."\n";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="cs" xml:lang="cs" xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Mirin webspace<?php echo (strlen($this->pageTitle)) ? " - $this->pageTitle" : ""?></title>
  <script type="text/javascript" src="<?php echo MKLib_AppBaseUrl::getBaseUrl()?>/js/functions.js"></script>
  <script type="text/javascript" src="<?php echo MKLib_AppBaseUrl::getBaseUrl()?>/js/tw-sack.js"></script>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <meta name="description" content="Homepage of Miroslav Kubelik" />
  <meta name="keywords" content="personal homepage,PHP,C++,Zend Framework" />
  <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php echo MKLib_AppBaseUrl::getUri().$this->url(array(),"blogFeed")?>" />
  <style type="text/css" media="all">@import "<?php echo MKLib_AppBaseUrl::getBaseUrl()?>/css/main.css";</style>
  <style type="text/css" media="all">@import "<?php echo MKLib_AppBaseUrl::getBaseUrl()?>/css/star_rating.css";</style>
  <?php echo $this->headScript()?>

  <script type="text/javascript">
  <!--
  //set baseurl for other javascript functions
  var baseurl="<?php echo MKLib_AppBaseUrl::getBaseUrl()?>";
  //-->
  </script>
</head>

<body>
<div id="container" >
 <div id="headerWrap">
  <div id="header">
   <h1><a href="<?php echo $this->url(array("action"=>"index"),"mainRoute")?>">Mirin <?php echo $this->trans("webspace")?></a></h1>
   <ul id="navigation">
    <li><a href="<?php echo $this->url(array(),"blogIndex")?>">Blog</a></li>
    <li><a href="<?php echo $this->url(array(),"projects")?>"><?php echo $this->trans("Projects")?></a></li>
    <li><a href="<?php echo $this->url(array("action"=>"about"),"mainRoute")?>"><?php echo $this->trans("About")?></a></li>
   </ul>
  </div>
 </div>

 <div id="content">
  <div id="contentHeader">
   <div id="siteDescription"><p><?php echo $this->trans("\"The greatest wealth is to live content with little\" --Plato")?></p></div>
  </div>

  <div id="main">
   <?php echo $this->layout()->content?>
  </div>

  <div id="secondary">
   <div id="langSwitcher"><?php echo $this->langSwitcher()?></div>
    <?php echo isset($this->layout()->rightBlock) ? $this->layout()->rightBlock : $this->render("links.phtml")?>
   </div>

  <div style="clear:both;margin-bottom:0.5em;padding:0;border:1px solid #fff;"></div>

 </div>

 <div id="footer">
  <p><span style="position:relative;top:-6px">&copy; 2007-2009 Koubel</span>
   <a href="http://framework.zend.com">
    <img src="<?php echo MKLib_AppBaseUrl::getBaseUrl()?>/images/PoweredBy_ZF_4LightBG.png" alt="Zend Framework logo" />
   </a>
  </p>
 </div>
</div>

</body>
</html>
