layout.user.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <!DOCTYPE html>
  2. <!--[if lte IE 8]><html class="ng-csp ie ie8 lte9 lte8" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" ><![endif]-->
  3. <!--[if IE 9]><html class="ng-csp ie ie9 lte9" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" ><![endif]-->
  4. <!--[if (gt IE 9)|!(IE)]><!--><html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" ><!--<![endif]-->
  5. <head data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>" data-requesttoken="<?php p($_['requesttoken']); ?>">
  6. <meta charset="utf-8">
  7. <title>
  8. <?php
  9. p(!empty($_['application'])?$_['application'].' - ':'');
  10. p($theme->getTitle());
  11. ?>
  12. </title>
  13. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  14. <meta name="referrer" content="never">
  15. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
  16. <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  17. <meta name="apple-mobile-web-app-capable" content="yes">
  18. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  19. <meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!='files')? $_['application']:'ownCloud'); ?>">
  20. <meta name="mobile-web-app-capable" content="yes">
  21. <meta name="theme-color" content="<?php p($theme->getMailHeaderColor()); ?>">
  22. <link rel="shortcut icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>">
  23. <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
  24. <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="#1d2d44">
  25. <?php foreach($_['cssfiles'] as $cssfile): ?>
  26. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" media="screen">
  27. <?php endforeach; ?>
  28. <?php foreach($_['jsfiles'] as $jsfile): ?>
  29. <script src="<?php print_unescaped($jsfile); ?>"></script>
  30. <?php endforeach; ?>
  31. <?php print_unescaped($_['headers']); ?>
  32. </head>
  33. <body id="<?php p($_['bodyid']);?>">
  34. <?php include('layout.noscript.warning.php'); ?>
  35. <div id="notification-container">
  36. <div id="notification"></div>
  37. </div>
  38. <header role="banner"><div id="header">
  39. <a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
  40. id="owncloud" tabindex="1">
  41. <div class="logo-icon svg">
  42. <h1 class="hidden-visually">
  43. <?php p($theme->getName()); ?>
  44. </h1>
  45. </div>
  46. </a>
  47. <a href="#" class="header-appname-container menutoggle" tabindex="2">
  48. <h1 class="header-appname">
  49. <?php
  50. if(OC_Util::getEditionString() === '') {
  51. p(!empty($_['application'])?$_['application']: $l->t('Apps'));
  52. } else {
  53. print_unescaped($theme->getHTMLName());
  54. }
  55. ?>
  56. </h1>
  57. <div class="icon-caret svg"></div>
  58. </a>
  59. <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
  60. <div id="settings" class="svg">
  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]));?>"
  67. srcset="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 64]));?> 2x, <?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 128]));?> 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. <img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>">
  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 class="svg" alt="" src="<?php print_unescaped($entry['icon']); ?>">
  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 class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg')); ?>">
  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" class="svg" 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" class="svg">
  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. <img class="app-icon svg" alt="" src="<?php print_unescaped($entry['icon']); ?>">
  112. <div class="icon-loading-dark" style="display:none;"></div>
  113. <span>
  114. <?php p($entry['name']); ?>
  115. </span>
  116. </a>
  117. </li>
  118. <?php endforeach; ?>
  119. <?php
  120. /* show "More apps" link to app administration directly in app navigation, as last entry */
  121. if(OC_User::isAdminUser(OC_User::getUser())):
  122. ?>
  123. <li id="apps-management">
  124. <a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
  125. <?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
  126. <img class="app-icon svg" alt="" src="<?php print_unescaped(image_path('settings', 'apps.svg')); ?>">
  127. <div class="icon-loading-dark" style="display:none;"></div>
  128. <span>
  129. <?php p($l->t('Apps')); ?>
  130. </span>
  131. </a>
  132. </li>
  133. <?php endif; ?>
  134. </ul>
  135. </div>
  136. </div></nav>
  137. <div id="content-wrapper">
  138. <div id="content" class="app-<?php p($_['appid']) ?>" role="main">
  139. <?php print_unescaped($_['content']); ?>
  140. </div>
  141. </div>
  142. </body>
  143. </html>