230. Araxis Merge File Comparison Report

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.

230.1 Files compared

#LocationFileLast Modified
1Porto v4.0.4/Porto Theme/app/design/frontend/Smartwave/porto/Mageplaza_LayeredNavigation/templates/layerview.phtml2021-01-30 01:53:40 +0000
2Porto v4.0.5/Porto Theme/app/design/frontend/Smartwave/porto/Mageplaza_LayeredNavigation/templates/layerview.phtml2023-03-03 00:55:50 +0000

230.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged17114
Changed1169
Inserted37
Removed22

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

230.4 Active regular expressions

No regular expressions were active.

230.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Mageplaza 3  * Mageplaza
4  * 4  *
5  * NOTICE OF LICENSE 5  * NOTICE OF LICENSE
6  * 6  *
7  * This source file is subject to the Mageplaza.com license that is 7  * This source file is subject to the Mageplaza.com license that is
8  * available through the world-wide-web at this URL: 8  * available through the world-wide-web at this URL:
9  * https://www.mageplaza.com/LICENSE.txt 9  * https://www.mageplaza.com/LICENSE.txt
10  * 10  *
11  * DISCLAIMER 11  * DISCLAIMER
12  * 12  *
13  * Do not edit or add to this file if you wish to upgrade this extension to newer 13  * Do not edit or add to this file if you wish to upgrade this extension to newer
14  * version in the future. 14  * version in the future.
15  * 15  *
16  * @category    Mageplaza 16  * @category    Mageplaza
17  * @package     Mageplaza_LayeredNavigation 17  * @package     Mageplaza_LayeredNavigation
18  * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/) 18  * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
19  * @license     https://www.mageplaza.com/LICENSE.txt 19  * @license     https://www.mageplaza.com/LICENSE.txt
20  */ 20  */
21 ?> 21 
22 <?php if ($block->canShowBlock()): ?> 22 
if ($block->canShowBlock()): ?>
23     <?php 23     <?php
24     $filters     = $block->getFilters(); 24     $filters     = $block->getFilters();
25     $layerConfig = $this->helper('Mageplaza\LayeredNavigation\Helper\Data')->getLayerConfiguration($filters); 25     $helperData  = $this->helper(\Mageplaza\LayeredNavigation\Helper\Data::class);
    26     $layerConfig = $helperData->getLayerConfiguration($filters);
26     $filtered    = count($block->getLayer()->getState()->getFilters()); 27     $filtered    = count($block->getLayer()->getState()->getFilters());
    28     $helperImage = $this->helper(\Mageplaza\LayeredNavigation\Helper\Image::class);
    29     $category = $block->getLayer()->getCurrentCategory();
    30     $hideAttributes = $category->getData('mp_ln_hide_attribute_ids');
27     ?> 31     ?>
28     <div class="block filter" id="layered-filter-block" 32     <div class="block filter" id="layered-filter-block"
29          data-mage-init='{"collapsible":{"openedState": "active", "collapsible": true, "active": false, "collateral": { "openedState": "filter-active", "element": "body" } }}'> 33          data-mage-init='{"collapsible":{"openedState": "active", "collapsible": true, "active": false, "collateral": { "openedState": "filter-active", "element": "body" } }}'>
30     
31         <div id="ln_overlay" class="ln_overlay"> 34         <div id="ln_overlay" class="ln_overlay">
32             <div class="loader"> 35             <div class="loader">
33                 <img src="<?php echo $block->getViewFileUrl('images/loader-1.gif'); ?>" alt="Loading..."> 36                 <img src="<?= /** @noEscape */ $block->getViewFileUrl('images/loader-1.gif')
 ?>" alt="Loading...">
34             </div> 37             </div>
35         </div> 38         </div>
36  39         <div class="block-title filter-title" data-count="<?= /** @noEscape */ $filtered ?>">
37         <div class="block-title filter-title" data-count="<?php /*
 @escapeNotVerified */
 40             <strong data-role="title"><?= /** @noEscape */ __('Shop By') ?></strong>
38         echo $filtered; ?>">    
39             <strong data-role="title"><?php /*
 @escapeNotVerified */
    
40                 echo __('Shop By') ?></strong>    
41         </div> 41         </div>
42         <div class="block-content filter-content" data-mage-init='{"mpLayer": <?php echo $
layerConfig
 ?>}'>
 42         <div class="block-content filter-content" data-mage-init='{"mpLayer": <?= /** @noEscape */ $block->escapeHtml($layerConfig) ?>}'>
43             <?php echo $block->getChildHtml('state') ?> 43             <?= /** @noEscape */ $block->getChildHtml('state') ?>
44     
45             <?php if ($block->getLayer()->getState()->getFilters()): ?> 44             <?php if ($block->getLayer()->getState()->getFilters()): ?>
46                 <div class="block-actions filter-actions"> 45                 <div class="block-actions filter-actions">
47                     <a href="<?php /* @escapeNotVerified */ 46                     <a href="<?= /** @noEscape */ $block->getClearUrl() ?>" class="action clear filter-clear">
48                     echo $block->getClearUrl() ?>" 47                         <span><?= /** @noEscape */ __('Clear All') ?></span>
49                        class="action clear filter-clear"><span><?php /* @escapeNotVerified */ 48                     </a>
50                             echo __('Clear All') ?></span></a>    
51                 </div> 49                 </div>
52             <?php endif; ?> 50             <?php endif; ?>
53     
54             <?php $wrapOptions = false; ?> 51             <?php $wrapOptions = false; ?>
55                 <?php foreach ($filters as $key => $filter): ?> 52             <?php foreach ($filters as $key => $filter): ?>
56             <?php if ($filter->getItemsCount() && $filter->getRequestVar() != 'cat'): ?> 53                 <?php if ($filter->getItemsCount() && $filter->getRequestVar() != 'cat'): ?>
    54                     <?php if ($hideAttributes && is_array($hideAttributes) && in_array($filter->getRequestVar(), $hideAttributes, true)) {continue;} ?>
57             <?php if (!$wrapOptions): ?> 55                     <?php if (!$wrapOptions): ?>
58                 <strong role="heading" aria-level="2" class="block-subtitle filter-subtitle"><?php echo __('Shopping Options') ?></strong> 56                         <strong role="heading" aria-level="2" class="block-subtitle filter-subtitle">
    57                             <?= /** @noEscape */ __('Shopping Options') ?>
    58                         </strong>
59                 <div class="filter-options" id="narrow-by-list" data-role="content"> 59                         <div class="filter-options" id="narrow-by-list" data-role="content">
60                 <?php  $wrapOptions = true; endif; ?> 60                         <?php $wrapOptions = true;
    61                     endif; ?>
61                 <?php $_class = $filter->getRequestVar() == 'cat' || $filter->getRequestVar() == 'size' || $filter->getRequestVar() == 'color' || $filter->getRequestVar() == 'price' ? 'active':'';?> 62                     <?php $_class = $filter->getRequestVar() == 'cat' || $filter->getRequestVar() == 'size' || $filter->getRequestVar() == 'color' || $filter->getRequestVar() == 'price' ? 'active':'';?>
62                 <div data-role="ln_collapsible" class="filter-options-item <?php echo $_class;?>" attribute="<?php echo $filter->getRequestVar() ?>"> 63                     <div data-role="ln_collapsible" class="filter-options-item <?php echo $_class;?>"
63                     <div data-role="ln_title" class="filter-options-title "><?php /* @escapeNotVerified */ echo __($filter->getName()) ?><span class="toggle"></span></div> 64                          attribute="<?= /** @noEscape */ $filter->getRequestVar() ?>">
64                     <div data-role="ln_content" class="filter-options-content"><?php /*
 @escapeNotVerified */ echo $block->getChildBlock('renderer')->setFilter($filter)->render($filter); ?></div>
 65                         <div data-role="ln_title" class="filter-options-title
">
    66                             <?= /** @noEscape */ __($filter->getName()) ?>
    67                             <?php if ($filter->hasAttributeModel()
    68                                 && $filter->getAttributeModel()->getData('show_tooltip') === '1'): ?>
    69                                 <?php
    70                                     $imageUrl = $helperImage->getTooltipThumbnail($filter);
    71                                     $tooltipContent = $helperData->getTooltipContent($filter);
    72                                 ?>
    73                                 <span class="ln_tooltip"  data-toggle="tooltip" title="<?= $block->escapeHtml($tooltipContent) ?>">
    74                                     <?php if ($imageUrl): ?>
    75                                     <image src="<?= $block->escapeUrl($imageUrl) ?>" width="22" height="22"
    76                                            class="ln_tooltip_thumbnail"
    77                                            alt="<?= $block->escapeHtml($tooltipContent) ?>">
    78                                     <?php endif; ?>
    79                                 </span>
    80                             <?php endif; ?><span class="toggle"></span>
    81                         </div>
    82                         <div data-role="ln_content" class="filter-options-content">
    83                             <?php if ($filter instanceof \Mageplaza\LayeredNavigation\Model\Layer\Filter\Category && $filter->isRenderCategoryTree()): ?>
    84                                 <?= /** @noEscape */ $block->getChildBlock('mplayer-renderer')->setFilter($filter)->render($filter) ?>
    85                             <?php else: ?>
    86                                 <
?= /** @noEscape */ 
$block->getChildBlock('renderer')->setFilter($filter)->render($filter)
 ?>
    87                             <?php endif; ?>
    88                         </div>
65                 </div> 89                     </div>
66                 <?php endif; ?> 90                 <?php endif; ?>
67                 <?php endforeach; ?> 91             <?php endforeach; ?>
68                 <?php if ($wrapOptions): ?> 92             <?php if ($wrapOptions): ?>
69             </div> 93                 </div>
70         <?php else: ?> 94             <?php else: ?>
71             <script> 95                 <script type="text/javascript">
72                 require([ 96                     require([
73                     'jquery' 97                         'jquery'
74                 ], function ($) { 98                     ], function ($) {
75                     $('#layered-filter-block').addClass('filter-no-options'); 99                         $('#layered-filter-block').addClass('filter-no-options');
76                 }); 100                     });
77             </script> 101                 </script>
78             <?php endif; ?> 102             <?php endif; ?>
79  103             <?= /** @noEscape */ $block->getChildHtml('layer_additional_info') ?>
80             <?php echo $block->getChildHtml('layer_additional_info') ?>    
81         </div> 104         </div>
82     </div> 105     </div>
    106     <?php if ($helperData->getHtmlHighLight()) {
    107         echo /** @noEscape */ $helperData->getHtmlHighLight($block->getLayout());
    108     } ?>
83 <?php endif; ?> 109 <?php endif; ?>