File indexing completed on 2024-12-29 05:24:50
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 $helperBuildProductUrl = new Default_View_Helper_BuildProductUrl(); 0024 $helperImage = new Default_View_Helper_Image(); 0025 ?> 0026 <div class="supporter-box-container"> 0027 <div class="supporter-box-top"> 0028 <div class="title"> 0029 <a target="_blank" href="<?php echo $helperBuildProductUrl->buildProductUrl($this->product->project_id,'', null, true); ?>" 0030 title="<?php echo $this->product->title; ?>"><?php echo $this->product->title; ?></a> 0031 </div> 0032 <figure> 0033 <a target="_blank" href="<?php echo $helperBuildProductUrl->buildProductUrl($this->product->project_id,'', null, true); ?>" 0034 title="<?php echo $this->product->title; ?>"> 0035 <img 0036 src="<?php echo $helperImage->Image($this->product->image_small, array('width' => 80, 'height' => 80)); ?>" 0037 alt="<?php echo $this->product->title; ?>"/> 0038 </a> 0039 </figure> 0040 </div> 0041 <div class="supporter-box-body"> 0042 <div class="info"> 0043 <em class="icon pling-icon-gold"></em> 0044 <span>opendesktop.org</span> 0045 <span><?php echo $this->nrOfSupporters; ?> Supporters</span> 0046 </div> 0047 <div class="supporters"> 0048 <?php 0049 if ($this->nrOfSupporters == 0) { 0050 echo $this->translate('supporterbox.beFirstSupporter'); 0051 } else { 0052 $helperBuildMemberUrl = new Default_View_Helper_BuildMemberUrl(); 0053 foreach ($this->supporters as $supporter) { ?> 0054 <figure> 0055 <a target="_blank" 0056 href="<?php echo $helperBuildMemberUrl->buildMemberUrl($supporter->username); ?>" 0057 title="<?php echo $supporter->username; ?>"> 0058 <img src="<?php echo $supporter->profile_image_url; ?>" 0059 alt="<?php echo $supporter->username; ?>"> 0060 </a> 0061 </figure> 0062 <?php } 0063 } 0064 ?> 0065 </div> 0066 </div> 0067 </div>