Prepend styles in layout
[zf2.biz/galerie.git] / module / Application / view / layout / layout.phtml
index 6685a64..a26b180 100644 (file)
@@ -1,54 +1,53 @@
-<?php echo $this->doctype() ?>
+<?php echo $this->doctype(); ?>
 
 <html lang="en">
   <head>
     <meta charset="utf-8">
-    <?php echo $this->headTitle() ?>
+    <?php echo $this->headTitle('ZF2 '. $this->translate('Skeleton Application'))->setSeparator(' - ')->setAutoEscape(false) ?>
 
-    <?php echo $this->headMeta() ?>
-
-    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
-    <!--[if lt IE 9]>
-      <?php echo $this->placeholder('html5js') ?>
-
-    <![endif]-->
-
-    <?php echo $this->headScript() ?>
+    <?php echo $this->headMeta()->appendName('viewport', 'width=device-width, initial-scale=1.0') ?>
 
     <!-- Le styles -->
-    <?php echo $this->headLink() ?>
-    
-    <style type="text/css">
-      body {
-        padding-top: 60px;
-      }
-    </style>
+    <?php echo $this->headLink(array('rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon', 'href' => $this->basePath() . '/images/favicon.ico'))
+                    ->prependStylesheet($this->basePath() . '/css/bootstrap-responsive.min.css')
+                    ->prependStylesheet($this->basePath() . '/css/style.css')
+                    ->prependStylesheet($this->basePath() . '/css/bootstrap.min.css') ?>
 
-    <!-- Le fav and touch icons -->
-    <?php echo $this->placeholder('favicon') ?>
+    <!-- Scripts -->
+    <?php echo $this->headScript()->appendFile($this->basePath() . '/js/html5.js', 'text/javascript', array('conditional' => 'lt IE 9',))
+                                  ->appendFile($this->basePath() . '/js/jquery-1.7.2.min.js') ?>
 
   </head>
 
   <body>
 
-    <div class="topbar">
-      <div class="fill">
+    <div class="navbar navbar-fixed-top">
+      <div class="navbar-inner">
         <div class="container">
-          <a class="brand" href="<?php echo $this->url('home') ?>">ZF2 Skeleton Application</a>
-
-          <ul class="nav">
-            <li class="active"><a href="<?php echo $this->url('home') ?>">Home</a></li>
-          </ul>
+          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+            <span class="icon-bar"></span>
+          </a>
+          <a class="brand" href="<?php echo $this->url('home') ?>"><?php echo $this->translate('Skeleton Application') ?></a>
+          <div class="nav-collapse">
+            <ul class="nav">
+              <li class="active"><a href="<?php echo $this->url('home') ?>"><?php echo $this->translate('Home') ?></a></li>
+            </ul>
+          </div><!--/.nav-collapse -->
         </div>
       </div>
-
     </div>
 
     <div class="container">
-      <?php echo $this->raw('content'); ?>
+
+      <?php echo $this->content; ?>
+
+      <hr>
 
       <footer>
-        <p>&copy; 2006 - <?php echo date('Y') ?> by Zend Technologies Ltd. All rights reserved.</p>
+        <p>&copy; 2005 - 2012 by Zend Technologies Ltd. <?php echo $this->translate('All rights reserved.') ?></p>
       </footer>
 
     </div> <!-- /container -->