Skip to content

Commit e00c2ce

Browse files
committed
updated files
0 parents  commit e00c2ce

File tree

14 files changed

+2563
-0
lines changed

14 files changed

+2563
-0
lines changed

Block/Adminhtml/About.php

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?php
2+
/**
3+
* @category Ecomteck
4+
* @package Ecomteck_Minify
5+
* @author Ecomteck
6+
* @copyright Copyright (c) Ecomteck (https://ecomteck.com)
7+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License
8+
*/
9+
10+
namespace Ecomteck\Minify\Block\Adminhtml;
11+
12+
use Magento\Framework\Data\Form\Element\AbstractElement;
13+
14+
class About extends \Magento\Backend\Block\AbstractBlock implements
15+
\Magento\Framework\Data\Form\Element\Renderer\RendererInterface
16+
{
17+
/**
18+
* @var \Ecomteck\Minify\Helper\Data
19+
*/
20+
public $helper;
21+
22+
/**
23+
* Constructor
24+
*
25+
* @param \Ecomteck\Minify\Helper\Data $helper
26+
*/
27+
public function __construct(\Ecomteck\Minify\Helper\Data $helper)
28+
{
29+
$this->helper = $helper;
30+
}
31+
32+
/**
33+
* Retrieve element HTML markup.
34+
*
35+
* @param \Magento\Framework\Data\Form\Element\AbstractElement $element
36+
* @return string
37+
*/
38+
public function render(AbstractElement $element)
39+
{
40+
$element = null;
41+
$version = $this->helper->getExtensionVersion();
42+
$logopath = 'https://ecomteck.com/wp-content/uploads/2019/03/ecomteck-logo-split.png';
43+
$html = <<<HTML
44+
<div style="background: url('$logopath') no-repeat scroll 15px 15px #f8f8f8;
45+
border:1px solid #ccc; min-height:100px; margin:5px 0;
46+
padding:15px 15px 15px 140px;">
47+
<p>
48+
<strong>Ecomteck Minify Extension v$version</strong><br /><br />
49+
Minify HTML including inline CSS and JS to speed up your site. Works with
50+
default Magento CSS/JS merger.
51+
</p>
52+
</div>
53+
HTML;
54+
return $html;
55+
}
56+
}

0 commit comments

Comments
 (0)