-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
66 lines (66 loc) · 2.37 KB
/
header.php
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
<header data-bs-theme="dark">
<div class="collapse text-bg-dark" id="navbar-header">
<div class="container">
<div class="row">
<div class="col-md-7 col-sm-8 py-4">
<?php if ($about->exist): ?>
<h4>
<?= $about->title; ?>
</h4>
<div class="text-body-secondary">
<?php if ($excerpt = $about->excerpt): ?>
<?= $excerpt; ?>
<?php else: ?>
<p>
<?= $about->description; ?>
</p>
<?php endif; ?>
<p>
<a class="btn btn-primary btn-sm<?= 0 === strpos($url->current(false, false) . '/', $about->url . '/') ? ' disabled' : ""; ?>" href="<?= eat($about->url); ?>">
<?= i('More'); ?>
</a>
</p>
</div>
<?php else: ?>
<h4>
<?= i('Error'); ?>
</h4>
<p class="text-body-secondary" role="status">
<?= i('Missing %s file.', "<code>.\\lot\\page\\" . strtr(trim($state->routeAbout ?? 'about', '/'), '/', "\\") . '.page</code>'); ?>
</p>
<?php endif; ?>
</div>
<div class="col-sm-4 offset-md-1 py-4">
<?php if ($contact->exist): ?>
<h4>
<?= $contact->title; ?>
</h4>
<div class="text-body-secondary">
<?php if ($excerpt = $contact->excerpt): ?>
<?= $excerpt; ?>
<?php else: ?>
<p>
<?= $contact->description; ?>
</p>
<?php endif; ?>
<p>
<a class="btn btn-primary btn-sm<?= 0 === strpos($url->current(false, false) . '/', $contact->url . '/') ? ' disabled' : ""; ?>" href="<?= eat($contact->url); ?>">
<?= i('More'); ?>
</a>
</p>
</div>
<?php else: ?>
<h4>
<?= i('Error'); ?>
</h4>
<p class="text-body-secondary" role="status">
<?= i('Missing %s file.', "<code>.\\lot\\page\\" . strtr(trim($state->routeContact ?? 'contact', '/'), '/', "\\") . '.page</code>'); ?>
</p>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?= self::nav(); ?>
</header>
<?= $site->is('home') ? self::hero() : ""; ?>