PHP Classes

File: themes/backend/breadcrumb.php

Recommend this page to a friend!
  Packages of Aby Dahana   Aksara   themes/backend/breadcrumb.php   Download  
File: themes/backend/breadcrumb.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: refactor(lighthouse): update semantic HTML tags, fix data attributes, and improve accessibility across view templates and components
Date: 3 months ago
Size: 728 bytes
 

 

Contents

Class file image Download
<?php
/**
 * @var array $breadcrumb
 */
?>
<nav data-role="breadcrumb" class="position-fixed w-100 bg-white border-bottom" id="breadcrumb-wrapper">
    <div class="container-fluid">
        <ol class="breadcrumb rounded-0 mb-0">
            <?php foreach ($breadcrumb as $key => $val): ?>
                <li class="breadcrumb-item">
                    <?= ($val->url ? '<a href="' . $val->url . '" class="--xhr">' : '<b class="text-muted">'); ?>
                        <?= ($val->icon ? '<i class="' . $val->icon . '"></i>' : null); ?>
                        <?= $val->label; ?>
                    <?= ($val->url ? '</a>' : '</b>'); ?>
                </li>
            <?php endforeach; ?>
        </ol>
    </div>
</nav>