layout.user.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7]><html class="ng-csp ie ie6 lte9 lte8 lte7"><![endif]-->
  3. <!--[if IE 7]><html class="ng-csp ie ie7 lte9 lte8 lte7"><![endif]-->
  4. <!--[if IE 8]><html class="ng-csp ie ie8 lte9 lte8"><![endif]-->
  5. <!--[if IE 9]><html class="ng-csp ie ie9 lte9"><![endif]-->
  6. <!--[if gt IE 9]><html class="ng-csp ie"><![endif]-->
  7. <!--[if !IE]><!--><html class="ng-csp"><!--<![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">
  18. <meta name="apple-itunes-app" content="app-id=543672169">
  19. <link rel="shortcut icon" href="<?php print_unescaped(image_path('', 'favicon.png')); ?>" />
  20. <link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path('', 'favicon-touch.png')); ?>" />
  21. <?php foreach($_['cssfiles'] as $cssfile): ?>
  22. <link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" type="text/css" media="screen" />
  23. <?php endforeach; ?>
  24. <?php foreach($_['jsfiles'] as $jsfile): ?>
  25. <script type="text/javascript" src="<?php print_unescaped($jsfile); ?>"></script>
  26. <?php endforeach; ?>
  27. <?php foreach($_['headers'] as $header): ?>
  28. <?php
  29. print_unescaped('<'.$header['tag'].' ');
  30. foreach($header['attributes'] as $name=>$value) {
  31. print_unescaped("$name='$value' ");
  32. };
  33. print_unescaped('/>');
  34. ?>
  35. <?php endforeach; ?>
  36. </head>
  37. <body id="<?php p($_['bodyid']);?>">
  38. <div id="notification-container">
  39. <div id="notification"></div>
  40. <?php if ($_['updateAvailable']): ?>
  41. <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>
  42. <?php endif; ?>
  43. </div>
  44. <header><div id="header">
  45. <a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg"
  46. src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="<?php p($theme->getName()); ?>" /></a>
  47. <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
  48. <ul id="settings" class="svg">
  49. <span id="expand" tabindex="0" role="link">
  50. <span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>
  51. <img class="svg" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" />
  52. <?php if ($_['enableAvatars']): ?>
  53. <div class="avatardiv"></div>
  54. <?php endif; ?>
  55. </span>
  56. <div id="expanddiv">
  57. <?php foreach($_['settingsnavigation'] as $entry):?>
  58. <li>
  59. <a href="<?php print_unescaped($entry['href']); ?>" title=""
  60. <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
  61. <img class="svg" alt="" src="<?php print_unescaped($entry['icon']); ?>">
  62. <?php p($entry['name']) ?>
  63. </a>
  64. </li>
  65. <?php endforeach; ?>
  66. <li>
  67. <a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
  68. <img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg')); ?>" />
  69. <?php p($l->t('Log out'));?>
  70. </a>
  71. </li>
  72. </div>
  73. </ul>
  74. <form class="searchbox" action="#" method="post">
  75. <input id="searchbox" class="svg" type="search" name="query"
  76. value="<?php if(isset($_POST['query'])) {p($_POST['query']);};?>"
  77. autocomplete="off" x-webkit-speech />
  78. </form>
  79. </div></header>
  80. <nav><div id="navigation">
  81. <ul id="apps" class="svg">
  82. <div class="wrapper"><!-- for sticky footer of apps management -->
  83. <?php foreach($_['navigation'] as $entry): ?>
  84. <li data-id="<?php p($entry['id']); ?>">
  85. <a href="<?php print_unescaped($entry['href']); ?>" title=""
  86. <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
  87. <img class="icon svg" src="<?php print_unescaped($entry['icon']); ?>"/>
  88. <span>
  89. <?php p($entry['name']); ?>
  90. </span>
  91. </a>
  92. </li>
  93. <?php endforeach; ?>
  94. <?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
  95. <div class="push"></div><!-- for for sticky footer of apps management -->
  96. <?php endif; ?>
  97. </div>
  98. <!-- show "More apps" link to app administration directly in app navigation, as sticky footer -->
  99. <?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
  100. <li id="apps-management">
  101. <a href="<?php print_unescaped(OC_Helper::linkToRoute('settings_apps').'?installed'); ?>" title=""
  102. <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
  103. <img class="icon svg" src="<?php print_unescaped(OC_Helper::imagePath('settings', 'apps.svg')); ?>"/>
  104. <span>
  105. <?php p($l->t('Apps')); ?>
  106. </span>
  107. </a>
  108. </li>
  109. <?php endif; ?>
  110. </ul>
  111. </div></nav>
  112. <div id="content-wrapper">
  113. <div id="content">
  114. <?php print_unescaped($_['content']); ?>
  115. </div>
  116. </div>
  117. </body>
  118. </html>