]> dev.renevier.net Git - syj.git/blob - application/layouts/scripts/layout.phtml
meta description tag
[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     echo $this->headMeta()->setIndent(4) . PHP_EOL;
8     echo $this->headBase()->setIndent(4) . PHP_EOL;
9     echo $this->headTitle()->setIndent(4) . PHP_EOL;
10     echo $this->headLink()->setIndent(4) . PHP_EOL;
11
12     if ($this->jslocales) {
13         $syjStrings = new phptojs\JsObject('SyjStrings');
14         foreach ($this->jslocales as $prop => $value) {
15             if (is_array($value)) {
16                 $syjStrings->$prop = call_user_func_array(array($this, 'translate'), $value);
17             } else {
18                 $syjStrings->$prop = $this->translate($value);
19             }
20         }
21         $this->headScript()->prependScript((string) $syjStrings);
22     }
23
24     echo $this->headScript()->setIndent(4) . PHP_EOL;
25
26 ?>
27
28 </head>
29 <body>
30 <?php
31     if (!$this->rawmode) {
32         echo $this->render('header.phtml');
33     }
34
35     echo $this->layout()->content;
36
37     if (!$this->rawmode) {
38         echo $this->render('footer.phtml');
39     }
40 ?>
41 </body>
42 </html>