File indexing completed on 2024-12-29 05:24:39
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 $helpProductUrl = NEW Default_View_Helper_BuildProductUrl(); 0023 $countSupporter = count($this->supporter->toArray()); 0024 ?> 0025 0026 <div class="sidebar-header"> 0027 <h3> 0028 <?= $this->translate('SUPPORTERS') ?> (<?= $countSupporter ?>) 0029 <div class="pull-right light"> 0030 <a href="<?= $helpProductUrl->buildProductUrl($this->project->project_id, 'supporter') ?>"> 0031 <?= $this->translate('Show All'); ?> 0032 </a> 0033 </div> 0034 </h3> 0035 </div> 0036 0037 <div class="sidebar-content"> 0038 <div class="sidebar-content-section"> 0039 <?php if ($countSupporter == 0) { ?> 0040 <div>No supporters yet</div> 0041 <?php } else { 0042 0043 if ($countSupporter < 4) { 0044 $g = $countSupporter; 0045 } else { 0046 $g = 4; 0047 } 0048 0049 $h = 0; 0050 $i = 3; 0051 0052 $helpMemberUrl = new Default_View_Helper_BuildMemberUrl(); 0053 $helperImage = new Default_View_Helper_Image(); 0054 0055 foreach ($this->supporter as $supporter): 0056 $i++; 0057 $h++; 0058 if ($i % 4 == 0) { ?> 0059 <!-- add row --> 0060 <div class="row supporters-row"> 0061 <?php } ?> 0062 <!-- supporter item --> 0063 <div class="col-md-3 col-lg-3 col-sm-3 col-xs-3 supporter-thumbnail relative"> 0064 <!-- supporter thumbnail --> 0065 <a href="<?= $helpMemberUrl->buildMemberUrl($supporter->username) ?>" title="<?= $supporter->username ?>"> 0066 <div class="profile-image-overlay-3 absolute"></div> 0067 <img src="<?= $helperImage->Image($supporter->profile_image_url,array('width' => 80, 'height' => 80, 'crop' => 2)); ?>" alt="<?= $supporter->username ?>" width="80"> 0068 </a> 0069 <!-- /supporter thumbnail --> 0070 <!-- tool tip --> 0071 <div class="sidebar-tooltip supporter-tooltip"> 0072 <em class="icon arrow-down-gray"></em> 0073 0074 <div class="inner"> 0075 <div class="profile-img"> 0076 <a href="<?= $helpMemberUrl->buildMemberUrl($supporter->username) ?>" 0077 title="<?= $supporter->username ?>"> 0078 <div class="profile-image-overlay-3 absolute"></div> 0079 <img src="<?= $helperImage->Image($supporter->profile_image_url,array('width' => 80, 'height' => 80, 'crop' => 2)); ?>" 0080 alt="<?= $supporter->username ?>" 0081 width="80"> 0082 </a> 0083 </div> 0084 <div class="content"> 0085 <div class="title"> 0086 <p><?php echo $supporter->username ?></p> 0087 </div> 0088 <div class="plings"> 0089 <span>plinged:</span> 0090 <span>$ <?php echo $supporter->amount; ?></span> 0091 </div> 0092 <?php if ($supporter->comment != null && $supporter->comment != ''): ?> 0093 <div class="plings"> 0094 <span>comment:</span> 0095 <span><?php echo $supporter->comment; ?></span> 0096 </div> 0097 <?php endif; ?> 0098 </div> 0099 </div> 0100 </div> 0101 <!-- /tool tip --> 0102 </div> 0103 <!-- /supporter item --> 0104 <?php if (($h % $g == 0) OR ($h >= $countSupporter)) { ?> 0105 </div> 0106 <!-- /add row --> 0107 <?php } ?> 0108 <?php endforeach; 0109 } ?> 0110 </div> 0111 </div>