Move some of the view related code from the Module class to the layout view script
[zf2.biz/galerie.git] / module / Application / view / layout / layout.phtml
1 <?php 
2 $this->headTitle()->setSeparator(' - ')
3                   ->setAutoEscape(false);
4
5 $basePath = $this->basePath();
6 $this->headLink()->appendStylesheet($basePath . '/css/bootstrap.min.css');
7
8 $this->headLink(array(
9             'rel'  => 'shortcut icon',
10             'type' => 'image/vnd.microsoft.icon',
11             'href' => $basePath . '/images/favicon.ico',
12         ));
13
14 // HTML5 shim, for IE6-8 support of HTML elements
15 $this->headScript()->appendFile($basePath . '/js/html5.js', 'text/javascript', 
16     array('conditional' => 'lt IE9',));
17
18 echo $this->doctype();
19 ?>
20
21 <html lang="en">
22   <head>
23     <meta charset="utf-8">
24     <?php echo $this->headTitle('ZF2 Skeleton Application') ?>
25
26     <?php echo $this->headMeta() ?>
27
28     <!-- Le styles -->
29     <?php echo $this->headLink() ?>
30     
31     <style type="text/css">
32       body {
33         padding-top: 60px;
34       }
35     </style>
36
37     <!-- Scripts -->
38     <?php echo $this->headScript() ?>
39
40   </head>
41
42   <body>
43
44     <div class="topbar">
45       <div class="fill">
46         <div class="container">
47           <a class="brand" href="<?php echo $this->url('home') ?>">ZF2 Skeleton Application</a>
48
49           <ul class="nav">
50             <li class="active"><a href="<?php echo $this->url('home') ?>">Home</a></li>
51           </ul>
52         </div>
53       </div>
54
55     </div>
56
57     <div class="container">
58       <?php echo $this->raw('content'); ?>
59
60       <footer>
61         <p>&copy; 2006 - <?php echo date('Y') ?> by Zend Technologies Ltd. All rights reserved.</p>
62       </footer>
63
64     </div> <!-- /container -->
65
66   </body>
67 </html>