|
1 | 1 | <?php if(!$this->Config->get('application','maintenance') || $this->Auth->isAuthorized('Administrator',1)): ?> |
2 | 2 | <!doctype html> |
3 | | - <html lang="en" class="h-100 w-100" data-bs-theme="auto" data-bs-template="index"> |
| 3 | + <html lang="en" class="h-100 w-100" data-bs-theme="auto" data-bs-template="website"> |
4 | 4 | <head> |
5 | 5 | <meta charset="utf-8"> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
|
36 | 36 | <main class="content"> |
37 | 37 |
|
38 | 38 | <!-- ======= Header ======= --> |
39 | | - <div class="sticky-top shadow"> |
| 39 | + <div class="app-header"> |
| 40 | + |
40 | 41 | <!-- Navbar --> |
41 | | - <nav class="navbar border-bottom text-bg-primary px-5"> |
| 42 | + <nav class="navbar"> |
42 | 43 | <div class="container-fluid"> |
43 | 44 | <!-- Main Navigation --> |
44 | | - <ul class="nav me-auto my-2"> |
| 45 | + <ul class="nav"> |
45 | 46 | <?php foreach($this->Builder->menu('topbar') as $route => $nav): ?> |
46 | 47 | <?php if($route === $this->Route): ?> |
47 | | - <li class="nav-item"><a href="<?= $nav['link'] ?>" class="nav-link px-2 link-body-emphasis rounded rounded-pill text-bg-light active" aria-current="page"><?= $this->Locale->get($nav['label']); ?></a></li> |
| 48 | + <li class="nav-item"><a href="<?= $nav['link'] ?>" class="nav-link active" aria-current="page"><?= $this->Locale->get($nav['label']); ?></a></li> |
48 | 49 | <?php else: ?> |
49 | | - <li class="nav-item"><a href="<?= $nav['link'] ?>" class="nav-link px-2 link-body-emphasis"><?= $this->Locale->get($nav['label']); ?></a></li> |
| 50 | + <li class="nav-item"><a href="<?= $nav['link'] ?>" class="nav-link"><?= $this->Locale->get($nav['label']); ?></a></li> |
50 | 51 | <?php endif; ?> |
51 | 52 | <?php endforeach; ?> |
52 | 53 | </ul> |
|
55 | 56 | <?php require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'widgets.php'; ?> |
56 | 57 | </div> |
57 | 58 | </nav> |
58 | | - <header class="d-flex flex-wrap justify-content-center align-items-center px-5 py-4 border-bottom text-bg-dark"> |
| 59 | + <header> |
59 | 60 |
|
60 | 61 | <!-- Branding --> |
61 | | - <a href="/" class="d-flex justify-content-center align-items-center mb-3 mb-md-0 me-md-auto link-light text-decoration-none"> |
62 | | - <img class="me-2" src="/logo" alt="Logo" style="height:64px;"> |
63 | | - <h1 class="display-5 fw-lighter m-0"><?php echo $this->Config->get('application','name') ?></h1> |
| 62 | + <a href="/"> |
| 63 | + <img src="/logo" alt="Logo"> |
| 64 | + <h1><?php echo $this->Config->get('application','name') ?></h1> |
64 | 65 | </a> |
65 | 66 |
|
66 | 67 | <!-- Page Navigation --> |
67 | | - <ul id="page-nav" class="nav nav-pills my-1"> |
| 68 | + <ul id="page-nav" class="nav nav-pills"> |
68 | 69 | <?php $first = true; ?> |
69 | 70 | <?php foreach($this->Builder->menu('topnav', $this->Route) as $route => $nav): ?> |
70 | 71 | <?php if($first): ?> |
|
84 | 85 | <?php require_once $this->view(); ?> |
85 | 86 | <?php else: $this->interrupt()->Router->render('search'); endif; ?> |
86 | 87 | </div> |
| 88 | + |
| 89 | + <!-- Footer --> |
| 90 | + <footer class="app-footer"> |
| 91 | + <div class="row"> |
| 92 | + <?php foreach($this->Builder->menu('topbar') as $route => $nav): ?> |
| 93 | + <?php $menu = $this->Builder->menu('topnav', $route); ?> |
| 94 | + <?php if(empty($menu)): continue; endif; ?> |
| 95 | + <div class="col-12 col-md-6 col-lg-2"> |
| 96 | + <h5><?= $this->Locale->get($nav['label']); ?></h5> |
| 97 | + <ul class="nav"> |
| 98 | + <?php foreach($menu as $lroute => $lnav): ?> |
| 99 | + <li class="nav-item"><a href="<?= $route ?><?= $lroute ?>" class="nav-link"><?= $this->Locale->get($lnav['label']); ?></a></li> |
| 100 | + <?php endforeach; ?> |
| 101 | + </ul> |
| 102 | + </div> |
| 103 | + <?php endforeach; ?> |
| 104 | + <div class="col-12 col-md-6 col-lg-4"> |
| 105 | + <h5><?= $this->Locale->get("Subscribe to our newsletter"); ?></h5> |
| 106 | + <p class="text-white-50"><?= $this->Locale->get("Monthly figest of what's new and exciting from us."); ?></p> |
| 107 | + <form> |
| 108 | + <div class="input-group"> |
| 109 | + <input type="email" class="form-control" placeholder="<?= $this->Locale->get("Email address"); ?>" aria-label="email"> |
| 110 | + <button type="submit" class="btn btn-primary"><?= $this->Locale->get("Subscribe"); ?></button> |
| 111 | + </div> |
| 112 | + </form> |
| 113 | + </div> |
| 114 | + </div> |
| 115 | + <div> |
| 116 | + <div class="d-flex flex-column flex-lg-row justify-content-between align-items-center border-top border-secondary p-4 gap-4"> |
| 117 | + <div class="d-flex flex-column justify-content-center align-items-start flex-grow-1"> |
| 118 | + <p class="text-white-50"><a href="/copyright"><?= $this->Locale->get('Copyright'); ?></a> © <?= $this->Config->get('application','copyright') ?>-<?= date("Y") ?> <?= $this->Config->get('application','owner')?> <?= $this->Locale->get('All rights reserved'); ?>.</p> |
| 119 | + <a href="/" class="d-flex align-items-center mb-3 link-light text-decoration-none"> |
| 120 | + <img class="me-2" src="/logo" alt="Logo" style="height:64px;"> |
| 121 | + <h1 class="display-5 fw-lighter m-0"><?php echo $this->Config->get('application','name') ?></h1> |
| 122 | + </a> |
| 123 | + </div> |
| 124 | + <!-- Locale --> |
| 125 | + <div class="dropdown flex-shrink-1"> |
| 126 | + <button class="btn btn-link py-1 dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false"> |
| 127 | + <?= $this->Locale->locale($this->Locale->current())->language(); ?> |
| 128 | + </button> |
| 129 | + <ul class="dropdown-menu"> |
| 130 | + <?php foreach($this->Locale->list() as $locale => $language): ?> |
| 131 | + <?php if($locale === $this->Locale->current()){ continue; } ?> |
| 132 | + <li><a class="dropdown-item" href="?locale=<?= $locale ?>"><i class="bi bi-globe-americas me-2"></i><?= $language ?></a></li> |
| 133 | + <?php endforeach; ?> |
| 134 | + </ul> |
| 135 | + </div> |
| 136 | + <!-- End Locale --> |
| 137 | + <!-- Socials --> |
| 138 | + <div class="socials d-flex justify-content-center align-items-center gap-3 flex-shrink-1"> |
| 139 | + <?php $socials = $this->Config->get('application','social'); ?> |
| 140 | + <?php foreach($socials as $social => $link): ?> |
| 141 | + <a href="<?= $link ?>"><i class="bi bi-<?= $social ?> fs-4"></i></a> |
| 142 | + <?php endforeach; ?> |
| 143 | + </div> |
| 144 | + <!-- End Socials --> |
| 145 | + </div> |
| 146 | + </div> |
| 147 | + </footer> |
87 | 148 | </div> |
88 | 149 | </div> |
89 | 150 | </div> |
|
0 commit comments