Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
item.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php $_source = $block->getSource() ?>
11 <?php $block->setPriceDataObject($_source) ?>
12 
13 <?php if ((float) $_source->getDataUsingMethod($block->getSourceField())): ?>
14  <tr>
15  <td class="label"><?php if ($block->getStrong()) : ?><strong><?php endif; ?><?= /* @escapeNotVerified */ __($block->getLabel()) ?><?php if ($block->getStrong()) : ?></strong><?php endif; ?></td>
16  <td <?= $block->getHtmlClass() ? ('class="' . $block->getHtmlClass() . '"') : '' ?>><?php if ($block->getStrong()) : ?><strong><?php endif; ?><?= /* @escapeNotVerified */ $block->displayPriceAttribute($block->getSourceField()) ?><?php if ($block->getStrong()) : ?></strong><?php endif; ?></td>
17  </tr>
18 <?php endif; ?>
__()
Definition: __.php:13
$block
Definition: block.php:8
endif
Definition: item.phtml:35
$_source
Definition: tax.phtml:13