layout.user.php 6.9 KB

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