Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
iframe.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
12 $params = $block->getParams();
13 $helper = $block->getHelper('adminhtml');
14 ?>
15 <html>
16  <head>
17  <script>
18  <?php if (isset($params['redirect'])): ?>
19  window.location="<?= $block->escapeUrl($params['redirect']) ?>";
20  <?php endif; ?>
21  <?php if (isset($params['redirect_parent'])): ?>
22  window.top.location="<?= $block->escapeUrl($params['redirect_parent']) ?>";
23  <?php endif; ?>
24  <?php if (isset($params['error_msg'])): ?>
25  window.top.directPostModel.showError(<?= /* @noEscape */ json_encode((array)$params['error_msg']) ?>);
26  <?php if (isset($params['x_invoice_num'])): ?>
27  window.top.directPostModel.successUrl="<?= $block->escapeUrl($helper->getSuccessOrderUrl($params)) ?>";
28  <?php endif; ?>
29  <?php endif; ?>
30  </script>
31  </head>
32  <body></body>
33 </html>
$helper
Definition: iframe.phtml:13
$block
Definition: block.php:8
$params
Definition: iframe.phtml:12
endif
Definition: iframe.phtml:20