layout.guest.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 include 'layout.initial-state.php'; ?>
  38. <div class="wrapper">
  39. <div class="v-align">
  40. <?php if ($_['bodyid'] === 'body-login'): ?>
  41. <header>
  42. <div id="header">
  43. <div class="logo"></div>
  44. </div>
  45. </header>
  46. <?php endif; ?>
  47. <main>
  48. <h1 class="hidden-visually">
  49. <?php p($theme->getName()); ?>
  50. </h1>
  51. <?php print_unescaped($_['content']); ?>
  52. </main>
  53. </div>
  54. </div>
  55. <?php
  56. $longFooter = $theme->getLongFooter();
  57. ?>
  58. <footer class="guest-box <?php if ($longFooter === '') {
  59. p('hidden');
  60. } ?>">
  61. <p class="info">
  62. <?php print_unescaped($longFooter); ?>
  63. </p>
  64. </footer>
  65. </body>
  66. </html>