layout.guest.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. <?php if ($theme->getiTunesAppId() !== '') { ?>
  15. <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  16. <?php } ?>
  17. <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
  18. <link rel="icon" href="<?php print_unescaped(image_path('', 'favicon.ico')); /* IE11+ supports png */ ?>">
  19. <link rel="apple-touch-icon" href="<?php print_unescaped(image_path('', 'favicon-touch.png')); ?>">
  20. <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path('', 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>">
  21. <link rel="manifest" href="<?php print_unescaped(image_path('', 'manifest.json')); ?>">
  22. <?php emit_css_loading_tags($_); ?>
  23. <?php emit_script_loading_tags($_); ?>
  24. <?php print_unescaped($_['headers']); ?>
  25. </head>
  26. <body id="<?php p($_['bodyid']);?>">
  27. <?php include 'layout.noscript.warning.php'; ?>
  28. <?php foreach ($_['initialStates'] as $app => $initialState) { ?>
  29. <input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
  30. <?php }?>
  31. <div class="wrapper">
  32. <div class="v-align">
  33. <?php if ($_['bodyid'] === 'body-login' ): ?>
  34. <header role="banner">
  35. <div id="header">
  36. <div class="logo">
  37. <h1 class="hidden-visually">
  38. <?php p($theme->getName()); ?>
  39. </h1>
  40. <?php if(\OC::$server->getConfig()->getSystemValue('installed', false)
  41. && \OC::$server->getConfig()->getAppValue('theming', 'logoMime', false)): ?>
  42. <img src="<?php p($theme->getLogo()); ?>"/>
  43. <?php endif; ?>
  44. </div>
  45. </div>
  46. </header>
  47. <?php endif; ?>
  48. <main>
  49. <?php print_unescaped($_['content']); ?>
  50. </main>
  51. </div>
  52. </div>
  53. <footer role="contentinfo">
  54. <p class="info">
  55. <?php print_unescaped($theme->getLongFooter()); ?>
  56. </p>
  57. </footer>
  58. </body>
  59. </html>