Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
popup.phtml
Go to the documentation of this file.
1 <?php
8 
9 // @codingStandardsIgnoreFile
10 
13 $results = $block->getTrackingInfo();
14 ?>
15 <div class="page tracking">
16  <?php if (!empty($results)): ?>
17  <?php foreach ($results as $shipId => $result): ?>
18  <?php if ($shipId): ?>
19  <div class="order subtitle caption"><?= /* @noEscape */ $block->escapeHtml(__('Shipment #')) . $shipId ?></div>
20  <?php endif; ?>
21  <?php if (!empty($result)): ?>
22  <?php foreach ($result as $counter => $track): ?>
23  <div class="table-wrapper">
24  <?php
25  $shipmentBlockIdentifier = $shipId . '.' . $counter;
26  $block->addChild('shipping.tracking.details.' . $shipmentBlockIdentifier, Template::class, [
27  'track' => $track,
28  'template' => 'Magento_Shipping::tracking/details.phtml',
29  'storeSupportEmail' => $block->getStoreSupportEmail()
30  ]
31  );
32  ?>
33  <?= /* @noEscape */ $block->getChildHtml('shipping.tracking.details.' . $shipmentBlockIdentifier) ?>
34  </div>
35  <?php if (is_object($track) && !empty($track->getProgressdetail())): ?>
36  <?php
37  $block->addChild('shipping.tracking.progress.' . $shipmentBlockIdentifier, Template::class, [
38  'track' => $track,
39  'template' => 'Magento_Shipping::tracking/progress.phtml'
40  ]);
41  ?>
42  <?= /* @noEscape */ $block->getChildHtml('shipping.tracking.progress.' . $shipmentBlockIdentifier) ?>
43  <?php endif; ?>
44  <?php endforeach; ?>
45  <?php else: ?>
46  <div class="message info empty">
47  <div><?= $block->escapeHtml(__('There is no tracking available for this shipment.')) ?></div>
48  </div>
49  <?php endif; ?>
50  <?php endforeach; ?>
51  <?php else: ?>
52  <div class="message info empty">
53  <div><?= $block->escapeHtml(__('There is no tracking available.')) ?></div>
54  </div>
55  <?php endif; ?>
56  <div class="actions">
57  <button type="button"
58  title="<?= $block->escapeHtml(__('Close Window')) ?>"
59  class="action close"
60  onclick="window.close(); window.opener.focus();">
61  <span><?= $block->escapeHtml(__('Close Window')) ?></span>
62  </button>
63  </div>
64 </div>
$results
Definition: popup.phtml:13
$track
Definition: details.phtml:12
__()
Definition: __.php:13
$block
Definition: block.php:8
if($block->getChildHtml())< div id="gift_options_form_contents">< div class="content"><?=$block-> getChildHtml() ?></div >< div class endif
Definition: popup.phtml:19
foreach( $block->getUnreadMessages() as $message)( $message) ?>"> <? endforeach
Definition: popup.phtml:14