1
0

layout.guest.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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">
  24. <?php if ($theme->getiTunesAppId() !== '') { ?>
  25. <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  26. <?php } ?>
  27. <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
  28. <link rel="icon" href="<?php print_unescaped(image_path('core', 'favicon.ico')); /* IE11+ supports png */ ?>">
  29. <link rel="apple-touch-icon" href="<?php print_unescaped(image_path('core', 'favicon-touch.png')); ?>">
  30. <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path('core', 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>">
  31. <link rel="manifest" href="<?php print_unescaped(image_path('core', 'manifest.json')); ?>" crossorigin="use-credentials">
  32. <?php emit_css_loading_tags($_); ?>
  33. <?php emit_script_loading_tags($_); ?>
  34. <?php print_unescaped($_['headers']); ?>
  35. </head>
  36. <body id="<?php p($_['bodyid']);?>">
  37. <?php include 'layout.noscript.warning.php'; ?>
  38. <?php include 'layout.initial-state.php'; ?>
  39. <div class="wrapper">
  40. <div class="v-align">
  41. <?php if ($_['bodyid'] === 'body-login'): ?>
  42. <header>
  43. <div id="header">
  44. <div class="logo"></div>
  45. </div>
  46. </header>
  47. <?php endif; ?>
  48. <main>
  49. <h1 class="hidden-visually">
  50. <?php p($theme->getName()); ?>
  51. </h1>
  52. <?php print_unescaped($_['content']); ?>
  53. </main>
  54. </div>
  55. </div>
  56. <?php
  57. $longFooter = $theme->getLongFooter();
  58. ?>
  59. <footer class="guest-box <?php if ($longFooter === '') {
  60. p('hidden');
  61. } ?>">
  62. <p class="info">
  63. <?php print_unescaped($longFooter); ?>
  64. </p>
  65. </footer>
  66. </body>
  67. </html>