2011-04-16 21:29:54 +00:00
|
|
|
<!DOCTYPE html>
|
2016-06-16 06:28:43 +00:00
|
|
|
<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" >
|
2016-02-09 12:06:48 +00:00
|
|
|
<head data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>" data-requesttoken="<?php p($_['requesttoken']); ?>">
|
2015-03-17 22:36:05 +00:00
|
|
|
<meta charset="utf-8">
|
2013-06-12 12:33:24 +00:00
|
|
|
<title>
|
2013-10-17 08:40:06 +00:00
|
|
|
<?php
|
|
|
|
p(!empty($_['application'])?$_['application'].' - ':'');
|
|
|
|
p($theme->getTitle());
|
|
|
|
?>
|
2013-06-12 12:33:24 +00:00
|
|
|
</title>
|
2015-03-18 01:11:47 +00:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
2015-09-09 16:07:43 +00:00
|
|
|
<meta name="referrer" content="never">
|
2014-03-25 22:35:55 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
|
2014-08-28 08:12:59 +00:00
|
|
|
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
|
2014-07-08 11:14:54 +00:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
2016-10-07 07:44:42 +00:00
|
|
|
<meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!='files')? $_['application']:$theme->getTitle()); ?>">
|
2014-07-08 11:14:54 +00:00
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
2015-07-29 16:16:01 +00:00
|
|
|
<meta name="theme-color" content="<?php p($theme->getMailHeaderColor()); ?>">
|
2016-03-08 20:09:34 +00:00
|
|
|
<link rel="icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>">
|
2015-03-17 22:57:23 +00:00
|
|
|
<link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
|
2016-06-08 14:46:26 +00:00
|
|
|
<link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="#0082c9">
|
2011-04-16 17:49:18 +00:00
|
|
|
<?php foreach($_['cssfiles'] as $cssfile): ?>
|
2015-06-10 10:16:45 +00:00
|
|
|
<link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>">
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php foreach($_['printcssfiles'] as $cssfile): ?>
|
|
|
|
<link rel="stylesheet" href="<?php print_unescaped($cssfile); ?>" media="print">
|
2011-03-09 20:57:00 +00:00
|
|
|
<?php endforeach; ?>
|
2016-10-25 19:36:37 +00:00
|
|
|
<?php if (isset($_['inline_ocjs'])): ?>
|
|
|
|
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" type="text/javascript">
|
|
|
|
<?php print_unescaped($_['inline_ocjs']); ?>
|
|
|
|
</script>
|
|
|
|
<?php endif; ?>
|
2011-04-16 17:49:18 +00:00
|
|
|
<?php foreach($_['jsfiles'] as $jsfile): ?>
|
2016-10-24 14:31:06 +00:00
|
|
|
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php print_unescaped($jsfile); ?>"></script>
|
2011-03-09 20:57:00 +00:00
|
|
|
<?php endforeach; ?>
|
2014-10-28 10:15:58 +00:00
|
|
|
<?php print_unescaped($_['headers']); ?>
|
2011-03-02 10:56:48 +00:00
|
|
|
</head>
|
2013-02-27 21:55:39 +00:00
|
|
|
<body id="<?php p($_['bodyid']);?>">
|
2015-02-09 15:01:52 +00:00
|
|
|
<?php include('layout.noscript.warning.php'); ?>
|
2013-01-11 10:52:07 +00:00
|
|
|
<div id="notification-container">
|
2013-01-11 14:19:53 +00:00
|
|
|
<div id="notification"></div>
|
2013-01-11 10:52:07 +00:00
|
|
|
</div>
|
2015-03-18 18:29:15 +00:00
|
|
|
<header role="banner"><div id="header">
|
2017-01-16 13:29:41 +00:00
|
|
|
<div id="header-left">
|
2017-01-03 15:06:53 +00:00
|
|
|
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>"
|
|
|
|
id="nextcloud" tabindex="1">
|
|
|
|
<div class="logo-icon">
|
|
|
|
<h1 class="hidden-visually">
|
|
|
|
<?php p($theme->getName()); ?>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
</a>
|
2014-12-17 15:05:01 +00:00
|
|
|
|
2017-01-03 15:06:53 +00:00
|
|
|
<a href="#" class="header-appname-container menutoggle" tabindex="2">
|
|
|
|
<h1 class="header-appname">
|
|
|
|
<?php p(!empty($_['application'])?$_['application']: $l->t('Apps')); ?>
|
|
|
|
</h1>
|
|
|
|
<div class="icon-caret"></div>
|
|
|
|
</a>
|
|
|
|
</div>
|
2014-12-17 15:05:01 +00:00
|
|
|
|
2013-10-01 22:32:11 +00:00
|
|
|
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
|
2017-01-03 15:06:53 +00:00
|
|
|
<div id="header-right">
|
|
|
|
<form class="searchbox" action="#" method="post" role="search" novalidate>
|
|
|
|
<label for="searchbox" class="hidden-visually">
|
|
|
|
<?php p($l->t('Search'));?>
|
|
|
|
</label>
|
|
|
|
<input id="searchbox" type="search" name="query"
|
|
|
|
value="" required
|
|
|
|
autocomplete="off" tabindex="5">
|
|
|
|
</form>
|
|
|
|
<div id="settings">
|
|
|
|
<div id="expand" tabindex="6" role="link" class="menutoggle">
|
|
|
|
<?php if ($_['enableAvatars']): ?>
|
|
|
|
<div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>">
|
|
|
|
<?php if ($_['userAvatarSet']): ?>
|
|
|
|
<img alt="" width="32" height="32"
|
|
|
|
src="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 32, 'v' => $_['userAvatarVersion']]));?>"
|
|
|
|
srcset="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 64, 'v' => $_['userAvatarVersion']]));?> 2x, <?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', ['userId' => $_['user_uid'], 'size' => 128, 'v' => $_['userAvatarVersion']]));?> 4x"
|
|
|
|
>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2014-03-15 14:27:48 +00:00
|
|
|
<?php endif; ?>
|
2017-01-03 15:06:53 +00:00
|
|
|
<span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>
|
|
|
|
<div class="icon-caret"></div>
|
|
|
|
</div>
|
|
|
|
<div id="expanddiv">
|
|
|
|
<ul>
|
|
|
|
<?php foreach($_['settingsnavigation'] as $entry):?>
|
|
|
|
<li>
|
|
|
|
<a href="<?php print_unescaped($entry['href']); ?>"
|
|
|
|
<?php if( $entry["active"] ): ?> class="active"<?php endif; ?>>
|
|
|
|
<img alt="" src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>">
|
|
|
|
<?php p($entry['name']) ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<li>
|
|
|
|
<a id="logout" <?php print_unescaped(OC_User::getLogoutAttribute()); ?>>
|
|
|
|
<img alt="" src="<?php print_unescaped(image_path('', 'actions/logout.svg') . '?v=' . $_['versionHash']); ?>">
|
|
|
|
<?php p($l->t('Log out'));?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2014-03-15 14:27:48 +00:00
|
|
|
</div>
|
2012-10-27 16:58:16 +00:00
|
|
|
</div>
|
2013-12-10 00:45:15 +00:00
|
|
|
</div>
|
2011-08-09 08:30:37 +00:00
|
|
|
</div></header>
|
2011-03-02 10:56:48 +00:00
|
|
|
|
2015-03-18 18:29:15 +00:00
|
|
|
<nav role="navigation"><div id="navigation">
|
2016-06-23 11:39:28 +00:00
|
|
|
<div id="apps">
|
2014-06-04 13:27:46 +00:00
|
|
|
<ul>
|
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']); ?>">
|
2015-04-01 19:10:48 +00:00
|
|
|
<a href="<?php print_unescaped($entry['href']); ?>" tabindex="3"
|
2013-02-14 22:19:12 +00:00
|
|
|
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
|
2016-07-28 20:33:17 +00:00
|
|
|
<svg width="32" height="32" viewBox="0 0 32 32">
|
2016-08-17 13:59:30 +00:00
|
|
|
<defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
|
2016-08-18 10:34:55 +00:00
|
|
|
<image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" class="app-icon"></image>
|
2016-07-28 20:33:17 +00:00
|
|
|
</svg>
|
2014-06-04 13:07:15 +00:00
|
|
|
<div class="icon-loading-dark" style="display:none;"></div>
|
2013-04-10 13:44:50 +00:00
|
|
|
<span>
|
|
|
|
<?php p($entry['name']); ?>
|
|
|
|
</span>
|
2012-10-26 21:38:36 +00:00
|
|
|
</a>
|
2011-08-08 15:52:29 +00:00
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
2015-03-26 09:28:49 +00:00
|
|
|
<?php
|
2015-03-21 06:10:46 +00:00
|
|
|
/* show "More apps" link to app administration directly in app navigation, as last entry */
|
2015-03-26 09:28:49 +00:00
|
|
|
if(OC_User::isAdminUser(OC_User::getUser())):
|
2015-03-21 06:10:46 +00:00
|
|
|
?>
|
2014-06-04 13:27:46 +00:00
|
|
|
<li id="apps-management">
|
2015-03-30 13:58:20 +00:00
|
|
|
<a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
|
2013-12-09 14:47:51 +00:00
|
|
|
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
|
2016-07-28 20:33:17 +00:00
|
|
|
<svg width="32" height="32" viewBox="0 0 32 32" class="app-icon">
|
2016-08-17 13:59:30 +00:00
|
|
|
<defs><filter id="invert"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs>
|
2016-08-18 10:34:55 +00:00
|
|
|
<image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert)" xlink:href="<?php print_unescaped(image_path('settings', 'apps.svg') . '?v=' . $_['versionHash']); ?>"></image>
|
2016-07-28 20:33:17 +00:00
|
|
|
</svg>
|
2014-07-04 10:32:37 +00:00
|
|
|
<div class="icon-loading-dark" style="display:none;"></div>
|
2013-08-07 16:18:09 +00:00
|
|
|
<span>
|
2013-08-30 09:17:31 +00:00
|
|
|
<?php p($l->t('Apps')); ?>
|
2013-08-07 16:18:09 +00:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endif; ?>
|
2014-06-04 13:27:46 +00:00
|
|
|
|
|
|
|
</ul>
|
2013-12-10 00:45:15 +00:00
|
|
|
</div>
|
2011-08-09 08:30:37 +00:00
|
|
|
</div></nav>
|
|
|
|
|
2016-09-19 13:33:30 +00:00
|
|
|
<div id="sudo-login-background" class="hidden"></div>
|
2016-12-19 11:43:31 +00:00
|
|
|
<form id="sudo-login-form" class="hidden">
|
2016-11-11 08:59:20 +00:00
|
|
|
<?php p($l->t('This action requires you to confirm your password:')); ?><br>
|
2016-12-19 11:43:31 +00:00
|
|
|
<input type="password" class="question" autocomplete="new-password" name="question" value=" <?php /* Hack against browsers ignoring autocomplete="off" */ ?>"
|
2016-09-19 13:33:30 +00:00
|
|
|
placeholder="<?php p($l->t('Confirm your password')); ?>" />
|
|
|
|
<input class="confirm icon-confirm" title="<?php p($l->t('Confirm')); ?>" value="" type="submit">
|
2016-12-19 11:43:31 +00:00
|
|
|
</form>
|
2016-09-19 13:33:30 +00:00
|
|
|
|
2013-01-16 18:38:19 +00:00
|
|
|
<div id="content-wrapper">
|
2015-03-18 18:29:15 +00:00
|
|
|
<div id="content" class="app-<?php p($_['appid']) ?>" role="main">
|
2013-02-27 21:55:39 +00:00
|
|
|
<?php print_unescaped($_['content']); ?>
|
2013-01-16 18:38:19 +00:00
|
|
|
</div>
|
2011-03-02 10:56:48 +00:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|