File indexing completed on 2025-05-04 05:29:20
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 $plingData = $this->userPlings($this->hit->project_id); 0024 $plingMoney = $this->plingMoney($this->hit->project_id); 0025 $latestPling = $this->humanTiming($this->hit->created_at);*/ 0026 0027 $helperBuildProductUrl = new Default_View_Helper_BuildProductUrl(); 0028 $helperFetchSubcategoriesForProduct = new Default_View_Helper_FetchCategoriesForProductAsString(); 0029 0030 0031 $helperPrintDate = new Default_View_Helper_PrintDate(); 0032 $createTime = $helperPrintDate->printDate($this->hit->created_at); 0033 $updateTime = $helperPrintDate->printDate($this->hit->changed_at); 0034 ?> 0035 <div class="explore-product col-lg-12 col-md-12 col-sm-12 col-xs-12" 0036 onclick="location.href='<?= $this->buildProductUrl($this->hit->project_id); ?>'"> 0037 <figure class="col-lg-2 col-md-2 col-sm-2 col-xs-2"> 0038 <a href="<?= $helperBuildProductUrl->buildProductUrl($this->hit->project_id); ?>"> 0039 <div style="max-width: 220px; max-height: 220px;" class="text-center"> 0040 <img src="<?php echo $this->Image($this->hit->image_small, array('width' => 167, 'height' => 167)); ?>" style="max-width: 167px; max-height: 167px;" class="explore-product-image"/> 0041 </div> 0042 </a> 0043 </figure> 0044 <div class="explore-product-details col-lg-7 col-md-7 col-sm-7 col-xs-7"> 0045 <h3> 0046 <a href="<?= $helperBuildProductUrl->buildProductUrl($this->hit->project_id); ?>"><?= $this->hit->title ?></a> 0047 </h3> 0048 <?php if (empty($this->hit->claimable)) { ?> 0049 <span>By <b><?php echo $this->hit->username; ?></b></span> 0050 <?php } ?> 0051 <span>In <b><?php echo $helperFetchSubcategoriesForProduct->fetchCategoriesForProductAsString($this->hit->project_id) ?></b></span> 0052 </div> 0053 <div class="explore-product-plings col-lg-3 col-md-3 col-sm-3 col-xs-3"> 0054 <!-- RATING --> 0055 <?php 0056 $this->widgetRating = new stdClass(); 0057 $this->widgetRating->project_id = $this->hit->project_id; 0058 $this->widgetRating->laplace_score = $this->hit->laplace_score; 0059 $this->widgetRating->count_likes = $this->hit->count_likes; 0060 $this->widgetRating->count_dislikes = $this->hit->count_dislikes; 0061 echo $this->render('partials/widgetRating.phtml'); ?> 0062 <!-- /RATING --> 0063 <div class="progress"> 0064 <div class="bar no-goal"> 0065 </div> 0066 </div> 0067 <div class="collected"> 0068 <?php /** 0069 <span 0070 class="count"><?= $this->hit->amount_received ? 'Collected: ' . $this->toCurrency($this->hit->amount_received) : '' ?></span> 0071 **/?> 0072 <span><?= $updateTime == null ? '' : 'updated: ' . $updateTime ?> </span> 0073 <span><?= $createTime == null ? '' : 'added: ' . $createTime ?> </span> 0074 0075 </div> 0076 </div> 0077 </div><!-- END .explore-product -->