Skip to content

Instantly share code, notes, and snippets.

@gebeer
Last active August 29, 2015 14:09
Show Gist options
  • Save gebeer/4f18d010460ed49360ec to your computer and use it in GitHub Desktop.
Save gebeer/4f18d010460ed49360ec to your computer and use it in GitHub Desktop.
ProcessWire Bootstrap 3 breadcrumbs snippet with microdata
<ol class='breadcrumb' itemprop="breadcrumb">
<?php foreach($page->parents as $parent): ?>
<li itemscope itemtype='http://data-vocabulary.org/Breadcrumb'>
<a href='<?php echo $parent->url; ?>' itemprop='url'>
<span itemprop='title'><?php echo $parent->title; ?></span></a></li>
<?php endforeach ?>
<li class="active"><?php echo $page->title; ?></li>
</ol>
<body> needs to contain
<body itemscope itemtype="http://schema.org/WebPage">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment