blob: 9f54abbfd3bc8df342300cc7713ac63734c207d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
<?php use Fisharebest\Webtrees\Filter; ?>
<?php use Fisharebest\Webtrees\FlashMessages; ?>
<?php use Fisharebest\Webtrees\Html; ?>
<?php use Fisharebest\Webtrees\I18N; ?>
<!DOCTYPE html>
<html <?= I18N::htmlAttributes() ?>>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf" content="<?= Html::escape(Filter::getCsrfToken()) ?>">
<title><?= $title ?></title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="<?= Html::escape(WT_BOOTSTRAP_CSS_URL) ?>">
<link rel="stylesheet" type="text/css" href="<?= Html::escape(WT_FONT_AWESOME_CSS_URL) ?>">
<link rel="stylesheet" type="text/css" href="<?= Html::escape(WT_FONT_AWESOME_RTL_CSS_URL) ?>">
<link rel="stylesheet" type="text/css" href="<?= Html::escape(WT_DATATABLES_BOOTSTRAP_CSS_URL) ?>">
<link rel="stylesheet" type="text/css" href="<?= Html::escape(WT_SELECT2_CSS_URL) ?>">
<link rel="stylesheet" type="text/css" href="<?= Html::escape(WT_DATATABLES_BOOTSTRAP_CSS_URL) ?>">
<link rel="stylesheet" type="text/css" href="<?= Html::escape(WT_BOOTSTRAP_DATETIMEPICKER_CSS_URL) ?>">
<link rel="stylesheet" type="text/css" href="<?= Html::escape($common_url) ?>style.css">
<link rel="stylesheet" type="text/css" href="<?= Html::escape($theme_url) ?>style.css">
<?php if (I18N::direction() === 'rtl'): ?>
<link rel="stylesheet" type="text/css" href="<?= WT_BOOTSTRAP_RTL_CSS_URL ?>">
<?php endif ?>
</head>
<body class="container wt-global">
<header>
<div class="wt-accessibility-links">
<a class="sr-only sr-only-focusable btn btn-info btn-sm" href="#content">
<?= /* I18N: Skip over the headers and menus, to the main content of the page */ I18N::translate('Skip to content') ?>
</a>
</div>
<ul class="nav small d-flex justify-content-end">
<li class="nav-item menu-mypage">
<a class="nav-link active" href="index.php"><?= I18N::translate('My page') ?></a>
</li>
<li class="nav-item dropdown menu-language">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<?= I18N::translate('Language') ?>
</a>
<div class="dropdown-menu">
<?php foreach (I18N::activeLocales() as $locale): ?>
<a class="dropdown-item menu-language-<?= $locale->languageTag() ?> <?= WT_LOCALE === $locale->languageTag() ? ' active' : ''?>" data-language="<?= $locale->languageTag() ?>" href="#"><?= $locale->endonym() ?></a>
<?php endforeach ?>
</div>
</li>
<li class="nav-item menu-logout">
<a class="nav-link" href="logout.php"><?= I18N::translate('Sign out') ?></a>
</li>
</ul>
</header>
<div id="content"></div>
<?php foreach (FlashMessages::getMessages() as $message): ?>
<div class="alert alert-<?= $message->status ?> alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="<?= I18N::translate('close') ?>">
<span aria-hidden="true">×</span>
</button>
<?= $message->text ?>
</div>
<?php endforeach ?>
<?= $content ?>
<script src="<?= Html::escape(WT_JQUERY_JS_URL) ?>"></script>
<script src="<?= Html::escape(WT_POPPER_JS_URL) ?>"></script>
<script src="<?= Html::escape(WT_BOOTSTRAP_JS_URL) ?>"></script>
<script src="<?= Html::escape(WT_DATATABLES_JS_URL) ?>"></script>
<script src="<?= Html::escape(WT_DATATABLES_BOOTSTRAP_JS_URL) ?>"></script>
<script src="<?= Html::escape(WT_SELECT2_JS_URL) ?>"></script>
<script src="<?= Html::escape(WT_MOMENT_JS_URL) ?>"></script>
<script src="<?= Html::escape(WT_BOOTSTRAP_DATETIMEPICKER_JS_URL) ?>"></script>
<script src="<?= Html::escape(WT_WEBTREES_JS_URL) ?>"></script>
<script src="<?= Html::escape(WT_ADMIN_JS_URL) ?>"></script>
</body>
</html>
|