Skip to content

Commit 98075a2

Browse files
author
Niko K
committed
update v2.2.0
1 parent 33ab2a2 commit 98075a2

File tree

7 files changed

+20
-21
lines changed

7 files changed

+20
-21
lines changed

Block/Adminhtml/Category/Tab/Product.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
* @category MageVision
66
* @package MageVision_AdminCategoryProductThumbnail
77
* @author MageVision Team
8-
* @copyright Copyright (c) 2016 MageVision (http://www.magevision.com)
8+
* @copyright Copyright (c) 2017 MageVision (http://www.magevision.com)
99
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1010
*/
1111
namespace MageVision\AdminCategoryProductThumbnail\Block\Adminhtml\Category\Tab;
1212

13-
use Magento\Backend\Block\Widget\Grid;
14-
use Magento\Backend\Block\Widget\Grid\Extended;
15-
1613
class Product extends \Magento\Catalog\Block\Adminhtml\Category\Tab\Product
1714
{
1815
/**
@@ -39,7 +36,7 @@ protected function _prepareColumns()
3936
[
4037
'header' => __('Thumbnail'),
4138
'index' => 'image',
42-
'renderer' => '\MageVision\AdminCategoryProductThumbnail\Block\Adminhtml\Category\Tab\Product\Grid\Renderer\Image',
39+
'renderer' => \MageVision\AdminCategoryProductThumbnail\Block\Adminhtml\Category\Tab\Product\Grid\Renderer\Image::class,
4340
'filter' => false,
4441
'sortable' => false,
4542
'column_css_class' => 'data-grid-thumbnail-cell'

Block/Adminhtml/Category/Tab/Product/Grid/Renderer/Image.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,32 @@
55
* @category MageVision
66
* @package MageVision_AdminCategoryProductThumbnail
77
* @author MageVision Team
8-
* @copyright Copyright (c) 2016 MageVision (http://www.magevision.com)
8+
* @copyright Copyright (c) 2017 MageVision (http://www.magevision.com)
99
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1010
*/
1111
namespace MageVision\AdminCategoryProductThumbnail\Block\Adminhtml\Category\Tab\Product\Grid\Renderer;
1212

1313
use Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer;
14+
use Magento\Backend\Block\Context;
15+
use Magento\Catalog\Helper\Image as ImageHelper;
1416

1517
class Image extends AbstractRenderer
1618
{
1719
/**
1820
* Image Helper
1921
*
20-
* @var \Magento\Catalog\Helper\Image
22+
* @var ImageHelper
2123
*/
2224
protected $imageHelper;
2325

2426
/**
25-
* @param \Magento\Backend\Block\Context $context
26-
* @param \Magento\Catalog\Helper\Image $imageHelper
27+
* @param Context $context
28+
* @param ImageHelper $imageHelper
2729
* @param array $data
2830
*/
2931
public function __construct(
30-
\Magento\Backend\Block\Context $context,
31-
\Magento\Catalog\Helper\Image $imageHelper,
32+
Context $context,
33+
ImageHelper $imageHelper,
3234
array $data = []
3335
) {
3436
$this->imageHelper = $imageHelper;

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The Admin Category Product Thumbnail extension is a simple but really useful ext
1515
* 100% open source
1616

1717
## Compatibility
18-
Magento Community Edition 2.0 - 2.1
18+
Magento Community Edition 2.0 - 2.1 - 2.2
1919

2020
## Installing the Extension
2121
* Backup your web directory and store database

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"description": "Admin Category Product Thumbnail Extension for Magento 2",
44
"keywords": ["Magento 2", "Admin Category", "Product Thumbnail", "Products in Category", "Magento Backend"],
55
"require": {
6-
"php": "~5.5.0|~5.6.0|7.0.2|7.0.4|~7.0.6",
7-
"magento/module-backend": "100.*.*",
8-
"magento/module-catalog": "100.*.* | 101.*.*",
9-
"magento/framework": "100.*.*"
6+
"php": "~5.5.0|~5.6.0|7.0.2|7.0.4|~7.0.6|~7.1.0",
7+
"magento/module-backend": "100.0.*|100.1.*|100.2.*",
8+
"magento/module-catalog": "100.0.*|101.0.*|101.1.*",
9+
"magento/framework": "100.0.*|100.1.*|100.2.*"
1010
},
1111
"type": "magento2-module",
12-
"version": "2.1.2",
12+
"version": "2.2.0",
1313
"license": [
1414
"OSL-3.0",
1515
"AFL-3.0"

etc/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @category MageVision
77
* @package MageVision_AdminCategoryProductThumbnail
88
* @author MageVision Team
9-
* @copyright Copyright (c) 2016 MageVision (http://www.magevision.com)
9+
* @copyright Copyright (c) 2017 MageVision (http://www.magevision.com)
1010
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1111
*/
1212
-->

etc/module.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* @category MageVision
77
* @package MageVision_AdminCategoryProductThumbnail
88
* @author MageVision Team
9-
* @copyright Copyright (c) 2016 MageVision (http://www.magevision.com)
9+
* @copyright Copyright (c) 2017 MageVision (http://www.magevision.com)
1010
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1111
*/
1212
-->
1313
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
14-
<module name="MageVision_AdminCategoryProductThumbnail" setup_version="2.1.2">
14+
<module name="MageVision_AdminCategoryProductThumbnail" setup_version="2.2.0">
1515
<sequence>
1616
<module name="Magento_Catalog"/>
1717
</sequence>

registration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @category MageVision
66
* @package MageVision_AdminCategoryProductThumbnail
77
* @author MageVision Team
8-
* @copyright Copyright (c) 2016 MageVision (http://www.magevision.com)
8+
* @copyright Copyright (c) 2017 MageVision (http://www.magevision.com)
99
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1010
*/
1111
\Magento\Framework\Component\ComponentRegistrar::register(

0 commit comments

Comments
 (0)