1*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Auth; ?> 2*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\DebugBar; ?> 3*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\FlashMessages; ?> 4*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 5*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Theme; ?> 6*dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\View; ?> 7*dd6b2bfcSGreg Roach 8*dd6b2bfcSGreg Roach<!DOCTYPE html> 9*dd6b2bfcSGreg Roach<html <?= I18N::htmlAttributes() ?>> 10*dd6b2bfcSGreg Roach <head> 11*dd6b2bfcSGreg Roach <meta charset="UTF-8"> 12*dd6b2bfcSGreg Roach <meta name="csrf" content="<?= e(csrf_token()) ?>"> 13*dd6b2bfcSGreg Roach <meta name="viewport" content="width=device-width, initial-scale=1"> 14*dd6b2bfcSGreg Roach <meta name="robots" content="<?= e($meta_robots ?? 'noindex,nofollow') ?>"> 15*dd6b2bfcSGreg Roach <meta name="generator" content="<?= e(WT_WEBTREES) ?>"> 16*dd6b2bfcSGreg Roach <?php if ($tree !== null) : ?> 17*dd6b2bfcSGreg Roach <meta name="description" content="<?= e($tree->getPreference('META_DESCRIPTION')) ?>"> 18*dd6b2bfcSGreg Roach <?php endif ?> 19*dd6b2bfcSGreg Roach 20*dd6b2bfcSGreg Roach <title> 21*dd6b2bfcSGreg Roach <?= strip_tags($title) ?> 22*dd6b2bfcSGreg Roach <?php if ($tree !== null && $tree->getPreference('META_TITLE') !== '') : ?> 23*dd6b2bfcSGreg Roach – <?= e($tree->getPreference('META_TITLE')) ?> 24*dd6b2bfcSGreg Roach <?php endif ?> 25*dd6b2bfcSGreg Roach </title> 26*dd6b2bfcSGreg Roach 27*dd6b2bfcSGreg Roach <link rel="icon" href="<?= Theme::theme()::ASSET_DIR ?>favicon.png" type="image/png"> 28*dd6b2bfcSGreg Roach <link rel="icon" type="image/png" href="<?= Theme::theme()::ASSET_DIR ?>favicon192.png" sizes="192x192"> 29*dd6b2bfcSGreg Roach <link rel="apple-touch-icon" sizes="180x180" href="<?= Theme::theme()::ASSET_DIR ?>favicon180.png"> 30*dd6b2bfcSGreg Roach 31*dd6b2bfcSGreg Roach <?php if (I18N::direction() === 'rtl') : ?> 32*dd6b2bfcSGreg Roach <link rel="stylesheet" type="text/css" href="<?= e(WT_ASSETS_URL . 'css/vendor-rtl.css') ?>"> 33*dd6b2bfcSGreg Roach <?php else : ?> 34*dd6b2bfcSGreg Roach <link rel="stylesheet" type="text/css" href="<?= e(WT_ASSETS_URL . 'css/vendor.css') ?>"> 35*dd6b2bfcSGreg Roach <?php endif ?> 36*dd6b2bfcSGreg Roach 37*dd6b2bfcSGreg Roach <?php foreach (Theme::theme()->stylesheets() as $stylesheet) : ?> 38*dd6b2bfcSGreg Roach <link rel="stylesheet" type="text/css" href="<?= $stylesheet ?>"> 39*dd6b2bfcSGreg Roach <?php endforeach ?> 40*dd6b2bfcSGreg Roach 41*dd6b2bfcSGreg Roach <?= View::stack('styles') ?> 42*dd6b2bfcSGreg Roach 43*dd6b2bfcSGreg Roach <?= Theme::theme()->analytics() ?> 44*dd6b2bfcSGreg Roach 45*dd6b2bfcSGreg Roach <?= DebugBar::renderHead() ?> 46*dd6b2bfcSGreg Roach </head> 47*dd6b2bfcSGreg Roach 48*dd6b2bfcSGreg Roach <body class="wt-global"> 49*dd6b2bfcSGreg Roach <header class="wt-header-wrapper d-print-none"> 50*dd6b2bfcSGreg Roach <div class="container wt-header-container"> 51*dd6b2bfcSGreg Roach <div class="row wt-header-content"> 52*dd6b2bfcSGreg Roach <div class="wt-accessibility-links"> 53*dd6b2bfcSGreg Roach <a class="sr-only sr-only-focusable btn btn-info btn-sm" href="#content"> 54*dd6b2bfcSGreg Roach <?= /* I18N: Skip over the headers and menus, to the main content of the page */ I18N::translate('Skip to content') ?> 55*dd6b2bfcSGreg Roach </a> 56*dd6b2bfcSGreg Roach </div> 57*dd6b2bfcSGreg Roach <div class="col wt-site-logo"></div> 58*dd6b2bfcSGreg Roach 59*dd6b2bfcSGreg Roach <?php if ($tree !== null) : ?> 60*dd6b2bfcSGreg Roach <h1 class="col wt-site-title"><?= e($tree->getTitle()) ?></h1> 61*dd6b2bfcSGreg Roach 62*dd6b2bfcSGreg Roach <div class="col wt-header-search"> 63*dd6b2bfcSGreg Roach <form class="wt-header-search-form" role="search"> 64*dd6b2bfcSGreg Roach <input type="hidden" name="route" value="search-quick"> 65*dd6b2bfcSGreg Roach <input type="hidden" name="ged" value="<?= e($tree->getName()) ?>"> 66*dd6b2bfcSGreg Roach <div class="input-group"> 67*dd6b2bfcSGreg Roach <label class="sr-only" for="quick-search"><?= I18N::translate('Search') ?></label> 68*dd6b2bfcSGreg Roach <input type="search" class="form-control wt-header-search-field" id="quick-search" name="query" size="15" placeholder="<?= I18N::translate('Search') ?>"> 69*dd6b2bfcSGreg Roach <span class="input-group-btn"> 70*dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary wt-header-search-button"> 71*dd6b2bfcSGreg Roach <?= view('icons/search') ?> 72*dd6b2bfcSGreg Roach </button> 73*dd6b2bfcSGreg Roach </span> 74*dd6b2bfcSGreg Roach </div> 75*dd6b2bfcSGreg Roach </form> 76*dd6b2bfcSGreg Roach </div> 77*dd6b2bfcSGreg Roach <?php endif ?> 78*dd6b2bfcSGreg Roach 79*dd6b2bfcSGreg Roach <div class="col wt-secondary-navigation"> 80*dd6b2bfcSGreg Roach <ul class="nav wt-secondary-menu"> 81*dd6b2bfcSGreg Roach <?php foreach (Theme::theme()->secondaryMenu() as $menu) : ?> 82*dd6b2bfcSGreg Roach <?= $menu->bootstrap4() ?> 83*dd6b2bfcSGreg Roach <?php endforeach ?> 84*dd6b2bfcSGreg Roach </ul> 85*dd6b2bfcSGreg Roach </div> 86*dd6b2bfcSGreg Roach 87*dd6b2bfcSGreg Roach <?php if ($tree !== null) : ?> 88*dd6b2bfcSGreg Roach <nav class="col wt-primary-navigation"> 89*dd6b2bfcSGreg Roach <ul class="nav wt-primary-menu"> 90*dd6b2bfcSGreg Roach <?php foreach (Theme::theme()->primaryMenu($individual ?? $tree->significantIndividual(Auth::user())) as $menu) : ?> 91*dd6b2bfcSGreg Roach <?= $menu->bootstrap4() ?> 92*dd6b2bfcSGreg Roach <?php endforeach ?> 93*dd6b2bfcSGreg Roach </ul> 94*dd6b2bfcSGreg Roach </nav> 95*dd6b2bfcSGreg Roach <?php endif ?> 96*dd6b2bfcSGreg Roach </div> 97*dd6b2bfcSGreg Roach </div> 98*dd6b2bfcSGreg Roach </header> 99*dd6b2bfcSGreg Roach 100*dd6b2bfcSGreg Roach <main id="content" class="wt-main-wrapper"> 101*dd6b2bfcSGreg Roach <div class="container wt-main-container"> 102*dd6b2bfcSGreg Roach <div class="flash-messages"> 103*dd6b2bfcSGreg Roach <?php foreach (FlashMessages::getMessages() as $message) : ?> 104*dd6b2bfcSGreg Roach <div class="alert alert-<?= e($message->status) ?> alert-dismissible" role="alert"> 105*dd6b2bfcSGreg Roach <button type="button" class="close" data-dismiss="alert" aria-label="<?= I18N::translate('close') ?>"> 106*dd6b2bfcSGreg Roach <span aria-hidden="true">×</span> 107*dd6b2bfcSGreg Roach </button> 108*dd6b2bfcSGreg Roach <?= $message->text ?> 109*dd6b2bfcSGreg Roach </div> 110*dd6b2bfcSGreg Roach <?php endforeach ?> 111*dd6b2bfcSGreg Roach </div> 112*dd6b2bfcSGreg Roach 113*dd6b2bfcSGreg Roach <?= $content ?> 114*dd6b2bfcSGreg Roach </div> 115*dd6b2bfcSGreg Roach </main> 116*dd6b2bfcSGreg Roach 117*dd6b2bfcSGreg Roach <footer class="wt-footer-container"> 118*dd6b2bfcSGreg Roach <div class="wt-footer-content container d-print-none"> 119*dd6b2bfcSGreg Roach <?= Theme::theme()->formatContactLinks() ?> 120*dd6b2bfcSGreg Roach <?= Theme::theme()->logoPoweredBy() ?> 121*dd6b2bfcSGreg Roach 122*dd6b2bfcSGreg Roach <?php if ($page_hits ?? 0 > 0) : ?> 123*dd6b2bfcSGreg Roach <div class="wt-page-views"> 124*dd6b2bfcSGreg Roach <?= I18N::plural( 125*dd6b2bfcSGreg Roach 'This page has been viewed %s time.', 126*dd6b2bfcSGreg Roach 'This page has been viewed %s times.', 127*dd6b2bfcSGreg Roach $page_hits, 128*dd6b2bfcSGreg Roach '<span class="odometer">' . I18N::digits($page_hits) . '</span>' 129*dd6b2bfcSGreg Roach ) ?> 130*dd6b2bfcSGreg Roach </div> 131*dd6b2bfcSGreg Roach <?php endif ?> 132*dd6b2bfcSGreg Roach 133*dd6b2bfcSGreg Roach <?= Theme::theme()->cookieWarning()?> 134*dd6b2bfcSGreg Roach </div> 135*dd6b2bfcSGreg Roach </footer> 136*dd6b2bfcSGreg Roach 137*dd6b2bfcSGreg Roach <script src="<?= e(WT_ASSETS_URL . 'js/vendor.js') ?>?<?= filemtime(WT_ROOT . WT_ASSETS_URL . 'js/vendor.js') ?>"></script> 138*dd6b2bfcSGreg Roach <script src="<?= e(WT_ASSETS_URL . 'js/webtrees.js') ?>?<?= filemtime(WT_ROOT . WT_ASSETS_URL . 'js/webtrees.js') ?>"></script> 139*dd6b2bfcSGreg Roach 140*dd6b2bfcSGreg Roach <script> 141*dd6b2bfcSGreg Roach activate_colorbox(); 142*dd6b2bfcSGreg Roach jQuery.extend(jQuery.colorbox.settings, { 143*dd6b2bfcSGreg Roach width: "85%", 144*dd6b2bfcSGreg Roach height: "85%", 145*dd6b2bfcSGreg Roach transition: "none", 146*dd6b2bfcSGreg Roach slideshowStart: "<?= I18N::translate('Play') ?>", 147*dd6b2bfcSGreg Roach slideshowStop: "<?= I18N::translate('Stop') ?>", 148*dd6b2bfcSGreg Roach title: function() { return this.dataset.title; } 149*dd6b2bfcSGreg Roach }); 150*dd6b2bfcSGreg Roach </script> 151*dd6b2bfcSGreg Roach 152*dd6b2bfcSGreg Roach <?= View::stack('javascript') ?> 153*dd6b2bfcSGreg Roach 154*dd6b2bfcSGreg Roach <?= DebugBar::render() ?> 155*dd6b2bfcSGreg Roach </body> 156*dd6b2bfcSGreg Roach</html> 157