Current File : /home/karenpetzb/application/modules/default/views/layouts/breadcrumb.phtml |
<?php if ($this->breadcrumb) { ?>
<div class="col-xs-12 noPadding bread-crumb-box hidden-print">
<ol class="breadcrumb" itemscope="" itemtype="http://schema.org/BreadcrumbList">
<li><a href="<?php echo $this->baseUrl; ?>/">Accueil</a></li>
<?php
$breadcrumb = $this->breadcrumb;
$currentType = "";
$position = 0;
foreach ($breadcrumb as $row) {
$link = "";
if (isset($this->isPromoPage) && $this->isPromoPage) {
$link = $this->baseUrl."/".Utils_Tool::getFormattedUrlCategory2($row['NAVNOM_URLPARENTS'], $row['NAVNOM'], $row['ID']);
} else {
$link = $this->baseUrl."/".Utils_Tool::getFormattedUrlCategory($row['NAVNOM_URLPARENTS'], $row['NAVNOM'], $row['ID']);
}
$name = $row['NOM'];
$position++;
?>
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="<?php echo $link;?>"><span itemprop="name"><?php echo $name; ?></span></a>
<meta itemprop="position" content="<?php echo $position; ?>" />
</li>
<?php }?>
</ol>
</div>
<?php }?>