layout.user.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7]><html class="ng-csp ie ie6 lte9 lte8 lte7" data-placeholder-focus="false" lang="<?php p($_['language']); ?>"><![endif]-->
  3. <!--[if IE 7]><html class="ng-csp ie ie7 lte9 lte8 lte7" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" ><![endif]-->
  4. <!--[if IE 8]><html class="ng-csp ie ie8 lte9 lte8" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" ><![endif]-->
  5. <!--[if IE 9]><html class="ng-csp ie ie9 lte9" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" ><![endif]-->
  6. <!--[if gt IE 9]><html class="ng-csp ie" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" ><![endif]-->
  7. <!--[if !IE]><!--><html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" ><!--<![endif]-->
  8. <head data-user="<?php p($_['user_uid']); ?>" data-requesttoken="<?php p($_['requesttoken']); ?>">
  9. <title>
  10. <?php
  11. p(!empty($_['application'])?$_['application'].' - ':'');
  12. p($theme->getTitle());
  13. ?>
  14. </title>
  15. <meta charset="utf-8">
  16. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  17. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
  18. <meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
  19. <meta name="apple-mobile-web-app-capable" content="yes">
  20. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  21. <meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!='files')? $_['application']:'ownCloud'); ?>">
  22. <meta name="mobile-web-app-capable" content="yes">
  23. <link rel="shortcut icon" type="image/png" href="<?php print_unescaped(image_path($_['appid'], 'favicon.png')); ?>" />
  24. <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>" />
  25. <?php foreach($_['cssfiles'] as $cssfile): ?>
  26. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" type="text/css" media="screen" />
  27. <?php endforeach; ?>
  28. <?php foreach($_['jsfiles'] as $jsfile): ?>
  29. <script type="text/javascript" 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. <?php if ($_['updateAvailable']): ?>
  38. <div id="update-notification" style="display: inline;"><a href="<?php print_unescaped($_['updateLink']); ?>"><?php p($l->t('%s is available. Get more information on how to update.', array($_['updateVersion']))); ?></a></div>
  39. <?php endif; ?>
  40. </div>
  41. <header><div id="header">
  42. <a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
  43. title="" id="owncloud" tabindex="-1">
  44. <div class="logo-icon svg">
  45. <h1 class="hidden-visually">
  46. <?php p($theme->getName()); ?>
  47. </h1>
  48. </div>
  49. </a>
  50. <a href="#" class="menutoggle" tabindex="2">
  51. <h1 class="header-appname">
  52. <?php
  53. if(OC_Util::getEditionString() === '') {
  54. p(!empty($_['application'])?$_['application']: $l->t('Apps'));
  55. } else {
  56. print_unescaped($theme->getHTMLName());
  57. }
  58. ?>
  59. </h1>
  60. <div class="icon-caret svg"></div>
  61. </a>
  62. <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
  63. <div id="settings" class="svg">
  64. <div id="expand" tabindex="4" role="link">
  65. <?php if ($_['enableAvatars']): ?>
  66. <div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown"'); } else { print_unescaped('" style="display: none"'); } ?>>
  67. <?php if ($_['userAvatarSet']): ?>
  68. <img src="<?php p(link_to('', 'index.php').'/avatar/'.$_['user_uid'].'/32?requesttoken='.$_['requesttoken']); ?>"
  69. alt="" />
  70. <?php endif; ?>
  71. </div>
  72. <?php endif; ?>
  73. <span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>
  74. <img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" />
  75. </div>
  76. <div id="expanddiv">
  77. <ul>
  78. <?php foreach($_['settingsnavigation'] as $entry):?>
  79. <li>
  80. <a href="<?php print_unescaped($entry['href']); ?>" title=""
  81. <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
  82. <img class="svg" alt="" src="<?php print_unescaped($entry['icon']); ?>">
  83. <?php p($entry['name']) ?>
  84. </a>
  85. </li>
  86. <?php endforeach; ?>
  87. <li>
  88. <a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
  89. <img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg')); ?>" />
  90. <?php p($l->t('Log out'));?>
  91. </a>
  92. </li>
  93. </ul>
  94. </div>
  95. </div>
  96. <form class="searchbox" action="#" method="post">
  97. <label for="searchbox" class="hidden-visually">
  98. <?php p($l->t('Search'));?>
  99. </label>
  100. <input id="searchbox" class="svg" type="search" name="query"
  101. value="<?php if(isset($_POST['query'])) {p($_POST['query']);};?>"
  102. autocomplete="off" tabindex="3" />
  103. </form>
  104. </div></header>
  105. <nav><div id="navigation">
  106. <div id="apps" class="svg">
  107. <ul>
  108. <?php foreach($_['navigation'] as $entry): ?>
  109. <li data-id="<?php p($entry['id']); ?>">
  110. <a href="<?php print_unescaped($entry['href']); ?>" title=""
  111. <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
  112. <img class="app-icon svg" alt="" src="<?php print_unescaped($entry['icon']); ?>"/>
  113. <div class="icon-loading-dark" style="display:none;"></div>
  114. <span>
  115. <?php p($entry['name']); ?>
  116. </span>
  117. </a>
  118. </li>
  119. <?php endforeach; ?>
  120. <!-- show "More apps" link to app administration directly in app navigation, as last entry -->
  121. <?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
  122. <li id="apps-management">
  123. <a href="<?php print_unescaped(OC_Helper::linkToRoute('settings_apps')); ?>" title=""
  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']) ?>">
  138. <?php print_unescaped($_['content']); ?>
  139. </div>
  140. </div>
  141. </body>
  142. </html>