forked from coresh/module-fullbreadcrumbs
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Use the default breadcrumbs template that is used in theme-creat…
…iveshop ; show breadcrumbs for all categories ancestors, not just the final child (fixes EaDesgin#29)
- Loading branch information
1 parent
a6ee418
commit cfe578b
Showing
7 changed files
with
95 additions
and
179 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
<?php | ||
/** | ||
* @var $block \Groomershop\FullBreadcrumbs\Block\FullBreadcrumbs | ||
*/ | ||
|
||
$crumbs = $block->getProductBreadcrumbs(); | ||
if (count($crumbs) > 0) : ?> | ||
<?php $displayCustomSeparator = $block->getVar('breadcrumbs/custom_separator/display', 'Magento_Theme'); ?> | ||
<div class="cs-breadcrumbs"> | ||
<ul class="cs-breadcrumbs__list"> | ||
<?php $i = 1; foreach ($crumbs as $crumbName => $crumbInfo) : ?> | ||
<li class="cs-breadcrumbs__item <?php /* @escapeNotVerified */ echo $crumbName ?>"> | ||
<?php if ($crumbInfo['link']) : ?> | ||
<a | ||
class="cs-breadcrumbs__link" | ||
href="<?php /* @escapeNotVerified */ echo $crumbInfo['link'] ?>" | ||
title="<?php echo $block->escapeHtml($crumbInfo['title']) ?>" | ||
> | ||
<span> | ||
<?php echo $block->escapeHtml($crumbInfo['label']) ?> | ||
</span> | ||
</a> | ||
<?php if ($displayCustomSeparator) : ?> | ||
<span class="cs-breadcrumbs__separator"> | ||
<?= $this->getLayout() | ||
->createBlock('MageSuite\ThemeHelpers\Block\Icon') | ||
->setIconUrl($block->getVar('breadcrumbs/custom_separator/icon')) | ||
->setCssClass('cs-breadcrumbs__separator-icon') | ||
->setInlined(true) | ||
->toHtml(); | ||
?> | ||
</span> | ||
<?php endif; ?> | ||
<?php /* elseif ($crumbInfo['last']) : ?> | ||
<strong><?php echo $block->escapeHtml($crumbInfo['label']) ?></strong> | ||
<?php */ else: ?> | ||
<span> | ||
<?php echo $block->escapeHtml($crumbInfo['label']) ?> | ||
</span> | ||
<?php endif; ?> | ||
</li> | ||
<?php $i++; endforeach; ?> | ||
</ul> | ||
</div> | ||
<?php endif; ?> |
This file was deleted.
Oops, something went wrong.