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 $helpCategories = new Default_View_Helper_FetchCategoriesForProductAsString(); 0023 $helpProductUrl = new Default_View_Helper_BuildProductUrl(); 0024 $helpTruncate = new Default_View_Helper_Truncate(); 0025 $helpPrintDate = new Default_View_Helper_PrintDate(); 0026 $helpMemberUrl = new Default_View_Helper_BuildMemberUrl(); 0027 ?><div class="productrow"> 0028 <div class="row"> 0029 <div class="col-lg-9"> 0030 <?= Default_Model_HtmlPurify::purify($this->comment['title']) ?> 0031 <br> 0032 <span style="font-size: smaller;"> 0033 <?php echo $helpCategories->fetchCategoriesForProductAsString($this->comment['project_id']) ?> 0034 </span> 0035 <div class="small" style="line-height:1.3"> 0036 <a href="<?= $helpProductUrl->buildProductUrl($this->comment['project_id']) ?>"> 0037 <?=$helpTruncate->truncate(Default_Model_HtmlPurify::purify($this->comment['comment_text']), 200, '...', false, true)?> 0038 </a> 0039 </div> 0040 <span class="time"><?= $helpPrintDate->printDate($this->comment['comment_created_at'])?></span> 0041 </div> 0042 0043 <div class="col-lg-3 text-center"> 0044 <div class="userinfo" style="overflow: hidden"> 0045 <a href="<?php echo $helpMemberUrl->buildMemberUrl($this->comment['username']) ?>"> 0046 <img src="<?= $this->Image($this->comment['profile_image_url'], 0047 array('width' => 120, 'height' => 120)) ?>" style="margin:10px; width: 40px; height:40px; border-radius: 50%"/> 0048 <span style="display: block"><?= $this->comment['username'] ?></span> 0049 </a> 0050 </div> 0051 </div> 0052 </div > 0053 </div>