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