Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
giftoptions.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 
11 <?php $_item = $block->getItem() ?>
12 <?php if ($_item): ?>
13  <?php $_childHtml = trim($block->getChildHtml('', false));?>
14  <?php if ($_childHtml): ?>
15  <tr class="row-gift-options">
16  <td colspan="7">
17  <a class="action-link" href="#" id="gift_options_link_<?= /* @escapeNotVerified */ $_item->getId() ?>"><?= /* @escapeNotVerified */ __('Gift Options') ?></a>
18  <script>
19 require([
20  "Magento_Sales/order/giftoptions_tooltip"
21 ], function(){
22 
23  giftOptionsTooltip.addTargetLink('gift_options_link_<?= /* @escapeNotVerified */ $_item->getId() ?>', <?= /* @escapeNotVerified */ $_item->getId() ?>);
24 
25 });
26 </script>
27  <div id="gift_options_data_<?= /* @escapeNotVerified */ $_item->getId() ?>">
28  <?= /* @escapeNotVerified */ $_childHtml ?>
29  </div>
30  </td>
31  </tr>
32  <?php endif ?>
33 <?php endif ?>
__()
Definition: __.php:13
$block
Definition: block.php:8
$_item
Definition: default.phtml:11
endif
Definition: 404.phtml:116
$_childHtml