Spamworldpro Mini Shell
Spamworldpro


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/Magepow/Productzoom/Block/System/Config/Form/Field/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/app/code/Magepow/Productzoom/Block/System/Config/Form/Field/Position.php
<?php

/**
 * @Author: Alex Dong
 * @Date:   2020-07-09 22:24:37
 * @Last Modified by:   nguyen
 * @Last Modified time: 2020-07-10 13:51:02
 */

namespace Magepow\Productzoom\Block\System\Config\Form\Field;

class Position extends \Magento\Config\Block\System\Config\Form\Field
{

    private $assetRepository;

    public function __construct(
        \Magento\Backend\Block\Template\Context $context, array $data = []
    ) {
        $this->assetRepository = $context->getAssetRepository();
        parent::__construct($context, $data);
    }

    protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element) 
    {
        $html  = $element->getElementHtml();
        $value = $element->getData('value');
        
        $asset = $this->assetRepository->createAsset('Magepow_Productzoom::images/window-positions.png');
        $html .= '<div style="position: relative; margin-top:10px"><img id="window-positions" src="' . $asset->getUrl() . '" alt="" border="0"></div>';
        return $html;
    }

}

Spamworldpro Mini