You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 regels
1.8 KiB

  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * General template for displaying group of blocks divided into sections
  8. */
  9. $group = $block->getGroupName();
  10. $groupCss = $block->getGroupCss();
  11. ?>
  12. <?php if ($detailedInfoGroup = $block->getGroupChildNames($group)):?>
  13. <div class="sections <?= $block->escapeHtmlAttr($groupCss) ?>">
  14. <?php $layout = $block->getLayout(); ?>
  15. <div class="section-items <?= $block->escapeHtmlAttr($groupCss) ?>-items"
  16. data-mage-init='{"tabs":{"openedState":"active"}}'>
  17. <?php foreach ($detailedInfoGroup as $name):?>
  18. <?php
  19. $html = $layout->renderElement($name);
  20. if (!($html !== null && trim($html)) && ($block->getUseForce() != true)) {
  21. continue;
  22. }
  23. $alias = $layout->getElementAlias($name);
  24. $label = $block->getChildData($alias, 'title');
  25. ?>
  26. <div class="section-item-title <?= $block->escapeHtmlAttr($groupCss) ?>-item-title"
  27. data-role="collapsible">
  28. <a class="<?= $block->escapeHtmlAttr($groupCss) ?>-item-switch"
  29. data-toggle="switch" href="#<?= $block->escapeHtmlAttr($alias) ?>">
  30. <?= /* @noEscape */ $label ?>
  31. </a>
  32. </div>
  33. <div class="section-item-content <?= $block->escapeHtmlAttr($groupCss) ?>-item-content"
  34. id="<?= $block->escapeHtmlAttr($alias) ?>"
  35. data-role="content">
  36. <?= /* @noEscape */ $html ?>
  37. </div>
  38. <?php endforeach;?>
  39. </div>
  40. </div>
  41. <?php endif; ?>