32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
<ol class="breadcrumb hidden-xs" itemscope itemtype="https://schema.org/BreadcrumbList">
|
|
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
|
<a itemprop="item" href="{url_for internal=$homepage_url absolute=true}"><span itemprop="name">{__ text="Start" langCatalogue="stNavigationFrontend"}</span></a>
|
|
<meta itemprop="position" content="1" />
|
|
</li>
|
|
{php}$this->assign("i",2);{/php}
|
|
{foreach item=breadcrumb from=$breadcrumbs name="breadcrumbs"}
|
|
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
|
{if $breadcrumb.active}
|
|
<a itemprop="item" href="{url_for internal=$breadcrumb.link absolute=true}"><span itemprop="name">{$breadcrumb.name}</span></a>
|
|
{else}
|
|
<span itemprop="name">{$breadcrumb.name}</span>
|
|
{/if}
|
|
<meta itemprop="position" content="{$i++}" />
|
|
</li>
|
|
{/foreach}
|
|
</ol>
|
|
|
|
{literal}
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
jQuery(function($) {
|
|
$(document).ready(function(){
|
|
const breadcrumbsEl = document.querySelectorAll('.breadcrumb');
|
|
if (breadcrumbsEl.length > 1){
|
|
breadcrumbsEl[1].remove();
|
|
}
|
|
});
|
|
});
|
|
//]]>
|
|
</script>
|
|
{/literal} |