78. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2023-03-13 03:00:44 +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.

78.1 Files compared

#LocationFileLast Modified
1Porto v4.0.4/Porto Theme/app/code/Mageplaza/LayeredNavigation/view/frontend/templatesfilter.phtml2016-09-27 16:15:52 +0000
2Porto v4.0.5/Porto Theme/app/code/Mageplaza/LayeredNavigation/view/frontend/templatesfilter.phtml2016-09-27 16:15:52 +0000

78.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged1136
Changed00
Inserted00
Removed00

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

78.4 Active regular expressions

No regular expressions were active.

78.5 Comparison detail

1 <ol class="items"> 1 <ol class="items">
2     <?php foreach ($filterItems as $filterItem): ?> 2     <?php foreach ($filterItems as $filterItem): ?>
3         <?php 3         <?php
4         $filter = $filterItem->getFilter(); 4         $filter = $filterItem->getFilter();
5         $attributeModel = $filter->getData('attribute_model'); 5         $attributeModel = $filter->getData('attribute_model');
6         $inputName = $filter->getRequestVar(); 6         $inputName = $filter->getRequestVar();
7         $requestValue = $block->getRequest()->getParam($inputName); 7         $requestValue = $block->getRequest()->getParam($inputName);
8         $requestArray = $requestValue ? explode(',', $requestValue) : []; 8         $requestArray = $requestValue ? explode(',', $requestValue) : [];
9         $url = in_array($filterItem->getValue(), $requestArray) ? $filterItem->getRemoveUrl() : $filterItem->getUrl(); 9         $url = in_array($filterItem->getValue(), $requestArray) ? $filterItem->getRemoveUrl() : $filterItem->getUrl();
10         ?> 10         ?>
11         <li class="item"> 11         <li class="item">
12             <?php if($attributeModel && $attributeModel->getFrontendInput() == 'price'): ?> 12             <?php if($attributeModel && $attributeModel->getFrontendInput() == 'price'): ?>
13                 <?php 13                 <?php
14                     $productCollection = $filter->getLayer()->getProductCollection(); 14                     $productCollection = $filter->getLayer()->getProductCollection();
15                     $productCollectionClone = $productCollection->getCollectionClone(); 15                     $productCollectionClone = $productCollection->getCollectionClone();
16                     $collection = $productCollectionClone 16                     $collection = $productCollectionClone
17                         ->removeAttributeSearch(['price.from', 'price.to']); 17                         ->removeAttributeSearch(['price.from', 'price.to']);
18  18 
19                     $min = $collection->getMinPrice(); 19                     $min = $collection->getMinPrice();
20                     $max = $collection->getMaxPrice(); 20                     $max = $collection->getMaxPrice();
21  21 
22                     list($from, $to) = $requestValue ? explode('-', $requestValue) : [$min, $max]; 22                     list($from, $to) = $requestValue ? explode('-', $requestValue) : [$min, $max];
23                 ?> 23                 ?>
24                 <div id="ln_price_attribute"> 24                 <div id="ln_price_attribute">
25                     <div id="ln_price_slider"></div> 25                     <div id="ln_price_slider"></div>
26                     <div id="ln_price_text"></div> 26                     <div id="ln_price_text"></div>
27                 </div> 27                 </div>
28                 <script type="text/x-magento-init"> 28                 <script type="text/x-magento-init">
29                     { 29                     {
30                         "#ln_price_attribute": { 30                         "#ln_price_attribute": {
31                             "Mageplaza_LayeredNavigation/js/price/slider": { 31                             "Mageplaza_LayeredNavigation/js/price/slider": {
32                                 "selectedFrom": <?php echo $from ?>, 32                                 "selectedFrom": <?php echo $from ?>,
33                                 "selectedTo": <?php echo $to ?>, 33                                 "selectedTo": <?php echo $to ?>,
34                                 "minValue": <?php echo $min ?>, 34                                 "minValue": <?php echo $min ?>,
35                                 "maxValue": <?php echo $max ?>, 35                                 "maxValue": <?php echo $max ?>,
36                                 "priceFormat": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Tax\Helper\Data')->getPriceFormat($block->getStore()); ?>, 36                                 "priceFormat": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Tax\Helper\Data')->getPriceFormat($block->getStore()); ?>,
37                                 "ajaxUrl": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode($filterItem->getUrl()) ?> 37                                 "ajaxUrl": <?php /* @escapeNotVerified */ echo $this->helper('Magento\Framework\Json\Helper\Data')->jsonEncode($filterItem->getUrl()) ?>
38                             } 38                             }
39                         } 39                         }
40                     } 40                     }
41                 </script> 41                 </script>
42                 <?php break; ?> 42                 <?php break; ?>
43             <?php else: ?> 43             <?php else: ?>
44 »       »       »       »       <?php if ($filterItem->getCount() > 0): ?> 44 »       »       »       »       <?php if ($filterItem->getCount() > 0): ?>
45                     <a href="<?php echo $block->escapeUrl($url) ?>"> 45                     <a href="<?php echo $block->escapeUrl($url) ?>">
46                         <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?> 46                         <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?>
47                             <input type="checkbox" <?php echo in_array($filterItem->getValue(), $requestArray) ? 'checked="checked"' : ''  ?> /> 47                             <input type="checkbox" <?php echo in_array($filterItem->getValue(), $requestArray) ? 'checked="checked"' : ''  ?> />
48                         <?php endif; ?> 48                         <?php endif; ?>
49 »       »       »       »       »       »       <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?> 49 »       »       »       »       »       »       <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
50                         <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?> 50                         <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?>
51                             <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label"> 51                             <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
52 »       »       »       »       »       »       »       »       <?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span> 52 »       »       »       »       »       »       »       »       <?php if ($filterItem->getCount() == 1):?> <?php /* @escapeNotVerified */ echo __('item')?><?php else:?> <?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
53                         <?php endif; ?> 53                         <?php endif; ?>
54 »       »       »       »       »       </a> 54 »       »       »       »       »       </a>
55                 <?php else:?> 55                 <?php else:?>
56                     <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?> 56                     <?php if($attributeModel && $attributeModel->getFrontendInput() == 'multiselect'): ?>
57                         <input type="checkbox" disabled="disabled" /> 57                         <input type="checkbox" disabled="disabled" />
58                     <?php endif; ?> 58                     <?php endif; ?>
59                     <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?> 59                     <?php /* @escapeNotVerified */ echo $filterItem->getLabel() ?>
60                     <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?> 60                     <?php if ($this->helper('\Magento\Catalog\Helper\Data')->shouldDisplayProductCountOnLayer()): ?>
61                         <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label"> 61                         <span class="count"><?php /* @escapeNotVerified */ echo $filterItem->getCount()?><span class="filter-count-label">
62 »       »       »       »       »       »       »       <?php if ($filterItem->getCount() == 1):?><?php /* @escapeNotVerified */ echo __('item')?><?php else:?><?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span> 62 »       »       »       »       »       »       »       <?php if ($filterItem->getCount() == 1):?><?php /* @escapeNotVerified */ echo __('item')?><?php else:?><?php /* @escapeNotVerified */ echo __('items') ?><?php endif;?></span></span>
63                     <?php endif; ?> 63                     <?php endif; ?>
64                 <?php endif; ?> 64                 <?php endif; ?>
65             <?php endif; ?> 65             <?php endif; ?>
66         </li> 66         </li>
67     <?php endforeach ?> 67     <?php endforeach ?>
68 </ol> 68 </ol>