layout.user.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. <noscript><div id="nojavascript"><div><?php print_unescaped($l->t('This application requires JavaScript to be enabled for correct operation. Please <a href="http://enable-javascript.com/" target="_blank">enable JavaScript</a> and re-load this interface.')); ?></div></div></noscript>
  39. <div id="notification-container">
  40. <div id="notification"></div>
  41. <?php if ($_['updateAvailable']): ?>
  42. <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>
  43. <?php endif; ?>
  44. </div>
  45. <header><div id="header">
  46. <a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg"
  47. src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="<?php p($theme->getName()); ?>" /></a>
  48. <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
  49. <ul id="settings" class="svg">
  50. <span id="expand" tabindex="0" role="link">
  51. <span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>
  52. <img class="svg" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" />
  53. <?php if ($_['enableAvatars']): ?>
  54. <div class="avatardiv"></div>
  55. <?php endif; ?>
  56. </span>
  57. <div id="expanddiv">
  58. <?php foreach($_['settingsnavigation'] as $entry):?>
  59. <li>
  60. <a href="<?php print_unescaped($entry['href']); ?>" title=""
  61. <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
  62. <img class="svg" alt="" src="<?php print_unescaped($entry['icon']); ?>">
  63. <?php p($entry['name']) ?>
  64. </a>
  65. </li>
  66. <?php endforeach; ?>
  67. <li>
  68. <a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
  69. <img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg')); ?>" />
  70. <?php p($l->t('Log out'));?>
  71. </a>
  72. </li>
  73. </div>
  74. </ul>
  75. <form class="searchbox" action="#" method="post">
  76. <input id="searchbox" class="svg" type="search" name="query"
  77. value="<?php if(isset($_POST['query'])) {p($_POST['query']);};?>"
  78. autocomplete="off" x-webkit-speech />
  79. </form>
  80. </div></header>
  81. <nav><div id="navigation">
  82. <ul id="apps" class="svg">
  83. <div class="wrapper"><!-- for sticky footer of apps management -->
  84. <?php foreach($_['navigation'] as $entry): ?>
  85. <li data-id="<?php p($entry['id']); ?>">
  86. <a href="<?php print_unescaped($entry['href']); ?>" title=""
  87. <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
  88. <img class="icon svg" src="<?php print_unescaped($entry['icon']); ?>"/>
  89. <span>
  90. <?php p($entry['name']); ?>
  91. </span>
  92. </a>
  93. </li>
  94. <?php endforeach; ?>
  95. <?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
  96. <div class="push"></div><!-- for for sticky footer of apps management -->
  97. <?php endif; ?>
  98. </div>
  99. <!-- show "More apps" link to app administration directly in app navigation, as sticky footer -->
  100. <?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
  101. <li id="apps-management">
  102. <a href="<?php print_unescaped(OC_Helper::linkToRoute('settings_apps').'?installed'); ?>" title=""
  103. <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
  104. <img class="icon svg" src="<?php print_unescaped(OC_Helper::imagePath('settings', 'apps.svg')); ?>"/>
  105. <span>
  106. <?php p($l->t('Apps')); ?>
  107. </span>
  108. </a>
  109. </li>
  110. <?php endif; ?>
  111. </ul>
  112. </div></nav>
  113. <div id="content-wrapper">
  114. <div id="content">
  115. <?php print_unescaped($_['content']); ?>
  116. </div>
  117. </div>
  118. </body>
  119. </html>