Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/magento/module-tax/view/frontend/templates/checkout/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/old/vendor/magento/module-tax/view/frontend/templates/checkout/tax.phtml
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/**
 * @var $block \Magento\Tax\Block\Checkout\Tax
 * @see \Magento\Tax\Block\Checkout\Tax
 * @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
 */
?>
<?php
    $_value = $block->getTotal()->getValue();
    $_style = $block->escapeHtmlAttr($block->getTotal()->getStyle());
    /** @var \Magento\Tax\Helper\Data $taxHelper */
    $taxHelper = $block->getData('taxHelper');
    /** @var \Magento\Checkout\Helper\Data $checkoutHelper */
    $checkoutHelper = $block->getData('checkoutHelper');
    $attributes = 'class="totals-tax"';

if ($taxHelper->displayFullSummary() && $_value != 0) {
    $attributes = 'class="totals-tax-summary" data-mage-init=\'{"toggleAdvanced": {"selectorsToggleClass": "shown",
     "baseToggleClass": "expanded", "toggleContainers": ".totals-tax-details"}}\'';
}
?>

<tr <?= /* @noEscape */ $attributes ?>>
    <th class="mark" colspan="<?= (int) $block->getColspan() ?>" scope="row">
        <?php if ($taxHelper->displayFullSummary()): ?>
            <span class="detailed"><?= $block->escapeHtml($block->getTotal()->getTitle()) ?></span>
        <?php else: ?>
            <?= $block->escapeHtml($block->getTotal()->getTitle()) ?>
        <?php endif; ?>
    </th>
    <td class="amount" data-th="<?= $block->escapeHtmlAttr($block->getTotal()->getTitle()) ?>">
        <?= /* @noEscape */ $checkoutHelper->formatPrice($_value) ?>
    </td>
</tr>
<?php if ($_style): ?>
    <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($_style, 'tr.totals-tax th.mark') ?>
    <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($_style, 'tr.totals-tax td.amount') ?>
<?php endif; ?>

<?php if ($taxHelper->displayFullSummary() && $_value != 0): ?>
    <?php foreach ($block->getTotal()->getFullInfo() as $info): ?>
        <?php if (isset($info['hidden']) && $info['hidden']) { continue; } ?>
        <?php $percent = $info['percent']; ?>
        <?php $amount = $info['amount']; ?>
        <?php $rates = $info['rates']; ?>
        <?php $isFirst = 1; ?>

        <?php foreach ($rates as $rate): ?>
            <tr class="totals-tax-details">
                <th class="mark" colspan="<?= (int) $block->getColspan() ?>" scope="row">
                    <?= $block->escapeHtml($rate['title']) ?>
                    <?php if ($rate['percent'] !== null): ?>
                        (<?= (float) $rate['percent'] ?>%)
                    <?php endif; ?>
                </th>
                <?php if ($isFirst): ?>
                    <td class="amount" rowspan="<?= count($rates) ?>"
                       data-th="<?= $block->escapeHtmlAttr($rate['title']) ?>
                        <?php if ($rate['percent'] !== null): ?>(<?= (float) $rate['percent'] ?>%)<?php endif; ?>">
                        <?= /* @noEscape */ $checkoutHelper->formatPrice($amount) ?>
                    </td>
                <?php endif; ?>
            </tr>
            <?php if ($_style): ?>
                <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($_style, 'tr.totals-tax-details th.mark') ?>
                <?= /* @noEscape */ $secureRenderer->renderStyleAsTag($_style, 'tr.totals-tax-details td.amount') ?>
            <?php endif; ?>
            <?php $isFirst = 0; ?>
        <?php endforeach; ?>
    <?php endforeach; ?>
<?php endif; ?>

Spamworldpro Mini