Esempio n. 1
0
 private function comments()
 {
     $t = new Tag();
     echo "\n";
     $comment = "!--";
     echo (string) new DomElements([$t->{$comment}("HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries"), $t->{$comment}("WARNING: Respond.js doesn't work if you view the page via file://"), $t->{$comment}(['[if lt IE 9]', $t->script(a::src("https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js")), $t->script(a::src("https://oss.maxcdn.com/respond/1.4.2/respond.min.js")), '[endif]'])]);
     echo "\n";
 }
Esempio n. 2
0
 private function getControllerJs(Tag $t, $controllerName)
 {
     $path = 'js/' . $controllerName . '.js';
     if (file_exists($path)) {
         return $t->script(a::src(asset($path)));
     }
     return '';
 }