layout.base.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7]><html class="ng-csp ie ie6 lte9 lte8 lte7" data-placeholder-focus="false"><![endif]-->
  3. <!--[if IE 7]><html class="ng-csp ie ie7 lte9 lte8 lte7" data-placeholder-focus="false"><![endif]-->
  4. <!--[if IE 8]><html class="ng-csp ie ie8 lte9 lte8" data-placeholder-focus="false"><![endif]-->
  5. <!--[if IE 9]><html class="ng-csp ie ie9 lte9" data-placeholder-focus="false"><![endif]-->
  6. <!--[if gt IE 9]><html class="ng-csp ie" data-placeholder-focus="false"><![endif]-->
  7. <!--[if !IE]><!--><html class="ng-csp" data-placeholder-focus="false"><!--<![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. <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
  14. <link rel="shortcut icon" href="<?php print_unescaped(image_path('', 'favicon.png')); ?>" />
  15. <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path('', 'favicon-touch.png')); ?>" />
  16. <?php foreach ($_['cssfiles'] as $cssfile): ?>
  17. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" type="text/css" media="screen" />
  18. <?php endforeach; ?>
  19. <?php foreach ($_['jsfiles'] as $jsfile): ?>
  20. <script type="text/javascript" src="<?php print_unescaped($jsfile); ?>"></script>
  21. <?php endforeach; ?>
  22. <?php foreach ($_['headers'] as $header): ?>
  23. <?php
  24. print_unescaped('<'.$header['tag'].' ');
  25. foreach ($header['attributes'] as $name => $value) {
  26. print_unescaped("$name='$value' ");
  27. };
  28. print_unescaped('/>');
  29. ?>
  30. <?php endforeach; ?>
  31. </head>
  32. <body id="body-public">
  33. <?php print_unescaped($_['content']); ?>
  34. </body>
  35. </html>