File indexing completed on 2025-05-04 05:29:32
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 $this->tab = 'plings'; 0024 $this->countDownloadsOverall = 0; 0025 0026 #$modelDownload = new Default_Model_StatDownload(); 0027 #$this->downloads = $modelDownload->getUserDownloads($this->member->member_id); 0028 #$this->countDownloadsOverall = count($this->downloads); 0029 0030 $member = $this->view_member; 0031 ?> 0032 <?php 0033 if($member->pling_excluded == 0 || (Zend_Auth::getInstance()->hasIdentity() AND Zend_Auth::getInstance()->getIdentity()->roleName == 'admin')) { 0034 ?> 0035 <div class="my-products-list" id="my-payout-list" style="background-color: #8080801c;padding: 10px;"> 0036 0037 <?php 0038 //if ($this->countDownloadsOverall > 0) { 0039 0040 echo $this->render('user/partials/loopSectionPlingsForMonth.phtml'); 0041 //} else { 0042 // echo '<div class="well well-sm" role="alert">You have no downloads and no plings.</div>'; 0043 //} 0044 ?> 0045 </div> 0046 <?php 0047 } 0048 ?> 0049 <script> 0050 $(document).ready(function(){ 0051 $('[data-toggle="popover"]').popover(); 0052 }); 0053 </script>