1
0

layout.user.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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="referrer" content="no-referrer">
  13. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-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. <a href="#app-content" class="button primary skip-navigation skip-content"><?php p($l->t('Skip to main content')); ?></a>
  31. <a href="#app-navigation" class="button primary skip-navigation"><?php p($l->t('Skip to navigation of app')); ?></a>
  32. <div id="notification-container">
  33. <div id="notification"></div>
  34. </div>
  35. <header role="banner" id="header">
  36. <div class="header-left">
  37. <a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
  38. id="nextcloud">
  39. <div class="logo logo-icon">
  40. <h1 class="hidden-visually">
  41. <?php p($theme->getName()); ?> <?php p(!empty($_['application'])?$_['application']: $l->t('Apps')); ?>
  42. </h1>
  43. </div>
  44. </a>
  45. <ul id="appmenu" <?php if ($_['themingInvertMenu']) { ?>class="inverted"<?php } ?>>
  46. <?php foreach ($_['navigation'] as $entry): ?>
  47. <li data-id="<?php p($entry['id']); ?>" class="hidden" tabindex="-1">
  48. <a href="<?php print_unescaped($entry['href']); ?>"
  49. <?php if ($entry['active']): ?> class="active"<?php endif; ?>
  50. aria-label="<?php p($entry['name']); ?>">
  51. <svg width="20" height="20" viewBox="0 0 20 20" alt="">
  52. <?php if ($_['themingInvertMenu']) { ?>
  53. <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>
  54. <?php } ?>
  55. <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" />
  56. </svg>
  57. <div class="icon-loading-small-dark"
  58. style="display:none;"></div>
  59. <span>
  60. <?php p($entry['name']); ?>
  61. </span>
  62. </a>
  63. </li>
  64. <?php endforeach; ?>
  65. <li id="more-apps" class="menutoggle"
  66. aria-haspopup="true" aria-controls="navigation" aria-expanded="false">
  67. <a href="#" aria-label="<?php p($l->t('More apps')); ?>">
  68. <div class="icon-more-white"></div>
  69. <span><?php p($l->t('More')); ?></span>
  70. </a>
  71. </li>
  72. </ul>
  73. <nav role="navigation">
  74. <div id="navigation" style="display: none;" aria-label="<?php p($l->t('More apps menu')); ?>">
  75. <div id="apps">
  76. <ul>
  77. <?php foreach($_['navigation'] as $entry): ?>
  78. <li data-id="<?php p($entry['id']); ?>">
  79. <a href="<?php print_unescaped($entry['href']); ?>"
  80. <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>
  81. aria-label="<?php p($entry['name']); ?>">
  82. <svg width="16" height="16" viewBox="0 0 16 16" alt="">
  83. <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>
  84. <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>
  85. </svg>
  86. <div class="icon-loading-small" style="display:none;"></div>
  87. <span><?php p($entry['name']); ?></span>
  88. </a>
  89. </li>
  90. <?php endforeach; ?>
  91. </ul>
  92. </div>
  93. </div>
  94. </nav>
  95. </div>
  96. <div class="header-right">
  97. <form class="searchbox" action="#" method="post" role="search" novalidate>
  98. <label for="searchbox" class="hidden-visually">
  99. <?php p($l->t('Search'));?>
  100. </label>
  101. <input id="searchbox" type="search" name="query"
  102. value="" required class="hidden icon-search-white"
  103. autocomplete="off">
  104. <button class="icon-close-white" type="reset"><span class="hidden-visually"><?php p($l->t('Reset search'));?></span></button>
  105. </form>
  106. <div id="contactsmenu">
  107. <div class="icon-contacts menutoggle" tabindex="0" role="button"
  108. aria-haspopup="true" aria-controls="contactsmenu-menu" aria-expanded="false">
  109. <span class="hidden-visually"><?php p($l->t('Contacts'));?></span>
  110. </div>
  111. <div id="contactsmenu-menu" class="menu"
  112. aria-label="<?php p($l->t('Contacts menu'));?>"></div>
  113. </div>
  114. <div id="settings">
  115. <div id="expand" tabindex="0" role="button" class="menutoggle"
  116. aria-label="<?php p($l->t('Settings'));?>"
  117. aria-haspopup="true" aria-controls="expanddiv" aria-expanded="false">
  118. <div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>">
  119. <?php if ($_['userAvatarSet']): ?>
  120. <img alt="" width="32" height="32"
  121. src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']]));?>"
  122. 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"
  123. >
  124. <?php endif; ?>
  125. </div>
  126. <div id="expandDisplayName" class="icon-settings-white"></div>
  127. </div>
  128. <nav id="expanddiv" style="display:none;"
  129. aria-label="<?php p($l->t('Settings menu'));?>">
  130. <ul>
  131. <?php foreach($_['settingsnavigation'] as $entry):?>
  132. <li data-id="<?php p($entry['id']); ?>">
  133. <a href="<?php print_unescaped($entry['href']); ?>"
  134. <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
  135. <img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
  136. <?php p($entry['name']) ?>
  137. </a>
  138. </li>
  139. <?php endforeach; ?>
  140. </ul>
  141. </nav>
  142. </div>
  143. </div>
  144. </div></header>
  145. <div id="sudo-login-background" class="hidden"></div>
  146. <form id="sudo-login-form" class="hidden">
  147. <label>
  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. </label>
  152. <input class="confirm" value="<?php p($l->t('Confirm')); ?>" type="submit">
  153. </form>
  154. <div id="content" class="app-<?php p($_['appid']) ?>" role="main">
  155. <?php print_unescaped($_['content']); ?>
  156. </div>
  157. </body>
  158. </html>