<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ ?> <?php /** @var \Magento\Weee\Pricing\Render\Adjustment $block */ $weeeSeparator = $openBrace = $closeBrace = ''; $openBrace = '('; $closeBrace = ')'; $taxDisplay = $block->getTaxDisplayConfig(); $priceDisplay = $block->isPriceIncludesTax(); ?> <?php if ($block->showInclDescr() || $block->showExclDescrIncl()) : ?> <?php foreach ($block->getWeeeTaxAttributes() as $weeeTaxAttribute) : ?> <?php $attributeName = $block->escapeHtmlAttr($block->renderWeeeTaxAttributeName($weeeTaxAttribute)); ?> <?php if ($taxDisplay == Magento\Tax\Model\Config::DISPLAY_TYPE_INCLUDING_TAX) : ?> <span class="weee" data-price-type="weee" data-label="<?= /* @noEscape */ $attributeName ?>"><?= /* @noEscape */ $block->renderWeeeTaxAttributeWithTax($weeeTaxAttribute) ?></span> <?php elseif ($taxDisplay == Magento\Tax\Model\Config::DISPLAY_TYPE_EXCLUDING_TAX) : ?> <span class="weee" data-price-type="weee" data-label="<?= /* @noEscape */ $attributeName ?>"><?= /* @noEscape */ $block->renderWeeeTaxAttributeWithoutTax($weeeTaxAttribute) ?></span> <?php elseif ($taxDisplay == Magento\Tax\Model\Config::DISPLAY_TYPE_BOTH) : ?> <span class="weee" data-price-type="weee" data-label="<?= /* @noEscape */ $attributeName . ' ' . $block->escapeHtmlAttr(__('Incl. Tax')) ?>"><?= /* @noEscape */ $block->renderWeeeTaxAttributeWithTax($weeeTaxAttribute) ?></span> <span class="weee" data-price-type="weee" data-label="<?= /* @noEscape */ $attributeName . ' ' . $block->escapeHtmlAttr(__('Excl. Tax')) ?>"><?= /* @noEscape */ $block->renderWeeeTaxAttributeWithoutTax($weeeTaxAttribute) ?></span> <?php endif; ?> <?php endforeach; ?> <?php endif; ?> <?php if ($block->showExclDescrIncl()) : ?> <span class="price-final price-final_price" data-price-type="weeePrice" data-price-amount="<?= /* @noEscape */ $block->getRawFinalAmount() ?>" data-label="<?= $block->escapeHtmlAttr(__('Final Price')) ?>"><?= /* @noEscape */ $block->getFinalAmount() ?></span> <?php endif; ?>