93. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2022-11-18 03:12:08 +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.

93.1 Files compared

#LocationFileLast Modified
1Porto Theme/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templatesflex_grid.phtml2022-04-30 08:30:38 +0000
2Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Smartwave_Filterproducts/templatesflex_grid.phtml2022-11-02 08:51:50 +0000

93.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged4628
Changed213
Inserted00
Removed11

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

93.4 Active regular expressions

No regular expressions were active.

93.5 Comparison detail

1 <?php 1 <?php
2 /** 2 /**
3  * Copyright © 2015 Magento. All rights reserved. 3  * Copyright © 2015 Magento. All rights reserved.
4  * See COPYING.txt for license details. 4  * See COPYING.txt for license details.
5  */ 5  */
6 use Magento\Framework\App\Action\Action; 6 use Magento\Framework\App\Action\Action;
7  7 
8 // @codingStandardsIgnoreFile 8 // @codingStandardsIgnoreFile
9 ?> 9 ?>
10 <?php 10 <?php
11 /** 11 /**
12  * Product list template 12  * Product list template
13  * 13  *
14  * @var $block \Smartwave\Filterproducts\Block\ 14  * @var $block \Smartwave\Filterproducts\Block\
15  */ 15  */
16 ?> 16 ?>
17 <?php 17 <?php
18 $_productCollection = $block->getLoadedProductCollection(); 18 $_productCollection = $block->getLoadedProductCollection();
19 $_helper = $this->helper('Magento\Catalog\Helper\Output'); 19 $_helper = $this->helper('Magento\Catalog\Helper\Output');
20 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); 20 $_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
21 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); 21 $_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
22 $review_model = $_portohelper->getModel('\Magento\Review\Model\Review'); 22 $review_model = $_portohelper->getModel('\Magento\Review\Model\Review');
23 $_category_config = $_portohelper->getConfig('porto_settings/category'); 23 $_category_config = $_portohelper->getConfig('porto_settings/category');
24 $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid'); 24 $_category_grid_config = $_portohelper->getConfig('porto_settings/category_grid');
25 $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label'); 25 $_product_label_config = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/product_label');
26 $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload'); 26 $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload');
27  27 
28 $aspect_ratio = $this->getData("aspect_ratio"); 28 $aspect_ratio = $this->getData("aspect_ratio");
29 if($aspect_ratio == null) { 29 if($aspect_ratio == null) {
30     $aspect_ratio = $_category_config['aspect_ratio']; 30     $aspect_ratio = $_category_config['aspect_ratio'];
31 } 31 }
32 $image_width = $this->getData("image_width"); 32 $image_width = $this->getData("image_width");
33 if(!$image_width) { 33 if(!$image_width) {
34     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300; 34     $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300;
35 } 35 }
36 $image_height = $this->getData("image_height"); 36 $image_height = $this->getData("image_height");
37 if($aspect_ratio) 37 if($aspect_ratio)
38     $image_height = $image_width; 38     $image_height = $image_width;
39 if(!$image_height) { 39 if(!$image_height) {
40     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300; 40     $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;
41 } 41 }
42 $move_actions = $this->getData("move_actions"); 42 $move_actions = $this->getData("move_actions");
43 if($move_actions == null) { 43 if($move_actions == null) {
44     $move_actions = $_category_grid_config['move_actions']; 44     $move_actions = $_category_grid_config['move_actions'];
45 } 45 }
46 $column_count = $this->getData("column_count"); 46 $column_count = $this->getData("column_count");
47 if($column_count == null) { 47 if($column_count == null) {
48     $column_count = 4; 48     $column_count = 4;
49 } 49 }
50 ?> 50 ?>
51 <?php if (!$_productCollection->count()): ?> 51 <?php if (!$_productCollection->count()): ?>
52     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> 52     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div>
53 <?php else: ?> 53 <?php else: ?>
54     <?php 54     <?php
55     $viewMode = 'grid'; 55     $viewMode = 'grid';
56     $image = 'category_page_grid'; 56     $image = 'category_page_grid';
57     $hover_image = 'category_page_grid-hover'; 57     $hover_image = 'category_page_grid-hover';
58     $showDescription = false; 58     $showDescription = false;
59     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; 59     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
60     ?> 60     ?>
61     <div class="products wrapper <?php echo $viewMode; ?> columns<?php echo $column_count; ?> flex-grid products-<?php echo $viewMode; ?>"> 61     <div class="products wrapper <?php echo $viewMode; ?> columns<?php echo $column_count; ?> flex-grid products-<?php echo $viewMode; ?>">
62         <?php $iterator = 1; ?> 62         <?php $iterator = 1; ?>
63         <ol class="filterproducts products list items product-items"> 63         <ol class="filterproducts products list items product-items">
64             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> 64             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
65             <?php foreach ($_productCollection as $_product): ?> 65             <?php foreach ($_productCollection as $_product): ?>
66                 <?php echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?> 66                 <?php echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?>
67                 <div class="product-item-info" data-container="product-grid"> 67                 <div class="product-item-info" data-container="product-grid">
68                     <?php // Product Image ?> 68                     <?php // Product Image ?>
69                     <div class="product photo product-item-photo"> 69                     <div class="product photo product-item-photo">
70                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> 70                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1">
71                         <?php 71                         <?php
72                             if($aspect_ratio) 72                             if($aspect_ratio)
73                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 73                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
74                             else 74                             else
75                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); 75                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height);
76                             $productImageUrl = $productImage->getUrl(); 76                             $productImageUrl = $productImage->getUrl();
77                         ?> 77                         ?>
78                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" alt="<?php //echo $productImage->getLabel();?>"/> 78                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" alt="<?php //echo $productImage->getLabel();?>"/>
79                         <?php if($_category_config['alternative_image']): ?> 79                         <?php if($_category_config['alternative_image']): ?>
80                         <?php 80                         <?php
81                             if($aspect_ratio) 81                             if($aspect_ratio)
82                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 82                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
83                             else 83                             else
84                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); 84                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height);
85                             $productHoverImageUrl = $productHoverImage->getUrl(); 85                             $productHoverImageUrl = $productHoverImage->getUrl();
86                         ?> 86                         ?>
87                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> 87                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?>
88                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/> 88                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/>
89                             <?php endif; ?> 89                             <?php endif; ?>
90                         <?php endif; ?> 90                         <?php endif; ?>
91                         </a> 91                         </a>
92                         <?php 92                         <?php
93                             $product_label = ""; 93                             $product_label = "";
94                             if($_product_label_config['sale_label']) { 94                             if($_product_label_config['sale_label']) {
95                                 $orgprice = $_product->getPrice(); 95                                 if ($percentage = $_portohelper->getPercentage($_product)) {
96                                 $specialprice = $_product->getSpecialPrice();    
97                                 $specialfromdate = $_product->getSpecialFromDate();    
98                                 $specialtodate = $_product->getSpecialToDate();    
99                                 $today = time();    
100                                 if(!$specialprice)    
101                                     $specialprice = $orgprice;    
102                                 if($specialprice < $orgprice) {    
103                                     if((is_null($specialfromdate) && is_null($specialtodate)) || ($today >= strtotime($specialfromdate) && is_null($specialtodate)) || ($today <= strtotime($specialtodate) && is_null($specialfromdate)) || ($today >= strtotime($specialfromdate) && $today <= strtotime($specialtodate))){    
104                                         if($_product_label_config['sale_label_percent']) { 96                                     if($_product_label_config['sale_label_percent']) {
105                                             $save_percent = 100-round(($specialprice/$orgprice)*100); 97                                         $product_label .= '<div class="product-label sale-label">'.
$percentage.'%'.'</div>';
106                                             $product_label .= '<div class="product-label sale-label">'.'-'.$save_percent.'%'.'</div>';    
107                                         } else { 98                                     } else {
108                                             $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; 99                                         $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>';
109                                         } 100                                     }
110                                     } 101                                 }
111                                 } 102                             }
112                             }    
113                             if($_product_label_config['new_label']) { 103                             if($_product_label_config['new_label']) {
114                                 $now = date("Y-m-d"); 104                                 $now = date("Y-m-d");
115                                 $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10); 105                                 $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10);
116                                 $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10); 106                                 $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10);
117  107 
118                                 if ($newsTo != '' || $newsFrom != ''){ 108                                 if ($newsTo != '' || $newsFrom != ''){
119                                     if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { 109                                     if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) {
120                                         $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>'; 110                                         $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>';
121                                     } 111                                     }
122                                 } 112                                 }
123                             } 113                             }
124                             if($product_label) 114                             if($product_label)
125                                 echo '<div class="product-labels">'.$product_label.'</div>'; 115                                 echo '<div class="product-labels">'.$product_label.'</div>';
126                         ?> 116                         ?>
127                         <?php if($_category_config['actions'] && $move_actions): ?> 117                         <?php if($_category_config['actions'] && $move_actions): ?>
128                         <div class="product-item-inner"> 118                         <div class="product-item-inner">
129                             <div class="product actions product-item-actions"> 119                             <div class="product actions product-item-actions">
130                                 <div class="actions-primary"> 120                                 <div class="actions-primary">
131                                     <?php if ($_product->isSaleable()): ?> 121                                     <?php if ($_product->isSaleable()): ?>
132                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 122                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?>
133                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 123                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
134                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 124                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
135                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 125                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
136  126 
137                                             <?php echo $block->getBlockHtml('formkey')?> 127                                             <?php echo $block->getBlockHtml('formkey')?>
138                                             <button type="submit" 128                                             <button type="submit"
139                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 129                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
140                                                     class="action tocart primary"> 130                                                     class="action tocart primary">
141                                                 <span><?php echo __('Add to Cart') ?></span> 131                                                 <span><?php echo __('Add to Cart') ?></span>
142                                             </button> 132                                             </button>
143                                         </form> 133                                         </form>
144                                     <?php else: ?> 134                                     <?php else: ?>
145                                         <?php if ($_product->getIsSalable()): ?> 135                                         <?php if ($_product->getIsSalable()): ?>
146                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 136                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div>
147                                         <?php else: ?> 137                                         <?php else: ?>
148                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 138                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
149                                         <?php endif; ?> 139                                         <?php endif; ?>
150                                     <?php endif; ?> 140                                     <?php endif; ?>
151                                 </div> 141                                 </div>
152                                 <?php if ($block->getMode() == 'grid'): ?> 142                                 <?php if ($block->getMode() == 'grid'): ?>
153                                 <?php if($_category_config['addtowishlist']): ?> 143                                 <?php if($_category_config['addtowishlist']): ?>
154                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 144                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
155                                     <a href="#" 145                                     <a href="#"
156                                        class="action towishlist actions-secondary" 146                                        class="action towishlist actions-secondary"
157                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 147                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
158                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 148                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
159                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 149                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
160                                        data-action="add-to-wishlist" 150                                        data-action="add-to-wishlist"
161                                        role="button"> 151                                        role="button">
162                                         <span><?php echo __('Add to Wish List') ?></span> 152                                         <span><?php echo __('Add to Wish List') ?></span>
163                                     </a> 153                                     </a>
164                                 <?php endif; ?> 154                                 <?php endif; ?>
165                                 <?php endif; ?> 155                                 <?php endif; ?>
166                                 <?php endif; ?> 156                                 <?php endif; ?>
167                                 <?php if($_category_config['addtocompare']): ?> 157                                 <?php if($_category_config['addtocompare']): ?>
168                                 <?php 158                                 <?php
169                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 159                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
170                                 ?> 160                                 ?>
171                                 <a href="#" 161                                 <a href="#"
172                                    class="action tocompare actions-secondary" 162                                    class="action tocompare actions-secondary"
173                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 163                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
174                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 164                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
175                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 165                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
176                                    role="button"> 166                                    role="button">
177                                     <span><?php echo __('Add to Compare') ?></span> 167                                     <span><?php echo __('Add to Compare') ?></span>
178                                 </a> 168                                 </a>
179                                 <?php endif; ?> 169                                 <?php endif; ?>
180                             </div> 170                             </div>
181                         </div> 171                         </div>
182                         <?php endif; ?> 172                         <?php endif; ?>
183                     </div> 173                     </div>
184                     <div class="product details product-item-details"> 174                     <div class="product details product-item-details">
185                         <?php 175                         <?php
186                             $_productNameStripped = $block->stripTags($_product->getName(), null, true); 176                             $_productNameStripped = $block->stripTags($_product->getName(), null, true);
187                         ?> 177                         ?>
188                         <?php if(!$_category_grid_config['move_title']):?> 178                         <?php if(!$_category_grid_config['move_title']):?>
189                             <strong class="product name product-item-name"> 179                             <strong class="product name product-item-name">
190                                 <a class="product-item-link" 180                                 <a class="product-item-link"
191                                    href="<?php echo $_product->getProductUrl() ?>"> 181                                    href="<?php echo $_product->getProductUrl() ?>">
192                                     <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> 182                                     <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
193                                 </a> 183                                 </a>
194                             </strong> 184                             </strong>
195                         <?php endif;?> 185                         <?php endif;?>
196                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?> 186                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?>
197                         <?php if($_category_config['rating_star']): ?> 187                         <?php if($_category_config['rating_star']): ?>
198                         <?php 188                         <?php
199                             $review_model->getEntitySummary($_product); 189                             $review_model->getEntitySummary($_product);
200                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType); 190                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
201                         ?> 191                         ?>
202                         <?php if($review_html): ?> 192                         <?php if($review_html): ?>
203                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> 193                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
204                         <?php else: ?> 194                         <?php else: ?>
205                         <div class="product-reviews-summary short"> 195                         <div class="product-reviews-summary short">
206                             <div class="rating-summary"> 196                             <div class="rating-summary">
207                                 <span class="label"><span>Rating:</span></span> 197                                 <span class="label"><span>Rating:</span></span>
208                                 <div class="rating-result" title="0%"> 198                                 <div class="rating-result" title="0%">
209                                     <span style="width:0"><span>0%</span></span> 199                                     <span style="width:0"><span>0%</span></span>
210                                 </div> 200                                 </div>
211                             </div> 201                             </div>
212                         </div> 202                         </div>
213                         <?php endif; ?> 203                         <?php endif; ?>
214                         <?php endif; ?> 204                         <?php endif; ?>
215                         <?php if($_category_grid_config['move_title']):?> 205                         <?php if($_category_grid_config['move_title']):?>
216                             <strong class="product name product-item-name"> 206                             <strong class="product name product-item-name">
217                                 <a class="product-item-link" 207                                 <a class="product-item-link"
218                                    href="<?php echo $_product->getProductUrl() ?>"> 208                                    href="<?php echo $_product->getProductUrl() ?>">
219                                     <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> 209                                     <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
220                                 </a> 210                                 </a>
221                             </strong> 211                             </strong>
222                         <?php endif;?> 212                         <?php endif;?>
223                         <?php if ($showDescription):?> 213                         <?php if ($showDescription):?>
224                             <div class="product description product-item-description"> 214                             <div class="product description product-item-description">
225                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> 215                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
226                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" 216                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>"
227                                    class="action more"><?php echo __('Learn More') ?></a> 217                                    class="action more"><?php echo __('Learn More') ?></a>
228                             </div> 218                             </div>
229                         <?php endif; ?> 219                         <?php endif; ?>
230                         <?php if($_category_config['product_price']): ?> 220                         <?php if($_category_config['product_price']): ?>
231                         <?php echo $block->getProductPrice($_product) ?> 221                         <?php echo $block->getProductPrice($_product) ?>
232                         <?php endif; ?> 222                         <?php endif; ?>
233                         <?php echo $block->getProductDetailsHtml($_product); ?> 223                         <?php echo $block->getProductDetailsHtml($_product); ?>
234  224 
235                         <?php if($_category_config['actions'] && !$move_actions): ?> 225                         <?php if($_category_config['actions'] && !$move_actions): ?>
236                         <div class="product-item-inner"> 226                         <div class="product-item-inner">
237                             <div class="product actions product-item-actions"> 227                             <div class="product actions product-item-actions">
238                                 <?php if ($block->getMode() == 'grid'): ?> 228                                 <?php if ($block->getMode() == 'grid'): ?>
239                                 <?php if($_category_config['addtowishlist']): ?> 229                                 <?php if($_category_config['addtowishlist']): ?>
240                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 230                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
241                                     <a href="#" 231                                     <a href="#"
242                                        class="action towishlist actions-secondary" 232                                        class="action towishlist actions-secondary"
243                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 233                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
244                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 234                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
245                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 235                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
246                                        data-action="add-to-wishlist" 236                                        data-action="add-to-wishlist"
247                                        role="button"> 237                                        role="button">
248                                         <span><?php echo __('Add to Wish List') ?></span> 238                                         <span><?php echo __('Add to Wish List') ?></span>
249                                     </a> 239                                     </a>
250                                 <?php endif; ?> 240                                 <?php endif; ?>
251                                 <?php endif; ?> 241                                 <?php endif; ?>
252                                 <?php endif; ?> 242                                 <?php endif; ?>
253                                 <div class="actions-primary"> 243                                 <div class="actions-primary">
254                                     <?php if ($_product->isSaleable()): ?> 244                                     <?php if ($_product->isSaleable()): ?>
255                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 245                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?>
256                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 246                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
257                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 247                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
258                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 248                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
259  249 
260                                             <?php echo $block->getBlockHtml('formkey')?> 250                                             <?php echo $block->getBlockHtml('formkey')?>
261                                             <button type="submit" 251                                             <button type="submit"
262                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 252                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
263                                                     class="action tocart primary"> 253                                                     class="action tocart primary">
264                                                 <span><?php echo __('Add to Cart') ?></span> 254                                                 <span><?php echo __('Add to Cart') ?></span>
265                                             </button> 255                                             </button>
266                                         </form> 256                                         </form>
267                                     <?php else: ?> 257                                     <?php else: ?>
268                                         <?php if ($_product->getIsSalable()): ?> 258                                         <?php if ($_product->getIsSalable()): ?>
269                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 259                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div>
270                                         <?php else: ?> 260                                         <?php else: ?>
271                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 261                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
272                                         <?php endif; ?> 262                                         <?php endif; ?>
273                                     <?php endif; ?> 263                                     <?php endif; ?>
274                                 </div> 264                                 </div>
275                                 <?php if($_category_config['addtocompare']): ?> 265                                 <?php if($_category_config['addtocompare']): ?>
276                                 <?php 266                                 <?php
277                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 267                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
278                                 ?> 268                                 ?>
279                                 <a href="#" 269                                 <a href="#"
280                                    class="action tocompare actions-secondary" 270                                    class="action tocompare actions-secondary"
281                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 271                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
282                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 272                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
283                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 273                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
284                                    role="button"> 274                                    role="button">
285                                     <span><?php echo __('Add to Compare') ?></span> 275                                     <span><?php echo __('Add to Compare') ?></span>
286                                 </a> 276                                 </a>
287                                 <?php endif; ?> 277                                 <?php endif; ?>
288                             </div> 278                             </div>
289                         </div> 279                         </div>
290                         <?php endif; ?> 280                         <?php endif; ?>
291                     </div> 281                     </div>
292                 </div> 282                 </div>
293                 <?php echo($iterator == count($_productCollection)+1) ? '</li>' : '' ?> 283                 <?php echo($iterator == count($_productCollection)+1) ? '</li>' : '' ?>
294             <?php endforeach; ?> 284             <?php endforeach; ?>
295         </ol> 285         </ol>
296     </div> 286     </div>
297     <script type="text/javascript"> 287     <script type="text/javascript">
298         require([ 288         require([
299             'jquery' 289             'jquery'
300         ], function ($) { 290         ], function ($) {
301             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n'); 291             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n');
302             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1'); 292             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1');
303             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n'); 293             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n');
304             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1'); 294             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1');
305             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n'); 295             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n');
306             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1'); 296             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1');
307             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n'); 297             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n');
308             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1'); 298             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1');
309             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n'); 299             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n');
310             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1'); 300             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1');
311             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n'); 301             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n');
312             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1'); 302             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1');
313             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n'); 303             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n');
314             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1'); 304             $('.main .products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1');
315         }); 305         });
316     </script> 306     </script>
317     <?php if (!$block->isRedirectToCartEnabled()) : ?> 307     <?php if (!$block->isRedirectToCartEnabled()) : ?>
318         <script type="text/x-magento-init"> 308         <script type="text/x-magento-init">
319         { 309         {
320             "[data-role=tocart-form], .form.map.checkout": { 310             "[data-role=tocart-form], .form.map.checkout": {
321                 "catalogAddToCart": {} 311                 "catalogAddToCart": {}
322             } 312             }
323         } 313         }
324         </script> 314         </script>
325     <?php endif; ?> 315     <?php endif; ?>
326 <?php endif; ?> 316 <?php endif; ?>