2011-04-17 01:29:54 +04:00
|
|
|
<!DOCTYPE html>
|
2016-06-16 09:28:43 +03:00
|
|
|
<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" >
|
2016-02-09 15:06:48 +03:00
|
|
|
<head data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>" data-requesttoken="<?php p($_['requesttoken']); ?>">
|
2015-03-18 01:36:05 +03:00
|
|
|
<meta charset="utf-8">
|
2013-06-12 16:33:24 +04:00
|
|
|
<title>
|
2013-10-17 12:40:06 +04:00
|
|
|
<?php
|
|
|
|
p(!empty($_['application'])?$_['application'].' - ':'');
|
|
|
|
p($theme->getTitle());
|
|
|
|
?>
|
2013-06-12 16:33:24 +04:00
|
|
|
</title>
|
2015-03-18 04:11:47 +03:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
2015-09-09 19:07:43 +03:00
|
|
|
<meta name="referrer" content="never">
|
2014-03-26 02:35:55 +04:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
|
2014-08-28 12:12:59 +04:00
|
|
|
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
|
2014-07-08 15:14:54 +04:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
2016-10-07 10:44:42 +03:00
|
|
|
<meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!='files')? $_['application']:$theme->getTitle()); ?>">
|
2014-07-08 15:14:54 +04:00
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
2015-07-29 19:16:01 +03:00
|
|
|
<meta name="theme-color" content="<?php p($theme->getMailHeaderColor()); ?>">
|
2016-03-08 23:09:34 +03:00
|
|
|
<link rel="icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>">
|
2015-03-18 01:57:23 +03:00
|
|
|
<link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
|
2016-06-08 17:46:26 +03:00
|
|
|
<link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="#0082c9">
|
2011-04-16 21:49:18 +04:00
|
|
|
<?php foreach($_['cssfiles'] as $cssfile): ?>
|
2015-06-10 13:16:45 +03: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 23:57:00 +03:00
|
|
|
<?php endforeach; ?>
|
2016-10-25 22:36:37 +03: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 21:49:18 +04:00
|
|
|
<?php foreach($_['jsfiles'] as $jsfile): ?>
|
2016-10-24 17:31:06 +03:00
|
|
|
<script nonce="<?php p(\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>" src="<?php print_unescaped($jsfile); ?>"></script>
|
2011-03-09 23:57:00 +03:00
|
|
|
<?php endforeach; ?>
|
2014-10-28 13:15:58 +03:00
|
|
|
<?php print_unescaped($_['headers']); ?>
|
2011-03-02 13:56:48 +03:00
|
|
|
</head>
|
2013-02-28 01:55:39 +04:00
|
|
|
<body id="<?php p($_['bodyid']);?>">
|
2015-02-09 18:01:52 +03:00
|
|
|
<?php include('layout.noscript.warning.php'); ?>
|
2013-01-11 14:52:07 +04:00
|
|
|
<div id="notification-container">
|
2013-01-11 18:19:53 +04:00
|
|
|
<div id="notification"></div>
|
2013-01-11 14:52:07 +04:00
|
|
|
</div>
|
2015-03-18 21:29:15 +03:00
|
|
|
<header role="banner"><div id="header">
|
2017-01-16 16:29:41 +03:00
|
|
|
<div id="header-left">
|
2017-01-03 18:06:53 +03: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 18:05:01 +03:00
|
|
|
|
2017-01-03 18:06:53 +03: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>
|
2016-12-18 17:05:39 +03:00
|
|
|
|
|
|
|
<div id="appmenu">
|
|
|
|
<ul>
|
2017-03-02 01:21:38 +03:00
|
|
|
<?php $headerIconCount = 8; ?>
|
2017-03-02 01:04:27 +03:00
|
|
|
<?php foreach($_['headernavigation'] as $entry): ?>
|
2016-12-18 17:05:39 +03:00
|
|
|
<li data-id="<?php p($entry['id']); ?>">
|
|
|
|
<a href="<?php print_unescaped($entry['href']); ?>" tabindex="3"
|
|
|
|
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
|
|
|
|
<img src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" class="app-icon" />
|
|
|
|
<div class="icon-loading-dark" style="display:none;"></div>
|
|
|
|
<span>
|
|
|
|
<?php p($entry['name']); ?>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
2017-03-03 17:09:21 +03:00
|
|
|
<li id="more-apps" class="menutoggle<?php if (!(count($_['navigation']) > $headerIconCount || (OC_User::isAdminUser(OC_User::getUser()) && count($_['navigation'])>=$headerIconCount))): ?> hidden<?php endif; ?>">
|
2016-12-18 17:05:39 +03:00
|
|
|
<a href="#">
|
|
|
|
<div class="icon-more-white"></div>
|
2017-03-03 17:09:21 +03:00
|
|
|
<span><?php p($l->t('More apps')); ?></span>
|
2016-12-18 17:05:39 +03:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-03-03 17:09:21 +03:00
|
|
|
<?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
|
2017-03-19 14:23:20 +03:00
|
|
|
<li <?php if(count($_['navigation'])>$headerIconCount-1): ?> class="hidden apps-management"<?php else: ?> class="apps-management" <?php endif; ?>>
|
2016-12-18 17:05:39 +03:00
|
|
|
<a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
|
|
|
|
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
|
|
|
|
<img src="<?php print_unescaped(image_path('settings', 'apps.svg') . '?v=' . $_['versionHash']); ?>" />
|
|
|
|
<div class="icon-loading-dark" style="display:none;"></div>
|
2017-03-03 17:09:21 +03:00
|
|
|
<span><?php p($l->t('Apps')); ?></span>
|
2016-12-18 17:05:39 +03:00
|
|
|
</a>
|
|
|
|
</li>
|
2017-03-03 17:09:21 +03:00
|
|
|
<?php endif; ?>
|
2016-12-18 17:05:39 +03:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2017-03-02 01:21:38 +03:00
|
|
|
<nav role="navigation"><div id="navigation">
|
|
|
|
<div id="apps">
|
|
|
|
<ul>
|
|
|
|
<?php foreach($_['navigation'] as $entry): ?>
|
|
|
|
<?php if($entry['showInHeader']): ?>
|
|
|
|
<li data-id="<?php p($entry['id']); ?>" class="in-header">
|
|
|
|
<?php else: ?>
|
|
|
|
<li data-id="<?php p($entry['id']); ?>">
|
|
|
|
<?php endif; ?>
|
|
|
|
<a href="<?php print_unescaped($entry['href']); ?>" tabindex="3"
|
|
|
|
<?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
|
|
|
|
<svg width="32" height="32" viewBox="0 0 32 32">
|
2017-03-20 10:23:04 +03:00
|
|
|
<defs><filter id="invert-<?php p($entry['id']); ?>"><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>
|
|
|
|
<image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert-<?php p($entry['id']); ?>)" xlink:href="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" class="app-icon"></image>
|
2017-03-02 01:21:38 +03:00
|
|
|
</svg>
|
|
|
|
<div class="icon-loading-dark" style="display:none;"></div>
|
|
|
|
<span>
|
|
|
|
<?php p($entry['name']); ?>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php
|
|
|
|
/* show "More apps" link to app administration directly in app navigation, as last entry */
|
|
|
|
if(OC_User::isAdminUser(OC_User::getUser())):
|
|
|
|
?>
|
2017-03-19 14:23:20 +03:00
|
|
|
<li class="apps-management">
|
2017-03-02 01:21:38 +03:00
|
|
|
<a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
|
|
|
|
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
|
|
|
|
<svg width="32" height="32" viewBox="0 0 32 32" class="app-icon">
|
2017-03-20 10:23:04 +03:00
|
|
|
<defs><filter id="invert-appsmanagement"><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>
|
|
|
|
<image x="0" y="0" width="32" height="32" preserveAspectRatio="xMinYMin meet" filter="url(#invert-appsmanagement)" xlink:href="<?php print_unescaped(image_path('settings', 'apps.svg') . '?v=' . $_['versionHash']); ?>"></image>
|
2017-03-02 01:21:38 +03:00
|
|
|
</svg>
|
|
|
|
<div class="icon-loading-dark" style="display:none;"></div>
|
|
|
|
<span>
|
|
|
|
<?php p($l->t('Apps')); ?>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div></nav>
|
|
|
|
|
2017-01-03 18:06:53 +03:00
|
|
|
</div>
|
2014-12-17 18:05:01 +03:00
|
|
|
|
2017-01-03 18:06:53 +03: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">
|
2017-01-25 11:15:37 +03:00
|
|
|
<button class="icon-close-white" type="reset"></button>
|
2017-01-03 18:06:53 +03:00
|
|
|
</form>
|
|
|
|
<div id="settings">
|
|
|
|
<div id="expand" tabindex="6" role="link" class="menutoggle">
|
|
|
|
<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>
|
|
|
|
<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>
|
2016-12-18 17:05:39 +03:00
|
|
|
|
2014-03-15 18:27:48 +04:00
|
|
|
</div>
|
2012-10-27 20:58:16 +04:00
|
|
|
</div>
|
2013-12-10 04:45:15 +04:00
|
|
|
</div>
|
2011-08-09 12:30:37 +04:00
|
|
|
</div></header>
|
2011-03-02 13:56:48 +03:00
|
|
|
|
2016-09-19 16:33:30 +03:00
|
|
|
<div id="sudo-login-background" class="hidden"></div>
|
2016-12-19 14:43:31 +03:00
|
|
|
<form id="sudo-login-form" class="hidden">
|
2016-11-11 11:59:20 +03:00
|
|
|
<?php p($l->t('This action requires you to confirm your password:')); ?><br>
|
2016-12-19 14:43:31 +03:00
|
|
|
<input type="password" class="question" autocomplete="new-password" name="question" value=" <?php /* Hack against browsers ignoring autocomplete="off" */ ?>"
|
2016-09-19 16:33:30 +03: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 14:43:31 +03:00
|
|
|
</form>
|
2016-09-19 16:33:30 +03:00
|
|
|
|
2013-01-16 22:38:19 +04:00
|
|
|
<div id="content-wrapper">
|
2015-03-18 21:29:15 +03:00
|
|
|
<div id="content" class="app-<?php p($_['appid']) ?>" role="main">
|
2013-02-28 01:55:39 +04:00
|
|
|
<?php print_unescaped($_['content']); ?>
|
2013-01-16 22:38:19 +04:00
|
|
|
</div>
|
2011-03-02 13:56:48 +03:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|