File indexing completed on 2025-05-04 05:29:28

0001 
0002 
0003 <?php
0004     $helperBuildProductUrl = new Default_View_Helper_BuildCollectionUrl();
0005     $helperImage = new Default_View_Helper_Image();
0006     $helperPrintDate = new Default_View_Helper_PrintDate();
0007     if($this->userProducts == null || count($this->userProducts)==0) return;
0008    
0009     foreach ($this->userProducts as $product): 
0010            
0011         ?>
0012         <div class="product mini-card col-lg-2 col-md-2 col-sm-3 col-xs-2">
0013             <div class="u-wrap">
0014                 <a href="<?= $helperBuildProductUrl->buildProductUrl($product['project_id'], '', null, true); ?>">
0015                     <figure>
0016                         <img src="<?php echo $helperImage->Image($product['image_small'], array('width' => 280, 'height' => 171)); ?>"
0017                              class="explore-product-image" width="101" height="81" />
0018                     </figure>
0019                     <div class="u-content">
0020                         <h3><?php echo $product['title']; ?></h3>
0021                         <span class="productCategory"> <?php echo $product['catTitle']; ?> </span>
0022 
0023                         <span class="productCategory" style="width: 100%; float: left;">
0024                             <?= $helperPrintDate->printDate($product['project_changed_at']) ?>
0025                         </span>
0026                     </div>
0027                 </a>
0028                 
0029                 <?php
0030                 if($product['countplings'] >0)
0031                 {
0032                 ?>
0033                 <div class="countplings"> <span class="num"><?=$product['countplings']?></span> <img src="/images/system/pling-btn-active.png"/> </div>
0034                 <?php 
0035                 }
0036                 ?>
0037                 
0038                 <?php
0039                 $this->widgetRating = new stdClass();
0040                 $this->widgetRating->project_id = $product['project_id'];
0041                 $this->widgetRating->laplace_score = $product['laplace_score'];
0042                 $this->widgetRating->count_likes = $product['count_likes'];
0043                 $this->widgetRating->count_dislikes = $product['count_dislikes'];
0044                 echo $this->render('partials/widgetRating.phtml'); ?>
0045             </div>
0046         </div>
0047  <?php 
0048 endforeach; ?>
0049 
0050   <?php
0051         $total_pages = ceil($this->total_records / $this->pageLimit);                                                                                
0052         
0053         if($this->projectpage<$total_pages){
0054             echo '<button id="btnshowmoreproducts" data-page='.($this->projectpage+1).'>Show More</button>';
0055         }
0056         ?>
0057 
0058 
0059 <style type="text/css">
0060         .countplings 
0061         {
0062             position: absolute;
0063             bottom: 10px;
0064             left: 8px;
0065             font-size: 11px;
0066 
0067         }
0068         .countplings img
0069         {
0070             width: 20px;
0071             height: 20px;
0072         }
0073 
0074 </style>