2018-01-25 18:15:16 +00:00
|
|
|
<!DOCTYPE html>
|
2018-07-06 07:23:01 +00:00
|
|
|
<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" >
|
2018-08-03 17:35:56 +00:00
|
|
|
<head data-requesttoken="<?php p($_['requesttoken']); ?>">
|
2018-01-25 18:15:16 +00: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 13:51:52 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
2019-08-23 14:17:09 +00:00
|
|
|
<?php if ($theme->getiTunesAppId() !== '') { ?>
|
2018-01-25 18:15:16 +00:00
|
|
|
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
|
2019-08-23 14:17:09 +00:00
|
|
|
<?php } ?>
|
2018-01-25 18:15:16 +00:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
2018-08-03 17:35:56 +00:00
|
|
|
<meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!=='files')? $_['application']:$theme->getTitle()); ?>">
|
2018-01-25 18:15:16 +00: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 17:29:45 +00:00
|
|
|
<link rel="apple-touch-icon" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
|
2018-01-25 18:15:16 +00: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 11:30:47 +00: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 16:53:53 +00:00
|
|
|
<div id="notification-container">
|
|
|
|
<div id="notification"></div>
|
|
|
|
</div>
|
2018-08-03 16:25:06 +00:00
|
|
|
<header id="header">
|
2018-01-25 18:15:16 +00:00
|
|
|
<div class="header-left">
|
|
|
|
<span id="nextcloud">
|
|
|
|
<div class="logo logo-icon svg"></div>
|
|
|
|
<h1 class="header-appname">
|
2018-08-03 17:35:56 +00:00
|
|
|
<?php if (isset($template)) { p($template->getHeaderTitle()); } else { p($theme->getName());} ?>
|
2018-01-25 18:15:16 +00:00
|
|
|
</h1>
|
|
|
|
<div class="header-shared-by">
|
2018-08-03 17:35:56 +00:00
|
|
|
<?php if (isset($template)) { p($template->getHeaderDetails()); } ?>
|
2018-01-25 18:15:16 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
/** @var \OCP\AppFramework\Http\Template\PublicTemplateResponse $template */
|
2018-08-03 17:35:56 +00:00
|
|
|
if(isset($template) && $template->getActionCount() !== 0) {
|
2018-01-25 18:15:16 +00:00
|
|
|
$primary = $template->getPrimaryAction();
|
|
|
|
$others = $template->getOtherActions();
|
|
|
|
?>
|
|
|
|
<div class="header-right">
|
|
|
|
<span id="header-primary-action" class="<?php if($template->getActionCount() === 1) { p($primary->getIcon()); } ?>">
|
2018-11-06 17:02:47 +00:00
|
|
|
<a href="<?php p($primary->getLink()); ?>" class="primary button">
|
2018-04-05 10:21:39 +00:00
|
|
|
<span><?php p($primary->getLabel()) ?></span>
|
2018-01-25 18:15:16 +00:00
|
|
|
</a>
|
|
|
|
</span>
|
2018-11-06 17:02:47 +00:00
|
|
|
<?php if($template->getActionCount() > 1) { ?>
|
2018-03-07 10:05:23 +00:00
|
|
|
<div id="header-secondary-action">
|
|
|
|
<span id="header-actions-toggle" class="menutoggle icon-more-white"></span>
|
2018-04-05 10:21:39 +00:00
|
|
|
<div id="header-actions-menu" class="popovermenu menu">
|
2018-03-07 10:05:23 +00:00
|
|
|
<ul>
|
|
|
|
<?php
|
|
|
|
/** @var \OCP\AppFramework\Http\Template\IMenuAction $action */
|
2018-11-06 17:02:47 +00:00
|
|
|
foreach($others as $action) {
|
2018-03-07 10:05:23 +00:00
|
|
|
print_unescaped($action->render());
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-01-25 18:15:16 +00:00
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2018-06-25 07:26:43 +00:00
|
|
|
</header>
|
2018-07-27 07:42:34 +00:00
|
|
|
<div id="content" class="app-<?php p($_['appid']) ?>" role="main">
|
|
|
|
<?php print_unescaped($_['content']); ?>
|
|
|
|
</div>
|
2018-08-03 17:35:56 +00:00
|
|
|
<?php if(isset($template) && $template->getFooterVisible()) { ?>
|
2018-04-05 10:22:01 +00:00
|
|
|
<footer>
|
2018-08-15 06:11:13 +00:00
|
|
|
<p><?php print_unescaped($theme->getLongFooter()); ?></p>
|
2018-08-23 12:32:42 +00:00
|
|
|
<?php
|
|
|
|
if ($_['showSimpleSignUpLink']) {
|
|
|
|
?>
|
|
|
|
<p>
|
2018-12-19 22:27:36 +00: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 12:32:42 +00:00
|
|
|
</p>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2018-04-05 10:22:01 +00:00
|
|
|
</footer>
|
|
|
|
<?php } ?>
|
2018-01-25 18:15:16 +00:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|