]> dev.renevier.net Git - syj.git/blobdiff - application/layouts/scripts/layout.phtml
insert doctype with zend helper
[syj.git] / application / layouts / scripts / layout.phtml
index 5736ac1eb908c11202644684b95b422375a187a3..81ee343b58082ce2f11e7fdc02f4dc58720942aa 100644 (file)
@@ -1,9 +1,16 @@
-<!doctype html>
+<?php
+    $doctype = $this->getHelper('Doctype')->setDoctype('HTML5');
+    echo $doctype . PHP_EOL;
+?>
 <html lang="<?php echo $this->localeShort();?>">
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
 
 <?php
+    echo $this->headMeta()->setIndent(4) . PHP_EOL;
+    echo $this->headBase()->setIndent(4) . PHP_EOL;
+    echo $this->headTitle()->setIndent(4) . PHP_EOL;
+    echo $this->headLink()->setIndent(4) . PHP_EOL;
 
     if ($this->jslocales) {
         $syjStrings = new phptojs\JsObject('SyjStrings');
@@ -17,9 +24,6 @@
         $this->headScript()->prependScript((string) $syjStrings);
     }
 
-    echo $this->headBase()->setIndent(4) . PHP_EOL;
-    echo $this->headTitle()->setIndent(4) . PHP_EOL;
-    echo $this->headLink()->setIndent(4) . PHP_EOL;
     echo $this->headScript()->setIndent(4) . PHP_EOL;
 
 ?>
 </head>
 <body>
 <?php
-    echo $this->render('header.phtml');
-?>
+    if (!$this->rawmode) {
+        echo $this->render('header.phtml');
+    }
 
-<?php
     echo $this->layout()->content;
-?>
 
-<?php
-    echo $this->render('footer.phtml');
+    if (!$this->rawmode) {
+        echo $this->render('footer.phtml');
+    }
 ?>
 </body>
 </html>