* @subpackage Components * @author Todor Iliev * @copyright Copyright (C) 2014 Todor Iliev <*****@*****.**>. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ // no direct access defined('_JEXEC') or die; ?> <div class="row-fluid"> <ul class="thumbnails"> <?php if (isset($this->item)) { $raised = $this->currency->getAmountString($this->item->funded); $fundedPercents = JHtml::_("crowdfunding.funded", $this->item->funded_percents); // Get social platform and a link to the profile $socialProfile = CrowdFundingHelper::getSocialProfile($this->item->user_id, $this->socialPlatform); $socialProfileLink = !$socialProfile ? null : $socialProfile->getLink(); ?> <li class="span12"> <div class="thumbnail"> <img src="<?php echo $this->item->link_image; ?> " alt="<?php echo $this->item->title; ?> " width="200" height="200"> <div class="caption"> <h3><a href="<?php echo JRoute::_(CrowdFundingHelperRoute::getDetailsRoute($this->item->slug, $this->item->catslug)); ?>
if (!$projectId) { echo JText::_("MOD_CROWDFUNDINGDETAILS_ERROR_INVALID_PROJECT"); return; } // Get project jimport("crowdfunding.project"); $project = CrowdFundingProject::getInstance(JFactory::getDbo(), $projectId); if (!$project->getId()) { echo JText::_("MOD_CROWDFUNDINGDETAILS_ERROR_INVALID_PROJECT"); return; } // Get component params $componentParams = JComponentHelper::getParams("com_crowdfunding"); /** @var $componentParams Joomla\Registry\Registry */ $socialPlatform = $componentParams->get("integration_social_platform"); $imageFolder = $componentParams->get("images_directory", "images/crowdfunding"); // Get currency jimport("crowdfunding.currency"); $currencyId = $componentParams->get("project_currency"); $currency = CrowdFundingCurrency::getInstance(JFactory::getDbo(), $currencyId, $componentParams); // Get social platform and a link to the profile jimport("itprism.integrate.profile." . JString::strtolower($socialPlatform)); $socialProfile = CrowdFundingHelper::getSocialProfile($project->getUserId(), $socialPlatform); $socialProfileLink = !$socialProfile ? null : $socialProfile->getLink(); // Get amounts $fundedAmount = $currency->getAmountString($project->getGoal()); $raised = $currency->getAmountString($project->getFunded()); // Prepare the value that I am going to display $fundedPercents = JHtml::_("crowdfunding.funded", $project->getFundedPercent()); $user = JFactory::getUser($project->getUserId()); require JModuleHelper::getLayoutPath('mod_crowdfundingdetails', $params->get('layout', 'default'));