mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Breadcrumbs
This commit is contained in:
@ -1,11 +1,24 @@
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item">
|
||||
<a href="#">Home</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
<a href="#">Library</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active">Data</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<?php if (isset($breadcrumb)) { ?>
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<?php
|
||||
foreach ($breadcrumb as $item) {
|
||||
?>
|
||||
<li class="breadcrumb-item <?= $item['active'] ? 'active' : '' ?>">
|
||||
<a href="<?= $item['route'] ?>"><?= $item['title'] ?></a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
</nav>
|
||||
<?php
|
||||
} else { ?>
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item active">
|
||||
<a href="<?= site_url(); ?>">Home</a>
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<?php } ?>
|
||||
Reference in New Issue
Block a user