|
5 | 5 | */
|
6 | 6 |
|
7 | 7 | // @codingStandardsIgnoreFile
|
8 |
| - |
| 8 | +/** |
| 9 | + * @var \Magento\Shipping\Block\Adminhtml\View\Form $block |
| 10 | + */ |
| 11 | +$order = $block->getShipment()->getOrder(); |
9 | 12 | ?>
|
10 |
| -<?php $_order = $block->getShipment()->getOrder() ?> |
11 |
| -<?= $block->getChildHtml('order_info') ?> |
| 13 | +<?= $block->getChildHtml('order_info'); ?> |
12 | 14 | <section class="admin__page-section order-shipment-billing-shipping">
|
13 | 15 | <div class="admin__page-section-title">
|
14 |
| - <span class="title"><?= /* @escapeNotVerified */ __('Payment & Shipping Method') ?></span> |
| 16 | + <span class="title"><?= $block->escapeHtml(__('Payment & Shipping Method')); ?></span> |
15 | 17 | </div>
|
16 | 18 | <div class="admin__page-section-content">
|
17 |
| - |
18 |
| - <?php /* Billing Address */ ?> |
19 | 19 | <div class="admin__page-section-item order-payment-method">
|
20 | 20 | <div class="admin__page-section-item-title">
|
21 |
| - <span class="title"><?= /* @escapeNotVerified */ __('Payment Information') ?></span> |
| 21 | + <span class="title"><?= $block->escapeHtml(__('Payment Information')); ?></span> |
22 | 22 | </div>
|
23 | 23 | <div class="admin__page-section-item-content">
|
24 | 24 | <div><?= $block->getChildHtml('order_payment') ?></div>
|
25 |
| - <div class="order-payment-currency"><?= /* @escapeNotVerified */ __('The order was placed using %1.', $_order->getOrderCurrencyCode()) ?></div> |
| 25 | + <div class="order-payment-currency"> |
| 26 | + <?= $block->escapeHtml(__('The order was placed using %1.', $order->getOrderCurrencyCode())); ?> |
| 27 | + </div> |
26 | 28 | </div>
|
27 | 29 | </div>
|
28 | 30 |
|
29 |
| - <?php /* Shipping Address */ ?> |
30 | 31 | <div class="admin__page-section-item order-shipping-address">
|
31 | 32 | <div class="admin__page-section-item-title">
|
32 |
| - <span class="title"><?= /* @escapeNotVerified */ __('Shipping and Tracking Information') ?></span> |
| 33 | + <span class="title"><?= $block->escapeHtml(__('Shipping and Tracking Information')); ?></span> |
33 | 34 | </div>
|
34 | 35 | <div class="admin__page-section-item-content">
|
35 | 36 | <div class="shipping-description-wrapper">
|
36 | 37 | <?php if ($block->getShipment()->getTracksCollection()->count()): ?>
|
37 | 38 | <p>
|
38 |
| - <a href="#" id="linkId" onclick="popWin('<?= /* @escapeNotVerified */ $this->helper('Magento\Shipping\Helper\Data')->getTrackingPopupUrlBySalesModel($block->getShipment()) ?>','trackshipment','width=800,height=600,resizable=yes,scrollbars=yes')" title="<?= /* @escapeNotVerified */ __('Track this shipment') ?>"><?= /* @escapeNotVerified */ __('Track this shipment') ?></a> |
| 39 | + <a href="#" id="linkId" onclick="popWin('<?= $block->escapeUrl($this->helper('Magento\Shipping\Helper\Data')->getTrackingPopupUrlBySalesModel($block->getShipment())); ?>','trackshipment','width=800,height=600,resizable=yes,scrollbars=yes')" |
| 40 | + title="<?= $block->escapeHtml(__('Track this shipment')); ?>"> |
| 41 | + <?= $block->escapeHtml(__('Track this shipment')); ?> |
| 42 | + </a> |
39 | 43 | </p>
|
40 | 44 | <?php endif; ?>
|
41 | 45 | <div class="shipping-description-title">
|
42 |
| - <?= $block->escapeHtml($_order->getShippingDescription()) ?> |
| 46 | + <?= $block->escapeHtml($order->getShippingDescription()); ?> |
43 | 47 | </div>
|
44 | 48 |
|
45 |
| - <?= /* @escapeNotVerified */ __('Total Shipping Charges') ?>: |
| 49 | + <?= $block->escapeHtml(__('Total Shipping Charges')); ?>: |
46 | 50 |
|
47 | 51 | <?php if ($this->helper('Magento\Tax\Helper\Data')->displayShippingPriceIncludingTax()): ?>
|
48 |
| - <?php $_excl = $block->displayShippingPriceInclTax($_order); ?> |
| 52 | + <?php $excl = $block->displayShippingPriceInclTax($order); ?> |
49 | 53 | <?php else: ?>
|
50 |
| - <?php $_excl = $block->displayPriceAttribute('shipping_amount', false, ' '); ?> |
| 54 | + <?php $excl = $block->displayPriceAttribute('shipping_amount', false, ' '); ?> |
51 | 55 | <?php endif; ?>
|
52 |
| - <?php $_incl = $block->displayShippingPriceInclTax($_order); ?> |
| 56 | + <?php $incl = $block->displayShippingPriceInclTax($order); ?> |
53 | 57 |
|
54 |
| - <?= /* @escapeNotVerified */ $_excl ?> |
55 |
| - <?php if ($this->helper('Magento\Tax\Helper\Data')->displayShippingBothPrices() && $_incl != $_excl): ?> |
56 |
| - (<?= /* @escapeNotVerified */ __('Incl. Tax') ?> <?= /* @escapeNotVerified */ $_incl ?>) |
| 58 | + <?= /* @noEscape */ $excl; ?> |
| 59 | + <?php if ($this->helper('Magento\Tax\Helper\Data')->displayShippingBothPrices() && $incl != $excl): ?> |
| 60 | + (<?= $block->escapeHtml(__('Incl. Tax')); ?> <?= /* @noEscape */ $incl; ?>) |
57 | 61 | <?php endif; ?>
|
58 | 62 | </div>
|
59 |
| - <?php if ($block->canCreateShippingLabel()): ?> |
| 63 | + |
60 | 64 | <p>
|
61 |
| - <?= /* @escapeNotVerified */ $block->getCreateLabelButton() ?> |
| 65 | + <?php if ($block->canCreateShippingLabel()): ?> |
| 66 | + <?= /* @noEscape */ $block->getCreateLabelButton(); ?> |
| 67 | + <?php endif ?> |
62 | 68 | <?php if ($block->getShipment()->getShippingLabel()): ?>
|
63 |
| - <?= /* @escapeNotVerified */ $block->getPrintLabelButton() ?> |
| 69 | + <?= /* @noEscape */ $block->getPrintLabelButton(); ?> |
64 | 70 | <?php endif ?>
|
65 | 71 | <?php if ($block->getShipment()->getPackages()): ?>
|
66 |
| - <?= /* @escapeNotVerified */ $block->getShowPackagesButton() ?> |
| 72 | + <?= /* @noEscape */ $block->getShowPackagesButton(); ?> |
67 | 73 | <?php endif ?>
|
68 | 74 | </p>
|
69 |
| - <?php endif ?> |
70 |
| - <?= $block->getChildHtml('shipment_tracking') ?> |
| 75 | + <?= $block->getChildHtml('shipment_tracking'); ?> |
71 | 76 |
|
72 |
| - <?= $block->getChildHtml('shipment_packaging') ?> |
| 77 | + <?= $block->getChildHtml('shipment_packaging'); ?> |
73 | 78 | <script>
|
74 | 79 | require([
|
75 | 80 | 'jquery',
|
|
80 | 85 | window.packaging.sendCreateLabelRequest();
|
81 | 86 | });
|
82 | 87 | window.packaging.setLabelCreatedCallback(function () {
|
83 |
| - setLocation("<?php /* @escapeNotVerified */ echo $block->getUrl( |
| 88 | + setLocation("<?php echo $block->escapeUrl($block->getUrl( |
84 | 89 | 'adminhtml/order_shipment/view',
|
85 |
| - ['shipment_id' => $block->getShipment()->getId()] |
| 90 | + ['shipment_id' => $block->getShipment()->getId()]) |
86 | 91 | ); ?>");
|
87 | 92 | });
|
88 | 93 | };
|
|
101 | 106 |
|
102 | 107 | <section class="admin__page-section">
|
103 | 108 | <div class="admin__page-section-title">
|
104 |
| - <span class="title"><?= /* @escapeNotVerified */ __('Items Shipped') ?></span> |
| 109 | + <span class="title"><?= $block->escapeHtml(__('Items Shipped')); ?></span> |
105 | 110 | </div>
|
106 |
| - <?= $block->getChildHtml('shipment_items') ?> |
| 111 | + <?= $block->getChildHtml('shipment_items'); ?> |
107 | 112 | </section>
|
108 | 113 |
|
109 | 114 | <section class="admin__page-section">
|
110 | 115 | <div class="admin__page-section-title">
|
111 |
| - <span class="title"><?= /* @escapeNotVerified */ __('Order Total') ?></span> |
| 116 | + <span class="title"><?= $block->escapeHtml(__('Order Total')); ?></span> |
112 | 117 | </div>
|
113 | 118 | <div class="admin__page-section-content">
|
114 |
| - <?= $block->getChildHtml('shipment_packed') ?> |
| 119 | + <?= $block->getChildHtml('shipment_packed'); ?> |
115 | 120 |
|
116 | 121 | <div class="admin__page-section-item order-comments-history">
|
117 | 122 | <div class="admin__page-section-item-title">
|
118 |
| - <span class="title"><?= /* @escapeNotVerified */ __('Shipment History') ?></span> |
| 123 | + <span class="title"><?= $block->escapeHtml(__('Shipment History')); ?></span> |
119 | 124 | </div>
|
120 |
| - <div class="admin__page-section-item-content"><?= $block->getChildHtml('order_comments') ?></div> |
| 125 | + <div class="admin__page-section-item-content"><?= $block->getChildHtml('order_comments'); ?></div> |
121 | 126 | </div>
|
122 | 127 | </div>
|
123 | 128 | </section>
|
0 commit comments