1
0

layout.base.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2012-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 data-requesttoken="<?php p($_['requesttoken']); ?>">
  11. <meta charset="utf-8">
  12. <title>
  13. <?php p($theme->getTitle()); ?>
  14. </title>
  15. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0<?php if (isset($_['viewport_maximum_scale'])) {
  16. p(', maximum-scale=' . $_['viewport_maximum_scale']);
  17. } ?>">
  18. <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
  19. <meta name="csp-nonce" nonce="<?php p($_['cspNonce']); /* Do not pass into "content" to prevent exfiltration */ ?>">
  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. <?php emit_css_loading_tags($_); ?>
  24. <?php emit_script_loading_tags($_); ?>
  25. <?php print_unescaped($_['headers']); ?>
  26. </head>
  27. <body id="body-public" class="layout-base">
  28. <?php include 'layout.noscript.warning.php'; ?>
  29. <?php include 'layout.initial-state.php'; ?>
  30. <div id="content" class="app-public" role="main">
  31. <?php print_unescaped($_['content']); ?>
  32. </div>
  33. </body>
  34. </html>