layout.base.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7]><html class="ng-csp ie ie6 lte9 lte8 lte7"><![endif]-->
  3. <!--[if IE 7]><html class="ng-csp ie ie7 lte9 lte8 lte7"><![endif]-->
  4. <!--[if IE 8]><html class="ng-csp ie ie8 lte9 lte8"><![endif]-->
  5. <!--[if IE 9]><html class="ng-csp ie ie9 lte9"><![endif]-->
  6. <!--[if gt IE 9]><html class="ng-csp ie"><![endif]-->
  7. <!--[if !IE]><!--><html class="ng-csp"><!--<![endif]-->
  8. <head>
  9. <title>
  10. <?php p($theme->getTitle()); ?>
  11. </title>
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  13. <link rel="shortcut icon" href="<?php print_unescaped(image_path('', 'favicon.png')); ?>" />
  14. <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path('', 'favicon-touch.png')); ?>" />
  15. <?php foreach ($_['cssfiles'] as $cssfile): ?>
  16. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" type="text/css" media="screen" />
  17. <?php endforeach; ?>
  18. <?php foreach ($_['jsfiles'] as $jsfile): ?>
  19. <script type="text/javascript" src="<?php print_unescaped($jsfile); ?>"></script>
  20. <?php endforeach; ?>
  21. <?php foreach ($_['headers'] as $header): ?>
  22. <?php
  23. print_unescaped('<'.$header['tag'].' ');
  24. foreach ($header['attributes'] as $name => $value) {
  25. print_unescaped("$name='$value' ");
  26. };
  27. print_unescaped('/>');
  28. ?>
  29. <?php endforeach; ?>
  30. </head>
  31. <body>
  32. <?php print_unescaped($_['content']); ?>
  33. </body>
  34. </html>