layout.user.php 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 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_appswebroots = <?php echo $_['apps_paths'] ?>;
  13. var oc_current_user = '<?php echo OC_User::getUser() ?>';
  14. var oc_requesttoken = '<?php echo $_['requesttoken']; ?>';
  15. var datepickerFormatDate = <?php echo json_encode($l->l('jsdate', 'jsdate')) ?>;
  16. var dayNames = <?php echo json_encode(array((string)$l->t('Sunday'), (string)$l->t('Monday'), (string)$l->t('Tuesday'), (string)$l->t('Wednesday'), (string)$l->t('Thursday'), (string)$l->t('Friday'), (string)$l->t('Saturday'))) ?>;
  17. var monthNames = <?php echo json_encode(array((string)$l->t('January'), (string)$l->t('February'), (string)$l->t('March'), (string)$l->t('April'), (string)$l->t('May'), (string)$l->t('June'), (string)$l->t('July'), (string)$l->t('August'), (string)$l->t('September'), (string)$l->t('October'), (string)$l->t('November'), (string)$l->t('December'))) ?>;
  18. var firstDay = <?php echo json_encode($l->l('firstday', 'firstday')) ?>;
  19. </script>
  20. <?php foreach($_['jsfiles'] as $jsfile): ?>
  21. <script type="text/javascript" src="<?php echo $jsfile; ?>"></script>
  22. <?php endforeach; ?>
  23. <script type="text/javascript">
  24. requesttoken = '<?php echo $_['requesttoken']; ?>';
  25. OC.EventSource.requesttoken=requesttoken;
  26. $(document).bind('ajaxSend', function(elm, xhr, s) {
  27. xhr.setRequestHeader('requesttoken', requesttoken);
  28. });
  29. </script>
  30. <?php foreach($_['headers'] as $header): ?>
  31. <?php
  32. echo '<'.$header['tag'].' ';
  33. foreach($header['attributes'] as $name=>$value) {
  34. echo "$name='$value' ";
  35. };
  36. echo '/>';
  37. ?>
  38. <?php endforeach; ?>
  39. </head>
  40. <body id="<?php echo $_['bodyid'];?>">
  41. <header><div id="header">
  42. <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>
  43. <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'); echo OC_User::getUser()?' ('.OC_User::getUser().') ':'' ?>" src="<?php echo image_path('', 'actions/logout.svg'); ?>" /></a>
  44. <form class="searchbox header-right" action="#" method="post">
  45. <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 />
  46. </form>
  47. </div></header>
  48. <nav><div id="navigation">
  49. <ul id="apps" class="svg">
  50. <?php foreach($_['navigation'] as $entry): ?>
  51. <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>
  52. </li>
  53. <?php endforeach; ?>
  54. </ul>
  55. <ul id="settings" class="svg">
  56. <img role=button tabindex=0 id="expand" class="svg" alt="<?php echo $l->t('Settings');?>" src="<?php echo image_path('', 'actions/settings.svg'); ?>" />
  57. <span><?php echo $l->t('Settings');?></span>
  58. <div id="expanddiv" <?php if($_['bodyid'] == 'body-user') echo 'style="display:none;"'; ?>>
  59. <?php foreach($_['settingsnavigation'] as $entry):?>
  60. <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>
  61. <?php endforeach; ?>
  62. </div>
  63. </ul>
  64. </div></nav>
  65. <div id="content">
  66. <?php echo $_['content']; ?>
  67. </div>
  68. </body>
  69. </html>