layout.user.php 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title><?php echo isset($_['application']) && !empty($_['application'])?$_['application'].' | ':'' ?>ownCloud <?php echo OC_User::getUser()?' ('.OC_User::getUser().') ':'' ?></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 if (!empty(OC_Util::$core_styles)): ?>
  8. <link rel="stylesheet" href="<?php echo OC_Helper::linkToRemote('core.css', false) ?>" type="text/css" media="screen" />
  9. <?php endif ?>
  10. <?php foreach($_['cssfiles'] as $cssfile): ?>
  11. <link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" />
  12. <?php endforeach; ?>
  13. <script type="text/javascript">
  14. var oc_webroot = '<?php echo OC::$WEBROOT; ?>';
  15. var oc_appswebroots = <?php echo $_['apps_paths'] ?>;
  16. var oc_current_user = '<?php echo OC_User::getUser() ?>';
  17. </script>
  18. <?php if (!empty(OC_Util::$core_scripts)): ?>
  19. <script type="text/javascript" src="<?php echo OC_Helper::linkToRemote('core.js', false) ?>"></script>
  20. <?php endif ?>
  21. <?php foreach($_['jsfiles'] as $jsfile): ?>
  22. <script type="text/javascript" src="<?php echo $jsfile; ?>"></script>
  23. <?php endforeach; ?>
  24. <?php foreach($_['headers'] as $header): ?>
  25. <?php
  26. echo '<'.$header['tag'].' ';
  27. foreach($header['attributes'] as $name=>$value){
  28. echo "$name='$value' ";
  29. };
  30. echo '/>';
  31. ?>
  32. <?php endforeach; ?>
  33. <script type="text/javascript">
  34. $(function() {
  35. requesttoken = '<?php echo $_['requesttoken']; ?>';
  36. OC.EventSource.requesttoken=requesttoken;
  37. $(document).bind('ajaxSend', function(elm, xhr, s){
  38. if(requesttoken) {
  39. xhr.setRequestHeader('requesttoken', requesttoken);
  40. }
  41. });
  42. });
  43. </script>
  44. </head>
  45. <body id="<?php echo $_['bodyid'];?>">
  46. <header><div id="header">
  47. <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>
  48. <a class="header-right header-action" id="logout" href="<?php echo link_to('', 'index.php'); ?>?logout=true"><img class="svg" alt="<?php echo $l->t('Log out');?>" title="<?php echo $l->t('Log out');?>" src="<?php echo image_path('', 'actions/logout.svg'); ?>" /></a>
  49. <form class="searchbox header-right" action="#" method="post">
  50. <input id="searchbox" class="svg" type="search" name="query" value="<?php if(isset($_POST['query'])){echo OC_Util::sanitizeHTML($_POST['query']);};?>" autocomplete="off" x-webkit-speech />
  51. </form>
  52. </div></header>
  53. <nav><div id="navigation">
  54. <ul id="apps" class="svg">
  55. <?php foreach($_['navigation'] as $entry): ?>
  56. <li data-id="<?php echo $entry['id']; ?>"><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>
  57. </li>
  58. <?php endforeach; ?>
  59. </ul>
  60. <ul id="settings" class="svg">
  61. <img role=button tabindex=0 id="expand" class="svg" alt="<?php echo $l->t('Settings');?>" src="<?php echo image_path('', 'actions/settings.svg'); ?>" />
  62. <span><?php echo $l->t('Settings');?></span>
  63. <div id="expanddiv" <?php if($_['bodyid'] == 'body-user') echo 'style="display:none;"'; ?>>
  64. <?php foreach($_['settingsnavigation'] as $entry):?>
  65. <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>
  66. <?php endforeach; ?>
  67. </div>
  68. </ul>
  69. </div></nav>
  70. <div id="content">
  71. <?php echo $_['content']; ?>
  72. </div>
  73. </body>
  74. </html>