74. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2021-07-21 10:21:59 +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.

74.1 Files compared

#LocationFileLast Modified
1/Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/categoryconfig.phtml2021-02-05 01:05:20 +0000
2/Applications/Ampps/www/Porto v4.0.1/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/categoryconfig.phtml2021-06-15 03:55:48 +0000

74.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged3156
Changed13
Inserted11
Removed00

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

74.4 Active regular expressions

No regular expressions were active.

74.5 Comparison detail

1 <script type="text/javascript"> 1 <script type="text/javascript">
2 require([ 2 require([
3     'jquery' 3     'jquery'
4 ], function ($) { 4 ], function ($) {
5   // sticky filter on mobile 5   // sticky filter on mobile
6     $(window).load(function(){ 6     $(window).load(function(){
7       if ($('.toolbar').length > 0) { 7       if ($('.toolbar').length > 0) {
8         var init_filter_sticky = function() { 8         var init_filter_sticky = function() {
9           var $obj = $('#layer-product-list > .toolbar.toolbar-products
');
 9           var $obj = $('#layer-product-list > .toolbar.toolbar-products,#layer-product-list .search.results > .toolbar.toolbar-products');
    10 
10           if (!$obj.prev('.filter-placeholder').length) { 11           if (!$obj.prev('.filter-placeholder').length) {
11             $('<div class="filter-placeholder m-0"></div>').insertBefore($obj); 12             $('<div class="filter-placeholder m-0"></div>').insertBefore($obj);
12           } 13           }
13           var sticky_height = 0; 14           var sticky_height = 0;
14           if($('.page-header.sticky-header').length > 0){ 15           if($('.page-header.sticky-header').length > 0){
15             sticky_height = $('.page-header.sticky-header .header-main').outerHeight(); 16             sticky_height = $('.page-header.sticky-header .header-main').outerHeight();
16           } 17           }
17           var $ph = $obj.prev('.filter-placeholder'), 18           var $ph = $obj.prev('.filter-placeholder'),
18               scrollTop = $(window).scrollTop(), 19               scrollTop = $(window).scrollTop(),
19               offset = sticky_height; 20               offset = sticky_height;
20           if ($ph.offset().top <= scrollTop + offset) { 21           if ($ph.offset().top <= scrollTop + offset) {
21             $ph.css('height', $obj.outerHeight() + parseInt($obj.css('margin-bottom'))); 22             $ph.css('height', $obj.outerHeight() + parseInt($obj.css('margin-bottom')));
22             $obj.addClass('sticky').css('top', offset); 23             $obj.addClass('sticky').css('top', offset);
23           } else { 24           } else {
24             $ph.css('height', ''); 25             $ph.css('height', '');
25             $obj.removeClass('sticky'); 26             $obj.removeClass('sticky');
26           } 27           }
27         }; 28         };
28         if (window.innerWidth < 992) { 29         if (window.innerWidth < 992) {
29           window.removeEventListener('scroll', init_filter_sticky); 30           window.removeEventListener('scroll', init_filter_sticky);
30           window.addEventListener('scroll', init_filter_sticky, {passive: true}); 31           window.addEventListener('scroll', init_filter_sticky, {passive: true});
31           init_filter_sticky(); 32           init_filter_sticky();
32         } 33         }
33         $(window).on('resize', function() { 34         $(window).on('resize', function() {
34           if (window.innerWidth < 992) { 35           if (window.innerWidth < 992) {
35             window.removeEventListener('scroll', init_filter_sticky); 36             window.removeEventListener('scroll', init_filter_sticky);
36             window.addEventListener('scroll', init_filter_sticky, {passive: true}); 37             window.addEventListener('scroll', init_filter_sticky, {passive: true});
37           }else{ 38           }else{
38             window.removeEventListener('scroll', init_filter_sticky); 39             window.removeEventListener('scroll', init_filter_sticky);
39             $('#layer-product-list > .toolbar.toolbar-products').removeClass('sticky').css('top', '').prev('.filter-placeholder').css('height', ''); 40             $('#layer-product-list > .toolbar.toolbar-products').removeClass('sticky').css('top', '').prev('.filter-placeholder').css('height', '');
40           } 41           }
41         }); 42         });
42       } 43       }
43     }); 44     });
44     // filter popup events 45     // filter popup events
45 »       »       $(document).on('click', '.sidebar-toggle', function(e) { 46 »       »       $(document).on('click', '.sidebar-toggle', function(e) {
46 »       »       »       e.preventDefault(); 47 »       »       »       e.preventDefault();
47 »       »       »       var $html = $('html'); 48 »       »       »       var $html = $('html');
48       var $obj = $('.columns .mobile-sidebar'); 49       var $obj = $('.columns .mobile-sidebar');
49       if (!$obj.parents().find('.sidebar-overlay').length) { 50       if (!$obj.parents().find('.sidebar-overlay').length) {
    51 
50         $('<div class="sidebar-overlay"></div>').insertBefore($obj); 52         $('<div class="sidebar-overlay"></div>').insertBefore($obj);
51       } 53       }
52       if($('#ln_overlay').length) { 54       if($('#ln_overlay').length) {
53         var Isloader = $('#ln_overlay').detach(); 55         var Isloader = $('#ln_overlay').detach();
54         if (!$obj.prev('#ln_overlay').length) { 56         if (!$obj.prev('#ln_overlay').length) {
55           Isloader.insertBefore($obj); 57           Isloader.insertBefore($obj);
56         } 58         }
57       } 59       }
58 »       »       »       if ($html.hasClass('sidebar-opened')) { 60 »       »       »       if ($html.hasClass('sidebar-opened')) {
59 »       »       »       »       $html.removeClass('sidebar-opened'); 61 »       »       »       »       $html.removeClass('sidebar-opened');
60 »       »       »       »       $('.sidebar-overlay').removeClass('active'); 62 »       »       »       »       $('.sidebar-overlay').removeClass('active');
61 »       »       »       } else { 63 »       »       »       } else {
62 »       »       »       »       $html.addClass('sidebar-opened'); 64 »       »       »       »       $html.addClass('sidebar-opened');
63 »       »       »       »       $('.sidebar-overlay').addClass('active'); 65 »       »       »       »       $('.sidebar-overlay').addClass('active');
64 »       »       »       } 66 »       »       »       }
65 »       »       }); 67 »       »       });
66  68 
67 »       »       $(document.body).on('click', '.sidebar-overlay', function() { 69 »       »       $(document.body).on('click', '.sidebar-overlay', function() {
68 »       »       »       $('html').removeClass('sidebar-opened'); 70 »       »       »       $('html').removeClass('sidebar-opened');
69 »       »       »       $('html').removeClass('filter-sidebar-opened'); 71 »       »       »       $('html').removeClass('filter-sidebar-opened');
70 »       »       »       $(this).removeClass('active'); 72 »       »       »       $(this).removeClass('active');
71 »       »       }); 73 »       »       });
72  74 
73 »       »       $(window).on('resize', function() { 75 »       »       $(window).on('resize', function() {
74 »       »       »       if (window.innerWidth > 991) { 76 »       »       »       if (window.innerWidth > 991) {
75 »       »       »       »       $('.sidebar-overlay').click(); 77 »       »       »       »       $('.sidebar-overlay').click();
76 »       »       »       } 78 »       »       »       }
77 »       »       }); 79 »       »       });
78 }); 80 });
79 </script> 81 </script>