You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

layout.public.php 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" >
  3. <head data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>" 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="referrer" content="never">
  13. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  14. <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  15. <meta name="apple-mobile-web-app-capable" content="yes">
  16. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  17. <meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!='files')? $_['application']:$theme->getTitle()); ?>">
  18. <meta name="mobile-web-app-capable" content="yes">
  19. <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
  20. <link rel="icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>">
  21. <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
  22. <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>">
  23. <link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>">
  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. <header>
  31. <div id="header" class="<?php p($_['header-classes']); ?>">
  32. <div class="header-left">
  33. <span id="nextcloud">
  34. <div class="logo logo-icon svg"></div>
  35. <h1 class="header-appname">
  36. <?php p($template->getHeaderTitle()); ?>
  37. </h1>
  38. <div class="header-shared-by">
  39. <?php p($template->getHeaderDetails()) ?>
  40. </div>
  41. </span>
  42. </div>
  43. <?php
  44. /** @var \OCP\AppFramework\Http\Template\PublicTemplateResponse $template */
  45. if($template->getActionCount() !== 0) {
  46. $primary = $template->getPrimaryAction();
  47. $others = $template->getOtherActions();
  48. ?>
  49. <div class="header-right">
  50. <span id="header-primary-action" class="<?php if($template->getActionCount() === 1) { p($primary->getIcon()); } ?>">
  51. <a href="<?php p($primary->getLink()); ?>">
  52. <span><?php p($primary->getLabel()) ?></span>
  53. </a>
  54. </span>
  55. <?php if($template->getActionCount()>1) { ?>
  56. <div id="header-secondary-action">
  57. <span id="header-actions-toggle" class="menutoggle icon-more-white"></span>
  58. <div id="header-actions-menu" class="popovermenu menu">
  59. <ul>
  60. <?php
  61. /** @var \OCP\AppFramework\Http\Template\IMenuAction $action */
  62. foreach($template->getOtherActions() as $action) {
  63. print_unescaped($action->render());
  64. }
  65. ?>
  66. </ul>
  67. </div>
  68. </div>
  69. <?php } ?>
  70. </div>
  71. <?php } ?>
  72. </div>
  73. </header>
  74. <div id="content-wrapper">
  75. <div id="content" class="app-<?php p($_['appid']) ?>" role="main">
  76. <?php print_unescaped($_['content']); ?>
  77. </div>
  78. <?php if($template->getFooterVisible()) { ?>
  79. <footer>
  80. <p class="info"><?php print_unescaped($theme->getLongFooter()); ?></p>
  81. </footer>
  82. <?php } ?>
  83. </div>
  84. </body>
  85. </html>