|
1 | | -<?xml version="1.0"?> |
| 1 | +<?xml version="1.0" ?> |
2 | 2 | <!-- |
3 | 3 | /** |
4 | 4 | * Copyright © Magefan (support@magefan.com). All rights reserved. |
|
7 | 7 | --> |
8 | 8 |
|
9 | 9 | <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> |
10 | | - <virtualType name="Magefan\ProductLabel\ImageUpload" type="Magefan\ProductLabel\Model\ImageUploader"> |
11 | | - <arguments> |
12 | | - <argument name="baseTmpPath" xsi:type="string">magefan_product_label/tmp</argument> |
13 | | - <argument name="basePath" xsi:type="string">magefan_product_label</argument> |
14 | | - <argument name="allowedExtensions" xsi:type="array"> |
15 | | - <item name="jpg" xsi:type="string">jpg</item> |
16 | | - <item name="jpeg" xsi:type="string">jpeg</item> |
17 | | - <item name="gif" xsi:type="string">gif</item> |
18 | | - <item name="png" xsi:type="string">png</item> |
19 | | - </argument> |
20 | | - </arguments> |
21 | | - </virtualType> |
| 10 | + <type name="Magento\Catalog\Block\Product\Image"> |
| 11 | + <plugin name="wrap_image_with_mf_comments" type="Magefan\ProductLabel\Plugin\Frontend\Magento\Catalog\Block\Product\Image" sortOrder="10" disabled="false"/> |
| 12 | + </type> |
| 13 | + <type name="Magento\Framework\Controller\ResultInterface"> |
| 14 | + <plugin name="replace_mf_comments_on_product_labels" type="Magefan\ProductLabel\Plugin\Frontend\Magento\Framework\Controller\ResultInterface" sortOrder="-21" disabled="false"/> |
| 15 | + </type> |
| 16 | + <type name="Magento\Catalog\Block\Product\View\Gallery"> |
| 17 | + <plugin name="wrap_gallery_image_with_mf_comments" type="Magefan\ProductLabel\Plugin\Frontend\Magento\Catalog\Block\Product\View\Gallery" sortOrder="10" disabled="false"/> |
| 18 | + </type> |
| 19 | + |
| 20 | + <type name="MageSuite\ProductTile\Block\Tile\Container"> |
| 21 | + <plugin name="add_mf_comments_to_mage_suite_product_tile" type="Magefan\ProductLabel\Plugin\Frontend\MageSuite\ProductTile\Block\Tile\Container" sortOrder="10" disabled="false"/> |
| 22 | + </type> |
22 | 23 |
|
23 | | - <type name="Magefan\ProductLabel\Controller\Adminhtml\Rule\Upload"> |
24 | | - <arguments> |
25 | | - <argument name="imageUploader" xsi:type="object">Magefan\ProductLabel\ImageUpload</argument> |
26 | | - </arguments> |
| 24 | + <type name="Codazon\ThemeLayoutPro\Helper\Data"> |
| 25 | + <plugin name="add_mf_comments_to_codazon_theme_layout_pro_data_helper" type="Magefan\ProductLabel\Plugin\Frontend\Codazon\ThemeLayoutPro\Helper\Data" sortOrder="10" disabled="false"/> |
27 | 26 | </type> |
28 | 27 | </config> |
0 commit comments