18d6560c4SGreg Roach<?php 28d6560c4SGreg Roach 38d6560c4SGreg Roachuse Fisharebest\Webtrees\DebugBar; 48d6560c4SGreg Roachuse Fisharebest\Webtrees\FlashMessages; 556f9a9c1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Logout; 6*0c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HomePage; 78d6560c4SGreg Roachuse Fisharebest\Webtrees\I18N; 88d6560c4SGreg Roachuse Fisharebest\Webtrees\Module\CustomCssJsModule; 98d6560c4SGreg Roachuse Fisharebest\Webtrees\Module\ModuleCustomInterface; 10abafa13cSGreg Roachuse Fisharebest\Webtrees\Module\ModuleGlobalInterface; 11abafa13cSGreg Roachuse Fisharebest\Webtrees\Services\ModuleService; 128d6560c4SGreg Roachuse Fisharebest\Webtrees\View; 136ccdf4f0SGreg Roachuse Psr\Http\Message\ServerRequestInterface; 146ccdf4f0SGreg Roach 156ccdf4f0SGreg Roach/** @var string $title */ 166ccdf4f0SGreg Roach/** @var string $content */ 178d6560c4SGreg Roach 188d6560c4SGreg Roach?> 198d0ebef0SGreg Roach 20dd6b2bfcSGreg Roach<!DOCTYPE html> 21e837ff07SGreg Roach<html dir="<?= I18N::direction() ?>" lang="<?= WT_LOCALE ?>"> 22dd6b2bfcSGreg Roach <head> 23dd6b2bfcSGreg Roach <meta charset="UTF-8"> 24dd6b2bfcSGreg Roach <meta name="viewport" content="width=device-width, initial-scale=1"> 25dd6b2bfcSGreg Roach <meta name="csrf" content="<?= e(csrf_token()) ?>"> 26dd6b2bfcSGreg Roach 27dd6b2bfcSGreg Roach <title><?= $title ?></title> 28dd6b2bfcSGreg Roach 29b08e6999SGreg Roach <link rel="icon" href="<?= e(asset('favicon.ico')) ?>" type="image/x-icon"> 30dd6b2bfcSGreg Roach 31e837ff07SGreg Roach <link rel="stylesheet" href="<?= e(asset('css/vendor.min.css')) ?>"> 32e837ff07SGreg Roach <link rel="stylesheet" href="<?= e(asset('css/administration.min.css')) ?>"> 33dd6b2bfcSGreg Roach 34dd6b2bfcSGreg Roach <?= View::stack('styles') ?> 35dd6b2bfcSGreg Roach 360b5fd0a6SGreg Roach <?= app(ModuleService::class)->findByInterface(ModuleGlobalInterface::class)->map(static function (ModuleGlobalInterface $module): string { return $module instanceof ModuleCustomInterface || $module instanceof CustomCssJsModule ? '' : $module->headContent(); })->implode('') ?> 37abafa13cSGreg Roach 38dd6b2bfcSGreg Roach <?= DebugBar::renderHead() ?> 39dd6b2bfcSGreg Roach </head> 40ee4364daSGreg Roach <body class="container wt-global wt-route-<?= e(app(ServerRequestInterface::class)->getAttribute('route')) ?>"> 41dd6b2bfcSGreg Roach <header> 4297c22350SGreg Roach <div class="wt-accessibility-links position-fixed"> 43dd6b2bfcSGreg Roach <a class="sr-only sr-only-focusable btn btn-info btn-sm" href="#content"> 448d6560c4SGreg Roach <?= /* I18N: Skip over the headers and menus, to the main content of the page */ 458d6560c4SGreg Roach I18N::translate('Skip to content') ?> 46dd6b2bfcSGreg Roach </a> 47dd6b2bfcSGreg Roach </div> 48dd6b2bfcSGreg Roach 49dd6b2bfcSGreg Roach <ul class="nav small d-flex justify-content-end"> 50dd6b2bfcSGreg Roach <li class="nav-item menu-mypage"> 51*0c0910bfSGreg Roach <a class="nav-link active" href="<?= e(route(HomePage::class)) ?>"><?= I18N::translate('My page') ?></a> 52dd6b2bfcSGreg Roach </li> 53dd6b2bfcSGreg Roach <li class="nav-item dropdown menu-language"> 54dd6b2bfcSGreg Roach <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"> 55dd6b2bfcSGreg Roach <?= I18N::translate('Language') ?> 56dd6b2bfcSGreg Roach </a> 57dd6b2bfcSGreg Roach <div class="dropdown-menu"> 58dd6b2bfcSGreg Roach <?php foreach (I18N::activeLocales() as $locale) : ?> 59dd6b2bfcSGreg Roach <a class="dropdown-item menu-language-<?= $locale->languageTag() ?> <?= WT_LOCALE === $locale->languageTag() ? ' active' : '' ?>" data-language="<?= $locale->languageTag() ?>" href="#"><?= $locale->endonym() ?></a> 60dd6b2bfcSGreg Roach <?php endforeach ?> 61dd6b2bfcSGreg Roach </div> 62dd6b2bfcSGreg Roach </li> 63dd6b2bfcSGreg Roach <li class="nav-item menu-logout"> 640d7461faSGreg Roach <a class="nav-link" href="#" data-post-url="<?= e(route(Logout::class)) ?>"><?= I18N::translate('Sign out') ?></a> 65dd6b2bfcSGreg Roach </li> 66dd6b2bfcSGreg Roach </ul> 67dd6b2bfcSGreg Roach </header> 68dd6b2bfcSGreg Roach 69dd6b2bfcSGreg Roach <div id="content"></div> 70dd6b2bfcSGreg Roach 71dd6b2bfcSGreg Roach <?php foreach (FlashMessages::getMessages() as $message) : ?> 72dd6b2bfcSGreg Roach <div class="alert alert-<?= $message->status ?> alert-dismissible" role="alert"> 73dd6b2bfcSGreg Roach <button type="button" class="close" data-dismiss="alert" aria-label="<?= I18N::translate('close') ?>"> 74dd6b2bfcSGreg Roach <span aria-hidden="true">×</span> 75dd6b2bfcSGreg Roach </button> 76dd6b2bfcSGreg Roach <?= $message->text ?> 77dd6b2bfcSGreg Roach </div> 78dd6b2bfcSGreg Roach <?php endforeach ?> 79dd6b2bfcSGreg Roach 80dd6b2bfcSGreg Roach <?= $content ?> 81dd6b2bfcSGreg Roach 82ad727080SGreg Roach <script src="<?= e(asset('js/vendor.min.js')) ?>"></script> 83ad727080SGreg Roach <script src="<?= e(asset('js/webtrees.min.js')) ?>"></script> 84dd6b2bfcSGreg Roach 85dd6b2bfcSGreg Roach <?= View::stack('javascript') ?> 86dd6b2bfcSGreg Roach 870b5fd0a6SGreg Roach <?= app(ModuleService::class)->findByInterface(ModuleGlobalInterface::class)->map(static function (ModuleGlobalInterface $module): string { return $module instanceof ModuleCustomInterface || $module instanceof CustomCssJsModule ? '' : $module->bodyContent(); })->implode('') ?> 88abafa13cSGreg Roach 89dd6b2bfcSGreg Roach <?= DebugBar::render() ?> 90dd6b2bfcSGreg Roach </body> 91dd6b2bfcSGreg Roach</html> 92