layout.guest.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  12. <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
  13. <link rel="icon" href="<?php print_unescaped(image_path('', 'favicon.ico')); /* IE11+ supports png */ ?>">
  14. <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path('', 'favicon-touch.png')); ?>">
  15. <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path('', 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>">
  16. <?php if (isset($_['inline_ocjs'])): ?>
  17. <script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" type="text/javascript">
  18. <?php print_unescaped($_['inline_ocjs']); ?>
  19. </script>
  20. <?php endif; ?>
  21. <?php foreach($_['cssfiles'] as $cssfile): ?>
  22. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>">
  23. <?php endforeach; ?>
  24. <?php foreach($_['printcssfiles'] as $cssfile): ?>
  25. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" media="print">
  26. <?php endforeach; ?>
  27. <?php foreach($_['jsfiles'] as $jsfile): ?>
  28. <script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php print_unescaped($jsfile); ?>"></script>
  29. <?php endforeach; ?>
  30. <?php print_unescaped($_['headers']); ?>
  31. </head>
  32. <body id="<?php p($_['bodyid']);?>">
  33. <?php include('layout.noscript.warning.php'); ?>
  34. <div class="wrapper">
  35. <div class="v-align">
  36. <?php if ($_['bodyid'] === 'body-login' ): ?>
  37. <header role="banner">
  38. <div id="header">
  39. <div class="logo">
  40. <h1 class="hidden-visually">
  41. <?php p($theme->getName()); ?>
  42. </h1>
  43. <?php if(\OC::$server->getConfig()->getSystemValue('installed', false)
  44. && \OC::$server->getConfig()->getAppValue('theming', 'logoMime', false)): ?>
  45. <img src="<?php p($theme->getLogo()); ?>"/>
  46. <?php endif; ?>
  47. </div>
  48. <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
  49. </div>
  50. </header>
  51. <?php endif; ?>
  52. <?php print_unescaped($_['content']); ?>
  53. <div class="push"></div><!-- for sticky footer -->
  54. </div>
  55. </div>
  56. <footer role="contentinfo">
  57. <p class="info">
  58. <?php print_unescaped($theme->getLongFooter()); ?>
  59. </p>
  60. </footer>
  61. </body>
  62. </html>