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">
|
|
|
|
<meta name="referrer" content="never">
|
2018-04-18 16:51:52 +03:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
2018-01-25 21:15:16 +03:00
|
|
|
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
|
|
|
|
<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 */ ?>">
|
|
|
|
<link rel="apple-touch-icon-precomposed" href="<?php print_unescaped(image_path($_['appid'], 'favicon-touch.png')); ?>">
|
|
|
|
<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'); ?>
|
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">
|
2018-08-03 20:35: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">
|
2018-08-03 20:35: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 */
|
2018-08-03 20:35:56 +03:00
|
|
|
if(isset($template) && $template->getActionCount() !== 0) {
|
2018-01-25 21:15:16 +03: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()); } ?>">
|
|
|
|
<a href="<?php p($primary->getLink()); ?>">
|
2018-04-05 13:21:39 +03:00
|
|
|
<span><?php p($primary->getLabel()) ?></span>
|
2018-01-25 21:15:16 +03:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<?php if($template->getActionCount()>1) { ?>
|
2018-03-07 13:05:23 +03:00
|
|
|
<div id="header-secondary-action">
|
|
|
|
<span id="header-actions-toggle" class="menutoggle icon-more-white"></span>
|
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 */
|
|
|
|
foreach($template->getOtherActions() as $action) {
|
|
|
|
print_unescaped($action->render());
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2018-01-25 21:15:16 +03:00
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
<?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>
|
2018-08-03 20:35: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-04-05 13:22:01 +03:00
|
|
|
</footer>
|
|
|
|
<?php } ?>
|
2018-01-25 21:15:16 +03:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|