1
0

layout.user.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <!DOCTYPE html>
  2. <html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" >
  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="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  13. <?php if ($theme->getiTunesAppId() !== '') { ?>
  14. <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  15. <?php } ?>
  16. <meta name="apple-mobile-web-app-capable" content="yes">
  17. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  18. <meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!='files')? $_['application']:$theme->getTitle()); ?>">
  19. <meta name="mobile-web-app-capable" content="yes">
  20. <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
  21. <link rel="icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>">
  22. <link rel="apple-touch-icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
  23. <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>">
  24. <link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>">
  25. <?php emit_css_loading_tags($_); ?>
  26. <?php emit_script_loading_tags($_); ?>
  27. <?php print_unescaped($_['headers']); ?>
  28. </head>
  29. <body id="<?php p($_['bodyid']);?>">
  30. <?php include 'layout.noscript.warning.php'; ?>
  31. <?php foreach ($_['initialStates'] as $app => $initialState) { ?>
  32. <input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
  33. <?php }?>
  34. <a href="#app-content" class="button primary skip-navigation skip-content"><?php p($l->t('Skip to main content')); ?></a>
  35. <a href="#app-navigation" class="button primary skip-navigation"><?php p($l->t('Skip to navigation of app')); ?></a>
  36. <div id="notification-container">
  37. <div id="notification"></div>
  38. </div>
  39. <header role="banner" id="header">
  40. <div class="header-left">
  41. <a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
  42. id="nextcloud">
  43. <div class="logo logo-icon">
  44. <h1 class="hidden-visually">
  45. <?php p($theme->getName()); ?> <?php p(!empty($_['application'])?$_['application']: $l->t('Apps')); ?>
  46. </h1>
  47. </div>
  48. </a>
  49. <ul id="appmenu" <?php if ($_['themingInvertMenu']) { ?>class="inverted"<?php } ?>>
  50. <?php foreach ($_['navigation'] as $entry): ?>
  51. <li data-id="<?php p($entry['id']); ?>" class="hidden" tabindex="-1">
  52. <a href="<?php print_unescaped($entry['href']); ?>"
  53. <?php if ($entry['active']): ?> class="active"<?php endif; ?>
  54. aria-label="<?php p($entry['name']); ?>">
  55. <svg width="20" height="20" viewBox="0 0 20 20" alt="">
  56. <?php if ($_['themingInvertMenu']) { ?>
  57. <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>
  58. <?php } ?>
  59. <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"></image>
  60. </svg>
  61. <span>
  62. <?php p($entry['name']); ?>
  63. </span>
  64. </a>
  65. </li>
  66. <?php endforeach; ?>
  67. <li id="more-apps" class="menutoggle"
  68. aria-haspopup="true" aria-controls="navigation" aria-expanded="false">
  69. <a href="#" aria-label="<?php p($l->t('More apps')); ?>">
  70. <div class="icon-more-white"></div>
  71. <span><?php p($l->t('More')); ?></span>
  72. </a>
  73. </li>
  74. </ul>
  75. <nav role="navigation">
  76. <div id="navigation" style="display: none;" aria-label="<?php p($l->t('More apps menu')); ?>">
  77. <div id="apps">
  78. <ul>
  79. <?php foreach ($_['navigation'] as $entry): ?>
  80. <li data-id="<?php p($entry['id']); ?>">
  81. <a href="<?php print_unescaped($entry['href']); ?>"
  82. <?php if ($entry['active']): ?> class="active"<?php endif; ?>
  83. aria-label="<?php p($entry['name']); ?>">
  84. <svg width="16" height="16" viewBox="0 0 16 16" alt="">
  85. <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>
  86. <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>
  87. </svg>
  88. <span><?php p($entry['name']); ?></span>
  89. </a>
  90. </li>
  91. <?php endforeach; ?>
  92. </ul>
  93. </div>
  94. </div>
  95. </nav>
  96. </div>
  97. <div class="header-right">
  98. <div id="unified-search"></div>
  99. <div id="contactsmenu">
  100. <div class="icon-contacts menutoggle" tabindex="0" role="button"
  101. aria-haspopup="true" aria-controls="contactsmenu-menu" aria-expanded="false">
  102. <span class="hidden-visually"><?php p($l->t('Contacts'));?></span>
  103. </div>
  104. <div id="contactsmenu-menu" class="menu"
  105. aria-label="<?php p($l->t('Contacts menu'));?>"></div>
  106. </div>
  107. <div id="settings">
  108. <div id="expand" tabindex="0" role="button" class="menutoggle"
  109. aria-label="<?php p($l->t('Settings'));?>"
  110. aria-haspopup="true" aria-controls="expanddiv" aria-expanded="false">
  111. <div class="avatardiv<?php if ($_['userAvatarSet']) {
  112. print_unescaped(' avatardiv-shown');
  113. } else {
  114. print_unescaped('" style="display: none');
  115. } ?>">
  116. <?php if ($_['userAvatarSet']): ?>
  117. <img alt="" width="32" height="32"
  118. src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']]));?>"
  119. 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"
  120. >
  121. <?php endif; ?>
  122. </div>
  123. <div id="expandDisplayName" class="icon-settings-white"></div>
  124. </div>
  125. <nav class="settings-menu" id="expanddiv" style="display:none;"
  126. aria-label="<?php p($l->t('Settings menu'));?>">
  127. <ul>
  128. <?php foreach ($_['settingsnavigation'] as $entry):?>
  129. <li data-id="<?php p($entry['id']); ?>">
  130. <a href="<?php print_unescaped($entry['href']); ?>"
  131. <?php if ($entry["active"]): ?> class="active"<?php endif; ?>>
  132. <img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
  133. <?php p($entry['name']) ?>
  134. </a>
  135. </li>
  136. <?php endforeach; ?>
  137. </ul>
  138. </nav>
  139. </div>
  140. </div>
  141. </header>
  142. <div id="sudo-login-background" class="hidden"></div>
  143. <form id="sudo-login-form" class="hidden" method="POST">
  144. <label>
  145. <?php p($l->t('This action requires you to confirm your password')); ?><br/>
  146. <input type="password" class="question" autocomplete="new-password" name="question" value=" <?php /* Hack against browsers ignoring autocomplete="off" */ ?>"
  147. placeholder="<?php p($l->t('Confirm your password')); ?>" />
  148. </label>
  149. <input class="confirm" value="<?php p($l->t('Confirm')); ?>" type="submit">
  150. </form>
  151. <div id="content" class="app-<?php p($_['appid']) ?>" role="main">
  152. <?php print_unescaped($_['content']); ?>
  153. </div>
  154. </body>
  155. </html>