Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

51 строка
2.2 KiB

  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. ?>
  7. <?php
  8. /**
  9. * Category layered navigation state
  10. *
  11. * @var $block \Magento\LayeredNavigation\Block\Navigation\State
  12. */
  13. ?>
  14. <?php $_filters = $block->getActiveFilters() ?>
  15. <?php if (!empty($_filters)) : ?>
  16. <div class="filter-current">
  17. <strong class="block-subtitle filter-current-subtitle"
  18. role="heading"
  19. aria-level="2"
  20. data-count="<?= /* @noEscape */ count($_filters) ?>"><?= $block->escapeHtml(__('Now Shopping by')) ?></strong>
  21. <ol class="items">
  22. <?php foreach ($_filters as $_filter) : ?>
  23. <li class="item">
  24. <span class="filter-label"><?= $block->escapeHtml(__($_filter->getName())) ?></span>
  25. <span class="filter-value"><?= $block->escapeHtml($block->stripTags($_filter->getLabel())) ?></span>
  26. <?php
  27. $clearLinkUrl = $_filter->getClearLinkUrl();
  28. $currentFilterName = $block->escapeHtmlAttr(__($_filter->getName()) . " " . $block->stripTags($_filter->getLabel()));
  29. if ($clearLinkUrl) :
  30. ?>
  31. <a class="action previous" href="<?= $block->escapeUrl($_filter->getRemoveUrl()) ?>"
  32. title="<?= $block->escapeHtmlAttr(__('Previous')) ?>">
  33. <span><?= $block->escapeHtml(__('Previous')) ?></span>
  34. </a>
  35. <a class="action remove"
  36. title="<?= $block->escapeHtmlAttr($_filter->getFilter()->getClearLinkText()) ?>"
  37. href="<?= $block->escapeUrl($clearLinkUrl) ?>">
  38. <span><?= $block->escapeHtml($_filter->getFilter()->getClearLinkText()) ?></span>
  39. </a>
  40. <?php else : ?>
  41. <a class="action remove" href="<?= $block->escapeUrl($_filter->getRemoveUrl()) ?>"
  42. title="<?= /* @noEscape */ $block->escapeHtmlAttr(__('Remove')) . " " . $currentFilterName ?>">
  43. <span><?= $block->escapeHtml(__('Remove This Item')) ?></span>
  44. </a>
  45. <?php endif; ?>
  46. </li>
  47. <?php endforeach; ?>
  48. </ol>
  49. </div>
  50. <?php endif; ?>