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 $productUrl; 0024 if($this->product['project_category_id']=='567') 0025 { 0026 $helpCollectionUrl = new Default_View_Helper_BuildCollectionUrl(); 0027 $productUrl = $helpCollectionUrl->buildProductUrl($this->product['project_id'],''); 0028 }else 0029 { 0030 $productUrl = $this->buildProductUrl($this->product['project_id'],''); 0031 } 0032 0033 ?> 0034 <div class="productrow"><div class="row"> 0035 <div class="col-lg-2 col-md-3 col-sm-4 col-xs-4"> 0036 <div class="text-center"> 0037 <a href="<?=$productUrl?>" class="tooltipuser" data-tooltip-content="#tooltip_content" data-user="<?=$this->product['member_id']?>" > 0038 <img class="productimg" src="<?=$this->Image($this->product['image_small'], array('width' => 80, 'height' => 80))?>" /> 0039 </a> 0040 0041 </div> 0042 </div> 0043 <div class="col-lg-7 col-md-6 col-sm-4 col-xs-4"> 0044 <a href="<?=$productUrl?>" class="tooltipuser" data-tooltip-content="#tooltip_content" data-user="<?=$this->product['member_id']?>"><?=$this->product['title']?> 0045 <span class="version"><?=Default_Model_HtmlPurify::purify($this->product['version'])?> 0046 </span> 0047 </a> 0048 <span style="display: block; margin-bottom: 5px"><?=$this->product['cat_title']?></span> 0049 0050 0051 <div class="productInfo"> 0052 0053 <span class="cntComments"> 0054 <?php 0055 0056 $count_comments = $this->product['count_comments']; 0057 0058 echo ($count_comments>0 ? $count_comments.' comment':'').($count_comments>1?'s':''); 0059 ?> 0060 </span> 0061 0062 <?php 0063 0064 if (false === empty($this->product['package_names'])) { 0065 $list_packages = explode(',', $this->product['package_names']); 0066 $resultStringAll = '<span class="packagetypeos" >'; 0067 $tags = ""; 0068 foreach ($list_packages as $item) { 0069 $tags = $tags . ' ' . stripslashes($item); 0070 } 0071 $tags = $this->truncate(Default_Model_HtmlPurify::purify($tags), 30, '...', false, true); 0072 $resultStringAll .= $tags.'</span>'; 0073 echo $resultStringAll; 0074 } ?> 0075 </div> 0076 </div> 0077 <div class="col-lg-3 col-md-3 col-sm-4 col-xs-4"> 0078 0079 <?php 0080 $this->widgetRating = new stdClass(); 0081 $this->widgetRating->project_id = $this->product['project_id']; 0082 $this->widgetRating->laplace_score = $this->product['laplace_score']; 0083 $this->widgetRating->count_likes = $this->product['count_likes']; 0084 $this->widgetRating->count_dislikes =$this->product['count_dislikes']; 0085 echo $this->render('partials/widgetRating.phtml'); 0086 ?> 0087 0088 <span class="time"><?=$this->printDate($this->product['changed_at']==null?$this->product['created_at']:$this->product['changed_at'])?> 0089 </span> 0090 </div> 0091 </div> 0092 </div >