1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\DebugBar; ?> 2dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\FlashMessages; ?> 3dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 433c34396SGreg Roach<?php use Fisharebest\Webtrees\Module\ModuleFooterInterface; ?> 5abafa13cSGreg Roach<?php use Fisharebest\Webtrees\Module\ModuleGlobalInterface; ?> 68136679eSGreg Roach<?php use Fisharebest\Webtrees\Module\ModuleThemeInterface; ?> 74ca7e03cSGreg Roach<?php use Fisharebest\Webtrees\Services\ModuleService; ?> 8dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\View; ?> 98d0ebef0SGreg Roach<?php use Fisharebest\Webtrees\Webtrees; ?> 1097c22350SGreg Roach<?php use Symfony\Component\HttpFoundation\Request; ?> 11dd6b2bfcSGreg Roach 12dd6b2bfcSGreg Roach<!DOCTYPE html> 13e837ff07SGreg Roach<html dir="<?= I18N::direction() ?>" lang="<?= WT_LOCALE ?>"> 14dd6b2bfcSGreg Roach <head> 15dd6b2bfcSGreg Roach <meta charset="UTF-8"> 16dd6b2bfcSGreg Roach <meta name="csrf" content="<?= e(csrf_token()) ?>"> 17dd6b2bfcSGreg Roach <meta name="viewport" content="width=device-width, initial-scale=1"> 18377a2979SGreg Roach <meta name="robots" content="<?= e($meta_robots ?? 'noindex') ?>"> 198d0ebef0SGreg Roach <meta name="generator" content="<?= e(Webtrees::NAME) ?> <?= e(Webtrees::VERSION) ?>"> 20dd6b2bfcSGreg Roach <?php if ($tree !== null) : ?> 21dd6b2bfcSGreg Roach <meta name="description" content="<?= e($tree->getPreference('META_DESCRIPTION')) ?>"> 22dd6b2bfcSGreg Roach <?php endif ?> 23dd6b2bfcSGreg Roach 24dd6b2bfcSGreg Roach <title> 25dd6b2bfcSGreg Roach <?= strip_tags($title) ?> 26dd6b2bfcSGreg Roach <?php if ($tree !== null && $tree->getPreference('META_TITLE') !== '') : ?> 27dd6b2bfcSGreg Roach – <?= e($tree->getPreference('META_TITLE')) ?> 28dd6b2bfcSGreg Roach <?php endif ?> 29dd6b2bfcSGreg Roach </title> 30dd6b2bfcSGreg Roach 3152bcc402SGreg Roach <!--Generic favicons--> 3252bcc402SGreg Roach <link rel="icon" sizes="32x32" href="<?= e(asset('favicon-32.png')) ?>"> 3352bcc402SGreg Roach <link rel="icon" sizes="57x57" href="<?= e(asset('favicon-57.png')) ?>"> 3452bcc402SGreg Roach <link rel="icon" sizes="76x76" href="<?= e(asset('favicon-76.png')) ?>"> 3552bcc402SGreg Roach <link rel="icon" sizes="96x96" href="<?= e(asset('favicon-96.png')) ?>"> 3652bcc402SGreg Roach <link rel="icon" sizes="128x128" href="<?= e(asset('favicon-128.png')) ?>"> 3752bcc402SGreg Roach <link rel="icon" sizes="192x192" href="<?= e(asset('favicon-192.png')) ?>"> 3852bcc402SGreg Roach <!--Android--> 3990b733bfSGreg Roach <link rel="shortcut icon" sizes="196x196" href="<?= e(asset('favicon-196.png')) ?>"> 4052bcc402SGreg Roach <!--iOS--> 4152bcc402SGreg Roach <link rel="apple-touch-icon" sizes="120x120" href="<?= e(asset('favicon-120.png')) ?>"> 4252bcc402SGreg Roach <link rel="apple-touch-icon" sizes="152x152" href="<?= e(asset('favicon-152.png')) ?>"> 4352bcc402SGreg Roach <link rel="apple-touch-icon" sizes="180x180" href="<?= e(asset('favicon-180.png')) ?>"> 4452bcc402SGreg Roach <!--Windows 8 IE 10--> 4552bcc402SGreg Roach <meta name="msapplication-TileColor" content="#FFFFFF"> 4652bcc402SGreg Roach <meta name="msapplication-TileImage" content="<?= e(asset('favicon-144.png')) ?>"> 4752bcc402SGreg Roach <!--Windows 8.1 + IE11 and above--> 4852bcc402SGreg Roach <meta name="msapplication-config" content="<?= e(asset('browserconfig.xml')) ?>"> 49dd6b2bfcSGreg Roach 50e837ff07SGreg Roach <link rel="stylesheet" href="<?= e(asset('css/vendor.min.css')) ?>"> 51cab242e7SGreg Roach <?php foreach (app(ModuleThemeInterface::class)->stylesheets() as $stylesheet) : ?> 52e837ff07SGreg Roach <link rel="stylesheet" href="<?= e($stylesheet) ?>"> 53dd6b2bfcSGreg Roach <?php endforeach ?> 54dd6b2bfcSGreg Roach 55dd6b2bfcSGreg Roach <?= View::stack('styles') ?> 56dd6b2bfcSGreg Roach 57abafa13cSGreg Roach <?= app(ModuleService::class)->findByInterface(ModuleGlobalInterface::class)->map(function (ModuleGlobalInterface $module): string { return $module->headContent(); })->implode('') ?> 58dd6b2bfcSGreg Roach 59dd6b2bfcSGreg Roach <?= DebugBar::renderHead() ?> 60dd6b2bfcSGreg Roach </head> 61dd6b2bfcSGreg Roach 624e73f0bdSGreg Roach <body class="wt-global wt-theme-<?= e(app(ModuleThemeInterface::class)->name()) ?> wt-route-<?= e(app(Request::class)->get('route')) ?>"> 63dd6b2bfcSGreg Roach <header class="wt-header-wrapper d-print-none"> 64dd6b2bfcSGreg Roach <div class="container wt-header-container"> 65dd6b2bfcSGreg Roach <div class="row wt-header-content"> 6697c22350SGreg Roach <div class="wt-accessibility-links position-fixed"> 67dd6b2bfcSGreg Roach <a class="sr-only sr-only-focusable btn btn-info btn-sm" href="#content"> 68dd6b2bfcSGreg Roach <?= /* I18N: Skip over the headers and menus, to the main content of the page */ I18N::translate('Skip to content') ?> 69dd6b2bfcSGreg Roach </a> 70dd6b2bfcSGreg Roach </div> 71dd6b2bfcSGreg Roach <div class="col wt-site-logo"></div> 72dd6b2bfcSGreg Roach 73dd6b2bfcSGreg Roach <?php if ($tree !== null) : ?> 74cc13d6d8SGreg Roach <h1 class="col wt-site-title"><?= e($tree->title()) ?></h1> 75dd6b2bfcSGreg Roach 76dd6b2bfcSGreg Roach <div class="col wt-header-search"> 77dd6b2bfcSGreg Roach <form class="wt-header-search-form" role="search"> 78dd6b2bfcSGreg Roach <input type="hidden" name="route" value="search-quick"> 79aa6f03bbSGreg Roach <input type="hidden" name="ged" value="<?= e($tree->name()) ?>"> 80dd6b2bfcSGreg Roach <div class="input-group"> 81dd6b2bfcSGreg Roach <label class="sr-only" for="quick-search"><?= I18N::translate('Search') ?></label> 82dd6b2bfcSGreg Roach <input type="search" class="form-control wt-header-search-field" id="quick-search" name="query" size="15" placeholder="<?= I18N::translate('Search') ?>"> 83*b6c326d8SGreg Roach <div class="input-group-append"> 84dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary wt-header-search-button"> 85dd6b2bfcSGreg Roach <?= view('icons/search') ?> 86dd6b2bfcSGreg Roach </button> 87*b6c326d8SGreg Roach </div> 88dd6b2bfcSGreg Roach </div> 89dd6b2bfcSGreg Roach </form> 90dd6b2bfcSGreg Roach </div> 91dd6b2bfcSGreg Roach <?php endif ?> 92dd6b2bfcSGreg Roach 93dd6b2bfcSGreg Roach <div class="col wt-secondary-navigation"> 940c8c69d4SGreg Roach <ul class="nav wt-user-menu"> 95cab242e7SGreg Roach <?php foreach (app(ModuleThemeInterface::class)->userMenu($tree) as $menu) : ?> 96dd6b2bfcSGreg Roach <?= $menu->bootstrap4() ?> 97dd6b2bfcSGreg Roach <?php endforeach ?> 98dd6b2bfcSGreg Roach </ul> 99dd6b2bfcSGreg Roach </div> 100dd6b2bfcSGreg Roach 101dd6b2bfcSGreg Roach <?php if ($tree !== null) : ?> 102dd6b2bfcSGreg Roach <nav class="col wt-primary-navigation"> 1030c8c69d4SGreg Roach <ul class="nav wt-genealogy-menu"> 104cab242e7SGreg Roach <?php foreach (app(ModuleThemeInterface::class)->genealogyMenu($tree) as $menu) : ?> 105dd6b2bfcSGreg Roach <?= $menu->bootstrap4() ?> 106dd6b2bfcSGreg Roach <?php endforeach ?> 107dd6b2bfcSGreg Roach </ul> 108dd6b2bfcSGreg Roach </nav> 109dd6b2bfcSGreg Roach <?php endif ?> 110dd6b2bfcSGreg Roach </div> 111dd6b2bfcSGreg Roach </div> 112dd6b2bfcSGreg Roach </header> 113dd6b2bfcSGreg Roach 114dd6b2bfcSGreg Roach <main id="content" class="wt-main-wrapper"> 115dd6b2bfcSGreg Roach <div class="container wt-main-container"> 116dd6b2bfcSGreg Roach <div class="flash-messages"> 117dd6b2bfcSGreg Roach <?php foreach (FlashMessages::getMessages() as $message) : ?> 118dd6b2bfcSGreg Roach <div class="alert alert-<?= e($message->status) ?> alert-dismissible" role="alert"> 119dd6b2bfcSGreg Roach <button type="button" class="close" data-dismiss="alert" aria-label="<?= I18N::translate('close') ?>"> 120dd6b2bfcSGreg Roach <span aria-hidden="true">×</span> 121dd6b2bfcSGreg Roach </button> 122dd6b2bfcSGreg Roach <?= $message->text ?> 123dd6b2bfcSGreg Roach </div> 124dd6b2bfcSGreg Roach <?php endforeach ?> 125dd6b2bfcSGreg Roach </div> 126dd6b2bfcSGreg Roach 127dd6b2bfcSGreg Roach <?= $content ?> 128dd6b2bfcSGreg Roach </div> 129dd6b2bfcSGreg Roach </main> 130dd6b2bfcSGreg Roach 13197c22350SGreg Roach <footer class="wt-footers container d-print-none"> 132cab242e7SGreg Roach <?= app(ModuleService::class)->findByInterface(ModuleFooterInterface::class)->map(function (ModuleFooterInterface $module) use ($tree): string { return $module->getFooter($tree); })->implode('') ?> 133dd6b2bfcSGreg Roach </footer> 134dd6b2bfcSGreg Roach 135ad727080SGreg Roach <script src="<?= e(asset('js/vendor.min.js')) ?>"></script> 136ad727080SGreg Roach <script src="<?= e(asset('js/webtrees.min.js')) ?>"></script> 137dd6b2bfcSGreg Roach 138dd6b2bfcSGreg Roach <script> 139dd6b2bfcSGreg Roach activate_colorbox(); 140dd6b2bfcSGreg Roach jQuery.extend(jQuery.colorbox.settings, { 141dd6b2bfcSGreg Roach width: "85%", 142dd6b2bfcSGreg Roach height: "85%", 143dd6b2bfcSGreg Roach transition: "none", 144dd6b2bfcSGreg Roach slideshowStart: "<?= I18N::translate('Play') ?>", 145dd6b2bfcSGreg Roach slideshowStop: "<?= I18N::translate('Stop') ?>", 146dd6b2bfcSGreg Roach title: function() { return this.dataset.title; } 147dd6b2bfcSGreg Roach }); 148dd6b2bfcSGreg Roach </script> 149dd6b2bfcSGreg Roach 150dd6b2bfcSGreg Roach <?= View::stack('javascript') ?> 151dd6b2bfcSGreg Roach 152abafa13cSGreg Roach <?= app(ModuleService::class)->findByInterface(ModuleGlobalInterface::class)->map(function (ModuleGlobalInterface $module): string { return $module->bodyContent(); })->implode('') ?> 153abafa13cSGreg Roach 154dd6b2bfcSGreg Roach <?= DebugBar::render() ?> 155dd6b2bfcSGreg Roach </body> 156dd6b2bfcSGreg Roach</html> 157