Guest User

Untitled

a guest
Aug 17th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6.  
  7. // @codingStandardsIgnoreFile
  8.  
  9. ?>
  10. <?php
  11. /**
  12. * Category layered navigation
  13. *
  14. * @var $block MagentoLayeredNavigationBlockNavigation
  15. */
  16. ?>
  17.  
  18. <?php if ($block->canShowBlock()): ?>
  19. <div class="block filter">
  20. <div class="block-title filter-title">
  21. <strong><?= /* @escapeNotVerified */ __('Shop By') ?></strong>
  22. </div>
  23.  
  24. <div class="block-content filter-content">
  25. <?= $block->getChildHtml('state') ?>
  26.  
  27. <?php if ($block->getLayer()->getState()->getFilters()): ?>
  28. <div class="block-actions filter-actions">
  29. <a href="<?= /* @escapeNotVerified */ $block->getClearUrl() ?>" class="action clear filter-clear"><span><?= /* @escapeNotVerified */ __('Clear All') ?></span></a>
  30. </div>
  31. <?php endif; ?>
  32. <?php $wrapOptions = false; ?>
  33. <?php foreach ($block->getFilters() as $filter): ?>
  34. <?php if (!$wrapOptions): ?>
  35. <strong role="heading" aria-level="2" class="block-subtitle filter-subtitle"><?= /* @escapeNotVerified */ __('Shopping Options') ?></strong>
  36. <dl class="filter-options" id="narrow-by-list">
  37. <?php $wrapOptions = true; endif; ?>
  38. <?php if ($filter->getItemsCount() && $filter->getName() != 'Category'): ?>
  39. <dt role="heading" aria-level="3" class="filter-options-title"><?= $block->escapeHtml(__($filter->getName())) ?></dt>
  40. <dd class="filter-options-content"><?= /* @escapeNotVerified */ $block->getChildBlock('renderer')->render($filter) ?></dd>
  41. <?php endif; ?>
  42. <?php endforeach; ?>
  43. <?php if ($wrapOptions): ?>
  44. </dl>
  45. <?php endif; ?>
  46. </div>
  47. </div>
  48. <?php endif; ?>
Add Comment
Please, Sign In to add comment