Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
details.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php if ($detailedInfoGroup = $block->getGroupChildNames('detailed_info', 'getChildHtml')):?>
11  <div class="product info detailed">
12  <?php $layout = $block->getLayout(); ?>
13  <div class="product data items" data-mage-init='{"tabs":{"openedState":"active"}}'>
14  <?php foreach ($detailedInfoGroup as $name):?>
15  <?php
16  $html = $layout->renderElement($name);
17  if (!trim($html)) {
18  continue;
19  }
20  $alias = $layout->getElementAlias($name);
21  $label = $block->getChildData($alias, 'title');
22  ?>
23  <div class="data item title"
24  aria-labeledby="tab-label-<?= /* @escapeNotVerified */ $alias ?>-title"
25  data-role="collapsible" id="tab-label-<?= /* @escapeNotVerified */ $alias ?>">
26  <a class="data switch"
27  tabindex="-1"
28  data-toggle="switch"
29  href="#<?= /* @escapeNotVerified */ $alias ?>"
30  id="tab-label-<?= /* @escapeNotVerified */ $alias ?>-title">
31  <?= /* @escapeNotVerified */ $label ?>
32  </a>
33  </div>
34  <div class="data item content" id="<?= /* @escapeNotVerified */ $alias ?>" data-role="content">
35  <?= /* @escapeNotVerified */ $html ?>
36  </div>
37  <?php endforeach;?>
38  </div>
39  </div>
40 <?php endif; ?>
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
endif
Definition: details.phtml:40
$block
Definition: block.php:8
$label
Definition: details.phtml:21
if(!trim($html)) $alias
Definition: details.phtml:20
endforeach
Definition: details.phtml:35
if(!isset($_GET['name'])) $name
Definition: log.php:14