16ccdf4f0SGreg Roach<?php 26ccdf4f0SGreg Roach 36ccdf4f0SGreg Roachuse Fisharebest\Webtrees\DebugBar; 46ccdf4f0SGreg Roachuse Fisharebest\Webtrees\FlashMessages; 5f5402f3dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchQuickAction; 66ccdf4f0SGreg Roachuse Fisharebest\Webtrees\I18N; 76ccdf4f0SGreg Roachuse Fisharebest\Webtrees\Module\ModuleFooterInterface; 86ccdf4f0SGreg Roachuse Fisharebest\Webtrees\Module\ModuleGlobalInterface; 96ccdf4f0SGreg Roachuse Fisharebest\Webtrees\Module\ModuleThemeInterface; 106ccdf4f0SGreg Roachuse Fisharebest\Webtrees\Services\ModuleService; 116ccdf4f0SGreg Roachuse Fisharebest\Webtrees\View; 126ccdf4f0SGreg Roachuse Fisharebest\Webtrees\Webtrees; 136ccdf4f0SGreg Roachuse Psr\Http\Message\ServerRequestInterface; 146ccdf4f0SGreg Roach 156ccdf4f0SGreg Roach/** 166ccdf4f0SGreg Roach * @var string $title 176ccdf4f0SGreg Roach * @var string $content 186ccdf4f0SGreg Roach */ 196ccdf4f0SGreg Roach 2090a2f718SGreg Roach$language_tag = app(ServerRequestInterface::class)->getAttribute('locale')->languageTag(); 216ccdf4f0SGreg Roach?> 22dd6b2bfcSGreg Roach 23dd6b2bfcSGreg Roach<!DOCTYPE html> 2490a2f718SGreg Roach<html dir="<?= I18N::direction() ?>" lang="<?= e($language_tag) ?>"> 25dd6b2bfcSGreg Roach <head> 26dd6b2bfcSGreg Roach <meta charset="UTF-8"> 27dd6b2bfcSGreg Roach <meta name="csrf" content="<?= e(csrf_token()) ?>"> 28dd6b2bfcSGreg Roach <meta name="viewport" content="width=device-width, initial-scale=1"> 29377a2979SGreg Roach <meta name="robots" content="<?= e($meta_robots ?? 'noindex') ?>"> 308d0ebef0SGreg Roach <meta name="generator" content="<?= e(Webtrees::NAME) ?> <?= e(Webtrees::VERSION) ?>"> 31dd6b2bfcSGreg Roach <?php if ($tree !== null) : ?> 32dd6b2bfcSGreg Roach <meta name="description" content="<?= e($tree->getPreference('META_DESCRIPTION')) ?>"> 33dd6b2bfcSGreg Roach <?php endif ?> 34dd6b2bfcSGreg Roach 35dd6b2bfcSGreg Roach <title> 36dd6b2bfcSGreg Roach <?= strip_tags($title) ?> 37dd6b2bfcSGreg Roach <?php if ($tree !== null && $tree->getPreference('META_TITLE') !== '') : ?> 38dd6b2bfcSGreg Roach – <?= e($tree->getPreference('META_TITLE')) ?> 39dd6b2bfcSGreg Roach <?php endif ?> 40dd6b2bfcSGreg Roach </title> 41dd6b2bfcSGreg Roach 4252bcc402SGreg Roach <!--Generic favicons--> 4352bcc402SGreg Roach <link rel="icon" sizes="32x32" href="<?= e(asset('favicon-32.png')) ?>"> 4452bcc402SGreg Roach <link rel="icon" sizes="57x57" href="<?= e(asset('favicon-57.png')) ?>"> 4552bcc402SGreg Roach <link rel="icon" sizes="76x76" href="<?= e(asset('favicon-76.png')) ?>"> 4652bcc402SGreg Roach <link rel="icon" sizes="96x96" href="<?= e(asset('favicon-96.png')) ?>"> 4752bcc402SGreg Roach <link rel="icon" sizes="128x128" href="<?= e(asset('favicon-128.png')) ?>"> 4852bcc402SGreg Roach <link rel="icon" sizes="192x192" href="<?= e(asset('favicon-192.png')) ?>"> 4952bcc402SGreg Roach <!--Android--> 5090b733bfSGreg Roach <link rel="shortcut icon" sizes="196x196" href="<?= e(asset('favicon-196.png')) ?>"> 5152bcc402SGreg Roach <!--iOS--> 5252bcc402SGreg Roach <link rel="apple-touch-icon" sizes="120x120" href="<?= e(asset('favicon-120.png')) ?>"> 5352bcc402SGreg Roach <link rel="apple-touch-icon" sizes="152x152" href="<?= e(asset('favicon-152.png')) ?>"> 5452bcc402SGreg Roach <link rel="apple-touch-icon" sizes="180x180" href="<?= e(asset('favicon-180.png')) ?>"> 5552bcc402SGreg Roach <!--Windows 8 IE 10--> 5652bcc402SGreg Roach <meta name="msapplication-TileColor" content="#FFFFFF"> 5752bcc402SGreg Roach <meta name="msapplication-TileImage" content="<?= e(asset('favicon-144.png')) ?>"> 5852bcc402SGreg Roach <!--Windows 8.1 + IE11 and above--> 5952bcc402SGreg Roach <meta name="msapplication-config" content="<?= e(asset('browserconfig.xml')) ?>"> 60dd6b2bfcSGreg Roach 61*c4d12d2bSGreg Roach <link rel="manifest" href="<?= e(asset('site.webmanifest')) ?>"> 62*c4d12d2bSGreg Roach 63e837ff07SGreg Roach <link rel="stylesheet" href="<?= e(asset('css/vendor.min.css')) ?>"> 64cab242e7SGreg Roach <?php foreach (app(ModuleThemeInterface::class)->stylesheets() as $stylesheet) : ?> 65e837ff07SGreg Roach <link rel="stylesheet" href="<?= e($stylesheet) ?>"> 66dd6b2bfcSGreg Roach <?php endforeach ?> 67dd6b2bfcSGreg Roach 68dd6b2bfcSGreg Roach <?= View::stack('styles') ?> 69dd6b2bfcSGreg Roach 700b5fd0a6SGreg Roach <?= app(ModuleService::class)->findByInterface(ModuleGlobalInterface::class)->map(static function (ModuleGlobalInterface $module): string { return $module->headContent(); })->implode('') ?> 71dd6b2bfcSGreg Roach 72dd6b2bfcSGreg Roach <?= DebugBar::renderHead() ?> 73dd6b2bfcSGreg Roach </head> 74dd6b2bfcSGreg Roach 75ee4364daSGreg Roach <body class="wt-global wt-theme-<?= e(app(ModuleThemeInterface::class)->name()) ?> wt-route-<?= e(app(ServerRequestInterface::class)->getAttribute('route')) ?>"> 76dd6b2bfcSGreg Roach <header class="wt-header-wrapper d-print-none"> 77dd6b2bfcSGreg Roach <div class="container wt-header-container"> 78dd6b2bfcSGreg Roach <div class="row wt-header-content"> 7997c22350SGreg Roach <div class="wt-accessibility-links position-fixed"> 80dd6b2bfcSGreg Roach <a class="sr-only sr-only-focusable btn btn-info btn-sm" href="#content"> 816ccdf4f0SGreg Roach <?= /* I18N: Skip over the headers and menus, to the main content of the page */ 826ccdf4f0SGreg Roach I18N::translate('Skip to content') ?> 83dd6b2bfcSGreg Roach </a> 84dd6b2bfcSGreg Roach </div> 85dd6b2bfcSGreg Roach <div class="col wt-site-logo"></div> 86dd6b2bfcSGreg Roach 87dd6b2bfcSGreg Roach <?php if ($tree !== null) : ?> 88cc13d6d8SGreg Roach <h1 class="col wt-site-title"><?= e($tree->title()) ?></h1> 89dd6b2bfcSGreg Roach 90dd6b2bfcSGreg Roach <div class="col wt-header-search"> 91f5402f3dSGreg Roach <form method="post" action="<?= e(route(SearchQuickAction::class, ['tree' => $tree->name()])) ?>" class="wt-header-search-form" role="search"> 92d1fc782cSGreg Roach <?= csrf_field() ?> 93dd6b2bfcSGreg Roach <div class="input-group"> 94dd6b2bfcSGreg Roach <label class="sr-only" for="quick-search"><?= I18N::translate('Search') ?></label> 95dd6b2bfcSGreg Roach <input type="search" class="form-control wt-header-search-field" id="quick-search" name="query" size="15" placeholder="<?= I18N::translate('Search') ?>"> 96b6c326d8SGreg Roach <div class="input-group-append"> 97dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary wt-header-search-button"> 98dd6b2bfcSGreg Roach <?= view('icons/search') ?> 99dd6b2bfcSGreg Roach </button> 100b6c326d8SGreg Roach </div> 101dd6b2bfcSGreg Roach </div> 102dd6b2bfcSGreg Roach </form> 103dd6b2bfcSGreg Roach </div> 104dd6b2bfcSGreg Roach <?php endif ?> 105dd6b2bfcSGreg Roach 106dd6b2bfcSGreg Roach <div class="col wt-secondary-navigation"> 1070c8c69d4SGreg Roach <ul class="nav wt-user-menu"> 108cab242e7SGreg Roach <?php foreach (app(ModuleThemeInterface::class)->userMenu($tree) as $menu) : ?> 109dd6b2bfcSGreg Roach <?= $menu->bootstrap4() ?> 110dd6b2bfcSGreg Roach <?php endforeach ?> 111dd6b2bfcSGreg Roach </ul> 112dd6b2bfcSGreg Roach </div> 113dd6b2bfcSGreg Roach 114dd6b2bfcSGreg Roach <?php if ($tree !== null) : ?> 115dd6b2bfcSGreg Roach <nav class="col wt-primary-navigation"> 1160c8c69d4SGreg Roach <ul class="nav wt-genealogy-menu"> 117cab242e7SGreg Roach <?php foreach (app(ModuleThemeInterface::class)->genealogyMenu($tree) as $menu) : ?> 118dd6b2bfcSGreg Roach <?= $menu->bootstrap4() ?> 119dd6b2bfcSGreg Roach <?php endforeach ?> 120dd6b2bfcSGreg Roach </ul> 121dd6b2bfcSGreg Roach </nav> 122dd6b2bfcSGreg Roach <?php endif ?> 123dd6b2bfcSGreg Roach </div> 124dd6b2bfcSGreg Roach </div> 125dd6b2bfcSGreg Roach </header> 126dd6b2bfcSGreg Roach 127dd6b2bfcSGreg Roach <main id="content" class="wt-main-wrapper"> 128dd6b2bfcSGreg Roach <div class="container wt-main-container"> 129dd6b2bfcSGreg Roach <div class="flash-messages"> 130dd6b2bfcSGreg Roach <?php foreach (FlashMessages::getMessages() as $message) : ?> 131dd6b2bfcSGreg Roach <div class="alert alert-<?= e($message->status) ?> alert-dismissible" role="alert"> 132dd6b2bfcSGreg Roach <button type="button" class="close" data-dismiss="alert" aria-label="<?= I18N::translate('close') ?>"> 133dd6b2bfcSGreg Roach <span aria-hidden="true">×</span> 134dd6b2bfcSGreg Roach </button> 135dd6b2bfcSGreg Roach <?= $message->text ?> 136dd6b2bfcSGreg Roach </div> 137dd6b2bfcSGreg Roach <?php endforeach ?> 138dd6b2bfcSGreg Roach </div> 139dd6b2bfcSGreg Roach 140dd6b2bfcSGreg Roach <?= $content ?> 141dd6b2bfcSGreg Roach </div> 142dd6b2bfcSGreg Roach </main> 143dd6b2bfcSGreg Roach 14497c22350SGreg Roach <footer class="wt-footers container d-print-none"> 145a992e8c1SGreg Roach <?= app(ModuleService::class)->findByInterface(ModuleFooterInterface::class)->map(static function (ModuleFooterInterface $module) use ($request): string { return $module->getFooter($request); })->implode('') ?> 146dd6b2bfcSGreg Roach </footer> 147dd6b2bfcSGreg Roach 148ad727080SGreg Roach <script src="<?= e(asset('js/vendor.min.js')) ?>"></script> 149ad727080SGreg Roach <script src="<?= e(asset('js/webtrees.min.js')) ?>"></script> 150dd6b2bfcSGreg Roach 151dd6b2bfcSGreg Roach <script> 152dd6b2bfcSGreg Roach activate_colorbox(); 153dd6b2bfcSGreg Roach jQuery.extend(jQuery.colorbox.settings, { 154dd6b2bfcSGreg Roach width: "85%", 155dd6b2bfcSGreg Roach height: "85%", 156dd6b2bfcSGreg Roach transition: "none", 157dd6b2bfcSGreg Roach slideshowStart: "<?= I18N::translate('Play') ?>", 158dd6b2bfcSGreg Roach slideshowStop: "<?= I18N::translate('Stop') ?>", 1596ccdf4f0SGreg Roach title: function () { 1606ccdf4f0SGreg Roach return this.dataset.title; 1616ccdf4f0SGreg Roach }, 162dd6b2bfcSGreg Roach }); 163dd6b2bfcSGreg Roach </script> 164dd6b2bfcSGreg Roach 165dd6b2bfcSGreg Roach <?= View::stack('javascript') ?> 166dd6b2bfcSGreg Roach 1670b5fd0a6SGreg Roach <?= app(ModuleService::class)->findByInterface(ModuleGlobalInterface::class)->map(static function (ModuleGlobalInterface $module): string { return $module->bodyContent(); })->implode('') ?> 168abafa13cSGreg Roach 169dd6b2bfcSGreg Roach <?= DebugBar::render() ?> 170dd6b2bfcSGreg Roach </body> 171dd6b2bfcSGreg Roach</html> 172