Created
August 4, 2017 13:15
-
-
Save srsad/3ba3a19b175481156e39d3cadd082e81 to your computer and use it in GitHub Desktop.
pdoCrumbs по стандарту микроразметок schema.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{'pdoCrumbs' | snippet : [ | |
'showHome' => 1, | |
'showHidden' => 0, | |
'tpl' => '@INLINE <li 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="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 <ul class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">{{+output}}</ul>', | |
]} | |
<!-- or --> | |
[[pdoCrumbs? | |
&showHome=`1` | |
&showHidden=`0` | |
&tpl=`@INLINE <li 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="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 <ul class="breadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">{{+output}}</ul>` | |
]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment