westdc-zf1/application/default/views/scripts/breadcrumbs.phtml

11 lines
326 B
PHTML
Raw Normal View History

<?php if(!empty($this->nav)){ ?>
<nav>
<ul class="breadcrumb">
<?php foreach ($this->nav as $k=>$v){?>
<li>
<a href="<?= $v['link'] ?>"><?= $v['title']?></a> <?php if(isset($this->nav[$k+1])) {?> <span class="divider">/</span> <?php } ?>
</li>
<?php } ?>
</ul>
</nav>
<?php } ?>