| Current Path : /home/rtorresani/www/vendor/mageplaza/magento-2-blog-extension/Block/Adminhtml/Renderer/ |
| Current File : //home/rtorresani/www/vendor/mageplaza/magento-2-blog-extension/Block/Adminhtml/Renderer/Image.php |
<?php
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_Core
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
namespace Mageplaza\Blog\Block\Adminhtml\Renderer;
/**
* Renderer image for admin form
* Add media path to url
*
* Class Image
* @package Mageplaza\Core\Block\Adminhtml\Renderer
*/
class Image extends \Mageplaza\Core\Block\Adminhtml\Renderer\Image
{
/**
* @return string
*/
protected function _getDeleteCheckbox()
{
$html = '';
if ($this->getValue()) {
$label = __('Delete Image');
$html .= '<span class="delete-image">';
$html .= '<input style="margin: auto;" type="checkbox"' .
' name="' .
$this->getName() .
'[delete]" value="1" class="checkbox"' .
' id="' .
$this->getHtmlId() .
'_delete"' .
($this->getDisabled() ? ' disabled="disabled"' : '') .
'/>';
$html .= '<label for="' . $this->getHtmlId() .
'_delete"' . ($this->getDisabled() ? ' class="disabled"' : '') . '> ' .
$label .
'</label>';
$html .= $this->_getHiddenInput();
$html .= '</span>';
}
$html .= '<style>#author_image_image, #post_image_image{ position: relative;top: 6px }</style>';
return $html;
}
}