Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
breadcrumbs.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php if (!empty($links)): ?>
11 <ul class="breadcrumbs">
12  <?php $_size = count($links); ?>
13  <?php foreach ($links as $_index => $_link): ?>
14  <li>
15  <?php if (empty($_link['url'])): ?>
16  <?php if ($_index != $_size-1): ?>
17  <span><?= $block->escapeHtml($_link['label']) ?></span>
18  <?php else: ?>
19  <strong><?= $block->escapeHtml($_link['label']) ?></strong>
20  <?php endif; ?>
21  <?php else: ?>
22  <a href="<?= /* @escapeNotVerified */ $_link['url'] ?>" title="<?= $block->escapeHtml($_link['title']) ?>"><?= $block->escapeHtml($_link['label']) ?></a>
23  <?php endif; ?>
24  <?php if ($_index != $_size-1): ?>
25  &raquo;
26  <?php endif; ?>
27  </li>
28  <?php endforeach; ?>
29 </ul>
30 <?php endif; ?>
endforeach
$_size
Definition: items.phtml:46
$block
Definition: block.php:8
if($_index !=$_size-1) endif