summaryrefslogtreecommitdiff
path: root/resources/views/layouts/default.php
blob: 62195d73acbe75e403ff41fee0ca3dee9c694f1c (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
<?php use Fisharebest\Webtrees\Database; ?>
<?php use Fisharebest\Webtrees\Html; ?>
<?php use Fisharebest\Webtrees\I18N; ?>
<!DOCTYPE html>
<html <?= I18N::htmlAttributes() ?>>
	<?= $theme_head ?>
	<?= $theme_body_header ?>

	<div class="alert alert-danger">
		<div class="d-sm-none">XS</div>
		<div class="d-none d-sm-block d-md-none">SM</div>
		<div class="d-none d-md-block d-lg-none">MD</div>
		<div class="d-none d-lg-block d-xl-none">LG</div>
		<div class="d-none d-xl-block">XL</div>
	</div>
			<?= $content ?>

		<?= $theme_footer_container ?>

		<script>
			// Global constants
			var WT_MODULES_DIR = <?= json_encode(WT_MODULES_DIR) ?>;
			var WT_GEDCOM      = <?= json_encode($tree ? $tree->getName() : '') ?>;
			var textDirection  = <?= json_encode(I18N::direction()) ?>;
			var WT_LOCALE      = <?= json_encode(WT_LOCALE) ?>;
		</script>

		<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_WEBTREES_JS_URL) ?>"></script>

	</body>
</html>
<!-- webtrees: <?= WT_VERSION ?> -->
<!-- Execution time: <?= I18N::number(microtime(true) - WT_START_TIME, 3) ?> seconds -->
<!-- Memory: <?= I18N::number(memory_get_peak_usage(true) / 1024) ?> KB -->
<!-- SQL queries: <?= I18N::number(Database::getQueryCount()) ?> -->