2 $doctype = $this->getHelper('Doctype')->setDoctype('HTML5');
3 echo $doctype . PHP_EOL;
5 <html lang="<?php echo $this->localeShort();?>">
7 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
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;
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);
21 $syjStrings->$prop = $this->translate($value);
24 $this->headScript()->prependScript((string) $syjStrings);
27 echo $this->headScript()->setIndent(4) . PHP_EOL;
34 if (!$this->rawmode) {
35 echo $this->render('header.phtml');
38 echo $this->layout()->content;
40 if (!$this->rawmode) {
41 echo $this->render('footer.phtml');