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

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 <span class="labelTitle" ><?=$this->title?> </span>                                                                         
0024 <div class="newusers">
0025      <?php 
0026             foreach ($this->projects as $p) {                                  
0027         ?>
0028             <div class="user " >
0029                 <div class="u-wrap" style=" background-repeat: no-repeat; background-image: url('<?php echo $this->Image($p['image_small'], array('width' => '115', 'height' => '75', 'crop' => 2)); ?>');">                
0030                     <a href="<?php echo $this->buildProductUrl($p['project_id']); ?>" style="" >
0031                         <div  class="product-thumbnail-startpage " style="height: 50px;width: 115px;"
0032                                  data-toggle="popover"
0033                                  data-trigger="hover"
0034                                  data-html="true"
0035                                  data-placement="top"
0036                                 data-content="<div class='profile-img-product center'>
0037                                      <img class='imgpopover'  src='<?php echo $this->Image($p['image_small'], array('width' => '200', 'height' => '160', 'crop' => 1)); ?>'/>
0038                                      </div>
0039                                        <div class='content'>
0040                                            <div class='title'>
0041                                                <p><?=Default_Model_HtmlPurify::purify($this->truncate($p['title'],20).' - '.$this->truncate($p['catTitle'],20) )?></p>
0042                                            </div>                                                             
0043                                        </div>">         
0044                         </div>         
0045                         <figure style="">                            
0046                             <img class="tooltipuser" data-tooltip-content="#tooltip_content" data-user="<?=$p['member_id']?>" 
0047                                     src="<?php echo $this->Image($p['profile_image_url'], array('width' => '50', 'height' => '50', 'crop' => 2)); ?>" 
0048                                     style="width:40px; height: 40px"                                   
0049                                     />
0050                         </figure>
0051                         <h3 class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><?php echo Default_Model_HtmlPurify::purify($p['username']); ?></h3>
0052                                                                   
0053                     </a>
0054                      <span class="small created_at" >
0055                         <a class="tooltipuserplings" data-tooltip-content="#tooltip_content" data-user="<?=$p['project_id']?>" ><img src="/images/system/pling-btn-active.png" style="width: 15px; height: 15px" /> </a>
0056                         <?= /*$this->printDate($p['created_at'])*/ $p['sum_plings']; ?>
0057                      </span>
0058                 </div>
0059             </div>
0060     <?php } ?>
0061     <div class="clearboth"></div> 
0062 </div>
0063 
0064 <script type="application/javascript">
0065     // tool tips
0066     $('body').on('mouseenter', '.product-thumbnail-startpage', function () {
0067         $(this).popover('show');
0068     });
0069 
0070     $('body').on('mouseleave', '.product-thumbnail-startpage', function () {
0071         $(this).popover('hide');
0072     });
0073 </script>