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

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 $modelInfo = new Default_Model_Info();
0024 $countProjects = $this->fetchTotalProductsCount();
0025 $countActiveMembers = $modelInfo->countTotalActiveMembers();
0026 ?>
0027 <style type="text/css">  
0028    
0029 </style>
0030 <main id="community-page">
0031 
0032     <section class="head-wrap">
0033 
0034         <section class="wrapper">
0035 
0036             <div class="page-title">
0037                 <div class="center">
0038                     <div><h1>Community</h1></div>
0039                 </div>
0040                 <hr/>
0041             </div>
0042 
0043             <div class="row">
0044 
0045                 <div class="banner col-lg-5 col-md-5 col-sm-6 col-xs-8">
0046                   <?php /*
0047                     <div class="top">
0048                         <div class="large"><?= $countActiveMembers ?></div>
0049                         <div class="small margin-bottom-10">contributors added </div>
0050                          <div class="large"><?= $countProjects?></div>
0051                         <div class="small margin-bottom-10">products</div>
0052                     </div>
0053                     */?>
0054 
0055                     <div class="bottom">
0056                         <a class="btn btn-native" href="/register">Register</a> to join the community
0057                     </div>
0058 
0059                 </div>
0060 
0061             </div>
0062 
0063         </section>
0064 
0065     </section>
0066 
0067     <section class="body-wrap">
0068 
0069         <section class="wrapper" id="user-lists">
0070 
0071 
0072             <div id="community-tabs" >
0073 
0074                  <div class="pling-nav-tabs" >
0075                   <ul class="nav nav-tabs" >
0076                   <li class="active">
0077                     <a class="communitytab" data-href="/community/supporters" 
0078                       href="#supportersPanel" 
0079                       data-toggle="tab">
0080                       <?= $this->translate('Supporters') ?>                        
0081                       </a>
0082                   </li>
0083                    <li>
0084                     <a class="communitytab" data-href="/community/mostplingedcreators" 
0085                       href="#mostplingedcreatorsPanel" 
0086                       data-toggle="tab">
0087                       <?= $this->translate('Most plinged Creators') ?>                        
0088                       </a>
0089                   </li>
0090                    <li>
0091                     <a class="communitytab" data-href="/community/mostplingedproducts" 
0092                       href="#mostplingedproductsPanel" 
0093                       data-toggle="tab">
0094                       <?= $this->translate('Most plinged Products') ?>                        
0095                       </a>
0096                   </li>
0097                   <li>
0098                     <a class="communitytab" data-href="/community/plingedprojects" href="#plingedproductsPanel" data-toggle="tab"><?= $this->translate('Recently plinged Products ') ?></a>
0099                   </li>
0100 
0101                    <li >
0102                     <a class="communitytab" data-href="/community/newmembers"  href="#newMemberPanel" data-toggle="tab"><?= $this->translate('New Members') ?></a>
0103                   </li>
0104 
0105                   <?php if(Zend_Auth::getInstance()->hasIdentity() AND Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') {
0106                   ?>
0107                   <li>
0108                     <a class="communitytab" data-href="/community/topmembers" href="#topMemberPanel" data-toggle="tab"><?= $this->translate('Top Members') ?></a>
0109                   </li>
0110 
0111                   
0112                   <?php 
0113                   }?>                                                                                   
0114                  
0115                   </ul>
0116                 </div>
0117 
0118 
0119             </div>
0120         
0121         <div class="tab-content" id="communityPanels">           
0122             <div class="row tab-pane " id="newMemberPanel" >
0123                 <div class="list" id="new-members">                  
0124                 </div>
0125             </div> <!-- end row -->
0126 
0127             <?php if(Zend_Auth::getInstance()->hasIdentity() AND Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') {
0128                         ?>
0129             <div class="row tab-pane" id="topMemberPanel">
0130                     <div class="list "> </div>
0131                 </div> <!-- end row -->
0132 
0133                
0134                 <?php } ?>
0135 
0136                 <div class="row tab-pane active" id="supportersPanel">
0137                         <div class="list "> </div>
0138                 </div> <!-- end row -->
0139                 <div class="row tab-pane active" id="mostplingedproductsPanel">
0140                         <div class="list container explore-products"  > </div>
0141                 </div> <!-- end row -->
0142                  <div class="row tab-pane active" id="mostplingedcreatorsPanel">
0143                         <div class="list  container explore-products" > </div>
0144                 </div> <!-- end row -->
0145 
0146                  <div class="row tab-pane" id="plingedproductsPanel">
0147                         <div class="list "> </div>
0148                 </div> <!-- end row -->
0149 
0150 
0151         </div>
0152 
0153        
0154         </section>
0155 
0156     </section>
0157 <div class="tooltip_templates" style="display: none">
0158     <span id="tooltip_content">
0159         <i class="fa fa-spinner"></i>
0160     </span>
0161 </div>
0162 </main>
0163 
0164 
0165 <?php $this->inlineScript()->appendScript(
0166     '    $(document).ready(function(){                                                                            
0167                 CommunityTab.setup();
0168             });
0169         ');