-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_bootstrap.php
More file actions
20 lines (19 loc) · 874 Bytes
/
Copy path_bootstrap.php
File metadata and controls
20 lines (19 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
require __DIR__ . '/cms/engine.php';
function cortex_navigation($active = '') {
$items = cms_nav_items();
?>
<div style="display:flex;align-items:center;gap:28px;font-size:14.5px;font-weight:500">
<?php foreach ($items as $item): ?>
<?php
$url = isset($item['url']) ? $item['url'] : '#';
$label = isset($item['label']) ? $item['label'] : '';
$isActive = strtolower($label) === strtolower($active);
$color = $isActive ? '#1c1a17' : 'rgba(28,26,23,0.7)';
?>
<a href="<?= htmlspecialchars($url, ENT_QUOTES, 'UTF-8') ?>" style="color:<?= $color ?>"><?= htmlspecialchars($label, ENT_QUOTES, 'UTF-8') ?></a>
<?php endforeach; ?>
<a href="/pricing/#demo" style="background:#1c1a17;color:#fff;padding:9px 18px;border-radius:99px;font-size:13.5px">Request a demo</a>
</div>
<?php
}