Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
attributes.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
14 ?>
15 <?php
16  $_helper = $this->helper('Magento\Catalog\Helper\Output');
17  $_product = $block->getProduct();
18 ?>
19 <?php if ($_additional = $block->getAdditionalData()): ?>
20  <div class="additional-attributes-wrapper table-wrapper">
21  <table class="data table additional-attributes" id="product-attribute-specs-table">
22  <caption class="table-caption"><?= /* @escapeNotVerified */ __('More Information') ?></caption>
23  <tbody>
24  <?php foreach ($_additional as $_data): ?>
25  <tr>
26  <th class="col label" scope="row"><?= $block->escapeHtml(__($_data['label'])) ?></th>
27  <td class="col data" data-th="<?= $block->escapeHtml(__($_data['label'])) ?>"><?= /* @escapeNotVerified */ $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
28  </tr>
29  <?php endforeach; ?>
30  </tbody>
31  </table>
32  </div>
33 <?php endif;?>
if( $_additional=$block->getAdditionalData())( 'More Information') ?></caption >< tbody ><?php foreach( $_additional as $_data)(__( $_data[ 'label'])) ?></th >< td class endforeach
$_product
__()
Definition: __.php:13
$block
Definition: block.php:8
$_helper
endif