2024-05-27 10:08:53 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*/
|
|
|
|
?>
|
2018-01-25 19:15:16 +01:00
|
|
|
<!DOCTYPE html>
|
2022-10-27 20:13:48 +02:00
|
|
|
<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" translate="no" >
|
2018-08-03 19:35:56 +02:00
|
|
|
<head data-requesttoken="<?php p($_['requesttoken']); ?>">
|
2018-01-25 19:15:16 +01:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>
|
2024-11-08 08:57:22 +01:00
|
|
|
<?php
|
2025-02-11 16:07:59 -08:00
|
|
|
p(!empty($_['pageTitle']) && (empty($_['application']) || $_['pageTitle'] !== $_['application']) ? $_['pageTitle'] . ' - ' : '');
|
2024-11-08 08:57:22 +01:00
|
|
|
p(!empty($_['application']) ? $_['application'] . ' - ' : '');
|
2024-02-23 18:38:47 +01:00
|
|
|
p($theme->getTitle());
|
|
|
|
?>
|
2018-01-25 19:15:16 +01:00
|
|
|
</title>
|
2024-08-01 23:06:55 +02:00
|
|
|
<meta name="csp-nonce" nonce="<?php p($_['cspNonce']); /* Do not pass into "content" to prevent exfiltration */ ?>">
|
2024-08-21 02:59:14 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0<?php if (isset($_['viewport_maximum_scale'])) {
|
|
|
|
p(', maximum-scale=' . $_['viewport_maximum_scale']);
|
|
|
|
} ?>">
|
2019-08-23 16:17:09 +02:00
|
|
|
<?php if ($theme->getiTunesAppId() !== '') { ?>
|
2018-01-25 19:15:16 +01:00
|
|
|
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
|
2019-08-23 16:17:09 +02:00
|
|
|
<?php } ?>
|
2018-01-25 19:15:16 +01:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
2020-10-05 15:12:57 +02:00
|
|
|
<meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid'] !== 'files')? $_['application']:$theme->getTitle()); ?>">
|
2018-01-25 19:15:16 +01:00
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
|
|
|
|
<link rel="icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon.ico')); /* IE11+ supports png */ ?>">
|
2019-06-15 01:29:45 +08:00
|
|
|
<link rel="apple-touch-icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
|
2020-10-02 21:49:14 +02:00
|
|
|
<link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
|
2018-01-25 19:15:16 +01: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 08:59:45 +01:00
|
|
|
<link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>" crossorigin="use-credentials">
|
2018-01-25 19:15:16 +01:00
|
|
|
<?php emit_css_loading_tags($_); ?>
|
|
|
|
<?php emit_script_loading_tags($_); ?>
|
|
|
|
<?php print_unescaped($_['headers']); ?>
|
|
|
|
</head>
|
2025-01-07 16:48:33 +01:00
|
|
|
<body id="<?php p($_['bodyid']);?>" <?php foreach ($_['enabledThemes'] as $themeId) {
|
|
|
|
p("data-theme-$themeId ");
|
|
|
|
}?> data-themes="<?php p(join(',', $_['enabledThemes'])) ?>">
|
2024-07-30 13:24:38 +02:00
|
|
|
<?php include('layout.noscript.warning.php'); ?>
|
|
|
|
<?php include('layout.initial-state.php'); ?>
|
2022-07-18 18:00:22 +02: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 } ?>
|
|
|
|
</div>
|
|
|
|
|
2018-08-03 18:25:06 +02:00
|
|
|
<header id="header">
|
2023-12-23 19:46:25 +03:30
|
|
|
<div class="header-start">
|
2023-09-15 18:08:12 +03:00
|
|
|
<div id="nextcloud" class="header-appname">
|
|
|
|
<?php if ($_['logoUrl']): ?>
|
|
|
|
<a href="<?php print_unescaped($_['logoUrl']); ?>"
|
|
|
|
aria-label="<?php p($l->t('Go to %s', [$_['logoUrl']])); ?>">
|
|
|
|
<div class="logo logo-icon"></div>
|
|
|
|
</a>
|
|
|
|
<?php else: ?>
|
|
|
|
<div class="logo logo-icon"></div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2024-04-18 10:42:21 -07:00
|
|
|
<div class="header-info">
|
|
|
|
<span class="header-title">
|
|
|
|
<?php if (isset($template) && $template->getHeaderTitle() !== '') { ?>
|
|
|
|
<?php p($template->getHeaderTitle()); ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<?php p($theme->getName()); ?>
|
|
|
|
<?php } ?>
|
|
|
|
</span>
|
|
|
|
<?php if (isset($template) && $template->getHeaderDetails() !== '') { ?>
|
|
|
|
<span class="header-shared-by">
|
|
|
|
<?php p($template->getHeaderDetails()); ?>
|
|
|
|
</span>
|
|
|
|
<?php } ?>
|
2018-01-25 19:15:16 +01:00
|
|
|
</div>
|
2024-04-18 10:42:21 -07:00
|
|
|
</div>
|
2018-01-25 19:15:16 +01:00
|
|
|
</div>
|
|
|
|
|
2023-12-23 19:46:25 +03:30
|
|
|
<div class="header-end">
|
2024-08-28 13:15:56 +02:00
|
|
|
<div id="public-page-menu"></div>
|
2021-08-16 12:04:40 +02:00
|
|
|
</div>
|
2018-06-25 09:26:43 +02:00
|
|
|
</header>
|
2024-08-28 13:15:56 +02:00
|
|
|
|
2025-01-10 18:17:22 +01:00
|
|
|
<div id="content" class="app-<?php p($_['appid']) ?>">
|
2022-11-14 12:15:24 +01:00
|
|
|
<h1 class="hidden-visually">
|
2024-08-28 13:15:56 +02:00
|
|
|
<?php
|
2025-01-07 16:48:33 +01:00
|
|
|
if (isset($template) && $template->getHeaderTitle() !== '') {
|
|
|
|
p($template->getHeaderTitle());
|
|
|
|
} else {
|
|
|
|
p($theme->getName());
|
|
|
|
} ?>
|
2022-11-14 12:15:24 +01:00
|
|
|
</h1>
|
2018-07-27 09:42:34 +02:00
|
|
|
<?php print_unescaped($_['content']); ?>
|
2025-01-10 18:17:22 +01:00
|
|
|
</div>
|
|
|
|
|
2023-09-23 14:21:49 +02:00
|
|
|
<?php if (isset($template) && $template->getFooterVisible() && ($theme->getLongFooter() !== '' || $_['showSimpleSignUpLink'])) { ?>
|
2018-04-05 12:22:01 +02:00
|
|
|
<footer>
|
2018-08-15 08:11:13 +02:00
|
|
|
<p><?php print_unescaped($theme->getLongFooter()); ?></p>
|
2018-08-23 14:32:42 +02:00
|
|
|
<?php
|
2023-01-20 11:45:08 +01:00
|
|
|
if ($_['showSimpleSignUpLink']) {
|
|
|
|
?>
|
2024-07-26 15:01:27 +02:00
|
|
|
<p class="footer__simple-sign-up">
|
2023-09-11 18:22:07 +02:00
|
|
|
<a href="<?php p($_['signUpLink']); ?>" target="_blank" rel="noreferrer noopener">
|
2018-12-19 23:27:36 +01:00
|
|
|
<?php p($l->t('Get your own free account')); ?>
|
|
|
|
</a>
|
2018-08-23 14:32:42 +02:00
|
|
|
</p>
|
|
|
|
<?php
|
2023-01-20 11:45:08 +01:00
|
|
|
}
|
2018-08-23 14:32:42 +02:00
|
|
|
?>
|
2018-04-05 12:22:01 +02:00
|
|
|
</footer>
|
|
|
|
<?php } ?>
|
2018-01-25 19:15:16 +01:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|