Arc-hive-omeka-theme/view/common/foundation-breadcrumbs.phtml

18 lines
709 B
PHTML
Raw Permalink Normal View History

2021-04-25 09:49:47 +02:00
<?php $container = $this->navigation()->breadcrumbs() ?>
<?php $navigation = $container->getContainer() ?>
<ul class="breadcrumbs">
<?php foreach($this->pages as $page): ?>
<?php if( ! $page->isActive()): ?>
<li>
<a href="<?php echo $page->getHref() ?>"><?php echo $page->getLabel() ?></a>
</li>
<?php else: ?>
<li class="active">
<?php if($container->getLinkLast()): ?><a href="<?php echo $page->getHref() ?>"><?php endif ?>
<?php echo $page->getLabel() ?>
<?php if($container->getLinkLast()): ?></a><?php endif ?>
</li>
<?php endif ?>
<?php endforeach ?>
</ul>