layout.user.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>ownCloud</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <link rel="shortcut icon" href="<?php echo image_path('', 'favicon.png'); ?>" /><link rel="apple-touch-icon-precomposed" href="<?php echo image_path('', 'favicon-touch.png'); ?>" />
  7. <?php foreach($_['cssfiles'] as $cssfile): ?>
  8. <link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" />
  9. <?php endforeach; ?>
  10. <script type="text/javascript">
  11. var oc_webroot = '<?php echo OC::$WEBROOT; ?>';
  12. var oc_current_user = '<?php echo OC_User::getUser() ?>';
  13. </script>
  14. <?php foreach($_['jsfiles'] as $jsfile): ?>
  15. <script type="text/javascript" src="<?php echo $jsfile; ?>"></script>
  16. <?php endforeach; ?>
  17. <?php foreach($_['headers'] as $header): ?>
  18. <?php
  19. echo '<'.$header['tag'].' ';
  20. foreach($header['attributes'] as $name=>$value){
  21. echo "$name='$value' ";
  22. };
  23. echo '/>';
  24. ?>
  25. <?php endforeach; ?>
  26. </head>
  27. <body id="<?php echo $_['bodyid'];?>">
  28. <header><div id="header">
  29. <a href="<?php echo link_to('', 'index.php'); ?>" title="" id="owncloud"><img class="svg" src="<?php echo image_path('', 'logo-wide.svg'); ?>" alt="ownCloud" /></a>
  30. <form class="searchbox" action="#" method="post">
  31. <input id="searchbox" class="svg" type="search" name="query" value="<?php if(isset($_POST['query'])){echo $_POST['query'];};?>" autocomplete="off" />
  32. </form>
  33. <a id="logout" href="<?php echo link_to('', 'index.php'); ?>?logout=true"><img class="svg" alt="<?php echo $l->t('Log out');?>" src="<?php echo image_path('', 'actions/logout.svg'); ?>" /></a>
  34. </div></header>
  35. <nav><div id="navigation">
  36. <ul id="apps" class="svg">
  37. <?php foreach($_['navigation'] as $entry): ?>
  38. <li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>><?php echo $entry['name']; ?></a>
  39. </li>
  40. <?php endforeach; ?>
  41. </ul>
  42. <ul id="settings" class="svg">
  43. <img id="expand" class="svg" alt="<?php echo $l->t('Settings');?>" src="<?php echo image_path('', 'actions/settings.svg'); ?>" />
  44. <span style="display:none"><?php echo $l->t('Settings');?></span>
  45. <div id="expanddiv">
  46. <?php foreach($_['settingsnavigation'] as $entry):?>
  47. <li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>><?php echo $entry['name'] ?></a></li>
  48. <?php endforeach; ?>
  49. </div>
  50. </ul>
  51. </div></nav>
  52. <div id="content">
  53. <?php echo $_['content']; ?>
  54. </div>
  55. </body>
  56. </html>