File indexing completed on 2025-05-04 05:29:21
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 <div class="productrow"><div class="row"> 0024 <div class="col-lg-3"> 0025 <span class="num"><?=$this->rownum ?>.</span> 0026 <div class="text-center"> 0027 <img class="productimg" src="<?=$this->Image($this->product['image_small'], array('width' => 90, 'height' => 90))?>" /> 0028 </div> 0029 </div> 0030 <div class="col-lg-6"> 0031 <a href="<?=$this->buildProductUrl($this->product['project_id'],'')?>"><?=$this->product['title']?> 0032 <span class="version"><?=Default_Model_HtmlPurify::purify($this->product['version'])?> 0033 </span> 0034 </a><br> 0035 <?=$this->fetchCategoriesForProductAsString($this->product['project_id'])?> 0036 <br> 0037 <?php 0038 0039 $count_comments = $this->product['count_comments']; 0040 echo ($count_comments>0 ? '<span class="cntComments">'.$count_comments.' comment':'').($count_comments>1?'s':'').($count_comments>0?'</span>':'') ; 0041 0042 ?> 0043 </div> 0044 <div class="col-lg-3"> 0045 <div class="rating"> 0046 <?php 0047 $this->widgetRating = new stdClass(); 0048 $this->widgetRating->project_id = $this->product['project_id']; 0049 $this->widgetRating->laplace_score = $this->product['laplace_score']; 0050 $this->widgetRating->count_likes = $this->product['count_likes']; 0051 $this->widgetRating->count_dislikes =$this->product['count_dislikes']; 0052 echo $this->render('partials/widgetRating.phtml'); 0053 ?> 0054 </div> 0055 <span class="time"><?=$this->printDate($this->product['changed_at']==null?$this->product['created_at']:$this->product['changed_at'])?> 0056 </span> 0057 </div> 0058 </div> 0059 </div >