2018-01-25 21:15:16 +03:00
|
|
|
<!DOCTYPE html>
|
2018-07-06 10:23:01 +03:00
|
|
|
<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" >
|
2018-08-03 20:35:56 +03:00
|
|
|
<head data-requesttoken="<?php p($_['requesttoken']); ?>">
|
2018-01-25 21:15:16 +03:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>
|
|
|
|
<?php
|
|
|
|
p(!empty($_['application'])?$_['application'].' - ':'');
|
|
|
|
p($theme->getTitle());
|
|
|
|
?>
|
|
|
|
</title>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
2018-04-18 16:51:52 +03:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
2019-08-23 17:17:09 +03:00
|
|
|
<?php if ($theme->getiTunesAppId() !== '') { ?>
|
2018-01-25 21:15:16 +03:00
|
|
|
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
|
2019-08-23 17:17:09 +03:00
|
|
|
<?php } ?>
|
2018-01-25 21:15:16 +03:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
2018-08-03 20:35:56 +03:00
|
|
|
<meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!=='files')? $_['application']:$theme->getTitle()); ?>">
|
2018-01-25 21:15:16 +03: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-14 20:29:45 +03:00
|
|
|
<link rel="apple-touch-icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
|
2018-01-25 21:15:16 +03:00
|
|
|
<link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path($_['appid'], 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>">
|
|
|
|
<link rel="manifest" href="<?php print_unescaped(image_path($_['appid'], 'manifest.json')); ?>">
|
|
|
|
<?php emit_css_loading_tags($_); ?>
|
|
|
|
<?php emit_script_loading_tags($_); ?>
|
|
|
|
<?php print_unescaped($_['headers']); ?>
|
|
|
|
</head>
|
|
|
|
<body id="<?php p($_['bodyid']);?>">
|
|
|
|
<?php include('layout.noscript.warning.php'); ?>
|
2019-01-17 14:30:47 +03:00
|
|
|
<?php foreach ($_['initialStates'] as $app => $initialState) { ?>
|
|
|
|
<input type="hidden" id="initial-state-<?php p($app); ?>" value="<?php p(base64_encode($initialState)); ?>">
|
|
|
|
<?php }?>
|
2018-07-31 19:53:53 +03:00
|
|
|
<div id="notification-container">
|
|
|
|
<div id="notification"></div>
|
|
|
|
</div>
|
2018-08-03 19:25:06 +03:00
|
|
|
<header id="header">
|
2018-01-25 21:15:16 +03:00
|
|
|
<div class="header-left">
|
|
|
|
<span id="nextcloud">
|
|
|
|
<div class="logo logo-icon svg"></div>
|
|
|
|
<h1 class="header-appname">
|
2020-04-10 15:19:56 +03:00
|
|
|
<?php if (isset($template)) {
|
|
|
|
p($template->getHeaderTitle());
|
|
|
|
} else {
|
|
|
|
p($theme->getName());
|
|
|
|
} ?>
|
2018-01-25 21:15:16 +03:00
|
|
|
</h1>
|
|
|
|
<div class="header-shared-by">
|
2020-04-10 15:19:56 +03:00
|
|
|
<?php if (isset($template)) {
|
|
|
|
p($template->getHeaderDetails());
|
|
|
|
} ?>
|
2018-01-25 21:15:16 +03:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
/** @var \OCP\AppFramework\Http\Template\PublicTemplateResponse $template */
|
2020-04-10 15:19:56 +03:00
|
|
|
if (isset($template) && $template->getActionCount() !== 0) {
|
2018-01-25 21:15:16 +03:00
|
|
|
$primary = $template->getPrimaryAction();
|
2020-04-10 15:19:56 +03:00
|
|
|
$others = $template->getOtherActions(); ?>
|
2018-01-25 21:15:16 +03:00
|
|
|
<div class="header-right">
|
2020-04-10 15:19:56 +03:00
|
|
|
<span id="header-primary-action" class="<?php if ($template->getActionCount() === 1) {
|
|
|
|
p($primary->getIcon());
|
|
|
|
} ?>">
|
2018-11-06 20:02:47 +03:00
|
|
|
<a href="<?php p($primary->getLink()); ?>" class="primary button">
|
2018-04-05 13:21:39 +03:00
|
|
|
<span><?php p($primary->getLabel()) ?></span>
|
2018-01-25 21:15:16 +03:00
|
|
|
</a>
|
|
|
|
</span>
|
2020-04-10 15:19:56 +03:00
|
|
|
<?php if ($template->getActionCount() > 1) { ?>
|
2018-03-07 13:05:23 +03:00
|
|
|
<div id="header-secondary-action">
|
2019-11-07 14:28:43 +03:00
|
|
|
<button id="header-actions-toggle" class="menutoggle icon-more-white"></button>
|
2018-04-05 13:21:39 +03:00
|
|
|
<div id="header-actions-menu" class="popovermenu menu">
|
2018-03-07 13:05:23 +03:00
|
|
|
<ul>
|
|
|
|
<?php
|
|
|
|
/** @var \OCP\AppFramework\Http\Template\IMenuAction $action */
|
2020-04-10 15:19:56 +03:00
|
|
|
foreach ($others as $action) {
|
2018-03-07 13:05:23 +03:00
|
|
|
print_unescaped($action->render());
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-01-25 21:15:16 +03:00
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
2020-04-10 15:19:56 +03:00
|
|
|
<?php
|
|
|
|
} ?>
|
2018-06-25 10:26:43 +03:00
|
|
|
</header>
|
2018-07-27 10:42:34 +03:00
|
|
|
<div id="content" class="app-<?php p($_['appid']) ?>" role="main">
|
|
|
|
<?php print_unescaped($_['content']); ?>
|
|
|
|
</div>
|
2020-04-10 15:19:56 +03:00
|
|
|
<?php if (isset($template) && $template->getFooterVisible()) { ?>
|
2018-04-05 13:22:01 +03:00
|
|
|
<footer>
|
2018-08-15 09:11:13 +03:00
|
|
|
<p><?php print_unescaped($theme->getLongFooter()); ?></p>
|
2018-08-23 15:32:42 +03:00
|
|
|
<?php
|
|
|
|
if ($_['showSimpleSignUpLink']) {
|
|
|
|
?>
|
|
|
|
<p>
|
2018-12-20 01:27:36 +03:00
|
|
|
<a href="https://nextcloud.com/signup/" target="_blank" rel="noreferrer noopener">
|
|
|
|
<?php p($l->t('Get your own free account')); ?>
|
|
|
|
</a>
|
2018-08-23 15:32:42 +03:00
|
|
|
</p>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2018-04-05 13:22:01 +03:00
|
|
|
</footer>
|
|
|
|
<?php } ?>
|
2018-01-25 21:15:16 +03:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|