{*
* 2017-2018 PSBlog
*
* NOTICE OF LICENSE
*
* READ ATTACHED LICENSE.TXT
*
*  @author    PSBlog
*  @copyright 2017-2018 PSBlog
*  @license   LICENSE.TXT
*}

<!-- BreadCrumb -->
<script type="application/ld+json">
{
 "@context": "http://schema.org",
 "@type": "BreadcrumbList",
 "itemListElement":
 [
 {foreach from=$breadcrumb_list item=curr_bread}
  {
   "@type": "ListItem",
   "position": {$curr_bread@index+1|intval},
   "item":
   {
    "@id": "{$link->getCategoryLink($curr_bread.id_category, $curr_bread.link_rewrite)|escape:'html':'UTF-8'}",
    "name": "{$curr_bread.name|escape:'html':'UTF-8'}"
    }
  }{if $curr_bread@index+1|intval < count($breadcrumb_list)},{/if}
  {/foreach}
 ]
}
</script>