1<?php use Fisharebest\Webtrees\DebugBar; ?> 2<?php use Fisharebest\Webtrees\FlashMessages; ?> 3<?php use Fisharebest\Webtrees\I18N; ?> 4<?php use Fisharebest\Webtrees\View; ?> 5 6<!DOCTYPE html> 7<html dir="<?= I18N::direction() ?>" lang="<?= WT_LOCALE ?>"> 8 <head> 9 <meta charset="UTF-8"> 10 <meta name="viewport" content="width=device-width, initial-scale=1"> 11 <meta name="csrf" content="<?= e(csrf_token()) ?>"> 12 13 <title><?= $title ?></title> 14 15 <link rel="icon" href="<?= e(asset('favicon.ico')) ?>" type="image/x-icon"> 16 17 <link rel="stylesheet" href="<?= e(asset('css/vendor.min.css')) ?>"> 18 <link rel="stylesheet" href="<?= e(asset('css/administration.min.css')) ?>"> 19 20 <?= View::stack('styles') ?> 21 22 <?= DebugBar::renderHead() ?> 23 </head> 24 <body class="container wt-global"> 25 <header> 26 <div class="wt-accessibility-links position-fixed"> 27 <a class="sr-only sr-only-focusable btn btn-info btn-sm" href="#content"> 28 <?= /* I18N: Skip over the headers and menus, to the main content of the page */ I18N::translate('Skip to content') ?> 29 </a> 30 </div> 31 32 <ul class="nav small d-flex justify-content-end"> 33 <li class="nav-item menu-mypage"> 34 <a class="nav-link active" href="<?= e(route('user-page')) ?>"><?= I18N::translate('My page') ?></a> 35 </li> 36 <li class="nav-item dropdown menu-language"> 37 <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"> 38 <?= I18N::translate('Language') ?> 39 </a> 40 <div class="dropdown-menu"> 41 <?php foreach (I18N::activeLocales() as $locale) : ?> 42 <a class="dropdown-item menu-language-<?= $locale->languageTag() ?> <?= WT_LOCALE === $locale->languageTag() ? ' active' : ''?>" data-language="<?= $locale->languageTag() ?>" href="#"><?= $locale->endonym() ?></a> 43 <?php endforeach ?> 44 </div> 45 </li> 46 <li class="nav-item menu-logout"> 47 <a class="nav-link" href="<?= e(route('logout')) ?>"><?= I18N::translate('Sign out') ?></a> 48 </li> 49 </ul> 50 </header> 51 52 <div id="content"></div> 53 54 <?php foreach (FlashMessages::getMessages() as $message) : ?> 55 <div class="alert alert-<?= $message->status ?> alert-dismissible" role="alert"> 56 <button type="button" class="close" data-dismiss="alert" aria-label="<?= I18N::translate('close') ?>"> 57 <span aria-hidden="true">×</span> 58 </button> 59 <?= $message->text ?> 60 </div> 61 <?php endforeach ?> 62 63 <?= $content ?> 64 65 <script src="<?= e(asset('js/vendor.min.js')) ?>"></script> 66 <script src="<?= e(asset('js/webtrees.min.js')) ?>"></script> 67 68 <?= View::stack('javascript') ?> 69 70 <?= DebugBar::render() ?> 71 </body> 72</html> 73