X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Flayouts%2Fscripts%2Flayout.phtml;h=81ee343b58082ce2f11e7fdc02f4dc58720942aa;hp=5736ac1eb908c11202644684b95b422375a187a3;hb=6d6858e7c9fa4d61e3d76bcb0092837e3903ffa5;hpb=190fd621df4920c56a422c03663874cddaa67d64 diff --git a/application/layouts/scripts/layout.phtml b/application/layouts/scripts/layout.phtml index 5736ac1..81ee343 100644 --- a/application/layouts/scripts/layout.phtml +++ b/application/layouts/scripts/layout.phtml @@ -1,9 +1,16 @@ - +getHelper('Doctype')->setDoctype('HTML5'); + echo $doctype . PHP_EOL; +?> 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; ?> @@ -27,15 +31,15 @@ render('header.phtml'); -?> + if (!$this->rawmode) { + echo $this->render('header.phtml'); + } -layout()->content; -?> -render('footer.phtml'); + if (!$this->rawmode) { + echo $this->render('footer.phtml'); + } ?>