275. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2021-05-13 09:09:05 +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.

275.1 Files compared

#LocationFileLast Modified
1/Applications/Ampps/www/Porto 3.2.2/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Mageplaza_LayeredNavigation/templates/layercategory_filter.phtml2018-06-17 22:39:34 +0000
2/Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Mageplaza_LayeredNavigation/templates/layercategory_filter.phtml2018-06-17 22:39:34 +0000

275.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged178
Changed00
Inserted00
Removed00

275.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

275.4 Active regular expressions

No regular expressions were active.

275.5 Comparison detail

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; ?>