1<?php use Fisharebest\Webtrees\Auth; ?> 2<?php use Fisharebest\Webtrees\DebugBar; ?> 3<?php use Fisharebest\Webtrees\FlashMessages; ?> 4<?php use Fisharebest\Webtrees\I18N; ?> 5<?php use Fisharebest\Webtrees\Module\ModuleAnalyticsInterface; ?> 6<?php use Fisharebest\Webtrees\Module\ModuleFooterInterface; ?> 7<?php use Fisharebest\Webtrees\Module\ModuleThemeInterface; ?> 8<?php use Fisharebest\Webtrees\Services\ModuleService; ?> 9<?php use Fisharebest\Webtrees\View; ?> 10<?php use Fisharebest\Webtrees\Webtrees; ?> 11 12<!DOCTYPE html> 13<html <?= I18N::htmlAttributes() ?>> 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 <?php if (I18N::direction() === 'rtl') : ?> 51 <link rel="stylesheet" type="text/css" href="<?= e(Webtrees::ASSETS_PATH . 'css/vendor-rtl.css') ?>"> 52 <?php else : ?> 53 <link rel="stylesheet" type="text/css" href="<?= e(Webtrees::ASSETS_PATH . 'css/vendor.css') ?>"> 54 <?php endif ?> 55 56 <?php foreach (app()->make(ModuleThemeInterface::class)->stylesheets() as $stylesheet) : ?> 57 <link rel="stylesheet" type="text/css" href="<?= $stylesheet ?>"> 58 <?php endforeach ?> 59 60 <?= View::stack('styles') ?> 61 62 <?= 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('') ?> 63 64 <?= DebugBar::renderHead() ?> 65 </head> 66 67 <body class="wt-global"> 68 <header class="wt-header-wrapper d-print-none"> 69 <div class="container wt-header-container"> 70 <div class="row wt-header-content"> 71 <div class="wt-accessibility-links"> 72 <a class="sr-only sr-only-focusable btn btn-info btn-sm" href="#content"> 73 <?= /* I18N: Skip over the headers and menus, to the main content of the page */ I18N::translate('Skip to content') ?> 74 </a> 75 </div> 76 <div class="col wt-site-logo"></div> 77 78 <?php if ($tree !== null) : ?> 79 <h1 class="col wt-site-title"><?= e($tree->title()) ?></h1> 80 81 <div class="col wt-header-search"> 82 <form class="wt-header-search-form" role="search"> 83 <input type="hidden" name="route" value="search-quick"> 84 <input type="hidden" name="ged" value="<?= e($tree->name()) ?>"> 85 <div class="input-group"> 86 <label class="sr-only" for="quick-search"><?= I18N::translate('Search') ?></label> 87 <input type="search" class="form-control wt-header-search-field" id="quick-search" name="query" size="15" placeholder="<?= I18N::translate('Search') ?>"> 88 <span class="input-group-btn"> 89 <button type="submit" class="btn btn-primary wt-header-search-button"> 90 <?= view('icons/search') ?> 91 </button> 92 </span> 93 </div> 94 </form> 95 </div> 96 <?php endif ?> 97 98 <div class="col wt-secondary-navigation"> 99 <ul class="nav wt-secondary-menu"> 100 <?php foreach (app()->make(ModuleThemeInterface::class)->secondaryMenu() as $menu) : ?> 101 <?= $menu->bootstrap4() ?> 102 <?php endforeach ?> 103 </ul> 104 </div> 105 106 <?php if ($tree !== null) : ?> 107 <nav class="col wt-primary-navigation"> 108 <ul class="nav wt-primary-menu"> 109 <?php foreach (app()->make(ModuleThemeInterface::class)->primaryMenu($individual ?? $tree->significantIndividual(Auth::user())) as $menu) : ?> 110 <?= $menu->bootstrap4() ?> 111 <?php endforeach ?> 112 </ul> 113 </nav> 114 <?php endif ?> 115 </div> 116 </div> 117 </header> 118 119 <main id="content" class="wt-main-wrapper"> 120 <div class="container wt-main-container"> 121 <div class="flash-messages"> 122 <?php foreach (FlashMessages::getMessages() as $message) : ?> 123 <div class="alert alert-<?= e($message->status) ?> alert-dismissible" role="alert"> 124 <button type="button" class="close" data-dismiss="alert" aria-label="<?= I18N::translate('close') ?>"> 125 <span aria-hidden="true">×</span> 126 </button> 127 <?= $message->text ?> 128 </div> 129 <?php endforeach ?> 130 </div> 131 132 <?= $content ?> 133 </div> 134 </main> 135 136 <footer class="wt-footer-container"> 137 <div class="wt-footer-content container d-print-none"> 138 <?= app()->make(ModuleService::class)->findByInterface(ModuleFooterInterface::class)->map(function (ModuleFooterInterface $module) use ($tree): string { return app()->dispatch($module, 'getFooter'); })->implode('') ?> 139 </div> 140 </footer> 141 142 <script src="<?= e(Webtrees::ASSETS_PATH . 'js/vendor.js') ?>?<?= filemtime(WT_ROOT . Webtrees::ASSETS_PATH . 'js/vendor.js') ?>"></script> 143 <script src="<?= e(Webtrees::ASSETS_PATH . 'js/webtrees.js') ?>?<?= filemtime(WT_ROOT . Webtrees::ASSETS_PATH . 'js/webtrees.js') ?>"></script> 144 145 <script> 146 activate_colorbox(); 147 jQuery.extend(jQuery.colorbox.settings, { 148 width: "85%", 149 height: "85%", 150 transition: "none", 151 slideshowStart: "<?= I18N::translate('Play') ?>", 152 slideshowStop: "<?= I18N::translate('Stop') ?>", 153 title: function() { return this.dataset.title; } 154 }); 155 </script> 156 157 <?= View::stack('javascript') ?> 158 159 <?= DebugBar::render() ?> 160 </body> 161</html> 162