![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/app/code/Xtento/XtCore/Block/System/Config/Form/Xtento/ |
<?php /** * Product: Xtento_XtCore * ID: u66QkJ5rBwmimhUzUElhIKqqWRvsbhC3WLqSMk5AjmQ= * Last Modified: 2020-05-29T13:06:01+00:00 * File: app/code/Xtento/XtCore/Block/System/Config/Form/Xtento/Store.php * Copyright: Copyright (c) XTENTO GmbH & Co. KG <[email protected]> / All rights reserved. */ namespace Xtento\XtCore\Block\System\Config\Form\Xtento; class Store extends \Magento\Config\Block\System\Config\Form\Field { /* * XTENTO Store */ protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element) { $extStoreUrl = 'https://www.xtento.com/magento-2-extensions.html?extensionstore=true'; $html = <<<EOT <script> requirejs(['prototype'], function() { if (typeof $$(".save")[0] !== 'undefined') { $$(".save")[0].down('span').innerHTML = 'Open the XTENTO Extension Store in a new window'; $$(".save")[0].setAttribute('onclick', "window.open('{$extStoreUrl}', '_blank'); return false;"); } }); </script> <iframe src="{$extStoreUrl}" scrolling="auto" style="width: 100%; height: 900px !important; display: block; border: 1px solid #ccc;"></iframe> EOT; return $html; } }