layout.base.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html>
  2. <html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" >
  3. <head data-requesttoken="<?php p($_['requesttoken']); ?>">
  4. <meta charset="utf-8">
  5. <title>
  6. <?php p($theme->getTitle()); ?>
  7. </title>
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9. <meta name="referrer" content="never">
  10. <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
  11. <meta name="theme-color" content="<?php p($theme->getMailHeaderColor()); ?>">
  12. <link rel="icon" href="<?php print_unescaped(image_path('', 'favicon.ico')); /* IE11+ supports png */ ?>">
  13. <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path('', 'favicon-touch.png')); ?>">
  14. <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path('', 'favicon-mask.svg')); ?>" color="#1d2d44">
  15. <?php foreach ($_['cssfiles'] as $cssfile): ?>
  16. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>">
  17. <?php endforeach; ?>
  18. <?php foreach($_['printcssfiles'] as $cssfile): ?>
  19. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" media="print">
  20. <?php endforeach; ?>
  21. <?php if (isset($_['inline_ocjs'])): ?>
  22. <script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" type="text/javascript">
  23. <?php print_unescaped($_['inline_ocjs']); ?>
  24. </script>
  25. <?php endif; ?>
  26. <?php foreach ($_['jsfiles'] as $jsfile): ?>
  27. <script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php print_unescaped($jsfile); ?>"></script>
  28. <?php endforeach; ?>
  29. <?php print_unescaped($_['headers']); ?>
  30. </head>
  31. <body id="body-public">
  32. <?php include('layout.noscript.warning.php'); ?>
  33. <?php print_unescaped($_['content']); ?>
  34. </body>
  35. </html>