Skip to content

Instantly share code, notes, and snippets.

@srsad
Last active June 29, 2019 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srsad/e3125d4bfbcfba9f67f78aeda4fb8d2c to your computer and use it in GitHub Desktop.
Save srsad/e3125d4bfbcfba9f67f78aeda4fb8d2c to your computer and use it in GitHub Desktop.
{'pdoCrumbs' | snippet : [
'showHome' => 1,
'tpl'=> '@INLINE <li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a href="{{+link}}" itemscope itemtype="http://schema.org/Thing" itemprop="item">
<span itemprop="name">{{+menutitle}}</span>
</a>
<meta itemprop="position" content="{{+idx}}" />
</li>',
'tplCurrent' => '@INLINE <li class="breadcrumb-item active" itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<span itemscope itemtype="http://schema.org/Thing" itemprop="item">
<span itemprop="name">{{+menutitle}}</span>
</span>
<meta itemprop="position" content="{{+idx}}" />
</li>',
'tplWrapper' => '@INLINE <ol class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">{{+output}}</ol>',
]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment