New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow developers to add items to breadcrumb from tpl #8474

Merged
merged 1 commit into from Nov 14, 2017
Jump to file or symbol
Failed to load files and symbols.
+12 −10
Diff settings

Always

Just for now

FO: allow developers to add items to breadcrumb from tpl

  • Loading branch information...
kpodemski committed Nov 7, 2017
commit 3c95eda6f85652d6196705980d2afd6e5c477a64
@@ -24,15 +24,17 @@
*}
<nav data-depth="{$breadcrumb.count}" class="breadcrumb hidden-sm-down">
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
{foreach from=$breadcrumb.links item=path name=breadcrumb}
{block name='breadcrumb_item'}
<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>
{/block}
{/foreach}
{block name='breadcrumb'}
{foreach from=$breadcrumb.links item=path name=breadcrumb}
{block name='breadcrumb_item'}
<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>
{/block}
{/foreach}
{/block}
</ol>
</nav>
ProTip! Use n and p to navigate between commits in a pull request.