]> dev.renevier.net Git - syj.git/blob - application/layouts/scripts/layout.phtml
insert doctype with zend helper
[syj.git] / application / layouts / scripts / layout.phtml
1 <?php
2     $doctype = $this->getHelper('Doctype')->setDoctype('HTML5');
3     echo $doctype . PHP_EOL;
4 ?>
5 <html lang="<?php echo $this->localeShort();?>">
6 <head>
7     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
8
9 <?php
10     echo $this->headMeta()->setIndent(4) . PHP_EOL;
11     echo $this->headBase()->setIndent(4) . PHP_EOL;
12     echo $this->headTitle()->setIndent(4) . PHP_EOL;
13     echo $this->headLink()->setIndent(4) . PHP_EOL;
14
15     if ($this->jslocales) {
16         $syjStrings = new phptojs\JsObject('SyjStrings');
17         foreach ($this->jslocales as $prop => $value) {
18             if (is_array($value)) {
19                 $syjStrings->$prop = call_user_func_array(array($this, 'translate'), $value);
20             } else {
21                 $syjStrings->$prop = $this->translate($value);
22             }
23         }
24         $this->headScript()->prependScript((string) $syjStrings);
25     }
26
27     echo $this->headScript()->setIndent(4) . PHP_EOL;
28
29 ?>
30
31 </head>
32 <body>
33 <?php
34     if (!$this->rawmode) {
35         echo $this->render('header.phtml');
36     }
37
38     echo $this->layout()->content;
39
40     if (!$this->rawmode) {
41         echo $this->render('footer.phtml');
42     }
43 ?>
44 </body>
45 </html>