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

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 = 'likes';
0024 $pageCount = $this->likes->getTotalItemCount()/$this->likes->getItemCountPerPage();
0025 ?>
0026 <main class="user-admin-page">
0027     <?php echo $this->render('user/partials/userHeader_top.phtml'); ?>  
0028     <section class="body-wrap">
0029         <section class="wrapper product-page">
0030             <!-- PAGE BODY -->
0031             <section class="my-products-page">
0032                 <!-- NAVIGATION -->
0033                 <?php echo $this->render('user/partials/userHeader.phtml'); ?>
0034                 <!-- /NAVIGATION -->
0035              
0036               <div class="my-products-heading">
0037                    <h1 class="page-title left"><?= $this->translate('Favs') ?></h1>                   
0038                </div>
0039 
0040 
0041                 <div class="my-downloadshistory-list" id="my-downloadshistory-list">
0042 
0043                 <div class="row">
0044                     <div class="col-lg-12">
0045                     <small class="pull-right">
0046                         <div class="row totaldownloads"><?=$this->likes->getTotalItemCount()?> Favs</div>
0047                         <?php if ($pageCount > 1) echo $this->paginationControl($this->likes, 'Sliding', '/partials/paginationControlBootstrap.phtml',
0048                             array('params' => array(), 'dom_target' => 'div#my-downloadshistory-list')); ?>
0049                       </small>                    
0050                     </div>
0051                 </div>              
0052 
0053                     <?php  
0054                       $i=0;
0055                          foreach($this->likes as $file){                                                                                            
0056                                 echo $this->partial('user/partials/loopLike.phtml',  array(
0057                                         "file"  => (object)$file,
0058                                         "member_id" =>$this->member->member_id,
0059                                         "authMember" =>$this->member,
0060                                         "counter" => $i++
0061                                     ));                                                                                                  
0062                             }
0063                     ?>        
0064                 </div>
0065             </section>
0066 
0067             <!-- /PAGE BODY -->
0068 
0069         </section>
0070 
0071     </section>
0072 
0073 </main>