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