File indexing completed on 2025-05-04 05:29:30

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 $helperMember = new Default_View_Helper_BuildMemberUrl();
0023 $helperBase = new Default_View_Helper_BuildBaseUrl();
0024 
0025 $isProdncoll = false;
0026 if($this->tab=='add' || $this->tab=='products' || $this->tab=='addcollection' || $this->tab=='collections')
0027 {
0028     $isProdncoll = true;
0029 }
0030 ?>
0031 <div  class="pling-nav-tabs">
0032 <ul class="nav nav-tabs">
0033 
0034     <li class="header-menu-left-item <?php echo $isProdncoll? 'active' : ''; ?>">                      
0035              <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'products'); ?>">               <span class="glyphicon glyphicon-th-list"></span>
0036                     <?= $this->translate('Products/Collections') ?>
0037             </a>           
0038     </li>       
0039 
0040     <?php if (Zend_Auth::getInstance()->hasIdentity() && Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') { ?>
0041     <li class="header-menu-left-item <?php echo $this->tab == 'payout' ? 'active' : ''; ?>">
0042         <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'payoutold'); ?>">
0043             <span class="glyphicon glyphicon-usd"></span>
0044             <?= $this->translate('Payout-Old') ?>
0045         </a>
0046     </li>
0047     <?php } ?>
0048     <li class="header-menu-left-item <?php echo $this->tab == 'payoutsection' ? 'active' : ''; ?>">
0049         <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'payout'); ?>">
0050             <span class="glyphicon glyphicon-usd"></span>
0051             <?= $this->translate('Payout') ?>
0052         </a>
0053     </li>
0054     <?php if (Zend_Auth::getInstance()->hasIdentity() && Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') { ?>
0055     <li class="header-menu-left-item <?php echo $this->tab == 'affiliates' ? 'active' : ''; ?>">
0056         <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'affiliates'); ?>">
0057             <span class="glyphicon glyphicon-usd"></span>
0058             <?= $this->translate('Affiliates') ?>
0059         </a>
0060     </li>
0061     <?php } ?>
0062 
0063     
0064     <?php if (Zend_Auth::getInstance()->hasIdentity() && Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') { ?>
0065     <li class="header-menu-left-item <?php echo $this->tab == 'payouthistory' ? 'active' : ''; ?>">
0066         <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'payouthistoryold'); ?>">                                   
0067             <span class="payouthistory-icon" aria-hidden="true"></span>
0068             <?= $this->translate('Payout-History-Old') ?>
0069         </a>
0070     </li>
0071     <?php } ?>
0072      <li class="header-menu-left-item <?php echo $this->tab == 'payouthistory2' ? 'active' : ''; ?>">
0073             <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'payouthistory'); ?>">                                   
0074                 <span class="payouthistory-icon" aria-hidden="true"></span>
0075                 <?= $this->translate('Payout-History') ?>
0076             </a>
0077         </li>
0078     
0079     <?php if (Zend_Auth::getInstance()->hasIdentity() && Zend_Auth::getInstance()->getIdentity()->roleName == 'admin'){
0080         $identity = Zend_Auth::getInstance()->getStorage()->read();
0081     ?>
0082     
0083         <?php  if($this->isSupporter($this->member->member_id)){?>
0084         <!--
0085         <li class="header-menu-left-item <?php echo $this->tab == 'support' ? 'active' : ''; ?>">           
0086              <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'support'); ?>">        
0087                 <span class="glyphicon glyphicon-usd"></span>
0088                 <?= $this->translate('Support') ?>
0089             </a>
0090         </li>
0091         -->
0092         <?php }?>
0093 
0094     <?php }?>
0095 
0096     <li class="header-menu-left-item <?php echo $this->tab == 'funding' ? 'active' : ''; ?>">           
0097          <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'funding'); ?>">        
0098             <span class="glyphicon glyphicon-usd"></span>
0099             <?= $this->translate('Funding') ?>
0100         </a>
0101     </li>
0102 
0103         
0104     
0105     <li class="<?php echo $this->tab == 'downloadhistory' ? 'active' : ''; ?>">
0106         <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'downloadhistory'); ?>">
0107             <span class="glyphicon glyphicon-star"></span>
0108             <?= $this->translate('Downloads') ?>
0109         </a>
0110     </li>
0111 
0112     <li class="<?php echo $this->tab == 'likes' ? 'active' : ''; ?>">
0113         <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'likes'); ?>">
0114             <i class="fa fa-heart" aria-hidden="true"></i>
0115             <?= $this->translate('Fan of') ?>
0116         </a>
0117     </li>
0118     
0119     <li class="<?php echo $this->tab == 'activities' ? 'active' : ''; ?>">
0120         <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'activities'); ?>">
0121             <span class="glyphicon glyphicon-align-justify"></span>
0122             <?= $this->translate('Activities') ?>
0123         </a>
0124     </li>
0125     
0126     
0127  <?php /*
0128     <li class="header-menu-left-item <?php echo $this->tab == 'profiles' ? 'active' : ''; ?>">
0129         <a href="<?php echo $helperBase->buildBaseUrl('settings/profile'); ?>">
0130             <span class="glyphicon glyphicon-user"></span>
0131             <?= $this->translate('Profile') ?>
0132         </a>
0133     </li>
0134     
0135     
0136     <li class="header-menu-left-item <?php echo $this->tab == 'settings' ? 'active' : ''; ?>">
0137         <a href="<?php echo $helperBase->buildBaseUrl('settings'); ?>">
0138             <span class="glyphicon glyphicon-cog"></span>
0139             <?= $this->translate('Settings') ?>
0140         </a>
0141     </li>
0142     
0143 
0144   
0145 
0146    <li class="header-menu-left-item <?php echo $this->tab == 'supporterbox' ? 'active' : ''; ?>">
0147         <a href="<?php echo $helperBase->buildBaserUrl('supporterbox'); ?>/<?=$identity->member_id?>">            
0148             <i class="fa fa-user"></i>
0149             <?= $this->translate('Supporter box') ?>
0150         </a>
0151     </li>
0152     <li class="header-menu-left-item <?php echo $this->tab == 'earnings' ? 'active' : ''; ?>">
0153         <a href="<?php echo $helperMember->buildMemberUrl($this->member->member_id, 'income'); ?>">
0154             <span class="glyphicon glyphicon-usd"></span>
0155             <?= $this->translate('My Income') ?>
0156         </a>
0157     </li>
0158  
0159     <li class="header-menu-left-item <?php echo $this->tab == 'payment' ? 'active' : ''; ?>">
0160         <a href="<?php echo $helperMember->buildMemberUrl($this->member->member_id, 'payments'); ?>">
0161             <span class="glyphicon glyphicon-usd"></span>
0162             <?= $this->translate('My Payments') ?>
0163         </a>
0164     </li>
0165     */ ?>
0166     
0167 </ul>
0168 </div>