14. Araxis Merge File Comparison Report

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

14.1 Files compared

#LocationFileLast Modified
1/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.7/app/code/Smartwave/Filterproducts/view/frontend/templates/widgetgrid.phtml2023-07-12 04:24:15 +0000
2/Users/coca/Documents/www/Porto v4.0.2/Theme Files/Magento 2.x/Porto Theme v4.0.8/app/code/Smartwave/Filterproducts/view/frontend/templates/widgetgrid.phtml2024-01-16 04:52:06 +0000

14.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged19882
Changed9259
Inserted984
Removed00

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

14.4 Active regular expressions

No regular expressions were active.

14.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 if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())) { 18 if ($exist = ($block->getProductCollection() && $block->getProductCollection()->getSize())) {
19   $_productCollection = $block->getProductCollection()->getItems(); 19   $_productCollection = $block->getProductCollection()->getItems();
20   $_helper = $this->helper('Magento\Catalog\Helper\Output'); 20   $_helper = $this->helper('Magento\Catalog\Helper\Output');
21   $_imagehelper = $this->helper('Magento\Catalog\Helper\Image'); 21   $_imagehelper = $this->helper('Magento\Catalog\Helper\Image');
22   $_portohelper = $this->helper('Smartwave\Porto\Helper\Data'); 22   $_portohelper = $this->helper('Smartwave\Porto\Helper\Data');
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 
    27   $_content_pos1 = $this->getData("product_content_pos1") ? $this->getData("product_content_pos1") : 'left';
    28   $_button_pos = $this->getData("product_button_pos") ? $this->getData("product_button_pos") : 'top';
    29   $_button_action = $this->getData("product_button_action") ? $this->getData("product_button_action") : 'top';
    30   $_icon_only1 = $this->getData("product_icon_only1") ? $this->getData("product_icon_only1") : '0';
    31   $_icon_only2 = $this->getData("product_icon_only2") ? $this->getData("product_icon_only2") : '0';
    32   $_block_pos = $this->getData("product_block_pos") ? $this->getData("product_block_pos") : 'default';
    33   $_quantity_pos = $this->getData("product_quantity_pos") ? $this->getData("product_quantity_pos") : 'below';
    34   $_content_pos2 = $this->getData("product_content_pos2") ? $this->getData("product_content_pos2") : 'default';
    35   $_content_pos3 = $this->getData("product_content_pos3") ? $this->getData("product_content_pos3") : 'left';
    36   $_link_pos = $this->getData("product_link_pos") ? $this->getData("product_link_pos") : 'default';
    37   $_box_style = $this->getData("product_box_style") ? $this->getData("product_box_style") : 'box_shadow';
    38 
26   // Daily deal Helper 39   // Daily deal Helper
27   $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data'); 40   $_dailydealhelper =$this->helper('Smartwave\Dailydeals\Helper\Data');
28  41 
29   $_lazyload = $this->getData("lazyload"); 42   $_lazyload = $this->getData("lazyload");
30   if($_lazyload == null) { 43   if($_lazyload == null) {
31       $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload'); 44       $_lazyload = $this->helper('Smartwave\Porto\Helper\Data')->getConfig('porto_settings/optimization/lazyload');
32   } 45   }
33  46 
34   $aspect_ratio = $this->getData("aspect_ratio"); 47   $aspect_ratio = $this->getData("aspect_ratio");
35   if($aspect_ratio == null) { 48   if($aspect_ratio == null) {
36       $aspect_ratio = $_category_config['aspect_ratio']; 49       $aspect_ratio = $_category_config['aspect_ratio'];
37   } 50   }
38   $image_width = $this->getData("image_width"); 51   $image_width = $this->getData("image_width");
39   if(!$image_width) { 52   if(!$image_width) {
40       $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300; 53       $image_width = ($_category_config['ratio_width'])?$_category_config['ratio_width']:300;
41   } 54   }
42   $image_height = $this->getData("image_height"); 55   $image_height = $this->getData("image_height");
43   if($aspect_ratio) 56   if($aspect_ratio)
44       $image_height = $image_width; 57       $image_height = $image_width;
45   if(!$image_height) { 58   if(!$image_height) {
46       $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300; 59       $image_height = ($_category_config['ratio_height'])?$_category_config['ratio_height']:300;
47   } 60   }
48   $column_count = $this->getData("column_count"); 61   $column_count = $this->getData("column_count");
49   if($column_count == null) { 62   if($column_count == null) {
50       $column_count = 4; 63       $column_count = 4;
51   } 64   }
52   $product_type = $this->getData("product_type"); 65   $product_type = $this->getData("product_type");
53   if($product_type == null) { 66   if($product_type == null) {
54       $product_type = $_category_grid_config['product_type']; 67       $product_type = $_category_grid_config['product_type'];
55   } 68   }
56   if($product_type == null) { 69   if($product_type == null) {
57       $product_type = 1; 70       $product_type = 1;
58   } 71   }
59 } 72 }
60 ?> 73 ?>
61 <?php if (!$exist): ?> 74 <?php if (!$exist): ?>
62     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div> 75     <div class="message info empty"><div><?php echo __('We can\'t find products matching the selection.') ?></div></div>
63 <?php else: ?> 76 <?php else: ?>
64     <?php 77     <?php
65     $viewMode = 'grid'; 78     $viewMode = 'grid';
66     $image = 'category_page_grid'; 79     $image = 'category_page_grid';
67     $hover_image = 'category_page_grid-hover'; 80     $hover_image = 'category_page_grid-hover';
68     $showDescription = false; 81     $showDescription = false;
69     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; 82     $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
70     ?> 83     ?>
71     <div class="products wrapper <?php echo $viewMode; ?> columns<?php echo $column_count; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>"> 84     <div class="products wrapper <?php echo $viewMode; ?> columns<?php echo $column_count; ?> products-<?php echo $viewMode; ?> <?php if($product_type == 2): ?>no-padding divider-line<?php endif; ?> <?php if($product_type == 5 || $product_type == 6 || $product_type == 7 || $product_type == 8): ?>no-padding<?php endif; ?> <?php if($product_type == 6): ?>divider-line<?php endif; ?>">
72         <?php $iterator = 1; ?> 85         <?php $iterator = 1; ?>
73         <ol class="filterproducts products list items product-items"> 86         <ol class="filterproducts products list items product-items">
74             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?> 87             <?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
75             <?php foreach ($_productCollection as $_product): ?> 88             <?php foreach ($_productCollection as $_product): ?>
76                 <?php echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?> 89                 <?php echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?>
77                 <div class="product-item-info type<?php echo $product_type; ?>
" data-container="product-grid">
 90                 <?php
78                     <?php // Product Image ?> 91                   $newType = array("13", "14", "15", "16", "17", "18", "19", "20");
79                     <div class="product photo product-item-photo"> 92                   $_type_class = '';
    93                   $_content_pos1 = ' text-'.$_content_pos1;
    94                   if(in_array($product_type, $newType)) {
    95                     $_type_class = ' product-type-advanced';
    96                     if($product_type == '15'){
    97                       $_type_class = ' product-type-advanced effect-ovdefault';
    98                       if($_button_action == 'top'){
    99                         $_content_pos1 = ' text-center';
    100                       }
    101                       if($_button_action == 'hide'){
    102                         $_content_pos1 = ' text-center hide-actions';
    103                       }
    104                     }
    105                     if($product_type == '16'){
    106                       $_type_class = ' product-type-advanced effect-hddf'.' box-'.$_block_pos;
    107                       $_content_pos1 = ' text-'.$_content_pos3;
    108                     }
    109                     if($product_type == '18'){
    110                       $_type_class = ' product-type-advanced effect-detailimg';
    111                       $_content_pos1 = ' text-left';
    112                       if($_content_pos2 == 'top'){
    113                         $_type_class = ' product-type-advanced effect-detailimg actions-bottom';
    114                       }
    115                       if($_content_pos2 == 'center'){
    116                         $_content_pos1 = ' text-center';
    117                         $_type_class = ' product-type-advanced effect-detailimg actions-center';
    118                       }
    119                       if($_content_pos2 == 'bottom'){
    120                         $_type_class = ' product-type-advanced effect-detailimg actions-top';
    121                       }
    122                     }
    123                     if($product_type == '19'){
    124                       $_type_class = ' product-type-advanced effect-cartlink';
    125                       if($_link_pos == 'image') {
    126                         $_type_class = ' product-type-advanced effect-cartlink cartlink-image';
    127                       }
    128                       $_content_pos1 = ' text-left';
    129                     }
    130                     if($product_type == '20'){
    131                       $_content_pos1 = ' text-center';
    132                       if($_box_style == 'box_shadow') {
    133                         $_type_class .= ' product-type-advanced effect-bheshadow';
    134                       }
    135                       if($_box_style == 'box_full') {
    136                         $_type_class .= ' product-type-advanced effect-bhesfd';
    137                         $_content_pos1 = ' text-left';
    138                       }
    139                       if($_box_style == 'box_border') {
    140                         $_type_class .= ' product-type-advanced effect-bheborder';
    141                       }
    142                       if($_box_style == 'box_border_padding') {
    143                         $_type_class .= ' product-type-advanced effect-bhebrspace';
    144                       }
    145                     }
    146                   }
    147                 ?>
    148                 <div class="product-item-info type<?php echo $product_type; ?><?= $_content_pos1;?> porto-tb-item type-product has-post-thumbnail product-type-simple" data-container="product-grid">
    149                   <div class="porto-section<?=$_type_class?> p-0">
    150                     <?php if($product_type == '20' && $_box_style == 'box_full'):?><div class="content-shadow"></div><?php endif;?>
    151                     <div class="product photo product-item-photo<?php if(in_array($product_type, $newType)):?> porto-tb-featured-image tb-image-type-hover<?php endif;?> product-image">
    152                       <div class="porto-tb-featured-image tb-image-type-hover product-image">
80                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1"> 153                         <a href="<?php echo $_product->getProductUrl() ?>" tabindex="-1">
81                         <?php 154                         <?php
82                             if($aspect_ratio) 155                             if($aspect_ratio)
83                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 156                                 $productImage = $_imagehelper->init($_product, $image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
84                             else 157                             else
85                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height); 158                                 $productImage = $_imagehelper->init($_product, $image)->resize($image_width, $image_height);
86                             $productImageUrl = $productImage->getUrl(); 159                             $productImageUrl = $productImage->getUrl();
87                         ?> 160                         ?>
88                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/> 161                             <img class="product-image-photo default_image <?php if(!$_lazyload): ?>porto-lazyload<?php endif;?>" <?php if(!$_lazyload): ?>data-<?php endif; ?>src="<?php echo $productImageUrl; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="<?php //echo $productImage->getLabel();?>"/>
89                         <?php if($_category_config['alternative_image']): ?> 162                         <?php if($_category_config['alternative_image']): ?>
90                         <?php 163                         <?php
91                             if($aspect_ratio) 164                             if($aspect_ratio)
92                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width); 165                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize($image_width);
93                             else 166                             else
94                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height); 167                                 $productHoverImage = $_imagehelper->init($_product, $hover_image)->resize($image_width, $image_height);
95                             $productHoverImageUrl = $productHoverImage->getUrl(); 168                             $productHoverImageUrl = $productHoverImage->getUrl();
96                         ?> 169                         ?>
97                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?> 170                             <?php if($productImageUrl != str_replace("/thumbnail/","/small_image/",$productHoverImageUrl)): ?>
98                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/> 171                             <img class="product-image-photo hover_image" src="<?php echo $productHoverImageUrl; ?>" alt="<?php //echo $productHoverImage->getLabel();?>"/>
99                             <?php endif; ?> 172                             <?php endif; ?>
100                         <?php endif; ?> 173                         <?php endif; ?>
101                         </a> 174                         </a>
102                         <?php 175                         <?php
103                             $product_label = ""; 176                             $product_label = "";
104                             if($_product_label_config['sale_label']) { 177                             if($_product_label_config['sale_label']) {
105                                 if ($percentage = $_portohelper->getPercentage($_product)) { 178                                 if ($percentage = $_portohelper->getPercentage($_product)) {
106                                     if($_product_label_config['sale_label_percent']) { 179                                     if($_product_label_config['sale_label_percent']) {
107                                         $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>'; 180                                         $product_label .= '<div class="product-label sale-label">'.$percentage.'%'.'</div>';
108                                     } else { 181                                     } else {
109                                         $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>'; 182                                         $product_label .= '<div class="product-label sale-label">'.$_product_label_config['sale_label_text'].'</div>';
110                                     } 183                                     }
111                                 } 184                                 }
112                             } 185                             }
113                             if($_product_label_config['new_label']) { 186                             if($_product_label_config['new_label']) {
114                                 $now = date("Y-m-d"); 187                                 $now = date("Y-m-d");
115                                 $newsFrom= substr($_product->getData('news_from_date')?$_product->getData('news_from_date'):'',0,10); 188                                 $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); 189                                 $newsTo=  substr($_product->getData('news_to_date')?$_product->getData('news_to_date'):'',0,10);
117  190 
118                                 if ($newsTo != '' || $newsFrom != ''){ 191                                 if ($newsTo != '' || $newsFrom != ''){
119                                     if (($newsTo != '' && $newsFrom != '' && $now>=$newsFrom && $now<=$newsTo) || ($newsTo == '' && $now >=$newsFrom) || ($newsFrom == '' && $now<=$newsTo)) { 192                                     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>'; 193                                         $product_label .= '<div class="product-label new-label">'.$_product_label_config['new_label_text'].'</div>';
121                                     } 194                                     }
122                                 } 195                                 }
123                             } 196                             }
124                             if($product_label) 197                             if($product_label)
125                                 echo '<div class="product-labels">'.$product_label.'</div>'; 198                                 echo '<div class="product-labels">'.$product_label.'</div>';
126                         ?> 199                         ?>
127                         <?php if($product_type == 3 || $product_type == 5 || 
$product_type == 6 || $product_type == 7 || $product_type == 8 || $product_type == 9 || $product_type == 11): ?>
 200                         <?php
128                         <div class="product-item-inner"> 201                         $_show_actions_top = false;
129                             <div class="product actions product-item-actions"> 202                         $_product_inner_class = '';
    203                         if(in_array($product_type, ['3','5','6','7','8','9','11','13','14','15','16','17','18','19','20'])) {
    204                           $_show_actions_top = true;
    205                           if($product_type == 14 && $_button_pos == 'outside'){
    206                             $_show_actions_top = false;
    207                           }
    208                           if($product_type >= 13){
    209                             $_product_inner_class = ' tb-hover-content with-link';
    210                           }
    211 
    212                           
if($product_type == 13 || ($product_type == 15 && $_button_action == 'top') || $product_type == 16 || $product_type == 17 || $product_type == 19)
 {
    213                             $_product_inner_class .= ' css-bottom-iconcart icon-absolute';
    214                           }
    215                           if($product_type == 14 && $_icon_only1){
    216                             $_product_inner_class .= ' show-cart-icon';
    217                           }
    218                           if($product_type == 14 && $_button_pos != 'outside'){
    219                             $_product_inner_class .= ' button-pos-'.$_button_pos;
    220                           }
    221                           if($product_type == 15 && $_icon_only2 && $_button_action != 'top'){
    222                             $_product_inner_class .= ' show-cart-icon';
    223                           }
    224                           if($product_type == 15 && $_button_action != 'top') {
    225                             $_product_inner_class .= ' button-pos-center';
    226                           }
    227                           if($product_type == 18) {
    228                             $_product_inner_class .= ' icon-absolute show-cart-icon';
    229                           }
    230                           if($product_type == 20 && $_box_style != 'box_full') {
    231                             $_product_inner_class .= ' css-bottom-iconcart icon-absolute';
    232                           }
    233                           if($product_type == 20 && $_box_style == 'box_full'){
    234                             $_show_actions_top = false;
    235                           }
    236                         }
    237                         if($_show_actions_top): ?>
    238                         <div class="product-item-inner<?= $_product_inner_class;?>">
    239                           <?php if(in_array($product_type, $newType)):?>
    240                           <a aria-label="post content" href="<?php echo $_product->getProductUrl() ?>" class="porto-tb-link"></a>
    241                           <?php endif;?>
    242                           <?php if($product_type == 15 || $product_type == 16 || $product_type == 18):?>
    243                             <?php if(($product_type == 15 && $_button_action == 'center') || ($product_type == 18 && $_content_pos2 == 'default') || ($product_type == 18 && $_content_pos2 == 'center')):?>
    244                             <div class="porto-section content-top">
    245                               <?php $_productNameStripped =  $block->stripTags($_product->getName(), null, true); ?>
    246                               <strong class="product name product-item-name">
    247                                   <a class="product-item-link"
    248                                      href="<?php echo $_product->getProductUrl() ?>">
    249                                       <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
    250                                   </a>
    251                               </strong>
    252                               <?php if($_category_config['rating_star']): ?>
    253                               <?php
    254                                   $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
    255                               ?>
    256                               <?php if($review_html): ?>
    257                                   <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
    258                               <?php else: ?>
    259                               <div class="product-reviews-summary short">
    260                                   <div class="rating-summary">
    261                                       <span class="label"><span>Rating:</span></span>
    262                                       <div class="rating-result" title="0%">
    263                                           <span style="width:0"><span>0%</span></span>
    264                                       </div>
    265                                   </div>
    266                               </div>
    267                               <?php endif; ?>
    268                               <?php endif; ?>
    269                             </div>
    270                             <?php endif; ?>
    271                             <div class="product details product-item-details porto-section<?php if($_button_action == 'top' || $_button_action == 'hide' || $product_type == 16):?> product-content<?php endif;?><?php if($product_type == 15 && $_button_action == 'center'):?> content-bottom<?php endif;?><?php if($product_type == 16 && $_block_pos == 'full'):?> d-flex justify-content-center flex-column<?php endif;?>">
    272                               <?php if($_button_action == 'top' || $_button_action == 'hide' || $product_type == 16  || ($product_type == 18 && $_content_pos2 == 'top')  || ($product_type == 18 && $_content_pos2 == 'bottom')):?>
    273                               <?php $_productNameStripped = $block->stripTags($_product->getName(), null, true); ?>
    274                               <strong class="product name product-item-name">
    275                                   <a class="product-item-link"
    276                                      href="<?php echo $_product->getProductUrl() ?>">
    277                                       <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
    278                                   </a>
    279                               </strong>
    280                               <?php if($_category_config['rating_star']): ?>
    281                               <?php
    282                                   $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
    283                               ?>
    284                               <?php if($review_html): ?>
    285                                   <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
    286                               <?php else: ?>
    287                               <div class="product-reviews-summary short">
    288                                   <div class="rating-summary">
    289                                       <span class="label"><span>Rating:</span></span>
    290                                       <div class="rating-result" title="0%">
    291                                           <span style="width:0"><span>0%</span></span>
    292                                       </div>
    293                                   </div>
    294                               </div>
    295                               <?php endif; ?>
    296                               <?php endif; ?>
    297                               <?php endif;?>
    298 
    299                               <?php if($_category_config['product_price']): ?>
    300                               <?php echo $block->getProductPrice($_product) ?>
    301                               <?php endif; ?>
    302                               <?php echo $block->getProductDetailsHtml($_product); ?>
    303                               <?php if($product_type == 16):?>
130                                 <div class="actions-primary"> 304                                 <div class="actions-primary">
131                                     <?php if ($_product->isSaleable()): ?> 305                                     <?php if ($_product->isSaleable()): ?>
132                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 306                                       <?php $postParams = $block->getAddToCartPostParams($_product); ?>
133                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"> 307                                       <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post">
134                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 308                                           <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]; ?>"> 309                                           <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
136                                             <?php echo $block->getBlockHtml('formkey')?> 310                                           <?php echo $block->getBlockHtml('formkey')?>
137                                             <button type="submit" 311                                           <button type="submit"
138                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 312                                                   title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
139                                                     class="action tocart primary"> 313                                                   class="action tocart primary">
140                                                 <span><?php echo __('Add to Cart') ?></span> 314                                               <span><?php echo __('Add to Cart') ?></span>
141                                             </button> 315                                           </button>
142                                         </form> 316                                       </form>
143                                     <?php else: ?> 317                                   <?php else: ?>
144                                         <?php if ($_product->getIsSalable()): ?> 318                                       <?php if ($_product->getIsSalable()): ?>
145                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 319                                           <div class="stock available"><span><?php echo __('In stock') ?></span></div>
146                                         <?php else: ?> 320                                       <?php else: ?>
147                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 321                                           <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
148                                         <?php endif; ?> 322                                       <?php endif; ?>
149                                     <?php endif; ?> 323                                   <?php endif; ?>
150                                 </div> 324                                 </div>
    325                               <?php endif;?>
    326                             </div>
    327                           <?php endif; ?>
    328                           <div class="product actions product-item-actions<?php if($product_type == 14 || ($product_type == 15 && $_button_action != 'top') || $product_type == 16 || $product_type == 17):?> d-flex align-items-center justify-content-center<?php endif;?><?php if($product_type == 17 && $_quantity_pos == 'image_center'):?> actions-center<?php endif;?>">
    329                             <?php
    330                               $c_show_cart = false;
    331                               if($product_type != 16){
    332                                 $c_show_cart = true;
    333                               }
    334                               if($product_type == 17 && ($_quantity_pos =='below' || $_quantity_pos =='above')) {
    335                                 $c_show_cart = false;
    336                               }
    337                               if($product_type == 19 && $_link_pos != 'image') {
    338                                 $c_show_cart = false;
    339                               }
    340                             ?>
    341                             <?php if($c_show_cart):?>
    342                             <div class="actions-primary">
    343                                 <?php if ($_product->isSaleable()): ?>
    344                                     <?php $postParams = $block->getAddToCartPostParams($_product); ?>
    345                                     <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"  class="d-flex flex-column flex-sm-row">
    346                                         <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
    347                                         <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
    348                                         <?php echo $block->getBlockHtml('formkey')?>
    349                                         <?php if($product_type == 17 && ($_quantity_pos == 'image_bottom' || $_quantity_pos == 'image_center')):?>
    350                                             <div class="qty-box">
    351                                                 <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>
    352                                                 <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
    353                                                 <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>
    354                                             </div>
    355                                         <?php endif;?>
    356                                         <button type="submit"
    357                                                 title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
    358                                                 class="action tocart primary">
    359                                             <span><?php echo __('Add to Cart') ?></span>
    360                                         </button>
    361                                     </form>
    362                                 <?php else: ?>
    363                                     <?php if ($_product->getIsSalable()): ?>
    364                                         <div class="stock available"><span><?php echo __('In stock') ?></span></div>
    365                                     <?php else: ?>
    366                                         <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
    367                                     <?php endif; ?>
    368                                 <?php endif; ?>
    369                             </div>
    370                             <?php endif; ?>
151                                 <?php if ($block->getMode() == 'grid'): ?> 371                             <?php if ($block->getMode() == 'grid'): ?>
152                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 372                             <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
153                                     <a href="#" 373                                 <a href="#"
154                                        class="action towishlist actions-secondary" 374                                    class="action towishlist actions-secondary"
155                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 375                                    title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
156                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 376                                    aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
157                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 377                                    data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
158                                        data-action="add-to-wishlist" 378                                    data-action="add-to-wishlist"
159                                        role="button"> 379                                    role="button">
160                                         <span><?php echo __('Add to Wish List') ?></span> 380                                     <span><?php echo __('Add to Wish List') ?></span>
161                                     </a> 381                                 </a>
162                                 <?php endif; ?> 382                             <?php endif; ?>
163                                 <?php endif; ?> 383                             <?php endif; ?>
164                                 <?php if($_category_config['addtocompare']): ?> 384                             <?php if($_category_config['addtocompare']): ?>
165                                 <?php 385                             <?php
166                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 386                             $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
167                                 ?> 387                             ?>
168                                 <a href="#" 388                             <a href="#"
169                                    class="action tocompare actions-secondary" 389                                class="action tocompare actions-secondary"
170                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 390                                title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
171                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 391                                aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
172                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 392                                data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
173                                    role="button"> 393                                role="button">
174                                     <span><?php echo __('Add to Compare') ?></span> 394                                 <span><?php echo __('Add to Compare') ?></span>
175                                 </a> 395                             </a>
176                                 <?php endif; ?> 396                             <?php endif; ?>
177                             </div> 397                           </div>
178                         </div> 398                         </div>
179                         <?php endif; ?> 399                         <?php endif; ?>
    400                         <?php if($product_type != 13 && $product_type != 14 && $product_type != 17 && $product_type != 18 && $product_type != 20): ?>
180                         <!-- Dailydeal Product data --> 401                         <!-- Dailydeal Product data -->
181                         <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?> 402                         <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?>
182                         <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?> 403                         <?php $unique_id = $this->getData("name")."_".rtrim(base64_encode(md5(microtime())),"="); ?>
183                         <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" > 404                         <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" >
184                         <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>"> 405                         <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>">
185                         <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>"> 406                         <div class="sw-dailydeal-wrapper" style="display:none;" data-unique-id="<?php echo $unique_id; ?>">
186                             <div class="sw-dailydeal"> 407                             <div class="sw-dailydeal">
187                                 <p id="expired_<?php echo $unique_id; ?>"></p> 408                                 <p id="expired_<?php echo $unique_id; ?>"></p>
188                                 <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;"> 409                                 <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;">
189                                     <span class="dailydeal-label"> 410                                     <span class="dailydeal-label">
190                                         <?php echo __('Ends In:'); ?> 411                                         <?php echo __('Ends In:'); ?>
191                                     </span> 412                                     </span>
192                                     <span class="number-wrapper"> 413                                     <span class="number-wrapper">
193                                         <div class="line"></div> 414                                         <div class="line"></div>
194                                         <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span> 415                                         <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span>
195                                         <div class="caption"><?php echo __('Day(s), '); ?></div> 416                                         <div class="caption"><?php echo __('Day(s), '); ?></div>
196                                     </span> 417                                     </span>
197  418 
198                                     <span class="number-wrapper"> 419                                     <span class="number-wrapper">
199                                         <div class="line"></div> 420                                         <div class="line"></div>
200                                         <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span> 421                                         <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span>
201                                         <div class="caption">:</div> 422                                         <div class="caption">:</div>
202                                     </span> 423                                     </span>
203  424 
204                                     <span class="number-wrapper"> 425                                     <span class="number-wrapper">
205                                         <div class="line"></div> 426                                         <div class="line"></div>
206                                         <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span> 427                                         <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span>
207                                         <div class="caption">:</div> 428                                         <div class="caption">:</div>
208                                     </span> 429                                     </span>
209  430 
210                                     <span class="number-wrapper"> 431                                     <span class="number-wrapper">
211                                         <div class="line"></div> 432                                         <div class="line"></div>
212                                         <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span> 433                                         <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span>
213                                         <div class="caption"></div> 434                                         <div class="caption"></div>
214                                     </span> 435                                     </span>
215                                 </div> 436                                 </div>
216                             </div> 437                             </div>
217                         </div> 438                         </div>
218                         <?php endif; ?> 439                         <?php endif; ?>
219                         <!-- Dailydeal Product End --> 440                         <!-- Dailydeal Product End -->
    441                         <?php endif;?>
    442                       </div>
220                     </div> 443                     </div>
221                     <div class="product details product-item-details"> 444                     <?php if($product_type != '15' && $product_type != 16  && $product_type != '18'): ?>
    445                     <div class="product details product-item-details porto-section product-content<?php if($product_type == '17' && $_quantity_pos =='above'):?> qty-above d-flex flex-column align-items-center<?php endif;?><?php if($product_type == '19' && ($_link_pos == 'top' || $_link_pos == 'hidden')){?> show-cartlink-top<?php }?>">
    446                       <?php if($product_type == '13' || $product_type == '14' || $product_type == '17' || $product_type == '20'): ?>
    447                         <!-- Dailydeal Product data -->
    448                         <?php if($_dailydealhelper->isDealProduct($_product->getId())) : ?>
    449                         <?php $unique_id = rtrim(base64_encode(md5(microtime())),"="); ?>
    450                         <input type="hidden" id="todate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealToDate($_product->getSku()); ?>" >
    451                         <input type="hidden" id="fromdate_<?php echo $unique_id; ?>" value="<?php echo $_dailydealhelper->getDailydealFromDate($_product->getSku()); ?>">
    452                         <div class="sw-dailydeal-wrapper product-type-countdown2" style="display:none;" data-unique-id="<?php echo $unique_id; ?>">
    453                             <div class="sw-dailydeal">
    454                                 <p id="expired_<?php echo $unique_id; ?>"></p>
    455                                 <div class="countdowncontainer countdowncontainer_<?php echo $unique_id; ?>" style="display:none;">
    456                                     <span class="number-wrapper">
    457                                       <div class="line"></div>
    458                                       <span class="number day"><p id="countdown_days_<?php echo $unique_id; ?>">00</p></span>
    459                                       <div class="caption"><?php echo __('Days'); ?></div>
    460                                     </span>
    461                                     <span class="number-wrapper">
    462                                       <div class="line"></div>
    463                                       <span class="number hour"><p id="countdown_hours_<?php echo $unique_id; ?>">00</p></span>
    464                                       <div class="caption"><?php echo __('Hours'); ?></div>
    465                                     </span>
    466                                     <span class="number-wrapper">
    467                                       <div class="line"></div>
    468                                       <span class="number min"><p id="countdown_minutes_<?php echo $unique_id; ?>">00</p></span>
    469                                       <div class="caption"><?php echo __('Min'); ?></div>
    470                                     </span>
    471                                     <span class="number-wrapper">
    472                                       <div class="line"></div>
    473                                       <span class="number sec"><p id="countdown_seconds_<?php echo $unique_id; ?>">00</p></span>
    474                                       <div class="caption"><?php echo __('Sec'); ?></div>
    475                                     </span>
    476                                 </div>
    477                             </div>
    478                         </div>
    479                         <?php endif; ?>
    480                         <!-- Dailydeal Product End -->
    481                       <?php endif;?>
222                         <?php 482                         <?php
223                             $_productNameStripped = $block->stripTags($_product->getName(), null, true); 483                             $_productNameStripped = $block->stripTags($_product->getName(), null, true);
224                         ?> 484                         ?>
    485                         <?php if($product_type == '13' || $product_type == '14' || $product_type == '19'  || $product_type == '20'): ?>
    486                           <?php echo $block->getProductDetailsHtml($_product); ?>
    487                         <?php endif;?>
225                         <strong class="product name product-item-name"> 488                         <strong class="product name product-item-name">
226                             <a class="product-item-link" 489                             <a class="product-item-link"
227                                href="<?php echo $_product->getProductUrl() ?>"> 490                                href="<?php echo $_product->getProductUrl() ?>">
228                                 <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?> 491                                 <?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?>
229                             </a> 492                             </a>
230                         </strong> 493                         </strong>
231                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?> 494                         <?php //$_category_config['rating_star'] = "";  //disabled at the moment ?>
232                         <?php if($_category_config['rating_star']): ?> 495                         <?php if($_category_config['rating_star']): ?>
233                         <?php 496                         <?php
234                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType); 497                             $review_html = $block->getReviewsSummaryHtml($_product, $templateType);
235                         ?> 498                         ?>
236                         <?php if($review_html): ?> 499                         <?php if($review_html): ?>
237                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?> 500                             <?php echo $block->getReviewsSummaryHtml($_product, $templateType); ?>
238                         <?php else: ?> 501                         <?php else: ?>
239                         <div class="product-reviews-summary short"> 502                         <div class="product-reviews-summary short">
240                             <div class="rating-summary"> 503                             <div class="rating-summary">
241                                 <span class="label"><span>Rating:</span></span> 504                                 <span class="label"><span>Rating:</span></span>
242                                 <div class="rating-result" title="0%"> 505                                 <div class="rating-result" title="0%">
243                                     <span style="width:0"><span>0%</span></span> 506                                     <span style="width:0"><span>0%</span></span>
244                                 </div> 507                                 </div>
245                             </div> 508                             </div>
246                         </div> 509                         </div>
247                         <?php endif; ?> 510                         <?php endif; ?>
248                         <?php endif; ?> 511                         <?php endif; ?>
249  512 
250                         <?php if ($showDescription):?> 513                         <?php if ($showDescription):?>
251                             <div class="product description product-item-description"> 514                             <div class="product description product-item-description">
252                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?> 515                                 <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
253                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" 516                                 <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>"
254                                    class="action more"><?php echo __('Learn More') ?></a> 517                                    class="action more"><?php echo __('Learn More') ?></a>
255                             </div> 518                             </div>
256                         <?php endif; ?> 519                         <?php endif; ?>
257                         <?php if($_category_config['product_price']): ?> 520                         <?php if($_category_config['product_price']): ?>
258                         <?php echo $block->getProductPrice($_product) ?> 521                         <?php echo $block->getProductPrice($_product) ?>
259                         <?php endif; ?> 522                         <?php endif; ?>
    523                         <?php if($product_type != '13' && $product_type != '14' && $product_type != '19' && $product_type != '20'): ?>
260                         <?php echo $block->getProductDetailsHtml($_product); ?> 524                         <?php echo $block->getProductDetailsHtml($_product); ?>
    525                         <?php endif; ?>
261  526 
262                         <?php if($product_type != 3 && $product_type != 5 && $product_type != 6 && $product_type != 7 && $product_type != 8 && $product_type != 9 && $product_type != 11 && $product_type != 12): ?> 527                         <?php
263                         <div class="product-item-inner
">
 528                         $_product_show_actions = true;
264                             <div class="product actions product-item-actions"> 529                         $_product_details_inner_class = '';
    530                         if(in_array($product_type, ['3','5','6','7','8','9','11','13','14','17','19','20'])) {
    531                           $_product_show_actions = false;
    532                           if($product_type == '14' && $_button_pos =='outside'){
    533                             $_product_show_actions = true;
    534                             $_product_details_inner_class .= ' button-pos'.$_button_pos;
    535                           }
    536                           if($product_type == '14' && $_icon_only1 ) {
    537                             $_product_details_inner_class .= ' show-cart-icon';
    538                           }
    539                           if($product_type == '17' && ($_quantity_pos =='below' || $_quantity_pos =='above')){
    540                             $_product_show_actions = true;
    541                           }
    542                           if($product_type == '19' && ($_link_pos == 'default' || $_link_pos == 'top')){
    543                             $_product_show_actions = true;
    544                           }
    545                           if($product_type == '20' && $_box_style == 'box_full'){
    546                             $_product_show_actions = true;
    547                           }
    548                         }
    549                         if($_product_show_actions): ?>
    550                         <div class="product-item-inner<?=$_product_details_inner_class;?>">
    551                           <?php if($product_type == '20' && $_box_style == 'box_full'){?>
    552                             <div class="product description product-item-description">
    553                               <?php
    554                               $length = 118;
    555                               $shortContent = $_product->getShortDescription();
    556                               echo $shortContent = strip_tags((strlen($shortContent) > $length) ? substr($shortContent,0,$length).'...' : $shortContent);
    557                               ?>
    558                             </div>
    559                           <?php }?>
    560                           <div class="product actions product-item-actions<?php if(($product_type == '14' && $_button_pos == 'outside') || ($product_type == '20' && $_box_style == 'box_full')):?> d-flex align-items-center justify-content-center<?php endif;?>">
265                                 <?php if ($block->getMode() == 'grid'): ?> 561                               <?php if ($block->getMode() == 'grid'): ?>
266                                 <?php if($_category_config['addtowishlist'] && $product_type != 
4
): ?>
 562                               <?php if($_category_config['addtowishlist'] && $product_type != '4 && $product_type != '17' && $product_type != '19'): ?>
267                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 563                               <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
268                                     <a href="#" 564                                   <a href="#"
269                                        class="action towishlist actions-secondary" 565                                      class="action towishlist actions-secondary"
270                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 566                                      title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
271                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 567                                      aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
272                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 568                                      data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
273                                        data-action="add-to-wishlist" 569                                      data-action="add-to-wishlist"
274                                        role="button"> 570                                      role="button">
275                                         <span><?php echo __('Add to Wish List') ?></span> 571                                       <span><?php echo __('Add to Wish List') ?></span>
276                                     </a> 572                                   </a>
277                                 <?php endif; ?> 573                               <?php endif; ?>
278                                 <?php endif; ?> 574                               <?php endif; ?>
279                                 <?php endif; ?> 575                               <?php endif; ?>
280                                 <div class="actions-primary"> 576                               <div class="actions-primary">
281                                     <?php if ($_product->isSaleable()): ?> 577                                   <?php if ($_product->isSaleable()): ?>
282                                         <?php $postParams = $block->getAddToCartPostParams($_product); ?> 578                                       <?php $postParams = $block->getAddToCartPostParams($_product); ?>
283                                         <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"
>
 579                                       <form data-role="tocart-form" action="<?php echo $postParams['action']; ?>" method="post"  class="d-flex flex-column flex-sm-row">
284                                             <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>"> 580                                           <input type="hidden" name="product" value="<?php echo $postParams['data']['product']; ?>">
285                                             <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>"> 581                                           <input type="hidden" name="<?php echo Action::PARAM_NAME_URL_ENCODED; ?>" value="<?php echo $postParams['data'][Action::PARAM_NAME_URL_ENCODED]; ?>">
286                                             <?php if($product_type == 10
):?>
 582                                           <?php if($product_type == 10 || $product_type == 17):?>
287                                                 <div class="qty-box"> 583                                               <div class="qty-box">
288                                                     <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a> 584                                                   <a href="javascript:void(0)" class="qtyminus"><i class="porto-icon-minus"></i></a>
289                                                     <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/> 585                                                   <input type="text" name="qty" id="qty" maxlength="12" value="<?php echo ($this->getMinimalQty($_product)?$this->getMinimalQty($_product):1) ?>" title="<?php /* @escapeNotVerified */ echo __('Qty') ?>" class="input-text qty" data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"/>
290                                                     <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a> 586                                                   <a href="javascript:void(0)" class="qtyplus"><i class="porto-icon-plus"></i></a>
291                                                 </div> 587                                               </div>
292                                             <?php endif;?> 588                                           <?php endif;?>
293                                             <?php echo $block->getBlockHtml('formkey')?> 589                                           <?php echo $block->getBlockHtml('formkey')?>
294                                             <button type="submit" 590                                           <button type="submit"
295                                                     title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>" 591                                                   title="<?php echo $block->escapeHtml(__('Add to Cart')); ?>"
296                                                     class="action tocart primary"> 592                                                   class="action tocart primary">
297                                                 <span><?php echo __('Add to Cart') ?></span> 593                                               <span><?php echo __('Add to Cart') ?></span>
298                                             </button> 594                                           </button>
299                                         </form> 595                                       </form>
300                                     <?php else: ?> 596                                   <?php else: ?>
301                                         <?php if ($_product->getIsSalable()): ?> 597                                       <?php if ($_product->getIsSalable()): ?>
302                                             <div class="stock available"><span><?php echo __('In stock') ?></span></div> 598                                           <div class="stock available"><span><?php echo __('In stock') ?></span></div>
303                                         <?php else: ?> 599                                       <?php else: ?>
304                                             <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div> 600                                           <div class="stock unavailable"><span><?php echo __('Out of stock') ?></span></div>
305                                         <?php endif; ?> 601                                       <?php endif; ?>
306                                     <?php endif; ?> 602                                   <?php endif; ?>
307                                 </div> 603                               </div>
308                                 <?php if ($block->getMode() == 'grid'
): ?>
 604                               <?php if ($block->getMode() == 'grid' && $product_type != '17' && $product_type != '19'): ?>
309                                 <?php if($_category_config['addtowishlist'] && $product_type == 4): ?> 605                               <?php if($_category_config['addtowishlist'] && $product_type == 4): ?>
310                                 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?> 606                               <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()): ?>
311                                     <a href="#" 607                                   <a href="#"
312                                        class="action towishlist actions-secondary" 608                                      class="action towishlist actions-secondary"
313                                        title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 609                                      title="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
314                                        aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>" 610                                      aria-label="<?php echo $block->escapeHtml(__('Add to Wish List')); ?>"
315                                        data-post='<?php echo $block->getAddToWishlistParams($_product); ?>' 611                                      data-post='<?php echo $block->getAddToWishlistParams($_product); ?>'
316                                        data-action="add-to-wishlist" 612                                      data-action="add-to-wishlist"
317                                        role="button"> 613                                      role="button">
318                                         <span><?php echo __('Add to Wish List') ?></span> 614                                       <span><?php echo __('Add to Wish List') ?></span>
319                                     </a> 615                                   </a>
320                                 <?php endif; ?> 616                               <?php endif; ?>
321                                 <?php endif; ?> 617                               <?php endif; ?>
322                                 <?php endif; ?> 618                               <?php endif; ?>
323                                 <?php if($_category_config['addtocompare']
): ?>
 619                               <?php if($_category_config['addtocompare'] && $product_type != '17' && $product_type != '19'): ?>
324                                 <?php 620                               <?php
325                                 $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare'); 621                               $compareHelper = $this->helper('Magento\Catalog\Helper\Product\Compare');
326                                 ?> 622                               ?>
327                                 <a href="#" 623                               <a href="#"
328                                    class="action tocompare actions-secondary" 624                                  class="action tocompare actions-secondary"
329                                    title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 625                                  title="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
330                                    aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>" 626                                  aria-label="<?php echo $block->escapeHtml(__('Add to Compare')); ?>"
331                                    data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>' 627                                  data-post='<?php echo $compareHelper->getPostDataParams($_product); ?>'
332                                    role="button"> 628                                  role="button">
333                                     <span><?php echo __('Add to Compare') ?></span> 629                                   <span><?php echo __('Add to Compare') ?></span>
334                                 </a> 630                               </a>
335                                 <?php endif; ?> 631                               <?php endif; ?>
336                             </div> 632                           </div>
337                         </div> 633                         </div>
338                         <?php endif; ?> 634                         <?php endif; ?>
339                     </div> 635                     </div>
    636                     <?php endif;?>
    637                   </div>
340                 </div> 638                 </div>
341                 <?php echo($iterator == count($_productCollection)+1) ? '</li>' : '' ?> 639                 <?php echo($iterator == count($_productCollection)+1) ? '</li>' : '' ?>
342             <?php endforeach; ?> 640             <?php endforeach; ?>
343         </ol> 641         </ol>
344     </div> 642     </div>
345     <?= $block->getPagerHtml() ?> 643     <?= $block->getPagerHtml() ?>
346     <?php if (!$_dailydealhelper->isLoadedTimer()): ?> 644     <?php if (!$_dailydealhelper->isLoadedTimer()): ?>
347     <script type="text/javascript"> 645     <script type="text/javascript">
348     require([ 646     require([
349         'jquery' 647         'jquery'
350     ], function ($) { 648     ], function ($) {
351     // Timer for LEFT time for Dailydeal product 649     // Timer for LEFT time for Dailydeal product
352         var _second = 1000; 650         var _second = 1000;
353         var _minute = _second * 60; 651         var _minute = _second * 60;
354         var _hour = _minute * 60; 652         var _hour = _minute * 60;
355         var _day = _hour * 24; 653         var _day = _hour * 24;
356         var timer; 654         var timer;
357  655 
358         //Set date as magentodatetime 656         //Set date as magentodatetime
359         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>'); 657         var date = new Date('<?php echo $_dailydealhelper->getcurrentDate() ?>');
360         var l_date = new Date(); 658         var l_date = new Date();
361         var offset_date = l_date - date; 659         var offset_date = l_date - date;
362  660 
363         function showRemaining() 661         function showRemaining()
364         { 662         {
365             $(".sw-dailydeal-wrapper").each(function(){ 663             $(".sw-dailydeal-wrapper").each(function(){
366                 var unique_id = $(this).attr("data-unique-id"); 664                 var unique_id = $(this).attr("data-unique-id");
367                 // get Value of dailydeal product 665                 // get Value of dailydeal product
368                 var cid='countdown_'+unique_id; 666                 var cid='countdown_'+unique_id;
369                 var daysid='countdown_days_'+unique_id; 667                 var daysid='countdown_days_'+unique_id;
370                 var hoursid='countdown_hours_'+unique_id; 668                 var hoursid='countdown_hours_'+unique_id;
371                 var minutesid='countdown_minutes_'+unique_id; 669                 var minutesid='countdown_minutes_'+unique_id;
372                 var secondsid='countdown_seconds_'+unique_id; 670                 var secondsid='countdown_seconds_'+unique_id;
373  671 
374                 var startdateid='fromdate_'+unique_id; 672                 var startdateid='fromdate_'+unique_id;
375                 var id='todate_'+unique_id; 673                 var id='todate_'+unique_id;
376  674 
377                 var enddate = new Date($('#'+id).val()); 675                 var enddate = new Date($('#'+id).val());
378                 var dealstartdate=new Date($('#'+startdateid).val()); 676                 var dealstartdate=new Date($('#'+startdateid).val());
379  677 
380                 var currentdate=new Date(); 678                 var currentdate=new Date();
381  679 
382                 //Get Difference between Two dates 680                 //Get Difference between Two dates
383                 var distance = enddate - (currentdate - offset_date); 681                 var distance = enddate - (currentdate - offset_date);
384  682 
385                 $('.sw-dailydeal-wrapper').show(); 683                 $('.sw-dailydeal-wrapper').show();
386  684 
387                 if (distance < 0) { 685                 if (distance < 0) {
388                    // clearInterval(timer); 686                    // clearInterval(timer);
389                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>"); 687                     $('#expired_'+unique_id).html("<span style='font-size:25px; color:#000;'>EXPIRED!<span>");
390  688 
391                 } else if(dealstartdate > currentdate) { 689                 } else if(dealstartdate > currentdate) {
392                    $('.countdowncontainer_'+unique_id).hide(); 690                    $('.countdowncontainer_'+unique_id).hide();
393                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>"; 691                    var msg="<span style='font-size:15px; color:#000;'> Coming Soon..<br>Deal Start at:<br>"+$('#'+startdateid).val()+"<span>";
394                    $('#expired_'+unique_id).html(msg); 692                    $('#expired_'+unique_id).html(msg);
395                 } else { 693                 } else {
396                     var days = Math.floor(distance / _day); 694                     var days = Math.floor(distance / _day);
397                     var hours = Math.floor((distance % _day) / _hour); 695                     var hours = Math.floor((distance % _day) / _hour);
398                     var minutes = Math.floor((distance % _hour) / _minute); 696                     var minutes = Math.floor((distance % _hour) / _minute);
399                     var seconds = Math.floor((distance % _minute) / _second); 697                     var seconds = Math.floor((distance % _minute) / _second);
400  698 
401                     if(hours < 10) 699                     if(hours < 10)
402                         hours = "0" + hours; 700                         hours = "0" + hours;
403                     if(minutes < 10) 701                     if(minutes < 10)
404                         minutes = "0" + minutes; 702                         minutes = "0" + minutes;
405                     if(seconds < 10) 703                     if(seconds < 10)
406                         seconds = "0" + seconds; 704                         seconds = "0" + seconds;
407                     $('.countdowncontainer_'+unique_id).show(); 705                     $('.countdowncontainer_'+unique_id).show();
408                     $('#'+daysid).html(days); 706                     $('#'+daysid).html(days);
409                     $('#'+hoursid).html(hours); 707                     $('#'+hoursid).html(hours);
410                     $('#'+minutesid).html(minutes); 708                     $('#'+minutesid).html(minutes);
411                     $('#'+secondsid).html(seconds); 709                     $('#'+secondsid).html(seconds);
412                 } 710                 }
413             }); 711             });
414         } 712         }
415  713 
416         // Set Interval 714         // Set Interval
417         timer = setInterval(function() 715         timer = setInterval(function()
418         { 716         {
419             showRemaining(); 717             showRemaining();
420         }, 1000); 718         }, 1000);
421     }); 719     });
422     </script> 720     </script>
423     <?php $_dailydealhelper->setLoadedTimer(); ?> 721     <?php $_dailydealhelper->setLoadedTimer(); ?>
424     <?php endif; ?> 722     <?php endif; ?>
425     <script type="text/javascript"> 723     <script type="text/javascript">
426         require([ 724         require([
427             'jquery', 725             'jquery',
428             'Smartwave_Filterproducts/js/lazyload/jquery.lazyload' 726             'Smartwave_Filterproducts/js/lazyload/jquery.lazyload'
429         ], function ($) { 727         ], function ($) {
    728             <?php if($product_type == '20'){?>
    729               window.setTimeout(function(){
    730                 $( '.product-item-info .effect-bhesfd' ).each( function() {
    731                     var $item = $( this ),
    732                         $detail = $item.find( '.product-item-details .product-item-inner' ),
    733                         height = $item.height() + $detail.height() + 32;
    734                     $item.find( '>.content-shadow' ).height( height );
    735                     $( window ).on( 'resize', function() {
    736                         $detail = $item.find( '.product-item-details .product-item-inner' );
    737                         height = $item.height() + $detail.height() + 32;
    738                         $item.find('>.content-shadow').height( height );
    739                     } );
    740                 });
    741               },500);
    742             <?php }?>
430             $("img.porto-lazyload:not(.porto-lazyload-loaded)").lazyload({effect:"fadeIn", effect_speed: 400 }); 743             $("img.porto-lazyload:not(.porto-lazyload-loaded)").lazyload({effect:"fadeIn", effect_speed: 400 });
431             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n'); 744             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n)').addClass('nth-child-2n');
432             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1'); 745             $('.products.grid .product-items.filterproducts li.product-item:nth-child(2n+1)').addClass('nth-child-2np1');
433             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n'); 746             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n)').addClass('nth-child-3n');
434             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1'); 747             $('.products.grid .product-items.filterproducts li.product-item:nth-child(3n+1)').addClass('nth-child-3np1');
435             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n'); 748             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n)').addClass('nth-child-4n');
436             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1'); 749             $('.products.grid .product-items.filterproducts li.product-item:nth-child(4n+1)').addClass('nth-child-4np1');
437             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n'); 750             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n)').addClass('nth-child-5n');
438             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1'); 751             $('.products.grid .product-items.filterproducts li.product-item:nth-child(5n+1)').addClass('nth-child-5np1');
439             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n'); 752             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n)').addClass('nth-child-6n');
440             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1'); 753             $('.products.grid .product-items.filterproducts li.product-item:nth-child(6n+1)').addClass('nth-child-6np1');
441             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n'); 754             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n)').addClass('nth-child-7n');
442             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1'); 755             $('.products.grid .product-items.filterproducts li.product-item:nth-child(7n+1)').addClass('nth-child-7np1');
443             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n'); 756             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n)').addClass('nth-child-8n');
444             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1'); 757             $('.products.grid .product-items.filterproducts li.product-item:nth-child(8n+1)').addClass('nth-child-8np1');
445         }); 758         });
446     </script> 759     </script>
447     <?php if (!$block->isRedirectToCartEnabled()) : ?> 760     <?php if (!$block->isRedirectToCartEnabled()) : ?>
448         <script type="text/x-magento-init"> 761         <script type="text/x-magento-init">
449         { 762         {
450             "[data-role=tocart-form], .form.map.checkout": { 763             "[data-role=tocart-form], .form.map.checkout": {
451                 "catalogAddToCart": {} 764                 "catalogAddToCart": {}
452             } 765             }
453         } 766         }
454         </script> 767         </script>
455     <?php endif; ?> 768     <?php endif; ?>
456 <?php endif; ?> 769 <?php endif; ?>