2021-10-13 06:13:17 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* @var \OC_Defaults $theme
|
|
|
|
|
* @var array $_
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
$getUserAvatar = static function (int $size) use ($_): string {
|
|
|
|
|
return \OC::$server->getURLGenerator()->linkToRoute('core.avatar.getAvatar', [
|
|
|
|
|
'userId' => $_['user_uid'],
|
|
|
|
|
'size' => $size,
|
|
|
|
|
'v' => $_['userAvatarVersion']
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?><!DOCTYPE html>
|
2022-10-27 14:13:48 -04:00
|
|
|
<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" translate="no" >
|
2016-02-09 07:06:48 -05:00
|
|
|
<head data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>" data-requesttoken="<?php p($_['requesttoken']); ?>">
|
2015-03-17 18:36:05 -04:00
|
|
|
<meta charset="utf-8">
|
2013-06-12 08:33:24 -04:00
|
|
|
<title>
|
2013-10-17 04:40:06 -04:00
|
|
|
<?php
|
2021-11-24 08:08:16 -05:00
|
|
|
p(!empty($_['pageTitle'])?$_['pageTitle'].' - ':'');
|
2023-01-20 05:45:08 -05:00
|
|
|
p(!empty($_['application'])?$_['application'].' - ':'');
|
|
|
|
|
p($theme->getTitle());
|
|
|
|
|
?>
|
2013-06-12 08:33:24 -04:00
|
|
|
</title>
|
2022-08-24 11:19:17 -04:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2022-08-20 05:22:54 -04:00
|
|
|
|
2019-08-23 10:17:09 -04:00
|
|
|
<?php if ($theme->getiTunesAppId() !== '') { ?>
|
2014-08-28 04:12:59 -04:00
|
|
|
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
|
2019-08-23 10:17:09 -04:00
|
|
|
<?php } ?>
|
2014-07-08 07:14:54 -04:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
2020-10-05 09:12:57 -04:00
|
|
|
<meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid'] != 'files')? $_['application']:$theme->getTitle()); ?>">
|
2014-07-08 07:14:54 -04:00
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
2017-03-27 19:37:47 -04:00
|
|
|
<meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
|
2016-03-08 15:09:34 -05:00
|
|
|
<link rel="icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>">
|
2019-06-14 13:29:45 -04:00
|
|
|
<link rel="apple-touch-icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
|
2020-10-02 15:49:14 -04:00
|
|
|
<link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
|
2017-03-27 19:37:47 -04:00
|
|
|
<link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>">
|
2023-12-11 02:59:45 -05:00
|
|
|
<link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>" crossorigin="use-credentials">
|
2017-05-20 06:16:44 -04:00
|
|
|
<?php emit_css_loading_tags($_); ?>
|
2017-03-08 03:43:51 -05:00
|
|
|
<?php emit_script_loading_tags($_); ?>
|
2014-10-28 06:15:58 -04:00
|
|
|
<?php print_unescaped($_['headers']); ?>
|
2011-03-02 05:56:48 -05:00
|
|
|
</head>
|
2022-04-21 07:55:32 -04:00
|
|
|
<body id="<?php p($_['bodyid']);?>" <?php foreach ($_['enabledThemes'] as $themeId) {
|
2023-01-20 05:45:08 -05:00
|
|
|
p("data-theme-$themeId ");
|
|
|
|
|
}?> data-themes=<?php p(join(',', $_['enabledThemes'])) ?>>
|
2018-01-26 17:46:40 -05:00
|
|
|
<?php include 'layout.noscript.warning.php'; ?>
|
2018-06-26 06:37:33 -04:00
|
|
|
|
2019-01-17 06:30:47 -05:00
|
|
|
<?php foreach ($_['initialStates'] as $app => $initialState) { ?>
|
|
|
|
|
<input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
|
|
|
|
|
<?php }?>
|
|
|
|
|
|
2022-07-16 04:17:15 -04:00
|
|
|
<div id="skip-actions">
|
|
|
|
|
<?php if ($_['id-app-content'] !== null) { ?><a href="<?php p($_['id-app-content']); ?>" class="button primary skip-navigation skip-content"><?php p($l->t('Skip to main content')); ?></a><?php } ?>
|
|
|
|
|
<?php if ($_['id-app-navigation'] !== null) { ?><a href="<?php p($_['id-app-navigation']); ?>" class="button primary skip-navigation"><?php p($l->t('Skip to navigation of app')); ?></a><?php } ?>
|
2018-06-25 03:26:43 -04:00
|
|
|
</div>
|
2018-06-26 06:37:33 -04:00
|
|
|
|
2023-10-18 11:02:13 -04:00
|
|
|
<header id="header">
|
2017-07-28 08:44:29 -04:00
|
|
|
<div class="header-left">
|
2022-01-20 06:27:29 -05:00
|
|
|
<a href="<?php print_unescaped($_['logoUrl'] ?: link_to('', 'index.php')); ?>"
|
2023-03-29 16:36:45 -04:00
|
|
|
aria-label="<?php p($l->t('Go to %s', [$_['logoUrl'] ?: $_['defaultAppName']])); ?>"
|
2017-09-29 14:01:15 -04:00
|
|
|
id="nextcloud">
|
2023-03-29 16:36:45 -04:00
|
|
|
<div class="logo logo-icon"></div>
|
2017-01-03 10:06:53 -05:00
|
|
|
</a>
|
2014-12-17 10:05:01 -05:00
|
|
|
|
2022-08-27 04:57:13 -04:00
|
|
|
<nav id="header-left__appmenu"></nav>
|
2017-01-03 10:06:53 -05:00
|
|
|
</div>
|
2014-12-17 10:05:01 -05:00
|
|
|
|
2017-07-28 08:44:29 -04:00
|
|
|
<div class="header-right">
|
2021-08-31 07:18:34 -04:00
|
|
|
<div id="unified-search"></div>
|
2022-06-02 05:22:59 -04:00
|
|
|
<div id="notifications"></div>
|
2023-01-11 20:35:53 -05:00
|
|
|
<div id="contactsmenu"></div>
|
2023-02-09 20:54:59 -05:00
|
|
|
<div id="user-menu"></div>
|
2013-12-09 19:45:15 -05:00
|
|
|
</div>
|
2019-02-27 10:37:52 -05:00
|
|
|
</header>
|
2011-03-02 05:56:48 -05:00
|
|
|
|
2016-09-19 09:33:30 -04:00
|
|
|
<div id="sudo-login-background" class="hidden"></div>
|
2020-05-11 15:18:38 -04:00
|
|
|
<form id="sudo-login-form" class="hidden" method="POST">
|
2017-09-29 13:25:32 -04:00
|
|
|
<label>
|
|
|
|
|
<?php p($l->t('This action requires you to confirm your password')); ?><br/>
|
|
|
|
|
<input type="password" class="question" autocomplete="new-password" name="question" value=" <?php /* Hack against browsers ignoring autocomplete="off" */ ?>"
|
2016-09-19 09:33:30 -04:00
|
|
|
placeholder="<?php p($l->t('Confirm your password')); ?>" />
|
2017-09-29 13:25:32 -04:00
|
|
|
</label>
|
|
|
|
|
<input class="confirm" value="<?php p($l->t('Confirm')); ?>" type="submit">
|
2016-12-19 06:43:31 -05:00
|
|
|
</form>
|
2016-09-19 09:33:30 -04:00
|
|
|
|
2022-11-14 06:15:24 -05:00
|
|
|
<main id="content" class="app-<?php p($_['appid']) ?>">
|
2023-04-05 04:27:16 -04:00
|
|
|
<h1 class="hidden-visually" id="page-heading-level-1">
|
2024-01-12 10:53:04 -05:00
|
|
|
<?php p((!empty($_['application']) && !empty($_['pageTitle']) && $_['application'] != $_['pageTitle'])
|
|
|
|
|
? $_['application'].': '.$_['pageTitle']
|
|
|
|
|
: (!empty($_['pageTitle']) ? $_['pageTitle'] : $theme->getName())
|
|
|
|
|
); ?>
|
2023-04-05 04:27:16 -04:00
|
|
|
</h1>
|
2018-07-27 03:42:34 -04:00
|
|
|
<?php print_unescaped($_['content']); ?>
|
2022-11-14 06:15:24 -05:00
|
|
|
</main>
|
2022-01-19 17:30:34 -05:00
|
|
|
<div id="profiler-toolbar"></div>
|
2011-03-02 05:56:48 -05:00
|
|
|
</body>
|
|
|
|
|
</html>
|