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 $helpBuildUrl = new Default_View_Helper_BuildProductUrl(); 0024 $helpTruncate = new Default_View_Helper_Truncate(); 0025 $helpImage = new Default_View_Helper_Image(); 0026 ?> 0027 <div style="width: 200px; background-color: #f1f1f1; float: left; border:1px solid #ddd; margin:2px; height:220px"> 0028 <div style="padding:5px; display: block; height: 160px; background-color: #fff; position: relative;"> 0029 <div style="line-height:1.5; max-height: 145px; overflow: hidden;"> 0030 <a href="<?= $helpBuildUrl->buildProductUrl($this->comment['project_id']) ?>"> 0031 <?=$helpTruncate->truncate(Default_Model_HtmlPurify::purify($this->comment['comment_text']), 200, '...', false, true)?> 0032 </a> 0033 </div> 0034 0035 <span class="small" style="position: absolute; bottom: 0px;"> 0036 <?=$helpTruncate->truncate(Default_Model_HtmlPurify::purify($this->comment['title']), 30, '...', false, true)?> 0037 </span> 0038 </div> 0039 <div style="display: block; " class=""> 0040 <div class="userinfo" > 0041 <a href="<?= $helpBuildUrl->buildProductUrl($this->comment['project_id']) ?>"> 0042 <img src="<?= $helpImage->Image($this->comment['profile_image_url'], array('width' => 60, 'height' => 60)) ?>" style="margin: 5px; width: 40px; height:40px; border-radius: 50%; float: left"/> 0043 <span style="display: block;padding-top:15px;"><?= $this->comment['username'] ?></span> 0044 </a> 0045 </div> 0046 </div> 0047 </div >