This commit is contained in:
2026-09-15 10:26:34 +08:00
commit ecf36afa56
10493 changed files with 1404888 additions and 0 deletions
@@ -0,0 +1,15 @@
<?php
namespace WeltPixel\Backend\Block\Adminhtml\System\Config;
/**
* Class Extensions
* @package WeltPixel\Backend\Block\Adminhtml\System\Config
*/
class Extensions extends \Magento\Config\Block\System\Config\Form\Fieldset
{
public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
return '<iframe id="weltpixel_store" width="100%" src="https://www.weltpixel.com/store/index.html?id=' . uniqid() .'" ></iframe>';
}
}
@@ -0,0 +1,25 @@
<?php
/**
* @category WeltPixel
* @package WeltPixel_Backend
* @copyright Copyright (c) 2018 Weltpixel
* @author Weltpixel TEAM
*/
namespace WeltPixel\Backend\Block\Adminhtml\System\Config\Form\Field;
use Magento\Framework\Data\Form\Element\AbstractElement;
/**
* Class Disable
* @package WeltPixel\Backend\Block\System\Config\Form\Field
*/
class Disable extends \Magento\Config\Block\System\Config\Form\Field
{
protected function _getElementHtml(AbstractElement $element)
{
$element->setDisabled('disabled');
return $element->getElementHtml();
}
}
@@ -0,0 +1,24 @@
<?php
/**
* @category WeltPixel
* @package WeltPixel_Backend
* @copyright Copyright (c) 2018 Weltpixel
* @author Weltpixel TEAM
*/
namespace WeltPixel\Backend\Block\Adminhtml\System\Config\Form\Field;
use Magento\Framework\Data\Form\Element\AbstractElement;
/**
* Class EmptyField
* @package WeltPixel\Backend\Block\System\Config\Form\Field
*/
class EmptyField extends \Magento\Config\Block\System\Config\Form\Field
{
protected function _getElementHtml(AbstractElement $element)
{
return '';
}
}
@@ -0,0 +1,23 @@
<?php
namespace WeltPixel\Backend\Block\Adminhtml\System\Config;
use Magento\Config\Block\System\Config\Form\Field;
use Magento\Framework\Data\Form\Element\AbstractElement;
/**
* Class Notification
* @package WeltPixel\Backend\Block\Adminhtml\System\Config
*/
class Notification extends Field
{
protected $_template = 'WeltPixel_Backend::system/config/notification.phtml';
/**
* @param AbstractElement $element
* @return string
*/
protected function _getElementHtml(AbstractElement $element)
{
return $this->_toHtml();
}
}
@@ -0,0 +1,37 @@
<?php
namespace WeltPixel\Backend\Block\Adminhtml\System\Config;
use Magento\Config\Block\System\Config\Form\Field;
use Magento\Framework\Data\Form\Element\AbstractElement;
/**
* Class SystemInformation
* @package WeltPixel\Backend\Block\Adminhtml\System\Config
*/
class SystemInformation extends Field
{
protected $_template = 'WeltPixel_Backend::system/config/information.phtml';
/**
* @param AbstractElement $element
* @return string
*/
protected function _getElementHtml(AbstractElement $element)
{
return $this->_toHtml();
}
/**
* @return string
*/
public function getMagentoMode() {
return $this->_appState->getMode();
}
/**
* @return string
*/
public function getMagentoPath() {
return $this->getRootDirectory()->getAbsolutePath();
}
}