1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Auth; ?> 2dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\DebugBar; ?> 3dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\FlashMessages; ?> 4dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 537eb8894SGreg Roach<?php use Fisharebest\Webtrees\Module\ModuleAnalyticsInterface; ?> 633c34396SGreg Roach<?php use Fisharebest\Webtrees\Module\ModuleFooterInterface; ?> 78136679eSGreg Roach<?php use Fisharebest\Webtrees\Module\ModuleThemeInterface; ?> 84ca7e03cSGreg Roach<?php use Fisharebest\Webtrees\Services\ModuleService; ?> 9dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\View; ?> 108d0ebef0SGreg Roach<?php use Fisharebest\Webtrees\Webtrees; ?> 11dd6b2bfcSGreg Roach 12dd6b2bfcSGreg Roach<!DOCTYPE html> 13dd6b2bfcSGreg Roach<html <?= I18N::htmlAttributes() ?>> 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 31*52bcc402SGreg Roach <!-- Generic favicons --> 32*52bcc402SGreg Roach <link rel="icon" sizes="32x32" href="<?= e(asset('favicon-32.png')) ?>"> 33*52bcc402SGreg Roach <link rel="icon" sizes="57x57" href="<?= e(asset('favicon-57.png')) ?>"> 34*52bcc402SGreg Roach <link rel="icon" sizes="76x76" href="<?= e(asset('favicon-76.png')) ?>"> 35*52bcc402SGreg Roach <link rel="icon" sizes="96x96" href="<?= e(asset('favicon-96.png')) ?>"> 36*52bcc402SGreg Roach <link rel="icon" sizes="128x128" href="<?= e(asset('favicon-128.png')) ?>"> 37*52bcc402SGreg Roach <link rel="icon" sizes="192x192" href="<?= e(asset('favicon-192.png')) ?>"> 38*52bcc402SGreg Roach <!-- Android --> 39*52bcc402SGreg Roach <link rel="shortcut icon" sizes="196x196" href=“<?= e(asset('favicon-196.png')) ?>"> 40*52bcc402SGreg Roach <!-- iOS --> 41*52bcc402SGreg Roach <link rel="apple-touch-icon" sizes="120x120" href="<?= e(asset('favicon-120.png')) ?>"> 42*52bcc402SGreg Roach <link rel="apple-touch-icon" sizes="152x152" href="<?= e(asset('favicon-152.png')) ?>"> 43*52bcc402SGreg Roach <link rel="apple-touch-icon" sizes="180x180" href="<?= e(asset('favicon-180.png')) ?>"> 44*52bcc402SGreg Roach <!-- Windows 8 IE 10 --> 45*52bcc402SGreg Roach <meta name="msapplication-TileColor" content="#FFFFFF"> 46*52bcc402SGreg Roach <meta name="msapplication-TileImage" content="<?= e(asset('favicon-144.png')) ?>"> 47*52bcc402SGreg Roach <!-- Windows 8.1 + IE11 and above --> 48*52bcc402SGreg Roach <meta name="msapplication-config" content="<?= e(asset('browserconfig.xml')) ?>"> 49dd6b2bfcSGreg Roach 50dd6b2bfcSGreg Roach <?php if (I18N::direction() === 'rtl') : ?> 518d0ebef0SGreg Roach <link rel="stylesheet" type="text/css" href="<?= e(Webtrees::ASSETS_PATH . 'css/vendor-rtl.css') ?>"> 52dd6b2bfcSGreg Roach <?php else : ?> 538d0ebef0SGreg Roach <link rel="stylesheet" type="text/css" href="<?= e(Webtrees::ASSETS_PATH . 'css/vendor.css') ?>"> 54dd6b2bfcSGreg Roach <?php endif ?> 55dd6b2bfcSGreg Roach 568136679eSGreg Roach <?php foreach (app()->make(ModuleThemeInterface::class)->stylesheets() as $stylesheet) : ?> 57dd6b2bfcSGreg Roach <link rel="stylesheet" type="text/css" href="<?= $stylesheet ?>"> 58dd6b2bfcSGreg Roach <?php endforeach ?> 59dd6b2bfcSGreg Roach 60dd6b2bfcSGreg Roach <?= View::stack('styles') ?> 61dd6b2bfcSGreg Roach 624ca7e03cSGreg Roach <?= app()->make(ModuleService::class)->findByInterface(ModuleAnalyticsInterface::class)->filter(function (ModuleAnalyticsInterface $module): bool { return $module->analyticsCanShow(); })->map(function (ModuleAnalyticsInterface $module): string { return $module->analyticsSnippet($module->analyticsParameters()); })->implode('') ?> 63dd6b2bfcSGreg Roach 64dd6b2bfcSGreg Roach <?= DebugBar::renderHead() ?> 65dd6b2bfcSGreg Roach </head> 66dd6b2bfcSGreg Roach 67dd6b2bfcSGreg Roach <body class="wt-global"> 68dd6b2bfcSGreg Roach <header class="wt-header-wrapper d-print-none"> 69dd6b2bfcSGreg Roach <div class="container wt-header-container"> 70dd6b2bfcSGreg Roach <div class="row wt-header-content"> 71dd6b2bfcSGreg Roach <div class="wt-accessibility-links"> 72dd6b2bfcSGreg Roach <a class="sr-only sr-only-focusable btn btn-info btn-sm" href="#content"> 73dd6b2bfcSGreg Roach <?= /* I18N: Skip over the headers and menus, to the main content of the page */ I18N::translate('Skip to content') ?> 74dd6b2bfcSGreg Roach </a> 75dd6b2bfcSGreg Roach </div> 76dd6b2bfcSGreg Roach <div class="col wt-site-logo"></div> 77dd6b2bfcSGreg Roach 78dd6b2bfcSGreg Roach <?php if ($tree !== null) : ?> 79cc13d6d8SGreg Roach <h1 class="col wt-site-title"><?= e($tree->title()) ?></h1> 80dd6b2bfcSGreg Roach 81dd6b2bfcSGreg Roach <div class="col wt-header-search"> 82dd6b2bfcSGreg Roach <form class="wt-header-search-form" role="search"> 83dd6b2bfcSGreg Roach <input type="hidden" name="route" value="search-quick"> 84aa6f03bbSGreg Roach <input type="hidden" name="ged" value="<?= e($tree->name()) ?>"> 85dd6b2bfcSGreg Roach <div class="input-group"> 86dd6b2bfcSGreg Roach <label class="sr-only" for="quick-search"><?= I18N::translate('Search') ?></label> 87dd6b2bfcSGreg Roach <input type="search" class="form-control wt-header-search-field" id="quick-search" name="query" size="15" placeholder="<?= I18N::translate('Search') ?>"> 88dd6b2bfcSGreg Roach <span class="input-group-btn"> 89dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary wt-header-search-button"> 90dd6b2bfcSGreg Roach <?= view('icons/search') ?> 91dd6b2bfcSGreg Roach </button> 92dd6b2bfcSGreg Roach </span> 93dd6b2bfcSGreg Roach </div> 94dd6b2bfcSGreg Roach </form> 95dd6b2bfcSGreg Roach </div> 96dd6b2bfcSGreg Roach <?php endif ?> 97dd6b2bfcSGreg Roach 98dd6b2bfcSGreg Roach <div class="col wt-secondary-navigation"> 99dd6b2bfcSGreg Roach <ul class="nav wt-secondary-menu"> 1008136679eSGreg Roach <?php foreach (app()->make(ModuleThemeInterface::class)->secondaryMenu() as $menu) : ?> 101dd6b2bfcSGreg Roach <?= $menu->bootstrap4() ?> 102dd6b2bfcSGreg Roach <?php endforeach ?> 103dd6b2bfcSGreg Roach </ul> 104dd6b2bfcSGreg Roach </div> 105dd6b2bfcSGreg Roach 106dd6b2bfcSGreg Roach <?php if ($tree !== null) : ?> 107dd6b2bfcSGreg Roach <nav class="col wt-primary-navigation"> 108dd6b2bfcSGreg Roach <ul class="nav wt-primary-menu"> 1098136679eSGreg Roach <?php foreach (app()->make(ModuleThemeInterface::class)->primaryMenu($individual ?? $tree->significantIndividual(Auth::user())) as $menu) : ?> 110dd6b2bfcSGreg Roach <?= $menu->bootstrap4() ?> 111dd6b2bfcSGreg Roach <?php endforeach ?> 112dd6b2bfcSGreg Roach </ul> 113dd6b2bfcSGreg Roach </nav> 114dd6b2bfcSGreg Roach <?php endif ?> 115dd6b2bfcSGreg Roach </div> 116dd6b2bfcSGreg Roach </div> 117dd6b2bfcSGreg Roach </header> 118dd6b2bfcSGreg Roach 119dd6b2bfcSGreg Roach <main id="content" class="wt-main-wrapper"> 120dd6b2bfcSGreg Roach <div class="container wt-main-container"> 121dd6b2bfcSGreg Roach <div class="flash-messages"> 122dd6b2bfcSGreg Roach <?php foreach (FlashMessages::getMessages() as $message) : ?> 123dd6b2bfcSGreg Roach <div class="alert alert-<?= e($message->status) ?> alert-dismissible" role="alert"> 124dd6b2bfcSGreg Roach <button type="button" class="close" data-dismiss="alert" aria-label="<?= I18N::translate('close') ?>"> 125dd6b2bfcSGreg Roach <span aria-hidden="true">×</span> 126dd6b2bfcSGreg Roach </button> 127dd6b2bfcSGreg Roach <?= $message->text ?> 128dd6b2bfcSGreg Roach </div> 129dd6b2bfcSGreg Roach <?php endforeach ?> 130dd6b2bfcSGreg Roach </div> 131dd6b2bfcSGreg Roach 132dd6b2bfcSGreg Roach <?= $content ?> 133dd6b2bfcSGreg Roach </div> 134dd6b2bfcSGreg Roach </main> 135dd6b2bfcSGreg Roach 136dd6b2bfcSGreg Roach <footer class="wt-footer-container"> 137dd6b2bfcSGreg Roach <div class="wt-footer-content container d-print-none"> 1384ca7e03cSGreg Roach <?= app()->make(ModuleService::class)->findByInterface(ModuleFooterInterface::class)->map(function (ModuleFooterInterface $module) use ($tree): string { return app()->dispatch($module, 'getFooter'); })->implode('') ?> 139dd6b2bfcSGreg Roach </div> 140dd6b2bfcSGreg Roach </footer> 141dd6b2bfcSGreg Roach 1428d0ebef0SGreg Roach <script src="<?= e(Webtrees::ASSETS_PATH . 'js/vendor.js') ?>?<?= filemtime(WT_ROOT . Webtrees::ASSETS_PATH . 'js/vendor.js') ?>"></script> 1438d0ebef0SGreg Roach <script src="<?= e(Webtrees::ASSETS_PATH . 'js/webtrees.js') ?>?<?= filemtime(WT_ROOT . Webtrees::ASSETS_PATH . 'js/webtrees.js') ?>"></script> 144dd6b2bfcSGreg Roach 145dd6b2bfcSGreg Roach <script> 146dd6b2bfcSGreg Roach activate_colorbox(); 147dd6b2bfcSGreg Roach jQuery.extend(jQuery.colorbox.settings, { 148dd6b2bfcSGreg Roach width: "85%", 149dd6b2bfcSGreg Roach height: "85%", 150dd6b2bfcSGreg Roach transition: "none", 151dd6b2bfcSGreg Roach slideshowStart: "<?= I18N::translate('Play') ?>", 152dd6b2bfcSGreg Roach slideshowStop: "<?= I18N::translate('Stop') ?>", 153dd6b2bfcSGreg Roach title: function() { return this.dataset.title; } 154dd6b2bfcSGreg Roach }); 155dd6b2bfcSGreg Roach </script> 156dd6b2bfcSGreg Roach 157dd6b2bfcSGreg Roach <?= View::stack('javascript') ?> 158dd6b2bfcSGreg Roach 159dd6b2bfcSGreg Roach <?= DebugBar::render() ?> 160dd6b2bfcSGreg Roach </body> 161dd6b2bfcSGreg Roach</html> 162