File indexing completed on 2025-05-04 05:29:30
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 0023 foreach ($this->rated as $file): 0024 $file=(object)$file; 0025 ?> 0026 <div class="row smaller " > 0027 <div class="col-lg-5 col-md-5"> 0028 <figure> 0029 <img src="<?php echo $this->Image($file->image_small, array('width' => 80, 'height' => 80)); ?>" class="downloadhistory-image" /> 0030 </figure> 0031 <div> 0032 <a href="<?= $this->buildProductUrl($file->project_id) ?>"><?=$file->title?></a> 0033 <p><?=$file->cat_title?> 0034 <br/> 0035 by <a href="<?php echo $this->buildMemberUrl($file->project_username); ?>" class="tooltipuser" data-tooltip-content="#tooltip_content" data-user="<?=$file->project_member_id?>"> 0036 <?=$file->project_username?></a> 0037 </div> 0038 0039 </div> 0040 0041 0042 0043 <div class="col-lg-2 col-md-2"> 0044 <div class="rating text-center" > 0045 <?php 0046 $this->widgetRating = new stdClass(); 0047 $this->widgetRating->project_id =$file->project_id; 0048 $this->widgetRating->laplace_score = $file->laplace_score; 0049 $this->widgetRating->count_likes =$file->count_likes; 0050 $this->widgetRating->count_dislikes =$file->count_dislikes; 0051 echo $this->render('partials/widgetRating.phtml'); 0052 ?> 0053 </div> 0054 </div> 0055 0056 <div class="col-lg-3" > 0057 0058 <span class="score label" style="background-color:<?=$this->fetchScoreColor($file->score)?>; "> 0059 <?=$file->score?> 0060 </span> 0061 <span> <?=$this->printDate($file->rating_created_at)?></span> 0062 <div style="padding-left: 5px;"> 0063 <?=$file->comment_text?> 0064 </div> 0065 <?php /* 0066 <?php if($file->user_like==1) { 0067 ?> 0068 <i class="fa fa-plus voteup"></i> 0069 <?php 0070 }else{ 0071 ?> 0072 <i class="fa fa-minus votedown" ></i> 0073 <?php } ?> 0074 0075 */ 0076 ?> 0077 0078 0079 </div> 0080 0081 </div> 0082 0083 <?php endforeach; ?> 0084 0085