server/core/templates/layout.user.php

123 lines
5 KiB
PHP
Raw Normal View History

2011-04-16 21:29:54 +00:00
<!DOCTYPE html>
2013-03-03 12:57:20 +00:00
<!--[if lt IE 7]><html class="ng-csp ie ie6 lte9 lte8 lte7"><![endif]-->
<!--[if IE 7]><html class="ng-csp ie ie7 lte9 lte8 lte7"><![endif]-->
<!--[if IE 8]><html class="ng-csp ie ie8 lte9 lte8"><![endif]-->
<!--[if IE 9]><html class="ng-csp ie ie9 lte9"><![endif]-->
<!--[if gt IE 9]><html class="ng-csp ie"><![endif]-->
<!--[if !IE]><!--><html class="ng-csp"><!--<![endif]-->
2013-05-11 19:07:05 +00:00
<head data-user="<?php p($_['user_uid']); ?>" data-requesttoken="<?php p($_['requesttoken']); ?>">
<title>
<?php p(!empty($_['application'])?$_['application'].' | ':'');
p($theme->getTitle());
p(trim($_['user_displayname']) != '' ?' ('.$_['user_displayname'].') ':'') ?>
</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="apple-itunes-app" content="app-id=543672169">
2013-02-27 21:55:39 +00:00
<link rel="shortcut icon" href="<?php print_unescaped(image_path('', 'favicon.png')); ?>" />
<link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path('', 'favicon-touch.png')); ?>" />
<?php foreach($_['cssfiles'] as $cssfile): ?>
2013-02-27 21:55:39 +00:00
<link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" type="text/css" media="screen" />
<?php endforeach; ?>
<?php foreach($_['jsfiles'] as $jsfile): ?>
2013-02-27 21:55:39 +00:00
<script type="text/javascript" src="<?php print_unescaped($jsfile); ?>"></script>
<?php endforeach; ?>
<?php foreach($_['headers'] as $header): ?>
<?php
2013-02-27 21:55:39 +00:00
print_unescaped('<'.$header['tag'].' ');
2012-09-07 13:22:01 +00:00
foreach($header['attributes'] as $name=>$value) {
2013-02-27 21:55:39 +00:00
print_unescaped("$name='$value' ");
};
2013-02-27 21:55:39 +00:00
print_unescaped('/>');
?>
<?php endforeach; ?>
</head>
2013-02-27 21:55:39 +00:00
<body id="<?php p($_['bodyid']);?>">
<div id="notification-container">
<div id="notification"></div>
<?php if ($_['updateAvailable']): ?>
<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>
<?php endif; ?>
</div>
<header><div id="header">
2013-02-27 21:55:39 +00:00
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg"
src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="<?php p($theme->getName()); ?>" /></a>
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
2012-10-27 16:58:16 +00:00
<ul id="settings" class="svg">
<span id="expand" tabindex="0" role="link">
<span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>
2013-02-27 21:55:39 +00:00
<img class="svg" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" />
<?php if ($_['enableAvatars']): ?>
<div class="avatardiv"></div>
<?php endif; ?>
2012-10-27 16:58:16 +00:00
</span>
<div id="expanddiv">
2012-10-27 16:58:16 +00:00
<?php foreach($_['settingsnavigation'] as $entry):?>
<li>
2013-02-27 21:55:39 +00:00
<a href="<?php print_unescaped($entry['href']); ?>" title=""
2013-02-14 22:19:12 +00:00
<?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
2013-02-27 21:55:39 +00:00
<img class="svg" alt="" src="<?php print_unescaped($entry['icon']); ?>">
<?php p($entry['name']) ?>
2012-10-27 16:58:16 +00:00
</a>
</li>
<?php endforeach; ?>
<li>
Squashed commit of the following: commit ae1f68ac54cf2878d265b2bbce13bd600d2d0719 Author: Thomas Müller <thomas.mueller@tmit.eu> Date: Thu Aug 22 11:45:27 2013 +0200 fixing undefined variable commit 982f327ca10eea0a2222eae3e74210648591fd8a Author: Thomas Müller <thomas.mueller@tmit.eu> Date: Wed Aug 7 12:00:14 2013 +0200 adding login.php as alternative for index.php/login commit da0d7e1d096fb80789524b01f0f96fe08d147943 Author: Thomas Müller <thomas.mueller@tmit.eu> Date: Wed Aug 7 11:36:12 2013 +0200 adding a route for web login commit 8e2a01160485cf7e9a2eb8bf46f06fae73956e8e Author: Karl Beecher <karl@endocode.com> Date: Tue Aug 6 17:00:28 2013 +0200 Login attempt returns true instead of exiting immediately commit fd89d55de9e71e986e03a0de9aad9407b632e22f Author: Karl Beecher <karl@endocode.com> Date: Mon Aug 5 15:31:30 2013 +0200 Further abstraction. This change introduces the ApacheBackend interface for backends that depend on Apache authentication and session management. There are no longer references to specific backends in OC_User. commit 469cfd98aea5a37985722cf5f9e00ece0ce38178 Author: Karl Beecher <karl@endocode.com> Date: Thu Aug 1 15:46:36 2013 +0200 Make login attempt function protected. commit d803515f19ff086e2028fcaa51afae579685e596 Author: Karl Beecher <karl@endocode.com> Date: Wed Jul 31 16:00:22 2013 +0200 Amends the login link When using a Shibboleth login, clicking logout displays a message to the user instead of ending the session. commit aa8c1fcea05c8268f26a10b21c4e0bc547c3414f Author: Karl Beecher <karl@endocode.com> Date: Tue Jul 30 13:15:59 2013 +0200 Abstract Shibboleth authentication into an Apache authentication method commit 69082f2ebcab267f6e8eceb1a252f84c52236546 Author: Karl Beecher <karl@endocode.com> Date: Tue Jul 30 11:22:26 2013 +0200 Convert spaces -> tabs commit 5a80861d86855eec5906fd5e235ac4ff12efb0f2 Author: Karl Beecher <karl@endocode.com> Date: Mon Jul 29 17:40:48 2013 +0200 Separate the authentication methods SABRE authentication and base authentication have slightly different workings right now. They should be refactored into a common method later, but time pressure requires us to reinvent the wheel slightly. commit dc20a9f8764b103b7d8c5b713f2bcdae18708b65 Author: Karl Beecher <karl@endocode.com> Date: Mon Jul 29 17:07:07 2013 +0200 Authenicate calls to WebDAV against Shibboleth. When using WebDAV, the OC_Connector_Sabre_Auth::authenticate method is normally called without trying the Shibboleth authentication... thus the session is not established. The method now tries Shib authentication, setting up a session if the user has already authenticated. commit 091e4861b2246c4084c9b30e232289fde4ba1abf Author: Karl Beecher <karl@endocode.com> Date: Mon Jul 29 14:04:54 2013 +0200 Sets up the Shibboleth login attempt. commit bae710ec0579ef99b23022cc12f6876c5fe6b0d5 Author: Karl Beecher <karl@endocode.com> Date: Mon Jul 29 12:36:44 2013 +0200 Add a method for attempting shibboleth login. If the PHP_AUTH_USER and EPPN environment variables are set, attempt a Shibboleth (passwordless) login. commit 667d0710a7854e58fb109201d9cee6ec064e793a Author: Karl Beecher <karl@endocode.com> Date: Mon Jul 29 11:38:04 2013 +0200 Revert "Adds the apps2 folder with user_shibboleth backend." This reverts commit 7abbdb64676d667b0c69aca37becdc47e56dc7ef. commit 7abbdb64676d667b0c69aca37becdc47e56dc7ef Author: Karl Beecher <karl@endocode.com> Date: Mon Jul 29 11:28:06 2013 +0200 Adds the apps2 folder with user_shibboleth backend. Conflicts: core/templates/layout.user.php lib/base.php
2013-10-01 11:25:58 +00:00
<a id="logout" <?php print OC_User::getLogoutAttribute(); ?>>
2013-02-27 21:55:39 +00:00
<img class="svg" alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg')); ?>" />
<?php p($l->t('Log out'));?>
2012-10-27 16:58:16 +00:00
</a>
</li>
</div>
</ul>
<form class="searchbox" action="#" method="post">
2013-02-14 22:19:12 +00:00
<input id="searchbox" class="svg" type="search" name="query"
2013-02-27 21:55:39 +00:00
value="<?php if(isset($_POST['query'])) {p($_POST['query']);};?>"
2013-02-14 22:19:12 +00:00
autocomplete="off" x-webkit-speech />
2011-08-10 20:56:44 +00:00
</form>
</div></header>
<nav><div id="navigation">
<ul id="apps" class="svg">
<div class="wrapper"><!-- for sticky footer of apps management -->
2011-08-08 15:52:29 +00:00
<?php foreach($_['navigation'] as $entry): ?>
2013-02-27 21:55:39 +00:00
<li data-id="<?php p($entry['id']); ?>">
<a href="<?php print_unescaped($entry['href']); ?>" title=""
2013-02-14 22:19:12 +00:00
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
2013-02-27 21:55:39 +00:00
<img class="icon svg" src="<?php print_unescaped($entry['icon']); ?>"/>
<span>
<?php p($entry['name']); ?>
</span>
</a>
2011-08-08 15:52:29 +00:00
</li>
<?php endforeach; ?>
<?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
<div class="push"></div><!-- for for sticky footer of apps management -->
<?php endif; ?>
</div>
<!-- show "More apps" link to app administration directly in app navigation, as sticky footer -->
<?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
<li id="apps-management">
<a href="<?php print_unescaped(OC_Helper::linkToRoute('settings_apps').'?installed'); ?>" title=""
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
<img class="icon svg" src="<?php print_unescaped(OC_Helper::imagePath('settings', 'apps.svg')); ?>"/>
<span>
<?php p($l->t('Apps')); ?>
</span>
</a>
</li>
<?php endif; ?>
2011-08-08 15:52:29 +00:00
</ul>
</div></nav>
<div id="content-wrapper">
<div id="content">
2013-02-27 21:55:39 +00:00
<?php print_unescaped($_['content']); ?>
</div>
</div>
</body>
</html>