1
0

layout.guest.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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>
  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. <?php
  51. $longFooter = $theme->getLongFooter();
  52. ?>
  53. <footer class="guest-box <?php if ($longFooter === '') {
  54. p('hidden');
  55. } ?>">
  56. <p class="info">
  57. <?php print_unescaped($longFooter); ?>
  58. </p>
  59. </footer>
  60. </body>
  61. </html>