Skip to content

Commit

Permalink
Merge pull request PrestaShop#15368 from davidglezz/breadcrumb-fix
Browse files Browse the repository at this point in the history
Make last breadcumb element valid for microdata
  • Loading branch information
Progi1984 authored Sep 3, 2019
2 parents 338dea0 + 523aefa commit 6f38d7e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions themes/classic/templates/_partials/breadcrumb.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@
{block name='breadcrumb'}
{foreach from=$breadcrumb.links item=path name=breadcrumb}
{block name='breadcrumb_item'}
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
{if not $smarty.foreach.breadcrumb.last}
<a itemprop="item" href="{$path.url}">
{/if}
<span itemprop="name">{$path.title}</span>
{if not $smarty.foreach.breadcrumb.last}
</a>
{/if}
<meta itemprop="position" content="{$smarty.foreach.breadcrumb.iteration}">
</li>
{if not $smarty.foreach.breadcrumb.last}
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a itemprop="item" href="{$path.url}"><span itemprop="name">{$path.title}</span></a>
<meta itemprop="position" content="{$smarty.foreach.breadcrumb.iteration}">
</li>
{else}
<li>
<span>{$path.title}</span>
</li>
{/if}
{/block}
{/foreach}
{/block}
Expand Down

0 comments on commit 6f38d7e

Please sign in to comment.