layout.user.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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, maximum-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 if (isset($_['inline_ocjs'])): ?>
  25. <script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" type="text/javascript">
  26. <?php print_unescaped($_['inline_ocjs']); ?>
  27. </script>
  28. <?php endif; ?>
  29. <?php foreach($_['cssfiles'] as $cssfile): ?>
  30. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>">
  31. <?php endforeach; ?>
  32. <?php foreach($_['printcssfiles'] as $cssfile): ?>
  33. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" media="print">
  34. <?php endforeach; ?>
  35. <?php foreach($_['jsfiles'] as $jsfile): ?>
  36. <script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php print_unescaped($jsfile); ?>"></script>
  37. <?php endforeach; ?>
  38. <?php print_unescaped($_['headers']); ?>
  39. </head>
  40. <body id="<?php p($_['bodyid']);?>">
  41. <?php include('layout.noscript.warning.php'); ?>
  42. <div id="notification-container">
  43. <div id="notification"></div>
  44. </div>
  45. <header role="banner"><div id="header">
  46. <div class="header-left">
  47. <a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
  48. id="nextcloud" tabindex="1">
  49. <div class="logo-icon">
  50. <h1 class="hidden-visually">
  51. <?php p($theme->getName()); ?>
  52. </h1>
  53. </div>
  54. </a>
  55. <a href="#" class="header-appname-container menutoggle" tabindex="2">
  56. <h1 class="header-appname">
  57. <?php p(!empty($_['application'])?$_['application']: $l->t('Apps')); ?>
  58. </h1>
  59. <div class="icon-caret"></div>
  60. </a>
  61. <ul id="appmenu" <?php if ($_['themingInvertMenu']) { ?>class="inverted"<?php } ?>>
  62. <?php foreach ($_['navigation'] as $entry): ?>
  63. <li data-id="<?php p($entry['id']); ?>" class="hidden">
  64. <a href="<?php print_unescaped($entry['href']); ?>"
  65. tabindex="3"
  66. <?php if ($entry['active']): ?> class="active"<?php endif; ?>>
  67. <svg width="20" height="20" viewBox="0 0 20 20">
  68. <?php if ($_['themingInvertMenu']) { ?>
  69. <defs><filter id="invertMenuMain-<?php p($entry['id']); ?>"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0" /></filter></defs>
  70. <?php } ?>
  71. <image x="0" y="0" width="20" height="20" preserveAspectRatio="xMinYMin meet"<?php if ($_['themingInvertMenu']) { ?> filter="url(#invertMenuMain-<?php p($entry['id']); ?>)"<?php } ?> xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" class="app-icon" />
  72. </svg>
  73. <div class="icon-loading-small-dark"
  74. style="display:none;"></div>
  75. </a>
  76. <span>
  77. <?php p($entry['name']); ?>
  78. </span>
  79. </li>
  80. <?php endforeach; ?>
  81. <li id="more-apps" class="menutoggle">
  82. <a href="#">
  83. <div class="icon-more-white"></div>
  84. <span><?php p($l->t('More apps')); ?></span>
  85. </a>
  86. </li>
  87. </ul>
  88. <nav role="navigation">
  89. <div id="navigation" style="display: none;">
  90. <div id="apps">
  91. <ul>
  92. <?php foreach($_['navigation'] as $entry): ?>
  93. <li data-id="<?php p($entry['id']); ?>">
  94. <a href="<?php print_unescaped($entry['href']); ?>" tabindex="3"
  95. <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
  96. <svg width="16" height="16" viewBox="0 0 16 16">
  97. <defs><filter id="invertMenuMore-<?php p($entry['id']); ?>"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
  98. <image x="0" y="0" width="16" height="16" preserveAspectRatio="xMinYMin meet" filter="url(#invertMenuMore-<?php p($entry['id']); ?>)" xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" class="app-icon"></image>
  99. </svg>
  100. <div class="icon-loading-small-dark" style="display:none;"></div>
  101. <span><?php p($entry['name']); ?></span>
  102. </a>
  103. </li>
  104. <?php endforeach; ?>
  105. </ul>
  106. </div>
  107. </div>
  108. </nav>
  109. </div>
  110. <div class="header-right">
  111. <form class="searchbox" action="#" method="post" role="search" novalidate>
  112. <label for="searchbox" class="hidden-visually">
  113. <?php p($l->t('Search'));?>
  114. </label>
  115. <input id="searchbox" type="search" name="query"
  116. value="" required
  117. autocomplete="off" tabindex="5">
  118. <button class="icon-close-white" type="reset"></button>
  119. </form>
  120. <div id="contactsmenu">
  121. <div class="icon-contacts menutoggle"></div>
  122. <div class="menu"></div>
  123. </div>
  124. <div id="settings">
  125. <div id="expand" tabindex="6" role="link" class="menutoggle">
  126. <div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>">
  127. <?php if ($_['userAvatarSet']): ?>
  128. <img alt="" width="32" height="32"
  129. src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']]));?>"
  130. srcset="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 64, 'v' => $_['userAvatarVersion']]));?> 2x, <?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 128, 'v' => $_['userAvatarVersion']]));?> 4x"
  131. >
  132. <?php endif; ?>
  133. </div>
  134. <div id="expandDisplayName" class="icon-settings-white"></div>
  135. </div>
  136. <div id="expanddiv" style="display:none;">
  137. <ul>
  138. <?php foreach($_['settingsnavigation'] as $entry):?>
  139. <li>
  140. <a href="<?php print_unescaped($entry['href']); ?>"
  141. <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
  142. <img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
  143. <?php p($entry['name']) ?>
  144. </a>
  145. </li>
  146. <?php endforeach; ?>
  147. </ul>
  148. </div>
  149. </div>
  150. </div>
  151. </div></header>
  152. <div id="sudo-login-background" class="hidden"></div>
  153. <form id="sudo-login-form" class="hidden">
  154. <?php p($l->t('This action requires you to confirm your password:')); ?><br>
  155. <input type="password" class="question" autocomplete="new-password" name="question" value=" <?php /* Hack against browsers ignoring autocomplete="off" */ ?>"
  156. placeholder="<?php p($l->t('Confirm your password')); ?>" />
  157. <input class="confirm icon-confirm" title="<?php p($l->t('Confirm')); ?>" value="" type="submit">
  158. </form>
  159. <div id="content-wrapper">
  160. <div id="content" class="app-<?php p($_['appid']) ?>" role="main">
  161. <?php print_unescaped($_['content']); ?>
  162. </div>
  163. </div>
  164. </body>
  165. </html>