layout.user.php 7.9 KB

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