Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

59 righe
2.0 KiB

  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
  7. ?>
  8. <?php if ($block->getChildHtml()):?>
  9. <div id="gift_options_configure_new" class="gift-options-popup product-configure-popup no-display">
  10. <div id="gift_options_form_contents">
  11. <div class="content">
  12. <?= $block->getChildHtml() ?>
  13. </div>
  14. <div class="ui-dialog-buttonset">
  15. <button type="button" class="action-close" id="gift_options_cancel_button">
  16. <span><?= $block->escapeHtml(__('Cancel')) ?></span>
  17. </button>
  18. <button type="button" class="action-primary" id="gift_options_ok_button">
  19. <span><?= $block->escapeHtml(__('OK')) ?></span>
  20. </button>
  21. </div>
  22. </div>
  23. </div>
  24. <div id="giftoptions_tooltip_window" class="gift-options-tooltip no-display">
  25. <div id="giftoptions_tooltip_window_content">&nbsp;</div>
  26. </div>
  27. <?php $scriptString = <<<script
  28. require(['jquery'], function($){
  29. 'use strict';
  30. $('div#gift_options_configure_new').css('display', 'none');
  31. $('div#gift_options_configure_new').removeClass('no-display');
  32. $('div#giftoptions_tooltip_window').css('display', 'none');
  33. $('div#giftoptions_tooltip_window').removeClass('no-display');
  34. });
  35. script;
  36. ?>
  37. <?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
  38. <?php $scriptString = <<<script
  39. require([
  40. "Magento_Sales/order/create/giftmessage",
  41. "Magento_Sales/order/giftoptions_tooltip"
  42. ], function(){
  43. //<![CDATA[
  44. var giftMessageSet = new GiftMessageSet();
  45. _giftOptions = new GiftOptionsPopup();
  46. giftOptionsTooltip.setTooltipWindow('giftoptions_tooltip_window','giftoptions_tooltip_window_content');
  47. //]]>
  48. window.giftMessageSet = giftMessageSet;
  49. });
  50. script;
  51. ?>
  52. <?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
  53. <?php endif;?>