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

0001 <?php
0002 /**
0003  *  ocs-webserver
0004  *
0005  *  Copyright 2016 by pling GmbH.
0006  *
0007  *    This file is part of ocs-webserver.
0008  *
0009  *    This program is free software: you can redistribute it and/or modify
0010  *    it under the terms of the GNU Affero General Public License as
0011  *    published by the Free Software Foundation, either version 3 of the
0012  *    License, or (at your option) any later version.
0013  *
0014  *    This program is distributed in the hope that it will be useful,
0015  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *    GNU Affero General Public License for more details.
0018  *
0019  *    You should have received a copy of the GNU Affero General Public License
0020  *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021  **/
0022     foreach ($this->plings as $file): 
0023                 $file=(object)$file;
0024         ?>
0025       <div class="row smaller " >
0026         <div class="col-lg-5 col-md-5">
0027             <figure>
0028                 <img src="<?php echo $this->Image($file->image_small, array('width' => 80, 'height' => 80)); ?>" class="downloadhistory-image" />
0029             </figure>   
0030             <div>
0031                 <a href="<?= $this->buildProductUrl($file->project_id) ?>"><?=$file->title?></a>
0032                 <p><?=$file->cat_title?> 
0033                 <br/>
0034                 by <a  href="<?php echo $this->buildMemberUrl($file->project_username); ?>" class="tooltipuser" data-tooltip-content="#tooltip_content" data-user="<?=$file->project_member_id?>">
0035              <?=$file->project_username?></a>
0036 
0037             </div>
0038         </div>      
0039                     
0040         
0041 
0042         <div class="col-lg-2 col-md-2">             
0043             <div class="rating text-center" >               
0044                 <?php                
0045                         $this->widgetRating = new stdClass();
0046                         $this->widgetRating->project_id =$file->project_id;
0047                         $this->widgetRating->laplace_score = $file->laplace_score;
0048                         $this->widgetRating->count_likes =$file->count_likes; 
0049                         $this->widgetRating->count_dislikes =$file->count_dislikes;
0050                         echo $this->render('partials/widgetRating.phtml'); 
0051                 ?>          
0052             </div>            
0053         </div>
0054 
0055         <div class="col-lg-3" style="padding-top: 10px;">                                       
0056                     <img src="/images/system/pling-btn-active.png" style="width: 20px; height:20px; "/>          
0057                     <?=$this->printDate($file->created_at)?>
0058         </div>
0059 
0060       </div>
0061 
0062  <?php endforeach; ?>
0063 
0064