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/extmag/shiplab/view/adminhtml/templates/order/view/shipment/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/extmag/shiplab/view/adminhtml/templates/order/view/shipment/info.phtml
<?php
/**
 * Copyright © Extmag. All rights reserved.
 */

/**
 * @var $block \Extmag\Shiplab\Block\Adminhtml\Order\View\AbstractOrder
 * @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
 */

/** @var \Magento\Shipping\Helper\Data $shippingHelper */

use Magento\Backend\Block\Widget\Button;

$shippingHelper = $block->getData('shippingHelper');
if (!is_object($shippingHelper)) {
    $shippingHelper = $this->helper(Magento\Shipping\Helper\Data::class);
}
/** @var \Magento\Tax\Helper\Data $taxHelper */
$taxHelper = $block->getData('taxHelper');
if (!is_object($taxHelper)) {
    $taxHelper = $this->helper(Magento\Tax\Helper\Data::class);
}
?>
<?php $order = $block->getOrder() ?>
<?php if ($order->getIsVirtual()):
    return '';
endif; ?>

<?php /* Shipping Method */ ?>
<div class="admin__page-section-item order-shipping-method">
    <div class="admin__page-section-item-title">
        <span class="title"><?= $block->escapeHtml(__('Shipping &amp; Handling Information')) ?></span>
    </div>
    <?php
    $labels = $block->getLabelsIds();
    if (!empty($labels) > 0) {
        ?>
        <div class="admin__page-section-item-title">
            <?php
            foreach ($labels as $label) {
                ?>
                <div>
                    <?php
                    $url = $this->getUrl('extmag_shiplab/label/details', [
                        'entity_id' => implode(",", $label['ids']),
                        'referrer' => 'shipment'
                    ]);
                    echo $this->getLayout()->createBlock(
                        Button::class
                    )->setData(
                        [
                            'label' => __('Print %1 Shipping Label [Extmag]', $label['name']),
                            'style' => 'margin-top: 8px;',
                            'onclick' => 'setLocation(\'' . $url . '\')'
                        ]
                    )->toHtml();
                    ?>
                </div>
                <?php
            }
            ?>
        </div>
        <?php
    }
    ?>
    <div class="admin__page-section-item-content">
        <?php if ($order->getTracksCollection()->count()): ?>
            <p>
                <?php if (!empty($secureRenderer)) { ?>
                    <a href="#" id="linkId" title="<?= $block->escapeHtmlAttr(__('Track Order')) ?>">
                        <?= $block->escapeHtml(__('Track Order')) ?>
                    </a>
                <?php } else { ?>
                    <a href="#" id="linkId"
                       onclick="popWin('<?= $block->escapeHtmlAttr($block->escapeJs($block->escapeUrl($this->helper(Magento\Shipping\Helper\Data::class)->getTrackingPopupUrlBySalesModel($order)))) ?>','trackorder','width=800,height=600,resizable=yes,scrollbars=yes')"
                       title="<?= $block->escapeHtmlAttr(__('Track Order')) ?>">
                        <?= $block->escapeHtml(__('Track Order')) ?>
                    </a>
                <?php } ?>
            </p>
            <?php if (!empty($secureRenderer)) { ?>
                <?= /* @noEscape */
                $secureRenderer->renderEventListenerAsTag(
                    'onclick',
                    "popWin('" . $block->escapeJs($shippingHelper->getTrackingPopupUrlBySalesModel($order)) .
                    "','trackorder','width=800,height=600,resizable=yes,scrollbars=yes')",
                    'a#linkId'
                ) ?>
            <?php } ?>
        <?php endif; ?>
        <?php if ($order->getShippingDescription()): ?>
            <strong><?= $block->escapeHtml($order->getShippingDescription()) ?></strong>

            <?php if ($taxHelper->displayShippingPriceIncludingTax()): ?>
                <?php $_excl = $block->displayShippingPriceInclTax($order); ?>
            <?php else: ?>
                <?php $_excl = $block->displayPriceAttribute('shipping_amount', false, ' '); ?>
            <?php endif; ?>
            <?php $_incl = $block->displayShippingPriceInclTax($order); ?>

            <?= /** @noEscape */
            $_excl ?>
            <?php if ($taxHelper->displayShippingBothPrices() && $_incl != $_excl): ?>
                (<?= $block->escapeHtml(__('Incl. Tax')) ?> <?= /** @noEscape */
                $_incl ?>)
            <?php endif; ?>
        <?php else: ?>
            <?= $block->escapeHtml(__('No shipping information available')) ?>
        <?php endif; ?>
    </div>
</div>

Spamworldpro Mini