layout.guest.php 2.5 KB

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