1
0

layout.public.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html>
  2. <html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" >
  3. <head data-requesttoken="<?php p($_['requesttoken']); ?>">
  4. <meta charset="utf-8">
  5. <title>
  6. <?php
  7. p(!empty($_['application'])?$_['application'].' - ':'');
  8. p($theme->getTitle());
  9. ?>
  10. </title>
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  12. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  13. <?php if ($theme->getiTunesAppId() !== '') { ?>
  14. <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  15. <?php } ?>
  16. <meta name="apple-mobile-web-app-capable" content="yes">
  17. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  18. <meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid'] !== 'files')? $_['application']:$theme->getTitle()); ?>">
  19. <meta name="mobile-web-app-capable" content="yes">
  20. <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
  21. <link rel="icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>">
  22. <link rel="apple-touch-icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
  23. <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
  24. <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>">
  25. <link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>">
  26. <?php emit_css_loading_tags($_); ?>
  27. <?php emit_script_loading_tags($_); ?>
  28. <?php print_unescaped($_['headers']); ?>
  29. </head>
  30. <body id="<?php p($_['bodyid']);?>">
  31. <?php include('layout.noscript.warning.php'); ?>
  32. <?php foreach ($_['initialStates'] as $app => $initialState) { ?>
  33. <input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
  34. <?php }?>
  35. <div id="notification-container">
  36. <div id="notification"></div>
  37. </div>
  38. <header id="header">
  39. <div class="header-left">
  40. <span id="nextcloud">
  41. <div class="logo logo-icon svg"></div>
  42. <h1 class="header-appname">
  43. <?php if (isset($template) && $template->getHeaderTitle() !== '') { ?>
  44. <?php p($template->getHeaderTitle()); ?>
  45. <?php } else { ?>
  46. <?php p($theme->getName()); ?>
  47. <?php } ?>
  48. </h1>
  49. <?php if (isset($template) && $template->getHeaderDetails() !== '') { ?>
  50. <div class="header-shared-by">
  51. <?php p($template->getHeaderDetails()); ?>
  52. </div>
  53. <?php } ?>
  54. </span>
  55. </div>
  56. <?php
  57. /** @var \OCP\AppFramework\Http\Template\PublicTemplateResponse $template */
  58. if (isset($template) && $template->getActionCount() !== 0) {
  59. $primary = $template->getPrimaryAction();
  60. $others = $template->getOtherActions(); ?>
  61. <div class="header-right">
  62. <span id="header-primary-action" class="<?php if ($template->getActionCount() === 1) {
  63. p($primary->getIcon());
  64. } ?>">
  65. <a href="<?php p($primary->getLink()); ?>" class="primary button">
  66. <span><?php p($primary->getLabel()) ?></span>
  67. </a>
  68. </span>
  69. <?php if ($template->getActionCount() > 1) { ?>
  70. <div id="header-secondary-action">
  71. <button id="header-actions-toggle" class="menutoggle icon-more-white"></button>
  72. <div id="header-actions-menu" class="popovermenu menu">
  73. <ul>
  74. <?php
  75. /** @var \OCP\AppFramework\Http\Template\IMenuAction $action */
  76. foreach ($others as $action) {
  77. print_unescaped($action->render());
  78. }
  79. ?>
  80. </ul>
  81. </div>
  82. </div>
  83. <?php } ?>
  84. </div>
  85. <?php
  86. } ?>
  87. </header>
  88. <div id="content" class="app-<?php p($_['appid']) ?>" role="main">
  89. <?php print_unescaped($_['content']); ?>
  90. </div>
  91. <?php if (isset($template) && $template->getFooterVisible()) { ?>
  92. <footer>
  93. <p><?php print_unescaped($theme->getLongFooter()); ?></p>
  94. <?php
  95. if ($_['showSimpleSignUpLink']) {
  96. ?>
  97. <p>
  98. <a href="https://nextcloud.com/signup/" target="_blank" rel="noreferrer noopener">
  99. <?php p($l->t('Get your own free account')); ?>
  100. </a>
  101. </p>
  102. <?php
  103. }
  104. ?>
  105. </footer>
  106. <?php } ?>
  107. </body>
  108. </html>