layout.guest.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2011-2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. ?>
  8. <!DOCTYPE html>
  9. <html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" translate="no" >
  10. <head
  11. <?php if ($_['user_uid']) { ?>
  12. data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>"
  13. <?php } ?>
  14. data-requesttoken="<?php p($_['requesttoken']); ?>">
  15. <meta charset="utf-8">
  16. <title>
  17. <?php
  18. p(!empty($_['pageTitle']) ? $_['pageTitle'] . ' – ' : '');
  19. p($theme->getTitle());
  20. ?>
  21. </title>
  22. <meta name="csp-nonce" nonce="<?php p($_['cspNonce']); /* Do not pass into "content" to prevent exfiltration */ ?>">
  23. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0<?php if (isset($_['viewport_maximum_scale'])) {
  24. p(', maximum-scale=' . $_['viewport_maximum_scale']);
  25. } ?>">
  26. <?php if ($theme->getiTunesAppId() !== '') { ?>
  27. <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  28. <?php } ?>
  29. <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
  30. <link rel="icon" href="<?php print_unescaped(image_path('core', 'favicon.ico')); /* IE11+ supports png */ ?>">
  31. <link rel="apple-touch-icon" href="<?php print_unescaped(image_path('core', 'favicon-touch.png')); ?>">
  32. <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path('core', 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>">
  33. <link rel="manifest" href="<?php print_unescaped(image_path('core', 'manifest.json')); ?>" crossorigin="use-credentials">
  34. <?php emit_css_loading_tags($_); ?>
  35. <?php emit_script_loading_tags($_); ?>
  36. <?php print_unescaped($_['headers']); ?>
  37. </head>
  38. <body id="<?php p($_['bodyid']);?>">
  39. <?php include 'layout.noscript.warning.php'; ?>
  40. <?php include 'layout.initial-state.php'; ?>
  41. <div class="wrapper">
  42. <div class="v-align">
  43. <?php if ($_['bodyid'] === 'body-login'): ?>
  44. <header>
  45. <div id="header">
  46. <div class="logo"></div>
  47. </div>
  48. </header>
  49. <?php endif; ?>
  50. <main>
  51. <h1 class="hidden-visually">
  52. <?php p($theme->getName()); ?>
  53. </h1>
  54. <?php print_unescaped($_['content']); ?>
  55. </main>
  56. </div>
  57. </div>
  58. <?php
  59. $longFooter = $theme->getLongFooter();
  60. ?>
  61. <footer class="guest-box <?php if ($longFooter === '') {
  62. p('hidden');
  63. } ?>">
  64. <p class="info">
  65. <?php print_unescaped($longFooter); ?>
  66. </p>
  67. </footer>
  68. </body>
  69. </html>