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.user.php 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. <a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
  46. id="nextcloud" tabindex="1">
  47. <div class="logo-icon">
  48. <h1 class="hidden-visually">
  49. <?php p($theme->getName()); ?>
  50. </h1>
  51. </div>
  52. </a>
  53. <a href="#" class="header-appname-container menutoggle" tabindex="2">
  54. <h1 class="header-appname">
  55. <?php p(!empty($_['application'])?$_['application']: $l->t('Apps')); ?>
  56. </h1>
  57. <div class="icon-caret"></div>
  58. </a>
  59. <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
  60. <div id="settings">
  61. <div id="expand" tabindex="6" role="link" class="menutoggle">
  62. <?php if ($_['enableAvatars']): ?>
  63. <div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>">
  64. <?php if ($_['userAvatarSet']): ?>
  65. <img alt="" width="32" height="32"
  66. src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']]));?>"
  67. 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"
  68. >
  69. <?php endif; ?>
  70. </div>
  71. <?php endif; ?>
  72. <span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>
  73. <div class="icon-caret"></div>
  74. </div>
  75. <div id="expanddiv">
  76. <ul>
  77. <?php foreach($_['settingsnavigation'] as $entry):?>
  78. <li>
  79. <a href="<?php print_unescaped($entry['href']); ?>"
  80. <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
  81. <img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
  82. <?php p($entry['name']) ?>
  83. </a>
  84. </li>
  85. <?php endforeach; ?>
  86. <li>
  87. <a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
  88. <img alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg') . '?v=' . $_['versionHash']); ?>">
  89. <?php p($l->t('Log out'));?>
  90. </a>
  91. </li>
  92. </ul>
  93. </div>
  94. </div>
  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. </form>
  103. </div></header>
  104. <nav role="navigation"><div id="navigation">
  105. <div id="apps">
  106. <ul>
  107. <?php foreach($_['navigation'] as $entry): ?>
  108. <li data-id="<?php p($entry['id']); ?>">
  109. <a href="<?php print_unescaped($entry['href']); ?>" tabindex="3"
  110. <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
  111. <svg width="32" height="32" viewBox="0 0 32 32">
  112. <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>
  113. <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>
  114. </svg>
  115. <div class="icon-loading-dark" style="display:none;"></div>
  116. <span>
  117. <?php p($entry['name']); ?>
  118. </span>
  119. </a>
  120. </li>
  121. <?php endforeach; ?>
  122. <?php
  123. /* show "More apps" link to app administration directly in app navigation, as last entry */
  124. if(OC_User::isAdminUser(OC_User::getUser())):
  125. ?>
  126. <li id="apps-management">
  127. <a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
  128. <?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
  129. <svg width="32" height="32" viewBox="0 0 32 32" class="app-icon">
  130. <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>
  131. <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>
  132. </svg>
  133. <div class="icon-loading-dark" style="display:none;"></div>
  134. <span>
  135. <?php p($l->t('Apps')); ?>
  136. </span>
  137. </a>
  138. </li>
  139. <?php endif; ?>
  140. </ul>
  141. </div>
  142. </div></nav>
  143. <div id="sudo-login-background" class="hidden"></div>
  144. <div id="sudo-login-form" class="hidden">
  145. <?php p($l->t('This action requires you to confirm your password:')); ?><br>
  146. <input type="password" class="question" autocomplete="off" name="question" value=" <?php /* Hack against firefox ignoring autocomplete="off" */ ?>"
  147. placeholder="<?php p($l->t('Confirm your password')); ?>" />
  148. <input class="confirm icon-confirm" title="<?php p($l->t('Confirm')); ?>" value="" type="submit">
  149. </div>
  150. <div id="content-wrapper">
  151. <div id="content" class="app-<?php p($_['appid']) ?>" role="main">
  152. <?php print_unescaped($_['content']); ?>
  153. </div>
  154. </div>
  155. </body>
  156. </html>