File indexing completed on 2025-05-04 05:29:29
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 <div class="cat-title col-lg-12 col-md-12 col-sm-12 col-xs-12"> 0024 <div class="center"> 0025 <div><h3>Things i follow</h3></div> 0026 </div> 0027 <hr/> 0028 </div> 0029 0030 <?php 0031 $helperProductUrl = new Default_View_Helper_BuildProductUrl(); 0032 $helperImage = new Default_View_Helper_Image(); 0033 if (count($this->followedProducts) < 4) { 0034 $g = count($this->followedProducts); 0035 } else { 0036 $g = 4; 0037 } 0038 $h = 0; 0039 $i = 3; 0040 foreach ($this->followedProducts as $follower): 0041 $i++; 0042 $h++; 0043 0044 // $titleImage = $this->Image($follower->image_big, array('width' => 270, 'height' => 140)); 0045 // $hasTitle = $follower->image_big !== null && strpos($titleImage, 'default.png') === false; 0046 0047 ?> 0048 <div class="mini-card col-lg-2 col-md-2 col-sm-2 col-xs-2"> 0049 <div class="u-wrap"> 0050 <a href="<?= $helperProductUrl->buildProductUrl($follower->project_id) ?>" title="<?= $follower->title ?>"> 0051 <figure> 0052 <img src="<?= $helperImage->Image($follower->image_small, array('width' => 280, 'height' => 167)); ?>" 0053 alt="<?= $follower->title ?>" 0054 width="80"> 0055 </figure> 0056 <div class="u-content"> 0057 <h3><?= $follower->title ?></h3> 0058 0059 <p style="text-align:center"><img src="/theme/flatui/img/icon-like-color.png"/></p> 0060 </div> 0061 </a> 0062 </div> 0063 </div> 0064 <!-- /.supporter-thumbnail --> 0065 <?php if (($h % $g == 0) OR ($h >= count($this->followedProducts))) { ?> 0066 <!-- /.supporters-row --> 0067 <?php } 0068 endforeach; ?>