layout.user.php 5.1 KB

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