layout.guest.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" >
  3. <head
  4. <?php if ($_['user_uid']) { ?>
  5. data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>"
  6. <?php } ?>
  7. data-requesttoken="<?php p($_['requesttoken']); ?>">
  8. <meta charset="utf-8">
  9. <title>
  10. <?php p($theme->getTitle()); ?>
  11. </title>
  12. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  14. <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  15. <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
  16. <link rel="icon" href="<?php print_unescaped(image_path('', 'favicon.ico')); /* IE11+ supports png */ ?>">
  17. <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path('', 'favicon-touch.png')); ?>">
  18. <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path('', 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>">
  19. <link rel="manifest" href="<?php print_unescaped(image_path('', 'manifest.json')); ?>">
  20. <?php emit_css_loading_tags($_); ?>
  21. <?php emit_script_loading_tags($_); ?>
  22. <?php print_unescaped($_['headers']); ?>
  23. </head>
  24. <body id="<?php p($_['bodyid']);?>">
  25. <?php include 'layout.noscript.warning.php'; ?>
  26. <?php foreach ($_['initialStates'] as $app => $initialState) { ?>
  27. <input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
  28. <?php }?>
  29. <div class="wrapper">
  30. <div class="v-align">
  31. <?php if ($_['bodyid'] === 'body-login' ): ?>
  32. <header role="banner">
  33. <div id="header">
  34. <div class="logo">
  35. <h1 class="hidden-visually">
  36. <?php p($theme->getName()); ?>
  37. </h1>
  38. <?php if(\OC::$server->getConfig()->getSystemValue('installed', false)
  39. && \OC::$server->getConfig()->getAppValue('theming', 'logoMime', false)): ?>
  40. <img src="<?php p($theme->getLogo()); ?>"/>
  41. <?php endif; ?>
  42. </div>
  43. </div>
  44. </header>
  45. <?php endif; ?>
  46. <main>
  47. <?php print_unescaped($_['content']); ?>
  48. </main>
  49. </div>
  50. </div>
  51. <footer role="contentinfo">
  52. <p class="info">
  53. <?php print_unescaped($theme->getLongFooter()); ?>
  54. </p>
  55. </footer>
  56. </body>
  57. </html>