layout.user.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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-requesttoken="<?php p($_['requesttoken']); ?>"
  6. <?php if ($_['updateAvailable']): ?>
  7. data-update-version="<?php print($_['updateVersion']); ?>" data-update-link="<?php print_unescaped($_['updateLink']); ?>"
  8. <?php endif; ?>
  9. >
  10. <meta charset="utf-8">
  11. <title>
  12. <?php
  13. p(!empty($_['application'])?$_['application'].' - ':'');
  14. p($theme->getTitle());
  15. ?>
  16. </title>
  17. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  18. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
  19. <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  20. <meta name="apple-mobile-web-app-capable" content="yes">
  21. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  22. <meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!='files')? $_['application']:'ownCloud'); ?>">
  23. <meta name="mobile-web-app-capable" content="yes">
  24. <link rel="shortcut icon" type="image/png" href="<?php print_unescaped(image_path($_['appid'], 'favicon.png')); ?>">
  25. <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
  26. <?php foreach($_['cssfiles'] as $cssfile): ?>
  27. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" media="screen">
  28. <?php endforeach; ?>
  29. <?php foreach($_['jsfiles'] as $jsfile): ?>
  30. <script src="<?php print_unescaped($jsfile); ?>"></script>
  31. <?php endforeach; ?>
  32. <?php print_unescaped($_['headers']); ?>
  33. </head>
  34. <body id="<?php p($_['bodyid']);?>">
  35. <?php include('layout.noscript.warning.php'); ?>
  36. <div id="notification-container">
  37. <div id="notification"></div>
  38. </div>
  39. <header role="banner"><div id="header">
  40. <a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
  41. id="owncloud" tabindex="1">
  42. <div class="logo-icon svg">
  43. <h1 class="hidden-visually">
  44. <?php p($theme->getName()); ?>
  45. </h1>
  46. </div>
  47. </a>
  48. <a href="#" class="header-appname-container menutoggle" tabindex="2">
  49. <h1 class="header-appname">
  50. <?php
  51. if(OC_Util::getEditionString() === '') {
  52. p(!empty($_['application'])?$_['application']: $l->t('Apps'));
  53. } else {
  54. print_unescaped($theme->getHTMLName());
  55. }
  56. ?>
  57. </h1>
  58. <div class="icon-caret svg"></div>
  59. </a>
  60. <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
  61. <div id="settings" class="svg">
  62. <div id="expand" tabindex="6" role="link">
  63. <?php if ($_['enableAvatars']): ?>
  64. <div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>">
  65. <?php if ($_['userAvatarSet']): ?>
  66. <img src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32]));?>?requesttoken=<?php p(urlencode($_['requesttoken'])); ?>"
  67. alt="">
  68. <?php endif; ?>
  69. </div>
  70. <?php endif; ?>
  71. <span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>
  72. <img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>">
  73. </div>
  74. <div id="expanddiv">
  75. <ul>
  76. <?php foreach($_['settingsnavigation'] as $entry):?>
  77. <li>
  78. <a href="<?php print_unescaped($entry['href']); ?>"
  79. <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
  80. <img class="svg" alt="" src="<?php print_unescaped($entry['icon']); ?>">
  81. <?php p($entry['name']) ?>
  82. </a>
  83. </li>
  84. <?php endforeach; ?>
  85. <li>
  86. <a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
  87. <img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg')); ?>">
  88. <?php p($l->t('Log out'));?>
  89. </a>
  90. </li>
  91. </ul>
  92. </div>
  93. </div>
  94. <form class="searchbox" action="#" method="post" role="search">
  95. <label for="searchbox" class="hidden-visually">
  96. <?php p($l->t('Search'));?>
  97. </label>
  98. <input id="searchbox" class="svg" type="search" name="query"
  99. value="<?php if(isset($_POST['query'])) {p($_POST['query']);};?>"
  100. autocomplete="off" tabindex="5">
  101. </form>
  102. </div></header>
  103. <nav role="navigation"><div id="navigation">
  104. <div id="apps" class="svg">
  105. <ul>
  106. <?php foreach($_['navigation'] as $entry): ?>
  107. <li data-id="<?php p($entry['id']); ?>">
  108. <a href="<?php print_unescaped($entry['href']); ?>" tabindex="3"
  109. <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
  110. <img class="app-icon svg" alt="" src="<?php print_unescaped($entry['icon']); ?>">
  111. <div class="icon-loading-dark" style="display:none;"></div>
  112. <span>
  113. <?php p($entry['name']); ?>
  114. </span>
  115. </a>
  116. </li>
  117. <?php endforeach; ?>
  118. <?php
  119. /* show "More apps" link to app administration directly in app navigation, as last entry */
  120. if(OC_User::isAdminUser(OC_User::getUser())):
  121. ?>
  122. <li id="apps-management">
  123. <a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
  124. <?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
  125. <img class="app-icon svg" alt="" src="<?php print_unescaped(OC_Helper::imagePath('settings', 'apps.svg')); ?>">
  126. <div class="icon-loading-dark" style="display:none;"></div>
  127. <span>
  128. <?php p($l->t('Apps')); ?>
  129. </span>
  130. </a>
  131. </li>
  132. <?php endif; ?>
  133. </ul>
  134. </div>
  135. </div></nav>
  136. <div id="content-wrapper">
  137. <div id="content" class="app-<?php p($_['appid']) ?>" role="main">
  138. <?php print_unescaped($_['content']); ?>
  139. </div>
  140. </div>
  141. </body>
  142. </html>