177. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2024-03-04 14:38:53 +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.

177.1 Files compared

#LocationFileLast Modified
12024-03-04 14:38:53 +0000
2/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.8/app/design/frontend/Smartwave/porto/Smartwave_Porto/templatescategory-menu.phtml2024-01-31 01:21:34 +0000

177.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged00
Changed00
Inserted119
Removed00

177.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

177.4 Active regular expressions

No regular expressions were active.

177.5 Comparison detail

    1 <?php
    2 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
    3 if($_portohelper->getCurrentProduct() || $_portohelper->getCurrentCategory()){
    4     echo $this->getCategorySidebarHtml();
    5 }
    6 ?>
    7 <script type="text/javascript">
    8 require(['jquery', 'jquery/ui'], function($){
    9   var path = window.location.href; 
    10   $(".category-sidebar li a").each(function() {
    11     if (this.href === path) {
    12       $(this).parent().addClass('active');
    13     }
    14     if (this.href === path && $(this).parent().hasClass('parent')) {
    15       $(this).parents('.parent').addClass('active');
    16     }
    17   });
    18 });
    19 </script>