layout.guest.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" translate="no" >
  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
  11. p(!empty($_['pageTitle']) ? $_['pageTitle'] . ' – ' : '');
  12. p($theme->getTitle());
  13. ?>
  14. </title>
  15. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  16. <?php if ($theme->getiTunesAppId() !== '') { ?>
  17. <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  18. <?php } ?>
  19. <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
  20. <link rel="icon" href="<?php print_unescaped(image_path('core', 'favicon.ico')); /* IE11+ supports png */ ?>">
  21. <link rel="apple-touch-icon" href="<?php print_unescaped(image_path('core', 'favicon-touch.png')); ?>">
  22. <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path('core', 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>">
  23. <link rel="manifest" href="<?php print_unescaped(image_path('core', 'manifest.json')); ?>" crossorigin="use-credentials">
  24. <?php emit_css_loading_tags($_); ?>
  25. <?php emit_script_loading_tags($_); ?>
  26. <?php print_unescaped($_['headers']); ?>
  27. </head>
  28. <body id="<?php p($_['bodyid']);?>">
  29. <?php include 'layout.noscript.warning.php'; ?>
  30. <?php foreach ($_['initialStates'] as $app => $initialState) { ?>
  31. <input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
  32. <?php }?>
  33. <div class="wrapper">
  34. <div class="v-align">
  35. <?php if ($_['bodyid'] === 'body-login'): ?>
  36. <header role="banner">
  37. <div id="header">
  38. <div class="logo"></div>
  39. </div>
  40. </header>
  41. <?php endif; ?>
  42. <main>
  43. <h1 class="hidden-visually">
  44. <?php p($theme->getName()); ?>
  45. </h1>
  46. <?php print_unescaped($_['content']); ?>
  47. </main>
  48. </div>
  49. </div>
  50. <footer role="contentinfo">
  51. <p class="info">
  52. <?php print_unescaped($theme->getLongFooter()); ?>
  53. </p>
  54. </footer>
  55. </body>
  56. </html>