Produced by Araxis Merge on 2023-03-13 03:01:06 +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 v4.0.4/Porto Theme/app/design/frontend/Smartwave/porto/Mageplaza_LayeredNavigation/templates/layer | category_filter.phtml | 2018-06-17 22:39:34 +0000 |
| 2 | Porto v4.0.5/Porto Theme/app/design/frontend/Smartwave/porto/Mageplaza_LayeredNavigation/templates/layer | category_filter.phtml | 2018-06-17 22:39:34 +0000 |
| Description | Between Files 1 and 2 | |
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 1 | 78 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 | 1 | <?php | |||
| 2 | $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); | 2 | $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); | |||
| 3 | $category = $objectManager->get('Magento\Framework\Registry')->registry('current_category'); //Get Current Category | 3 | $category = $objectManager->get('Magento\Framework\Registry')->registry('current_category'); //Get Current Category | |||
| 4 | ?> | 4 | ?> | |||
| 5 | <?php if($category): ?> | 5 | <?php if($category): ?> | |||
| 6 | <?php | 6 | <?php | |||
| 7 | $subcats = $category->getChildrenCategories(); | 7 | $subcats = $category->getChildrenCategories(); | |||
| 8 | $_helper = $this->helper('Magento\Catalog\Helper\Output'); | 8 | $_helper = $this->helper('Magento\Catalog\Helper\Output'); | |||
| 9 | if(count($subcats)>0){ | 9 | if(count($subcats)>0){ | |||
| 10 | ?> | 10 | ?> | |||
| 11 | <div class="block-category-list"> | 11 | <div class="block-category-list"> | |||
| 12 | <div class="block-title"> | 12 | <div class="block-title"> | |||
| 13 | <strong><?php echo $category->getName() ?></strong> | 13 | <strong><?php echo $category->getName() ?></strong> | |||
| 14 | </div> | 14 | </div> | |||
| 15 | <div class="block-content"> | 15 | <div class="block-content"> | |||
| 16 | <ol class="items"> | 16 | <ol class="items"> | |||
| 17 | <?php | 17 | <?php | |||
| 18 | foreach($subcats as $subcat){ | 18 | foreach($subcats as $subcat){ | |||
| 19 | ?> | 19 | ?> | |||
| 20 | <li class="item"> | 20 | <li class="item"> | |||
| 21 | <a href="<?php echo $subcat->getUrl() ?>"><?php echo $subcat->getName() ?></a> | 21 | <a href="<?php echo $subcat->getUrl() ?>"><?php echo $subcat->getName() ?></a> | |||
| 22 | </li> | 22 | </li> | |||
| 23 | <?php | 23 | <?php | |||
| 24 | } | 24 | } | |||
| 25 | ?> | 25 | ?> | |||
| 26 | </ol> | 26 | </ol> | |||
| 27 | </div> | 27 | </div> | |||
| 28 | <script type="text/javascript"> | 28 | <script type="text/javascript"> | |||
| 29 | require([ | 29 | require([ | |||
| 30 | 'jquery' | 30 | 'jquery' | |||
| 31 | ], function ($) { | 31 | ], function ($) { | |||
| 32 | $("#layered-filter-block").before($(".block.block-category-list")); | 32 | $("#layered-filter-block").before($(".block.block-category-list")); | |||
| 33 | }); | 33 | }); | |||
| 34 | </script> | 34 | </script> | |||
| 35 | </div> | 35 | </div> | |||
| 36 | <?php | 36 | <?php | |||
| 37 | } | 37 | } | |||
| 38 | ?> | 38 | ?> | |||
| 39 | <?php endif; ?> | 39 | <?php endif; ?> |
Araxis Merge (but not the data content of this report) is Copyright © 1993–2019 Araxis Ltd (www.araxis.com). All rights reserved.