Produced by Araxis Merge on 2020-08-14 00:01:33 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Porto v3.2.3/Magento 2.x/Porto Theme/app/code/Mageplaza/LayeredNavigation/Plugins/Controller/Category | View.php | 2016-09-26 19:15:52 +0000 |
| 2 | 2020-08-14 00:01:33 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 28 |
| Whitespace | Consecutive whitespace is treated as a single space |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
| Active line-pairing rules |
No regular expressions were active.
| 1 | <?php | |||||
| 2 | ||||||
| 3 | namespace Mageplaza\LayeredNavigation\Plugins\Controller\Category; | |||||
| 4 | ||||||
| 5 | class View | |||||
| 6 | { | |||||
| 7 | » protected $_jsonHelper; | |||||
| 8 | » protected $_moduleHelper; | |||||
| 9 | ||||||
| 10 | » public function __construct( | |||||
| 11 | » » \Magento\Framework\Json\Helper\Data $jsonHelper, | |||||
| 12 | » » \Mageplaza\LayeredNavigation\Helper\Data $moduleHelper | |||||
| 13 | » ){ | |||||
| 14 | » » $this->_jsonHelper = $jsonHelper; | |||||
| 15 | » » $this->_moduleHelper = $moduleHelper; | |||||
| 16 | » } | |||||
| 17 | public function afterExecute(\Magento\Catalog\Controller\Category\View $action, $page) | |||||
| 18 | » { | |||||
| 19 | » » if($this->_moduleHelper->isEnabled() && $action->getRequest()->getParam('isAjax')){ | |||||
| 20 | » » » $navigation = $page->getLayout()->getBlock('catalog.leftnav'); | |||||
| 21 | » » » $products = $page->getLayout()->getBlock('category.products'); | |||||
| 22 | » » » $result = ['products' => $products->toHtml(), 'navigation' => $navigation->toHtml()]; | |||||
| 23 | » » » $action->getResponse()->representJson($this->_jsonHelper->jsonEncode($result)); | |||||
| 24 | » » } else { | |||||
| 25 | » » » return $page; | |||||
| 26 | » » } | |||||
| 27 | } | |||||
| 28 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.